{"type": "func", "start": 4295543916, "end": 4295544280, "name": "GameLevelManager::onGetGJUserInfoCompleted", "pseudocode": "// \n// GameLevelManager::onGetGJUserInfoCompleted from 0x10008cc6c to 0x10008cdd8 (364 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::handleIt @ 0x100089758\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__int64 __fastcall GameLevelManager::onGetGJUserInfoCompleted(GameLevelManager *a1, __int64 a2, __int64 a3)\n{\n  const char *v3; // x20\n  GameLevelManager *v6; // x0\n  __int64 SplitIntFromKey; // x20\n  _BOOL4 v8; // w0\n  _BOOL4 v9; // w22\n  cocos2d::CCDictionary *v10; // x22\n  GJUserScore *v11; // x0\n  GJUserScore *v12; // x21\n  intptr_t m_accountID; // x2\n  GJFriendRequest *v14; // x0\n  __int64 result; // x0\n  void *v16[2]; // [xsp+0h] [xbp-50h] BYREF\n  __int64 v17; // [xsp+10h] [xbp-40h]\n  void *__p[2]; // [xsp+18h] [xbp-38h] BYREF\n  char v19; // [xsp+2Fh] [xbp-21h]\n\n  v3 = (const char *)a3;\n  if ( *(char *)(a3 + 23) < 0 )\n    v3 = *(const char **)a3;\n  GameLevelManager::removeDLFromActive(a1, v3);\n  SplitIntFromKey = GameLevelManager::getSplitIntFromKey(v6, v3, 1);\n  sub_100009900(__p, \"-1\");\n  v8 = sub_1000045BC((_QWORD *)a2, __p);\n  v9 = v8;\n  if ( v19 < 0 )\n  {\n    operator delete(__p[0]);\n    if ( v9 )\n      goto LABEL_20;\n  }\n  else if ( v8 )\n  {\nLABEL_20:\n    result = (__int64)a1->m_userInfoDelegate;\n    if ( result )\n      return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 8LL))(result, SplitIntFromKey);\n    return result;\n  }\n  if ( *(char *)(a2 + 23) < 0 )\n  {\n    sub_1000097D0(v16, *(void **)a2, *(_QWORD *)(a2 + 8));\n  }\n  else\n  {\n    *(_OWORD *)v16 = *(_OWORD *)a2;\n    v17 = *(_QWORD *)(a2 + 16);\n  }\n  v10 = (cocos2d::CCDictionary *)GameLevelManager::responseToDict(v16, 0);\n  if ( SHIBYTE(v17) < 0 )\n    operator delete(v16[0]);\n  v11 = GJUserScore::create(v10);\n  if ( !v11 )\n    goto LABEL_20;\n  v12 = v11;\n  m_accountID = (unsigned int)v11->m_accountID;\n  if ( (int)m_accountID >= 1 )\n    cocos2d::CCDictionary::setObject(a1->m_storedUserInfo, v11, m_accountID);\n  if ( v12->m_friendReqStatus == 3 )\n  {\n    v14 = GJFriendRequest::create(v10);\n    v14->m_accountID = SplitIntFromKey;\n    if ( (int)SplitIntFromKey >= 1 )\n      cocos2d::CCDictionary::setObject(a1->m_friendRequests, v14, (unsigned int)SplitIntFromKey);\n  }\n  result = (__int64)a1->m_userInfoDelegate;\n  if ( result )\n    return (**(__int64 (__fastcall ***)(__int64, GJUserScore *))result)(result, v12);\n  return result;\n}", "assembly": "; \n; GameLevelManager::onGetGJUserInfoCompleted from 0x10008cc6c to 0x10008cdd8 (364 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::handleIt @ 0x100089758\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, #0x60                                          ; +0x0, 0x10008cc6c\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x4, 0x10008cc70\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x8, 0x10008cc74\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0xc, 0x10008cc78\nADD             X29, SP, #0x50                                         ; +0x10, 0x10008cc7c\nMOV             X20, X2                                                ; +0x14, 0x10008cc80\nMOV             X21, X1                                                ; +0x18, 0x10008cc84\nMOV             X19, X0                                                ; +0x1c, 0x10008cc88\nLDRSB           W8, [X2,#0x17]                                         ; +0x20, 0x10008cc8c\nTBZ             W8, #0x1F, loc_10008CC98                               ; +0x24, 0x10008cc90\nLDR             X20, [X20]                                             ; +0x28, 0x10008cc94\nMOV             X0, X19                                                ; +0x2c, 0x10008cc98\nMOV             X1, X20                                                ; +0x30, 0x10008cc9c\nBL              GameLevelManager__removeDLFromActive                   ; +0x34, 0x10008cca0\nMOV             X1, X20                                                ; +0x38, 0x10008cca4\nMOV             W2, #1                                                 ; +0x3c, 0x10008cca8\nBL              GameLevelManager__getSplitIntFromKey                   ; +0x40, 0x10008ccac\nMOV             X20, X0                                                ; +0x44, 0x10008ccb0\nADRL            X1, a1_0; \"-1\"                                         ; +0x48, 0x10008ccb4\nADD             X0, SP, #0x50+__p; int                                 ; +0x50, 0x10008ccbc\nBL              sub_100009900                                          ; +0x54, 0x10008ccc0\nADD             X1, SP, #0x50+__p                                      ; +0x58, 0x10008ccc4\nMOV             X0, X21                                                ; +0x5c, 0x10008ccc8\nBL              sub_1000045BC                                          ; +0x60, 0x10008cccc\nMOV             X22, X0                                                ; +0x64, 0x10008ccd0\nLDRSB           W8, [SP,#0x50+var_21]                                  ; +0x68, 0x10008ccd4\nTBNZ            W8, #0x1F, loc_10008CCE4                               ; +0x6c, 0x10008ccd8\nCBZ             W22, loc_10008CCF0                                     ; +0x70, 0x10008ccdc\nB               loc_10008CDAC                                          ; +0x74, 0x10008cce0\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0x78, 0x10008cce4\nBL              __ZdlPv; operator delete(void *)                       ; +0x7c, 0x10008cce8\nCBNZ            W22, loc_10008CDAC                                     ; +0x80, 0x10008ccec\nLDRSB           W8, [X21,#0x17]                                        ; +0x84, 0x10008ccf0\nTBNZ            W8, #0x1F, loc_10008CD0C                               ; +0x88, 0x10008ccf4\nLDR             Q0, [X21]                                              ; +0x8c, 0x10008ccf8\nSTR             Q0, [SP,#0x50+var_50]                                  ; +0x90, 0x10008ccfc\nLDR             X8, [X21,#0x10]                                        ; +0x94, 0x10008cd00\nSTR             X8, [SP,#0x50+var_40]                                  ; +0x98, 0x10008cd04\nB               loc_10008CD18                                          ; +0x9c, 0x10008cd08\nLDP             X1, X2, [X21]; __src                                   ; +0xa0, 0x10008cd0c\nMOV             X0, SP; __dst                                          ; +0xa4, 0x10008cd10\nBL              sub_1000097D0                                          ; +0xa8, 0x10008cd14\nMOV             X0, SP                                                 ; +0xac, 0x10008cd18\nMOV             W1, #0                                                 ; +0xb0, 0x10008cd1c\nBL              GameLevelManager__responseToDict                       ; +0xb4, 0x10008cd20\nMOV             X22, X0                                                ; +0xb8, 0x10008cd24\nLDRSB           W8, [SP,#0x50+var_40+7]                                ; +0xbc, 0x10008cd28\nTBZ             W8, #0x1F, loc_10008CD38                               ; +0xc0, 0x10008cd2c\nLDR             X0, [SP,#0x50+var_50]; __p                             ; +0xc4, 0x10008cd30\nBL              __ZdlPv; operator delete(void *)                       ; +0xc8, 0x10008cd34\nMOV             X0, X22                                                ; +0xcc, 0x10008cd38\nBL              GJUserScore__create                                    ; +0xd0, 0x10008cd3c\nCBZ             X0, loc_10008CDAC                                      ; +0xd4, 0x10008cd40\nMOV             X21, X0                                                ; +0xd8, 0x10008cd44\nLDR             W2, [X0,#0x178]                                        ; +0xdc, 0x10008cd48\nCMP             W2, #1                                                 ; +0xe0, 0x10008cd4c\nB.LT            loc_10008CD60                                          ; +0xe4, 0x10008cd50\nLDR             X0, [X19,#0x268]                                       ; +0xe8, 0x10008cd54\nMOV             X1, X21                                                ; +0xec, 0x10008cd58\nBL              cocos2d__CCDictionary__setObject                       ; +0xf0, 0x10008cd5c\nLDR             W8, [X21,#0x2A0]                                       ; +0xf4, 0x10008cd60\nCMP             W8, #3                                                 ; +0xf8, 0x10008cd64\nB.NE            loc_10008CD90                                          ; +0xfc, 0x10008cd68\nMOV             X0, X22                                                ; +0x100, 0x10008cd6c\nBL              GJFriendRequest__create                                ; +0x104, 0x10008cd70\nSTR             W20, [X0,#0x140]                                       ; +0x108, 0x10008cd74\nCMP             W20, #1                                                ; +0x10c, 0x10008cd78\nB.LT            loc_10008CD90                                          ; +0x110, 0x10008cd7c\nMOV             X1, X0                                                 ; +0x114, 0x10008cd80\nLDR             X0, [X19,#0x270]                                       ; +0x118, 0x10008cd84\nMOV             W2, W20                                                ; +0x11c, 0x10008cd88\nBL              cocos2d__CCDictionary__setObject                       ; +0x120, 0x10008cd8c\nLDR             X0, [X19,#0x320]                                       ; +0x124, 0x10008cd90\nCBZ             X0, loc_10008CDC4                                      ; +0x128, 0x10008cd94\nLDR             X8, [X0]                                               ; +0x12c, 0x10008cd98\nLDR             X8, [X8]                                               ; +0x130, 0x10008cd9c\nMOV             X1, X21                                                ; +0x134, 0x10008cda0\nBLR             X8                                                     ; +0x138, 0x10008cda4\nB               loc_10008CDC4                                          ; +0x13c, 0x10008cda8\nLDR             X0, [X19,#0x320]                                       ; +0x140, 0x10008cdac\nCBZ             X0, loc_10008CDC4                                      ; +0x144, 0x10008cdb0\nLDR             X8, [X0]                                               ; +0x148, 0x10008cdb4\nLDR             X8, [X8,#8]                                            ; +0x14c, 0x10008cdb8\nMOV             X1, X20                                                ; +0x150, 0x10008cdbc\nBLR             X8                                                     ; +0x154, 0x10008cdc0\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x158, 0x10008cdc4\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x15c, 0x10008cdc8\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x160, 0x10008cdcc\nADD             SP, SP, #0x60 ; '`'                                    ; +0x164, 0x10008cdd0\nRET                                                                    ; +0x168, 0x10008cdd4", "xrefs": ["GameLevelManager::handleIt @ 0x100089758"], "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"}