//
// SFXFolderPickerPopup::setTextPopupClosed from 0x7301b4 to 0x73024e (154 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'SFXFolderPickerPopup::setTextPopupClosed @ 0x730258
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:19 +0000
//
char *__fastcall SFXFolderPickerPopup::setTextPopupClosed(char *result, int a2, unsigned __int8 *a3)
{
int v4; // r5
char *v5; // r7
int v6; // r5
int v7; // r3
int v8; // r8
cocos2d::CCDictionary **v9; // r9
int v10; // r1
int v11; // r2
SFXInfoObject *CustomSFXFolder; // r4
int v13; // [sp+0h] [bp-14h] BYREF
int v14; // [sp+4h] [bp-10h]
int v15; // [sp+8h] [bp-Ch]
v4 = *a3;
v5 = result;
if ( (v4 & 1) != 0 )
v6 = *((_DWORD *)a3 + 1);
else
v6 = v4 >> 1;
if ( v6 )
{
v7 = *((_DWORD *)result + 138);
if ( v7 < 1 )
v7 = 1;
v8 = v7;
v13 = 0;
v14 = 0;
v15 = 0;
v9 = (cocos2d::CCDictionary **)MusicDownloadManager::sharedState((MusicDownloadManager *)result);
if ( (*a3 & 1) != 0 )
{
std::string::__init(&v13, *((const void **)a3 + 2), *((_DWORD *)a3 + 1));
}
else
{
v10 = *((_DWORD *)a3 + 1);
v11 = *((_DWORD *)a3 + 2);
v13 = *(_DWORD *)a3;
v14 = v10;
v15 = v11;
}
CustomSFXFolder = MusicDownloadManager::createCustomSFXFolder(v9, (unsigned __int8 *)&v13, v8, 0);
std::string::~string((int)&v13);
*((_DWORD *)v5 + 138) = *((_DWORD *)CustomSFXFolder + 18);
return SFXFolderPickerPopup::refreshList((SFXFolderPickerPopup *)v5);
}
return result;
}