//
// SFXBrowser::trySetupSFXBrowser from 0x10042fc50 to 0x10042fcb1 (97 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:30:21 +0000
//
__int64 __fastcall SFXBrowser::trySetupSFXBrowser(__int64 a1)
{
__int64 v2; // rax
unsigned int v3; // ebx
__int64 v4; // rbx
__int64 v5; // rdi
if ( *(_QWORD *)(MusicDownloadManager::sharedState(a1) + 400) )
return SFXBrowser::setupSFXBrowser(a1);
v2 = MusicDownloadManager::sharedState(a1);
v3 = *(unsigned __int8 *)(v2 + 368);
if ( (v3 & 1) != 0 )
v4 = *(_QWORD *)(v2 + 376);
else
v4 = v3 >> 1;
v5 = MusicDownloadManager::sharedState(a1);
if ( v4 )
return MusicDownloadManager::downloadSFXLibrary(v5);
else
return MusicDownloadManager::getCustomContentURL(v5);
}