//
// xCompSpeed from 0x5c9d1c to 0x5c9d88 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x81798
//
// 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 xCompSpeed(__int64 *a1, _DWORD **a2)
{
__int64 v2; // x2
_DWORD *v3; // x19
int v4; // w1
int v5; // w0
bool v6; // zf
__int64 result; // x0
float v8; // s0
v2 = *a1;
v3 = *a2;
v4 = *(_DWORD *)(*a1 + 1756);
v5 = v3[439];
v6 = v4 == v5;
result = (unsigned int)(v4 - v5);
if ( v6 )
{
v8 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 192LL))(v2);
return (unsigned int)((int)v8 - (int)*(float *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)v3 + 192LL))(v3));
}
return result;
}