//
// cocos2d::unzGoToFirstFile64 from 0xd9e248 to 0xd9e300 (184 bytes)
//
// 3 xrefs:
// > cocos2d::ZipFile::setFilter @ 0xd9cddc
// > cocos2d::unzGoToFirstFile @ 0xd9e30c
// > ??> @ 0xe7c10
//
// 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::unzGoToFirstFile64(_QWORD *a1, void *a2, __int64 a3, unsigned __int64 a4)
{
const void *v6; // x22
unsigned int v7; // w20
if ( !a1 )
return 4294967194LL;
a1[17] = a1[21];
v6 = a1 + 22;
a1[16] = 0;
v7 = sub_D9D934((__int64)a1, a1 + 22, a1 + 39, a3, a4, 0, 0, 0, 0);
a1[18] = v7 == 0;
if ( !a2 )
return v7;
memcpy(a2, v6, 0x88u);
return v7;
}