//
// MusicSearchResult::updateFutureCount from 0x10015c978 to 0x10015ca74 (252 bytes)
//
// 1 xrefs:
// > MusicSearchResult::updateObjects_1 @ 0x10015cb6c
//
// 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::updateFutureCount(MusicSearchResult *a1, cocos2d::CCArray *a2, cocos2d::CCArray *a3)
{
int v6; // w0
cocos2d::CCArray *m_tagFilterObjects; // x8
cocos2d::ccArray *data; // x9
__int64 num; // x8
int v10; // w22
cocos2d::CCObject **arr; // x23
unsigned __int64 v12; // x24
cocos2d::CCObject *v13; // x25
int v14; // w0
MusicDownloadManager *v15; // x0
cocos2d::CCArray *v16; // x0
cocos2d::CCArray *v17; // x0
cocos2d::CCArray *m_artistFilterObjects; // x8
cocos2d::ccArray *v19; // x9
__int64 v20; // x8
cocos2d::CCArray *v21; // x20
cocos2d::CCObject **v22; // x19
unsigned __int64 v23; // x21
cocos2d::CCObject *v24; // x22
MusicDownloadManager *v25; // x0
cocos2d::CCArray *v26; // x0
v6 = sub_10024A36C(a2);
m_tagFilterObjects = a1->m_tagFilterObjects;
if ( m_tagFilterObjects )
{
data = m_tagFilterObjects->data;
num = data->num;
if ( (_DWORD)num )
{
v10 = v6;
arr = data->arr;
v12 = (unsigned __int64)&arr[num - 1];
do
{
v13 = *arr;
if ( !*arr )
break;
v14 = v10;
if ( (BYTE4(v13[1].__vftable) & 1) == 0 )
{
v15 = MusicDownloadManager::sharedState();
v16 = MusicDownloadManager::filterMusicByTag(v15, (int)v13[1].__vftable, a2);
v14 = sub_10024A36C(v16);
}
v13[1].m_unknown2 = v14;
++arr;
}
while ( (unsigned __int64)arr <= v12 );
}
}
v17 = MusicSearchResult::applyTagFilters(a1, a3);
m_artistFilterObjects = a1->m_artistFilterObjects;
if ( m_artistFilterObjects )
{
v19 = m_artistFilterObjects->data;
v20 = v19->num;
if ( (_DWORD)v20 )
{
v21 = v17;
v22 = v19->arr;
v23 = (unsigned __int64)&v22[v20 - 1];
do
{
v24 = *v22;
if ( !*v22 )
break;
v25 = MusicDownloadManager::sharedState();
v26 = MusicDownloadManager::filterMusicByArtistID(v25, (int)v24[1].__vftable, v21);
v24[1].m_unknown2 = sub_10024A36C(v26);
++v22;
}
while ( (unsigned __int64)v22 <= v23 );
}
}
}