//
// MusicDownloadManager::getCustomSFXLocationText from 0x56f4e8 to 0x56f5b2 (202 bytes)
//
// 2 xrefs:
// > CustomSFXWidget::onShowInfo @ 0x6a7fd4
// > SFXBrowser::cellPerformedAction @ 0x6c92fc
//
// 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
//
MusicDownloadManager *__fastcall MusicDownloadManager::getCustomSFXLocationText(
MusicDownloadManager *this,
SFXInfoObject *a2,
int a3)
{
size_t v5; // r8
int CustomSFXRoot; // r0
_DWORD *v7; // r9
char *v8; // r1
size_t v9; // r2
unsigned __int8 v11[12]; // [sp+8h] [bp-2Ch] BYREF
int v12[3]; // [sp+14h] [bp-20h] BYREF
_DWORD v13[3]; // [sp+20h] [bp-14h] BYREF
MusicDownloadManager::getCustomSFXRawPath((MusicDownloadManager *)v11, a2, a3);
v5 = std::string::rfind(v11, 47, 0xFFFFFFFF);
CustomSFXRoot = MusicDownloadManager::getCustomSFXRoot((cocos2d::CCDictionary **)a2);
std::string::basic_string((int *)this, CustomSFXRoot + 76);
if ( v5 != -1 )
{
v7 = std::string::append(this, " / ");
std::string::basic_string(v12, v11, 0, v5);
MusicDownloadManager::customSFXPathDisplay(v13, (unsigned __int8 *)v12);
if ( (v13[0] & 1) != 0 )
{
v8 = (char *)v13[2];
v9 = v13[1];
}
else
{
v9 = (int)LOBYTE(v13[0]) >> 1;
v8 = (char *)v13 + 1;
}
std::string::append(v7, v8, v9);
std::string::~string((int)v13);
std::string::~string((int)v12);
}
std::string::~string((int)v11);
return this;
}