//
// AudioAssetsBrowser::trySetupAudioBrowser from 0x59b7a0 to 0x59b7f4 (84 bytes)
//
// 1 xrefs:
// > AudioAssetsBrowser::musicActionFinished @ 0x59b7f4
//
// 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 AudioAssetsBrowser::trySetupAudioBrowser(AudioAssetsBrowser *a1)
{
MusicDownloadManager *v2; // r0
MusicDownloadManager *v3; // r0
MusicDownloadManager *v4; // r0
if ( MusicDownloadManager::sharedState()->m_sfxObjects )
{
if ( !*((_DWORD *)MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_data - 3) )
{
v2 = MusicDownloadManager::sharedState();
MusicDownloadManager::getCustomContentURL(v2);
}
AudioAssetsBrowser::setupList(a1);
}
else if ( *((_DWORD *)MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_data - 3) )
{
v4 = MusicDownloadManager::sharedState();
MusicDownloadManager::downloadSFXLibrary(v4);
}
else
{
v3 = MusicDownloadManager::sharedState();
MusicDownloadManager::getCustomContentURL(v3);
}
}