//
// sub_1800BE090 from 0x1800be090 to 0x1800be0b3 (35 bytes)
//
// 2 xrefs:
// > sub_1800C2F30 @ 0x1800c31c8
// > sub_1801078A0 @ 0x1801078ce
//
// This function is hookable on this platform (idp: pc, 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 10:54:02 +0000
//
__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;
}