//
// sub_AF24C from 0xaf24c to 0xaf2f4 (168 bytes)
//
// 1 xrefs:
// > sub_AF34C @ 0xaf358
//
// 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_AF24C(float *a1, int a2, _DWORD *a3, __int64 a4)
{
float v4; // s0
switch ( a2 )
{
case 0:
*a3 = *((_DWORD *)a1 + 160);
if ( a4 )
sub_E3FC8(a4, 32, "%.02f", a1[160]);
break;
case 1:
*a3 = *((_DWORD *)a1 + 161);
if ( a4 )
{
v4 = a1[161];
goto LABEL_10;
}
break;
case 2:
*a3 = *((_DWORD *)a1 + 163);
if ( a4 )
{
v4 = a1[163];
goto LABEL_10;
}
break;
case 3:
*a3 = *((_DWORD *)a1 + 164);
if ( a4 )
{
v4 = a1[164];
LABEL_10:
sub_E3FC8(a4, 32, "%.1f", v4);
}
break;
default:
return 0;
}
return 0;
}