//
// sub_100490698 from 0x100490698 to 0x10049073c (164 bytes)
//
// 1 xrefs:
// > ??> @ 0x100851a38
//
// 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_100490698(__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_10048FF0C(v4, 2);
}