//
// cocos2d::unzGoToFirstFile64 from 0x1800a0ec0 to 0x1800a0f8d (205 bytes)
//
// 4 xrefs:
// > ??> @ 0x18013f290
// > ??> @ 0x18013f2a4
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b7818
//
// 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::unzGoToFirstFile64(
cocos2d *this,
_OWORD *a2,
struct cocos2d::unz_file_info64_s *a3,
char *a4)
{
__int64 result; // rax
char *v7; // rsi
if ( !this )
return 4294967194LL;
v7 = (char *)this + 176;
*((_QWORD *)this + 17) = *((_QWORD *)this + 21);
*((_QWORD *)this + 16) = 0;
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 *)v7;
a2[1] = *((_OWORD *)v7 + 1);
a2[2] = *((_OWORD *)v7 + 2);
a2[3] = *((_OWORD *)v7 + 3);
a2[4] = *((_OWORD *)v7 + 4);
*((_QWORD *)a2 + 10) = *((_QWORD *)v7 + 10);
}
return result;
}