//
// GJGameLevel::getAudioFileName from 0x1000acc68 to 0x1000accec (132 bytes)
//
// 9 xrefs:
// > LevelInfoLayer::playStep2 @ 0x10002a614
// > EditLevelLayer::onEdit @ 0x1000ea2b0
// > EditLevelLayer::playStep2 @ 0x1000ebf68
// > PlayLayer::setupHasCompleted @ 0x100116b30
// > PlayLayer::prepareMusic @ 0x100119408
// > SongSelectNode::getSongFileName @ 0x100147c70
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x1002067cc
// > EditorPauseLayer::playStep2 @ 0x10039e6e8
// > LevelPage::playStep2 @ 0x1004059b8
//
// 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
//
void __usercall GJGameLevel::getAudioFileName(__int64 a1@, _QWORD *a2@)
{
MusicDownloadManager *v4; // x0
char *v5; // x1
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v7; // [xsp+1Fh] [xbp-11h]
if ( *(_DWORD *)(a1 + 600) )
{
v4 = MusicDownloadManager::sharedState();
MusicDownloadManager::pathForSong(__p, v4, *(unsigned int *)(a1 + 600));
if ( v7 >= 0 )
v5 = (char *)__p;
else
v5 = (char *)__p[0];
sub_100009900(a2, v5);
if ( v7 < 0 )
operator delete(__p[0]);
}
else
{
LevelTools::getAudioFileName(*(unsigned int *)(a1 + 596));
}
}