{"type": "func", "start": 10536504, "end": 10536624, "name": "ENGINE_get_prev", "pseudocode": "// \n// ENGINE_get_prev from 0xa0c638 to 0xa0c6b0 (120 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x7bf8c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:44 +0000\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 0xa0c638 to 0xa0c6b0 (120 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x7bf8c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:44 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0xa0c638\nSUBS            R6, R0, #0                                             ; +0x4, 0xa0c63c\nSUB             SP, SP, #8                                             ; +0x8, 0xa0c640\nBEQ             loc_A0C688                                             ; +0xc, 0xa0c644\nLDR             R5, =(global_engine_lock_ptr - 0xA0C654)               ; +0x10, 0xa0c648\nLDR             R5, [PC,R5]; global_engine_lock                        ; +0x14, 0xa0c64c\nLDR             R0, [R5]                                               ; +0x18, 0xa0c650\nBL              CRYPTO_THREAD_write_lock                               ; +0x1c, 0xa0c654\nLDR             R4, [R6,#0x5C]                                         ; +0x20, 0xa0c658\nLDR             R0, [R5]                                               ; +0x24, 0xa0c65c\nCMP             R4, #0                                                 ; +0x28, 0xa0c660\nLDRNE           R3, [R4,#0x50]                                         ; +0x2c, 0xa0c664\nADDNE           R3, R3, #1                                             ; +0x30, 0xa0c668\nSTRNE           R3, [R4,#0x50]                                         ; +0x34, 0xa0c66c\nBL              CRYPTO_THREAD_unlock                                   ; +0x38, 0xa0c670\nMOV             R0, R6                                                 ; +0x3c, 0xa0c674\nBL              ENGINE_free                                            ; +0x40, 0xa0c678\nMOV             R0, R4                                                 ; +0x44, 0xa0c67c\nADD             SP, SP, #8                                             ; +0x48, 0xa0c680\nPOP             {R4-R6,PC}                                             ; +0x4c, 0xa0c684\nMOV             R3, #0xC6                                              ; +0x50, 0xa0c688\nSTR             R3, [SP,#8+var_8]                                      ; +0x54, 0xa0c68c\nLDR             R3, =(aCryptoEngineEn_4 - 0xA0C6A8); \"crypto/engine/eng_list.c\" ; +0x58, 0xa0c690\nMOV             R0, #0x26 ; '&'                                        ; +0x5c, 0xa0c694\nMOV             R1, #0x74 ; 't'                                        ; +0x60, 0xa0c698\nMOV             R2, #0x43 ; 'C'                                        ; +0x64, 0xa0c69c\nADD             R3, PC, R3; \"crypto/engine/eng_list.c\"                 ; +0x68, 0xa0c6a0\nBL              ERR_put_error                                          ; +0x6c, 0xa0c6a4\nMOV             R0, R6                                                 ; +0x70, 0xa0c6a8\nB               loc_A0C680                                             ; +0x74, 0xa0c6ac", "xrefs": ["<???> @ 0x7bf8c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}