//
// sub_60FA34 from 0x60fa34 to 0x60fa8a (86 bytes)
//
// 7 xrefs:
// > sub_610B54 @ 0x610b86
// > sub_610B54 @ 0x610bd6
// > sub_610B54 @ 0x610bf0
// > sub_610B54 @ 0x610c0a
// > sub_610B54 @ 0x610c24
// > sub_610B54 @ 0x610c3e
// > sub_610EFC @ 0x610f2a
//
// 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
//
__int64 __fastcall sub_60FA34(int a1, int a2, int a3, int a4)
{
double v4; // d17
int v5; // r1
int v6; // r3
int v7; // s15
double v8; // d16
v4 = 1000000.0;
v5 = a1;
v6 = a2 - a4;
if ( a1 != a3 )
v5 = a1 - a3;
v7 = v6;
if ( a1 == a3 )
{
v8 = (double)v6 / 1000000.0;
}
else
{
v8 = (double)v6;
v7 = v5;
v4 = (double)v6 / 1000000.0;
}
if ( a1 != a3 )
v8 = (double)v7 + v4;
return *(_QWORD *)&v8;
}