//
// MusicBrowser::trySetupMusicBrowser from 0x1006e9170 to 0x1006e91d1 (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:35:48 +0000
//
void __fastcall MusicBrowser::trySetupMusicBrowser(__int64 a1)
{
__int64 v1; // rax
unsigned int v2; // ebx
__int64 v3; // rbx
__int64 v4; // rdi
if ( *(_QWORD *)(MusicDownloadManager::sharedState() + 440) )
{
MusicBrowser::setupMusicBrowser(a1);
}
else
{
v1 = MusicDownloadManager::sharedState();
v2 = *(unsigned __int8 *)(v1 + 368);
if ( (v2 & 1) != 0 )
v3 = *(_QWORD *)(v1 + 376);
else
v3 = v2 >> 1;
v4 = MusicDownloadManager::sharedState();
if ( v3 )
MusicDownloadManager::downloadMusicLibrary(v4);
else
MusicDownloadManager::getCustomContentURL(v4);
}
}