//
// AudioAssetsBrowser::trySetupAudioBrowser from 0xa8f54c to 0xa8f5c0 (116 bytes)
//
// 2 xrefs:
// > AudioAssetsBrowser::musicActionFinished @ 0xa8f5c0
// > ??> @ 0xc7338
//
// 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; // x0
MusicDownloadManager *v3; // x0
MusicDownloadManager *v4; // x0
if ( MusicDownloadManager::sharedState()->m_sfxObjects )
{
if ( !*((_QWORD *)MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_data - 3) )
{
v2 = MusicDownloadManager::sharedState();
MusicDownloadManager::getCustomContentURL(v2);
}
AudioAssetsBrowser::setupList(a1);
}
else if ( *((_QWORD *)MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_data - 3) )
{
v3 = MusicDownloadManager::sharedState();
MusicDownloadManager::downloadSFXLibrary(v3);
}
else
{
v4 = MusicDownloadManager::sharedState();
MusicDownloadManager::getCustomContentURL(v4);
}
}