//
// sub_10050AE50 from 0x10050ae50 to 0x10050aee4 (148 bytes)
//
// 1 xrefs:
// > sub_100509EF0 @ 0x10050a44d
//
// This function is hookable on this platform (idp: pc, 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 12:31:34 +0000
//
__int64 __fastcall sub_10050AE50(__int64 a1, float *a2, double a3, double a4, double a5)
{
double v5; // xmm0_8
__int64 v6; // rax
unsigned int v7; // r14d
__int64 v8; // rax
*(_QWORD *)&v5 = SliderThumb::getValue(a2).u64[0];
*(float *)&v5 = *(float *)&v5 * 10.0;
*(_DWORD *)(a1 + 1032) = LODWORD(v5);
v6 = *(_QWORD *)(a1 + 680);
if ( v6 )
{
*(_DWORD *)(v6 + 1452) = LODWORD(v5);
}
else if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 688)) )
{
v7 = 0;
do
{
v8 = sub_1007FEFE0(*(_QWORD *)(a1 + 688), v7);
*(_QWORD *)&v5 = *(unsigned int *)(a1 + 1032);
*(_DWORD *)(v8 + 1452) = LODWORD(v5);
++v7;
}
while ( v7 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 688)) );
}
return sub_10050AEF0(a1, 1, v5, a4, a5);
}