//
// GameLevelManager::getFolderName from 0x4ae684 to 0x4ae714 (144 bytes)
//
// 3 xrefs:
// > LevelBrowserLayer::getSearchTitle @ 0x4a5e6e
// > SetFolderPopup::valueChanged @ 0x5db2fc
// > SetFolderPopup::onSetFolderName @ 0x5debf4
//
// 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
//
GameLevelManager *__fastcall GameLevelManager::getFolderName(GameLevelManager *this, int a2, const char *a3, int a4)
{
int v5; // r8
cocos2d::CCString *v6; // r0
const char *CString; // r9
size_t v8; // r0
cocos2d::CCString *v9; // r0
const char *v10; // r0
const char *v11; // r8
size_t v12; // r0
int v14[3]; // [sp+0h] [bp-14h] BYREF
v5 = *(_DWORD *)(a2 + 584);
if ( !a4 )
v5 = *(_DWORD *)(a2 + 580);
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a3);
memset(v14, 0, sizeof(v14));
CString = (const char *)cocos2d::CCString::getCString(v6);
v8 = strlen(CString);
std::string::__init(v14, CString, v8);
v9 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v5, v14);
v10 = (const char *)cocos2d::CCString::getCString(v9);
*(_DWORD *)this = 0;
v11 = v10;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
v12 = strlen(v10);
std::string::__init((int *)this, v11, v12);
std::string::~string((int)v14);
return this;
}