//
// MusicDownloadManager::filterMusicByArtistID from 0x10015970c to 0x1001597a4 (152 bytes)
//
// 2 xrefs:
// > MusicSearchResult::applyArtistFilters @ 0x10015c908
// > MusicSearchResult::updateFutureCount @ 0x10015ca44
//
// 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 *__fastcall MusicDownloadManager::filterMusicByArtistID(
MusicDownloadManager *a1,
int a2,
cocos2d::CCArray *a3)
{
cocos2d::CCArray *v4; // x19
cocos2d::ccArray *data; // x9
__int64 num; // x8
cocos2d::CCObject **arr; // x21
unsigned __int64 v8; // x22
cocos2d::CCObject *v9; // x20
int v11; // [xsp+Ch] [xbp-24h] BYREF
v11 = a2;
v4 = (cocos2d::CCArray *)sub_10024A15C(a1);
if ( a3 )
{
data = a3->data;
num = data->num;
if ( (_DWORD)num )
{
arr = data->arr;
v8 = (unsigned __int64)&arr[num - 1];
do
{
v9 = *arr;
if ( !*arr )
break;
if ( v9[8].m_nTag == v11 || sub_100018814(&v9[10].__vftable, &v11) )
sub_10024A2D0(v4, v9);
++arr;
}
while ( (unsigned __int64)arr <= v8 );
}
}
return v4;
}