//
// gzbuffer from 0x950468 to 0x95049e (54 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
//
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;
}