//
// sub_1800F1F90 from 0x1800f1f90 to 0x1800f201b (139 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801b0010
// > ??> @ 0x1802005b4
//
// 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:22 +0000
//
__int64 __fastcall sub_1800F1F90(float **a1, int a2, float *a3, __int64 a4)
{
float *v5; // r9
int v6; // edx
float v7; // xmm3_4
v5 = *a1;
if ( a2 )
{
v6 = a2 - 1;
if ( v6 )
{
if ( v6 == 1 )
{
*a3 = fsqrt(v5[140]);
if ( a4 )
{
v7 = v5[140];
LABEL_10:
sub_1800B7CA0(a4, 32, "%.02f", v7);
}
}
}
else
{
*a3 = v5[143];
if ( a4 )
{
v7 = v5[143];
goto LABEL_10;
}
}
}
else
{
*a3 = v5[142];
if ( a4 )
{
v7 = v5[142];
goto LABEL_10;
}
}
return 0;
}