//
// MusicSearchResult::create from 0x4590e4 to 0x459156 (114 bytes)
//
// 1 xrefs:
// > MusicBrowser::setupMusicBrowser @ 0x581c3e
//
// 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
//
MusicSearchResult *MusicSearchResult::create(GJSongType a1)
{
MusicSearchResult *v2; // r4
MusicSearchResult_vtbl *v3; // r3
int *v4; // r0
v2 = (MusicSearchResult *)operator new(0x5Cu);
cocos2d::CCObject::CCObject(v2);
v2->cocos2d::CCObject::cocos2d::CCCopying::__vftable = (MusicSearchResult_vtbl *)&off_A66250;
v2->OptionsObjectDelegate::__vftable = (OptionsObjectDelegate_vtbl *)&off_A66288;
v2->m_filterObjects = nullptr;
v2->m_tagFilterObjects = nullptr;
v2->m_artistFilterObjects = nullptr;
v2->m_startIndex = 0;
v2->m_audioType = 0;
v2->m_sortType = NameAscending;
v2->m_tagFilter = 0;
v2->m_artistFilter = 0;
v2->m_searchQuery.m_data.m_data = (stl::StringData::Internal *)&unk_ACDDA8;
v2->m_songType = Music;
if ( MusicSearchResult::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
v3 = v2->cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v4 = (int *)v2;
v2 = nullptr;
v3->~MusicSearchResult_0((MusicSearchResult *)v4);
}
return v2;
}