//
// MusicDownloadManager::~MusicDownloadManager from 0x95f428 to 0x95f7c8 (928 bytes)
//
// 4 xrefs:
// > MusicDownloadManager::~MusicDownloadManager @ 0x95f7d8
// > ??> @ 0xa2580
// > ??> @ 0xb5348
// > ??> @ 0x146e6a8
//
// 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:57:31 +0000
//
// Alternative name is '_ZN20MusicDownloadManagerD2Ev'
void __fastcall MusicDownloadManager::~MusicDownloadManager(MusicDownloadManager *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
char *v13; // x23
char *v14; // x20
char *v15; // x21
char *v16; // x19
_QWORD **v17; // x19
_QWORD **v18; // x19
char *v19; // x0
char *v20; // x2
char *v21; // x0
char *v22; // x2
_QWORD *v23; // x0
_QWORD *v24; // x19
void *v25; // x0
_QWORD *v26; // x0
_QWORD *v27; // x19
void *v28; // x0
_QWORD *v29; // x0
_QWORD *v30; // x19
void *v31; // x0
_QWORD *v32; // x0
_QWORD *v33; // x19
void *v34; // x0
_QWORD *v35; // x0
_QWORD *v36; // x19
void *v37; // x0
_QWORD **v38; // x19
__int64 v39; // x19
v2 = *((cocos2d::CCObject **)this + 41);
*((_QWORD *)this + 40) = off_146EA30;
*(_QWORD *)this = &off_146E6A0;
qword_155D110 = 0;
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *((cocos2d::CCObject **)this + 43);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *((cocos2d::CCObject **)this + 42);
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *((cocos2d::CCObject **)this + 50);
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = *((cocos2d::CCObject **)this + 51);
if ( v6 )
cocos2d::CCObject::release(v6);
v7 = *((cocos2d::CCObject **)this + 52);
if ( v7 )
cocos2d::CCObject::release(v7);
v8 = *((cocos2d::CCObject **)this + 44);
if ( v8 )
cocos2d::CCObject::release(v8);
v9 = *((cocos2d::CCObject **)this + 55);
if ( v9 )
cocos2d::CCObject::release(v9);
v10 = *((cocos2d::CCObject **)this + 56);
if ( v10 )
cocos2d::CCObject::release(v10);
v11 = *((cocos2d::CCObject **)this + 57);
if ( v11 )
cocos2d::CCObject::release(v11);
v12 = *((cocos2d::CCObject **)this + 103);
if ( v12 )
cocos2d::CCObject::release(v12);
MusicDownloadManager::clearSortedMusicCache(this);
v13 = *((char **)this + 105);
if ( v13 )
{
v14 = *((char **)this + 106);
if ( v13 == v14 )
{
LABEL_43:
operator delete(v14);
goto LABEL_44;
}
while ( 1 )
{
*((_QWORD *)this + 106) = v14 - 80;
v15 = *((char **)v14 - 3);
if ( v15 )
break;
LABEL_37:
if ( (*(v14 - 48) & 1) != 0 )
operator delete(*((void **)v14 - 4));
if ( (*(v14 - 72) & 1) != 0 )
operator delete(*((void **)v14 - 7));
v14 = *((char **)this + 106);
if ( v13 == v14 )
{
v14 = *((char **)this + 105);
goto LABEL_43;
}
}
v16 = *((char **)v14 - 2);
if ( v15 == v16 )
{
LABEL_36:
operator delete(v16);
goto LABEL_37;
}
while ( 1 )
{
*((_QWORD *)v14 - 2) = v16 - 96;
if ( (*(v16 - 24) & 1) != 0 )
{
operator delete(*((void **)v16 - 1));
if ( (*(v16 - 64) & 1) != 0 )
LABEL_34:
operator delete(*((void **)v16 - 6));
}
else if ( (*(v16 - 64) & 1) != 0 )
{
goto LABEL_34;
}
if ( (*(v16 - 88) & 1) != 0 )
operator delete(*((void **)v16 - 9));
v16 = *((char **)v14 - 2);
if ( v15 == v16 )
{
v16 = *((char **)v14 - 3);
goto LABEL_36;
}
}
}
LABEL_44:
v17 = *((_QWORD ***)this + 101);
if ( v17 )
{
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 800,
*v17);
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 800,
v17[1]);
operator delete(v17);
}
v18 = *((_QWORD ***)this + 98);
if ( v18 )
{
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 776,
*v18);
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 776,
v18[1]);
operator delete(v18);
}
v19 = *((char **)this + 94);
if ( v19 )
{
v20 = *((char **)this + 95);
if ( v19 != v20 )
*((_QWORD *)this + 95) = &v20[4 * ~((unsigned __int64)(v20 - 4 - v19) >> 2)];
operator delete(v19);
}
v21 = *((char **)this + 91);
if ( v21 )
{
v22 = *((char **)this + 92);
if ( v21 != v22 )
*((_QWORD *)this + 92) = &v22[8 * ~((unsigned __int64)(v22 - 8 - v21) >> 3)];
operator delete(v21);
}
v23 = *((_QWORD **)this + 88);
if ( v23 )
{
do
{
v24 = (_QWORD *)*v23;
operator delete(v23);
v23 = v24;
}
while ( v24 );
}
v25 = *((void **)this + 86);
*((_QWORD *)this + 86) = 0;
if ( v25 )
operator delete(v25);
v26 = *((_QWORD **)this + 83);
if ( v26 )
{
do
{
v27 = (_QWORD *)*v26;
operator delete(v26);
v26 = v27;
}
while ( v27 );
}
v28 = *((void **)this + 81);
*((_QWORD *)this + 81) = 0;
if ( v28 )
operator delete(v28);
v29 = *((_QWORD **)this + 78);
if ( v29 )
{
do
{
v30 = (_QWORD *)*v29;
operator delete(v29);
v29 = v30;
}
while ( v30 );
}
v31 = *((void **)this + 76);
*((_QWORD *)this + 76) = 0;
if ( v31 )
operator delete(v31);
v32 = *((_QWORD **)this + 73);
if ( v32 )
{
do
{
v33 = (_QWORD *)*v32;
operator delete(v32);
v32 = v33;
}
while ( v33 );
}
v34 = *((void **)this + 71);
*((_QWORD *)this + 71) = 0;
if ( v34 )
operator delete(v34);
v35 = *((_QWORD **)this + 68);
if ( v35 )
{
do
{
v36 = (_QWORD *)*v35;
operator delete(v35);
v35 = v36;
}
while ( v36 );
}
v37 = *((void **)this + 66);
*((_QWORD *)this + 66) = 0;
if ( v37 )
operator delete(v37);
v38 = *((_QWORD ***)this + 62);
if ( v38 )
{
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 488,
*v38);
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 488,
v38[1]);
operator delete(v38);
}
v39 = *((_QWORD *)this + 59);
if ( v39 )
{
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 464,
*(void **)v39);
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 464,
*(void **)(v39 + 8));
if ( (*(_BYTE *)(v39 + 40) & 1) != 0 )
operator delete(*(void **)(v39 + 56));
operator delete((void *)v39);
}
if ( (*((_BYTE *)this + 368) & 1) != 0 )
operator delete(*((void **)this + 48));
cocos2d::CCNode::~CCNode(this);
}