//
// inflatePrime from 0xf38cf0 to 0xf38d5c (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x7cb70
//
// 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 13:12:59 +0000
//
__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;
}