//
// cocos2d::extension::CCControl::setEnabled from 0xa99524 to 0xa99558 (52 bytes)
//
// 9 xrefs:
// > cocos2d::extension::CCControlButton::setEnabled @ 0xa9c564
// > cocos2d::extension::CCControlHuePicker::setEnabled @ 0xa9d740
// > cocos2d::extension::CCControlSaturationBrightnessPicker::setEnabled @ 0xa9e174
// > cocos2d::extension::CCControlSlider::setEnabled @ 0xa9ef04
// > cocos2d::extension::CCControlPotentiometer::setEnabled @ 0xaa3f40
// > ??> @ 0x5d8b8
// > ??> @ 0x11f4a50
// > ??> @ 0x11f5960
// > ??> @ 0x11f8f10
//
// 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::CCControl::setEnabled(cocos2d::extension::CCControl *a1, bool a2)
{
cocos2d::extension::CCControl_vtbl *v2; // x4
cocos2d::CCControlState v3; // w3
v2 = a1->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_bEnabled = a2;
if ( a2 )
v3 = 1;
else
v3 = 4;
a1->m_eState = v3;
((void (*)(void))v2->needsLayout)();
}