{"type": "func", "start": 5368993024, "end": 5368993092, "name": "CCMenuItemToggler::activate", "pseudocode": "// \n// CCMenuItemToggler::activate from 0x140045500 to 0x140045544 (68 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14052f150\n// > <???> @ 0x1406c4710\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 CCMenuItemToggler::activate(CCMenuItemToggler *a1)\n{\n  CCMenuItemSpriteExtra *m_offButton; // rcx\n\n  cocos2d::CCMenuItem::activate(a1);\n  if ( LOBYTE(a1->m_onButton) )\n    m_offButton = a1->m_offButton;\n  else\n    m_offButton = *(CCMenuItemSpriteExtra **)&a1->m_nScriptTapHandler;\n  m_offButton->activate(m_offButton);\n}", "assembly": "; \n; CCMenuItemToggler::activate from 0x140045500 to 0x140045544 (68 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14052f150\n; > <???> @ 0x1406c4710\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, 0x140045500\nsub     rsp, 20h                                                       ; +0x2, 0x140045502\nmov     rbx, rcx                                                       ; +0x6, 0x140045506\ncall    cs:__imp_?activate@CCMenuItem@cocos2d@@UEAAXXZ; cocos2d::CCMenuItem::activate(void) ; +0x9, 0x140045509\ncmp     byte ptr [rbx+188h], 0                                         ; +0xf, 0x14004550f\njz      short loc_14004552E                                            ; +0x16, 0x140045516\nmov     rcx, [rbx+180h]                                                ; +0x18, 0x140045518\nmov     rax, [rcx]                                                     ; +0x1f, 0x14004551f\nadd     rsp, 20h                                                       ; +0x22, 0x140045522\npop     rbx                                                            ; +0x26, 0x140045526\njmp     qword ptr [rax+368h]                                           ; +0x27, 0x140045527\nmov     rcx, [rbx+178h]                                                ; +0x2e, 0x14004552e\nmov     rax, [rcx]                                                     ; +0x35, 0x140045535\nadd     rsp, 20h                                                       ; +0x38, 0x140045538\npop     rbx                                                            ; +0x3c, 0x14004553c\njmp     qword ptr [rax+368h]                                           ; +0x3d, 0x14004553d", "xrefs": ["<???> @ 0x14052f150", "<???> @ 0x1406c4710"], "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"}