//
// ENGINE_get_next from 0x101bc74 to 0x101bcfc (136 bytes)
//
// 13 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
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:16:08 +0000
//
__int64 __fastcall ENGINE_get_next(__int64 a1)
{
__int64 v2; // x19
if ( a1 )
{
CRYPTO_THREAD_write_lock(global_engine_lock);
v2 = *(_QWORD *)(a1 + 184);
if ( v2 )
++*(_DWORD *)(v2 + 156);
CRYPTO_THREAD_unlock(global_engine_lock);
ENGINE_free(a1);
return v2;
}
else
{
ERR_put_error(38, 115, 67, "crypto/engine/eng_list.c", 178);
return 0;
}
}