//
// cocos2d::CCDirector::dCCDirector from 0x100477320 to 0x100477475 (341 bytes)
//
// 2 xrefs:
// > sub_100479780 @ 0x100479785
// > sub_100479790 @ 0x100479799
//
// 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 12:30:35 +0000
//
__int64 __fastcall cocos2d::CCDirector::dCCDirector(_QWORD *a1)
{
__int64 v2; // rdi
__int64 v3; // rdi
__int64 v4; // rdi
__int64 v5; // rdi
__int64 v6; // rdi
__int64 v7; // rdi
__int64 v8; // rdi
__int64 v9; // rdi
__int64 v10; // rdi
__int64 v11; // rdi
__int64 v12; // rdi
__int64 v13; // rdi
void *v14; // rdi
_QWORD *v15; // rax
void *v16; // rdi
void *v17; // rdi
*a1 = &off_100B47350;
a1[7] = &off_100B47468;
v2 = a1[29];
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = a1[30];
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = a1[31];
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = a1[34];
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = a1[43];
if ( v6 )
cocos2d::CCObject::release(v6);
v7 = a1[37];
if ( v7 )
cocos2d::CCObject::release(v7);
v8 = a1[13];
if ( v8 )
cocos2d::CCObject::release(v8);
v9 = a1[14];
if ( v9 )
cocos2d::CCObject::release(v9);
v10 = a1[15];
if ( v10 )
cocos2d::CCObject::release(v10);
v11 = a1[16];
if ( v11 )
cocos2d::CCObject::release(v11);
v12 = a1[17];
if ( v12 )
cocos2d::CCObject::release(v12);
v13 = a1[18];
if ( v13 )
cocos2d::CCObject::release(v13);
v14 = (void *)a1[20];
if ( v14 )
{
operator delete(v14);
a1[20] = 0;
}
v15 = cocos2d::CCPoolManager::sharedPoolManager();
cocos2d::CCPoolManager::pop(v15);
cocos2d::CCPoolManager::purgePoolManager();
v16 = (void *)a1[38];
if ( v16 )
{
operator delete(v16);
a1[38] = 0;
}
v17 = (void *)a1[42];
if ( v17 )
operator delete[](v17);
qword_100BE3D68 = 0;
return sub_10047FF60(a1);
}