//
// MusicBrowser::trySetupMusicBrowser from 0x14047c300 to 0x14047c37c (124 bytes)
//
// 3 xrefs:
// > MusicBrowser::init @ 0x14047ba8a
// > MusicBrowser::musicActionFinished @ 0x14047c8f4
// > ??> @ 0x140928628
//
// 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 11:32:43 +0000
//
// Hidden C++ exception states: #wind=4
__int64 __fastcall MusicBrowser::trySetupMusicBrowser(__int64 a1)
{
__int64 v2; // rcx
void *v4; // [rsp+38h] [rbp+10h]
v2 = qword_14090C070;
if ( !qword_14090C070 )
{
v4 = operator new(0x3D0u);
qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);
v2 = qword_14090C070;
}
if ( *(_QWORD *)(v2 + 448) )
return MusicBrowser::setupMusicBrowser(a1);
if ( *(_QWORD *)(v2 + 384) )
return MusicDownloadManager::downloadMusicLibrary();
return MusicDownloadManager::getCustomContentURL();
}