//
// MusicBrowser::trySetupMusicBrowser from 0x581c74 to 0x581cb2 (62 bytes)
//
// 2 xrefs:
// > sub_581CB4 @ 0x58252a
// > MusicBrowser::musicActionFinished @ 0x5826d0
//
// 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
//
void MusicBrowser::trySetupMusicBrowser(MusicBrowser *a1)
{
MusicDownloadManager *v2; // r0
MusicDownloadManager *v3; // r0
if ( MusicDownloadManager::sharedState()->m_musicObjects )
{
MusicBrowser::setupMusicBrowser(a1);
}
else if ( *((_DWORD *)MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_data - 3) )
{
v3 = MusicDownloadManager::sharedState();
MusicDownloadManager::downloadMusicLibrary(v3);
}
else
{
v2 = MusicDownloadManager::sharedState();
MusicDownloadManager::getCustomContentURL(v2);
}
}