//
// CustomSongWidget::create from 0x3df79c to 0x3df8f2 (342 bytes)
//
// 5 xrefs:
// > CustomSongCell::loadFromObject @ 0x33512c
// > CustomMusicCell::loadFromObject @ 0x335562
// > LevelInfoLayer::init @ 0x3b4a68
// > CustomSongLayer::init @ 0x45f32c
// > SongSelectNode::init @ 0x460e3c
//
// 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
//
CustomSongWidget *CustomSongWidget::create(
SongInfoObject *a1,
CustomSongDelegate *a2,
bool a3,
bool a4,
bool a5,
bool a6,
bool a7,
bool a8,
int a9)
{
CustomSongWidget *v13; // r4
CustomSongWidget_vtbl *v14; // r3
int *v15; // r0
v13 = (CustomSongWidget *)operator new(0x1D0u);
cocos2d::CCNode::CCNode(v13);
v13->m_songInfoObject = nullptr;
v13->m_songLabel = nullptr;
v13->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CustomSongWidget_vtbl *)&off_A51CB0;
v13->m_artistLabel = nullptr;
v13->MusicDownloadDelegate::__vftable = (MusicDownloadDelegate_vtbl *)&off_A51E9C;
v13->m_songIDLabel = nullptr;
v13->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&off_A51ECC;
v13->m_downloadBtn = nullptr;
v13->m_lengthMod = 0.0;
v13->m_selectSongBtn = nullptr;
v13->m_playbackBtn = nullptr;
v13->m_deleteBtn = nullptr;
v13->m_sliderGroove = nullptr;
v13->m_sliderBar = nullptr;
v13->m_ncsLogo = nullptr;
v13->m_bgSpr = nullptr;
v13->m_songDelegate = nullptr;
v13->m_showSelectSongBtn = 0;
v13->m_showPlayMusicBtn = 0;
v13->m_showDownloadBtn = 0;
v13->m_isNotDownloading = 0;
v13->m_isRobtopSong = 0;
v13->m_isMusicLibrary = 0;
v13->m_customSongID = 0;
v13->m_isInCell = 0;
v13->m_playbackDelegate = nullptr;
v13->m_hasLibrarySongs = 0;
v13->m_hasSFX = 0;
v13->m_unkBool2 = 0;
memset(&v13->m_songs.m_header, 0, sizeof(v13->m_songs.m_header));
v13->m_songs.m_header.m_left = &v13->m_songs.m_header;
v13->m_songs.m_header.m_right = &v13->m_songs.m_header;
v13->m_songs.m_nodecount = 0;
memset(&v13->m_sfx.m_header, 0, sizeof(v13->m_sfx.m_header));
v13->m_sfx.m_header.m_left = &v13->m_sfx.m_header;
v13->m_sfx.m_header.m_right = &v13->m_sfx.m_header;
v13->m_sfx.m_nodecount = 0;
v13->m_undownloadedAssets.m_start = nullptr;
v13->m_undownloadedAssets.m_finish = nullptr;
v13->m_undownloadedAssets.m_reserveEnd = nullptr;
v13->m_totalBytes = 0;
memset(&v13->m_nextSongIDs._M_t._M_impl._M_header, 0, sizeof(v13->m_nextSongIDs._M_t._M_impl._M_header));
v13->m_nextSongIDs._M_t._M_impl._M_node_count = 0;
v13->m_nextSongIDs._M_t._M_impl._M_header._M_left = &v13->m_nextSongIDs._M_t._M_impl._M_header;
v13->m_nextSongIDs._M_t._M_impl._M_header._M_right = &v13->m_nextSongIDs._M_t._M_impl._M_header;
if ( CustomSongWidget::init(v13, a1, a2, a3, a4, a5, a6, a7, a8, a9) )
{
cocos2d::CCObject::autorelease(v13);
}
else
{
v14 = v13->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v15 = (int *)v13;
v13 = nullptr;
v14->~CustomSongWidget_0((CustomSongWidget *)v15);
}
return v13;
}