//
// compress2 from 0x95004c to 0x9500a8 (92 bytes)
//
// 1 xrefs:
// > compress @ 0x9500b6
//
// 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 compress2(int a1, int *a2, int a3, int a4, unsigned int a5)
{
int v5; // r7
int result; // r0
int v8; // r4
_DWORD v9[15]; // [sp+0h] [bp-3Ch] BYREF
v5 = *a2;
v9[0] = a3;
v9[1] = a4;
v9[3] = a1;
v9[4] = v5;
memset(&v9[8], 0, 12);
result = deflateInit_(v9, a5, "1.2.8", 56);
if ( !result )
{
v8 = deflate((int)v9, 4u);
if ( v8 == 1 )
{
*a2 = v9[5];
return deflateEnd((int)v9);
}
else
{
deflateEnd((int)v9);
if ( v8 )
return v8;
else
return -5;
}
}
return result;
}