//
// ENGINE_get_last from 0xd9d870 to 0xd9d914 (164 bytes)
//
// 1 xrefs:
// > ??> @ 0x2d168
//
// 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 ENGINE_get_last()
{
__int64 v0; // x19
if ( (unsigned int)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 = qword_125D608;
if ( qword_125D608 )
++*(_DWORD *)(qword_125D608 + 156);
CRYPTO_THREAD_unlock(global_engine_lock);
return v0;
}
else
{
ERR_put_error(38, 196, 65, "crypto/engine/eng_list.c", 159);
return 0;
}
}