//
// SFXBrowser::onImportSetup from 0x6c415c to 0x6c42e2 (390 bytes)
//
// 0 xrefs:
//
// 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:56:53 +0000
//
GameManager *__fastcall SFXBrowser::onImportSetup(SFXBrowser *this, cocos2d::CCObject *a2)
{
GameManager *result; // r0
int v4; // r0
FLAlertLayer *v5; // r9
int v6[3]; // [sp+1Ch] [bp-38h] BYREF
int v7[3]; // [sp+28h] [bp-2Ch] BYREF
int v8; // [sp+34h] [bp-20h] BYREF
int v9; // [sp+38h] [bp-1Ch]
int v10; // [sp+3Ch] [bp-18h]
int v11; // [sp+40h] [bp-14h] BYREF
int v12; // [sp+44h] [bp-10h]
int v13; // [sp+48h] [bp-Ch]
result = (GameManager *)GameManager::sharedState(this);
if ( *((_DWORD *)result + 102) )
{
result = (GameManager *)GameManager::sharedState(result);
if ( *(_DWORD *)(*((_DWORD *)result + 102) + 2084) )
{
*((_DWORD *)this + 178) = 0;
*((_BYTE *)this + 660) = 1;
v4 = GameManager::sharedState(result);
std::string::basic_string(v6, *(_DWORD *)(*(_DWORD *)(v4 + 408) + 1408) + 280);
memset(v7, 0, sizeof(v7));
std::string::__init(v7, "Folder Name", 0xBu);
v8 = 0;
v9 = 0;
v10 = 0;
std::string::__init(&v8, "Import SFX", 0xAu);
v11 = 0;
v12 = 0;
v13 = 0;
std::string::__init(&v11, "Import", 6u);
v5 = SetTextPopup::create((int)v6, (int)v7, COERCE_FLOAT(30), (int)&v8, (int)&v11, 0, 0.0, 1, 1, 0);
std::string::~string((int)&v11);
std::string::~string((int)&v8);
std::string::~string((int)v7);
std::string::~string((int)v6);
v11 = 0;
v12 = 0;
v13 = 0;
std::string::__init(&v11, "Custom folder name", 0x12u);
SetTextPopup::addInfoLabel((int)v5, (int)&v11);
std::string::~string((int)&v11);
v8 = 0;
v9 = 0;
v10 = 0;
std::string::__init(&v8, "Import SFX", 0xAu);
v11 = 0;
v12 = 0;
v13 = 0;
std::string::__init(
&v11,
"Copies this level's SFX folders and names into a new folder. Existing entries are skipped.",
0x5Au);
SetTextPopup::addInfoButton((int)v5, (int)&v8, (int)&v11);
std::string::~string((int)&v11);
std::string::~string((int)&v8);
*((_DWORD *)v5 + 142) = (char *)this + 532;
return (GameManager *)(*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)v5 + 656))(v5);
}
}
return result;
}