//
// sub_1001D6784 from 0x1001d6784 to 0x1001d67f4 (112 bytes)
//
// 18 xrefs:
// > sub_1001D67F4 @ 0x1001d6830
// > sub_1001D67F4 @ 0x1001d6848
// > sub_1001D67F4 @ 0x1001d68b0
// > MusicDownloadManager::createCustomSFXFolder @ 0x1001d697c
// > MusicDownloadManager::createCustomSFXPlacement @ 0x1001d6b90
// > sub_1001D8378 @ 0x1001d83bc
// > sub_1001D989C @ 0x1001d997c
// > sub_1001F32C8 @ 0x1001f3324
// > sub_1001F489C @ 0x1001f491c
// > sub_1001F489C @ 0x1001f4b84
// > sub_1001F489C @ 0x1001f4ca8
// > sub_1001F6604 @ 0x1001f66d4
// > SFXBrowser::sfxFolderPicked @ 0x1001f6ae8
// > SFXBrowser::sfxFolderPicked @ 0x1001f6c04
// > sub_1001F6DF0 @ 0x1001f6ed0
// > sub_100527F18 @ 0x100527fc4
// > sub_100527F18 @ 0x100527fd8
// > sub_100528E18 @ 0x100528e3c
//
// 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:25 +0000
//
__int64 __fastcall sub_1001D6784(__int64 a1, int a2)
{
__int64 result; // x0
__int64 v4; // x1
__int64 v5; // x0
result = 0;
if ( a2 >= 1 )
{
if ( *(_QWORD *)(a1 + 824) )
{
result = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 824), (unsigned int)a2);
if ( result )
{
if ( (*(_BYTE *)(result + 72) & 1) == 0 )
{
v4 = *(unsigned int *)(result + 60);
v5 = *(_QWORD *)(a1 + 824);
if ( (int)v4 < 1 || v5 == 0 )
return 0;
result = cocos2d::CCDictionary::objectForKey_1(v5, v4);
if ( !result || (*(_BYTE *)(result + 72) & 1) == 0 )
return 0;
}
}
}
}
return result;
}