//
// cocos2d::unzGetGlobalComment from 0x7fd9b2 to 0x7fda14 (98 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:01:17 +0000
//
int __fastcall cocos2d::unzGetGlobalComment(cocos2d *this, _BYTE *a2, char *a3, unsigned int a4)
{
char *v7; // r4
unsigned int v9; // r3
if ( this )
{
v7 = *((char **)this + 16);
if ( v7 >= a3 )
v7 = a3;
if ( cocos2d::call_zseek64(
(int)this,
*((_DWORD *)this + 12),
*((_DWORD *)this + 26) + 22,
(unsigned __int64)(*((_QWORD *)this + 13) + 22LL) >> 32,
0) )
{
return -1;
}
if ( v7 )
{
*a2 = 0;
if ( (char *)(*((int (__fastcall **)(_DWORD, _DWORD, _BYTE *, char *))this + 1))(
*((_DWORD *)this + 7),
*((_DWORD *)this + 12),
a2,
v7) != v7 )
return -1;
}
else if ( !a2 )
{
return (int)v7;
}
v9 = *((_DWORD *)this + 16);
if ( (unsigned int)a3 > v9 )
a2[v9] = 0;
return (int)v7;
}
return -102;
}