// // cocos2d::extension::CCControlSwitch::setEnabled from 0x18000caf0 to 0x18000cb25 (53 bytes) // // 2 xrefs: // > @ 0x1800290c8 // > @ 0x180032408 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:15:38 +0000 // 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); } }