//
// SFXFolderPickerPopup::setTextPopupClosed from 0x1400c6780 to 0x1400c685c (220 bytes)
//
// 2 xrefs:
// > ??> @ 0x140724338
// > ??> @ 0x140913d9c
//
// 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=3
void __fastcall SFXFolderPickerPopup::setTextPopupClosed(__int64 a1, __int64 a2, __int64 a3)
{
unsigned int v5; // esi
__int64 v6; // rbp
__int64 v7; // rcx
__int64 v8; // rdx
void *v9; // [rsp+28h] [rbp-50h]
_BYTE v10[32]; // [rsp+30h] [rbp-48h] BYREF
__int64 v11; // [rsp+50h] [rbp-28h]
v11 = a3;
if ( *(_QWORD *)(a3 + 16) )
{
v5 = 1;
if ( *(int *)(a1 + 48) > 0 )
v5 = *(_DWORD *)(a1 + 48);
v6 = sub_14003F4F0((__int64)v10, a3);
v7 = qword_14090C070;
if ( !qword_14090C070 )
{
v9 = operator new(0x3D0u);
qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);
v7 = qword_14090C070;
}
*(_DWORD *)(a1 + 48) = *(_DWORD *)(MusicDownloadManager::createCustomSFXFolder(v7, v6, v5, 0, v10, v9) + 76);
SFXFolderPickerPopup::refreshList(a1 - 664, v8);
}
sub_14003D310(a3);
}