//
// sub_10056FD48 from 0x10056fd48 to 0x10056fdd4 (140 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009d55a8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:08:17 +0000
//
__int64 __fastcall sub_10056FD48(__int64 *a1, int a2, float *a3, _BYTE *a4)
{
__int64 result; // x0
__int64 v6; // x8
float v7; // s0
if ( !a3 )
return 31;
result = 31;
v6 = *a1;
switch ( a2 )
{
case 1:
v7 = (float)*(unsigned int *)(v6 + 668);
goto LABEL_11;
case 2:
v7 = *(float *)(v6 + 560);
goto LABEL_11;
case 3:
v7 = *(float *)(v6 + 564);
goto LABEL_11;
case 4:
v7 = (float)*(unsigned int *)(v6 + 680);
goto LABEL_11;
case 5:
v7 = *(float *)(v6 + 684);
goto LABEL_11;
case 6:
v7 = *(float *)(v6 + 688);
goto LABEL_11;
case 8:
v7 = *(float *)(v6 + 704);
LABEL_11:
*a3 = v7;
result = 0;
if ( a4 )
*a4 = 0;
break;
default:
return result;
}
return result;
}