//
// CustomSongWidget::dCustomSongWidget from 0x1000f97ac to 0x1000f9830 (132 bytes)
//
// 2 xrefs:
// > j_CustomSongWidget::dCustomSongWidget @ 0x1000f9834
// > sub_1000F9838 @ 0x1000f9840
//
// 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; // x0
cocos2d::CCObject *v3; // x0
MusicDownloadDelegate_vtbl *v4; // x0
a1->__vftable = (MusicDownloadDelegate_vtbl *)off_100786E90;
a1[40].__vftable = (MusicDownloadDelegate_vtbl *)off_100787268;
a1[41].__vftable = (MusicDownloadDelegate_vtbl *)&off_1007872C8;
v2 = MusicDownloadManager::sharedState();
MusicDownloadManager::removeMusicDownloadDelegate(v2, a1 + 40);
v3 = (cocos2d::CCObject *)a1[42].__vftable;
if ( v3 )
cocos2d::CCObject::release(v3);
sub_100017D70((__int64)&a1[76], &a1[77].loadSongInfoFinished);
v4 = a1[72].__vftable;
if ( v4 )
{
a1[73].__vftable = v4;
operator delete(v4);
}
sub_100017D70((__int64)&a1[69], &a1[70].loadSongInfoFinished);
sub_100017D70((__int64)&a1[66], &a1[67].loadSongInfoFinished);
return cocos2d::CCNode::dCCNode(a1);
}