//
// sub_1004493B8 from 0x1004493b8 to 0x100449440 (136 bytes)
//
// 0 xrefs:
//
// 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_1004493B8(__int64 a1, int a2, float *a3, _BYTE *a4)
{
__int64 result; // x0
float v6; // s0
if ( !a3 )
return 31;
result = 31;
switch ( a2 )
{
case 1:
v6 = (float)*(unsigned int *)(a1 + 668);
goto LABEL_11;
case 2:
v6 = *(float *)(a1 + 560);
goto LABEL_11;
case 3:
v6 = *(float *)(a1 + 564);
goto LABEL_11;
case 4:
v6 = (float)*(unsigned int *)(a1 + 680);
goto LABEL_11;
case 5:
v6 = *(float *)(a1 + 684);
goto LABEL_11;
case 6:
v6 = *(float *)(a1 + 688);
goto LABEL_11;
case 8:
v6 = *(float *)(a1 + 704);
LABEL_11:
*a3 = v6;
result = 0;
if ( a4 )
*a4 = 0;
break;
default:
return result;
}
return result;
}