//
// ENGINE_get_prev from 0xa0c638 to 0xa0c6b0 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x7bf8c
//
// 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:44 +0000
//
int __fastcall ENGINE_get_prev(int a1)
{
int v2; // r4
int v3; // r0
if ( a1 )
{
CRYPTO_THREAD_write_lock(global_engine_lock);
v2 = *(_DWORD *)(a1 + 92);
v3 = global_engine_lock;
if ( v2 )
++*(_DWORD *)(v2 + 80);
CRYPTO_THREAD_unlock(v3);
ENGINE_free(a1);
return v2;
}
else
{
ERR_put_error(38, 116, 67, "crypto/engine/eng_list.c", 198);
return 0;
}
}