//
// AudioAssetsBrowser::musicActionFinished from 0x140083d20 to 0x140083d98 (120 bytes)
//
// 2 xrefs:
// > ??> @ 0x14053c6c8
// > ??> @ 0x1406c6af8
//
// 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::musicActionFinished(AudioAssetsBrowser *a1, GJMusicAction a2)
{
MusicDownloadManager *v3; // rax
MusicDownloadManager *v4; // rax
MusicDownloadManager *v5; // rax
if ( MusicDownloadManager::sharedState()->m_sfxObjects )
{
if ( !MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_size )
{
v3 = MusicDownloadManager::sharedState();
MusicDownloadManager::getCustomContentURL(v3);
}
AudioAssetsBrowser::setupList((AudioAssetsBrowser *)((char *)a1 - 640));
}
else if ( MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_size )
{
v5 = MusicDownloadManager::sharedState();
MusicDownloadManager::downloadSFXLibrary(v5);
}
else
{
v4 = MusicDownloadManager::sharedState();
MusicDownloadManager::getCustomContentURL(v4);
}
}