//
// gzerror from 0xcc8ca0 to 0xcc8d04 (100 bytes)
//
// 1 xrefs:
// > ??> @ 0x2b428
//
// 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(__int64 a1, _DWORD *a2)
{
int v2; // w2
char *result; // x0
if ( !a1 )
return nullptr;
v2 = *(_DWORD *)(a1 + 24);
if ( v2 != 31153 && v2 != 7247 )
return nullptr;
if ( a2 )
*a2 = *(_DWORD *)(a1 + 108);
if ( *(_DWORD *)(a1 + 108) == -4 )
return "out of memory";
result = *(char **)(a1 + 112);
if ( !result )
return &byte_F288A0;
return result;
}