//
// sub_1001DFCD0 from 0x1001dfcd0 to 0x1001dfd3c (108 bytes)
//
// 10 xrefs:
// > sub_1001DFD3C @ 0x1001dfd6c
// > sub_1001DFD3C @ 0x1001dfd7c
// > sub_1001DFD3C @ 0x1001dfde0
// > sub_1001F32C8 @ 0x1001f334c
// > sub_1001F489C @ 0x1001f4974
// > sub_1001F489C @ 0x1001f4a30
// > sub_1001F489C @ 0x1001f4b34
// > sub_1001F489C @ 0x1001f4b44
// > sub_1001F489C @ 0x1001f4bd4
// > sub_1001F6604 @ 0x1001f6768
//
// 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:29 +0000
//
__int64 __fastcall sub_1001DFCD0(__int64 a1, int a2)
{
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x19
__int64 v6; // x0
__int64 v7; // x0
v3 = *(_QWORD *)(MusicDownloadManager::sharedState() + 400);
if ( !v3 )
return 0;
v4 = cocos2d::CCDictionary::objectForKey_1(v3, a2);
v5 = v4;
if ( v4 )
{
if ( (*(_BYTE *)(v4 + 72) & 1) == 0 )
{
v6 = *(_QWORD *)(MusicDownloadManager::sharedState() + 400);
if ( !v6 )
return 0;
v7 = cocos2d::CCDictionary::objectForKey_1(v6, *(int *)(v5 + 60));
if ( !v7 )
return 0;
v5 = v7;
if ( (*(_BYTE *)(v7 + 72) & 1) == 0 )
return 0;
}
}
return v5;
}