//
// 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 (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:41:42 +0000
//
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);
}