//
// sub_1800F5FF0 from 0x1800f5ff0 to 0x1800f608b (155 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801b0130
// > ??> @ 0x180200980
//
// 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_1800F5FF0(__int64 a1, int a2, float a3)
{
__int64 v3; // rbx
int v4; // edx
v3 = *(_QWORD *)(a1 + 8);
v4 = a2 - 1;
if ( v4 )
{
if ( v4 == 1 )
{
if ( a3 > -80.0 )
*(float *)(v3 + 44) = powf(10.0, a3 * 0.050000001);
else
*(_DWORD *)(v3 + 44) = 0;
return 0;
}
else
{
return 31;
}
}
else
{
if ( a3 > -80.0 )
*(float *)(v3 + 40) = powf(10.0, a3 * 0.050000001);
else
*(_DWORD *)(v3 + 40) = 0;
return 0;
}
}