//
// MusicDownloadManager::getCustomSFXCount from 0x5757b8 to 0x575812 (90 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::updateCustomSFXMappings @ 0x46fe98
// > SFXBrowser::onExportFile @ 0x6c46cc
// > SFXBrowser::sfxFoldersPicked @ 0x6c8ca6
// > SFXFolderPickerPopup::updateShareHint @ 0x72f12c
//
// 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:41 +0000
//
int __fastcall MusicDownloadManager::getCustomSFXCount(MusicDownloadManager *a1, _DWORD *a2, int a3, int a4)
{
cocos2d::CCDictionary *v5; // r0
int v6; // r4
int *v8; // [sp+0h] [bp-10h] BYREF
int v9; // [sp+4h] [bp-Ch] BYREF
int v10; // [sp+8h] [bp-8h]
int v11; // [sp+Ch] [bp-4h]
v11 = a4;
v9 = 0;
v10 = 0;
v8 = &v9;
if ( sub_575664(a1, a2, (int)&v8) )
{
v5 = *((cocos2d::CCDictionary **)a1 + 133);
if ( v5 )
v6 = cocos2d::CCDictionary::count(v5) - 1;
else
v6 = 0;
}
else
{
v6 = v10;
}
std::__tree::~__tree((int)&v8);
return v6;
}