//
// cocos2d::unzGetGlobalComment from 0xd9f9d8 to 0xd9fa80 (168 bytes)
//
// 1 xrefs:
// > ??> @ 0x57340
//
// 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:08:28 +0000
//
__int64 __fastcall cocos2d::unzGetGlobalComment(cocos2d *this, _BYTE *a2, char *a3)
{
char *v5; // x20
unsigned __int64 v7; // x0
if ( !this )
return 4294967194LL;
v5 = *((char **)this + 14);
if ( a3 <= v5 )
v5 = a3;
if ( !cocos2d::call_zseek64((__int64)this) )
{
if ( !v5 )
{
if ( !a2 )
return (unsigned int)v5;
LABEL_7:
v7 = *((_QWORD *)this + 14);
if ( (unsigned __int64)a3 > v7 )
a2[v7] = 0;
return (unsigned int)v5;
}
*a2 = 0;
if ( (char *)(*((__int64 (__fastcall **)(_QWORD, _QWORD, _BYTE *, char *))this + 1))(
*((_QWORD *)this + 7),
*((_QWORD *)this + 12),
a2,
v5) == v5 )
goto LABEL_7;
}
return 0xFFFFFFFFLL;
}