//
// gzclearerr from 0x740b28 to 0x740b68 (64 bytes)
//
// 0 xrefs:
//
// 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
//
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;
}
}
}