// // cocos2d::CCMenuItem::activate from 0x100055420 to 0x1000554a0 (128 bytes) // // 6 xrefs: // > CCMenuItemToggler::activate @ 0x100224534 // > sub_1002AFE28 @ 0x1002afe8c // > CCMenuExtra::repeatTick @ 0x1002b0098 // > CCMenuItemSpriteExtra::activate @ 0x1002b0408 // > @ 0x1008bd698 // > @ 0x10093ef00 // // 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 10:57:45 +0000 // __int64 __fastcall cocos2d::CCMenuItem::activate(__int64 result) { __int64 v1; // x19 __int64 v2; // x9 unsigned __int64 v3; // x8 __int64 v4; // x11 _QWORD *v5; // x0 _QWORD *v6; // x0 if ( *(_BYTE *)(result + 339) == 1 ) { v1 = result; v2 = *(_QWORD *)(result + 344); if ( v2 ) { v3 = *(_QWORD *)(result + 352); v4 = *(_QWORD *)(result + 360); if ( v4 & 1 | v3 ) { v5 = (_QWORD *)(v2 + (v4 >> 1)); if ( (v4 & 1) != 0 ) v3 = *(_QWORD *)(*v5 + (unsigned int)v3); result = ((__int64 (__fastcall *)(_QWORD *, __int64))v3)(v5, v1); } } if ( *(_DWORD *)(v1 + 300) ) { v6 = (_QWORD *)cocos2d::CCScriptEngineManager::sharedManager(result); return (*(__int64 (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*v6 + 80LL))(*v6, v1); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source