//
// LevelInfoLayer::onSetFolder from 0x49a540 to 0x49a5b8 (120 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:49:44 +0000
//
int __fastcall LevelInfoLayer::onSetFolder(int this, cocos2d::CCObject *a2, cocos2d::CCObject *a3, int a4)
{
int v4; // r4
int v5; // r2
cocos2d::CCObject *v6; // r5
int v7; // r8
int *v8; // r5
int v9; // r3
int v10; // [sp+0h] [bp-10h] BYREF
cocos2d::CCObject *v11; // [sp+4h] [bp-Ch]
cocos2d::CCObject *v12; // [sp+8h] [bp-8h]
int v13; // [sp+Ch] [bp-4h]
v10 = this;
v11 = a2;
v12 = a3;
v13 = a4;
v4 = this;
v5 = *(_DWORD *)(this + 364);
if ( v5 )
{
v6 = (cocos2d::CCObject *)*(unsigned __int8 *)(this + 356);
if ( !*(_BYTE *)(this + 356) )
{
v7 = *(_DWORD *)(v5 + 740);
v10 = *(unsigned __int8 *)(this + 356);
v11 = v6;
v12 = v6;
std::string::__init(&v10, "Set Folder", 0xAu);
v8 = (int *)SetFolderPopup::create(v7, v6, &v10);
std::string::~string((int)&v10);
v9 = *v8;
v8[136] = v4 + 344;
return (*(int (__fastcall **)(int *))(v9 + 656))(v8);
}
}
return this;
}