//
// MusicDownloadManager::isSongDownloaded from 0x45991c to 0x459996 (122 bytes)
//
// 9 xrefs:
// > GJSongBrowser::loadPage @ 0x3082d0
// > GameManager::getMenuMusicFile @ 0x320b10
// > GameManager::getPracticeMusicFile @ 0x320ba0
// > LevelInfoLayer::onPlay @ 0x3b22ea
// > CustomSongWidget::updateSongInfo @ 0x3de4f0
// > CustomSongWidget::updateWithMultiAssets @ 0x3e09c0
// > MusicDownloadManager::getDownloadedSongs @ 0x4599e2
// > MusicDownloadManager::clearUnusedSongs @ 0x459b80
// > AudioAssetsBrowser::onInfo @ 0x59b2cc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool MusicDownloadManager::isSongDownloaded(MusicDownloadManager *a1, int a2)
{
cocos2d::CCFileUtils *isResourceSong; // r7
bool (__fastcall *isPopupNotify)(cocos2d::CCFileUtils *__hidden); // r8
char *v7; // [sp+4h] [bp-10h] BYREF
_BYTE v8[4]; // [sp+8h] [bp-Ch] BYREF
isResourceSong = (cocos2d::CCFileUtils *)MusicDownloadManager::isResourceSong(a1, a2);
if ( !isResourceSong )
{
isResourceSong = cocos2d::CCFileUtils::sharedFileUtils();
isPopupNotify = isResourceSong->isPopupNotify;
MusicDownloadManager::pathForSong((MusicDownloadManager *)&v7, a1, a2);
sub_776584((int)v8, v7);
LOBYTE(isResourceSong) = ((int (__fastcall *)(cocos2d::CCFileUtils *, _BYTE *))isPopupNotify)(isResourceSong, v8);
sub_774008(v8);
sub_774008(&v7);
}
return (char)isResourceSong;
}