//
// GameLevelManager::~GameLevelManager from 0x812ca8 to 0x812f88 (736 bytes)
//
// 4 xrefs:
// > GameLevelManager::~GameLevelManager @ 0x812f98
// > ??> @ 0x99898
// > ??> @ 0xa7428
// > ??> @ 0x143f4c8
//
// 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 12:54:53 +0000
//
// Alternative name is '_ZN16GameLevelManagerD2Ev'
void __fastcall GameLevelManager::~GameLevelManager(GameLevelManager *this)
{
cocos2d::CCObject *v2; // x0
cocos2d::CCObject *v3; // x0
cocos2d::CCObject *v4; // x0
cocos2d::CCObject *v5; // x0
cocos2d::CCObject *v6; // x0
cocos2d::CCObject *v7; // x0
cocos2d::CCObject *v8; // x0
cocos2d::CCObject *v9; // x0
cocos2d::CCObject *v10; // x0
cocos2d::CCObject *v11; // x0
cocos2d::CCObject *v12; // x0
cocos2d::CCObject *v13; // x0
cocos2d::CCObject *v14; // x0
cocos2d::CCObject *v15; // x0
cocos2d::CCObject *v16; // x0
cocos2d::CCObject *v17; // x0
cocos2d::CCObject *v18; // x0
cocos2d::CCObject *v19; // x0
cocos2d::CCObject *v20; // x0
cocos2d::CCObject *v21; // x0
cocos2d::CCObject *v22; // x0
void **v23; // x20
void **v24; // x21
void **v25; // x0
void *v26; // x0
__int64 v27; // x20
_QWORD *v28; // x0
_QWORD *v29; // x20
void *v30; // x0
_QWORD *v31; // x0
_QWORD *v32; // x20
void *v33; // x0
void **v34; // x20
void **v35; // x21
void **v36; // x0
void *v37; // x0
v2 = *((cocos2d::CCObject **)this + 121);
qword_155C978 = 0;
*(_QWORD *)this = &off_143F4C0;
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *((cocos2d::CCObject **)this + 122);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *((cocos2d::CCObject **)this + 132);
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *((cocos2d::CCObject **)this + 95);
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = *((cocos2d::CCObject **)this + 135);
if ( v6 )
cocos2d::CCObject::release(v6);
v7 = *((cocos2d::CCObject **)this + 130);
if ( v7 )
cocos2d::CCObject::release(v7);
v8 = *((cocos2d::CCObject **)this + 131);
if ( v8 )
cocos2d::CCObject::release(v8);
v9 = *((cocos2d::CCObject **)this + 136);
if ( v9 )
cocos2d::CCObject::release(v9);
v10 = *((cocos2d::CCObject **)this + 133);
if ( v10 )
cocos2d::CCObject::release(v10);
v11 = *((cocos2d::CCObject **)this + 98);
if ( v11 )
cocos2d::CCObject::release(v11);
v12 = *((cocos2d::CCObject **)this + 134);
if ( v12 )
cocos2d::CCObject::release(v12);
v13 = *((cocos2d::CCObject **)this + 123);
if ( v13 )
cocos2d::CCObject::release(v13);
v14 = *((cocos2d::CCObject **)this + 124);
if ( v14 )
cocos2d::CCObject::release(v14);
v15 = *((cocos2d::CCObject **)this + 97);
if ( v15 )
cocos2d::CCObject::release(v15);
v16 = *((cocos2d::CCObject **)this + 140);
if ( v16 )
cocos2d::CCObject::release(v16);
v17 = *((cocos2d::CCObject **)this + 141);
if ( v17 )
cocos2d::CCObject::release(v17);
v18 = *((cocos2d::CCObject **)this + 142);
if ( v18 )
cocos2d::CCObject::release(v18);
v19 = *((cocos2d::CCObject **)this + 143);
if ( v19 )
cocos2d::CCObject::release(v19);
v20 = *((cocos2d::CCObject **)this + 189);
if ( v20 )
cocos2d::CCObject::release(v20);
v21 = *((cocos2d::CCObject **)this + 191);
if ( v21 )
cocos2d::CCObject::release(v21);
v22 = *((cocos2d::CCObject **)this + 144);
if ( v22 )
cocos2d::CCObject::release(v22);
if ( (*((_BYTE *)this + 1488) & 1) != 0 )
operator delete(*((void **)this + 188));
if ( (*((_BYTE *)this + 1184) & 1) != 0 )
operator delete(*((void **)this + 150));
if ( (*((_BYTE *)this + 1160) & 1) != 0 )
operator delete(*((void **)this + 147));
v23 = *((void ***)this + 127);
if ( v23 )
{
do
{
v24 = (void **)*v23;
if ( ((_BYTE)v23[3] & 1) != 0 )
operator delete(v23[5]);
v25 = v23;
v23 = v24;
operator delete(v25);
}
while ( v24 );
}
v26 = *((void **)this + 125);
*((_QWORD *)this + 125) = 0;
if ( v26 )
operator delete(v26);
v27 = *((_QWORD *)this + 119);
if ( v27 )
{
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 944,
*(void **)v27);
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 944,
*(void **)(v27 + 8));
if ( (*(_BYTE *)(v27 + 32) & 1) != 0 )
operator delete(*(void **)(v27 + 48));
operator delete((void *)v27);
}
std::__tree::~__tree((__int64)this + 720);
if ( (*((_BYTE *)this + 656) & 1) != 0 )
operator delete(*((void **)this + 84));
if ( (*((_BYTE *)this + 624) & 1) != 0 )
operator delete(*((void **)this + 80));
if ( (*((_BYTE *)this + 600) & 1) != 0 )
operator delete(*((void **)this + 77));
if ( (*((_BYTE *)this + 544) & 1) != 0 )
operator delete(*((void **)this + 70));
v28 = *((_QWORD **)this + 52);
if ( v28 )
{
do
{
v29 = (_QWORD *)*v28;
operator delete(v28);
v28 = v29;
}
while ( v29 );
}
v30 = *((void **)this + 50);
*((_QWORD *)this + 50) = 0;
if ( v30 )
operator delete(v30);
v31 = *((_QWORD **)this + 47);
if ( v31 )
{
do
{
v32 = (_QWORD *)*v31;
operator delete(v31);
v31 = v32;
}
while ( v32 );
}
v33 = *((void **)this + 45);
*((_QWORD *)this + 45) = 0;
if ( v33 )
operator delete(v33);
v34 = *((void ***)this + 42);
if ( v34 )
{
do
{
v35 = (void **)*v34;
if ( ((_BYTE)v34[3] & 1) != 0 )
operator delete(v34[5]);
v36 = v34;
v34 = v35;
operator delete(v36);
}
while ( v35 );
}
v37 = *((void **)this + 40);
*((_QWORD *)this + 40) = 0;
if ( v37 )
operator delete(v37);
cocos2d::CCNode::~CCNode(this);
}