//
// MusicDownloadManager::pathForSFX from 0x1001d586c to 0x1001d5900 (148 bytes)
//
// 20 xrefs:
// > SecretLayer5::onSubmit @ 0x10007d76c
// > SecretLayer5::animateHead @ 0x10007e0fc
// > SecretLayer5::showSuccessAnimation @ 0x10007e8d0
// > SecretLayer5::showSuccessAnimation @ 0x10007e910
// > SecretLayer5::showSuccessAnimation @ 0x10007e960
// > SecretLayer5::showSuccessAnimation @ 0x10007e9a8
// > SecretLayer5::showFailAnimation @ 0x10007ee24
// > SecretLayer5::showFailAnimation @ 0x10007ee64
// > sub_10007F0DC @ 0x10007f100
// > MusicDownloadManager::isSFXDownloaded @ 0x1001d57cc
// > MusicDownloadManager::onDownloadSFXCompleted @ 0x1001de924
// > sub_1001DFE8C @ 0x1001dfea4
// > sub_10021378C @ 0x100213958
// > SetupSFXPopup::onClose @ 0x100213bc4
// > RewardUnlockLayer::playRewardEffect @ 0x10025ba2c
// > GJBaseGameLayer::processSFXObjects @ 0x10027c850
// > CustomSFXWidget::onPlayback @ 0x10038c554
// > sub_10038D590 @ 0x10038d5bc
// > sub_1003AF1A8 @ 0x1003af1fc
// > sub_1004CBA00 @ 0x1004cba38
//
// 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 11:00:25 +0000
//
std::string *__usercall MusicDownloadManager::pathForSFX@(__int64 a1@, std::string *a2@)
{
void **v4; // x1
std::string::size_type v5; // x2
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
unsigned __int8 v8; // [xsp+1Fh] [xbp-21h]
MusicDownloadManager::pathForSFXFolder();
std::string::append(a2, "s");
GameToolbox::intToString(a1, __p);
if ( (v8 & 0x80u) == 0 )
v4 = __p;
else
v4 = (void **)__p[0];
if ( (v8 & 0x80u) == 0 )
v5 = v8;
else
v5 = (std::string::size_type)__p[1];
std::string::append(a2, (const std::string::value_type *)v4, v5);
if ( (char)v8 < 0 )
operator delete(__p[0]);
return std::string::append(a2, ".ogg");
}