//
// MusicDownloadManager::filterMusicByArtistID from 0x96b328 to 0x96b3dc (180 bytes)
//
// 1 xrefs:
// > ??> @ 0xb6b48
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:57:38 +0000
//
cocos2d::CCArray *__fastcall MusicDownloadManager::filterMusicByArtistID(
MusicDownloadManager *this,
int a2,
cocos2d::CCArray *a3)
{
cocos2d::CCArray *v3; // x22
unsigned int *v4; // x1
__int64 *v5; // x20
__int64 v6; // x0
char *v7; // x21
__int64 i; // x19
int v11; // [xsp+4Ch] [xbp+4Ch] BYREF
v11 = a2;
v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(this);
if ( a3 )
{
v4 = *((unsigned int **)a3 + 7);
if ( *v4 )
{
v5 = *((__int64 **)v4 + 2);
v6 = 8LL * *v4 - 8;
v7 = (char *)v5 + v6;
if ( v5 <= (__int64 *)((char *)v5 + v6) )
{
for ( i = *v5; *v5; i = *v5 )
{
if ( *(_DWORD *)(i + 392) == v11
|| std::__hash_table,std::equal_to,std::allocator>::find(
(_QWORD *)(i + 488),
&v11) )
{
cocos2d::CCArray::addObject(v3, (cocos2d::CCObject *)i);
}
if ( v7 < (char *)++v5 )
break;
}
}
}
}
return v3;
}