//
// base64Encode from 0x7f715c to 0x7f7192 (54 bytes)
//
// 3 xrefs:
// > cocos2d::ZipUtils::base64URLEncode @ 0x7fad72
// > cocos2d::ZipUtils::compressString @ 0x7fb3e0
// > cocos2d::ZipUtils::base64EncodeEnc @ 0x7fb702
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:10 +0000
//
unsigned int __fastcall base64Encode(cocos2d *a1, const unsigned __int8 *a2, _DWORD *a3, char *a4)
{
unsigned int v8; // r4
void *v9; // r2
bool savedregs; // [sp+0h] [bp+0h]
v8 = 4 * ((unsigned int)(a2 + 2) / 3);
v9 = malloc(v8 + 1);
*a3 = v9;
if ( v9 )
cocos2d::_base64Encode(a1, a2, (unsigned int)v9, a4, savedregs);
return v8;
}