//
// MusicDownloadManager::getCustomSFXCount from 0x140485f30 to 0x140485fb8 (136 bytes)
//
// 5 xrefs:
// > SFXFolderPickerPopup::updateShareHint @ 0x1400c5e79
// > LevelEditorLayer::updateCustomSFXMappings @ 0x1403f3ecc
// > SFXBrowser::sfxFoldersPicked @ 0x14061d921
// > SFXBrowser::onExportFile @ 0x14061e00c
// > ??> @ 0x140928c04
//
// This function is hookable on this platform (idp: pc, 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 11:32:46 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall MusicDownloadManager::getCustomSFXCount(__int64 a1, __int64 a2)
{
_QWORD *v4; // rax
cocos2d::CCDictionary *v5; // rcx
unsigned int v6; // ebx
__int128 v8; // [rsp+20h] [rbp-18h] BYREF
v8 = 0;
v4 = operator new(0x20u);
*v4 = v4;
v4[1] = v4;
v4[2] = v4;
*((_WORD *)v4 + 12) = 257;
*(_QWORD *)&v8 = v4;
if ( sub_140485E10(a1, a2, (__int64 *)&v8) )
{
v5 = *(cocos2d::CCDictionary **)(a1 + 920);
if ( v5 )
v6 = cocos2d::CCDictionary::count(v5) - 1;
else
v6 = 0;
}
else
{
v6 = DWORD2(v8);
}
sub_1400BD560((void **)&v8, (__int64)&v8);
return v6;
}