//
// sub_1002DD990 from 0x1002dd990 to 0x1002dda10 (128 bytes)
//
// 3 xrefs:
// > cocos2d::ZipUtils::compressString @ 0x1002da604
// > cocos2d::ZipUtils::base64EncodeEnc @ 0x1002db140
// > cocos2d::ZipUtils::base64URLEncode @ 0x1002db37c
//
// 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 11:02:45 +0000
//
__int64 __fastcall sub_1002DD990(unsigned __int8 *a1, unsigned int a2, _QWORD *a3, int a4)
{
int v8; // w23
void *v9; // x0
v8 = 2 * ((2863311531u * (unsigned __int64)(a2 + 2)) >> 32);
v9 = malloc((4 * ((a2 + 2) / 3)) | 1);
*a3 = v9;
if ( v9 )
sub_1002DD7E0(a1, a2, (__int64)v9, a4);
return v8 & 0xFFFFFFFC;
}