//
// sub_1004353AC from 0x1004353ac to 0x10043543c (144 bytes)
//
// 1 xrefs:
// > ??> @ 0x10084cbe0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1004353AC(float **a1, int a2, float *a3, __int64 a4, int a5, int a6, int a7, int a8)
{
float *v8; // x8
float *v9; // x8
double v11; // [xsp+0h] [xbp-10h]
v8 = *a1;
switch ( a2 )
{
case 2:
*a3 = sqrtf(v8[138]);
if ( a4 )
{
v9 = v8 + 138;
goto LABEL_10;
}
break;
case 1:
*a3 = v8[141];
if ( a4 )
{
v9 = v8 + 141;
goto LABEL_10;
}
break;
case 0:
*a3 = v8[140];
if ( a4 )
{
v9 = v8 + 140;
LABEL_10:
v11 = *v9;
sub_1004C7414(a4, 0x20u, (int)"%.02f", a4, a5, a6, a7, a8, SLOBYTE(v11));
}
break;
}
return 0;
}