//
// base64Decode from 0xd912e0 to 0xd913a4 (196 bytes)
//
// 11 xrefs:
// > cocos2d::CCParticleSystem::initWithDictionary @ 0xd71fa8
// > cocos2d::ZipUtils::base64URLDecode @ 0xd9a760
// > cocos2d::ZipUtils::base64URLDecode @ 0xd9a80c
// > cocos2d::ZipUtils::base64DecodeEnc @ 0xd9b9cc
// > cocos2d::ZipUtils::decompressString2 @ 0xd9bf80
// > cocos2d::ZipUtils::decompressString2 @ 0xd9c040
// > cocos2d::ZipUtils::decompressString2 @ 0xd9c0c8
// > cocos2d::ZipUtils::decompressString @ 0xd9c188
// > cocos2d::ZipUtils::decompressString @ 0xd9c340
// > cocos2d::CCTMXMapInfo::endElement @ 0xdae090
// > ??> @ 0xa06a8
//
// 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 13:08:19 +0000
//
__int64 __fastcall base64Decode(cocos2d *a1, const unsigned __int8 *a2, void **a3, unsigned __int8 a4)
{
unsigned int v6; // w22
void *v7; // x0
unsigned __int8 v10[4]; // [xsp+44h] [xbp+44h] BYREF
v6 = a4;
*(_DWORD *)v10 = 0;
v7 = malloc(3LL * ((unsigned int)a2 >> 2) + 4);
*a3 = v7;
if ( !v7 )
return 0;
if ( (int)cocos2d::_base64Decode(a1, a2, (__int64)v7, v10, (unsigned int *)v6) <= 0 )
return *(unsigned int *)v10;
printf("Base64Utils: error decoding");
free(*a3);
*a3 = nullptr;
return 0;
}