//
// sub_1005B2840 from 0x1005b2840 to 0x1005b28e4 (164 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:11 +0000
//
__int64 __fastcall sub_1005B2840(__int64 a1, int a2, float a3)
{
__int64 result; // x0
int *v5; // x1
int *v6; // [xsp+8h] [xbp-18h] BYREF
switch ( a2 )
{
case 0:
*(float *)(a1 + 632) = a3;
goto LABEL_7;
case 1:
*(float *)(a1 + 636) = a3;
goto LABEL_7;
case 2:
*(float *)(a1 + 644) = a3;
goto LABEL_7;
case 3:
*(float *)(a1 + 648) = a3;
LABEL_7:
result = sub_100564878(*(_QWORD *)(a1 + 168), &v6, 16, 1);
if ( !(_DWORD)result )
{
*(_BYTE *)v6 = 7;
v5 = v6;
*((_QWORD *)v6 + 1) = a1;
result = sub_10056491C(*(_QWORD *)(a1 + 168), (__int64)v5, 1);
}
break;
default:
result = 31;
break;
}
return result;
}