//
// gzerror from 0x740ae4 to 0x740b20 (60 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
//
char *__fastcall gzerror(char *result, _DWORD *a2)
{
int v2; // r3
bool v3; // zf
if ( result )
{
v2 = *((_DWORD *)result + 3);
v3 = v2 == 31153;
if ( v2 != 31153 )
v3 = v2 == 7247;
if ( v3 )
{
if ( a2 )
*a2 = *((_DWORD *)result + 19);
if ( *((_DWORD *)result + 19) == -4 )
{
return "out of memory";
}
else
{
result = *((char **)result + 20);
if ( !result )
return &byte_9B1912;
}
}
else
{
return nullptr;
}
}
return result;
}