//
// MusicDownloadManager::getSongInfoObject from 0x56ca9c to 0x56cb1a (126 bytes)
//
// 12 xrefs:
// > FindBPMLayer::recordingDidStop @ 0x3f78d4
// > FindBPMLayer::init @ 0x3f8d4c
// > LevelCell::loadCustomLevelCell @ 0x42f6a8
// > CustomSongWidget::onMore @ 0x4e2388
// > MusicDownloadManager::incrementPriorityForSong @ 0x56cb2c
// > MusicDownloadManager::sumLocalAudioSizeBytes @ 0x56dc56
// > MusicDownloadManager::getSongInfo @ 0x56ea3e
// > MusicDownloadManager::downloadSong @ 0x570248
// > MusicDownloadManager::onDownloadSongCompleted @ 0x5728c0
// > SongInfoObject::create @ 0x5777a8
// > SongSelectNode::init @ 0x57c18e
// > AudioAssetsBrowser::setupList @ 0x6e1b0c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:52:33 +0000
//
cocos2d::CCDictionary *__fastcall MusicDownloadManager::getSongInfoObject(MusicDownloadManager *this, const char *a2)
{
int v3; // r4
cocos2d::CCString *v5; // r0
const char *CString; // r9
size_t v7; // r0
int v8; // r4
int v10[3]; // [sp+0h] [bp-14h] BYREF
v3 = *((_DWORD *)this + 69);
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2);
memset(v10, 0, sizeof(v10));
CString = (const char *)cocos2d::CCString::getCString(v5);
v7 = strlen(CString);
std::string::__init(v10, CString, v7);
v8 = cocos2d::CCDictionary::objectForKey(v3, v10);
std::string::~string((int)v10);
if ( v8 || (int)a2 <= 10000000 )
return (cocos2d::CCDictionary *)v8;
else
return MusicDownloadManager::getMusicObject(this, (int)a2);
}