//
// gzerror from 0x9506a4 to 0x9506e0 (60 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
//
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_BF4ECA;
}
}
else
{
return nullptr;
}
}
return result;
}