//
// sub_1005B6800 from 0x1005b6800 to 0x1005b68a4 (164 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009d9b58
//
// 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_1005B6800(__int64 *a1, double a2, float a3)
{
__int64 v3; // x13
__int64 v4; // x0
__int64 v5; // x10
__int64 v6; // x8
__int64 v7; // x9
__int64 v8; // x10
__int64 v9; // kr00_8
float v10; // kr08_4
v4 = *a1;
v5 = *(_QWORD *)(v4 + 232);
v6 = *(unsigned int *)(v5 + 96);
if ( (int)v6 >= 1 )
{
v7 = 0;
v8 = *(_QWORD *)(v5 + 104);
do
{
v9 = v3;
v10 = a3;
a3 = *(float *)(*(_QWORD *)(v8 + 8 * v7) + 56LL);
v3 = (unsigned int)v7;
switch ( (int)v7 )
{
case 0:
a3 = a3 / 100.0;
*(float *)(v4 + 632) = a3;
break;
case 1:
a3 = a3 / 100.0;
*(float *)(v4 + 636) = a3;
break;
case 2:
*(float *)(v4 + 640) = a3;
break;
case 3:
*(float *)(v4 + 644) = a3;
break;
case 4:
v3 = a3 >= 0.5;
*(_DWORD *)(v4 + 648) = v3;
break;
default:
a3 = v10;
v3 = v9;
break;
}
++v7;
}
while ( v6 != v7 );
}
return sub_1005B6074(v4, 2);
}