//
// MusicDownloadManager::getAllSongs from 0x95bdf0 to 0x95be48 (88 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::clearUnusedSongs @ 0x96d3b4
// > ??> @ 0xe4e80
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:57:28 +0000
//
cocos2d::CCArray *__fastcall MusicDownloadManager::getAllSongs(MusicDownloadManager *this)
{
cocos2d::CCArray *v2; // x20
__int64 v3; // x0
__int64 v4; // x0
__int64 i; // x19
v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(this);
v3 = *((_QWORD *)this + 43);
if ( v3 )
{
v4 = *(_QWORD *)(v3 + 56);
if ( v4 )
{
for ( i = *(_QWORD *)(v4 + 288); ; i = *(_QWORD *)(i + 288) )
{
cocos2d::CCArray::addObject(v2, *(cocos2d::CCObject **)(v4 + 264));
v4 = i;
if ( !i )
break;
}
}
}
return v2;
}