//
// ERR_peek_last_error from 0xda0e54 to 0xda0e8c (56 bytes)
//
// 12 xrefs:
// > ssl_build_cert_chain @ 0xd3b87c
// > ssl_build_cert_chain @ 0xd3b8cc
// > SSL_CTX_use_certificate_chain_file @ 0xd455f8
// > SSL_use_certificate_chain_file @ 0xd457c4
// > CONF_modules_load_file @ 0xd827c8
// > ec_GFp_simple_set_compressed_coordinates @ 0xd98934
// > X509_load_cert_file @ 0xde4aa4
// > X509_load_crl_file @ 0xde4c58
// > sub_E24408 @ 0xe24460
// > ec_GF2m_simple_set_compressed_coordinates @ 0xe327d8
// > PEM_X509_INFO_read_bio @ 0xe648a4
// > ??> @ 0x9dcb0
//
// 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 ERR_peek_last_error()
{
__int64 state; // x0
int v1; // w1
state = ERR_get_state();
v1 = *(_DWORD *)(state + 576);
if ( *(_DWORD *)(state + 580) == v1 )
return 0;
else
return *(_QWORD *)(state + 8LL * v1 + 64);
}