//
// sub_72F98 from 0x72f98 to 0x72fe8 (80 bytes)
//
// 1 xrefs:
// > sub_73AD8 @ 0x74572
//
// 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
//
int __fastcall sub_72F98(int a1)
{
unsigned int v1; // r4
int v2; // r1
int v3; // r2
int v4; // r2
v1 = *(unsigned __int8 *)(a1 + 218);
v2 = *(_DWORD *)(a1 + 4);
if ( (v1 & 0xF) == 0 )
*(_DWORD *)(a1 + 192) -= v1 >> 4;
v3 = *(_DWORD *)(a1 + 192);
if ( (v1 & 0xF0) == 0 )
{
v3 += v1 & 0xF;
*(_DWORD *)(a1 + 192) = v3;
}
if ( v3 > 64 )
{
v4 = 64;
LABEL_9:
*(_DWORD *)(a1 + 192) = v4;
goto LABEL_10;
}
if ( v3 <= -1 )
{
v4 = 0;
goto LABEL_9;
}
LABEL_10:
*(_BYTE *)(v2 + 36) |= 4u;
return 0;
}