//
// MusicSearchResult::createArtistFilterObjects from 0x100599360 to 0x1005994b0 (336 bytes)
//
// 1 xrefs:
// > MusicSearchResult::updateObjects_1 @ 0x10059a066
//
// 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
//
void __fastcall MusicSearchResult::createArtistFilterObjects(MusicSearchResult *a1)
{
MusicDownloadManager *v2; // rdi
char *v3; // r14
cocos2d::CCArray *AllMusicArtists; // rax
cocos2d::CCArray *m_artistFilterObjects; // rdi
cocos2d::CCArray *v6; // r14
if ( !a1->m_artistFilterObjects )
{
v2 = (MusicDownloadManager *)qword_1009A2C38;
if ( !qword_1009A2C38 )
{
v3 = (char *)operator new(0x230u);
cocos2d::CCNode::CCNode((__int64)v3);
*(_QWORD *)v3 = off_100970158;
*((_QWORD *)v3 + 40) = off_1009704D8;
*((_OWORD *)v3 + 28) = 0;
*(_OWORD *)(v3 + 328) = 0;
*(_OWORD *)(v3 + 344) = 0;
*((_DWORD *)v3 + 90) = 0;
*((_OWORD *)v3 + 23) = 0;
*((_OWORD *)v3 + 24) = 0;
*((_OWORD *)v3 + 25) = 0;
v3[416] = 0;
*(_OWORD *)(v3 + 424) = 0;
*((_QWORD *)v3 + 55) = v3 + 448;
*((_OWORD *)v3 + 30) = 0;
*((_OWORD *)v3 + 31) = 0;
*((_QWORD *)v3 + 58) = 0;
*(_QWORD *)(v3 + 471) = 0;
*((_DWORD *)v3 + 128) = 1065353216;
*(_OWORD *)(v3 + 520) = 0;
*(_OWORD *)(v3 + 536) = 0;
*((_DWORD *)v3 + 138) = 1065353216;
qword_1009A2C38 = (__int64)v3;
MusicDownloadManager::init((MusicDownloadManager *)v3);
v2 = (MusicDownloadManager *)qword_1009A2C38;
}
AllMusicArtists = MusicDownloadManager::getAllMusicArtists(v2, &a1->OptionsObjectDelegate);
m_artistFilterObjects = a1->m_artistFilterObjects;
if ( m_artistFilterObjects != AllMusicArtists )
{
v6 = AllMusicArtists;
if ( AllMusicArtists )
{
cocos2d::CCObject::retain(AllMusicArtists);
m_artistFilterObjects = a1->m_artistFilterObjects;
}
if ( m_artistFilterObjects )
cocos2d::CCObject::release(m_artistFilterObjects);
a1->m_artistFilterObjects = v6;
}
}
}