//
// cocos2d::unzCloseCurrentFile from 0x7fd5a6 to 0x7fd600 (90 bytes)
//
// 6 xrefs:
// > cocos2d::extension::AssetsManager::uncompress @ 0x7a5af4
// > cocos2d::extension::AssetsManager::uncompress @ 0x7a5b8a
// > cocos2d::CCFileUtils::getFileDataFromZip @ 0x7e6e18
// > cocos2d::ZipFile::getFileData @ 0x7fafd2
// > cocos2d::unzClose @ 0x7fd60c
// > cocos2d::unzOpenCurrentFile3 @ 0x7fd660
//
// 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:17 +0000
//
int __fastcall cocos2d::unzCloseCurrentFile(cocos2d *this, void *a2)
{
int v3; // r4
int v4; // r5
if ( !this )
return -102;
v3 = *((_DWORD *)this + 56);
if ( !v3 )
return -102;
if ( *(_QWORD *)(v3 + 128) || *(_DWORD *)(v3 + 200) )
{
v4 = 0;
}
else if ( *(_DWORD *)(v3 + 112) == *(_DWORD *)(v3 + 116) )
{
v4 = 0;
}
else
{
v4 = -105;
}
if ( *(_DWORD *)v3 )
free(*(void **)v3);
*(_DWORD *)v3 = 0;
if ( *(_DWORD *)(v3 + 72) == 8 )
inflateEnd(v3 + 4);
free((void *)v3);
*((_DWORD *)this + 56) = 0;
return v4;
}