//
// sub_1008AB5E0 from 0x1008ab5e0 to 0x1008ab655 (117 bytes)
//
// 8 xrefs:
// > sub_1001EA4E0 @ 0x1001ea505
// > sub_1001EA4E0 @ 0x1001ea51b
// > cocos2d::CCFileUtils::getFileDataFromZip @ 0x100428a01
// > sub_10059B2C0 @ 0x10059b40c
// > sub_10059B2C0 @ 0x10059b739
// > sub_10059B2C0 @ 0x10059b75f
// > sub_10059B2C0 @ 0x10059b769
// > sub_10059B2C0 @ 0x10059b77e
//
// This function is hookable on this platform (idp: pc, 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 12:37:18 +0000
//
__int64 __fastcall sub_1008AB5E0(_QWORD *a1)
{
__int64 v1; // r14
if ( !a1 )
return 4294967194LL;
v1 = a1[40];
if ( v1 )
{
if ( *(_QWORD *)v1 )
free(*(void **)v1);
*(_QWORD *)v1 = 0;
if ( *(_QWORD *)(v1 + 128) == 8 )
inflateEnd((z_streamp)(v1 + 8));
free((void *)v1);
a1[40] = 0;
}
((void (__fastcall *)(_QWORD, _QWORD))a1[5])(a1[7], a1[12]);
free(a1);
return 0;
}