//
// sub_100209498 from 0x100209498 to 0x10020952c (148 bytes)
//
// 3 xrefs:
// > cocos2d::CCFileUtils::getFileDataFromZip @ 0x1001cf9f8
// > sub_100209444 @ 0x100209464
// > sub_100209E28 @ 0x100209e78
//
// 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 11:00:58 +0000
//
__int64 __fastcall sub_100209498(__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;
}