//
// sub_1007C3D50 from 0x1007c3d50 to 0x1007c3dc5 (117 bytes)
//
// 8 xrefs:
// > sub_100207090 @ 0x1002070b5
// > sub_100207090 @ 0x1002070cb
// > cocos2d::CCFileUtils::getFileDataFromZip @ 0x10043af81
// > sub_10056E200 @ 0x10056e34c
// > sub_10056E200 @ 0x10056e679
// > sub_10056E200 @ 0x10056e69f
// > sub_10056E200 @ 0x10056e6a9
// > sub_10056E200 @ 0x10056e6be
//
// 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_1007C3D50(_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;
}