//
// GameManager::~GameManager from 0x71ca24 to 0x71cca0 (636 bytes)
//
// 4 xrefs:
// > GameManager::~GameManager @ 0x71ccb0
// > ??> @ 0xe05c0
// > ??> @ 0x101fc8
// > ??> @ 0x1429268
//
// 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:52:21 +0000
//
// Alternative name is '_ZN11GameManagerD1Ev'
void __fastcall GameManager::~GameManager(GameManager *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
char v9; // w0
char *v10; // x0
char *v11; // x2
_QWORD **v12; // x20
_QWORD **v13; // x20
_QWORD **v14; // x20
void **v15; // x20
void **v16; // x0
char v17; // w1
v2 = *((cocos2d::CCObject **)this + 57);
*(_QWORD *)this = &off_1429260;
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *((cocos2d::CCObject **)this + 161);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *((cocos2d::CCObject **)this + 47);
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *((cocos2d::CCObject **)this + 48);
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = *((cocos2d::CCObject **)this + 49);
if ( v6 )
cocos2d::CCObject::release(v6);
v7 = *((cocos2d::CCObject **)this + 50);
if ( v7 )
cocos2d::CCObject::release(v7);
v8 = *((cocos2d::CCObject **)this + 51);
if ( v8 )
cocos2d::CCObject::release(v8);
v9 = *((_BYTE *)this + 1664);
qword_155C538 = 0;
if ( (v9 & 1) != 0 )
operator delete(*((void **)this + 210));
if ( (*((_BYTE *)this + 1640) & 1) != 0 )
operator delete(*((void **)this + 207));
if ( (*((_BYTE *)this + 1616) & 1) != 0 )
operator delete(*((void **)this + 204));
if ( (*((_BYTE *)this + 1592) & 1) != 0 )
operator delete(*((void **)this + 201));
if ( (*((_BYTE *)this + 1568) & 1) != 0 )
operator delete(*((void **)this + 198));
if ( (*((_BYTE *)this + 1544) & 1) != 0 )
operator delete(*((void **)this + 195));
if ( (*((_BYTE *)this + 1520) & 1) != 0 )
operator delete(*((void **)this + 192));
std::__tree>,std::__map_value_compare>,std::less,true>,std::allocator>>>::~__tree((__int64)this + 1256);
v10 = *((char **)this + 154);
if ( v10 )
{
v11 = *((char **)this + 155);
if ( v10 != v11 )
*((_QWORD *)this + 155) = &v11[4 * ~((unsigned __int64)(v11 - 4 - v10) >> 2)];
operator delete(v10);
}
v12 = *((_QWORD ***)this + 152);
if ( v12 )
{
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 1208,
*v12);
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 1208,
v12[1]);
operator delete(v12);
}
std::__tree>,std::__map_value_compare>,std::less,true>,std::allocator>>>::~__tree((__int64)this + 1184);
v13 = *((_QWORD ***)this + 146);
if ( v13 )
{
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 1160,
*v13);
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 1160,
v13[1]);
operator delete(v13);
}
v14 = *((_QWORD ***)this + 140);
if ( v14 )
{
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 1112,
*v14);
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 1112,
v14[1]);
operator delete(v14);
}
if ( (*((_BYTE *)this + 632) & 1) != 0 )
operator delete(*((void **)this + 81));
if ( (*((_BYTE *)this + 608) & 1) != 0 )
operator delete(*((void **)this + 78));
if ( (*((_BYTE *)this + 512) & 1) != 0 )
operator delete(*((void **)this + 66));
v15 = *((void ***)this + 44);
if ( v15 )
{
v16 = *((void ***)this + 45);
if ( v15 != v16 )
{
do
{
*((_QWORD *)this + 45) = v16 - 4;
if ( (*(_BYTE *)(v16 - 4) & 1) != 0 )
operator delete(*(v16 - 2));
v16 = *((void ***)this + 45);
}
while ( v15 != v16 );
v16 = *((void ***)this + 44);
}
operator delete(v16);
}
v17 = *((_BYTE *)this + 320);
*(_QWORD *)this = &off_141A5C0;
if ( (v17 & 1) != 0 )
operator delete(*((void **)this + 42));
cocos2d::CCNode::~CCNode(this);
}