//
// ENGINE_get_next from 0xa0c5b8 to 0xa0c630 (120 bytes)
//
// 13 xrefs:
// > sub_854AF8 @ 0x854b0a
// > ENGINE_register_all_complete @ 0xa0bc78
// > ENGINE_register_all_complete @ 0xa0bc9c
// > ENGINE_register_all_pkey_asn1_meths @ 0xa0d318
// > ENGINE_register_all_ciphers @ 0xa0d750
// > ENGINE_register_all_DH @ 0xa0d914
// > ENGINE_register_all_digests @ 0xa0da64
// > ENGINE_register_all_DSA @ 0xa0dc28
// > ENGINE_register_all_EC @ 0xa0dd58
// > ENGINE_register_all_pkey_meths @ 0xa0dea8
// > ENGINE_register_all_RAND @ 0xa0e0f0
// > ENGINE_register_all_RSA @ 0xa0e220
// > ??> @ 0x6846c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:43 +0000
//
int __fastcall ENGINE_get_next(int a1)
{
int v2; // r4
int v3; // r0
if ( a1 )
{
CRYPTO_THREAD_write_lock(global_engine_lock);
v2 = *(_DWORD *)(a1 + 96);
v3 = global_engine_lock;
if ( v2 )
++*(_DWORD *)(v2 + 80);
CRYPTO_THREAD_unlock(v3);
ENGINE_free(a1);
return v2;
}
else
{
ERR_put_error(38, 115, 67, "crypto/engine/eng_list.c", 178);
return 0;
}
}