//
// AudioAssetsBrowser::trySetupAudioBrowser from 0x6e1c04 to 0x6e1c64 (96 bytes)
//
// 1 xrefs:
// > AudioAssetsBrowser::musicActionFinished @ 0x6e1c64
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:57:21 +0000
//
void __fastcall AudioAssetsBrowser::trySetupAudioBrowser(AudioAssetsBrowser *this)
{
MusicDownloadManager *v2; // r0
int v3; // r0
int v4; // r3
int v5; // r3
MusicDownloadManager *v6; // r0
int v7; // r0
int v8; // r3
int v9; // r3
MusicDownloadManager *v10; // r0
int v11; // r0
v2 = (MusicDownloadManager *)MusicDownloadManager::sharedState(this);
if ( *((_DWORD *)v2 + 77) )
{
v3 = MusicDownloadManager::sharedState(v2);
v4 = *(unsigned __int8 *)(v3 + 288);
if ( (v4 & 1) != 0 )
v5 = *(_DWORD *)(v3 + 292);
else
v5 = v4 >> 1;
if ( !v5 )
{
v6 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)v3);
MusicDownloadManager::getCustomContentURL(v6);
}
AudioAssetsBrowser::setupList(this);
}
else
{
v7 = MusicDownloadManager::sharedState(v2);
v8 = *(unsigned __int8 *)(v7 + 288);
if ( (v8 & 1) != 0 )
v9 = *(_DWORD *)(v7 + 292);
else
v9 = v8 >> 1;
if ( v9 )
{
v11 = MusicDownloadManager::sharedState((MusicDownloadManager *)v7);
MusicDownloadManager::downloadSFXLibrary(v11);
}
else
{
v10 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)v7);
MusicDownloadManager::getCustomContentURL(v10);
}
}
}