//
// GameManager::getPracticeMusicFile from 0x320b7c to 0x320c02 (134 bytes)
//
// 1 xrefs:
// > PlayLayer::togglePracticeMode @ 0x314360
//
// 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
//
GameManager *__fastcall GameManager::getPracticeMusicFile(GameManager *this, int a2)
{
MusicDownloadManager *v4; // r0
MusicDownloadManager *v5; // r0
char *v7; // [sp+8h] [bp-Ch] BYREF
if ( *(int *)(a2 + 824) > 0 )
{
v4 = MusicDownloadManager::sharedState();
if ( !MusicDownloadManager::isSongDownloaded(v4, *(_DWORD *)(a2 + 824)) )
*(_DWORD *)(a2 + 824) = 0;
}
if ( *(int *)(a2 + 824) <= 0 )
{
sub_776584((int)this, "StayInsideMe.mp3");
}
else
{
v5 = MusicDownloadManager::sharedState();
MusicDownloadManager::pathForSong((MusicDownloadManager *)&v7, (int)v5);
sub_776584((int)this, v7);
sub_774008(&v7);
}
return this;
}