//
// ENGINE_get_last from 0x7f78f0 to 0x7f799c (172 bytes)
//
// 1 xrefs:
// > ??> @ 0x624fc
//
// 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 ENGINE_get_last()
{
int v0; // r0
int v1; // r4
if ( CRYPTO_THREAD_run_once(&engine_lock_init, do_engine_lock_init_ossl_) && do_engine_lock_init_ossl_ret_ )
{
CRYPTO_THREAD_write_lock(global_engine_lock);
v0 = global_engine_lock;
v1 = dword_AD2E88;
if ( dword_AD2E88 )
++*(_DWORD *)(dword_AD2E88 + 80);
CRYPTO_THREAD_unlock(v0);
return v1;
}
else
{
ERR_put_error(38, 196, 65, "crypto/engine/eng_list.c", 159);
return 0;
}
}