//
// AudioAssetsBrowser::trySetupAudioBrowser from 0x10089a280 to 0x10089a317 (151 bytes)
//
// 2 xrefs:
// > AudioAssetsBrowser::musicActionFinished @ 0x10089a325
// > sub_10089A330 @ 0x10089a33c
//
// 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:37:08 +0000
//
void __fastcall AudioAssetsBrowser::trySetupAudioBrowser(__int64 a1)
{
__int64 v1; // r14
__int64 v2; // rax
unsigned int v3; // ecx
__int64 v4; // rbx
__int64 v5; // rdi
__int64 v6; // rax
__int64 v7; // rbx
v1 = *(_QWORD *)(MusicDownloadManager::sharedState() + 400);
v2 = MusicDownloadManager::sharedState();
v3 = *(unsigned __int8 *)(v2 + 368);
if ( v1 )
{
if ( (v3 & 1) != 0 )
{
if ( !*(_QWORD *)(v2 + 376) )
{
LABEL_9:
v6 = MusicDownloadManager::sharedState();
MusicDownloadManager::getCustomContentURL(v6);
}
}
else if ( !(v3 >> 1) )
{
goto LABEL_9;
}
AudioAssetsBrowser::setupList(a1);
return;
}
if ( (v3 & 1) != 0 )
{
v7 = *(_QWORD *)(v2 + 376);
v5 = MusicDownloadManager::sharedState();
if ( v7 )
goto LABEL_7;
}
else
{
v4 = (unsigned __int8)v3 >> 1;
v5 = MusicDownloadManager::sharedState();
if ( v4 )
{
LABEL_7:
MusicDownloadManager::downloadSFXLibrary(v5);
return;
}
}
MusicDownloadManager::getCustomContentURL(v5);
}