//
// sub_9AFE0 from 0x9afe0 to 0x9b010 (48 bytes)
//
// 1 xrefs:
// > sub_9A4E0 @ 0x9af6c
//
// 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_9AFE0(__int64 result, int a2)
{
__int64 v2; // x8
int v3; // w9
v2 = *(_QWORD *)(result + 376) + 18600LL;
v3 = *(_DWORD *)v2 - a2;
*(_QWORD *)(v2 + 8) = *(_QWORD *)(*(_QWORD *)(result + 376) + 18608LL) + (v3 >> 3);
*(_DWORD *)v2 = v3 & 7;
return result;
}