{"type": "func", "start": 4295571096, "end": 4295571276, "name": "GameLevelManager::userNameForUserID", "pseudocode": "// \n// GameLevelManager::userNameForUserID from 0x100093698 to 0x10009374c (180 bytes)\n// \n// 5 xrefs:\n// > GameLevelManager::tryGetUsername @ 0x1000937ac\n// > GJGameLevel::create @ 0x1000943d4\n// > CommentCell::loadFromComment @ 0x100105d74\n// > LevelBrowserLayer::getSearchTitle @ 0x100418740\n// > LevelBrowserLayer::getSearchTitle @ 0x1004187d4\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n_QWORD *__usercall GameLevelManager::userNameForUserID@<X0>(__int64 a1@<X0>, int a2@<W1>, _QWORD *a3@<X8>)\n{\n  __int64 v4; // x20\n  cocos2d::CCString *v5; // x0\n  char *CString; // x0\n  __int64 v7; // x0\n  cocos2d::CCString *v8; // x20\n  char *v9; // x1\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v12; // [xsp+1Fh] [xbp-11h]\n\n  if ( a2 <= 0 )\n    return sub_100009900(a3, \"-\");\n  v4 = *(_QWORD *)(a1 + 536);\n  v5 = (cocos2d::CCString *)sub_100268F4C(\"%i\", a2);\n  CString = (char *)cocos2d::CCString::getCString(v5);\n  sub_100009900(__p, CString);\n  v7 = cocos2d::CCDictionary::objectForKey_1(v4, __p);\n  v8 = (cocos2d::CCString *)v7;\n  if ( v12 < 0 )\n  {\n    operator delete(__p[0]);\n    if ( v8 )\n      goto LABEL_4;\nLABEL_7:\n    v9 = \"-\";\n    return sub_100009900(a3, v9);\n  }\n  if ( !v7 )\n    goto LABEL_7;\nLABEL_4:\n  v9 = (char *)cocos2d::CCString::getCString(v8);\n  return sub_100009900(a3, v9);\n}", "assembly": "; \n; GameLevelManager::userNameForUserID from 0x100093698 to 0x10009374c (180 bytes)\n; \n; 5 xrefs:\n; > GameLevelManager::tryGetUsername @ 0x1000937ac\n; > GJGameLevel::create @ 0x1000943d4\n; > CommentCell::loadFromComment @ 0x100105d74\n; > LevelBrowserLayer::getSearchTitle @ 0x100418740\n; > LevelBrowserLayer::getSearchTitle @ 0x1004187d4\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x40                                          ; +0x0, 0x100093698\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x10009369c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1000936a0\nADD             X29, SP, #0x30                                         ; +0xc, 0x1000936a4\nMOV             X19, X8                                                ; +0x10, 0x1000936a8\nCMP             W1, #0                                                 ; +0x14, 0x1000936ac\nB.LE            loc_100093704                                          ; +0x18, 0x1000936b0\nLDR             X20, [X0,#0x218]                                       ; +0x1c, 0x1000936b4\nSTR             X1, [SP,#0x30+var_30]                                  ; +0x20, 0x1000936b8\nADRL            X0, aI; \"%i\"                                           ; +0x24, 0x1000936bc\nBL              sub_100268F4C                                          ; +0x2c, 0x1000936c4\nBL              cocos2d__CCString__getCString                          ; +0x30, 0x1000936c8\nMOV             X1, X0; __s                                            ; +0x34, 0x1000936cc\nADD             X0, SP, #0x30+__p; int                                 ; +0x38, 0x1000936d0\nBL              sub_100009900                                          ; +0x3c, 0x1000936d4\nADD             X1, SP, #0x30+__p                                      ; +0x40, 0x1000936d8\nMOV             X0, X20                                                ; +0x44, 0x1000936dc\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x48, 0x1000936e0\nMOV             X20, X0                                                ; +0x4c, 0x1000936e4\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x50, 0x1000936e8\nTBNZ            W8, #0x1F, loc_100093720                               ; +0x54, 0x1000936ec\nCBZ             X20, loc_10009372C                                     ; +0x58, 0x1000936f0\nMOV             X0, X20                                                ; +0x5c, 0x1000936f4\nBL              cocos2d__CCString__getCString                          ; +0x60, 0x1000936f8\nMOV             X1, X0                                                 ; +0x64, 0x1000936fc\nB               loc_100093734                                          ; +0x68, 0x100093700\nADRL            X1, asc_1006B3A59; \"-\"                                 ; +0x6c, 0x100093704\nMOV             X0, X19; int                                           ; +0x74, 0x10009370c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x78, 0x100093710\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x7c, 0x100093714\nADD             SP, SP, #0x40 ; '@'                                    ; +0x80, 0x100093718\nB               sub_100009900                                          ; +0x84, 0x10009371c\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x88, 0x100093720\nBL              __ZdlPv; operator delete(void *)                       ; +0x8c, 0x100093724\nCBNZ            X20, loc_1000936F4                                     ; +0x90, 0x100093728\nADRL            X1, asc_1006B3A59; \"-\"                                 ; +0x94, 0x10009372c\nMOV             X0, X19; int                                           ; +0x9c, 0x100093734\nBL              sub_100009900                                          ; +0xa0, 0x100093738\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xa4, 0x10009373c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xa8, 0x100093740\nADD             SP, SP, #0x40 ; '@'                                    ; +0xac, 0x100093744\nRET                                                                    ; +0xb0, 0x100093748", "xrefs": ["GameLevelManager::tryGetUsername @ 0x1000937ac", "GJGameLevel::create @ 0x1000943d4", "CommentCell::loadFromComment @ 0x100105d74", "LevelBrowserLayer::getSearchTitle @ 0x100418740", "LevelBrowserLayer::getSearchTitle @ 0x1004187d4"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}