//
// SFXBrowser::trySetupSFXBrowser from 0x10043f9a0 to 0x10043fa01 (97 bytes)
//
// 0 xrefs:
//
// 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 __fastcall SFXBrowser::trySetupSFXBrowser(SFXBrowser *a1)
{
MusicDownloadManager *v1; // rax
unsigned int sizex2; // ebx
std::size_t size; // rbx
MusicDownloadManager *v4; // rdi
if ( MusicDownloadManager::sharedState()->m_sfxObjects )
{
SFXBrowser::setupSFXBrowser(a1);
}
else
{
v1 = MusicDownloadManager::sharedState();
sizex2 = v1->m_customContentURL.m_data.m_short.sizex2;
if ( (sizex2 & 1) != 0 )
size = v1->m_customContentURL.m_data.m_long.size;
else
size = sizex2 >> 1;
v4 = MusicDownloadManager::sharedState();
if ( size )
MusicDownloadManager::downloadSFXLibrary(v4);
else
MusicDownloadManager::getCustomContentURL(v4);
}
}