//
// sub_100314A90 from 0x100314a90 to 0x100314af4 (100 bytes)
//
// 3 xrefs:
// > cocos2d::ZipUtils::compressString @ 0x1001e83d5
// > cocos2d::ZipUtils::base64EncodeEnc @ 0x1001e9011
// > cocos2d::ZipUtils::base64URLEncode @ 0x1001e922c
//
// 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 12:28:40 +0000
//
__int64 __fastcall sub_100314A90(__int64 a1, int a2, _QWORD *a3, char a4)
{
unsigned int v6; // ebx
_BYTE *v7; // rax
v6 = (2 * ((2863311531u * (unsigned __int64)(unsigned int)(a2 + 2)) >> 32)) & 0xFFFFFFFC;
v7 = malloc(v6 + 1);
*a3 = v7;
if ( v7 )
sub_100314810(a1, a2, v7, a4);
return v6;
}