//
// sub_95A38 from 0x95a38 to 0x95b0e (214 bytes)
//
// 1 xrefs:
// > sub_95F08 @ 0x960a6
//
// 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:28 +0000
//
int __fastcall sub_95A38(_DWORD *a1, float a2, float a3)
{
int v3; // r5
float v7; // s2
float v8; // s0
int v9; // r0
int v10; // r1
float v11; // s4
int v12; // r2
float *v13; // r3
float v14; // s0
float v15; // s0
v3 = a1[1];
if ( v3 )
{
v7 = powf(10.0, a3 * -0.1);
v8 = 0.0;
v9 = 0;
v10 = 0;
v11 = 0.0;
if ( a3 < 80.0 )
v11 = v7;
while ( v3 > v10 && *(float *)(*a1 + v9) < (float)((float)(v11 * a2) / (float)v3) )
{
v9 += 4;
++v10;
}
v12 = v10;
while ( v12 < v3 )
{
++v12;
v13 = (float *)(*a1 + v9);
v9 += 4;
v8 = *v13 + v8;
}
v14 = v8 / (float)(v3 - v10);
if ( v14 <= 0.0 )
v15 = -80.691;
else
v15 = (float)(log10f(v14) * 10.0) + -0.691;
}
else
{
v15 = -80.0;
}
return LODWORD(v15);
}