//
// SFXBrowser::onUpdateLibrary from 0xa5ce44 to 0xa5ce9c (88 bytes)
//
// 5 xrefs:
// > SFXBrowser::setupSFXBrowser @ 0xa5de24
// > SFXBrowser::musicActionFinished @ 0xa5eed8
// > ??> @ 0x5c478
// > sub_A5DEA4 @ 0xa5e6c0
// > ??> @ 0x122afb0
//
// 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::onUpdateLibrary(SFXBrowser *a1, cocos2d::CCObject *a2)
{
MusicDownloadManager *v3; // x0
MusicDownloadManager *v4; // x0
a1->m_autoUpdating = a2 == nullptr;
if ( *((_QWORD *)MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_data - 3) )
{
a1->m_gettingURL = 0;
v3 = MusicDownloadManager::sharedState();
MusicDownloadManager::tryUpdateSFXLibrary(v3);
}
else
{
a1->m_gettingURL = (unsigned __int8)&dword_0 + 1;
v4 = MusicDownloadManager::sharedState();
MusicDownloadManager::getCustomContentURL(v4);
}
}