//
// MusicDownloadManager::getCustomSFXFolderPath from 0x966774 to 0x966884 (272 bytes)
//
// 2 xrefs:
// > SFXBrowser::setupList @ 0xb9290c
// > ??> @ 0x42418
//
// 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::getCustomSFXFolderPath@(
MusicDownloadManager *this@,
int a2@,
unsigned __int8 a3@,
__int64 *a4@)
{
int v6; // w20
__int64 CustomSFXFolderForID; // x0
__int64 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);
CustomSFXFolderForID = MusicDownloadManager::getCustomSFXFolderForID(this, a2);
v9 = CustomSFXFolderForID;
if ( CustomSFXFolderForID && v6 )
v9 = MusicDownloadManager::getCustomSFXFolderForID(this, *(_DWORD *)(CustomSFXFolderForID + 60));
v10 = 0;
while ( v10 <= 9 && v9 )
{
++v10;
std::string::insert(a4, 0, " \\ ", 3u);
if ( (*(_BYTE *)(v9 + 80) & 1) != 0 )
{
v11 = *(char **)(v9 + 96);
v12 = *(_QWORD *)(v9 + 88);
}
else
{
v11 = (char *)(v9 + 81);
v12 = *(_BYTE *)(v9 + 80) >> 1;
}
std::string::insert(a4, 0, v11, v12);
v9 = MusicDownloadManager::getCustomSFXFolderForID(this, *(_DWORD *)(v9 + 60));
}
return a4;
}