{"type": "func", "start": 6442820000, "end": 6442820119, "name": "cocos2d::CCMenuItemLabel::activate", "pseudocode": "// \n// cocos2d::CCMenuItemLabel::activate from 0x18005a1a0 to 0x18005a217 (119 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800f79f0\n// > <???> @ 0x1800f7e38\n// > <???> @ 0x1800f8280\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2c58\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::CCMenuItemLabel::activate(cocos2d::CCMenuItemLabel *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    cocos2d::CCNode::stopAllActions(this);\n    ((void (__fastcall *)(cocos2d::CCMenuItemLabel *))this->setScale_0)(this);\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::CCMenuItemLabel *))ptr)(m_pListener, this);\n      }\n      if ( this->m_eScriptType )\n      {\n        v4 = cocos2d::CCScriptEngineManager::sharedManager();\n        (*(void (__fastcall **)(_QWORD, cocos2d::CCMenuItemLabel *))(**(_QWORD **)v4 + 72LL))(*(_QWORD *)v4, this);\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCMenuItemLabel::activate from 0x18005a1a0 to 0x18005a217 (119 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800f79f0\n; > <???> @ 0x1800f7e38\n; > <???> @ 0x1800f8280\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2c58\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, 0x18005a1a0\nsub     rsp, 20h                                                       ; +0x2, 0x18005a1a2\ncmp     byte ptr [rcx+159h], 0                                         ; +0x6, 0x18005a1a6\nmov     rbx, rcx                                                       ; +0xd, 0x18005a1ad\njz      short loc_18005A211                                            ; +0x10, 0x18005a1b0\ncall    ?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0x12, 0x18005a1b2\nmov     rax, [rbx]                                                     ; +0x17, 0x18005a1b7\nmov     rcx, rbx                                                       ; +0x1a, 0x18005a1ba\nmovss   xmm1, dword ptr [rbx+18Ch]                                     ; +0x1d, 0x18005a1bd\ncall    qword ptr [rax+0A0h]                                           ; +0x25, 0x18005a1c5\ncmp     byte ptr [rbx+159h], 0                                         ; +0x2b, 0x18005a1cb\njz      short loc_18005A211                                            ; +0x32, 0x18005a1d2\nmov     rcx, [rbx+160h]                                                ; +0x34, 0x18005a1d4\ntest    rcx, rcx                                                       ; +0x3b, 0x18005a1db\njz      short loc_18005A1F1                                            ; +0x3e, 0x18005a1de\nmov     rax, [rbx+168h]                                                ; +0x40, 0x18005a1e0\ntest    rax, rax                                                       ; +0x47, 0x18005a1e7\njz      short loc_18005A1F1                                            ; +0x4a, 0x18005a1ea\nmov     rdx, rbx                                                       ; +0x4c, 0x18005a1ec\ncall    rax                                                            ; +0x4f, 0x18005a1ef\ncmp     dword ptr [rbx+12Ch], 0                                        ; +0x51, 0x18005a1f1\njz      short loc_18005A211                                            ; +0x58, 0x18005a1f8\ncall    ?sharedManager@CCScriptEngineManager@cocos2d@@SAPEAV12@XZ; cocos2d::CCScriptEngineManager::sharedManager(void) ; +0x5a, 0x18005a1fa\nmov     rdx, rbx                                                       ; +0x5f, 0x18005a1ff\nmov     rcx, [rax]                                                     ; +0x62, 0x18005a202\nmov     rax, [rcx]                                                     ; +0x65, 0x18005a205\nadd     rsp, 20h                                                       ; +0x68, 0x18005a208\npop     rbx                                                            ; +0x6c, 0x18005a20c\njmp     qword ptr [rax+48h]                                            ; +0x6d, 0x18005a20d\nadd     rsp, 20h                                                       ; +0x71, 0x18005a211\npop     rbx                                                            ; +0x75, 0x18005a215\nretn                                                                   ; +0x76, 0x18005a216", "xrefs": ["<???> @ 0x1800f79f0", "<???> @ 0x1800f7e38", "<???> @ 0x1800f8280", "<???> @ 0x1801438a8", "<???> @ 0x1801b2c58"], "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"}