//
// Slider::setValue from 0x140071c30 to 0x140071cbe (142 bytes)
//
// 62 xrefs:
// > ColorSelectLiveOverlay::selectColor @ 0x14008d3c8
// > ColorSelectLiveOverlay::selectColor @ 0x14008d3e0
// > ColorSelectLiveOverlay::selectColor @ 0x14008d3f8
// > ColorSelectLiveOverlay::selectColor @ 0x14008d40c
// > ColorSelectPopup::init @ 0x14008e40f
// > ColorSelectPopup::onDefault @ 0x140091031
// > ColorSelectPopup::textChanged @ 0x140093096
// > ConfigureHSVWidget::updateSliders @ 0x140097929
// > ConfigureHSVWidget::updateSliders @ 0x140097965
// > ConfigureHSVWidget::updateSliders @ 0x1400979a8
// > ConfigureHSVWidget::onToggleSConst @ 0x140097af8
// > ConfigureHSVWidget::onToggleVConst @ 0x140097b78
// > ConfigureHSVWidget::onResetHSV @ 0x140097bf6
// > ConfigureHSVWidget::onResetHSV @ 0x140097c0a
// > ConfigureHSVWidget::onResetHSV @ 0x140097c1e
// > ConfigureValuePopup::init @ 0x140098e16
// > ConfigureValuePopup::textChanged @ 0x140099534
// > CustomizeObjectLayer::init @ 0x1400a7187
// > EditorUI::updateSlider @ 0x1400e2bf7
// > GJScaleControl::loadValues @ 0x14012a1bc
// > GJScaleControl::loadValues @ 0x14012a25e
// > GJScaleControl::loadValues @ 0x14012a29a
// > GJScaleControl::loadValues @ 0x14012a2ea
// > GJScaleControl::ccTouchMoved @ 0x14012a8bb
// > GJScaleControl::ccTouchMoved @ 0x14012ab07
// > GJScaleControl::ccTouchMoved @ 0x14012ab3f
// > GJFollowCommandLayer::init @ 0x140270e6f
// > GJFollowCommandLayer::init @ 0x14027125b
// > GJFollowCommandLayer::textChanged @ 0x14027260b
// > GJPFollowCommandLayer::init @ 0x14028af57
// > GJPFollowCommandLayer::init @ 0x14028b349
// > GJPFollowCommandLayer::textChanged @ 0x14028c857
// > GJPFollowCommandLayer::textChanged @ 0x14028c952
// > GJPFollowCommandLayer::textChanged @ 0x14028ca54
// > MusicBrowser::update @ 0x140339697
// > MusicBrowser::update @ 0x1403396e1
// > OptionsLayer::customSetup @ 0x140372573
// > OptionsLayer::customSetup @ 0x1403726f4
// > PauseLayer::customSetup @ 0x14037d108
// > PauseLayer::customSetup @ 0x14037d1d9
// > SetupCameraOffsetTrigger::init @ 0x140415ba1
// > SetupCameraOffsetTrigger::init @ 0x1404163ef
// > SetupCameraOffsetTrigger::textChanged @ 0x140417747
// > SetupMGTrigger::init @ 0x14042797d
// > SetupMGTrigger::init @ 0x1404281d8
// > SetupMGTrigger::textChanged @ 0x14042881d
// > SetupOpacityPopup::init @ 0x14042b18a
// > SetupOpacityPopup::textChanged @ 0x14042b9e9
// > CreateParticlePopup::createParticleSlider @ 0x140430de4
// > CreateParticlePopup::updateSliderForType @ 0x1404349a6
// > SetupPulsePopup::textChanged @ 0x14043c729
// > SetupPulsePopup::textChanged @ 0x14043c829
// > SetupPulsePopup::textChanged @ 0x14043c929
// > SetupRandTriggerPopup::init @ 0x140440761
// > SetupShakePopup::init @ 0x140455820
// > SetupShakePopup::textChanged @ 0x14045625a
// > SetupShakePopup::textChanged @ 0x14045648a
// > SetupTimeWarpPopup::init @ 0x14046389a
// > SetupTriggerPopup::textChanged @ 0x140475a0d
// > SetupTriggerPopup::updateValueControls @ 0x140477cf9
// > SetupTriggerPopup::updateSlider @ 0x1404780a1
// > ??> @ 0x1406c62a0
//
// 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 Slider::setValue(Slider *a1, float a2)
{
float Value; // xmm0_4
float m_width; // xmm3_4
cocos2d::CCSprite_vtbl *v5; // rbx
const cocos2d::CCRect *v6; // rax
cocos2d::CCRect v7; // [rsp+30h] [rbp-18h] BYREF
SliderThumb::setValue(a1->m_touchLogic->m_thumb, a2);
Value = SliderThumb::getValue(a1->m_touchLogic->m_thumb);
m_width = a1->m_width;
if ( (float)(m_width * Value) <= m_width )
m_width = a1->m_width * Value;
v5 = a1->m_sliderBar->__vftable;
v6 = (const cocos2d::CCRect *)cocos2d::CCRect::CCRect(&v7, 0.0, 0.0, m_width, a1->m_height);
v5->setTextureRect_0(a1->m_sliderBar, v6);
}