//
// MusicDownloadManager::filterMusicByArtistID from 0x1403420e0 to 0x14034218d (173 bytes)
//
// 5 xrefs:
// > MusicSearchResult::updateObjects @ 0x1403476a4
// > MusicSearchResult::updateObjects @ 0x1403477c7
// > ??> @ 0x14069562c
// > ??> @ 0x14069563c
// > ??> @ 0x1406d578c
//
// 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
//
cocos2d::CCArray *MusicDownloadManager::filterMusicByArtistID(MusicDownloadManager *a1, int a2, cocos2d::CCArray *a3)
{
cocos2d::CCArray *result; // rax
cocos2d::CCArray *v6; // rdi
cocos2d::ccArray *data; // rbx
__int64 num; // rax
cocos2d::CCObject **arr; // rbx
cocos2d::CCObject **i; // rsi
cocos2d::CCObject *v11; // r11
int v12; // [rsp+38h] [rbp+10h] BYREF
v12 = a2;
result = (cocos2d::CCArray *)cocos2d::CCArray::create(a1);
v6 = result;
if ( a3 )
{
data = a3->data;
num = data->num;
if ( (_DWORD)num )
{
arr = data->arr;
for ( i = &arr[num - 1]; arr <= i; ++arr )
{
v11 = *arr;
if ( !*arr )
break;
if ( v11[9].m_nTag == a2 || sub_14005F8D0(&v11[11].m_nTag, (unsigned __int8 *)&v12) )
cocos2d::CCArray::addObject(v6, v11);
}
return v6;
}
else
{
return v6;
}
}
return result;
}