//
// cocos2d::unzCloseCurrentFile from 0x1800a08c0 to 0x1800a0975 (181 bytes)
//
// 6 xrefs:
// > cocos2d::CCFileUtils::getFileDataFromZip @ 0x180070137
// > cocos2d::unzClose @ 0x1800a0891
// > cocos2d::unzOpenCurrentFile3 @ 0x1800a1516
// > cocos2d::unzOpenCurrentFilePassword @ 0x1800a17b2
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b7794
//
// 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
//
__int64 __fastcall cocos2d::unzCloseCurrentFile(cocos2d *this, void *a2)
{
unsigned int v2; // edi
__int64 v4; // rbx
bool v5; // zf
v2 = 0;
if ( !this )
return 4294967194LL;
v4 = *((_QWORD *)this + 34);
if ( !v4 )
return 4294967194LL;
if ( !*(_QWORD *)(v4 + 160) && !*(_DWORD *)(v4 + 280) && *(_DWORD *)(v4 + 144) != *(_DWORD *)(v4 + 148) )
v2 = -105;
if ( *(_QWORD *)v4 )
free(*(void **)v4);
v5 = *(_DWORD *)(v4 + 104) == 8;
*(_QWORD *)v4 = 0;
if ( v5 )
inflateEnd(v4 + 8, a2);
*(_DWORD *)(v4 + 104) = 0;
free((void *)v4);
*((_QWORD *)this + 34) = 0;
return v2;
}