//
// inflatePrime from 0x94c034 to 0x94c07a (70 bytes)
//
// 0 xrefs:
//
// 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:17 +0000
//
int __fastcall inflatePrime(int a1, int a2, int a3)
{
int v3; // r3
int v4; // r5
int v5; // r4
int result; // r0
if ( !a1 )
return -2;
v3 = *(_DWORD *)(a1 + 28);
if ( !v3 )
return -2;
if ( a2 < 0 )
{
*(_DWORD *)(v3 + 56) = 0;
*(_DWORD *)(v3 + 60) = 0;
return 0;
}
if ( a2 > 16 )
return -2;
v4 = *(_DWORD *)(v3 + 60);
if ( (unsigned int)(a2 + v4) > 0x20 )
return -2;
v5 = *(_DWORD *)(v3 + 56);
result = 0;
*(_DWORD *)(v3 + 60) = a2 + v4;
*(_DWORD *)(v3 + 56) = ((a3 & ((1 << a2) - 1)) << v4) + v5;
return result;
}