//
// SFXFolderPickerPopup::onPickFolder from 0x1400c6270 to 0x1400c6326 (182 bytes)
//
// 5 xrefs:
// > SFXFolderPickerPopup::rebuildList @ 0x1400c5aaa
// > ??> @ 0x1408907f0
// > ??> @ 0x140890804
// > ??> @ 0x140890814
// > ??> @ 0x140913d3c
//
// 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:26:20 +0000
//
void __fastcall SFXFolderPickerPopup::onPickFolder(__int64 a1, cocos2d::CCObject *a2)
{
int v4; // esi
__int64 v5; // rdx
_BYTE v6[24]; // [rsp+20h] [rbp-18h] BYREF
int v7; // [rsp+48h] [rbp+10h] BYREF
if ( a2 )
{
v7 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 56LL))(a2);
v4 = v7;
if ( v7 > 0 )
{
cocos2d::CCObject::retain(a2);
cocos2d::CCObject::autorelease(a2);
if ( *(_DWORD *)(a1 + 672) == 2 )
{
if ( v4 == 1 )
{
SFXFolderPickerPopup::onSelectAll(a1, 0);
return;
}
if ( !sub_1400BD2C0((_QWORD *)(a1 + 696), &v7) )
sub_1400BD060((__int64 *)(a1 + 696), (__int64)v6, &v7);
}
else
{
*(_DWORD *)(a1 + 712) = v4;
}
SFXFolderPickerPopup::refreshList(a1, v5);
}
}
}