//
// cocos2d::CCDirector::dCCDirector from 0x100206870 to 0x100206978 (264 bytes)
//
// 2 xrefs:
// > j_cocos2d::CCDirector::dCCDirector @ 0x100207eb8
// > sub_100207EBC @ 0x100207ec4
//
// 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 11:00:57 +0000
//
__int64 __fastcall cocos2d::CCDirector::dCCDirector(_QWORD *a1)
{
_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
_DWORD *v13; // x0
void *v14; // x0
__int64 v15; // x0
__int64 v16; // x0
void *v17; // x0
void *v18; // x0
*a1 = &off_1008F5800;
a1[7] = &off_1008F5918;
v2 = (_DWORD *)a1[29];
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = (_DWORD *)a1[30];
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = (_DWORD *)a1[31];
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = (_DWORD *)a1[34];
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = (_DWORD *)a1[43];
if ( v6 )
cocos2d::CCObject::release(v6);
v7 = (_DWORD *)a1[37];
if ( v7 )
cocos2d::CCObject::release(v7);
v8 = (_DWORD *)a1[13];
if ( v8 )
cocos2d::CCObject::release(v8);
v9 = (_DWORD *)a1[14];
if ( v9 )
cocos2d::CCObject::release(v9);
v10 = (_DWORD *)a1[15];
if ( v10 )
cocos2d::CCObject::release(v10);
v11 = (_DWORD *)a1[16];
if ( v11 )
cocos2d::CCObject::release(v11);
v12 = (_DWORD *)a1[17];
if ( v12 )
cocos2d::CCObject::release(v12);
v13 = (_DWORD *)a1[18];
if ( v13 )
cocos2d::CCObject::release(v13);
if ( a1[20] )
{
nullsub_7();
operator delete(v14);
a1[20] = 0;
}
v15 = cocos2d::CCPoolManager::sharedPoolManager();
v16 = cocos2d::CCPoolManager::pop(v15);
cocos2d::CCPoolManager::purgePoolManager(v16);
v17 = (void *)a1[38];
if ( v17 )
{
operator delete(v17);
a1[38] = 0;
}
v18 = (void *)a1[42];
if ( v18 )
operator delete[](v18);
qword_1009F4930 = 0;
return cocos2d::CCObject::dCCObject((__int64)a1);
}