//
// MusicDownloadManager::pathForSFX from 0x100156de4 to 0x100156e78 (148 bytes)
//
// 19 xrefs:
// > SecretLayer5::onSubmit @ 0x100074fb8
// > SecretLayer5::animateHead @ 0x100075948
// > SecretLayer5::showSuccessAnimation @ 0x10007611c
// > SecretLayer5::showSuccessAnimation @ 0x10007615c
// > SecretLayer5::showSuccessAnimation @ 0x1000761ac
// > SecretLayer5::showSuccessAnimation @ 0x1000761f4
// > SecretLayer5::showFailAnimation @ 0x100076670
// > SecretLayer5::showFailAnimation @ 0x1000766b0
// > SecretLayer5::playWinSFX @ 0x10007694c
// > MusicDownloadManager::isSFXDownloaded @ 0x100156d44
// > MusicDownloadManager::onDownloadSFXCompleted @ 0x100159bcc
// > MusicDownloadManager::deleteSFX @ 0x10015ae64
// > SetupSFXPopup::createSFXWidget @ 0x100180a44
// > SetupSFXPopup::onClose @ 0x100180c94
// > RewardUnlockLayer::playRewardEffect @ 0x1001c5e74
// > GJBaseGameLayer::processSFXObjects @ 0x1001e219c
// > CustomSFXWidget::onPlayback @ 0x1002f0b60
// > CustomSFXWidget::deleteSFX @ 0x1002f1380
// > GameManager::playSFXTrigger @ 0x1003124e8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
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");
}