//
// cocos2d::CCLayer::~CCLayer from 0x18004ed90 to 0x18004ee58 (200 bytes)
//
// 6 xrefs:
// > cocos2d::CCLayerMultiplex::~CCLayerMultiplex @ 0x18004ef62
// > cocos2d::CCLayerRGBA::~CCLayerRGBA @ 0x18004efce
// > sub_18004EFF0 @ 0x18004f04e
// > sub_18004EFF0 @ 0x18004f00c
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b1d34
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCLayer::~CCLayer(cocos2d::CCLayer *this)
{
cocos2d::CCTouchScriptHandlerEntry *m_pScriptTouchHandlerEntry; // rcx
cocos2d::CCScriptHandlerEntry *m_pScriptKeypadHandlerEntry; // rcx
cocos2d::CCScriptHandlerEntry *m_pScriptAccelerateHandlerEntry; // rcx
this->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLayer_vtbl *)&cocos2d::CCLayer::`vftable'{for `cocos2d::CCNode'};
this->cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&cocos2d::CCLayer::`vftable'{for `cocos2d::CCTouchDelegate'};
this->cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&cocos2d::CCLayer::`vftable'{for `cocos2d::CCAccelerometerDelegate'};
this->cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&cocos2d::CCLayer::`vftable'{for `cocos2d::CCKeypadDelegate'};
this->cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&cocos2d::CCLayer::`vftable'{for `cocos2d::CCKeyboardDelegate'};
this->cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&cocos2d::CCLayer::`vftable'{for `cocos2d::CCMouseDelegate'};
m_pScriptTouchHandlerEntry = this->m_pScriptTouchHandlerEntry;
if ( m_pScriptTouchHandlerEntry )
{
cocos2d::CCObject::release(m_pScriptTouchHandlerEntry);
this->m_pScriptTouchHandlerEntry = nullptr;
}
m_pScriptKeypadHandlerEntry = this->m_pScriptKeypadHandlerEntry;
if ( m_pScriptKeypadHandlerEntry )
{
cocos2d::CCObject::release(m_pScriptKeypadHandlerEntry);
this->m_pScriptKeypadHandlerEntry = nullptr;
}
m_pScriptAccelerateHandlerEntry = this->m_pScriptAccelerateHandlerEntry;
if ( m_pScriptAccelerateHandlerEntry )
{
cocos2d::CCObject::release(m_pScriptAccelerateHandlerEntry);
this->m_pScriptAccelerateHandlerEntry = nullptr;
}
this->cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&cocos2d::CCTouchDelegate::`vftable';
cocos2d::CCNode::~CCNode(this);
}