//
// cocos2d::ZipFile::ZipFile from 0x7fbacc to 0x7fbb40 (116 bytes)
//
// 1 xrefs:
// > cocos2d::CCFileUtils::sharedFileUtils @ 0x7eb04e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:15 +0000
//
// Alternative name is '_ZN7cocos2d7ZipFileC2ERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_'
_DWORD *__fastcall cocos2d::ZipFile::ZipFile(_DWORD *a1, int a2, unsigned __int8 *a3)
{
_DWORD *v6; // r0
_DWORD *v7; // r0
const char *v8; // r1
_DWORD *v9; // r7
cocos2d *v10; // r0
const char *v11; // r1
_DWORD *v12; // r7
cocos2d *v13; // r0
*a1 = &off_D11AC0;
v6 = (_DWORD *)operator new(0x10u);
v6[2] = 0;
v6[3] = 0;
v6[1] = v6 + 2;
a1[1] = v6;
v7 = (_DWORD *)operator new(0x10u);
v7[2] = 0;
v7[3] = 0;
v7[1] = v7 + 2;
a1[2] = v7;
if ( (*(_BYTE *)a2 & 1) != 0 )
v10 = *(cocos2d **)(a2 + 8);
else
v10 = (cocos2d *)(a2 + 1);
v9 = (_DWORD *)a1[1];
*v9 = cocos2d::unzOpen(v10, v8);
if ( (*(_BYTE *)a2 & 1) != 0 )
v13 = *(cocos2d **)(a2 + 8);
else
v13 = (cocos2d *)(a2 + 1);
v12 = (_DWORD *)a1[2];
*v12 = cocos2d::unzOpen(v13, v11);
if ( *(_DWORD *)a1[1] && *(_DWORD *)a1[2] )
cocos2d::ZipFile::setFilter((int)a1, a3);
return a1;
}