//
// MusicDownloadManager::customSFXPathDisplay from 0x56f140 to 0x56f222 (226 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::resolveSFXPlacement @ 0x56f2dc
// > MusicDownloadManager::getCustomSFXLocationText @ 0x56f54c
//
// 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:36 +0000
//
_DWORD *__fastcall MusicDownloadManager::customSFXPathDisplay(_DWORD *a1, unsigned __int8 *a2)
{
int v3; // r5
int v4; // r3
int v5; // r8
int v6; // r3
int v7; // r3
char *v8; // r1
size_t v9; // r2
int v11; // [sp+0h] [bp-2Ch] BYREF
int v12; // [sp+4h] [bp-28h]
int v13; // [sp+8h] [bp-24h]
int v14[3]; // [sp+Ch] [bp-20h] BYREF
_DWORD v15[3]; // [sp+18h] [bp-14h] BYREF
v3 = 0;
v11 = 0;
v12 = 0;
v13 = 0;
sub_56DAB4(a2, "/", &v11);
v4 = v12 - v11;
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
v5 = -1431655765 * (v4 >> 2);
while ( v3 != v5 )
{
v6 = *(unsigned __int8 *)a1;
if ( (v6 & 1) != 0 )
v7 = a1[1];
else
v7 = v6 >> 1;
if ( v7 )
std::string::append(a1, " / ");
std::string::basic_string(v14, v11 + 12 * v3);
LevelTools::base64DecodeString(v15, v14);
if ( (v15[0] & 1) != 0 )
{
v8 = (char *)v15[2];
v9 = v15[1];
}
else
{
v9 = (int)LOBYTE(v15[0]) >> 1;
v8 = (char *)v15 + 1;
}
std::string::append(a1, v8, v9);
++v3;
std::string::~string((int)v15);
std::string::~string((int)v14);
}
std::__vector_base::~__vector_base((int)&v11);
return a1;
}