//
// SFXBrowser::create from 0x5841f4 to 0x5842ec (248 bytes)
//
// 1 xrefs:
// > SetupSFXPopup::onBrowseSFX @ 0x575094
//
// 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
//
SFXBrowser *SFXBrowser::create(int a1)
{
SFXBrowser *v2; // r4
SFXBrowser_vtbl *v3; // r3
int *v4; // r0
v2 = (SFXBrowser *)operator new(0x254u);
FLAlertLayer::FLAlertLayer(v2);
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SFXBrowser_vtbl *)&off_A97240;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A974EC;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A97524;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A97530;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A97540;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A97550;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A97564;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_A975A4;
v2->MusicDownloadDelegate::__vftable = (MusicDownloadDelegate_vtbl *)&off_A975B4;
v2->TableViewCellDelegate::__vftable = (TableViewCellDelegate_vtbl *)&off_A975E4;
v2->SetTextPopupDelegate::__vftable = (SetTextPopupDelegate_vtbl *)&off_A975FC;
v2->SelectSFXSortDelegate::__vftable = (SelectSFXSortDelegate_vtbl *)&off_A97608;
v2->m_searchResult = nullptr;
v2->m_sfxObjects = nullptr;
v2->m_listLayer = nullptr;
v2->m_nameLabel = nullptr;
v2->m_pathLabel = nullptr;
v2->m_infoLabel = nullptr;
v2->m_pageLabel = nullptr;
v2->m_searchLabel = nullptr;
v2->m_prevButton = nullptr;
v2->m_refreshButton = nullptr;
v2->m_clearSearchButton = nullptr;
v2->m_circleSprite = nullptr;
v2->m_libraryVersion = 0;
v2->m_cellAmount = 0;
v2->m_gettingURL = 0;
v2->m_selectedCell = 0;
v2->m_snapToSelected = 0;
v2->m_compactMode = 0;
v2->m_sortType = NameAscending;
v2->m_delegate = nullptr;
v2->m_autoUpdating = 0;
if ( SFXBrowser::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
v3 = v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v4 = (int *)v2;
v2 = nullptr;
v3->~SFXBrowser_0((SFXBrowser *)v4);
}
return v2;
}