//
// MusicBrowser::onUpdateLibrary from 0x1006e89c0 to 0x1006e8a2b (107 bytes)
//
// 1 xrefs:
// > MusicBrowser::init @ 0x1006e78cb
//
// 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::onUpdateLibrary(__int64 a1, __int64 a2)
{
__int64 v2; // rax
unsigned int v3; // ecx
__int64 v4; // rax
__int64 v5; // rax
*(_BYTE *)(a1 + 912) = a2 == 0;
v2 = MusicDownloadManager::sharedState();
v3 = *(unsigned __int8 *)(v2 + 368);
if ( (v3 & 1) != 0 )
{
if ( *(_QWORD *)(v2 + 376) )
goto LABEL_3;
}
else if ( v3 >> 1 )
{
LABEL_3:
*(_BYTE *)(a1 + 872) = 0;
v4 = MusicDownloadManager::sharedState();
MusicDownloadManager::tryUpdateMusicLibrary(v4);
return;
}
*(_BYTE *)(a1 + 872) = 1;
v5 = MusicDownloadManager::sharedState();
MusicDownloadManager::getCustomContentURL(v5);
}