//
// base64Decode from 0x5ec09c to 0x5ec11e (130 bytes)
//
// 8 xrefs:
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x5dcc24
// > cocos2d::ZipUtils::base64DecodeEnc @ 0x5ef7de
// > cocos2d::ZipUtils::base64URLDecode @ 0x5ef95c
// > cocos2d::ZipUtils::decompressString2 @ 0x5efdfe
// > cocos2d::ZipUtils::decompressString2 @ 0x5efe30
// > cocos2d::ZipUtils::decompressString @ 0x5eff20
// > cocos2d::ZipUtils::decompressString @ 0x5eff3e
// > cocos2d::CCTMXMapInfo::endElement @ 0x5f8fee
//
// 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
//
int __fastcall base64Decode(cocos2d *a1, const unsigned __int8 *a2, void **a3, unsigned int *a4)
{
void *v7; // r2
bool v9; // [sp+4h] [bp-14h]
unsigned __int8 v11[4]; // [sp+10h] [bp-8h] BYREF
*(_DWORD *)v11 = 0;
v7 = malloc((unsigned int)(float)((float)((float)((float)(unsigned int)a2 * 3.0) * 0.25) + 4.0));
*a3 = v7;
if ( v7 && cocos2d::_base64Decode(a1, a2, (unsigned int)v7, v11, a4, v9) > 0 )
{
printf("Base64Utils: error decoding");
free(*a3);
*a3 = nullptr;
*(_DWORD *)v11 = 0;
}
return *(_DWORD *)v11;
}