//
// MusicDownloadManager::pathForSFX from 0x100650150 to 0x1006501cc (124 bytes)
//
// 20 xrefs:
// > GJBaseGameLayer::processSFXObjects @ 0x1000f9ef3
// > RewardUnlockLayer::playRewardEffect @ 0x100200750
// > GameManager::playSFXTrigger @ 0x1003608e6
// > SecretLayer5::onSubmit @ 0x10046feb0
// > SecretLayer5::animateHead @ 0x100470cba
// > SecretLayer5::showSuccessAnimation @ 0x10047160d
// > SecretLayer5::showSuccessAnimation @ 0x100471668
// > SecretLayer5::showSuccessAnimation @ 0x1004716e0
// > SecretLayer5::showSuccessAnimation @ 0x100471752
// > SecretLayer5::showFailAnimation @ 0x100471c71
// > SecretLayer5::showFailAnimation @ 0x100471cc0
// > SecretLayer5::playWinSFX @ 0x100471fe7
// > SetupSFXPopup::createSFXWidget @ 0x1004b3142
// > SetupSFXPopup::onClose @ 0x1004b3420
// > MusicDownloadManager::isSFXDownloaded @ 0x10064fef8
// > MusicDownloadManager::onDownloadSFXCompleted @ 0x10065ef88
// > MusicDownloadManager::deleteSFX @ 0x100660fd1
// > CustomSFXWidget::onPlayback @ 0x1006b6c3e
// > CustomSFXWidget::deleteSFX @ 0x1006b8160
// > sub_1008EE290 @ 0x1008ee2eb
//
// This function is hookable on this platform (idp: pc, 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 12:34:48 +0000
//
std::string *__fastcall MusicDownloadManager::pathForSFX(std::string *this, __int64 a2, int a3)
{
const std::string::value_type *v4; // rsi
std::string::size_type v5; // rdx
size_t v7[2]; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
MusicDownloadManager::pathForSFXFolder(this);
std::string::append(this, "s");
GameToolbox::intToString(v7, a3);
if ( (v7[0] & 1) != 0 )
{
v4 = (const std::string::value_type *)__p;
v5 = v7[1];
}
else
{
v5 = LOBYTE(v7[0]) >> 1;
v4 = (char *)v7 + 1;
}
std::string::append(this, v4, v5);
if ( (v7[0] & 1) != 0 )
operator delete(__p);
std::string::append(this, ".ogg");
return this;
}