//
// sub_1006516B0 from 0x1006516b0 to 0x10065170c (92 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::updateCustomSFXMappings @ 0x1000bb90e
// > sub_10042F380 @ 0x10042f3ac
// > SFXBrowser::sfxFoldersPicked @ 0x100433505
// > SFXFolderPickerPopup::updateShareHint @ 0x100973846
//
// 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 12:34:49 +0000
//
__int64 __fastcall sub_1006516B0(__int64 a1, __int64 a2)
{
__int64 v2; // rdi
unsigned int v3; // ebx
__int128 *v5; // [rsp+0h] [rbp-20h] BYREF
__int128 v6; // [rsp+8h] [rbp-18h] BYREF
v6 = 0;
v5 = &v6;
if ( (unsigned __int8)sub_100651730(a1, a2, &v5) )
{
v2 = *(_QWORD *)(a1 + 824);
if ( v2 )
v3 = cocos2d::CCDictionary::count(v2) - 1;
else
v3 = 0;
}
else
{
v3 = DWORD2(v6);
}
sub_10001ADF0((__int64)&v5, (_QWORD *)v6);
return v3;
}