{"type": "func", "start": 6442773904, "end": 6442774104, "name": "cocos2d::CCLayer::~CCLayer", "pseudocode": "// \n// cocos2d::CCLayer::~CCLayer from 0x18004ed90 to 0x18004ee58 (200 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCLayerMultiplex::~CCLayerMultiplex @ 0x18004ef62\n// > cocos2d::CCLayerRGBA::~CCLayerRGBA @ 0x18004efce\n// > sub_18004EFF0 @ 0x18004f04e\n// > sub_18004EFF0 @ 0x18004f00c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1d34\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::CCLayer::~CCLayer(cocos2d::CCLayer *this)\n{\n  cocos2d::CCTouchScriptHandlerEntry *m_pScriptTouchHandlerEntry; // rcx\n  cocos2d::CCScriptHandlerEntry *m_pScriptKeypadHandlerEntry; // rcx\n  cocos2d::CCScriptHandlerEntry *m_pScriptAccelerateHandlerEntry; // rcx\n\n  this->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLayer_vtbl *)&cocos2d::CCLayer::`vftable'{for `cocos2d::CCNode'};\n  this->cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&cocos2d::CCLayer::`vftable'{for `cocos2d::CCTouchDelegate'};\n  this->cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&cocos2d::CCLayer::`vftable'{for `cocos2d::CCAccelerometerDelegate'};\n  this->cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&cocos2d::CCLayer::`vftable'{for `cocos2d::CCKeypadDelegate'};\n  this->cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&cocos2d::CCLayer::`vftable'{for `cocos2d::CCKeyboardDelegate'};\n  this->cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&cocos2d::CCLayer::`vftable'{for `cocos2d::CCMouseDelegate'};\n  m_pScriptTouchHandlerEntry = this->m_pScriptTouchHandlerEntry;\n  if ( m_pScriptTouchHandlerEntry )\n  {\n    cocos2d::CCObject::release(m_pScriptTouchHandlerEntry);\n    this->m_pScriptTouchHandlerEntry = nullptr;\n  }\n  m_pScriptKeypadHandlerEntry = this->m_pScriptKeypadHandlerEntry;\n  if ( m_pScriptKeypadHandlerEntry )\n  {\n    cocos2d::CCObject::release(m_pScriptKeypadHandlerEntry);\n    this->m_pScriptKeypadHandlerEntry = nullptr;\n  }\n  m_pScriptAccelerateHandlerEntry = this->m_pScriptAccelerateHandlerEntry;\n  if ( m_pScriptAccelerateHandlerEntry )\n  {\n    cocos2d::CCObject::release(m_pScriptAccelerateHandlerEntry);\n    this->m_pScriptAccelerateHandlerEntry = nullptr;\n  }\n  this->cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&cocos2d::CCTouchDelegate::`vftable';\n  cocos2d::CCNode::~CCNode(this);\n}", "assembly": "; \n; cocos2d::CCLayer::~CCLayer from 0x18004ed90 to 0x18004ee58 (200 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCLayerMultiplex::~CCLayerMultiplex @ 0x18004ef62\n; > cocos2d::CCLayerRGBA::~CCLayerRGBA @ 0x18004efce\n; > sub_18004EFF0 @ 0x18004f04e\n; > sub_18004EFF0 @ 0x18004f00c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1d34\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, 0x18004ed90\nsub     rsp, 20h                                                       ; +0x2, 0x18004ed92\nmov     rbx, rcx                                                       ; +0x6, 0x18004ed96\nlea     rax, ??_7CCLayer@cocos2d@@6BCCNode@1@@; const cocos2d::CCLayer::`vftable'{for `cocos2d::CCNode'} ; +0x9, 0x18004ed99\nmov     [rcx], rax                                                     ; +0x10, 0x18004eda0\nlea     rax, ??_7CCLayer@cocos2d@@6BCCTouchDelegate@1@@; const cocos2d::CCLayer::`vftable'{for `cocos2d::CCTouchDelegate'} ; +0x13, 0x18004eda3\nmov     [rcx+140h], rax                                                ; +0x1a, 0x18004edaa\nlea     rax, ??_7CCLayer@cocos2d@@6BCCAccelerometerDelegate@1@@; const cocos2d::CCLayer::`vftable'{for `cocos2d::CCAccelerometerDelegate'} ; +0x21, 0x18004edb1\nmov     [rcx+148h], rax                                                ; +0x28, 0x18004edb8\nlea     rax, ??_7CCLayer@cocos2d@@6BCCKeypadDelegate@1@@; const cocos2d::CCLayer::`vftable'{for `cocos2d::CCKeypadDelegate'} ; +0x2f, 0x18004edbf\nmov     [rcx+150h], rax                                                ; +0x36, 0x18004edc6\nlea     rax, ??_7CCLayer@cocos2d@@6BCCKeyboardDelegate@1@@; const cocos2d::CCLayer::`vftable'{for `cocos2d::CCKeyboardDelegate'} ; +0x3d, 0x18004edcd\nmov     [rcx+158h], rax                                                ; +0x44, 0x18004edd4\nlea     rax, ??_7CCLayer@cocos2d@@6BCCMouseDelegate@1@@; const cocos2d::CCLayer::`vftable'{for `cocos2d::CCMouseDelegate'} ; +0x4b, 0x18004eddb\nmov     [rcx+160h], rax                                                ; +0x52, 0x18004ede2\nmov     rcx, [rcx+170h]; this                                          ; +0x59, 0x18004ede9\ntest    rcx, rcx                                                       ; +0x60, 0x18004edf0\njz      short loc_18004EE05                                            ; +0x63, 0x18004edf3\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x65, 0x18004edf5\nmov     qword ptr [rbx+170h], 0                                        ; +0x6a, 0x18004edfa\nmov     rcx, [rbx+178h]; this                                          ; +0x75, 0x18004ee05\ntest    rcx, rcx                                                       ; +0x7c, 0x18004ee0c\njz      short loc_18004EE21                                            ; +0x7f, 0x18004ee0f\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x81, 0x18004ee11\nmov     qword ptr [rbx+178h], 0                                        ; +0x86, 0x18004ee16\nmov     rcx, [rbx+180h]; this                                          ; +0x91, 0x18004ee21\ntest    rcx, rcx                                                       ; +0x98, 0x18004ee28\njz      short loc_18004EE3D                                            ; +0x9b, 0x18004ee2b\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x9d, 0x18004ee2d\nmov     qword ptr [rbx+180h], 0                                        ; +0xa2, 0x18004ee32\nlea     rax, ??_7CCTouchDelegate@cocos2d@@6B@; const cocos2d::CCTouchDelegate::`vftable' ; +0xad, 0x18004ee3d\nmov     [rbx+140h], rax                                                ; +0xb4, 0x18004ee44\nmov     rcx, rbx; this                                                 ; +0xbb, 0x18004ee4b\nadd     rsp, 20h                                                       ; +0xbe, 0x18004ee4e\npop     rbx                                                            ; +0xc2, 0x18004ee52\njmp     ??1CCNode@cocos2d@@UEAA@XZ; cocos2d::CCNode::~CCNode(void)     ; +0xc3, 0x18004ee53", "xrefs": ["cocos2d::CCLayerMultiplex::~CCLayerMultiplex @ 0x18004ef62", "cocos2d::CCLayerRGBA::~CCLayerRGBA @ 0x18004efce", "sub_18004EFF0 @ 0x18004f04e", "sub_18004EFF0 @ 0x18004f00c", "<???> @ 0x1801438a8", "<???> @ 0x1801b1d34"], "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"}