//
// sub_1004885FC from 0x1004885fc to 0x100488684 (136 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008512c8
//
// 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_1004885FC(_QWORD *a1, int a2, _DWORD *a3, __int64 a4, int a5, int a6, int a7, int a8)
{
_DWORD *v8; // x8
double v10; // [xsp+0h] [xbp-10h]
v8 = (_DWORD *)(*a1 + 33400LL);
switch ( a2 )
{
case 2:
*a3 = *v8;
if ( !a4 )
return 0;
goto LABEL_9;
case 1:
v8 = (_DWORD *)(*a1 + 33408LL);
*a3 = *v8;
if ( !a4 )
return 0;
LABEL_9:
v10 = *(float *)v8;
sub_1004C7414(a4, 0x20u, (int)"%.02f", a4, a5, a6, a7, a8, SLOBYTE(v10));
return 0;
case 0:
v8 = (_DWORD *)(*a1 + 33404LL);
*a3 = *v8;
if ( a4 )
goto LABEL_9;
break;
}
return 0;
}