{"type": "func", "start": 16893572, "end": 16893920, "name": "ENGINE_load_ssl_client_cert", "pseudocode": "// \n// ENGINE_load_ssl_client_cert from 0x101c684 to 0x101c7e0 (348 bytes)\n// \n// 2 xrefs:\n// > ssl_do_client_cert_cb @ 0xfca7c0\n// > <???> @ 0x96010\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:08 +0000\n// \n\n__int64 __fastcall ENGINE_load_ssl_client_cert(\n        __int64 a1,\n        __int64 a2,\n        __int64 a3,\n        __int64 a4,\n        __int64 a5,\n        __int64 a6,\n        __int64 a7,\n        __int64 a8)\n{\n  __int64 (__fastcall *v9)(__int64, __int64, __int64, __int64, __int64, __int64, __int64, __int64); // x19\n\n  if ( a1 )\n  {\n    CRYPTO_THREAD_write_lock(global_engine_lock);\n    if ( *(_DWORD *)(a1 + 160) )\n    {\n      CRYPTO_THREAD_unlock(global_engine_lock);\n      v9 = *(__int64 (__fastcall **)(__int64, __int64, __int64, __int64, __int64, __int64, __int64, __int64))(a1 + 136);\n      if ( v9 )\n        LODWORD(v9) = v9(a1, a2, a3, a4, a5, a6, a7, a8);\n      else\n        ERR_put_error(38, 194, 125, \"crypto/engine/eng_pkey.c\", 135);\n      return (unsigned int)v9;\n    }\n    else\n    {\n      CRYPTO_THREAD_unlock(global_engine_lock);\n      ERR_put_error(38, 194, 117, \"crypto/engine/eng_pkey.c\", 129);\n      return 0;\n    }\n  }\n  else\n  {\n    ERR_put_error(38, 194, 67, \"crypto/engine/eng_pkey.c\", 122);\n    return 0;\n  }\n}", "assembly": "; \n; ENGINE_load_ssl_client_cert from 0x101c684 to 0x101c7e0 (348 bytes)\n; \n; 2 xrefs:\n; > ssl_do_client_cert_cb @ 0xfca7c0\n; > <???> @ 0x96010\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:08 +0000\n; \nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0x101c684\nMOV             X29, SP                                                ; +0x4, 0x101c688\nSTR             X21, [SP,#0x70+var_50]                                 ; +0x8, 0x101c68c\nMOV             X21, X0                                                ; +0xc, 0x101c690\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x10, 0x101c694\nCBZ             X0, loc_101C7AC                                        ; +0x14, 0x101c698\nADRP            X20, #global_engine_lock_ptr@PAGE                      ; +0x18, 0x101c69c\nSTR             X7, [X29,#0x70+var_38]                                 ; +0x1c, 0x101c6a0\nSTR             X6, [X29,#0x70+var_30]                                 ; +0x20, 0x101c6a4\nSTR             X5, [X29,#0x70+var_28]                                 ; +0x24, 0x101c6a8\nLDR             X20, [X20,#global_engine_lock_ptr@PAGEOFF]; global_engine_lock ; +0x28, 0x101c6ac\nSTR             X4, [X29,#0x70+var_20]                                 ; +0x2c, 0x101c6b0\nSTR             X3, [X29,#0x70+var_18]                                 ; +0x30, 0x101c6b4\nLDR             X0, [X20]                                              ; +0x34, 0x101c6b8\nSTR             X2, [X29,#0x70+var_10]                                 ; +0x38, 0x101c6bc\nSTR             X1, [X29,#0x70+var_8]                                  ; +0x3c, 0x101c6c0\nBL              CRYPTO_THREAD_write_lock                               ; +0x40, 0x101c6c4\nLDR             W19, [X21,#0xA0]                                       ; +0x44, 0x101c6c8\nLDR             X1, [X29,#0x70+var_8]                                  ; +0x48, 0x101c6cc\nLDR             X2, [X29,#0x70+var_10]                                 ; +0x4c, 0x101c6d0\nLDR             X3, [X29,#0x70+var_18]                                 ; +0x50, 0x101c6d4\nLDR             X4, [X29,#0x70+var_20]                                 ; +0x54, 0x101c6d8\nLDR             X5, [X29,#0x70+var_28]                                 ; +0x58, 0x101c6dc\nLDR             X6, [X29,#0x70+var_30]                                 ; +0x5c, 0x101c6e0\nLDR             X7, [X29,#0x70+var_38]                                 ; +0x60, 0x101c6e4\nCBZ             W19, loc_101C754                                       ; +0x64, 0x101c6e8\nLDR             X0, [X20]                                              ; +0x68, 0x101c6ec\nSTR             X7, [X29,#0x70+var_38]                                 ; +0x6c, 0x101c6f0\nSTR             X6, [X29,#0x70+var_30]                                 ; +0x70, 0x101c6f4\nSTR             X5, [X29,#0x70+var_28]                                 ; +0x74, 0x101c6f8\nSTR             X4, [X29,#0x70+var_20]                                 ; +0x78, 0x101c6fc\nSTR             X3, [X29,#0x70+var_18]                                 ; +0x7c, 0x101c700\nSTR             X2, [X29,#0x70+var_10]                                 ; +0x80, 0x101c704\nSTR             X1, [X29,#0x70+var_8]                                  ; +0x84, 0x101c708\nBL              CRYPTO_THREAD_unlock                                   ; +0x88, 0x101c70c\nLDR             X19, [X21,#0x88]                                       ; +0x8c, 0x101c710\nLDR             X1, [X29,#0x70+var_8]                                  ; +0x90, 0x101c714\nLDR             X2, [X29,#0x70+var_10]                                 ; +0x94, 0x101c718\nLDR             X3, [X29,#0x70+var_18]                                 ; +0x98, 0x101c71c\nLDR             X4, [X29,#0x70+var_20]                                 ; +0x9c, 0x101c720\nLDR             X5, [X29,#0x70+var_28]                                 ; +0xa0, 0x101c724\nLDR             X6, [X29,#0x70+var_30]                                 ; +0xa4, 0x101c728\nLDR             X7, [X29,#0x70+var_38]                                 ; +0xa8, 0x101c72c\nCBZ             X19, loc_101C78C                                       ; +0xac, 0x101c730\nMOV             X0, X21                                                ; +0xb0, 0x101c734\nBLR             X19                                                    ; +0xb4, 0x101c738\nMOV             W19, W0                                                ; +0xb8, 0x101c73c\nMOV             W0, W19                                                ; +0xbc, 0x101c740\nLDR             X21, [SP,#0x70+var_50]                                 ; +0xc0, 0x101c744\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0xc4, 0x101c748\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0xc8, 0x101c74c\nRET                                                                    ; +0xcc, 0x101c750\nLDR             X0, [X20]                                              ; +0xd0, 0x101c754\nBL              CRYPTO_THREAD_unlock                                   ; +0xd4, 0x101c758\nADRP            X3, #aCryptoEngineEn_5@PAGE; \"crypto/engine/eng_pkey.c\" ; +0xd8, 0x101c75c\nMOV             W0, #0x26 ; '&'                                        ; +0xdc, 0x101c760\nMOV             W1, #0xC2                                              ; +0xe0, 0x101c764\nMOV             W2, #0x75 ; 'u'                                        ; +0xe4, 0x101c768\nADD             X3, X3, #aCryptoEngineEn_5@PAGEOFF; \"crypto/engine/eng_pkey.c\" ; +0xe8, 0x101c76c\nMOV             W4, #0x81                                              ; +0xec, 0x101c770\nBL              ERR_put_error                                          ; +0xf0, 0x101c774\nLDR             X21, [SP,#0x70+var_50]                                 ; +0xf4, 0x101c778\nMOV             W0, W19                                                ; +0xf8, 0x101c77c\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0xfc, 0x101c780\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x100, 0x101c784\nRET                                                                    ; +0x104, 0x101c788\nADRP            X3, #aCryptoEngineEn_5@PAGE; \"crypto/engine/eng_pkey.c\" ; +0x108, 0x101c78c\nMOV             W0, #0x26 ; '&'                                        ; +0x10c, 0x101c790\nMOV             W1, #0xC2                                              ; +0x110, 0x101c794\nMOV             W2, #0x7D ; '}'                                        ; +0x114, 0x101c798\nADD             X3, X3, #aCryptoEngineEn_5@PAGEOFF; \"crypto/engine/eng_pkey.c\" ; +0x118, 0x101c79c\nMOV             W4, #0x87                                              ; +0x11c, 0x101c7a0\nBL              ERR_put_error                                          ; +0x120, 0x101c7a4\nB               loc_101C740                                            ; +0x124, 0x101c7a8\nADRP            X3, #aCryptoEngineEn_5@PAGE; \"crypto/engine/eng_pkey.c\" ; +0x128, 0x101c7ac\nMOV             W0, #0x26 ; '&'                                        ; +0x12c, 0x101c7b0\nMOV             W1, #0xC2                                              ; +0x130, 0x101c7b4\nMOV             W2, #0x43 ; 'C'                                        ; +0x134, 0x101c7b8\nADD             X3, X3, #aCryptoEngineEn_5@PAGEOFF; \"crypto/engine/eng_pkey.c\" ; +0x138, 0x101c7bc\nMOV             W4, #0x7A ; 'z'                                        ; +0x13c, 0x101c7c0\nMOV             W19, W21                                               ; +0x140, 0x101c7c4\nBL              ERR_put_error                                          ; +0x144, 0x101c7c8\nLDR             X21, [SP,#0x70+var_50]                                 ; +0x148, 0x101c7cc\nMOV             W0, W19                                                ; +0x14c, 0x101c7d0\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0x150, 0x101c7d4\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x154, 0x101c7d8\nRET                                                                    ; +0x158, 0x101c7dc", "xrefs": ["ssl_do_client_cert_cb @ 0xfca7c0", "<???> @ 0x96010"], "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"}