//
// cocos2d::extension::CCControlSwitch::setEnabled from 0x18000cfb0 to 0x18000cfe7 (55 bytes)
//
// 2 xrefs:
// > ??> @ 0x180026aa0
// > ??> @ 0x18002fdf8
//
// 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 *this, char a2)
{
__int64 v3; // rcx
__int64 v4; // rcx
__int64 v5; // rdx
*((_BYTE *)this + 441) = a2;
v3 = *((_QWORD *)this + 59);
if ( v3 )
{
v4 = v3 + 320;
v5 = 128;
if ( a2 )
v5 = 255;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 40LL))(v4, v5);
}
}