//
// sub_100651CB0 from 0x100651cb0 to 0x100651d1b (107 bytes)
//
// 11 xrefs:
// > SFXBrowser::onExitFolder @ 0x10042dfad
// > SFXBrowser::setupSFXBrowser @ 0x10042fd6c
// > SFXBrowser::setupSFXBrowser @ 0x10043000d
// > SFXBrowser::setupSFXBrowser @ 0x1004301a7
// > sub_1004326B0 @ 0x1004327b6
// > SFXBrowser::sfxFolderPicked @ 0x100432e40
// > SFXBrowser::sfxFolderPicked @ 0x100433044
// > sub_100433280 @ 0x100433342
// > SFXFolderPickerPopup::init @ 0x100971822
// > SFXFolderPickerPopup::init @ 0x10097183a
// > SFXFolderPickerPopup::onConfirm @ 0x1009728a0
//
// 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_100651CB0(__int64 a1, unsigned int a2)
{
__int64 v3; // rdi
__int64 v4; // rbx
__int64 result; // rax
__int64 v6; // rsi
__int64 v7; // rdi
v3 = *(_QWORD *)(a1 + 824);
if ( v3 == 0 || (int)a2 <= 0 )
return 0;
v4 = a1;
result = cocos2d::CCDictionary::objectForKey_1(v3, a2);
if ( !result )
return 0;
if ( !*(_BYTE *)(result + 72) )
{
v6 = *(int *)(result + 60);
v7 = *(_QWORD *)(v4 + 824);
if ( v6 <= 0 || v7 == 0 )
return 0;
result = cocos2d::CCDictionary::objectForKey_1(v7, v6);
if ( !result || !*(_BYTE *)(result + 72) )
return 0;
}
return result;
}