//
// MusicDownloadManager::getAllSFXObjects from 0x82ad7c to 0x82adf8 (124 bytes)
//
// 2 xrefs:
// > SFXSearchResult::updateObjects @ 0x832950
// > ??> @ 0x83b80
//
// 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::getAllSFXObjects(MusicDownloadManager *a1, bool a2)
{
_BOOL4 v3; // w21
cocos2d::CCArray *v4; // x20
cocos2d::CCDictionary *m_sfxObjects; // x0
cocos2d::CCDictElement *m_pElements; // x1
_QWORD *next; // x19
cocos2d::CCArray *v8; // x0
cocos2d::CCObject *m_pObject; // x1
_QWORD *v10; // x1
v3 = a2;
v4 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1);
m_sfxObjects = a1->m_sfxObjects;
if ( m_sfxObjects )
{
m_pElements = m_sfxObjects->m_pElements;
if ( m_pElements )
{
next = m_pElements->hh.next;
v8 = v4;
m_pObject = m_pElements->m_pObject;
if ( !v3 )
goto LABEL_7;
LABEL_4:
if ( LOBYTE(m_pObject[1].m_nTag) )
{
if ( next )
goto LABEL_6;
}
else
{
LABEL_7:
while ( 1 )
{
cocos2d::CCArray::addObject(v8, m_pObject);
if ( !next )
break;
LABEL_6:
v10 = next;
v8 = v4;
next = (_QWORD *)next[36];
m_pObject = (cocos2d::CCObject *)v10[33];
if ( v3 )
goto LABEL_4;
}
}
}
}
return v4;
}