{"type": "func", "start": 16890996, "end": 16891132, "name": "ENGINE_get_next", "pseudocode": "// \n// ENGINE_get_next from 0x101bc74 to 0x101bcfc (136 bytes)\n// \n// 13 xrefs:\n// > sub_E2F0F4 @ 0xe2f118\n// > ENGINE_register_all_complete @ 0x101b3c4\n// > ENGINE_register_all_complete @ 0x101b3e4\n// > ENGINE_register_all_pkey_asn1_meths @ 0x101c960\n// > ENGINE_register_all_ciphers @ 0x101cde8\n// > ENGINE_register_all_DH @ 0x101cf9c\n// > ENGINE_register_all_digests @ 0x101d0d0\n// > ENGINE_register_all_DSA @ 0x101d284\n// > ENGINE_register_all_EC @ 0x101d370\n// > ENGINE_register_all_pkey_meths @ 0x101d4a4\n// > ENGINE_register_all_RAND @ 0x101d6f0\n// > ENGINE_register_all_RSA @ 0x101d7dc\n// > <???> @ 0xb4e50\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_get_next(__int64 a1)\n{\n  __int64 v2; // x19\n\n  if ( a1 )\n  {\n    CRYPTO_THREAD_write_lock(global_engine_lock);\n    v2 = *(_QWORD *)(a1 + 184);\n    if ( v2 )\n      ++*(_DWORD *)(v2 + 156);\n    CRYPTO_THREAD_unlock(global_engine_lock);\n    ENGINE_free(a1);\n    return v2;\n  }\n  else\n  {\n    ERR_put_error(38, 115, 67, \"crypto/engine/eng_list.c\", 178);\n    return 0;\n  }\n}", "assembly": "; \n; ENGINE_get_next from 0x101bc74 to 0x101bcfc (136 bytes)\n; \n; 13 xrefs:\n; > sub_E2F0F4 @ 0xe2f118\n; > ENGINE_register_all_complete @ 0x101b3c4\n; > ENGINE_register_all_complete @ 0x101b3e4\n; > ENGINE_register_all_pkey_asn1_meths @ 0x101c960\n; > ENGINE_register_all_ciphers @ 0x101cde8\n; > ENGINE_register_all_DH @ 0x101cf9c\n; > ENGINE_register_all_digests @ 0x101d0d0\n; > ENGINE_register_all_DSA @ 0x101d284\n; > ENGINE_register_all_EC @ 0x101d370\n; > ENGINE_register_all_pkey_meths @ 0x101d4a4\n; > ENGINE_register_all_RAND @ 0x101d6f0\n; > ENGINE_register_all_RSA @ 0x101d7dc\n; > <???> @ 0xb4e50\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_30]!                                ; +0x0, 0x101bc74\nMOV             X29, SP                                                ; +0x4, 0x101bc78\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x8, 0x101bc7c\nMOV             X21, X0                                                ; +0xc, 0x101bc80\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x10, 0x101bc84\nCBZ             X0, loc_101BCD8                                        ; +0x14, 0x101bc88\nADRP            X20, #global_engine_lock_ptr@PAGE                      ; +0x18, 0x101bc8c\nLDR             X0, [X20,#global_engine_lock_ptr@PAGEOFF]; global_engine_lock ; +0x1c, 0x101bc90\nLDR             X0, [X0]                                               ; +0x20, 0x101bc94\nBL              CRYPTO_THREAD_write_lock                               ; +0x24, 0x101bc98\nLDR             X19, [X21,#0xB8]                                       ; +0x28, 0x101bc9c\nCBZ             X19, loc_101BCB0                                       ; +0x2c, 0x101bca0\nLDR             W0, [X19,#0x9C]                                        ; +0x30, 0x101bca4\nADD             W0, W0, #1                                             ; +0x34, 0x101bca8\nSTR             W0, [X19,#0x9C]                                        ; +0x38, 0x101bcac\nLDR             X20, [X20,#global_engine_lock_ptr@PAGEOFF]; global_engine_lock ; +0x3c, 0x101bcb0\nLDR             X0, [X20]                                              ; +0x40, 0x101bcb4\nBL              CRYPTO_THREAD_unlock                                   ; +0x44, 0x101bcb8\nMOV             X0, X21                                                ; +0x48, 0x101bcbc\nBL              ENGINE_free                                            ; +0x4c, 0x101bcc0\nMOV             X0, X19                                                ; +0x50, 0x101bcc4\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x54, 0x101bcc8\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x58, 0x101bccc\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x5c, 0x101bcd0\nRET                                                                    ; +0x60, 0x101bcd4\nADRP            X3, #aCryptoEngineEn_4@PAGE; \"crypto/engine/eng_list.c\" ; +0x64, 0x101bcd8\nMOV             W0, #0x26 ; '&'                                        ; +0x68, 0x101bcdc\nMOV             W1, #0x73 ; 's'                                        ; +0x6c, 0x101bce0\nMOV             W2, #0x43 ; 'C'                                        ; +0x70, 0x101bce4\nADD             X3, X3, #aCryptoEngineEn_4@PAGEOFF; \"crypto/engine/eng_list.c\" ; +0x74, 0x101bce8\nMOV             W4, #0xB2                                              ; +0x78, 0x101bcec\nBL              ERR_put_error                                          ; +0x7c, 0x101bcf0\nMOV             X0, X21                                                ; +0x80, 0x101bcf4\nB               loc_101BCC8                                            ; +0x84, 0x101bcf8", "xrefs": ["sub_E2F0F4 @ 0xe2f118", "ENGINE_register_all_complete @ 0x101b3c4", "ENGINE_register_all_complete @ 0x101b3e4", "ENGINE_register_all_pkey_asn1_meths @ 0x101c960", "ENGINE_register_all_ciphers @ 0x101cde8", "ENGINE_register_all_DH @ 0x101cf9c", "ENGINE_register_all_digests @ 0x101d0d0", "ENGINE_register_all_DSA @ 0x101d284", "ENGINE_register_all_EC @ 0x101d370", "ENGINE_register_all_pkey_meths @ 0x101d4a4", "ENGINE_register_all_RAND @ 0x101d6f0", "ENGINE_register_all_RSA @ 0x101d7dc", "<???> @ 0xb4e50"], "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"}