//
// sub_1005B5F94 from 0x1005b5f94 to 0x1005b6074 (224 bytes)
//
// 0 xrefs:
//
// 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:09:13 +0000
//
__int64 __fastcall sub_1005B5F94(__int64 a1, int a2, int a3, float a4)
{
__int64 result; // x0
int *v6; // x1
int *v7; // [xsp+8h] [xbp-18h] BYREF
switch ( a2 )
{
case 0:
*(float *)(a1 + 632) = a4 / 100.0;
if ( !a3 )
goto LABEL_9;
goto LABEL_11;
case 1:
*(float *)(a1 + 636) = a4 / 100.0;
if ( a3 )
goto LABEL_11;
goto LABEL_9;
case 2:
*(float *)(a1 + 640) = a4;
if ( a3 )
goto LABEL_11;
goto LABEL_9;
case 3:
*(float *)(a1 + 644) = a4;
if ( !a3 )
goto LABEL_9;
goto LABEL_11;
case 4:
*(_DWORD *)(a1 + 648) = a4 >= 0.5;
if ( !a3 )
goto LABEL_9;
LABEL_11:
result = sub_100564878(*(_QWORD *)(a1 + 168), &v7, 16, 1);
if ( !(_DWORD)result )
{
*(_BYTE *)v7 = 7;
v6 = v7;
*((_QWORD *)v7 + 1) = a1;
result = sub_10056491C(*(_QWORD *)(a1 + 168), (__int64)v6, 1);
}
break;
default:
LABEL_9:
result = 0;
break;
}
return result;
}