//
// ENGINE_get_prev from 0x7f7a38 to 0x7f7ab0 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x6250c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
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;
}
}