//
// ERR_peek_last_error from 0x101f1b4 to 0x101f1ec (56 bytes)
//
// 12 xrefs:
// > ssl_build_cert_chain @ 0xfb9bd0
// > ssl_build_cert_chain @ 0xfb9c20
// > SSL_CTX_use_certificate_chain_file @ 0xfc394c
// > SSL_use_certificate_chain_file @ 0xfc3b18
// > CONF_modules_load_file @ 0x1000b28
// > ec_GFp_simple_set_compressed_coordinates @ 0x1016c94
// > X509_load_cert_file @ 0x1062de4
// > X509_load_crl_file @ 0x1062f98
// > sub_10A2708 @ 0x10a2760
// > ec_GF2m_simple_set_compressed_coordinates @ 0x10b0ad8
// > PEM_X509_INFO_read_bio @ 0x10e28a4
// > ??> @ 0xcfbe0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:09 +0000
//
__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);
}