//
// SFXBrowser::musicActionFinished from 0x14047f840 to 0x14047f8e0 (160 bytes)
//
// 2 xrefs:
// > ??> @ 0x140604c00
// > ??> @ 0x1406db99c
//
// 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::musicActionFinished(SFXBrowser *a1, GJMusicAction a2)
{
MusicDownloadManager *v3; // rax
MusicDownloadManager *v4; // rax
MusicDownloadManager *v5; // rax
if ( a2 == DownloadOrUpdate && LOBYTE(a1->m_sTransform.tx) )
{
LOBYTE(a1->m_sInverse.d) = 1;
if ( !MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_size )
{
LOBYTE(a1->m_sTransform.tx) = 1;
LABEL_5:
v3 = MusicDownloadManager::sharedState();
MusicDownloadManager::getCustomContentURL(v3);
return;
}
LOBYTE(a1->m_sTransform.tx) = 0;
v4 = MusicDownloadManager::sharedState();
MusicDownloadManager::tryUpdateSFXLibrary(v4);
}
else if ( MusicDownloadManager::sharedState()->m_sfxObjects )
{
SFXBrowser::setupSFXBrowser((SFXBrowser *)((char *)a1 - 632));
}
else
{
if ( !MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_size )
goto LABEL_5;
v5 = MusicDownloadManager::sharedState();
MusicDownloadManager::downloadSFXLibrary(v5);
}
}