//
// ERR_peek_last_error from 0x7fb0d8 to 0x7fb0fc (36 bytes)
//
// 12 xrefs:
// > ssl_build_cert_chain @ 0x7926a8
// > ssl_build_cert_chain @ 0x7926f8
// > SSL_CTX_use_certificate_chain_file @ 0x79cbbc
// > SSL_use_certificate_chain_file @ 0x79cd98
// > CONF_modules_load_file @ 0x7dad24
// > ec_GFp_simple_set_compressed_coordinates @ 0x7f2608
// > X509_load_cert_file @ 0x83cbe4
// > X509_load_crl_file @ 0x83cdb0
// > sub_879C94 @ 0x879ce4
// > ec_GF2m_simple_set_compressed_coordinates @ 0x888fc8
// > PEM_X509_INFO_read_bio @ 0x8ba41c
// > ??> @ 0x5b4ec
//
// 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 ERR_peek_last_error()
{
int state; // r0
int v1; // r3
state = ERR_get_state();
v1 = *(_DWORD *)(state + 384);
if ( *(_DWORD *)(state + 388) == v1 )
return 0;
else
return *(_DWORD *)(state + 4 * (v1 + 16));
}