//
// sub_100329370 from 0x100329370 to 0x1003293e7 (119 bytes)
//
// 3 xrefs:
// > cocos2d::ZipUtils::compressString @ 0x100204fd5
// > cocos2d::ZipUtils::base64EncodeEnc @ 0x100205c11
// > cocos2d::ZipUtils::base64URLEncode @ 0x100205e2c
//
// 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 sub_100329370(__int64 a1, int a2, _QWORD *a3, char a4)
{
unsigned int v6; // r12d
_BYTE *v7; // rax
v6 = 4 * a2 / 3u + 4 * ((unsigned int)(-1431655765 * a2) >= 0x55555556);
v7 = malloc(v6 + 1);
*a3 = v7;
if ( v7 )
sub_1003290B0(a1, a2, v7, a4);
return v6;
}