//
// uncompress from 0x9500d4 to 0x950142 (110 bytes)
//
// 1 xrefs:
// > cocos2d::ZipUtils::ccInflateCCZFile @ 0x7fab80
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:05:23 +0000
//
int __fastcall uncompress(int a1, int *a2, unsigned __int8 *a3, int a4)
{
int v5; // r7
int result; // r0
int v7; // r4
unsigned __int8 *v8; // [sp+0h] [bp-3Ch] BYREF
int v9; // [sp+4h] [bp-38h]
int v10; // [sp+Ch] [bp-30h]
int v11; // [sp+10h] [bp-2Ch]
int v12; // [sp+14h] [bp-28h]
int v13; // [sp+20h] [bp-1Ch]
int v14; // [sp+24h] [bp-18h]
v5 = *a2;
v8 = a3;
v10 = a1;
v9 = a4;
v11 = v5;
v13 = 0;
v14 = 0;
result = inflateInit_(&v8, (unsigned int)"1.2.8", 0x38u);
if ( !result )
{
v7 = inflate(&v8, 4);
if ( v7 == 1 )
{
*a2 = v12;
return inflateEnd(&v8);
}
else
{
inflateEnd(&v8);
if ( v7 == 2 )
{
return -3;
}
else if ( v7 == -5 )
{
if ( v9 )
return -5;
else
return -3;
}
else
{
return v7;
}
}
}
return result;
}