//
// GameLevelManager::setFolderName from 0x4ae71c to 0x4ae796 (122 bytes)
//
// 1 xrefs:
// > SetFolderPopup::setTextPopupClosed @ 0x5d87c6
//
// 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:50:01 +0000
//
int __fastcall GameLevelManager::setFolderName(int a1, const char *a2, int a3, int a4)
{
int v5; // r6
cocos2d::CCObject *v6; // r7
cocos2d::CCString *v7; // r0
const char *CString; // r8
size_t v9; // r0
int v11; // [sp+0h] [bp-10h] BYREF
const char *v12; // [sp+4h] [bp-Ch]
int v13; // [sp+8h] [bp-8h]
int v14; // [sp+Ch] [bp-4h]
v11 = a1;
v12 = a2;
v13 = a3;
v14 = a4;
v5 = *(_DWORD *)(a1 + 584);
if ( !a4 )
v5 = *(_DWORD *)(a1 + 580);
v6 = (cocos2d::CCObject *)cocos2d::CCString::create(a3);
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2);
v11 = 0;
v12 = nullptr;
v13 = 0;
CString = (const char *)cocos2d::CCString::getCString(v7);
v9 = strlen(CString);
std::string::__init(&v11, CString, v9);
cocos2d::CCDictionary::setObject(v5, v6);
return std::string::~string((int)&v11);
}