//
// MusicDownloadManager::pathForSFX from 0x571ad4 to 0x571b4e (122 bytes)
//
// 20 xrefs:
// > GameManager::playSFXTrigger @ 0x417a5c
// > MusicDownloadManager::onDownloadSFXCompleted @ 0x571bc2
// > MusicDownloadManager::deleteSFX @ 0x571c54
// > MusicDownloadManager::isSFXDownloaded @ 0x57243a
// > GJBaseGameLayer::processSFXObjects @ 0x5a6004
// > RewardUnlockLayer::playRewardEffect @ 0x6189ce
// > CustomSFXWidget::onPlayback @ 0x6a64e0
// > CustomSFXWidget::deleteSFX @ 0x6a6c6a
// > SetupSFXPopup::onClose @ 0x6afd92
// > SetupSFXPopup::createSFXWidget @ 0x6b15ea
// > SecretLayer5::animateHead @ 0x6e33fa
// > SecretLayer5::showFailAnimation @ 0x6e378a
// > SecretLayer5::showFailAnimation @ 0x6e37b8
// > SecretLayer5::showSuccessAnimation @ 0x6e3d06
// > SecretLayer5::showSuccessAnimation @ 0x6e3d40
// > SecretLayer5::showSuccessAnimation @ 0x6e3dec
// > SecretLayer5::showSuccessAnimation @ 0x6e3e32
// > SecretLayer5::playWinSFX @ 0x6e4056
// > SecretLayer5::onSubmit @ 0x6e5998
// > EditorSFXManager::downloadAllMissing @ 0x77da04
//
// 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:38 +0000
//
MusicDownloadManager *__fastcall MusicDownloadManager::pathForSFX(
MusicDownloadManager *this,
MusicDownloadManager *a2,
unsigned int a3)
{
char *v5; // r1
size_t v6; // r2
unsigned __int8 v8; // [sp+0h] [bp-14h] BYREF
char v9; // [sp+1h] [bp-13h] BYREF
size_t v10; // [sp+4h] [bp-10h]
char *v11; // [sp+8h] [bp-Ch]
MusicDownloadManager::pathForSFXFolder(this, a2, a3);
std::string::append(this, (char *)&a1i2r3e45s789g[8]);
GameToolbox::intToString((GameToolbox *)&v8, a3);
if ( (v8 & 1) != 0 )
{
v5 = v11;
v6 = v10;
}
else
{
v6 = (int)v8 >> 1;
v5 = &v9;
}
std::string::append(this, v5, v6);
std::string::~string((int)&v8);
std::string::append(this, ".ogg");
return this;
}