//
// MusicDownloadManager::isSongDownloaded from 0x5726b4 to 0x57274e (154 bytes)
//
// 8 xrefs:
// > GameManager::getMenuMusicFile @ 0x4158bc
// > GameManager::getPracticeMusicFile @ 0x415974
// > LevelInfoLayer::onPlay @ 0x49b5a8
// > CustomSongWidget::updateSongInfo @ 0x4e3846
// > CustomSongWidget::updateWithMultiAssets @ 0x4e5640
// > MusicDownloadManager::getDownloadedSongs @ 0x57279a
// > MusicDownloadManager::clearUnusedSongs @ 0x572958
// > AudioAssetsBrowser::onInfo @ 0x6e1d0e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:39 +0000
//
const char *__fastcall MusicDownloadManager::isSongDownloaded(
MusicDownloadManager *this,
unsigned int a2,
unsigned int a3)
{
const char *isResourceSong; // r7
int v6; // r8
int (__fastcall *v7)(int, int *); // r9
size_t v8; // r0
char v10; // [sp+4h] [bp-1Ch] BYREF
char v11; // [sp+5h] [bp-1Bh] BYREF
char *v12; // [sp+Ch] [bp-14h]
int v13[3]; // [sp+10h] [bp-10h] BYREF
isResourceSong = (const char *)MusicDownloadManager::isResourceSong(this, a2, a3);
if ( !isResourceSong )
{
v6 = cocos2d::CCFileUtils::sharedFileUtils(nullptr);
v7 = *(int (__fastcall **)(int, int *))(*(_DWORD *)v6 + 80);
MusicDownloadManager::pathForSong((MusicDownloadManager *)&v10, this, a2);
if ( (v10 & 1) == 0 )
isResourceSong = &v11;
v13[0] = 0;
if ( (v10 & 1) != 0 )
isResourceSong = v12;
v13[1] = 0;
v13[2] = 0;
v8 = strlen(isResourceSong);
std::string::__init(v13, isResourceSong, v8);
isResourceSong = (const char *)v7(v6, v13);
std::string::~string((int)v13);
std::string::~string((int)&v10);
}
return isResourceSong;
}