//
// cocos2d::CCDirector::~CCDirector from 0xd48758 to 0xd4886c (276 bytes)
//
// 5 xrefs:
// > cocos2d::CCDisplayLinkDirector::~CCDisplayLinkDirector @ 0xd48884
// > cocos2d::CCDisplayLinkDirector::~CCDisplayLinkDirector @ 0xd488b0
// > cocos2d::CCDirector::~CCDirector @ 0xd488d4
// > ??> @ 0x5dda8
// > ??> @ 0x8fd58
//
// This function is hookable on this platform (idp: arm, 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 13:07:36 +0000
//
// Alternative name is '_ZN7cocos2d10CCDirectorD2Ev'
void __fastcall cocos2d::CCDirector::~CCDirector(cocos2d::CCDirector *this)
{
_DWORD *v2; // x0
_DWORD *v3; // x0
_DWORD *v4; // x0
_DWORD *v5; // x0
_DWORD *v6; // x0
_DWORD *v7; // x0
_DWORD *v8; // x0
_DWORD *v9; // x0
_DWORD *v10; // x0
_DWORD *v11; // x0
_DWORD *v12; // x0
cocos2d::CCPoolManager *v13; // x0
void *v14; // x20
cocos2d::CCPoolManager *v15; // x0
cocos2d::CCPoolManager *v16; // x0
void *v17; // x0
void *v18; // x0
v2 = *((_DWORD **)this + 29);
*(_QWORD *)this = &off_1516750;
*((_QWORD *)this + 7) = &off_1516868;
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *((_DWORD **)this + 30);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *((_DWORD **)this + 31);
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *((_DWORD **)this + 34);
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = *((_DWORD **)this + 43);
if ( v6 )
cocos2d::CCObject::release(v6);
v7 = *((_DWORD **)this + 37);
if ( v7 )
cocos2d::CCObject::release(v7);
v8 = *((_DWORD **)this + 13);
if ( v8 )
cocos2d::CCObject::release(v8);
v9 = *((_DWORD **)this + 14);
if ( v9 )
cocos2d::CCObject::release(v9);
v10 = *((_DWORD **)this + 15);
if ( v10 )
cocos2d::CCObject::release(v10);
v11 = *((_DWORD **)this + 16);
if ( v11 )
cocos2d::CCObject::release(v11);
v12 = *((_DWORD **)this + 17);
if ( v12 )
cocos2d::CCObject::release(v12);
v13 = *((cocos2d::CCPoolManager **)this + 18);
if ( v13 )
v13 = (cocos2d::CCPoolManager *)cocos2d::CCObject::release(v13);
v14 = *((void **)this + 20);
if ( v14 )
{
cocos2d::CCAccelerometer::~CCAccelerometer(*((cocos2d::CCAccelerometer **)this + 20));
operator delete(v14);
*((_QWORD *)this + 20) = 0;
}
v15 = cocos2d::CCPoolManager::sharedPoolManager(v13);
v16 = (cocos2d::CCPoolManager *)cocos2d::CCPoolManager::pop((__int64)v15);
cocos2d::CCPoolManager::purgePoolManager(v16);
v17 = *((void **)this + 38);
if ( v17 )
{
operator delete(v17);
*((_QWORD *)this + 38) = 0;
}
v18 = *((void **)this + 42);
if ( v18 )
operator delete[](v18);
qword_15600E8 = 0;
cocos2d::CCObject::~CCObject(this);
}