//
// cocos2d::CCDirector::~CCDirector from 0x1800c1570 to 0x1800c16dd (365 bytes)
//
// 5 xrefs:
// > sub_1800C16E0 @ 0x1800c173e
// > sub_1800C1770 @ 0x1800c177f
// > sub_1800C16E0 @ 0x1800c16fc
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c33e4
//
// 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:22:25 +0000
//
void __fastcall cocos2d::CCDirector::~CCDirector(cocos2d::CCDirector *this, float a2)
{
cocos2d::CCObject *v3; // rcx
cocos2d::CCObject *v4; // rcx
cocos2d::CCObject *v5; // rcx
cocos2d::CCObject *v6; // rcx
cocos2d::CCObject *v7; // rcx
cocos2d::CCObject *v8; // rcx
cocos2d::CCObject *v9; // rcx
cocos2d::CCObject *v10; // rcx
cocos2d::CCObject *v11; // rcx
cocos2d::CCObject *v12; // rcx
cocos2d::CCObject *v13; // rcx
cocos2d::CCObject *v14; // rcx
void *v15; // rdi
cocos2d::CCArray **v16; // rax
void *v17; // rcx
*(_QWORD *)this = &cocos2d::CCDirector::`vftable'{for `cocos2d::CCObject'};
*((_QWORD *)this + 7) = &cocos2d::CCDirector::`vftable'{for `cocos2d::TypeInfo'};
v3 = *((cocos2d::CCObject **)this + 29);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *((cocos2d::CCObject **)this + 30);
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *((cocos2d::CCObject **)this + 31);
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = *((cocos2d::CCObject **)this + 34);
if ( v6 )
cocos2d::CCObject::release(v6);
v7 = *((cocos2d::CCObject **)this + 43);
if ( v7 )
cocos2d::CCObject::release(v7);
v8 = *((cocos2d::CCObject **)this + 37);
if ( v8 )
cocos2d::CCObject::release(v8);
v9 = *((cocos2d::CCObject **)this + 13);
if ( v9 )
cocos2d::CCObject::release(v9);
v10 = *((cocos2d::CCObject **)this + 14);
if ( v10 )
cocos2d::CCObject::release(v10);
v11 = *((cocos2d::CCObject **)this + 15);
if ( v11 )
cocos2d::CCObject::release(v11);
v12 = *((cocos2d::CCObject **)this + 16);
if ( v12 )
cocos2d::CCObject::release(v12);
v13 = *((cocos2d::CCObject **)this + 17);
if ( v13 )
cocos2d::CCObject::release(v13);
v14 = *((cocos2d::CCObject **)this + 18);
if ( v14 )
cocos2d::CCObject::release(v14);
v15 = *((void **)this + 20);
if ( v15 )
{
cocos2d::CCNode::updateTweenActionInt(*((cocos2d::CCNode **)this + 20), a2);
j_j_free_0(v15);
*((_QWORD *)this + 20) = 0;
}
v16 = (cocos2d::CCArray **)cocos2d::CCPoolManager::sharedPoolManager();
cocos2d::CCPoolManager::pop(v16);
cocos2d::CCPoolManager::purgePoolManager();
v17 = *((void **)this + 38);
if ( v17 )
{
j_j_free_0(v17);
*((_QWORD *)this + 38) = 0;
}
j_j_free_0(*((void **)this + 42));
qword_1801B3BB0 = 0;
cocos2d::CCObject::~CCObject(this);
}