//
// MusicSearchResult::applyArtistFilters from 0x572b84 to 0x572caa (294 bytes)
//
// 1 xrefs:
// > MusicSearchResult::updateObjects @ 0x5753e2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:52:39 +0000
//
cocos2d::CCArray *__fastcall MusicSearchResult::applyArtistFilters(MusicSearchResult *this, cocos2d::CCArray *a2)
{
int v4; // r3
_DWORD *v5; // r2
int *v6; // r4
int *v7; // r7
int v8; // r1
int v9; // t1
cocos2d::CCArray *v10; // r0
cocos2d::CCArray *v11; // r4
_DWORD *v12; // r2
_DWORD *v13; // r7
_DWORD *v14; // r5
_DWORD *v15; // r11
_DWORD *v16; // t1
int v18; // r8
_DWORD *v19; // r2
int v20; // r9
int v21; // r1
_DWORD *v22; // r0
_DWORD *v23; // [sp+4h] [bp-20h]
unsigned int v24; // [sp+Ch] [bp-18h] BYREF
char *v25; // [sp+10h] [bp-14h] BYREF
char *v26; // [sp+14h] [bp-10h]
char *v27; // [sp+18h] [bp-Ch]
*((_BYTE *)this + 97) = 0;
v25 = nullptr;
v26 = nullptr;
v27 = nullptr;
v4 = *((_DWORD *)this + 16);
if ( v4 )
{
v5 = *(_DWORD **)(v4 + 52);
if ( *v5 )
{
v6 = (int *)v5[3];
v7 = &v6[*v5 - 1];
while ( v6 <= v7 )
{
v9 = *v6++;
v8 = v9;
if ( !v9 )
break;
if ( *(_BYTE *)(v8 + 56) )
{
if ( v26 == v27 )
{
std::vector::__push_back_slow_path((int)&v25, (_DWORD *)(v8 + 52));
}
else
{
if ( v26 )
*(_DWORD *)v26 = *(_DWORD *)(v8 + 52);
v26 += 4;
}
}
}
}
}
if ( v25 == v26 || (v10 = (cocos2d::CCArray *)cocos2d::CCArray::count(a2)) == nullptr )
{
v11 = a2;
}
else
{
*((_BYTE *)this + 97) = 1;
v11 = (cocos2d::CCArray *)cocos2d::CCArray::create(v10);
if ( a2 )
{
v12 = *((_DWORD **)a2 + 13);
if ( *v12 )
{
v13 = (_DWORD *)v12[3];
v14 = &v13[*v12 - 1];
LABEL_20:
while ( v13 <= v14 )
{
v16 = (_DWORD *)*v13++;
v15 = v16;
if ( !v16 )
break;
v18 = 0;
v19 = v15 + 92;
v20 = (v26 - v25) >> 2;
while ( v18 != v20 )
{
v21 = v15[76];
v24 = *(_DWORD *)&v25[4 * v18];
if ( v21 == v24
|| (v23 = v19,
v22 = std::__hash_table,std::equal_to,std::allocator>::find(
v19,
&v24),
v19 = v23,
v22) )
{
cocos2d::CCArray::addObject(v11, (cocos2d::CCObject *)v15);
goto LABEL_20;
}
++v18;
}
}
}
}
}
std::__vector_base::~__vector_base(&v25);
return v11;
}