{"type": "func", "start": 6442818752, "end": 6442818839, "name": "cocos2d::CCMenuItemSprite::~CCMenuItemSprite", "pseudocode": "// \n// cocos2d::CCMenuItemSprite::~CCMenuItemSprite from 0x180059cc0 to 0x180059d17 (87 bytes)\n// \n// 5 xrefs:\n// > sub_1800E2380 @ 0x1800e2387\n// > sub_180059F50 @ 0x180059f69\n// > <???> @ 0x180138cf7\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2bf8\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\n// Alternative name is '??1CCMenuItemAtlasFont@cocos2d@@UEAA@XZ'\n// Alternative name is '??1CCMenuItemImage@cocos2d@@UEAA@XZ'\n// Alternative name is '??1CCMenuItemLabel@cocos2d@@UEAA@XZ'\n// Hidden C++ exception states: #wind=1\nvoid __fastcall cocos2d::CCMenuItemSprite::~CCMenuItemSprite(cocos2d::CCMenuItemSprite *this)\n{\n  struct cocos2d::CCScriptEngineManager *v2; // rax\n\n  this->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCMenuItemSprite_vtbl *)&cocos2d::CCMenuItem::`vftable'{for `cocos2d::CCNode'};\n  this->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&cocos2d::CCMenuItem::`vftable'{for `cocos2d::CCRGBAProtocol'};\n  if ( LODWORD(this->m_pfnSelector.adj) )\n  {\n    v2 = cocos2d::CCScriptEngineManager::sharedManager();\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)v2 + 24LL))(*(_QWORD *)v2, LODWORD(this->m_pfnSelector.adj));\n    LODWORD(this->m_pfnSelector.adj) = 0;\n  }\n  cocos2d::CCNodeRGBA::~CCNodeRGBA(this);\n}", "assembly": "; \n; cocos2d::CCMenuItemSprite::~CCMenuItemSprite from 0x180059cc0 to 0x180059d17 (87 bytes)\n; \n; 5 xrefs:\n; > sub_1800E2380 @ 0x1800e2387\n; > sub_180059F50 @ 0x180059f69\n; > <???> @ 0x180138cf7\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2bf8\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, 0x180059cc0\nsub     rsp, 20h                                                       ; +0x2, 0x180059cc2\nmov     rbx, rcx                                                       ; +0x6, 0x180059cc6\nlea     rax, ??_7CCMenuItem@cocos2d@@6BCCNode@1@@; const cocos2d::CCMenuItem::`vftable'{for `cocos2d::CCNode'} ; +0x9, 0x180059cc9\nmov     [rcx], rax                                                     ; +0x10, 0x180059cd0\nlea     rax, ??_7CCMenuItem@cocos2d@@6BCCRGBAProtocol@1@@; const cocos2d::CCMenuItem::`vftable'{for `cocos2d::CCRGBAProtocol'} ; +0x13, 0x180059cd3\nmov     [rcx+140h], rax                                                ; +0x1a, 0x180059cda\ncmp     dword ptr [rcx+170h], 0                                        ; +0x21, 0x180059ce1\njz      short loc_180059D08                                            ; +0x28, 0x180059ce8\ncall    ?sharedManager@CCScriptEngineManager@cocos2d@@SAPEAV12@XZ; cocos2d::CCScriptEngineManager::sharedManager(void) ; +0x2a, 0x180059cea\nmov     rcx, [rax]                                                     ; +0x2f, 0x180059cef\nmov     rax, [rcx]                                                     ; +0x32, 0x180059cf2\nmov     edx, [rbx+170h]                                                ; +0x35, 0x180059cf5\ncall    qword ptr [rax+18h]                                            ; +0x3b, 0x180059cfb\nmov     dword ptr [rbx+170h], 0                                        ; +0x3e, 0x180059cfe\nmov     rcx, rbx; this                                                 ; +0x48, 0x180059d08\ncall    ??1CCNodeRGBA@cocos2d@@UEAA@XZ; cocos2d::CCNodeRGBA::~CCNodeRGBA(void) ; +0x4b, 0x180059d0b\nnop                                                                    ; +0x50, 0x180059d10\nadd     rsp, 20h                                                       ; +0x51, 0x180059d11\npop     rbx                                                            ; +0x55, 0x180059d15\nretn                                                                   ; +0x56, 0x180059d16", "xrefs": ["sub_1800E2380 @ 0x1800e2387", "sub_180059F50 @ 0x180059f69", "<???> @ 0x180138cf7", "<???> @ 0x1801438a8", "<???> @ 0x1801b2bf8"], "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"}