//
// MusicDownloadManager::getSongInfoObject from 0x4584f4 to 0x458562 (110 bytes)
//
// 11 xrefs:
// > FindBPMLayer::recordingDidStop @ 0x3086f8
// > FindBPMLayer::init @ 0x309afc
// > LevelCell::loadCustomLevelCell @ 0x332500
// > CustomSongWidget::onMore @ 0x3dd2c4
// > MusicDownloadManager::incrementPriorityForSong @ 0x458574
// > MusicDownloadManager::onDownloadSongCompleted @ 0x459ae6
// > MusicDownloadManager::getSongInfo @ 0x45a4ac
// > MusicDownloadManager::downloadSong @ 0x45b06c
// > SongInfoObject::create @ 0x45bfb4
// > SongSelectNode::init @ 0x460e26
// > AudioAssetsBrowser::setupList @ 0x59b6a8
//
// 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
//
SongInfoObject *MusicDownloadManager::getSongInfoObject(MusicDownloadManager *a1, int a2)
{
cocos2d::CCDictionary *m_songObjects; // r4
cocos2d::CCString *v5; // r0
char *CString; // r0
SongInfoObject *v7; // r4
std::string v9; // [sp+8h] [bp-8h] BYREF
m_songObjects = a1->m_songObjects;
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a2);
CString = (char *)cocos2d::CCString::getCString(v5);
sub_776584((int)&v9, CString);
v7 = (SongInfoObject *)cocos2d::CCDictionary::objectForKey(m_songObjects, &v9);
sub_774008(&v9);
if ( v7
|| a2 <= (int)" of X position. These triggers need to use Group ID and have Spawn Trigger enabled.\nPreview Disable disables activation while not playtesting in editor.\nSpawn Ordered spawns the triggers in order from left to right.\nUse remapping (page 2) to copy a Spawn setup to another group." )
{
return v7;
}
else
{
return MusicDownloadManager::getMusicObject(a1, a2);
}
}