//
// sub_1001F34F8 from 0x1001f34f8 to 0x1001f3558 (96 bytes)
//
// 3 xrefs:
// > sub_1001F489C @ 0x1001f4ea8
// > SFXBrowser::musicActionFinished @ 0x1001f58a0
// > SFXBrowser::init @ 0x1001f1da0
//
// 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:00:39 +0000
//
void __fastcall sub_1001F34F8(__int64 a1, __int64 a2)
{
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x0
*(_BYTE *)(a1 + 1128) = 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 + 1108) = 0;
v4 = MusicDownloadManager::sharedState();
sub_1001DEAD8(v4);
return;
}
*(_BYTE *)(a1 + 1108) = 1;
v5 = MusicDownloadManager::sharedState();
MusicDownloadManager::getCustomContentURL(v5);
}