//
// CRYPTO_THREAD_lock_new from 0x105f048 to 0x105f0a8 (96 bytes)
//
// 30 xrefs:
// > ssl_cert_new @ 0xfb81e0
// > ssl_cert_dup @ 0xfb841c
// > SSL_CTX_new @ 0xfbf820
// > SSL_new @ 0xfc17e4
// > SSL_SESSION_new @ 0xfc42b8
// > ssl_session_dup @ 0xfc4538
// > asn1_do_lock @ 0xfee6fc
// > BIO_new @ 0xff47e8
// > sub_FF5544 @ 0xff554c
// > DH_new_method @ 0x10061a8
// > DSA_new_method @ 0x1007b58
// > DSO_new @ 0x1008d10
// > DSO_load @ 0x1009244
// > EC_KEY_new_method @ 0x100ee88
// > ec_wNAF_precompute_mult @ 0x1011b80
// > sub_10163C0 @ 0x101644c
// > do_engine_lock_init_ossl_ @ 0x101b69c
// > sub_101D8A8 @ 0x101d8bc
// > EVP_PKEY_new @ 0x102a364
// > sub_102CBF0 @ 0x102cc04
// > sub_102FF50 @ 0x102ff80
// > CRYPTO_secure_malloc_init @ 0x10343b4
// > RSA_new_method @ 0x10521f8
// > UI_new_method @ 0x10615b8
// > sub_106289C @ 0x10628e4
// > X509_STORE_new @ 0x1065a3c
// > BN_BLINDING_new @ 0x1093458
// > sub_10E4FE0 @ 0x10e4ffc
// > sub_10E4FE0 @ 0x10e5008
// > ??> @ 0x4f480
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:16:49 +0000
//
pthread_rwlock_t *CRYPTO_THREAD_lock_new()
{
pthread_rwlock_t *v0; // x0
pthread_rwlock_t *v1; // x19
pthread_rwlock_t *v3; // x0
v0 = (pthread_rwlock_t *)CRYPTO_zalloc(&word_38, (__int64)"crypto/threads_pthread.c", 16);
v1 = v0;
if ( v0 && pthread_rwlock_init(v0, nullptr) )
{
v3 = v1;
v1 = nullptr;
CRYPTO_free(v3, (__int64)"crypto/threads_pthread.c", 21);
}
return v1;
}