//
// MusicDownloadManager::getCustomSFXFolderForID from 0x56bd44 to 0x56bd72 (46 bytes)
//
// 18 xrefs:
// > MusicDownloadManager::moveCustomSFXObject @ 0x56bdd8
// > MusicDownloadManager::createCustomSFXPlacement @ 0x56e334
// > MusicDownloadManager::createCustomSFXFolder @ 0x56e4a4
// > MusicDownloadManager::getCustomSFXFolderPath @ 0x56f368
// > MusicDownloadManager::getCustomSFXFolderPath @ 0x56f376
// > MusicDownloadManager::getCustomSFXFolderPath @ 0x56f3b2
// > MusicDownloadManager::deleteCustomSFXObject @ 0x572a6a
// > SFXBrowser::executeBatchDelete @ 0x6c4998
// > SFXBrowser::sfxFolderPicked @ 0x6c51a4
// > SFXBrowser::sfxFolderPicked @ 0x6c52a8
// > SFXBrowser::setupSFXBrowser @ 0x6c66ac
// > SFXBrowser::setupSFXBrowser @ 0x6c6874
// > SFXBrowser::setupSFXBrowser @ 0x6c690c
// > SFXBrowser::switchToView @ 0x6c8406
// > SFXBrowser::onExitFolder @ 0x6c889a
// > SFXFolderPickerPopup::onConfirm @ 0x72f304
// > SFXFolderPickerPopup::init @ 0x730378
// > SFXFolderPickerPopup::init @ 0x730cc8
//
// 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:33 +0000
//
int __fastcall MusicDownloadManager::getCustomSFXFolderForID(MusicDownloadManager *this, int a2)
{
int result; // r0
result = MusicDownloadManager::getCustomSFXObject(this, a2);
if ( !result )
return 0;
if ( !*(_BYTE *)(result + 68) )
{
result = MusicDownloadManager::getCustomSFXObject(this, *(_DWORD *)(result + 56));
if ( !result || !*(_BYTE *)(result + 68) )
return 0;
}
return result;
}