{"type": "func", "start": 16890832, "end": 16890996, "name": "ENGINE_get_last", "pseudocode": "// \n// ENGINE_get_last from 0x101bbd0 to 0x101bc74 (164 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x44008\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 ENGINE_get_last()\n{\n  __int64 v0; // x19\n\n  if ( (unsigned int)CRYPTO_THREAD_run_once(&engine_lock_init, do_engine_lock_init_ossl_)\n    && do_engine_lock_init_ossl_ret_ )\n  {\n    CRYPTO_THREAD_write_lock(global_engine_lock);\n    v0 = qword_1566408;\n    if ( qword_1566408 )\n      ++*(_DWORD *)(qword_1566408 + 156);\n    CRYPTO_THREAD_unlock(global_engine_lock);\n    return v0;\n  }\n  else\n  {\n    ERR_put_error(38, 196, 65, \"crypto/engine/eng_list.c\", 159);\n    return 0;\n  }\n}", "assembly": "; \n; ENGINE_get_last from 0x101bbd0 to 0x101bc74 (164 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x44008\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; \nADRP            X0, #engine_lock_init_ptr@PAGE                         ; +0x0, 0x101bbd0\nADRP            X1, #do_engine_lock_init_ossl__ptr@PAGE                ; +0x4, 0x101bbd4\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x8, 0x101bbd8\nMOV             X29, SP                                                ; +0xc, 0x101bbdc\nLDR             X0, [X0,#engine_lock_init_ptr@PAGEOFF]; engine_lock_init ; +0x10, 0x101bbe0\nLDR             X1, [X1,#do_engine_lock_init_ossl__ptr@PAGEOFF]; do_engine_lock_init_ossl_ ; +0x14, 0x101bbe4\nSTP             X19, X20, [SP,#var_s10]                                ; +0x18, 0x101bbe8\nBL              CRYPTO_THREAD_run_once                                 ; +0x1c, 0x101bbec\nCBZ             W0, loc_101BC48                                        ; +0x20, 0x101bbf0\nADRP            X0, #do_engine_lock_init_ossl_ret__ptr@PAGE            ; +0x24, 0x101bbf4\nLDR             X0, [X0,#do_engine_lock_init_ossl_ret__ptr@PAGEOFF]; do_engine_lock_init_ossl_ret_ ; +0x28, 0x101bbf8\nLDR             W0, [X0]                                               ; +0x2c, 0x101bbfc\nCBZ             W0, loc_101BC48                                        ; +0x30, 0x101bc00\nADRP            X20, #global_engine_lock_ptr@PAGE                      ; +0x34, 0x101bc04\nLDR             X0, [X20,#global_engine_lock_ptr@PAGEOFF]; global_engine_lock ; +0x38, 0x101bc08\nLDR             X0, [X0]                                               ; +0x3c, 0x101bc0c\nBL              CRYPTO_THREAD_write_lock                               ; +0x40, 0x101bc10\nADRP            X0, #qword_1566408@PAGE                                ; +0x44, 0x101bc14\nLDR             X19, [X0,#qword_1566408@PAGEOFF]                       ; +0x48, 0x101bc18\nCBZ             X19, loc_101BC2C                                       ; +0x4c, 0x101bc1c\nLDR             W0, [X19,#0x9C]                                        ; +0x50, 0x101bc20\nADD             W0, W0, #1                                             ; +0x54, 0x101bc24\nSTR             W0, [X19,#0x9C]                                        ; +0x58, 0x101bc28\nLDR             X20, [X20,#global_engine_lock_ptr@PAGEOFF]; global_engine_lock ; +0x5c, 0x101bc2c\nLDR             X0, [X20]                                              ; +0x60, 0x101bc30\nBL              CRYPTO_THREAD_unlock                                   ; +0x64, 0x101bc34\nMOV             X0, X19                                                ; +0x68, 0x101bc38\nLDP             X19, X20, [SP,#var_s10]                                ; +0x6c, 0x101bc3c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x70, 0x101bc40\nRET                                                                    ; +0x74, 0x101bc44\nADRP            X3, #aCryptoEngineEn_4@PAGE; \"crypto/engine/eng_list.c\" ; +0x78, 0x101bc48\nMOV             W0, #0x26 ; '&'                                        ; +0x7c, 0x101bc4c\nMOV             W1, #0xC4                                              ; +0x80, 0x101bc50\nMOV             W2, #0x41 ; 'A'                                        ; +0x84, 0x101bc54\nADD             X3, X3, #aCryptoEngineEn_4@PAGEOFF; \"crypto/engine/eng_list.c\" ; +0x88, 0x101bc58\nMOV             W4, #0x9F                                              ; +0x8c, 0x101bc5c\nBL              ERR_put_error                                          ; +0x90, 0x101bc60\nMOV             X0, #0                                                 ; +0x94, 0x101bc64\nLDP             X19, X20, [SP,#var_s10]                                ; +0x98, 0x101bc68\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x9c, 0x101bc6c\nRET                                                                    ; +0xa0, 0x101bc70", "xrefs": ["<???> @ 0x44008"], "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"}