//
// MusicDownloadManager::pathForSong from 0x5725d4 to 0x572650 (124 bytes)
//
// 17 xrefs:
// > FindBPMLayer::playMusic @ 0x3f7e0c
// > GameManager::getMenuMusicFile @ 0x4158d8
// > GameManager::getPracticeMusicFile @ 0x415990
// > CustomSongCell::onDelete @ 0x427148
// > GJGameLevel::getAudioFileName @ 0x4b02b8
// > CustomSongWidget::updatePlaybackBtn @ 0x4e29ea
// > CustomSongWidget::onPlayback @ 0x4e3012
// > CustomSongWidget::onPlayback @ 0x4e3096
// > CustomSongWidget::deleteSong @ 0x4e3ee6
// > MusicDownloadManager::deleteSong @ 0x572678
// > MusicDownloadManager::isSongDownloaded @ 0x5726e6
// > MusicDownloadManager::onDownloadSongCompleted @ 0x572878
// > SongSelectNode::getSongFileName @ 0x57de30
// > GJBaseGameLayer::activateSongTrigger @ 0x5a2d6c
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x5b2e52
// > SetupSongTriggerPopup::updateSongTimeSlider @ 0x6584f6
// > SetupSongTriggerPopup::onPlayback @ 0x658668
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:39 +0000
//
MusicDownloadManager *__fastcall MusicDownloadManager::pathForSong(
MusicDownloadManager *this,
MusicDownloadManager *a2,
int a3)
{
char *v5; // r1
size_t v6; // r2
char *v7; // r1
unsigned __int8 v9; // [sp+0h] [bp-14h] BYREF
char v10; // [sp+1h] [bp-13h] BYREF
size_t v11; // [sp+4h] [bp-10h]
char *v12; // [sp+8h] [bp-Ch]
MusicDownloadManager::pathForSongFolder(this, a2, a3);
GameToolbox::intToString((GameToolbox *)&v9, a3);
if ( (v9 & 1) != 0 )
{
v5 = v12;
v6 = v11;
}
else
{
v6 = (int)v9 >> 1;
v5 = &v10;
}
std::string::append(this, v5, v6);
std::string::~string((int)&v9);
if ( a3 <= 10000000 )
v7 = ".mp3";
else
v7 = ".ogg";
std::string::append(this, v7);
return this;
}