//
// gzclearerr from 0x9506e8 to 0x950728 (64 bytes)
//
// 0 xrefs:
//
// 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:05:23 +0000
//
void __fastcall gzclearerr(_DWORD *a1)
{
int v1; // r3
bool v2; // zf
int v3; // r2
void *v5; // r0
if ( a1 )
{
v1 = a1[3];
v2 = v1 == 31153;
if ( v1 != 31153 )
v2 = v1 == 7247;
v3 = !v2;
if ( v2 )
{
if ( v1 == 7247 )
{
a1[13] = v3;
a1[14] = v3;
}
v5 = (void *)a1[20];
if ( v5 )
{
if ( a1[19] != -4 )
free(v5);
a1[20] = 0;
}
a1[19] = 0;
}
}
}