//
// sub_10058F5A8 from 0x10058f5a8 to 0x10058f610 (104 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:08:43 +0000
//
float __fastcall sub_10058F5A8(__int64 a1, int a2)
{
float result; // s0
float v3; // s0
result = 0.0;
if ( a2 != 0x80000000 )
{
v3 = fmaxf((float)((float)((float)a2 / 78643000.0) + 10.0) * 8.5333, 0.0);
if ( v3 >= 128.0 )
v3 = 127.0;
return flt_10077271C[v3];
}
return result;
}