//
// SFXFolderPickerPopup::onConfirm from 0x1400c6330 to 0x1400c63f1 (193 bytes)
//
// 2 xrefs:
// > SFXFolderPickerPopup::init @ 0x1400c4cfa
// > ??> @ 0x140913d6c
//
// 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:21 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall SFXFolderPickerPopup::onConfirm(__int64 a1)
{
__int64 v2; // rdi
cocos2d::CCDictionary *v3; // rcx
struct cocos2d::CCObject *v4; // rax
__int64 v5; // rdx
cocos2d::CCDictionary *v6; // rcx
struct cocos2d::CCObject *v7; // rax
void *v8; // [rsp+30h] [rbp+8h]
if ( *(int *)(a1 + 712) > 0 )
{
v2 = qword_14090C070;
if ( !qword_14090C070 )
{
v8 = operator new(0x3D0u);
qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);
v2 = qword_14090C070;
}
v3 = *(cocos2d::CCDictionary **)(v2 + 920);
if ( v3 )
{
if ( *(int *)(a1 + 712) > 0 )
{
v4 = cocos2d::CCDictionary::objectForKey(v3, *(int *)(a1 + 712));
if ( v4 )
{
if ( *((_BYTE *)v4 + 72)
|| (v5 = *((int *)v4 + 15), (v6 = *(cocos2d::CCDictionary **)(v2 + 920)) != nullptr)
&& (int)v5 > 0
&& (v7 = cocos2d::CCDictionary::objectForKey(v6, v5)) != nullptr
&& *((_BYTE *)v7 + 72) )
{
SFXFolderPickerPopup::pickFolder((_QWORD *)a1, *(_DWORD *)(a1 + 712));
}
}
}
}
}
}