; ; cocos2d::CCMenuItemToggle::~CCMenuItemToggle from 0x18005bde0 to 0x18005be61 (129 bytes) ; ; 4 xrefs: ; > sub_18005C0A0 @ 0x18005c0fe ; > sub_18005C0A0 @ 0x18005c0bc ; > @ 0x18014cf68 ; > @ 0x1801bceb0 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:21:49 +0000 ; push rbx ; +0x0, 0x18005bde0 sub rsp, 20h ; +0x2, 0x18005bde2 mov rbx, rcx ; +0x6, 0x18005bde6 lea rax, ??_7CCMenuItemToggle@cocos2d@@6BCCNode@1@@; const cocos2d::CCMenuItemToggle::`vftable'{for `cocos2d::CCNode'} ; +0x9, 0x18005bde9 mov [rcx], rax ; +0x10, 0x18005bdf0 lea rax, ??_7CCMenuItemToggle@cocos2d@@6BCCRGBAProtocol@1@@; const cocos2d::CCMenuItemToggle::`vftable'{for `cocos2d::CCRGBAProtocol'} ; +0x13, 0x18005bdf3 mov [rcx+140h], rax ; +0x1a, 0x18005bdfa mov rcx, [rcx+180h]; this ; +0x21, 0x18005be01 test rcx, rcx ; +0x28, 0x18005be08 jz short loc_18005BE13 ; +0x2b, 0x18005be0b call ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x2d, 0x18005be0d nop ; +0x32, 0x18005be12 lea rax, ??_7CCMenuItem@cocos2d@@6BCCNode@1@@; const cocos2d::CCMenuItem::`vftable'{for `cocos2d::CCNode'} ; +0x33, 0x18005be13 mov [rbx], rax ; +0x3a, 0x18005be1a lea rax, ??_7CCMenuItem@cocos2d@@6BCCRGBAProtocol@1@@; const cocos2d::CCMenuItem::`vftable'{for `cocos2d::CCRGBAProtocol'} ; +0x3d, 0x18005be1d mov [rbx+140h], rax ; +0x44, 0x18005be24 cmp dword ptr [rbx+170h], 0 ; +0x4b, 0x18005be2b jz short loc_18005BE52 ; +0x52, 0x18005be32 call ?sharedManager@CCScriptEngineManager@cocos2d@@SAPEAV12@XZ; cocos2d::CCScriptEngineManager::sharedManager(void) ; +0x54, 0x18005be34 mov rcx, [rax] ; +0x59, 0x18005be39 mov rax, [rcx] ; +0x5c, 0x18005be3c mov edx, [rbx+170h] ; +0x5f, 0x18005be3f call qword ptr [rax+18h] ; +0x65, 0x18005be45 mov dword ptr [rbx+170h], 0 ; +0x68, 0x18005be48 mov rcx, rbx; this ; +0x72, 0x18005be52 call ??1CCNodeRGBA@cocos2d@@UEAA@XZ; cocos2d::CCNodeRGBA::~CCNodeRGBA(void) ; +0x75, 0x18005be55 nop ; +0x7a, 0x18005be5a add rsp, 20h ; +0x7b, 0x18005be5b pop rbx ; +0x7f, 0x18005be5f retn ; +0x80, 0x18005be60