//
// ERR_peek_error from 0xa0fcfc to 0xa0fd38 (60 bytes)
//
// 8 xrefs:
// > sub_8539B8 @ 0x853e9c
// > SSL_get_error @ 0x9ae6c8
// > SSL_CTX_use_certificate_chain_file @ 0x9b1730
// > SSL_use_certificate_chain_file @ 0x9b190c
// > PEM_bytes_read_bio @ 0xa37e04
// > ASN1_d2i_bio @ 0xa74e38
// > ASN1_item_d2i_bio @ 0xa752dc
// > ??> @ 0x6814c
//
// 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_error()
{
int state; // r0
int v1; // r3
state = ERR_get_state();
v1 = *(_DWORD *)(state + 388);
if ( v1 == *(_DWORD *)(state + 384) )
return 0;
else
return *(_DWORD *)(state + 4 * ((v1 + 1) % 16 + 16));
}