//
// MusicDownloadManager::getSFXFolderPathForID from 0x966d24 to 0x966e30 (268 bytes)
//
// 3 xrefs:
// > CustomSFXWidget::onShowInfo @ 0xb60918
// > SFXBrowser::setupList @ 0xb92408
// > ??> @ 0xb1eb0
//
// 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 12:57:36 +0000
//
__int64 *__usercall MusicDownloadManager::getSFXFolderPathForID@(
MusicDownloadManager *this@,
int a2@,
unsigned __int8 a3@,
__int64 *a4@)
{
int v6; // w20
MusicDownloadManager *SFXFolderObjectForID; // x0
MusicDownloadManager *v9; // x19
int v10; // w20
char *v11; // x2
size_t v12; // x3
v6 = a3;
*a4 = 0;
a4[1] = 0;
a4[2] = 0;
std::string::__init(a4, &byte_11B8890, 0);
SFXFolderObjectForID = MusicDownloadManager::getSFXFolderObjectForID(this, a2);
v9 = SFXFolderObjectForID;
if ( v6 )
v9 = MusicDownloadManager::getSFXFolderObjectForID(this, *((_DWORD *)SFXFolderObjectForID + 15));
v10 = 0;
while ( v10 <= 9 && v9 )
{
++v10;
std::string::insert(a4, 0, " \\ ", 3u);
if ( (*((_BYTE *)v9 + 80) & 1) != 0 )
{
v11 = *((char **)v9 + 12);
v12 = *((_QWORD *)v9 + 11);
}
else
{
v11 = (char *)v9 + 81;
v12 = *((_BYTE *)v9 + 80) >> 1;
}
std::string::insert(a4, 0, v11, v12);
v9 = MusicDownloadManager::getSFXFolderObjectForID(this, *((_DWORD *)v9 + 15));
}
return a4;
}