//
// cocos2d::CCDirector::~CCDirector from 0x1800bdd50 to 0x1800bdebd (365 bytes)
//
// 5 xrefs:
// > sub_1800BDEC0 @ 0x1800bdf1e
// > sub_1800BDF50 @ 0x1800bdf5f
// > sub_1800BDEC0 @ 0x1800bdedc
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b912c
//
// 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::CCDirector::~CCDirector(cocos2d::CCDirector *this, float a2)
{
cocos2d::CCLabelAtlas *m_pFPSLabel; // rcx
cocos2d::CCLabelAtlas *m_pSPFLabel; // rcx
cocos2d::CCLabelAtlas *m_pDrawsLabel; // rcx
cocos2d::CCScene *m_pRunningScene; // rcx
cocos2d::CCNode *m_pNotificationNode; // rcx
cocos2d::CCArray *m_pobScenesStack; // rcx
cocos2d::CCScheduler *m_pScheduler; // rcx
cocos2d::CCActionManager *m_pActionManager; // rcx
cocos2d::CCTouchDispatcher *m_pTouchDispatcher; // rcx
cocos2d::CCKeypadDispatcher *m_pKeypadDispatcher; // rcx
cocos2d::CCKeyboardDispatcher *m_pKeyboardDispatcher; // rcx
cocos2d::CCMouseDispatcher *m_pMouseDispatcher; // rcx
cocos2d::CCAccelerometer *m_pAccelerometer; // rdi
cocos2d::CCPoolManager *v16; // rax
cocos2d::cc_timeval *m_pLastUpdate; // rcx
this->cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCDirector_vtbl *)&cocos2d::CCDirector::`vftable'{for `cocos2d::CCObject'};
this->cocos2d::TypeInfo::__vftable = (cocos2d::TypeInfo_vtbl *)&cocos2d::CCDirector::`vftable'{for `cocos2d::TypeInfo'};
m_pFPSLabel = this->m_pFPSLabel;
if ( m_pFPSLabel )
cocos2d::CCObject::release(m_pFPSLabel);
m_pSPFLabel = this->m_pSPFLabel;
if ( m_pSPFLabel )
cocos2d::CCObject::release(m_pSPFLabel);
m_pDrawsLabel = this->m_pDrawsLabel;
if ( m_pDrawsLabel )
cocos2d::CCObject::release(m_pDrawsLabel);
m_pRunningScene = this->m_pRunningScene;
if ( m_pRunningScene )
cocos2d::CCObject::release(m_pRunningScene);
m_pNotificationNode = this->m_pNotificationNode;
if ( m_pNotificationNode )
cocos2d::CCObject::release(m_pNotificationNode);
m_pobScenesStack = this->m_pobScenesStack;
if ( m_pobScenesStack )
cocos2d::CCObject::release(m_pobScenesStack);
m_pScheduler = this->m_pScheduler;
if ( m_pScheduler )
cocos2d::CCObject::release(m_pScheduler);
m_pActionManager = this->m_pActionManager;
if ( m_pActionManager )
cocos2d::CCObject::release(m_pActionManager);
m_pTouchDispatcher = this->m_pTouchDispatcher;
if ( m_pTouchDispatcher )
cocos2d::CCObject::release(m_pTouchDispatcher);
m_pKeypadDispatcher = this->m_pKeypadDispatcher;
if ( m_pKeypadDispatcher )
cocos2d::CCObject::release(m_pKeypadDispatcher);
m_pKeyboardDispatcher = this->m_pKeyboardDispatcher;
if ( m_pKeyboardDispatcher )
cocos2d::CCObject::release(m_pKeyboardDispatcher);
m_pMouseDispatcher = this->m_pMouseDispatcher;
if ( m_pMouseDispatcher )
cocos2d::CCObject::release(m_pMouseDispatcher);
m_pAccelerometer = this->m_pAccelerometer;
if ( m_pAccelerometer )
{
cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)this->m_pAccelerometer, a2);
j_j_free_0(m_pAccelerometer);
this->m_pAccelerometer = nullptr;
}
v16 = cocos2d::CCPoolManager::sharedPoolManager();
cocos2d::CCPoolManager::pop(v16);
cocos2d::CCPoolManager::purgePoolManager();
m_pLastUpdate = this->m_pLastUpdate;
if ( m_pLastUpdate )
{
j_j_free_0(m_pLastUpdate);
this->m_pLastUpdate = nullptr;
}
j_j_free_0(this->m_pszFPS);
qword_1801A9B38 = 0;
cocos2d::CCObject::~CCObject(this);
}