//
// sub_100632928 from 0x100632928 to 0x100632a44 (284 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009e06b8
//
// 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:10:29 +0000
//
__int64 __fastcall sub_100632928(float **a1, int a2, float *a3, char *a4, int a5, int a6, int a7, int a8)
{
float *v9; // x21
float v10; // s0
float v11; // s0
float v12; // s0
float v14; // s0
double v15; // d0
v9 = *a1;
if ( a2 == 2 )
{
v12 = v9[169];
if ( v12 <= 0.0 )
{
*a3 = -80.0;
if ( !a4 )
return 0;
}
else
{
*a3 = log10f(v12) * 20.0;
if ( !a4 )
return 0;
}
v14 = v9[169];
if ( v14 > 0.0 )
goto LABEL_15;
goto LABEL_19;
}
if ( a2 == 1 )
{
v11 = v9[168];
if ( v11 <= 0.0 )
{
*a3 = -80.0;
if ( !a4 )
return 0;
}
else
{
*a3 = log10f(v11) * 20.0;
if ( !a4 )
return 0;
}
v14 = v9[168];
if ( v14 > 0.0 )
{
LABEL_15:
v10 = log10f(v14) * 20.0;
goto LABEL_16;
}
LABEL_19:
LOBYTE(v15) = 0;
goto LABEL_20;
}
if ( a2 )
return 31;
*a3 = v9[167];
if ( a4 )
{
v10 = v9[167];
LABEL_16:
v15 = v10;
LABEL_20:
sub_1005ED57C(a4, 0x20u, "%.02f", (int)a4, a5, a6, a7, a8, SLOBYTE(v15));
}
return 0;
}