//
// sub_1005147D4 from 0x1005147d4 to 0x100514898 (196 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_1005147D4(_DWORD *a1, int a2, _DWORD *a3, char *a4, int a5, int a6, int a7, int a8)
{
__int64 v8; // x8
double v10; // [xsp+0h] [xbp-10h]
switch ( a2 )
{
case 0:
*a3 = a1[2428];
if ( a4 )
{
v8 = 2428;
goto LABEL_12;
}
break;
case 1:
*a3 = a1[2429];
if ( a4 )
{
v8 = 2429;
goto LABEL_12;
}
break;
case 2:
*a3 = a1[2430];
if ( a4 )
{
v8 = 2430;
goto LABEL_12;
}
break;
case 3:
*a3 = a1[2431];
if ( a4 )
{
v8 = 2431;
goto LABEL_12;
}
break;
case 4:
*a3 = a1[2432];
if ( a4 )
{
v8 = 2432;
LABEL_12:
v10 = *(float *)&a1[v8];
sub_1004C7414(a4, 0x20u, "%.02f", (int)a4, a5, a6, a7, a8, SLOBYTE(v10));
}
break;
default:
return 0;
}
return 0;
}