//
// sub_9AFE0 from 0x9afe0 to 0x9b010 (48 bytes)
//
// 1 xrefs:
// > sub_9A4E0 @ 0x9af6c
//
// 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 12:14:26 +0000
//
__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;
}