//
// MusicDownloadManager::pathForSong from 0x140484830 to 0x1404848dd (173 bytes)
//
// 22 xrefs:
// > FindBPMLayer::playMusic @ 0x140135201
// > CustomSongCell::onDelete @ 0x140150658
// > CustomSongCell::onDelete @ 0x14015076f
// > SongSelectNode::getSongFileName @ 0x140168eb1
// > CustomSongWidget::deleteSong @ 0x14016b2f8
// > CustomSongWidget::deleteSong @ 0x14016b40f
// > CustomSongWidget::onPlayback @ 0x14016bd7b
// > CustomSongWidget::onPlayback @ 0x14016c04a
// > CustomSongWidget::updatePlaybackBtn @ 0x14016c1e9
// > GJGameLevel::getAudioFileName @ 0x140264807
// > GameManager::getMenuMusicFile @ 0x140276615
// > GJBaseGameLayer::activateSongTrigger @ 0x14034b931
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x14034dc4f
// > GJSongBrowser::FLAlert_Clicked @ 0x1403be18d
// > MusicDownloadManager::onDownloadSongCompleted @ 0x1404840c2
// > MusicDownloadManager::onDownloadSongCompleted @ 0x140484222
// > MusicDownloadManager::isSongDownloaded @ 0x1404845ea
// > PlayLayer::playPracticeMusic @ 0x14051a264
// > SetupSongTriggerPopup::updateSongTimeSlider @ 0x1405f3235
// > SetupSongTriggerPopup::onPlayback @ 0x1405f360e
// > ??> @ 0x140928acc
// > ??> @ 0x140928ad8
//
// This function is hookable on this platform (idp: pc, 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:32:46 +0000
//
// Hidden C++ exception states: #wind=2
_QWORD *__fastcall MusicDownloadManager::pathForSong(__int64 a1, _QWORD *a2, int a3)
{
void **v5; // rax
void *v6; // rdx
char *v7; // rdx
_QWORD v9[4]; // [rsp+30h] [rbp-38h] BYREF
MusicDownloadManager::pathForSongFolder(a1, a2, a3);
v5 = (void **)GameToolbox::intToString(v9, a3);
v6 = v5;
if ( (unsigned __int64)v5[3] > 0xF )
v6 = *v5;
sub_140044D80(a2, v6, (size_t)v5[2]);
sub_14003D310((__int64)v9);
v7 = ".ogg";
if ( a3 <= 10000000 )
v7 = ".mp3";
sub_140044D80(a2, v7, 4u);
return a2;
}