//
// ConfigureHSVWidget::sliderChanged from 0x1004309b0 to 0x100430ab7 (263 bytes)
//
// 3 xrefs:
// > ConfigureHSVWidget::init @ 0x10042ffa5
// > ConfigureHSVWidget::init @ 0x10043011e
// > ConfigureHSVWidget::init @ 0x10043028f
//
// 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 ConfigureHSVWidget::sliderChanged(ConfigureHSVWidget *a1, cocos2d::CCObject *a2)
{
__m128 v2; // xmm0
int v4; // eax
cocos2d::CCString *v5; // rax
float v6; // xmm0_4
float v7; // xmm0_4
cocos2d::CCString *v8; // rax
float v9; // xmm0_4
float v10; // xmm0_4
HSVWidgetDelegate *m_delegate; // rdi
v2.f32[0] = SliderThumb::getValue((SliderThumb *)a2);
v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
switch ( v4 )
{
case 3:
v8 = (cocos2d::CCString *)sub_1007AB580("%0.2f", v2.i8[0]);
v9 = cocos2d::CCString::floatValue(v8);
v10 = v9 + v9;
if ( a1->m_hsv.absoluteBrightness )
v10 = v10 + -1.0;
a1->m_hsv.v = v10;
break;
case 2:
v5 = (cocos2d::CCString *)sub_1007AB580("%0.2f", v2.i8[0]);
v6 = cocos2d::CCString::floatValue(v5);
v7 = v6 + v6;
if ( a1->m_hsv.absoluteSaturation )
v7 = v7 + -1.0;
a1->m_hsv.s = v7;
break;
case 1:
v2.f32[0] = (float)(v2.f32[0] * 360.0) + -180.0;
LODWORD(a1->m_hsv.h) = _mm_cvtepi32_ps(_mm_cvttps_epi32(v2)).u32[0];
break;
}
ConfigureHSVWidget::updateLabels(a1);
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(HSVWidgetDelegate *, ConfigureHSVWidget *))m_delegate->hsvChanged)(m_delegate, a1);
}