//
// sub_1004B8C5C from 0x1004b8c5c to 0x1004b8c94 (56 bytes)
//
// 0 xrefs:
//
// 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_1004B8C5C(__int64 a1)
{
__int64 v1; // x8
int v2; // w9
v1 = *(int *)(a1 + 32);
v2 = *(_DWORD *)(a1 + 8);
*(_DWORD *)(a1 + 32) = (v2 + (int)v1) % *(_DWORD *)(a1 + 16);
*(_DWORD *)(a1 + 40) += v2;
return *(_QWORD *)a1 + *(int *)(a1 + 24) * v1;
}