//
// SongSelectNode::getSongFileName from 0x57de08 to 0x57de90 (136 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'SongSelectNode::getSongFileName @ 0x57de98
//
// 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:50 +0000
//
SongSelectNode *__fastcall SongSelectNode::getSongFileName(SongSelectNode *this, int a2)
{
char *v3; // r7
MusicDownloadManager *v4; // r0
bool v5; // nf
size_t v6; // r0
char v8; // [sp+0h] [bp-14h] BYREF
char v9; // [sp+1h] [bp-13h] BYREF
char *v10; // [sp+8h] [bp-Ch]
v3 = (char *)a2;
if ( *(_DWORD *)(a2 + 276) )
{
v4 = (MusicDownloadManager *)MusicDownloadManager::sharedState(this);
MusicDownloadManager::pathForSong((MusicDownloadManager *)&v8, v4, *((_DWORD *)v3 + 69));
v5 = (v8 & 1) != 0;
if ( (v8 & 1) == 0 )
v3 = &v9;
*(_DWORD *)this = 0;
if ( v5 )
v3 = v10;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
v6 = strlen(v3);
std::string::__init((int *)this, v3, v6);
std::string::~string((int)&v8);
}
else
{
GJGameLevel::getAudioFileName(this, *(_DWORD *)(*(_DWORD *)(a2 + 320) + 320));
}
return this;
}