//
// GJGameLevel::getAudioFileName from 0x3c56a0 to 0x3c5704 (100 bytes)
//
// 10 xrefs:
// > PlayLayer::prepareMusic @ 0x3147ac
// > PlayLayer::setupHasCompleted @ 0x31bd2c
// > LevelInfoLayer::playStep2 @ 0x3b0fb0
// > EditLevelLayer::playStep2 @ 0x3b5f68
// > EditLevelLayer::onEdit @ 0x3b7eaa
// > EditorPauseLayer::playStep2 @ 0x3ff4cc
// > LevelPage::playStep2 @ 0x408f70
// > SongSelectNode::getSongFileName @ 0x45e40a
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x48b3b6
// > GJWorldNode::playStep2 @ 0x4fc870
//
// 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
//
GJGameLevel *__fastcall GJGameLevel::getAudioFileName(GJGameLevel *this, int a2)
{
MusicDownloadManager *v3; // r0
char *v5; // [sp+8h] [bp-Ch] BYREF
if ( *(_DWORD *)(a2 + 356) )
{
v3 = MusicDownloadManager::sharedState();
MusicDownloadManager::pathForSong((MusicDownloadManager *)&v5, (int)v3);
sub_776584((int)this, v5);
sub_774008(&v5);
}
else
{
LevelTools::getAudioFileName((LevelTools *)this, *(_DWORD *)(a2 + 352));
}
return this;
}