//
// SetFolderPopup::create from 0x4b0404 to 0x4b04dc (216 bytes)
//
// 3 xrefs:
// > LevelInfoLayer::onSetFolder @ 0x3b0936
// > EditLevelLayer::onSetFolder @ 0x3b604c
// > LevelBrowserLayer::onGoToFolder @ 0x3ba57c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
unsigned int __fastcall SetFolderPopup::create(int a1, int a2, int a3)
{
char v4; // r7
unsigned int v5; // r4
int v6; // r7
int v7; // r3
unsigned int v8; // r0
_DWORD v10[3]; // [sp+0h] [bp-Ch] BYREF
v10[0] = a1;
v10[1] = a2;
v10[2] = a3;
v4 = a2;
v5 = operator new(0x21Cu);
SetIDPopup::SetIDPopup((SetIDPopup *)v5);
*(_DWORD *)v5 = &off_A6F330;
*(_DWORD *)(v5 + 264) = &off_A6F5D0;
*(_DWORD *)(v5 + 268) = &off_A6F608;
*(_DWORD *)(v5 + 272) = &off_A6F614;
*(_DWORD *)(v5 + 276) = &off_A6F624;
*(_DWORD *)(v5 + 280) = &off_A6F634;
*(_DWORD *)(v5 + 316) = &off_A6F648;
*(_DWORD *)(v5 + 332) = &off_A6F688;
*(_DWORD *)(v5 + 496) = &off_A6F698;
*(_DWORD *)(v5 + 528) = &off_A6F6BC;
*(_BYTE *)(v5 + 532) = 0;
*(_DWORD *)(v5 + 536) = 0;
sub_775C20(v10);
v6 = SetFolderPopup::init(v5, a1, v4);
sub_774008(v10);
if ( v6 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
}
else
{
v7 = *(_DWORD *)v5;
v8 = v5;
v5 = 0;
(*(void (__fastcall **)(unsigned int))(v7 + 8))(v8);
}
return v5;
}