//
// SFXBrowser::trySetupSFXBrowser from 0xa5de48 to 0xa5dea4 (92 bytes)
//
// 3 xrefs:
// > sub_A5DEA4 @ 0xa5ec44
// > SFXBrowser::musicActionFinished @ 0xa5eec8
// > ??> @ 0x3e2f8
//
// 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 SFXBrowser::trySetupSFXBrowser(SFXBrowser *a1)
{
MusicDownloadManager *v2; // x0
MusicDownloadManager *v3; // x0
if ( MusicDownloadManager::sharedState()->m_sfxObjects )
{
SFXBrowser::setupSFXBrowser(a1);
}
else if ( *((_QWORD *)MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_data - 3) )
{
v2 = MusicDownloadManager::sharedState();
MusicDownloadManager::downloadSFXLibrary(v2);
}
else
{
v3 = MusicDownloadManager::sharedState();
MusicDownloadManager::getCustomContentURL(v3);
}
}