//
// base64Encode from 0x180096690 to 0x18009670a (122 bytes)
//
// 5 xrefs:
// > cocos2d::ZipUtils::base64EncodeEnc @ 0x1800a6975
// > cocos2d::ZipUtils::base64URLEncode @ 0x1800a6bf6
// > cocos2d::ZipUtils::compressString @ 0x1800a75dd
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c06e4
//
// This function is hookable on this platform (idp: pc, 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:22:10 +0000
//
__int64 __fastcall base64Encode(unsigned __int8 *a1, unsigned int a2, _QWORD *a3, char a4)
{
unsigned int v8; // edi
_BYTE *v9; // rax
v8 = 4 * ((a2 + 2) / 3);
v9 = malloc(v8 + 1);
*a3 = v9;
if ( v9 )
sub_1800963F0(a1, a2, v9, a4);
return v8;
}