//
// sub_1008F84B0 from 0x1008f84b0 to 0x1008f851c (108 bytes)
//
// 0 xrefs:
//
// 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:59 +0000
//
void __fastcall sub_1008F84B0(__int64 a1)
{
__int64 v1; // rax
unsigned int v2; // ecx
__int64 v3; // rax
__int64 v4; // rax
v1 = MusicDownloadManager::sharedState();
v2 = *(unsigned __int8 *)(v1 + 368);
if ( (v2 & 1) != 0 )
{
if ( *(_QWORD *)(v1 + 376) )
goto LABEL_3;
}
else if ( v2 >> 1 )
{
LABEL_3:
sub_1008F8520(a1);
return;
}
*(_BYTE *)(a1 + 1122) = 1;
v3 = MusicDownloadManager::sharedState();
MusicDownloadManager::addMusicDownloadDelegate(v3, a1 + 1080);
v4 = MusicDownloadManager::sharedState();
MusicDownloadManager::getCustomContentURL(v4);
}