//
// cocos2d::extension::CCControlSwitch::setEnabled from 0x1003a8c00 to 0x1003a8c36 (54 bytes)
//
// 1 xrefs:
// > ??> @ 0x100928768
//
// 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 cocos2d::extension::CCControlSwitch::setEnabled(cocos2d::extension::CCControlSwitch *a1, bool a2)
{
cocos2d::extension::CCControlSwitch_vtbl *v2; // rdi
bool v3; // zf
__int64 v4; // rsi
a1->m_bEnabled = a2;
v2 = a1[1].cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
if ( v2 )
{
v3 = !a2;
v4 = 128;
if ( !v3 )
v4 = 255;
(*((void (__fastcall **)(cocos2d::extension::CCControlSwitch_vtbl *, __int64))v2->copyWithZone + 112))(v2, v4);
}
}