//
// sub_100177DD0 from 0x100177dd0 to 0x100177e64 (148 bytes)
//
// 3 xrefs:
// > cocos2d::CCFileUtils::getFileDataFromZip @ 0x100150d84
// > sub_100177D7C @ 0x100177d9c
// > sub_100178760 @ 0x1001787b0
//
// 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 sub_100177DD0(__int64 a1)
{
__int64 v2; // x20
__int64 v3; // x21
if ( !a1 )
return 4294967194LL;
v2 = *(_QWORD *)(a1 + 320);
if ( !v2 )
return 4294967194LL;
if ( *(_QWORD *)(v2 + 192) || *(_DWORD *)(v2 + 312) )
{
v3 = 0;
}
else if ( *(_QWORD *)(v2 + 168) == *(_QWORD *)(v2 + 176) )
{
v3 = 0;
}
else
{
v3 = 4294967191LL;
}
if ( *(_QWORD *)v2 )
free(*(void **)v2);
*(_QWORD *)v2 = 0;
if ( *(_QWORD *)(v2 + 128) == 8 )
inflateEnd((z_streamp)(v2 + 8));
free((void *)v2);
*(_QWORD *)(a1 + 320) = 0;
return v3;
}