//
// cocos2d::CCMenuItemToggle::activate from 0xd663dc to 0xd6642c (80 bytes)
//
// 2 xrefs:
// > ??> @ 0x77698
// > ??> @ 0x15267d0
//
// This function is hookable on this platform (idp: arm, 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 13:07:53 +0000
//
__int64 __fastcall cocos2d::CCMenuItemToggle::activate(cocos2d::CCMenuItemToggle *this)
{
unsigned int v2; // w20
unsigned int v3; // w0
if ( *((_BYTE *)this + 339) )
{
v2 = *((_DWORD *)this + 94) + 1;
v3 = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 48));
(*(void (__fastcall **)(cocos2d::CCMenuItemToggle *, _QWORD))(*(_QWORD *)this + 1080LL))(this, v2 % v3);
}
return cocos2d::CCMenuItem::activate((__int64)this);
}