//
// sub_94F18 from 0x94f18 to 0x94fd8 (192 bytes)
//
// 1 xrefs:
// > sub_950F4 @ 0x950fa
//
// 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
//
int __fastcall sub_94F18(int a1, int a2, float *a3, int a4)
{
float v4; // s2
float v5; // s0
int v6; // r0
float v7; // s2
const char *v8; // r4
switch ( a2 )
{
case 0:
*a3 = *(float *)(a1 + 452) * 100.0;
if ( a4 )
{
v4 = *(float *)(a1 + 452);
goto LABEL_6;
}
break;
case 1:
*a3 = *(float *)(a1 + 456) * 100.0;
if ( a4 )
{
v4 = *(float *)(a1 + 456);
LABEL_6:
sub_BE420(a4, 32, "%.1f", (float)(v4 * 100.0));
}
break;
case 2:
*a3 = *(float *)(a1 + 460);
if ( a4 )
{
v5 = *(float *)(a1 + 460);
goto LABEL_11;
}
break;
case 3:
*a3 = *(float *)(a1 + 464);
if ( a4 )
{
v5 = *(float *)(a1 + 464);
LABEL_11:
sub_BE420(a4, 32, "%.02f", v5);
}
break;
case 4:
v6 = *(_DWORD *)(a1 + 468);
v7 = 1.0;
if ( !v6 )
v7 = 0.0;
*a3 = v7;
if ( a4 )
{
v8 = "on";
if ( !v6 )
v8 = "off";
sub_BE420(a4, 32, "%s", v8);
}
break;
default:
return 0;
}
return 0;
}