// // cocos2d::CCMenuItemToggle::activate from 0x18005c210 to 0x18005c2a1 (145 bytes) // // 5 xrefs: // > @ 0x1800ff460 // > @ 0x1801422a8 // > @ 0x1801422b8 // > @ 0x18014cf68 // > @ 0x1801bcf04 // // 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 11:21:49 +0000 // void __fastcall cocos2d::CCMenuItemToggle::activate(cocos2d::CCMenuItemToggle *this) { int v2; // ebx unsigned int v3; // eax __int64 v4; // rcx void (__fastcall *v5)(__int64, cocos2d::CCMenuItemToggle *); // rax struct cocos2d::CCScriptEngineManager *v6; // rax if ( *((_BYTE *)this + 345) ) { v2 = *((_DWORD *)this + 94); v3 = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 48)); (*(void (__fastcall **)(cocos2d::CCMenuItemToggle *, _QWORD))(*(_QWORD *)this + 960LL))(this, (v2 + 1) % v3); } if ( *((_BYTE *)this + 345) ) { v4 = *((_QWORD *)this + 44); if ( v4 ) { v5 = *((void (__fastcall **)(__int64, cocos2d::CCMenuItemToggle *))this + 45); if ( v5 ) v5(v4, this); } if ( *((_DWORD *)this + 75) ) { v6 = cocos2d::CCScriptEngineManager::sharedManager(); (*(void (__fastcall **)(_QWORD, cocos2d::CCMenuItemToggle *))(**(_QWORD **)v6 + 72LL))(*(_QWORD *)v6, this); } } }