//
// SetFolderPopup::create from 0x5db1e8 to 0x5db2c2 (218 bytes)
//
// 3 xrefs:
// > LevelInfoLayer::onSetFolder @ 0x49a57c
// > EditLevelLayer::onSetFolder @ 0x49fb88
// > LevelBrowserLayer::onGoToFolder @ 0x4a4e9c
//
// 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:54:12 +0000
//
int __fastcall SetFolderPopup::create(int a1, char a2, int a3)
{
int v6; // r4
int v7; // r7
int v8; // r3
int v9; // r0
int v11[3]; // [sp+0h] [bp-14h] BYREF
v6 = operator new(0x230u);
SetIDPopup::SetIDPopup((SetIDPopup *)v6);
*(_DWORD *)v6 = &off_CBAA78;
*(_DWORD *)(v6 + 264) = &off_CBAD30;
*(_DWORD *)(v6 + 268) = &off_CBAD68;
*(_DWORD *)(v6 + 272) = &off_CBAD74;
*(_DWORD *)(v6 + 276) = &off_CBAD84;
*(_DWORD *)(v6 + 280) = &off_CBAD98;
*(_DWORD *)(v6 + 316) = &off_CBADB0;
*(_DWORD *)(v6 + 332) = &off_CBADF0;
*(_DWORD *)(v6 + 440) = &off_CBAE00;
*(_DWORD *)(v6 + 548) = &off_CBAE24;
*(_BYTE *)(v6 + 552) = 0;
*(_DWORD *)(v6 + 556) = 0;
std::string::basic_string(v11, a3);
v7 = SetFolderPopup::init(v6, a1, a2, (int)v11);
std::string::~string((int)v11);
if ( v7 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
}
else
{
v8 = *(_DWORD *)v6;
v9 = v6;
v6 = 0;
(*(void (__fastcall **)(int))(v8 + 8))(v9);
}
return v6;
}