//
// sub_1004F6178 from 0x1004f6178 to 0x1004f61f0 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x100853700
//
// 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_1004F6178(__int64 *a1, unsigned int a2, _DWORD *a3, char *a4, int a5, int a6, int a7, int a8)
{
__int64 v8; // x8
float *v9; // x8
__int64 v10; // x8
double v12; // [xsp+0h] [xbp-10h]
v8 = *a1;
if ( a2 == 16 )
{
*a3 = *(_DWORD *)(v8 + 540);
if ( a4 )
{
v9 = (float *)(v8 + 540);
LABEL_7:
v12 = *v9;
sub_1004C7414(a4, 0x20u, "%.02f", (int)a4, a5, a6, a7, a8, SLOBYTE(v12));
}
}
else if ( a2 <= 0xF )
{
v10 = v8 + 4LL * a2;
*a3 = *(_DWORD *)(v10 + 608);
if ( a4 )
{
v9 = (float *)(v10 + 608);
goto LABEL_7;
}
}
return 0;
}