//
// MusicDownloadManager::tryLoadLibraries from 0x978d94 to 0x978df8 (100 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::init @ 0x7ae91c
// > ??> @ 0x6db88
//
// 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 12:57:45 +0000
//
__int64 __fastcall MusicDownloadManager::tryLoadLibraries(__int64 this)
{
cocos2d::CCArray **v1; // x19
if ( !*(_BYTE *)(this + 525) )
{
*(_BYTE *)(this + 525) = 1;
v1 = (cocos2d::CCArray **)this;
if ( !MusicDownloadManager::isSFXLibraryLoaded((MusicDownloadManager *)this) )
MusicDownloadManager::parseSFXLibrary(v1);
this = MusicDownloadManager::isMusicLibraryLoaded((MusicDownloadManager *)v1);
if ( !(_BYTE)this )
return MusicDownloadManager::parseMusicLibrary((MusicDownloadManager *)v1);
}
return this;
}