//
// SFXFolderPickerPopup::setTextPopupClosed from 0xc3c524 to 0xc3c640 (284 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SFXFolderPickerPopup::setTextPopupClosed @ 0xc3c644
// > ??> @ 0xd3390
// > ??> @ 0x14e5e10
//
// This function is hookable on this platform (idp: arm, 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 13:04:54 +0000
//
__int64 __fastcall SFXFolderPickerPopup::setTextPopupClosed(unsigned int *a1, __int64 a2, char *a3)
{
__int64 v4; // x1
MusicDownloadManager *v6; // x0
int v7; // w21
cocos2d::CCDictionary **v8; // x23
char v9; // w0
__int64 v10; // x0
__int64 v11; // x1
cocos2d::CCObject *CustomSFXFolder; // x21
__int64 v14; // [xsp+50h] [xbp+50h] BYREF
__int64 v15; // [xsp+58h] [xbp+58h]
void *v16; // [xsp+60h] [xbp+60h]
v4 = (unsigned __int8)*a3 >> 1;
if ( (*a3 & 1) != 0 )
v4 = *((_QWORD *)a3 + 1);
if ( v4 )
{
v6 = (MusicDownloadManager *)a1[182];
if ( (int)v6 <= 0 )
v7 = 1;
else
v7 = (int)v6;
v8 = (cocos2d::CCDictionary **)MusicDownloadManager::sharedState(v6);
v14 = 0;
v15 = 0;
v9 = *a3;
v16 = nullptr;
if ( (v9 & 1) != 0 )
{
std::string::__init(&v14, *((void **)a3 + 2), *((_QWORD *)a3 + 1));
}
else
{
v10 = *(_QWORD *)a3;
v11 = *((_QWORD *)a3 + 1);
v16 = *((void **)a3 + 2);
v14 = v10;
v15 = v11;
}
CustomSFXFolder = MusicDownloadManager::createCustomSFXFolder(v8, (__int64)&v14, v7, 0);
if ( (v14 & 1) != 0 )
operator delete(v16);
a1[182] = *((_DWORD *)CustomSFXFolder + 19);
SFXFolderPickerPopup::refreshList((SFXFolderPickerPopup *)a1);
}
return _stack_chk_guard;
}