//
// cocos2d::unzGoToNextFile64 from 0x1800a1010 to 0x1800a112f (287 bytes)
//
// 7 xrefs:
// > cocos2d::unzGoToNextFile @ 0x1800a1138
// > cocos2d::unzLocateFile @ 0x1800a1325
// > ??> @ 0x18013f2c8
// > ??> @ 0x18013f2dc
// > ??> @ 0x18013f2ec
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b7848
//
// 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
//
__int64 __fastcall cocos2d::unzGoToNextFile64(
cocos2d *this,
_OWORD *a2,
struct cocos2d::unz_file_info64_s *a3,
char *a4)
{
__int64 result; // rax
__int64 v7; // rcx
int v8; // ecx
int v9; // eax
if ( !this )
return 4294967194LL;
if ( !*((_QWORD *)this + 18) )
return 4294967196LL;
v7 = *((_QWORD *)this + 13);
if ( v7 != 0xFFFF && *((_QWORD *)this + 16) + 1LL == v7 )
return 4294967196LL;
v8 = *((_DWORD *)this + 55) + *((_DWORD *)this + 56);
v9 = *((_DWORD *)this + 54) + 46;
++*((_QWORD *)this + 16);
*((_QWORD *)this + 17) += (unsigned int)(v8 + v9);
result = sub_18009FC50(
(__int64)this,
(__int64)this + 176,
(_QWORD *)this + 33,
(__int64)a3,
(unsigned int)a4,
0,
0,
0,
0);
*((_QWORD *)this + 18) = (_DWORD)result == 0;
if ( a2 )
{
*a2 = *((_OWORD *)this + 11);
a2[1] = *((_OWORD *)this + 12);
a2[2] = *((_OWORD *)this + 13);
a2[3] = *((_OWORD *)this + 14);
a2[4] = *((_OWORD *)this + 15);
*((_QWORD *)a2 + 10) = *((_QWORD *)this + 32);
}
return result;
}