//
// sub_8A6B0 from 0x8a6b0 to 0x8a724 (116 bytes)
//
// 2 xrefs:
// > ??> @ 0x8a6ae
// > sub_8A800 @ 0x8a802
//
// 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
//
int __fastcall sub_8A6B0(float *a1, int a2, _DWORD *a3, int a4)
{
float v4; // s0
switch ( a2 )
{
case 0:
*a3 = *((_DWORD *)a1 + 176);
if ( !a4 )
return 0;
v4 = a1[176];
break;
case 1:
*a3 = *((_DWORD *)a1 + 177);
if ( !a4 )
return 0;
v4 = a1[177];
break;
case 2:
*a3 = *((_DWORD *)a1 + 175);
if ( !a4 )
return 0;
v4 = a1[175];
break;
case 3:
*a3 = *((_DWORD *)a1 + 178);
if ( !a4 )
return 0;
v4 = a1[178];
break;
case 4:
*a3 = *((_DWORD *)a1 + 179);
if ( !a4 )
return 0;
v4 = a1[179];
break;
default:
return 31;
}
sub_BE420(a4, 32, "%.02f", v4);
return 0;
}