//
// MusicDownloadManager::pathForSFX from 0x96b578 to 0x96b674 (252 bytes)
//
// 21 xrefs:
// > GameManager::playSFXTrigger @ 0x71f794
// > MusicDownloadManager::onDownloadSFXCompleted @ 0x96b738
// > MusicDownloadManager::deleteSFX @ 0x96b7fc
// > MusicDownloadManager::isSFXDownloaded @ 0x96cb8c
// > GJBaseGameLayer::processSFXObjects @ 0x9c4380
// > RewardUnlockLayer::playRewardEffect @ 0xa88c08
// > CustomSFXWidget::onPlayback @ 0xb5e288
// > CustomSFXWidget::deleteSFX @ 0xb5edb0
// > SetupSFXPopup::onClose @ 0xb6c9a8
// > SetupSFXPopup::createSFXWidget @ 0xb6d7ec
// > SecretLayer5::playWinSFX @ 0xbc3034
// > SecretLayer5::animateHead @ 0xbc30f4
// > SecretLayer5::showFailAnimation @ 0xbc3b88
// > SecretLayer5::showFailAnimation @ 0xbc3bc0
// > SecretLayer5::showSuccessAnimation @ 0xbc433c
// > SecretLayer5::showSuccessAnimation @ 0xbc4374
// > SecretLayer5::showSuccessAnimation @ 0xbc43c0
// > SecretLayer5::showSuccessAnimation @ 0xbc4404
// > SecretLayer5::onSubmit @ 0xbc7b0c
// > EditorSFXManager::downloadAllMissing @ 0xcc0744
// > ??> @ 0x9d618
//
// 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 12:57:38 +0000
//
__int64 *__usercall MusicDownloadManager::pathForSFX@(
__int64 *__return_ptr a1@,
MusicDownloadManager *this@,
unsigned int a3@)
{
char *v5; // x1
size_t v6; // x2
unsigned __int64 v8[2]; // [xsp+30h] [xbp+30h] BYREF
void *v9; // [xsp+40h] [xbp+40h]
MusicDownloadManager::pathForSFXFolder(this, a3, (__int64)a1);
std::string::append((__int64)a1, "s", 1u);
GameToolbox::intToString(v8, (GameToolbox *)a3);
if ( (v8[0] & 1) != 0 )
{
v5 = (char *)v9;
v6 = v8[1];
}
else
{
v6 = LOBYTE(v8[0]) >> 1;
v5 = (char *)v8 + 1;
}
std::string::append((__int64)a1, v5, v6);
if ( (v8[0] & 1) != 0 )
operator delete(v9);
std::string::append((__int64)a1, ".ogg", 4u);
return a1;
}