{"type": "func", "start": 4295545492, "end": 4295545892, "name": "GameLevelManager::onRemoveFriendCompleted", "pseudocode": "// \n// GameLevelManager::onRemoveFriendCompleted from 0x10008d294 to 0x10008d424 (400 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::handleIt @ 0x100089884\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\ncocos2d::CCArray *__fastcall GameLevelManager::onRemoveFriendCompleted(GameLevelManager *a1, _QWORD *a2, char *__s)\n{\n  char *v3; // x20\n  cocos2d::CCDictionary *m_friendReqAndUserBlocks; // x22\n  GameLevelManager *v7; // x0\n  __int64 SplitIntFromKey; // x20\n  _BOOL4 v9; // w21\n  cocos2d::CCArray *result; // x0\n  cocos2d::CCObject *v11; // x0\n  cocos2d::CCObject *v12; // x1\n  UserInfoDelegate *m_userInfoDelegate; // x0\n  cocos2d::CCArray *v14; // x21\n  __int64 v15; // x22\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v17; // [xsp+1Fh] [xbp-21h]\n\n  v3 = __s;\n  if ( __s[23] < 0 )\n    v3 = *(char **)__s;\n  m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks;\n  sub_100009900(__p, v3);\n  v7 = (GameLevelManager *)cocos2d::CCDictionary::removeObjectForKey_1((int)m_friendReqAndUserBlocks, (char *)__p);\n  if ( v17 < 0 )\n    operator delete(__p[0]);\n  SplitIntFromKey = GameLevelManager::getSplitIntFromKey(v7, v3, 1);\n  sub_100009900(__p, \"-1\");\n  v9 = sub_1000045BC(a2, __p);\n  if ( v17 < 0 )\n    operator delete(__p[0]);\n  result = (cocos2d::CCArray *)a1->m_uploadActionDelegate;\n  if ( v9 )\n  {\n    if ( result )\n      return (cocos2d::CCArray *)((__int64 (__fastcall *)(cocos2d::CCArray *, __int64, __int64))result->~CCArray)(\n                                   result,\n                                   SplitIntFromKey,\n                                   33);\n  }\n  else\n  {\n    if ( result )\n      ((void (__fastcall *)(cocos2d::CCArray *, __int64, __int64))result->copyWithZone)(result, SplitIntFromKey, 33);\n    v11 = cocos2d::CCDictionary::objectForKey(a1->m_storedUserInfo, (int)SplitIntFromKey);\n    if ( v11 )\n    {\n      v12 = v11;\n      LODWORD(v11[12].__vftable) = 0;\n      m_userInfoDelegate = a1->m_userInfoDelegate;\n      if ( m_userInfoDelegate )\n        ((void (__fastcall *)(UserInfoDelegate *, cocos2d::CCObject *))m_userInfoDelegate->userInfoChanged)(\n          m_userInfoDelegate,\n          v12);\n    }\n    result = GameLevelManager::getStoredUserList(a1, (UserListType)0);\n    if ( result )\n    {\n      v14 = result;\n      result = (cocos2d::CCArray *)sub_10024A36C(result);\n      if ( (_DWORD)result )\n      {\n        v15 = 0;\n        while ( *(_DWORD *)(sub_10024A388(v14, v15) + 376) != (_DWORD)SplitIntFromKey )\n        {\n          v15 = (unsigned int)(v15 + 1);\n          result = (cocos2d::CCArray *)sub_10024A36C(v14);\n          if ( (unsigned int)v15 >= (unsigned int)result )\n            return result;\n        }\n        sub_10024A44C(v14, v15, 1);\n        result = (cocos2d::CCArray *)a1->m_userListDelegate;\n        if ( result )\n          return (cocos2d::CCArray *)((__int64 (__fastcall *)(cocos2d::CCArray *, cocos2d::CCArray *, _QWORD))result->~CCArray_0)(\n                                       result,\n                                       v14,\n                                       0);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GameLevelManager::onRemoveFriendCompleted from 0x10008d294 to 0x10008d424 (400 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::handleIt @ 0x100089884\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, #0x50                                          ; +0x0, 0x10008d294\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x10008d298\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x10008d29c\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x10008d2a0\nADD             X29, SP, #0x40                                         ; +0x10, 0x10008d2a4\nMOV             X20, X2                                                ; +0x14, 0x10008d2a8\nMOV             X21, X1                                                ; +0x18, 0x10008d2ac\nMOV             X19, X0                                                ; +0x1c, 0x10008d2b0\nLDRSB           W8, [X2,#0x17]                                         ; +0x20, 0x10008d2b4\nTBZ             W8, #0x1F, loc_10008D2C0                               ; +0x24, 0x10008d2b8\nLDR             X20, [X20]                                             ; +0x28, 0x10008d2bc\nLDR             X22, [X19,#0x260]                                      ; +0x2c, 0x10008d2c0\nADD             X0, SP, #0x40+__p; int                                 ; +0x30, 0x10008d2c4\nMOV             X1, X20; __s                                           ; +0x34, 0x10008d2c8\nBL              sub_100009900                                          ; +0x38, 0x10008d2cc\nADD             X1, SP, #0x40+__p; __s                                 ; +0x3c, 0x10008d2d0\nMOV             X0, X22; int                                           ; +0x40, 0x10008d2d4\nBL              cocos2d__CCDictionary__removeObjectForKey_1            ; +0x44, 0x10008d2d8\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x48, 0x10008d2dc\nTBZ             W8, #0x1F, loc_10008D2EC                               ; +0x4c, 0x10008d2e0\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x50, 0x10008d2e4\nBL              __ZdlPv; operator delete(void *)                       ; +0x54, 0x10008d2e8\nMOV             X1, X20                                                ; +0x58, 0x10008d2ec\nMOV             W2, #1                                                 ; +0x5c, 0x10008d2f0\nBL              GameLevelManager__getSplitIntFromKey                   ; +0x60, 0x10008d2f4\nMOV             X20, X0                                                ; +0x64, 0x10008d2f8\nADRL            X1, a1_0; \"-1\"                                         ; +0x68, 0x10008d2fc\nADD             X0, SP, #0x40+__p; int                                 ; +0x70, 0x10008d304\nBL              sub_100009900                                          ; +0x74, 0x10008d308\nADD             X1, SP, #0x40+__p                                      ; +0x78, 0x10008d30c\nMOV             X0, X21                                                ; +0x7c, 0x10008d310\nBL              sub_1000045BC                                          ; +0x80, 0x10008d314\nMOV             X21, X0                                                ; +0x84, 0x10008d318\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x88, 0x10008d31c\nTBZ             W8, #0x1F, loc_10008D32C                               ; +0x8c, 0x10008d320\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x90, 0x10008d324\nBL              __ZdlPv; operator delete(void *)                       ; +0x94, 0x10008d328\nLDR             X0, [X19,#0x328]                                       ; +0x98, 0x10008d32c\nCBZ             W21, loc_10008D350                                     ; +0x9c, 0x10008d330\nCBZ             X0, loc_10008D410                                      ; +0xa0, 0x10008d334\nLDR             X8, [X0]                                               ; +0xa4, 0x10008d338\nLDR             X8, [X8,#8]                                            ; +0xa8, 0x10008d33c\nMOV             X1, X20                                                ; +0xac, 0x10008d340\nMOV             W2, #0x21 ; '!'                                        ; +0xb0, 0x10008d344\nBLR             X8                                                     ; +0xb4, 0x10008d348\nB               loc_10008D410                                          ; +0xb8, 0x10008d34c\nCBZ             X0, loc_10008D368                                      ; +0xbc, 0x10008d350\nLDR             X8, [X0]                                               ; +0xc0, 0x10008d354\nLDR             X8, [X8]                                               ; +0xc4, 0x10008d358\nMOV             X1, X20                                                ; +0xc8, 0x10008d35c\nMOV             W2, #0x21 ; '!'                                        ; +0xcc, 0x10008d360\nBLR             X8                                                     ; +0xd0, 0x10008d364\nLDR             X0, [X19,#0x268]                                       ; +0xd4, 0x10008d368\nSXTW            X1, W20                                                ; +0xd8, 0x10008d36c\nBL              cocos2d__CCDictionary__objectForKey                    ; +0xdc, 0x10008d370\nCBZ             X0, loc_10008D394                                      ; +0xe0, 0x10008d374\nMOV             X1, X0                                                 ; +0xe4, 0x10008d378\nSTR             WZR, [X0,#0x2A0]                                       ; +0xe8, 0x10008d37c\nLDR             X0, [X19,#0x320]                                       ; +0xec, 0x10008d380\nCBZ             X0, loc_10008D394                                      ; +0xf0, 0x10008d384\nLDR             X8, [X0]                                               ; +0xf4, 0x10008d388\nLDR             X8, [X8,#0x10]                                         ; +0xf8, 0x10008d38c\nBLR             X8                                                     ; +0xfc, 0x10008d390\nMOV             X0, X19                                                ; +0x100, 0x10008d394\nMOV             W1, #0                                                 ; +0x104, 0x10008d398\nBL              GameLevelManager__getStoredUserList                    ; +0x108, 0x10008d39c\nCBZ             X0, loc_10008D410                                      ; +0x10c, 0x10008d3a0\nMOV             X21, X0                                                ; +0x110, 0x10008d3a4\nBL              sub_10024A36C                                          ; +0x114, 0x10008d3a8\nCBZ             W0, loc_10008D410                                      ; +0x118, 0x10008d3ac\nMOV             W22, #0                                                ; +0x11c, 0x10008d3b0\nMOV             X0, X21                                                ; +0x120, 0x10008d3b4\nMOV             X1, X22                                                ; +0x124, 0x10008d3b8\nBL              sub_10024A388                                          ; +0x128, 0x10008d3bc\nLDR             W8, [X0,#0x178]                                        ; +0x12c, 0x10008d3c0\nCMP             W8, W20                                                ; +0x130, 0x10008d3c4\nB.EQ            loc_10008D3E4                                          ; +0x134, 0x10008d3c8\nADD             W22, W22, #1                                           ; +0x138, 0x10008d3cc\nMOV             X0, X21                                                ; +0x13c, 0x10008d3d0\nBL              sub_10024A36C                                          ; +0x140, 0x10008d3d4\nCMP             W22, W0                                                ; +0x144, 0x10008d3d8\nB.CC            loc_10008D3B4                                          ; +0x148, 0x10008d3dc\nB               loc_10008D410                                          ; +0x14c, 0x10008d3e0\nMOV             X0, X21                                                ; +0x150, 0x10008d3e4\nMOV             X1, X22                                                ; +0x154, 0x10008d3e8\nMOV             W2, #1                                                 ; +0x158, 0x10008d3ec\nBL              sub_10024A44C                                          ; +0x15c, 0x10008d3f0\nLDR             X0, [X19,#0x330]                                       ; +0x160, 0x10008d3f4\nCBZ             X0, loc_10008D410                                      ; +0x164, 0x10008d3f8\nLDR             X8, [X0]                                               ; +0x168, 0x10008d3fc\nLDR             X8, [X8,#0x10]                                         ; +0x16c, 0x10008d400\nMOV             X1, X21                                                ; +0x170, 0x10008d404\nMOV             W2, #0                                                 ; +0x174, 0x10008d408\nBLR             X8                                                     ; +0x178, 0x10008d40c\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x17c, 0x10008d410\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x180, 0x10008d414\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x184, 0x10008d418\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x188, 0x10008d41c\nRET                                                                    ; +0x18c, 0x10008d420", "xrefs": ["GameLevelManager::handleIt @ 0x100089884"], "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"}