{"type": "func", "start": 8354360, "end": 8354480, "name": "ENGINE_get_prev", "pseudocode": "// \n// ENGINE_get_prev from 0x7f7a38 to 0x7f7ab0 (120 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x6250c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall ENGINE_get_prev(int a1)\n{\n  int v2; // r4\n  int v3; // r0\n\n  if ( a1 )\n  {\n    CRYPTO_THREAD_write_lock(global_engine_lock);\n    v2 = *(_DWORD *)(a1 + 92);\n    v3 = global_engine_lock;\n    if ( v2 )\n      ++*(_DWORD *)(v2 + 80);\n    CRYPTO_THREAD_unlock(v3);\n    ENGINE_free(a1);\n    return v2;\n  }\n  else\n  {\n    ERR_put_error(38, 116, 67, \"crypto/engine/eng_list.c\", 198);\n    return 0;\n  }\n}", "assembly": "; \n; ENGINE_get_prev from 0x7f7a38 to 0x7f7ab0 (120 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x6250c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x7f7a38\nSUBS            R6, R0, #0                                             ; +0x4, 0x7f7a3c\nSUB             SP, SP, #8                                             ; +0x8, 0x7f7a40\nBEQ             loc_7F7A88                                             ; +0xc, 0x7f7a44\nLDR             R5, =(global_engine_lock_ptr - 0x7F7A54)               ; +0x10, 0x7f7a48\nLDR             R5, [PC,R5]; global_engine_lock                        ; +0x14, 0x7f7a4c\nLDR             R0, [R5]                                               ; +0x18, 0x7f7a50\nBL              CRYPTO_THREAD_write_lock                               ; +0x1c, 0x7f7a54\nLDR             R4, [R6,#0x5C]                                         ; +0x20, 0x7f7a58\nLDR             R0, [R5]                                               ; +0x24, 0x7f7a5c\nCMP             R4, #0                                                 ; +0x28, 0x7f7a60\nLDRNE           R3, [R4,#0x50]                                         ; +0x2c, 0x7f7a64\nADDNE           R3, R3, #1                                             ; +0x30, 0x7f7a68\nSTRNE           R3, [R4,#0x50]                                         ; +0x34, 0x7f7a6c\nBL              CRYPTO_THREAD_unlock                                   ; +0x38, 0x7f7a70\nMOV             R0, R6                                                 ; +0x3c, 0x7f7a74\nBL              ENGINE_free                                            ; +0x40, 0x7f7a78\nMOV             R0, R4                                                 ; +0x44, 0x7f7a7c\nADD             SP, SP, #8                                             ; +0x48, 0x7f7a80\nPOP             {R4-R6,PC}                                             ; +0x4c, 0x7f7a84\nMOV             R3, #0xC6                                              ; +0x50, 0x7f7a88\nSTR             R3, [SP,#8+var_8]                                      ; +0x54, 0x7f7a8c\nLDR             R3, =(aCryptoEngineEn_4 - 0x7F7AA8); \"crypto/engine/eng_list.c\" ; +0x58, 0x7f7a90\nMOV             R0, #0x26 ; '&'                                        ; +0x5c, 0x7f7a94\nMOV             R1, #0x74 ; 't'                                        ; +0x60, 0x7f7a98\nMOV             R2, #0x43 ; 'C'                                        ; +0x64, 0x7f7a9c\nADD             R3, PC, R3; \"crypto/engine/eng_list.c\"                 ; +0x68, 0x7f7aa0\nBL              ERR_put_error                                          ; +0x6c, 0x7f7aa4\nMOV             R0, R6                                                 ; +0x70, 0x7f7aa8\nB               loc_7F7A80                                             ; +0x74, 0x7f7aac", "xrefs": ["<???> @ 0x6250c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}