//
// gzerror from 0xf3ee60 to 0xf3eec4 (100 bytes)
//
// 1 xrefs:
// > ??> @ 0x41ab8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:13:06 +0000
//
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_11B8890;
return result;
}