//
// cocos2d::extension::CCControl::setEnabled from 0x7a65f4 to 0x7a660c (24 bytes)
//
// 5 xrefs:
// > cocos2d::extension::CCControlButton::setEnabled @ 0x7a8048
// > cocos2d::extension::CCControlHuePicker::setEnabled @ 0x7a8d56
// > cocos2d::extension::CCControlSaturationBrightnessPicker::setEnabled @ 0x7a94c2
// > cocos2d::extension::CCControlSlider::setEnabled @ 0x7a9d9e
// > cocos2d::extension::CCControlPotentiometer::setEnabled @ 0x7ad186
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:57 +0000
//
int __fastcall cocos2d::extension::CCControl::setEnabled(cocos2d::extension::CCControl *this, int a2)
{
int v2; // r3
int v3; // r2
v2 = *(_DWORD *)this;
*((_BYTE *)this + 337) = a2;
if ( a2 )
v3 = 1;
else
v3 = 4;
*((_DWORD *)this + 83) = v3;
return (*(int (**)(void))(v2 + 656))();
}