//
// MusicDownloadManager::getAllSongs from 0x8295f0 to 0x829648 (88 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::clearUnusedSongs @ 0x8300c4
// > ??> @ 0xaef00
//
// 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::getAllSongs(MusicDownloadManager *a1)
{
cocos2d::CCArray *v2; // x20
cocos2d::CCDictionary *m_songObjects; // x0
cocos2d::CCDictElement *m_pElements; // x0
cocos2d::CCDictElement *i; // x19
v2 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1);
m_songObjects = a1->m_songObjects;
if ( m_songObjects )
{
m_pElements = m_songObjects->m_pElements;
if ( m_pElements )
{
for ( i = (cocos2d::CCDictElement *)m_pElements->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next )
{
cocos2d::CCArray::addObject(v2, m_pElements->m_pObject);
m_pElements = i;
if ( !i )
break;
}
}
}
return v2;
}