//
// cocos2d::extension::CCControlSaturationBrightnessPicker::setEnabled from 0x5a37ac to 0x5a37d4 (40 bytes)
//
// 0 xrefs:
//
// 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 cocos2d::extension::CCControlSaturationBrightnessPicker::setEnabled(
cocos2d::extension::CCControlSaturationBrightnessPicker *a1,
bool a2)
{
_BOOL4 v3; // r4
cocos2d::CCSprite *m_slider; // r0
int v5; // r1
v3 = a2;
cocos2d::extension::CCControl::setEnabled(a1, a2);
m_slider = a1->m_slider;
if ( m_slider )
{
if ( v3 )
v5 = 255;
else
v5 = 128;
m_slider->setOpacity(m_slider, v5);
}
}