//
// sub_1800BE090 from 0x1800be090 to 0x1800be0b3 (35 bytes)
//
// 2 xrefs:
// > sub_1800C2F30 @ 0x1800c31c8
// > sub_1801078A0 @ 0x1801078ce
//
// 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_1800BE090(__int64 a1)
{
int v1; // r9d
int v2; // r8d
__int64 result; // rax
v1 = *(_DWORD *)(a1 + 28);
v2 = *(_DWORD *)(a1 + 8);
*(_DWORD *)(a1 + 44) += v2;
result = *(_QWORD *)a1 + *(_DWORD *)(a1 + 24) * v1;
*(_DWORD *)(a1 + 28) = (v2 + v1) % *(_DWORD *)(a1 + 16);
return result;
}