//
// cocos2d::extension::CCControlSwitch::setEnabled from 0x7a9dca to 0x7a9de6 (28 bytes)
//
// 0 xrefs:
//
// 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 12:00:01 +0000
//
int __fastcall cocos2d::extension::CCControlSwitch::setEnabled(cocos2d::extension::CCControlSwitch *this, int a2)
{
int result; // r0
int v3; // r1
*((_BYTE *)this + 337) = a2;
result = *((_DWORD *)this + 89);
if ( result )
{
if ( a2 )
v3 = 255;
else
v3 = 128;
return (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 456))(result, v3);
}
return result;
}