{"type": "func", "start": 6442819904, "end": 6442819989, "name": "cocos2d::CCMenuItem::activate", "pseudocode": "// \n// cocos2d::CCMenuItem::activate from 0x18005a140 to 0x18005a195 (85 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800f75c8\n// > <???> @ 0x1800f86c8\n// > <???> @ 0x1800f8b28\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2c4c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall cocos2d::CCMenuItem::activate(cocos2d::CCMenuItem *this)\n{\n  cocos2d::CCObject *m_pListener; // rcx\n  void (__cdecl *ptr)(cocos2d::CCObject *); // rax\n  struct cocos2d::CCScriptEngineManager *v4; // rax\n\n  if ( this->m_bEnabled )\n  {\n    m_pListener = this->m_pListener;\n    if ( m_pListener )\n    {\n      ptr = this->m_pfnSelector.ptr;\n      if ( ptr )\n        ((void (__fastcall *)(cocos2d::CCObject *, cocos2d::CCMenuItem *))ptr)(m_pListener, this);\n    }\n    if ( this->m_eScriptType )\n    {\n      v4 = cocos2d::CCScriptEngineManager::sharedManager();\n      (*(void (__fastcall **)(_QWORD, cocos2d::CCMenuItem *))(**(_QWORD **)v4 + 72LL))(*(_QWORD *)v4, this);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCMenuItem::activate from 0x18005a140 to 0x18005a195 (85 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800f75c8\n; > <???> @ 0x1800f86c8\n; > <???> @ 0x1800f8b28\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2c4c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x18005a140\nsub     rsp, 20h                                                       ; +0x2, 0x18005a142\ncmp     byte ptr [rcx+159h], 0                                         ; +0x6, 0x18005a146\nmov     rbx, rcx                                                       ; +0xd, 0x18005a14d\njz      short loc_18005A18F                                            ; +0x10, 0x18005a150\nmov     rcx, [rcx+160h]                                                ; +0x12, 0x18005a152\ntest    rcx, rcx                                                       ; +0x19, 0x18005a159\njz      short loc_18005A16F                                            ; +0x1c, 0x18005a15c\nmov     rax, [rbx+168h]                                                ; +0x1e, 0x18005a15e\ntest    rax, rax                                                       ; +0x25, 0x18005a165\njz      short loc_18005A16F                                            ; +0x28, 0x18005a168\nmov     rdx, rbx                                                       ; +0x2a, 0x18005a16a\ncall    rax                                                            ; +0x2d, 0x18005a16d\ncmp     dword ptr [rbx+12Ch], 0                                        ; +0x2f, 0x18005a16f\njz      short loc_18005A18F                                            ; +0x36, 0x18005a176\ncall    ?sharedManager@CCScriptEngineManager@cocos2d@@SAPEAV12@XZ; cocos2d::CCScriptEngineManager::sharedManager(void) ; +0x38, 0x18005a178\nmov     rdx, rbx                                                       ; +0x3d, 0x18005a17d\nmov     rcx, [rax]                                                     ; +0x40, 0x18005a180\nmov     rax, [rcx]                                                     ; +0x43, 0x18005a183\nadd     rsp, 20h                                                       ; +0x46, 0x18005a186\npop     rbx                                                            ; +0x4a, 0x18005a18a\njmp     qword ptr [rax+48h]                                            ; +0x4b, 0x18005a18b\nadd     rsp, 20h                                                       ; +0x4f, 0x18005a18f\npop     rbx                                                            ; +0x53, 0x18005a193\nretn                                                                   ; +0x54, 0x18005a194", "xrefs": ["<???> @ 0x1800f75c8", "<???> @ 0x1800f86c8", "<???> @ 0x1800f8b28", "<???> @ 0x1801438a8", "<???> @ 0x1801b2c4c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}