//
// cocos2d::ZipFile::ZipFile from 0x5f085c to 0x5f08dc (128 bytes)
//
// 1 xrefs:
// > cocos2d::CCFileUtils::sharedFileUtils @ 0x5e15e4
//
// 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
//
// Alternative name is '_ZN7cocos2d7ZipFileC2ERKSsS2_'
_DWORD *__fastcall cocos2d::ZipFile::ZipFile(_DWORD *a1, cocos2d **a2, const void **a3)
{
_DWORD *v6; // r5
_DWORD *v7; // r5
cocos2d *v8; // r0
_DWORD *v9; // r5
const char *v10; // r1
_DWORD *v11; // r5
const char *v12; // r1
int v13; // r0
_DWORD *v14; // r3
*a1 = &off_AAE030;
v6 = (_DWORD *)operator new(0x1Cu);
memset(v6 + 2, 0, 0x10u);
v6[6] = 0;
v6[4] = v6 + 2;
v6[5] = v6 + 2;
a1[1] = v6;
v7 = (_DWORD *)operator new(0x1Cu);
memset(v7 + 2, 0, 0x10u);
v7[6] = 0;
v7[4] = v7 + 2;
v7[5] = v7 + 2;
v8 = *a2;
a1[2] = v7;
v9 = (_DWORD *)a1[1];
*v9 = cocos2d::unzOpen(v8, v10);
v11 = (_DWORD *)a1[2];
v13 = cocos2d::unzOpen(*a2, v12);
v14 = (_DWORD *)a1[1];
*v11 = v13;
if ( *v14 && *(_DWORD *)a1[2] )
cocos2d::ZipFile::setFilter((int)a1, a3);
return a1;
}