//
// gzbuffer from 0x7408a8 to 0x7408de (54 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
//
int __fastcall gzbuffer(_DWORD *a1, unsigned int a2)
{
int v3; // r2
bool v4; // zf
int result; // r0
if ( !a1 )
return -1;
v3 = a1[3];
v4 = v3 == 31153;
if ( v3 != 31153 )
v4 = v3 == 7247;
if ( !v4 )
return -1;
result = a1[6];
if ( result )
return -1;
if ( a2 <= 1 )
a2 = 2;
a1[7] = a2;
return result;
}