//
// sub_B9BE34 from 0xb9be34 to 0xb9bee4 (176 bytes)
//
// 3 xrefs:
// > sub_B8B1B0 @ 0xb8b200
// > sub_B8B1B0 @ 0xb8b268
// > sub_B97550 @ 0xb97824
//
// 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
//
void __fastcall sub_B9BE34(_QWORD *a1, __int64 a2)
{
__int64 v4; // x4
__int64 v5; // x1
__int64 v6; // x2
v4 = a2 / 1000 + sub_B70B94();
v6 = v5 + 1000 * (a2 % 1000);
if ( v6 > 999999 )
{
++v4;
v6 -= 1000000;
}
if ( !a1[4490] && !a1[4491] || sub_B70BFC(v4, v6, a1[4490], a1[4491]) <= 0 )
sub_B9B94C(a1, a2);
}