//
// CustomSongWidget::~CustomSongWidget from 0x869774 to 0x869884 (272 bytes)
//
// 4 xrefs:
// > CustomSongWidget::~CustomSongWidget @ 0x869894
// > ??> @ 0x4cc00
// > ??> @ 0xbe7e0
// > ??> @ 0x1442b08
//
// 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:55:42 +0000
//
// Alternative name is '_ZN16CustomSongWidgetD1Ev'
void __fastcall CustomSongWidget::~CustomSongWidget(CustomSongWidget *this)
{
MusicDownloadManager *v2; // x0
cocos2d::CCObject *v3; // x0
_QWORD **v4; // x20
char *v5; // x0
char *v6; // x2
_QWORD **v7; // x20
_QWORD **v8; // x20
*(_QWORD *)this = &off_1442B00;
*((_QWORD *)this + 40) = &off_1442EE8;
*((_QWORD *)this + 41) = &off_1442F58;
v2 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)&off_1442F58);
MusicDownloadManager::removeMusicDownloadDelegate(v2, (CustomSongWidget *)((char *)this + 320));
v3 = *((cocos2d::CCObject **)this + 42);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *((_QWORD ***)this + 80);
if ( v4 )
{
std::__tree::destroy((__int64)this + 632, *v4);
std::__tree::destroy((__int64)this + 632, v4[1]);
operator delete(v4);
}
v5 = *((char **)this + 75);
if ( v5 )
{
v6 = *((char **)this + 76);
if ( v5 != v6 )
*((_QWORD *)this + 76) = &v6[16 * ~((unsigned __int64)(v6 - 16 - v5) >> 4)];
operator delete(v5);
}
v7 = *((_QWORD ***)this + 73);
if ( v7 )
{
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 576,
*v7);
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 576,
v7[1]);
operator delete(v7);
}
v8 = *((_QWORD ***)this + 70);
if ( v8 )
{
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 552,
*v8);
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 552,
v8[1]);
operator delete(v8);
}
cocos2d::CCNode::~CCNode(this);
}