//
// sub_B4128 from 0xb4128 to 0xb4154 (44 bytes)
//
// 4 xrefs:
// > sub_67084 @ 0x6709e
// > sub_B4030 @ 0xb40b6
// > sub_C261C @ 0xc263a
// > ??> @ 0xc2666
//
// 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
//
int __fastcall sub_B4128(__int64 *a1)
{
__int64 v1; // kr00_8
int v2; // r1
__int64 v3; // kr08_8
v1 = *a1;
v2 = *((_DWORD *)a1 + 3);
v3 = *(__int64 *)((char *)a1 + 20);
*((_DWORD *)a1 + 10) += *((_DWORD *)a1 + 1);
*((_DWORD *)a1 + 6) = (HIDWORD(v1) + HIDWORD(v3)) % v2;
return v1 + v3 * HIDWORD(v3);
}