//
// sub_1004AADF0 from 0x1004aadf0 to 0x1004aae28 (56 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008282c0
//
// 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_1004AADF0(__int64 a1, _QWORD *a2, int a3)
{
__int64 v3; // x9
v3 = *(unsigned int *)(a1 + 496);
if ( (unsigned int)(v3 + a3) > *(_DWORD *)(a1 + 36) )
return 16;
*a2 = *(_QWORD *)(a1 + 504) + v3;
*(_DWORD *)(a1 + 496) = v3 + a3;
return 0;
}