//
// base64Encode from 0xd913a4 to 0xd9141c (120 bytes)
//
// 6 xrefs:
// > cocos2d::ZipUtils::base64URLEncode @ 0xd9a8ac
// > cocos2d::ZipUtils::base64URLEncode @ 0xd9a958
// > cocos2d::ZipUtils::compressString @ 0xd9b6f0
// > cocos2d::ZipUtils::base64EncodeEnc @ 0xd9bd24
// > cocos2d::ZipUtils::base64EncodeEnc @ 0xd9bdb0
// > ??> @ 0x62158
//
// 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 base64Encode(__int64 a1, const unsigned __int8 *a2, _QWORD *a3, unsigned __int8 a4)
{
unsigned int v4; // w19
unsigned int v6; // w20
void *v7; // x4
v4 = 4 * (((int)a2 + 2) / 3u);
v6 = a4;
v7 = malloc(v4 + 1);
*a3 = v7;
if ( v7 )
cocos2d::_base64Encode(a1, a2, (__int64)v7, (char *)v6);
return v4;
}