//
// MusicDownloadManager::pathForSFX from 0x14033f800 to 0x14033f8b3 (179 bytes)
//
// 19 xrefs:
// > CustomSFXWidget::onPlayback @ 0x1400c1cbf
// > CustomSFXWidget::FLAlert_Clicked @ 0x1400c27ee
// > CustomSFXWidget::FLAlert_Clicked @ 0x1400c284e
// > GameManager::playSFXTrigger @ 0x14017bd37
// > GJBaseGameLayer::processSFXObjects @ 0x140241af2
// > MusicDownloadManager::isSFXDownloaded @ 0x14033f5d4
// > MusicDownloadManager::onDownloadSFXCompleted @ 0x14034252a
// > RewardUnlockLayer::playRewardEffect @ 0x1403cef82
// > SecretLayer5::animateHead @ 0x1403f5412
// > SecretLayer5::showFailAnimation @ 0x1403f5ab2
// > SecretLayer5::showFailAnimation @ 0x1403f5b2f
// > SecretLayer5::showSuccessAnimation @ 0x1403f6336
// > SecretLayer5::showSuccessAnimation @ 0x1403f63b1
// > SecretLayer5::showSuccessAnimation @ 0x1403f644a
// > SecretLayer5::showSuccessAnimation @ 0x1403f64d7
// > SecretLayer5::playWinSFX @ 0x1403f6793
// > SecretLayer5::onSubmit @ 0x1403f6da7
// > SetupSFXPopup::createSFXWidget @ 0x140448a33
// > ??> @ 0x1406d5708
//
// 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
//
// Hidden C++ exception states: #wind=2
_QWORD *__fastcall MusicDownloadManager::pathForSFX(__int64 a1, _QWORD *a2, unsigned int a3)
{
void **v5; // rax
void *v6; // rdx
_QWORD v8[4]; // [rsp+30h] [rbp-38h] BYREF
MusicDownloadManager::pathForSFXFolder(a1, a2, a3);
sub_140041270(a2, "s", 1u);
v5 = (void **)GameToolbox::intToString(v8, a3);
v6 = v5;
if ( (unsigned __int64)v5[3] > 0xF )
v6 = *v5;
sub_140041270(a2, v6, (size_t)v5[2]);
sub_14003A830((__int64)v8);
sub_140041270(a2, ".ogg", 4u);
return a2;
}