//
// cocos2d::unzCloseCurrentFile from 0x5f1f02 to 0x5f1f5c (90 bytes)
//
// 6 xrefs:
// > cocos2d::extension::AssetsManager::uncompress @ 0x5a00ae
// > cocos2d::extension::AssetsManager::uncompress @ 0x5a0138
// > cocos2d::CCFileUtils::getFileDataFromZip @ 0x5de6b8
// > cocos2d::ZipFile::getFileData @ 0x5f0524
// > cocos2d::unzClose @ 0x5f1f68
// > cocos2d::unzOpenCurrentFile3 @ 0x5f1fbc
//
// 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::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;
}