//
// base64Encode from 0x180092e40 to 0x180092ed1 (145 bytes)
//
// 5 xrefs:
// > cocos2d::ZipUtils::base64EncodeEnc @ 0x1800a2ef6
// > cocos2d::ZipUtils::base64URLEncode @ 0x1800a321b
// > cocos2d::ZipUtils::compressString @ 0x1800a3c0d
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b6444
//
// 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
//
__int64 __fastcall base64Encode(unsigned __int8 *a1, unsigned int a2, _QWORD *a3, char a4)
{
int v6; // edi
unsigned int v9; // edi
_BYTE *v10; // rax
v6 = 0;
if ( a2 != 3 * (a2 / 3) )
v6 = 4;
v9 = 4 * a2 / 3 + v6;
v10 = malloc(v9 + 1);
*a3 = v10;
if ( v10 )
sub_180092B70(a1, a2, v10, a4);
return v9;
}