//
// cocos2d::ZipFile::~ZipFile from 0xd9b014 to 0xd9b0f0 (220 bytes)
//
// 4 xrefs:
// > cocos2d::ZipFile::~ZipFile @ 0xd9b100
// > ??> @ 0xd0768
// > ??> @ 0xd2e50
// > ??> @ 0x152f950
//
// 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:26 +0000
//
// Alternative name is '_ZN7cocos2d7ZipFileD2Ev'
void __fastcall cocos2d::ZipFile::~ZipFile(cocos2d::ZipFile *this, void *a2)
{
cocos2d **v3; // x21
cocos2d **v4; // x19
cocos2d *v5; // x0
cocos2d **v6; // x0
v3 = *((cocos2d ***)this + 1);
*(_QWORD *)this = off_152F950;
if ( v3 )
{
if ( !*v3 )
{
v6 = *((cocos2d ***)this + 2);
if ( !v6 )
goto LABEL_6;
v5 = *v6;
if ( !v5 )
goto LABEL_6;
goto LABEL_5;
}
cocos2d::unzClose(*v3, a2);
v4 = *((cocos2d ***)this + 2);
if ( !v4 )
{
v3 = *((cocos2d ***)this + 1);
if ( !v3 )
return;
goto LABEL_6;
}
}
else
{
v4 = *((cocos2d ***)this + 2);
if ( !v4 )
return;
}
v5 = *v4;
if ( !*v4 )
{
v3 = *((cocos2d ***)this + 1);
if ( !v3 )
goto LABEL_7;
goto LABEL_6;
}
LABEL_5:
cocos2d::unzClose(v5, a2);
v3 = *((cocos2d ***)this + 1);
if ( !v3 )
{
v4 = *((cocos2d ***)this + 2);
if ( v4 )
goto LABEL_7;
return;
}
LABEL_6:
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::~__tree((__int64)(v3 + 1));
operator delete(v3);
v4 = *((cocos2d ***)this + 2);
*((_QWORD *)this + 1) = 0;
if ( v4 )
{
LABEL_7:
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::~__tree((__int64)(v4 + 1));
operator delete(v4);
}
}