//
// sub_10055E0E8 from 0x10055e0e8 to 0x10055e18c (164 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009d4e20
//
// 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:05 +0000
//
__int64 __fastcall sub_10055E0E8(__int64 a1, int a2, float *a3, __int64 a4, int a5, int a6, int a7, int a8)
{
__int64 v10; // x8
float v11; // s0
float v12; // s0
double v13; // d0
v10 = *(_QWORD *)(a1 + 8);
if ( a2 == 2 )
{
v11 = *(float *)(v10 + 44);
if ( v11 <= 0.0 )
{
LABEL_4:
v12 = -80.0;
*a3 = -80.0;
if ( !a4 )
return 0;
goto LABEL_8;
}
LABEL_7:
v12 = log10f(v11) * 20.0;
*a3 = v12;
if ( !a4 )
return 0;
LABEL_8:
v13 = v12;
sub_1005ED57C(a4, 0x20u, (int)"%.1f", a4, a5, a6, a7, a8, SLOBYTE(v13));
return 0;
}
if ( a2 == 1 )
{
v11 = *(float *)(v10 + 40);
if ( v11 <= 0.0 )
goto LABEL_4;
goto LABEL_7;
}
return 31;
}