//
// MusicDownloadManager::getSongInfoObject from 0x100154224 to 0x1001542cc (168 bytes)
//
// 11 xrefs:
// > FindBPMLayer::init @ 0x10007e1ac
// > FindBPMLayer::recordingDidStop @ 0x10007e294
// > CustomSongWidget::onMore @ 0x1000faea8
// > LevelCell::loadCustomLevelCell @ 0x10010d62c
// > SongSelectNode::init @ 0x100147624
// > MusicDownloadManager::incrementPriorityForSong @ 0x100154200
// > MusicDownloadManager::getSongInfo @ 0x100154308
// > MusicDownloadManager::downloadSong @ 0x1001563bc
// > MusicDownloadManager::onDownloadSongCompleted @ 0x100156918
// > SongInfoObject::create_1 @ 0x10015b180
// > AudioAssetsBrowser::setupList @ 0x1001d20fc
//
// 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 *__fastcall MusicDownloadManager::getSongInfoObject(MusicDownloadManager *a1, int a2)
{
cocos2d::CCDictionary *m_songObjects; // x21
cocos2d::CCString *v5; // x0
char *CString; // x0
SongInfoObject *v7; // x21
cocos2d::CCDictionary *m_musicObjects; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v11; // [xsp+1Fh] [xbp-21h]
m_songObjects = a1->m_songObjects;
v5 = (cocos2d::CCString *)sub_100268F4C("%i", a2);
CString = (char *)cocos2d::CCString::getCString(v5);
sub_100009900(__p, CString);
v7 = (SongInfoObject *)cocos2d::CCDictionary::objectForKey_1(m_songObjects, __p);
if ( v11 < 0 )
operator delete(__p[0]);
if ( a2 >= 10000001 && !v7 )
{
m_musicObjects = a1->m_musicObjects;
if ( m_musicObjects )
return (SongInfoObject *)cocos2d::CCDictionary::objectForKey(m_musicObjects, (unsigned int)a2);
else
return nullptr;
}
return v7;
}