//
// cocos2d::unzGoToFirstFile64 from 0x5f12b8 to 0x5f1320 (104 bytes)
//
// 2 xrefs:
// > sub_5F05AC @ 0x5f05f0
// > cocos2d::unzGoToFirstFile @ 0x5f1326
//
// 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
//
int __fastcall cocos2d::unzGoToFirstFile64(int a1, void *a2, int a3, unsigned int a4)
{
const void *v6; // r7
int v7; // r0
int v8; // r5
if ( !a1 )
return -102;
v6 = (const void *)(a1 + 128);
*(_QWORD *)(a1 + 88) = *(_QWORD *)(a1 + 120);
*(_QWORD *)(a1 + 80) = 0;
v7 = sub_5F0D50(a1, (void *)(a1 + 128), (_QWORD *)(a1 + 216), a3, a4, 0, 0, 0, 0);
*(_DWORD *)(a1 + 100) = 0;
v8 = v7;
*(_DWORD *)(a1 + 96) = v7 == 0;
if ( a2 )
memcpy(a2, v6, 0x58u);
return v8;
}