//
// MusicDownloadManager::getAllSFXObjects from 0x10015addc to 0x10015ae4c (112 bytes)
//
// 1 xrefs:
// > SFXSearchResult::updateObjects @ 0x10015d1f0
//
// 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::getAllSFXObjects(MusicDownloadManager *a1, bool a2)
{
cocos2d::CCArray *v4; // x20
cocos2d::CCDictionary *m_sfxObjects; // x8
cocos2d::CCDictElement *m_pElements; // x21
cocos2d::CCObject *m_pObject; // x1
v4 = (cocos2d::CCArray *)sub_10024A15C(a1);
m_sfxObjects = a1->m_sfxObjects;
if ( m_sfxObjects )
{
m_pElements = m_sfxObjects->m_pElements;
while ( m_pElements )
{
while ( 1 )
{
m_pObject = m_pElements->m_pObject;
m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next;
if ( LOBYTE(m_pObject[1].m_nTag) != 1 || !a2 )
break;
if ( !m_pElements )
return v4;
}
sub_10024A2D0(v4, m_pObject);
}
}
return v4;
}