//
// cocos2d::CCFileUtils::getFileDataFromZip from 0x1001cf8e8 to 0x1001cfa04 (284 bytes)
//
// 2 xrefs:
// > ??> @ 0x1008ef848
// > ??> @ 0x100920310
//
// 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:22 +0000
//
void *__fastcall cocos2d::CCFileUtils::getFileDataFromZip(__int64 a1, _BYTE *a2, char *a3, size_t *a4)
{
void *v4; // x21
__int64 v7; // x0
__int64 v8; // x19
size_t v10; // x22
_BYTE v11[56]; // [xsp+8h] [xbp-1C8h] BYREF
size_t __sz; // [xsp+40h] [xbp-190h]
_BYTE v13[260]; // [xsp+94h] [xbp-13Ch] BYREF
v4 = nullptr;
*a4 = 0;
if ( a2 && a3 )
{
if ( *a2 && (v7 = sub_100209438(a2)) != 0 )
{
v8 = v7;
if ( (unsigned int)sub_100209CC0(v7, a3)
|| (unsigned int)sub_100209AC0(v8, v11, v13, 260, 0, 0, 0, 0)
|| (unsigned int)sub_10020A274(v8) )
{
v4 = nullptr;
}
else
{
v10 = __sz;
v4 = operator new[](__sz);
sub_10020A288(v8, v4, v10);
*a4 = __sz;
sub_100209498(v8);
}
sub_100209444(v8);
}
else
{
return nullptr;
}
}
return v4;
}