//
// ENGINE_get_prev from 0x101bcfc to 0x101bd84 (136 bytes)
//
// 1 xrefs:
// > ??> @ 0x103f60
//
// 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_prev(__int64 a1)
{
__int64 v2; // x19
if ( a1 )
{
CRYPTO_THREAD_write_lock(global_engine_lock);
v2 = *(_QWORD *)(a1 + 176);
if ( v2 )
++*(_DWORD *)(v2 + 156);
CRYPTO_THREAD_unlock(global_engine_lock);
ENGINE_free(a1);
return v2;
}
else
{
ERR_put_error(38, 116, 67, "crypto/engine/eng_list.c", 198);
return 0;
}
}