//
// sub_100468FB8 from 0x100468fb8 to 0x100469018 (96 bytes)
//
// 3 xrefs:
// > sub_100469C10 @ 0x100469d68
// > MusicBrowser::musicActionFinished @ 0x10046a45c
// > sub_100467BDC @ 0x100468080
//
// This function is hookable on this platform (idp: arm, 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:05:33 +0000
//
void __fastcall sub_100468FB8(__int64 a1, __int64 a2)
{
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x0
*(_BYTE *)(a1 + 912) = a2 == 0;
v3 = MusicDownloadManager::sharedState();
if ( (*(char *)(v3 + 391) & 0x8000000000000000LL) != 0 )
{
if ( *(_QWORD *)(v3 + 376) )
goto LABEL_3;
}
else if ( *(_BYTE *)(v3 + 391) )
{
LABEL_3:
*(_BYTE *)(a1 + 872) = 0;
v4 = MusicDownloadManager::sharedState();
MusicDownloadManager::tryUpdateMusicLibrary(v4);
return;
}
*(_BYTE *)(a1 + 872) = 1;
v5 = MusicDownloadManager::sharedState();
MusicDownloadManager::getCustomContentURL(v5);
}