//
// ENGINE_get_last from 0xa0c4f0 to 0xa0c59c (172 bytes)
//
// 1 xrefs:
// > ??> @ 0x7bf7c
//
// 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:43 +0000
//
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_D34114;
if ( dword_D34114 )
++*(_DWORD *)(dword_D34114 + 80);
CRYPTO_THREAD_unlock(v0);
return v1;
}
else
{
ERR_put_error(38, 196, 65, "crypto/engine/eng_list.c", 159);
return 0;
}
}