//
// MusicBrowser::trySetupMusicBrowser from 0xa5b4d8 to 0xa5b534 (92 bytes)
//
// 3 xrefs:
// > MusicBrowser::init @ 0xa5bff8
// > MusicBrowser::musicActionFinished @ 0xa5c214
// > ??> @ 0x3cb10
//
// 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; // x0
MusicDownloadManager *v3; // x0
if ( MusicDownloadManager::sharedState()->m_musicObjects )
{
MusicBrowser::setupMusicBrowser(a1);
}
else if ( *((_QWORD *)MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_data - 3) )
{
v2 = MusicDownloadManager::sharedState();
MusicDownloadManager::downloadMusicLibrary(v2);
}
else
{
v3 = MusicDownloadManager::sharedState();
MusicDownloadManager::getCustomContentURL(v3);
}
}