//
// GJGameLevel::getAudioFileName from 0x1000cf1d4 to 0x1000cf258 (132 bytes)
//
// 10 xrefs:
// > sub_10002A588 @ 0x10002a614
// > LevelInfoLayer::playStep2 @ 0x10002ddc8
// > EditLevelLayer::onEdit @ 0x100110294
// > EditLevelLayer::playStep2 @ 0x100111f80
// > PlayLayer::setupHasCompleted @ 0x10013f7f0
// > PlayLayer::prepareMusic @ 0x100142090
// > SongSelectNode::getSongFileName @ 0x1001c6574
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x1002a38ac
// > EditorPauseLayer::playStep2 @ 0x100444a44
// > sub_1004863FC @ 0x100486420
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 10:58:53 +0000
//
void __usercall GJGameLevel::getAudioFileName(__int64 a1@, _QWORD *a2@)
{
__int64 v4; // x0
char *v5; // x1
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v7; // [xsp+1Fh] [xbp-11h]
if ( *(_DWORD *)(a1 + 608) )
{
v4 = MusicDownloadManager::sharedState(a1);
MusicDownloadManager::pathForSong(__p, v4, *(unsigned int *)(a1 + 608));
if ( v7 >= 0 )
v5 = (char *)__p;
else
v5 = (char *)__p[0];
sub_100009900(a2, v5);
if ( v7 < 0 )
operator delete(__p[0]);
}
else
{
sub_10023D17C(*(unsigned int *)(a1 + 604));
}
}