//
// sub_1005B6974 from 0x1005b6974 to 0x1005b6a44 (208 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009d9b98
//
// 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_1005B6974(__int64 *a1, int a2, float a3)
{
__int64 v3; // x19
__int64 result; // x0
int *v5; // x1
int *v6; // [xsp+8h] [xbp-18h] BYREF
v3 = *a1;
switch ( a2 )
{
case 0:
*(float *)(v3 + 632) = a3 / 100.0;
goto LABEL_8;
case 1:
*(float *)(v3 + 636) = a3 / 100.0;
goto LABEL_8;
case 2:
*(float *)(v3 + 640) = a3;
goto LABEL_8;
case 3:
*(float *)(v3 + 644) = a3;
goto LABEL_8;
case 4:
*(_DWORD *)(v3 + 648) = a3 >= 0.5;
LABEL_8:
result = sub_100564878(*(_QWORD *)(v3 + 168), &v6, 16, 1);
if ( !(_DWORD)result )
{
*(_BYTE *)v6 = 7;
v5 = v6;
*((_QWORD *)v6 + 1) = v3;
result = sub_10056491C(*(_QWORD *)(v3 + 168), (__int64)v5, 1);
}
break;
default:
result = 0;
break;
}
return result;
}