//
// CustomSongWidget::~CustomSongWidget from 0x4e329c to 0x4e331a (126 bytes)
//
// 1 xrefs:
// > CustomSongWidget::~CustomSongWidget @ 0x4e3324
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:03 +0000
//
// Alternative name is '_ZN16CustomSongWidgetD1Ev'
void __fastcall CustomSongWidget::~CustomSongWidget(CustomSongWidget *this)
{
MusicDownloadManager *v2; // r0
cocos2d::CCObject *v3; // r0
char *v4; // r0
char *v5; // r3
*(_DWORD *)this = &off_C9B160;
*((_DWORD *)this + 66) = &off_C9B354;
*((_DWORD *)this + 67) = &off_C9B38C;
v2 = (MusicDownloadManager *)MusicDownloadManager::sharedState(this);
MusicDownloadManager::removeMusicDownloadDelegate(v2, (CustomSongWidget *)((char *)this + 264));
v3 = *((cocos2d::CCObject **)this + 68);
if ( v3 )
cocos2d::CCObject::release(v3);
std::__tree::destroy((int)this + 432, *((_DWORD **)this + 109));
v4 = *((char **)this + 103);
if ( v4 )
{
while ( 1 )
{
v5 = *((char **)this + 104);
if ( v4 == v5 )
break;
*((_DWORD *)this + 104) = v5 - 16;
}
operator delete(v4);
}
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(int)this + 400,
*((_DWORD **)this + 101));
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(int)this + 388,
*((_DWORD **)this + 98));
cocos2d::CCNode::~CCNode(this);
}