//
// sub_18006F580 from 0x18006f580 to 0x18006f63d (189 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801acfc0
// > ??> @ 0x1801f9834
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_18006F580(__int64 *a1)
{
__int64 v1; // r10
int v2; // edx
__int64 v3; // r9
__int64 v4; // r8
float v5; // xmm0_4
v1 = *a1;
v2 = 0;
v3 = *(_QWORD *)(*a1 + 232);
if ( *(int *)(v3 + 96) > 0 )
{
v4 = 0;
do
{
v5 = *(float *)(*(_QWORD *)(*(_QWORD *)(v3 + 104) + v4) + 56LL);
if ( v2 )
{
switch ( v2 )
{
case 1:
*(float *)(v1 + 644) = v5 * 0.0099999998;
break;
case 2:
*(float *)(v1 + 648) = v5;
break;
case 3:
*(float *)(v1 + 652) = v5;
break;
case 4:
*(_DWORD *)(v1 + 656) = v5 >= 0.5;
break;
}
}
else
{
*(float *)(v1 + 640) = v5 * 0.0099999998;
}
++v2;
v4 += 8;
}
while ( v2 < *(_DWORD *)(v3 + 96) );
}
return sub_18006F890(v1, 2, 0);
}