//
// MusicDownloadManager::getSFXFolderPathForID from 0x45b1c4 to 0x45b24e (138 bytes)
//
// 1 xrefs:
// > SFXBrowser::setupList @ 0x58337e
//
// 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
//
MusicDownloadManager *__fastcall MusicDownloadManager::getSFXFolderPathForID(
MusicDownloadManager *this,
MusicDownloadManager *a2,
int a3,
int a4)
{
SFXFolderObject *SFXFolderObjectForID; // r4
int v9; // r7
int v10; // r3
MusicDownloadManager *v12; // [sp+0h] [bp-Ch]
MusicDownloadManager *v13; // [sp+4h] [bp-8h]
int v14; // [sp+8h] [bp-4h]
v12 = this;
v13 = a2;
v14 = a3;
sub_776584((int)this, (char *)&unk_939830);
SFXFolderObjectForID = MusicDownloadManager::getSFXFolderObjectForID(a2, a3);
if ( a4 )
SFXFolderObjectForID = MusicDownloadManager::getSFXFolderObjectForID(a2, SFXFolderObjectForID->m_folderID);
v9 = 11;
while ( SFXFolderObjectForID )
{
if ( !--v9 )
break;
sub_775570((int)this, 0, " \\ ");
sub_775590(this, 0, &SFXFolderObjectForID->m_name, v10, v12, v13, v14);
SFXFolderObjectForID = MusicDownloadManager::getSFXFolderObjectForID(a2, SFXFolderObjectForID->m_folderID);
}
return this;
}