//
// GameLevelManager::userNameForUserID from 0x3bf410 to 0x3bf490 (128 bytes)
//
// 5 xrefs:
// > CommentCell::loadFromComment @ 0x335d98
// > LevelBrowserLayer::getSearchTitle @ 0x3baec2
// > LevelBrowserLayer::getSearchTitle @ 0x3bafc4
// > GameLevelManager::tryGetUsername @ 0x3c159a
// > GJGameLevel::create @ 0x3c5d48
//
// 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
//
GameLevelManager *__fastcall GameLevelManager::userNameForUserID(GameLevelManager *this, int a2, const char *a3)
{
GameLevelManager *v3; // r6
char *v4; // r1
cocos2d::CCDictionary *v5; // r7
cocos2d::CCString *v6; // r0
char *CString; // r0
cocos2d::CCString *v8; // r7
std::string v10; // [sp+8h] [bp-Ch] BYREF
v3 = this;
if ( (int)a3 > 0 )
{
v5 = *(cocos2d::CCDictionary **)(a2 + 412);
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a3);
CString = (char *)cocos2d::CCString::getCString(v6);
sub_776584((int)&v10, CString);
v8 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v5, &v10);
sub_774008(&v10);
if ( v8 )
{
v4 = (char *)cocos2d::CCString::getCString(v8);
this = v3;
}
else
{
this = v3;
v4 = "-";
}
}
else
{
v4 = "-";
}
sub_776584((int)this, v4);
return v3;
}