//
// Slider::disableSlider from 0x1002ef72c to 0x1002ef7ec (192 bytes)
//
// 1 xrefs:
// > MusicBrowser::update @ 0x1003c2108
//
// 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::disableSlider(Slider *a1)
{
__int64 v1; // x29
__int64 v2; // x30
__int64 v4; // x0
__int16 v5; // [xsp+Ch] [xbp-24h] BYREF
char v6; // [xsp+Eh] [xbp-22h]
__int64 v7; // [xsp+20h] [xbp-10h]
__int64 v8; // [xsp+28h] [xbp-8h]
if ( a1->m_enabled )
{
v7 = v1;
v8 = v2;
a1->m_enabled = 0;
((void (__fastcall *)(SliderTouchLogic *, _QWORD))a1->m_touchLogic->setTouchEnabled)(a1->m_touchLogic, 0);
SliderThumb::setValue(a1->m_touchLogic->m_thumb, 0.0);
Slider::updateBar(a1);
v6 = -106;
v5 = -26986;
((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))a1->m_sliderBar->setColor)(a1->m_sliderBar, &v5);
((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))a1->m_groove->setColor)(a1->m_groove, &v5);
v4 = ((__int64 (__fastcall *)(SliderThumb *))a1->m_touchLogic->m_thumb->getNormalImage)(a1->m_touchLogic->m_thumb);
if ( v4 )
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v4 + 944LL))(v4, &v5);
}
}