//
// MusicDownloadManager::getAllSongs from 0x457ee4 to 0x457f24 (64 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::clearUnusedSongs @ 0x459b60
//
// 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; // r0
cocos2d::CCDictionary *m_songObjects; // r3
cocos2d::CCArray *v4; // r5
cocos2d::CCDictElement *m_pElements; // r3
cocos2d::CCDictElement *next; // r4
cocos2d::CCDictElement *v7; // r2
v2 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1);
m_songObjects = a1->m_songObjects;
v4 = v2;
if ( m_songObjects )
{
m_pElements = m_songObjects->m_pElements;
if ( m_pElements )
next = (cocos2d::CCDictElement *)m_pElements->hh.next;
else
next = nullptr;
while ( m_pElements )
{
cocos2d::CCArray::addObject(v4, m_pElements->m_pObject);
if ( next )
v7 = (cocos2d::CCDictElement *)next->hh.next;
else
v7 = nullptr;
m_pElements = next;
next = v7;
}
}
return v4;
}