{"type": "func", "start": 6442817600, "end": 6442817673, "name": "cocos2d::CCMenu::onExit", "pseudocode": "// \n// cocos2d::CCMenu::onExit from 0x180059840 to 0x180059889 (73 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1800f6fb0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2b5c\n// > <???> @ 0x1801b2b68\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::CCMenu::onExit(cocos2d::CCMenu *this)\n{\n  cocos2d::CCMenuItem *m_pSelectedItem; // rcx\n\n  if ( this->m_eState == kCCMenuStateTrackingTouch )\n  {\n    m_pSelectedItem = this->m_pSelectedItem;\n    if ( m_pSelectedItem )\n    {\n      ((void (__fastcall *)(cocos2d::CCMenuItem *))m_pSelectedItem->unselected)(m_pSelectedItem);\n      this->m_pSelectedItem = nullptr;\n    }\n    this->m_eState = kCCMenuStateWaiting;\n  }\n  cocos2d::CCLayer::onExit(this);\n}", "assembly": "; \n; cocos2d::CCMenu::onExit from 0x180059840 to 0x180059889 (73 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1800f6fb0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2b5c\n; > <???> @ 0x1801b2b68\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, 0x180059840\nsub     rsp, 20h                                                       ; +0x2, 0x180059842\ncmp     dword ptr [rcx+1B4h], 1                                        ; +0x6, 0x180059846\nmov     rbx, rcx                                                       ; +0xd, 0x18005984d\njnz     short loc_18005987C                                            ; +0x10, 0x180059850\nmov     rcx, [rcx+1B8h]                                                ; +0x12, 0x180059852\ntest    rcx, rcx                                                       ; +0x19, 0x180059859\njz      short loc_180059872                                            ; +0x1c, 0x18005985c\nmov     rax, [rcx]                                                     ; +0x1e, 0x18005985e\ncall    qword ptr [rax+378h]                                           ; +0x21, 0x180059861\nmov     qword ptr [rbx+1B8h], 0                                        ; +0x27, 0x180059867\nmov     dword ptr [rbx+1B4h], 0                                        ; +0x32, 0x180059872\nmov     rcx, rbx; this                                                 ; +0x3c, 0x18005987c\nadd     rsp, 20h                                                       ; +0x3f, 0x18005987f\npop     rbx                                                            ; +0x43, 0x180059883\njmp     ?onExit@CCLayer@cocos2d@@UEAAXXZ; cocos2d::CCLayer::onExit(void) ; +0x44, 0x180059884", "xrefs": ["<???> @ 0x1800f6fb0", "<???> @ 0x1801438a8", "<???> @ 0x1801b2b5c", "<???> @ 0x1801b2b68"], "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"}