//
// ERR_peek_last_error from 0xa0fcd8 to 0xa0fcfc (36 bytes)
//
// 12 xrefs:
// > ssl_build_cert_chain @ 0x9a72ac
// > ssl_build_cert_chain @ 0x9a72fc
// > SSL_CTX_use_certificate_chain_file @ 0x9b17c0
// > SSL_use_certificate_chain_file @ 0x9b199c
// > CONF_modules_load_file @ 0x9ef924
// > ec_GFp_simple_set_compressed_coordinates @ 0xa07208
// > X509_load_cert_file @ 0xa517e4
// > X509_load_crl_file @ 0xa519b0
// > sub_A8E894 @ 0xa8e8e4
// > ec_GF2m_simple_set_compressed_coordinates @ 0xa9dbc8
// > PEM_X509_INFO_read_bio @ 0xacf41c
// > ??> @ 0x74f6c
//
// 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:45 +0000
//
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));
}