{"type": "func", "start": 6442781616, "end": 6442781816, "name": "cocos2d::CCLayer::~CCLayer", "pseudocode": "// \n// cocos2d::CCLayer::~CCLayer from 0x180050bb0 to 0x180050c78 (200 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCLayerMultiplex::~CCLayerMultiplex @ 0x180050d82\n// > cocos2d::CCLayerRGBA::~CCLayerRGBA @ 0x180050dee\n// > sub_180050E10 @ 0x180050e6e\n// > sub_180050E10 @ 0x180050e2c\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bbfc8\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:45 +0000\n// \n\nvoid __fastcall cocos2d::CCLayer::~CCLayer(cocos2d::CCLayer *this)\n{\n  cocos2d::CCObject *v2; // rcx\n  cocos2d::CCObject *v3; // rcx\n  cocos2d::CCObject *v4; // rcx\n\n  *(_QWORD *)this = &cocos2d::CCLayer::`vftable'{for `cocos2d::CCNode'};\n  *((_QWORD *)this + 40) = &cocos2d::CCLayer::`vftable'{for `cocos2d::CCTouchDelegate'};\n  *((_QWORD *)this + 41) = &cocos2d::CCLayer::`vftable'{for `cocos2d::CCAccelerometerDelegate'};\n  *((_QWORD *)this + 42) = &cocos2d::CCLayer::`vftable'{for `cocos2d::CCKeypadDelegate'};\n  *((_QWORD *)this + 43) = &cocos2d::CCLayer::`vftable'{for `cocos2d::CCKeyboardDelegate'};\n  *((_QWORD *)this + 44) = &cocos2d::CCLayer::`vftable'{for `cocos2d::CCMouseDelegate'};\n  v2 = *((cocos2d::CCObject **)this + 46);\n  if ( v2 )\n  {\n    cocos2d::CCObject::release(v2);\n    *((_QWORD *)this + 46) = 0;\n  }\n  v3 = *((cocos2d::CCObject **)this + 47);\n  if ( v3 )\n  {\n    cocos2d::CCObject::release(v3);\n    *((_QWORD *)this + 47) = 0;\n  }\n  v4 = *((cocos2d::CCObject **)this + 48);\n  if ( v4 )\n  {\n    cocos2d::CCObject::release(v4);\n    *((_QWORD *)this + 48) = 0;\n  }\n  *((_QWORD *)this + 40) = &cocos2d::CCTouchDelegate::`vftable';\n  cocos2d::CCNode::~CCNode(this);\n}", "assembly": "; \n; cocos2d::CCLayer::~CCLayer from 0x180050bb0 to 0x180050c78 (200 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCLayerMultiplex::~CCLayerMultiplex @ 0x180050d82\n; > cocos2d::CCLayerRGBA::~CCLayerRGBA @ 0x180050dee\n; > sub_180050E10 @ 0x180050e6e\n; > sub_180050E10 @ 0x180050e2c\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bbfc8\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:45 +0000\n; \npush    rbx                                                            ; +0x0, 0x180050bb0\nsub     rsp, 20h                                                       ; +0x2, 0x180050bb2\nmov     rbx, rcx                                                       ; +0x6, 0x180050bb6\nlea     rax, ??_7CCLayer@cocos2d@@6BCCNode@1@@; const cocos2d::CCLayer::`vftable'{for `cocos2d::CCNode'} ; +0x9, 0x180050bb9\nmov     [rcx], rax                                                     ; +0x10, 0x180050bc0\nlea     rax, ??_7CCLayer@cocos2d@@6BCCTouchDelegate@1@@; const cocos2d::CCLayer::`vftable'{for `cocos2d::CCTouchDelegate'} ; +0x13, 0x180050bc3\nmov     [rcx+140h], rax                                                ; +0x1a, 0x180050bca\nlea     rax, ??_7CCLayer@cocos2d@@6BCCAccelerometerDelegate@1@@; const cocos2d::CCLayer::`vftable'{for `cocos2d::CCAccelerometerDelegate'} ; +0x21, 0x180050bd1\nmov     [rcx+148h], rax                                                ; +0x28, 0x180050bd8\nlea     rax, ??_7CCLayer@cocos2d@@6BCCKeypadDelegate@1@@; const cocos2d::CCLayer::`vftable'{for `cocos2d::CCKeypadDelegate'} ; +0x2f, 0x180050bdf\nmov     [rcx+150h], rax                                                ; +0x36, 0x180050be6\nlea     rax, ??_7CCLayer@cocos2d@@6BCCKeyboardDelegate@1@@; const cocos2d::CCLayer::`vftable'{for `cocos2d::CCKeyboardDelegate'} ; +0x3d, 0x180050bed\nmov     [rcx+158h], rax                                                ; +0x44, 0x180050bf4\nlea     rax, ??_7CCLayer@cocos2d@@6BCCMouseDelegate@1@@; const cocos2d::CCLayer::`vftable'{for `cocos2d::CCMouseDelegate'} ; +0x4b, 0x180050bfb\nmov     [rcx+160h], rax                                                ; +0x52, 0x180050c02\nmov     rcx, [rcx+170h]; this                                          ; +0x59, 0x180050c09\ntest    rcx, rcx                                                       ; +0x60, 0x180050c10\njz      short loc_180050C25                                            ; +0x63, 0x180050c13\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x65, 0x180050c15\nmov     qword ptr [rbx+170h], 0                                        ; +0x6a, 0x180050c1a\nmov     rcx, [rbx+178h]; this                                          ; +0x75, 0x180050c25\ntest    rcx, rcx                                                       ; +0x7c, 0x180050c2c\njz      short loc_180050C41                                            ; +0x7f, 0x180050c2f\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x81, 0x180050c31\nmov     qword ptr [rbx+178h], 0                                        ; +0x86, 0x180050c36\nmov     rcx, [rbx+180h]; this                                          ; +0x91, 0x180050c41\ntest    rcx, rcx                                                       ; +0x98, 0x180050c48\njz      short loc_180050C5D                                            ; +0x9b, 0x180050c4b\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x9d, 0x180050c4d\nmov     qword ptr [rbx+180h], 0                                        ; +0xa2, 0x180050c52\nlea     rax, ??_7CCTouchDelegate@cocos2d@@6B@; const cocos2d::CCTouchDelegate::`vftable' ; +0xad, 0x180050c5d\nmov     [rbx+140h], rax                                                ; +0xb4, 0x180050c64\nmov     rcx, rbx; this                                                 ; +0xbb, 0x180050c6b\nadd     rsp, 20h                                                       ; +0xbe, 0x180050c6e\npop     rbx                                                            ; +0xc2, 0x180050c72\njmp     ??1CCNode@cocos2d@@UEAA@XZ; cocos2d::CCNode::~CCNode(void)     ; +0xc3, 0x180050c73", "xrefs": ["cocos2d::CCLayerMultiplex::~CCLayerMultiplex @ 0x180050d82", "cocos2d::CCLayerRGBA::~CCLayerRGBA @ 0x180050dee", "sub_180050E10 @ 0x180050e6e", "sub_180050E10 @ 0x180050e2c", "<???> @ 0x18014cf68", "<???> @ 0x1801bbfc8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}