//
// ENGINE_get_prev from 0xd9d99c to 0xd9da24 (136 bytes)
//
// 1 xrefs:
// > ??> @ 0xc7e00
//
// 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
//
__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;
}
}