//
// sub_10049F0D8 from 0x10049f0d8 to 0x10049f150 (120 bytes)
//
// 0 xrefs:
//
// 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_10049F0D8(__int64 a1, int a2, unsigned int a3)
{
unsigned int v3; // w9
float v5; // s0
bool v6; // cf
unsigned int v7; // w9
if ( a2 )
{
v3 = *(_DWORD *)(a1 + 2076);
if ( !v3 )
return 11;
}
else
{
v5 = *(float *)(a1 + 2068);
if ( v5 <= -80.0 )
v3 = *(_DWORD *)(a1 + 2076);
else
v3 = (unsigned int)(float)((float)((float)((float)(v5 + 100.0) * *(float *)(a1 + 2024)) * 0.000016667)
* (float)*(int *)(a1 + 2072));
}
v6 = v3 >= a3;
v7 = v3 - a3;
if ( !v6 )
v7 = 0;
*(_DWORD *)(a1 + 2076) = v7;
return 0;
}