{"type": "func", "start": 6442828080, "end": 6442828165, "name": "cocos2d::CCMenuItem::activate", "pseudocode": "// \n// cocos2d::CCMenuItem::activate from 0x18005c130 to 0x18005c185 (85 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800fda40\n// > <???> @ 0x1800feb80\n// > <???> @ 0x1800feff0\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bceec\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:49 +0000\n// \n\nvoid __fastcall cocos2d::CCMenuItem::activate(cocos2d::CCMenuItem *this)\n{\n  __int64 v2; // rcx\n  void (__fastcall *v3)(__int64, cocos2d::CCMenuItem *); // rax\n  struct cocos2d::CCScriptEngineManager *v4; // rax\n\n  if ( *((_BYTE *)this + 345) )\n  {\n    v2 = *((_QWORD *)this + 44);\n    if ( v2 )\n    {\n      v3 = *((void (__fastcall **)(__int64, cocos2d::CCMenuItem *))this + 45);\n      if ( v3 )\n        v3(v2, this);\n    }\n    if ( *((_DWORD *)this + 75) )\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 0x18005c130 to 0x18005c185 (85 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800fda40\n; > <???> @ 0x1800feb80\n; > <???> @ 0x1800feff0\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bceec\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:49 +0000\n; \npush    rbx                                                            ; +0x0, 0x18005c130\nsub     rsp, 20h                                                       ; +0x2, 0x18005c132\ncmp     byte ptr [rcx+159h], 0                                         ; +0x6, 0x18005c136\nmov     rbx, rcx                                                       ; +0xd, 0x18005c13d\njz      short loc_18005C17F                                            ; +0x10, 0x18005c140\nmov     rcx, [rcx+160h]                                                ; +0x12, 0x18005c142\ntest    rcx, rcx                                                       ; +0x19, 0x18005c149\njz      short loc_18005C15F                                            ; +0x1c, 0x18005c14c\nmov     rax, [rbx+168h]                                                ; +0x1e, 0x18005c14e\ntest    rax, rax                                                       ; +0x25, 0x18005c155\njz      short loc_18005C15F                                            ; +0x28, 0x18005c158\nmov     rdx, rbx                                                       ; +0x2a, 0x18005c15a\ncall    rax                                                            ; +0x2d, 0x18005c15d\ncmp     dword ptr [rbx+12Ch], 0                                        ; +0x2f, 0x18005c15f\njz      short loc_18005C17F                                            ; +0x36, 0x18005c166\ncall    ?sharedManager@CCScriptEngineManager@cocos2d@@SAPEAV12@XZ; cocos2d::CCScriptEngineManager::sharedManager(void) ; +0x38, 0x18005c168\nmov     rdx, rbx                                                       ; +0x3d, 0x18005c16d\nmov     rcx, [rax]                                                     ; +0x40, 0x18005c170\nmov     rax, [rcx]                                                     ; +0x43, 0x18005c173\nadd     rsp, 20h                                                       ; +0x46, 0x18005c176\npop     rbx                                                            ; +0x4a, 0x18005c17a\njmp     qword ptr [rax+48h]                                            ; +0x4b, 0x18005c17b\nadd     rsp, 20h                                                       ; +0x4f, 0x18005c17f\npop     rbx                                                            ; +0x53, 0x18005c183\nretn                                                                   ; +0x54, 0x18005c184", "xrefs": ["<???> @ 0x1800fda40", "<???> @ 0x1800feb80", "<???> @ 0x1800feff0", "<???> @ 0x18014cf68", "<???> @ 0x1801bceec"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}