//
// GameLevelManager::getFolderName from 0x10009a5a0 to 0x10009a624 (132 bytes)
//
// 3 xrefs:
// > SetFolderPopup::onSetFolderName @ 0x1002df1a8
// > SetFolderPopup::valueChanged @ 0x1002df340
// > LevelBrowserLayer::getSearchTitle @ 0x100418404
//
// 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
//
void __usercall GameLevelManager::getFolderName(__int64 a1@, int a2@, int a3@, _QWORD *a4@)
{
__int64 v5; // x8
__int64 v6; // x20
cocos2d::CCString *v7; // x0
char *CString; // x0
cocos2d::CCString *v9; // x0
char *v10; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v12; // [xsp+1Fh] [xbp-11h]
v5 = 432;
if ( a3 )
v5 = 440;
v6 = *(_QWORD *)(a1 + v5);
v7 = (cocos2d::CCString *)sub_100268F4C("%i", a2);
CString = (char *)cocos2d::CCString::getCString(v7);
sub_100009900(__p, CString);
v9 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(v6, __p);
v10 = (char *)cocos2d::CCString::getCString(v9);
sub_100009900(a4, v10);
if ( v12 < 0 )
operator delete(__p[0]);
}