//
// sub_1006EA770 from 0x1006ea770 to 0x1006ea7bc (76 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b94810
//
// 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:49 +0000
//
__int64 __fastcall sub_1006EA770(__int64 a1, __int64 a2, int a3, int a4)
{
unsigned int v4; // ebx
int v5; // ecx
__int64 v6; // rax
v5 = a3 ^ 0xE | a4 ^ 1;
LOBYTE(v4) = v5 == 0;
if ( !v5 )
{
*(_DWORD *)(a1 + 192) = *(_DWORD *)(*(_QWORD *)(a2 + 560) + 316LL);
*(_BYTE *)(a1 + 201) = 1;
v6 = MusicDownloadManager::sharedState();
sub_100650F40(v6, *(_DWORD *)(a1 + 192));
}
return v4;
}