//
// inflatePrime from 0xcc2b30 to 0xcc2b9c (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x5adf8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall inflatePrime(__int64 a1, int a2, int a3)
{
__int64 v3; // x3
int v4; // w4
__int64 v5; // x6
if ( a1 )
{
v3 = *(_QWORD *)(a1 + 56);
if ( v3 )
{
if ( a2 < 0 )
{
*(_QWORD *)(v3 + 72) = 0;
*(_DWORD *)(v3 + 80) = 0;
return 0;
}
if ( a2 <= 16 )
{
v4 = *(_DWORD *)(v3 + 80);
if ( (unsigned int)(a2 + v4) <= 0x20 )
{
v5 = *(_QWORD *)(v3 + 72);
*(_DWORD *)(v3 + 80) = a2 + v4;
*(_QWORD *)(v3 + 72) = v5 + (int)((((unsigned int)(1LL << a2) - 1) & a3) << v4);
return 0;
}
}
}
}
return 4294967294LL;
}