//
// Slider::setValue from 0x100304b70 to 0x100304c68 (248 bytes)
//
// 85 xrefs:
// > GJRotateCommandLayer::init @ 0x100001d6c
// > GJRotateCommandLayer::init @ 0x100002677
// > GJRotateCommandLayer::textChanged @ 0x100004e54
// > EditorUI::init @ 0x10000a729
// > EditorUI::updateSlider @ 0x10002abaf
// > EditorUI::onCreateObject @ 0x1000353fb
// > EditorUI::updateZoom @ 0x10003dbaa
// > GJScaleControl::loadValues @ 0x10003f184
// > GJScaleControl::loadValues @ 0x10003f31c
// > GJScaleControl::loadValues @ 0x10003f35e
// > GJScaleControl::loadValues @ 0x10003f3b5
// > EditorUI::scrollWheel @ 0x10005189e
// > GJScaleControl::ccTouchMoved @ 0x100052916
// > GJScaleControl::ccTouchMoved @ 0x100052b92
// > GJScaleControl::ccTouchMoved @ 0x100052c97
// > SetupOpacityPopup::init @ 0x100057ab6
// > SetupOpacityPopup::init @ 0x100057c3d
// > SetupOpacityPopup::textChanged @ 0x1000587bc
// > CustomizeObjectLayer::init @ 0x1001f691c
// > SetupTriggerPopup::textChanged @ 0x1002370ed
// > SetupTriggerPopup::updateSlider @ 0x10023902e
// > SetupTriggerPopup::updateValueControls @ 0x10023997d
// > SetupTriggerPopup::updateSlider_1 @ 0x10023dee0
// > GJFollowCommandLayer::init @ 0x1002d58f5
// > GJFollowCommandLayer::init @ 0x1002d5cd1
// > GJFollowCommandLayer::textChanged @ 0x1002d77a4
// > GJPFollowCommandLayer::init @ 0x100364ff3
// > GJPFollowCommandLayer::init @ 0x1003653e1
// > GJPFollowCommandLayer::textChanged @ 0x1003673fc
// > SetupPulsePopup::init @ 0x1003aa8cc
// > SetupPulsePopup::init @ 0x1003aacbc
// > SetupPulsePopup::init @ 0x1003ab0b1
// > SetupPulsePopup::textChanged @ 0x1003b028a
// > PauseLayer::customSetup @ 0x1003d643a
// > PauseLayer::customSetup @ 0x1003d64c0
// > SetupGravityModPopup::init @ 0x1003d8915
// > ConfigureHSVWidget::init @ 0x100430557
// > ConfigureHSVWidget::init @ 0x10043056b
// > ConfigureHSVWidget::init @ 0x10043057f
// > ConfigureHSVWidget::init @ 0x1004306a0
// > ConfigureHSVWidget::init @ 0x1004306e6
// > ConfigureHSVWidget::init @ 0x10043072c
// > ConfigureHSVWidget::onToggleSConst @ 0x100430adf
// > ConfigureHSVWidget::onToggleVConst @ 0x100430b4f
// > ConfigureHSVWidget::onResetHSV @ 0x100430bc6
// > ConfigureHSVWidget::onResetHSV @ 0x100430bda
// > ConfigureHSVWidget::onResetHSV @ 0x100430bee
// > ConfigureHSVWidget::updateSliders @ 0x10043121c
// > ConfigureHSVWidget::updateSliders @ 0x100431262
// > ConfigureHSVWidget::updateSliders @ 0x1004312ac
// > ConfigureHSVWidget::textChanged @ 0x1004314ac
// > ConfigureHSVWidget::textChanged @ 0x1004314f2
// > ConfigureHSVWidget::textChanged @ 0x100431538
// > CreateParticlePopup::createParticleSlider @ 0x100474015
// > CreateParticlePopup::updateSliderForType @ 0x10047539d
// > SetupCameraModePopup::init @ 0x1004a94aa
// > SetupCameraModePopup::init @ 0x1004a9642
// > SetupCameraRotatePopup::init @ 0x1004bd008
// > SetupCameraRotatePopup::init @ 0x1004bd81e
// > SetupCameraRotatePopup::textChanged @ 0x1004be8a7
// > SetupTimeWarpPopup::init @ 0x100503179
// > SetupMGTrigger::init @ 0x100508c80
// > SetupMGTrigger::init @ 0x100509509
// > SetupMGTrigger::textChanged @ 0x10050a654
// > ColorSelectLiveOverlay::selectColor @ 0x100569cf7
// > ColorSelectLiveOverlay::selectColor @ 0x100569d0f
// > ColorSelectLiveOverlay::selectColor @ 0x100569d27
// > ColorSelectLiveOverlay::selectColor @ 0x100569d3b
// > SetupPortalPopup::init @ 0x10056ff33
// > SetupPortalPopup::init @ 0x1005700cb
// > SetupRandTriggerPopup::init @ 0x1005e5e5c
// > MusicBrowser::update @ 0x10060f125
// > ConfigureValuePopup::init @ 0x10062527d
// > ConfigureValuePopup::textChanged @ 0x1006258ad
// > SetupCameraOffsetTrigger::init @ 0x100661bfe
// > SetupCameraOffsetTrigger::init @ 0x100662514
// > SetupCameraOffsetTrigger::textChanged @ 0x100663c9a
// > SetupShakePopup::init @ 0x100664a43
// > SetupShakePopup::textChanged @ 0x10066583e
// > ColorSelectPopup::init @ 0x1007254d2
// > ColorSelectPopup::init @ 0x1007256cc
// > ColorSelectPopup::onDefault @ 0x100727d43
// > ColorSelectPopup::textChanged @ 0x10072b1c6
// > OptionsLayer::customSetup @ 0x10079a932
// > OptionsLayer::customSetup @ 0x10079aa7b
//
// 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 Slider::setValue(Slider *a1, float a2)
{
SliderThumb *m_thumb; // r14
_BOOL8 m_vertical; // r15
__m128 v4; // xmm2
cocos2d::CCSprite *m_sliderBar; // r14
_BYTE v6[16]; // [rsp+0h] [rbp-30h] BYREF
float m_length; // [rsp+10h] [rbp-20h]
float v8; // [rsp+14h] [rbp-1Ch]
SliderThumb::setValue(a1->m_touchLogic->m_thumb, a2);
m_thumb = a1->m_touchLogic->m_thumb;
m_vertical = m_thumb->m_vertical;
v8 = *(float *)(((__int64 (__fastcall *)(SliderThumb *))m_thumb->getPosition)(m_thumb) + 4 * m_vertical);
m_length = m_thumb->m_length;
m_length = (float)((float)(m_length * ((float (__fastcall *)(SliderThumb *))m_thumb->getScale)(m_thumb)) * 0.5) + v8;
v8 = m_thumb->m_length;
v4 = (__m128)LODWORD(m_length);
v4.f32[0] = fminf(
(float)(m_length / (float)(((float (__fastcall *)(SliderThumb *))m_thumb->getScale)(m_thumb) * v8))
* a1->m_width,
a1->m_width);
m_sliderBar = a1->m_sliderBar;
sub_10028CC00((__int64)v6, 0.0, 0.0, v4, (__m128)LODWORD(a1->m_height));
((void (__fastcall *)(cocos2d::CCSprite *, _BYTE *))m_sliderBar->setTextureRect)(m_sliderBar, v6);
}