//
// sub_A6EC8 from 0xa6ec8 to 0xa6f48 (128 bytes)
//
// 1 xrefs:
// > sub_A6FA0 @ 0xa6fa8
//
// 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_A6EC8(__int64 a1, int a2, _DWORD *a3, __int64 a4)
{
_DWORD *v4; // x8
float v5; // s0
v4 = (_DWORD *)(a1 + 33408);
switch ( a2 )
{
case 2:
*a3 = *v4;
if ( a4 )
{
v5 = *(float *)v4;
goto LABEL_10;
}
break;
case 1:
*a3 = *(_DWORD *)(a1 + 33416);
if ( a4 )
{
v5 = *(float *)(a1 + 33416);
goto LABEL_10;
}
break;
case 0:
*a3 = *(_DWORD *)(a1 + 33412);
if ( a4 )
{
v5 = *(float *)(a1 + 33412);
LABEL_10:
sub_E3FC8(a4, 32, "%.02f", v5);
}
break;
}
return 0;
}