//
// MusicDownloadManager::tryLoadLibraries from 0x100660c80 to 0x100660cee (110 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::init @ 0x1000a9d9a
//
// 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:34:56 +0000
//
__int64 __fastcall MusicDownloadManager::tryLoadLibraries(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // rdi
__int64 result; // rax
if ( !*(_BYTE *)(a1 + 525) )
{
*(_BYTE *)(a1 + 525) = 1;
v2 = *(_QWORD *)(a1 + 400);
if ( v2 && (unsigned int)cocos2d::CCDictionary::count(v2) )
{
v3 = *(_QWORD *)(a1 + 440);
if ( !v3 )
return MusicDownloadManager::parseMusicLibrary(a1);
}
else
{
MusicDownloadManager::parseSFXLibrary(a1);
v3 = *(_QWORD *)(a1 + 440);
if ( !v3 )
return MusicDownloadManager::parseMusicLibrary(a1);
}
result = cocos2d::CCDictionary::count(v3);
if ( (_DWORD)result )
return result;
return MusicDownloadManager::parseMusicLibrary(a1);
}
return result;
}