//
// sub_94370 from 0x94370 to 0x943e0 (112 bytes)
//
// 2 xrefs:
// > sub_94310 @ 0x9434e
// > sub_943F8 @ 0x9442e
//
// 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_94370(int a1, float a2)
{
float v2; // s2
float v3; // s0
v2 = (float)*(int *)(*(_DWORD *)(a1 + 128) + 1184);
if ( a2 >= 22000.0 )
{
v3 = 0.0;
}
else if ( (float)(v2 * 0.31831) >= a2 )
{
v3 = (float)(0.15915 / a2) / (float)((float)(1.0 / v2) + (float)(0.15915 / a2));
}
else
{
v3 = (float)(22000.0 - a2) / (float)((float)(v2 * -0.95493) + 66000.0);
}
*(float *)(a1 + 636) = v3;
return 0;
}