//
// SliderThumb::setValue from 0x1002eede4 to 0x1002eeef4 (272 bytes)
//
// 4 xrefs:
// > SliderThumb::setRotated @ 0x1002eed48
// > SliderThumb::setMaxOffset @ 0x1002eef48
// > Slider::disableSlider @ 0x1002ef770
// > Slider::setValue @ 0x1002ef804
//
// 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
//
void __fastcall SliderThumb::setValue(SliderThumb *a1, float a2)
{
unsigned __int32 v4; // s9
float m_length; // s10
float v6; // s10
float v7; // s11
__n128 v8; // q1
__n128 v9; // q0
float v10; // s9
float v11; // s9
float v12; // s10
float v13; // s8
int v14; // [xsp+8h] [xbp-38h] BYREF
if ( a1->m_vertical )
{
v4 = *(_DWORD *)((__int64 (__fastcall *)(SliderThumb *))a1->getPosition)(a1);
m_length = a1->m_length;
v6 = m_length * ((float (__fastcall *)(SliderThumb *))a1->getScale)(a1);
v7 = a1->m_length;
v8.n128_f32[0] = (float)((float)(v7 * ((float (__fastcall *)(SliderThumb *))a1->getScale)(a1)) * -0.5)
+ (float)(a2 * v6);
v9.n128_u32[0] = v4;
}
else
{
v10 = a1->m_length;
v11 = v10 * ((float (__fastcall *)(SliderThumb *))a1->getScale)(a1);
v12 = a1->m_length;
v13 = (float)((float)(v12 * ((float (__fastcall *)(SliderThumb *))a1->getScale)(a1)) * -0.5) + (float)(a2 * v11);
v8.n128_u32[0] = *(_DWORD *)(((__int64 (__fastcall *)(SliderThumb *))a1->getPosition)(a1) + 4);
v9.n128_f32[0] = v13;
}
sub_100022980(v9, v8, &v14);
((void (__fastcall *)(SliderThumb *, int *))a1->setPosition)(a1, &v14);
}