//
// sub_B4476 from 0xb4476 to 0xb44a6 (48 bytes)
//
// 2 xrefs:
// > sub_B3A34 @ 0xb3a38
// > sub_B43E0 @ 0xb446a
//
// 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_B4476(_DWORD *a1, int a2)
{
int v3; // r8
int v4; // r6
int v5; // r5
int v6; // r0
int v7; // r1
int v8; // r0
int v10; // r1
v3 = a1[3];
v4 = a1[7];
v5 = a1[9];
v6 = a2 / a1[5];
v7 = v5 + v6;
v8 = v6 + v4;
a1[9] = v7;
v10 = v8 % v3;
a1[7] = v10;
return v8 / v3;
}