//
// SFXBrowser::trySetupSFXBrowser from 0x1406189a0 to 0x140618a1c (124 bytes)
//
// 3 xrefs:
// > SFXBrowser::init @ 0x1406188c0
// > SFXBrowser::musicActionFinished @ 0x1406197b4
// > ??> @ 0x140930188
//
// 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:35:19 +0000
//
void __fastcall SFXBrowser::trySetupSFXBrowser(__int64 a1)
{
cocos2d::CCObject *v2; // rcx
void *v3; // [rsp+38h] [rbp+10h]
v2 = (cocos2d::CCObject *)qword_14090C070;
if ( !qword_14090C070 )
{
v3 = operator new(0x3D0u);
qword_14090C070 = MusicDownloadManager::MusicDownloadManager((__int64)v3);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);
v2 = (cocos2d::CCObject *)qword_14090C070;
}
if ( *((_QWORD *)v2 + 51) )
{
SFXBrowser::setupSFXBrowser(a1);
}
else if ( *((_QWORD *)v2 + 48) )
{
MusicDownloadManager::downloadSFXLibrary((__int64)v2);
}
else
{
MusicDownloadManager::getCustomContentURL(v2);
}
}