//
// GameLevelManager::userNameForUserID from 0x1000a7664 to 0x1000a7718 (180 bytes)
//
// 5 xrefs:
// > sub_1000A7734 @ 0x1000a7778
// > GJGameLevel::create @ 0x1000a8410
// > CommentCell::loadFromComment @ 0x10012af94
// > LevelBrowserLayer::getSearchTitle @ 0x100499bac
// > LevelBrowserLayer::getSearchTitle @ 0x100499c40
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 10:58:34 +0000
//
_QWORD *__usercall GameLevelManager::userNameForUserID@(__int64 a1@, int a2@, _QWORD *a3@)
{
__int64 v4; // x20
__int64 v5; // x0
char *CString; // x0
__int64 v7; // x0
__int64 v8; // x20
char *v9; // x1
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v12; // [xsp+1Fh] [xbp-11h]
if ( a2 <= 0 )
return sub_100009900(a3, "-");
v4 = *(_QWORD *)(a1 + 976);
v5 = sub_1003065B0("%i", a2);
CString = (char *)cocos2d::CCString::getCString(v5);
sub_100009900(__p, CString);
v7 = cocos2d::CCDictionary::objectForKey(v4, __p);
v8 = v7;
if ( v12 < 0 )
{
operator delete(__p[0]);
if ( v8 )
goto LABEL_4;
LABEL_7:
v9 = "-";
return sub_100009900(a3, v9);
}
if ( !v7 )
goto LABEL_7;
LABEL_4:
v9 = (char *)cocos2d::CCString::getCString(v8);
return sub_100009900(a3, v9);
}