//
// MusicDownloadManager::customSFXPathLeaf from 0x56d510 to 0x56d57a (106 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::resolveSFXPlacement @ 0x56f28a
//
// 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:34 +0000
//
_DWORD *__fastcall MusicDownloadManager::customSFXPathLeaf(_DWORD *a1, unsigned __int8 *a2)
{
int v4; // r2
int v6[3]; // [sp+8h] [bp-14h] BYREF
v4 = std::string::rfind(a2, 47, 0xFFFFFFFF);
if ( v4 == -1 )
std::string::basic_string(v6, (int)a2);
else
std::string::basic_string(v6, a2, v4 + 1, 0xFFFFFFFF);
LevelTools::base64DecodeString(a1, v6);
std::string::~string((int)v6);
return a1;
}