//
// cocos2d::extension::CCControl::setEnabled from 0x180004ad0 to 0x180004af7 (39 bytes)
//
// 4 xrefs:
// > ??> @ 0x180023ae8
// > ??> @ 0x180024658
// > ??> @ 0x180026478
// > ??> @ 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::CCControl::setEnabled(cocos2d::extension::CCControl *this, char a2)
{
int v2; // eax
*((_BYTE *)this + 441) = a2;
v2 = 1;
if ( !a2 )
v2 = 4;
*((_DWORD *)this + 109) = v2;
(*(void (__fastcall **)(cocos2d::extension::CCControl *))(*(_QWORD *)this + 1064LL))(this);
}