//
// SliderThumb::getValue from 0x140084020 to 0x1400840b1 (145 bytes)
//
// 53 xrefs:
// > SliderTouchLogic::ccTouchMoved @ 0x140084632
// > Slider::setValue @ 0x1400849e3
// > Slider::updateBar @ 0x140084a70
// > Slider::setRotated @ 0x140084b5f
// > Slider::setMaxOffset @ 0x140084c14
// > DeathMarkerSettingsPopup::onFrequencySlider @ 0x14011d887
// > DeathMarkerSettingsPopup::onFrequencySlider @ 0x14011d8c4
// > DeathMarkerSettingsPopup::onFrequencySlider @ 0x14011d8f4
// > DeathMarkerSettingsPopup::onFrequencySlider @ 0x14011d926
// > DeathMarkerSettingsPopup::onTimescaleSlider @ 0x14011dae9
// > DeathMarkerSettingsPopup::onTimescaleSlider @ 0x14011db1e
// > DeathMarkerSettingsPopup::onTimescaleSlider @ 0x14011db4e
// > DeathMarkerSettingsPopup::onTimescaleSlider @ 0x14011db82
// > ColorSelectLiveOverlay::sliderChanged @ 0x140125e2b
// > ColorSelectPopup::init @ 0x1401274ab
// > ColorSelectPopup::sliderChanged @ 0x14012a138
// > ConfigureHSVWidget::sliderChanged @ 0x140130bd8
// > ConfigureValuePopup::sliderChanged @ 0x1401325a3
// > CustomizeObjectLayer::sliderChanged @ 0x140141f5c
// > EditorPauseLayer::musicSliderChanged @ 0x1401822fc
// > EditorPauseLayer::sfxSliderChanged @ 0x14018239e
// > EditorPauseLayer::editorSFXSliderChanged @ 0x140182451
// > GJScaleControl::sliderChanged @ 0x1401a3c83
// > GJScaleControl::ccTouchBegan @ 0x1401a3df8
// > GJScaleControl::ccTouchBegan @ 0x1401a3e9d
// > GJScaleControl::ccTouchMoved @ 0x1401a4010
// > GJScaleControl::ccTouchMoved @ 0x1401a403a
// > GJScaleControl::ccTouchEnded @ 0x1401a43ea
// > GJScaleControl::ccTouchEnded @ 0x1401a444c
// > EditorUI::sliderChanged @ 0x1401ae025
// > MusicBrowser::sliderEnded @ 0x14047c1c9
// > OptionsLayer::musicSliderChanged @ 0x1404cbb37
// > SetupCameraModePopup::init @ 0x1405abf76
// > SetupCameraModePopup::sliderChanged @ 0x1405ac438
// > SetupCameraOffsetTrigger::sliderChanged @ 0x1405ae5bc
// > SetupCameraOffsetTrigger::sliderXChanged @ 0x1405ae74c
// > SetupCameraOffsetTrigger::sliderYChanged @ 0x1405ae79c
// > SetupMGTrigger::sliderYChanged @ 0x1405bdaec
// > SetupOpacityPopup::init @ 0x1405c06fb
// > SetupOpacityPopup::sliderChanged @ 0x1405c0958
// > CreateParticlePopup::sliderChanged @ 0x1405ca3d8
// > SetupPulsePopup::init @ 0x1405cd6f5
// > SetupPulsePopup::init @ 0x1405cdb7e
// > SetupPulsePopup::init @ 0x1405ce008
// > SetupPulsePopup::sliderChanged @ 0x1405d1308
// > SetupRandTriggerPopup::sliderChanged @ 0x1405d5b1c
// > SetupShakePopup::init @ 0x1405eb15f
// > SetupShakePopup::init @ 0x1405eb1f0
// > SetupShakePopup::sliderChanged @ 0x1405eb528
// > SetupTimeWarpPopup::sliderChanged @ 0x1405f9b8c
// > SetupTriggerPopup::triggerSliderChanged @ 0x14060d383
// > TimeSpeedControl::timeSliderChanged @ 0x14066dc65
// > ??> @ 0x140912434
//
// 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 11:25:56 +0000
//
float __fastcall SliderThumb::getValue(float *a1)
{
float result; // xmm0_4
float v3; // xmm2_4
float v4; // xmm3_4
float v5; // xmm7_4
result = SliderThumb::getRawValue(a1).m128_f32[0];
v3 = a1[102];
if ( v3 >= 0.0 )
{
v4 = a1[103];
if ( v4 > 0.0 && v4 > fabs(result - v3) )
return a1[102];
}
v5 = a1[104];
if ( v5 > 0.0 )
return fminf(1.0, fmaxf(0.0, roundf(result / v5) * v5));
return result;
}