//
// sub_1005B2AC4 from 0x1005b2ac4 to 0x1005b2b68 (164 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009d97c0
//
// 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_1005B2AC4(__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;
goto LABEL_7;
case 1:
*(float *)(v3 + 636) = a3;
goto LABEL_7;
case 2:
*(float *)(v3 + 644) = a3;
goto LABEL_7;
case 3:
*(float *)(v3 + 648) = a3;
LABEL_7:
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 = 31;
break;
}
return result;
}