//
// CustomSongWidget::dCustomSongWidget from 0x10061a640 to 0x10061a6f3 (179 bytes)
//
// 2 xrefs:
// > sub_10061A700 @ 0x10061a705
// > sub_10061A710 @ 0x10061a719
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall CustomSongWidget::dCustomSongWidget(MusicDownloadDelegate *a1)
{
MusicDownloadManager *v2; // rax
cocos2d::CCObject *v3; // rdi
MusicDownloadDelegate_vtbl *v4; // rdi
a1->__vftable = (MusicDownloadDelegate_vtbl *)off_100981EC8;
a1[40].__vftable = (MusicDownloadDelegate_vtbl *)off_1009822A0;
a1[41].__vftable = (MusicDownloadDelegate_vtbl *)&off_100982300;
v2 = MusicDownloadManager::sharedState();
MusicDownloadManager::removeMusicDownloadDelegate(v2, a1 + 40);
v3 = (cocos2d::CCObject *)a1[42].__vftable;
if ( v3 )
cocos2d::CCObject::release(v3);
sub_100054D90((__int64)&a1[76], &a1[77].loadSongInfoFinished);
v4 = a1[72].__vftable;
if ( v4 )
{
a1[73].__vftable = v4;
operator delete(v4);
}
sub_100054D90((__int64)&a1[69], &a1[70].loadSongInfoFinished);
sub_100054D90((__int64)&a1[66], &a1[67].loadSongInfoFinished);
return cocos2d::CCNode::dCCNode((__int64)a1);
}