{"type": "func", "start": 17166408, "end": 17166504, "name": "CRYPTO_THREAD_lock_new", "pseudocode": "// \n// CRYPTO_THREAD_lock_new from 0x105f048 to 0x105f0a8 (96 bytes)\n// \n// 30 xrefs:\n// > ssl_cert_new @ 0xfb81e0\n// > ssl_cert_dup @ 0xfb841c\n// > SSL_CTX_new @ 0xfbf820\n// > SSL_new @ 0xfc17e4\n// > SSL_SESSION_new @ 0xfc42b8\n// > ssl_session_dup @ 0xfc4538\n// > asn1_do_lock @ 0xfee6fc\n// > BIO_new @ 0xff47e8\n// > sub_FF5544 @ 0xff554c\n// > DH_new_method @ 0x10061a8\n// > DSA_new_method @ 0x1007b58\n// > DSO_new @ 0x1008d10\n// > DSO_load @ 0x1009244\n// > EC_KEY_new_method @ 0x100ee88\n// > ec_wNAF_precompute_mult @ 0x1011b80\n// > sub_10163C0 @ 0x101644c\n// > do_engine_lock_init_ossl_ @ 0x101b69c\n// > sub_101D8A8 @ 0x101d8bc\n// > EVP_PKEY_new @ 0x102a364\n// > sub_102CBF0 @ 0x102cc04\n// > sub_102FF50 @ 0x102ff80\n// > CRYPTO_secure_malloc_init @ 0x10343b4\n// > RSA_new_method @ 0x10521f8\n// > UI_new_method @ 0x10615b8\n// > sub_106289C @ 0x10628e4\n// > X509_STORE_new @ 0x1065a3c\n// > BN_BLINDING_new @ 0x1093458\n// > sub_10E4FE0 @ 0x10e4ffc\n// > sub_10E4FE0 @ 0x10e5008\n// > <???> @ 0x4f480\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:16:49 +0000\n// \n\npthread_rwlock_t *CRYPTO_THREAD_lock_new()\n{\n  pthread_rwlock_t *v0; // x0\n  pthread_rwlock_t *v1; // x19\n  pthread_rwlock_t *v3; // x0\n\n  v0 = (pthread_rwlock_t *)CRYPTO_zalloc(&word_38, (__int64)\"crypto/threads_pthread.c\", 16);\n  v1 = v0;\n  if ( v0 && pthread_rwlock_init(v0, nullptr) )\n  {\n    v3 = v1;\n    v1 = nullptr;\n    CRYPTO_free(v3, (__int64)\"crypto/threads_pthread.c\", 21);\n  }\n  return v1;\n}", "assembly": "; \n; CRYPTO_THREAD_lock_new from 0x105f048 to 0x105f0a8 (96 bytes)\n; \n; 30 xrefs:\n; > ssl_cert_new @ 0xfb81e0\n; > ssl_cert_dup @ 0xfb841c\n; > SSL_CTX_new @ 0xfbf820\n; > SSL_new @ 0xfc17e4\n; > SSL_SESSION_new @ 0xfc42b8\n; > ssl_session_dup @ 0xfc4538\n; > asn1_do_lock @ 0xfee6fc\n; > BIO_new @ 0xff47e8\n; > sub_FF5544 @ 0xff554c\n; > DH_new_method @ 0x10061a8\n; > DSA_new_method @ 0x1007b58\n; > DSO_new @ 0x1008d10\n; > DSO_load @ 0x1009244\n; > EC_KEY_new_method @ 0x100ee88\n; > ec_wNAF_precompute_mult @ 0x1011b80\n; > sub_10163C0 @ 0x101644c\n; > do_engine_lock_init_ossl_ @ 0x101b69c\n; > sub_101D8A8 @ 0x101d8bc\n; > EVP_PKEY_new @ 0x102a364\n; > sub_102CBF0 @ 0x102cc04\n; > sub_102FF50 @ 0x102ff80\n; > CRYPTO_secure_malloc_init @ 0x10343b4\n; > RSA_new_method @ 0x10521f8\n; > UI_new_method @ 0x10615b8\n; > sub_106289C @ 0x10628e4\n; > X509_STORE_new @ 0x1065a3c\n; > BN_BLINDING_new @ 0x1093458\n; > sub_10E4FE0 @ 0x10e4ffc\n; > sub_10E4FE0 @ 0x10e5008\n; > <???> @ 0x4f480\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:16:49 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x105f048\nMOV             X0, #0x38 ; '8'                                        ; +0x4, 0x105f04c\nMOV             W2, #0x10                                              ; +0x8, 0x105f050\nMOV             X29, SP                                                ; +0xc, 0x105f054\nSTP             X19, X20, [SP,#var_s10]                                ; +0x10, 0x105f058\nADRL            X20, aCryptoThreadsP; \"crypto/threads_pthread.c\"       ; +0x14, 0x105f05c\nMOV             X1, X20                                                ; +0x1c, 0x105f064\nBL              CRYPTO_zalloc                                          ; +0x20, 0x105f068\nMOV             X19, X0                                                ; +0x24, 0x105f06c\nCBZ             X0, loc_105F080                                        ; +0x28, 0x105f070\nMOV             X1, #0; attr                                           ; +0x2c, 0x105f074\nBL              .pthread_rwlock_init                                   ; +0x30, 0x105f078\nCBNZ            W0, loc_105F090                                        ; +0x34, 0x105f07c\nMOV             X0, X19                                                ; +0x38, 0x105f080\nLDP             X19, X20, [SP,#var_s10]                                ; +0x3c, 0x105f084\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x40, 0x105f088\nRET                                                                    ; +0x44, 0x105f08c\nMOV             X0, X19                                                ; +0x48, 0x105f090\nMOV             X1, X20                                                ; +0x4c, 0x105f094\nMOV             W2, #0x15                                              ; +0x50, 0x105f098\nMOV             X19, #0                                                ; +0x54, 0x105f09c\nBL              CRYPTO_free                                            ; +0x58, 0x105f0a0\nB               loc_105F080                                            ; +0x5c, 0x105f0a4", "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"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}