//
// MusicDownloadManager::getCustomSFXCount from 0x96e3d0 to 0x96e4c0 (240 bytes)
//
// 5 xrefs:
// > LevelEditorLayer::updateCustomSFXMappings @ 0x7a37d0
// > SFXBrowser::onExportFile @ 0xb8f8fc
// > SFXBrowser::sfxFoldersPicked @ 0xb977b4
// > SFXFolderPickerPopup::updateShareHint @ 0xc3a8ec
// > ??> @ 0xc0fa0
//
// 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:39 +0000
//
__int64 __fastcall MusicDownloadManager::getCustomSFXCount(MusicDownloadManager *a1, _QWORD *a2)
{
cocos2d::CCDictionary *v3; // x0
unsigned int v4; // w22
void *v5; // x21
__int64 *v7; // [xsp+30h] [xbp+30h] BYREF
_QWORD **v8; // [xsp+38h] [xbp+38h] BYREF
__int64 v9; // [xsp+40h] [xbp+40h]
v8 = nullptr;
v9 = 0;
v7 = (__int64 *)&v8;
if ( (unsigned __int8)sub_96E158(a1, a2, &v7) )
{
v3 = *((cocos2d::CCDictionary **)a1 + 103);
if ( v3 )
v4 = cocos2d::CCDictionary::count(v3) - 1;
else
v4 = 0;
}
else
{
v4 = v9;
}
v5 = v8;
if ( v8 )
{
std::__tree::destroy((__int64)&v7, *v8);
std::__tree::destroy((__int64)&v7, *(_QWORD **)&byte_8[(_QWORD)v5]);
operator delete(v5);
}
return v4;
}