//
// MusicBrowser::create from 0x140338700 to 0x1403388b0 (432 bytes)
//
// 3 xrefs:
// > CustomSongLayer::onMusicBrowser @ 0x1400c3eec
// > NCSInfoLayer::onLibrary @ 0x1400c6c68
// > ??> @ 0x1406d5300
//
// 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
//
// Hidden C++ exception states: #wind=1
MusicBrowser *MusicBrowser::create(int a1, GJSongType a2)
{
MusicBrowser *v4; // rsi
v4 = (MusicBrowser *)operator new(0x338u);
FLAlertLayer::FLAlertLayer(v4);
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (MusicBrowser_vtbl *)&MusicBrowser::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&MusicBrowser::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&MusicBrowser::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&MusicBrowser::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&MusicBrowser::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&MusicBrowser::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&MusicBrowser::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&MusicBrowser::`vftable';
v4->MusicDownloadDelegate::__vftable = (MusicDownloadDelegate_vtbl *)&MusicBrowser::`vftable';
v4->TableViewCellDelegate::__vftable = (TableViewCellDelegate_vtbl *)&MusicBrowser::`vftable';
v4->SetTextPopupDelegate::__vftable = (SetTextPopupDelegate_vtbl *)&MusicBrowser::`vftable';
v4->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&MusicBrowser::`vftable';
v4->SliderDelegate::__vftable = (SliderDelegate_vtbl *)&MusicBrowser::`vftable';
v4->m_songType = Music;
v4->m_searchResult = nullptr;
v4->m_listLayer = nullptr;
v4->m_infoLabel = nullptr;
v4->m_pageLabel = nullptr;
v4->m_prevButton = nullptr;
v4->m_nextButton = nullptr;
v4->m_refreshButton = nullptr;
v4->m_clearSearchButton = nullptr;
v4->m_tagFilterButton = nullptr;
v4->m_artistFilterButton = nullptr;
v4->m_circleSprite = nullptr;
v4->m_libraryVersion = 0;
*(_WORD *)&v4->m_gettingURL = 0;
v4->m_delegate = nullptr;
v4->m_playSlider = nullptr;
v4->m_playLabel = nullptr;
v4->m_playButton = nullptr;
v4->m_autoUpdating = 0;
if ( MusicBrowser::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease(v4);
return v4;
}
else
{
((void (__fastcall *)(MusicBrowser *, __int64))v4->~MusicBrowser)(v4, 1);
return nullptr;
}
}