//
// MusicBrowser::create from 0x582578 to 0x5826b8 (320 bytes)
//
// 2 xrefs:
// > CustomSongLayer::onMusicBrowser @ 0x45e0de
// > NCSInfoLayer::onLibrary @ 0x45e10a
//
// 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
//
MusicBrowser *MusicBrowser::create(int a1, GJSongType a2)
{
MusicBrowser *v4; // r4
MusicBrowser_vtbl *v5; // r3
int *v6; // r0
v4 = (MusicBrowser *)operator new(0x254u);
cocos2d::CCLayerColor::CCLayerColor(v4);
v4->m_buttonMenu = nullptr;
v4->m_alertProtocol = nullptr;
v4->m_scene = nullptr;
v4->m_reverseKeyBack = 0;
v4->m_mainLayer = nullptr;
v4->m_ZOrder = 0;
v4->m_noElasticity = 0;
v4->m_button1 = nullptr;
v4->m_button2 = nullptr;
v4->m_scrollingLayer = nullptr;
v4->m_controlConnected = -1;
v4->m_containsBorder = 0;
v4->m_noAction = 0;
v4->m_joystickConnected = -1;
v4->m_forcePrioRegistered = 0;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (MusicBrowser_vtbl *)&off_A966E8;
v4->m_songType = Music;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A96994;
v4->m_searchResult = nullptr;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A969CC;
v4->m_listLayer = nullptr;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A969D8;
v4->m_infoLabel = nullptr;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A969E8;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A969F8;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A96A0C;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_A96A4C;
v4->MusicDownloadDelegate::__vftable = (MusicDownloadDelegate_vtbl *)&off_A96A5C;
v4->TableViewCellDelegate::__vftable = (TableViewCellDelegate_vtbl *)&off_A96A8C;
v4->SetTextPopupDelegate::__vftable = (SetTextPopupDelegate_vtbl *)&off_A96AA4;
v4->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&off_A96AB0;
v4->SliderDelegate::__vftable = (SliderDelegate_vtbl *)&off_A96ABC;
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;
v4->m_gettingURL = 0;
v4->m_selectedCell = 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);
}
else
{
v5 = v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v6 = (int *)v4;
v4 = nullptr;
v5->~MusicBrowser_0((MusicBrowser *)v6);
}
return v4;
}