//
// sub_1800F6090 from 0x1800f6090 to 0x1800f6134 (164 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801b0150
// > ??> @ 0x18020098c
//
// This function is hookable on this platform (idp: pc, 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 10:54:23 +0000
//
__int64 __fastcall sub_1800F6090(__int64 a1, int a2, float *a3, __int64 a4)
{
__int64 v5; // r8
int v7; // edx
float v9; // xmm1_4
float v10; // xmm0_4
v5 = *(_QWORD *)(a1 + 8);
v7 = a2 - 1;
if ( !v7 )
{
v9 = *(float *)(v5 + 40);
if ( v9 <= 0.0 )
{
v10 = -80.0;
goto LABEL_9;
}
LABEL_8:
v10 = log10f(v9) * 20.0;
goto LABEL_9;
}
if ( v7 != 1 )
return 31;
v9 = *(float *)(v5 + 44);
if ( v9 > 0.0 )
goto LABEL_8;
v10 = -80.0;
LABEL_9:
*a3 = v10;
if ( a4 )
sub_1800B7CA0(a4, 32, "%.1f", v10);
return 0;
}