//
// sub_82510 from 0x82510 to 0x825e8 (216 bytes)
//
// 2 xrefs:
// > sub_81310 @ 0x81644
// > sub_81310 @ 0x81650
//
// 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_82510(__int64 a1, int a2, float *a3, __int64 a4)
{
float *v4; // x8
float *v5; // x8
v4 = *(float **)(a1 + 8);
switch ( a2 )
{
case 1:
v5 = v4 + 1;
goto LABEL_17;
case 2:
v5 = v4 + 2;
goto LABEL_17;
case 3:
v5 = v4 + 3;
goto LABEL_17;
case 5:
v5 = v4 + 6;
goto LABEL_17;
case 6:
v5 = v4 + 7;
goto LABEL_17;
case 7:
v5 = v4 + 8;
goto LABEL_17;
case 9:
v5 = v4 + 11;
goto LABEL_17;
case 10:
v5 = v4 + 12;
goto LABEL_17;
case 11:
v5 = v4 + 13;
goto LABEL_17;
case 13:
v5 = v4 + 16;
goto LABEL_17;
case 14:
v5 = v4 + 17;
goto LABEL_17;
case 15:
v5 = v4 + 18;
goto LABEL_17;
case 17:
v5 = v4 + 21;
goto LABEL_17;
case 18:
v5 = v4 + 22;
goto LABEL_17;
case 19:
v5 = v4 + 23;
LABEL_17:
*a3 = *v5;
break;
default:
break;
}
if ( a4 )
sub_E3FC8(a4, 32, "%.02f", *a3);
return 0;
}