//
// sub_90228 from 0x90228 to 0x9029e (118 bytes)
//
// 3 xrefs:
// > sub_90134 @ 0x90202
// > ??> @ 0x9076c
// > ??> @ 0x90828
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:41:25 +0000
//
int __fastcall sub_90228(float *a1)
{
float v1; // s18
float v3; // r0
float v4; // s2
float v5; // s0
v1 = a1[96];
if ( v1 >= 1.0 )
{
v5 = -1.0;
}
else
{
v3 = log10f(a1[96]);
v4 = -80.0;
if ( v1 > 0.0 )
v4 = v3 * 20.0;
v5 = (float)(a1[94] * 0.001) * (float)((float)((float)(-100.0 - a1[99]) / v4) + 1.0);
}
return LODWORD(v5);
}