//
// SongSelectNode::getSongFileName from 0x100147bec to 0x100147c74 (136 bytes)
//
// 2 xrefs:
// > sub_100147C90 @ 0x100147c94
// > ??> @ 0x100794880
//
// 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 SongSelectNode::getSongFileName(__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 + 344) )
{
v4 = MusicDownloadManager::sharedState();
MusicDownloadManager::pathForSong(__p, v4, *(unsigned int *)(a1 + 344));
if ( v7 >= 0 )
v5 = (char *)__p;
else
v5 = (char *)__p[0];
sub_100009900(a2, v5);
if ( v7 < 0 )
operator delete(__p[0]);
}
else
{
GJGameLevel::getAudioFileName(*(_QWORD *)(*(_QWORD *)(a1 + 424) + 384LL), a2);
}
}