//
// sub_1004AAA60 from 0x1004aaa60 to 0x1004aaaa0 (64 bytes)
//
// 1 xrefs:
// > sub_10047E254 @ 0x10047e2d0
//
// 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 sub_1004AAA60(_DWORD *a1, int a2)
{
int v2; // w8
int v3; // w9
v2 = a1[94];
a1[94] = a2;
v3 = a1[8];
if ( v3 == -1 )
return 0;
a1[8] = v2 - a2 + v3;
if ( (unsigned int)(v3 + v2) <= a1[9] )
return 0;
else
return 28;
}