//
// SongSelectNode::getSongFileName from 0x1001c64f0 to 0x1001c6578 (136 bytes)
//
// 2 xrefs:
// > sub_1001C6594 @ 0x1001c6598
// > ??> @ 0x1008e99c8
//
// 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 11:00:17 +0000
//
void __usercall SongSelectNode::getSongFileName(__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 + 344) )
{
v4 = MusicDownloadManager::sharedState(a1);
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);
}
}