//
// sub_B4AB0 from 0xb4ab0 to 0xb4ba8 (248 bytes)
//
// 1 xrefs:
// > sub_B4F94 @ 0xb5164
//
// 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 12:14:38 +0000
//
void __fastcall sub_B4AB0(__int64 a1, float a2, float a3)
{
__int64 v3; // x20
float v7; // s0
__int64 v8; // x8
float v9; // s0
float v10; // s0
__int64 i; // x9
float v12; // s1
float v13; // s0
v3 = *(int *)(a1 + 8);
if ( (_DWORD)v3 )
{
v7 = powf(10.0, a3 * -0.1);
if ( a3 >= 80.0 )
v7 = 0.0;
v8 = 0;
v9 = (float)(v7 * a2) / (float)(int)v3;
while ( v8 < v3 && *(float *)(*(_QWORD *)a1 + 4 * v8) < v9 )
++v8;
v10 = 0.0;
for ( i = v8; i < v3; ++i )
{
v12 = *(float *)(*(_QWORD *)a1 + 4 * i);
v10 = v12 + v10;
}
v13 = v10 / (float)(v3 - v8);
if ( v13 > 0.0 )
log10f(v13);
}
}