//
// sub_1003292A0 from 0x1003292a0 to 0x100329362 (194 bytes)
//
// 8 xrefs:
// > cocos2d::ZipUtils::decompressString2 @ 0x10020536d
// > cocos2d::ZipUtils::decompressString2 @ 0x100205409
// > cocos2d::ZipUtils::decompressString @ 0x100205718
// > cocos2d::ZipUtils::decompressString @ 0x10020572e
// > cocos2d::ZipUtils::base64DecodeEnc @ 0x1002058da
// > cocos2d::ZipUtils::base64URLDecode @ 0x100205d4c
// > cocos2d::CCTMXMapInfo::endElement @ 0x1004d0fbb
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x1007c8534
//
// 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_1003292A0(__int64 a1, signed int a2, void **a3, unsigned __int8 a4)
{
void *v6; // rax
unsigned int v7; // r14d
unsigned int v9[9]; // [rsp+Ch] [rbp-24h] BYREF
v9[0] = 0;
v6 = malloc((unsigned int)(int)(float)((float)((float)((float)a2 * 3.0) * 0.25) + 4.0));
*a3 = v6;
if ( v6 )
{
if ( (unsigned int)sub_100328EC0(a1, a2, (__int64)v6, v9, a4) )
{
v7 = 0;
printf("Base64Utils: error decoding");
free(*a3);
*a3 = nullptr;
}
else
{
return v9[0];
}
}
else
{
return 0;
}
return v7;
}