//
// sub_1002DD8F8 from 0x1002dd8f8 to 0x1002dd990 (152 bytes)
//
// 7 xrefs:
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x1002275b0
// > cocos2d::ZipUtils::decompressString2 @ 0x1002da9f0
// > cocos2d::ZipUtils::decompressString2 @ 0x1002daa4c
// > cocos2d::ZipUtils::decompressString @ 0x1002dac70
// > cocos2d::ZipUtils::decompressString @ 0x1002dacbc
// > cocos2d::ZipUtils::base64DecodeEnc @ 0x1002dae18
// > cocos2d::ZipUtils::base64URLDecode @ 0x1002db28c
//
// 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:02:45 +0000
//
void *__fastcall sub_1002DD8F8(unsigned __int8 *a1, unsigned int a2, void **a3, char a4)
{
void *result; // x0
unsigned int v9; // [xsp+Ch] [xbp-24h] BYREF
v9 = 0;
result = malloc(3 * (a2 >> 2) + 4LL);
*a3 = result;
if ( result )
{
if ( (unsigned int)sub_1002DD654(a1, a2, (__int64)result, &v9, a4) )
{
printf("Base64Utils: error decoding");
free(*a3);
*a3 = nullptr;
return nullptr;
}
else
{
return (void *)v9;
}
}
return result;
}