{"type": "func", "start": 4295545016, "end": 4295545348, "name": "GameLevelManager::onAcceptFriendRequestCompleted", "pseudocode": "// \n// GameLevelManager::onAcceptFriendRequestCompleted from 0x10008d0b8 to 0x10008d204 (332 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::handleIt @ 0x100088f40\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\nvoid __fastcall GameLevelManager::onAcceptFriendRequestCompleted(GameLevelManager *a1, _QWORD *a2, char *__s)\n{\n  char *v3; // x21\n  cocos2d::CCDictionary *m_friendReqAndUserBlocks; // x20\n  GameLevelManager *v7; // x0\n  GameLevelManager *SplitIntFromKey; // x0\n  int v9; // w20\n  __int64 v10; // x21\n  _BOOL4 v11; // w0\n  _BOOL4 v12; // w22\n  UploadActionDelegate *m_uploadActionDelegate; // x0\n  cocos2d::CCObject *v14; // x0\n  cocos2d::CCObject *v15; // x1\n  UserInfoDelegate *m_userInfoDelegate; // x0\n  UploadActionDelegate *v17; // x0\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v19; // [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 ( v19 < 0 )\n    operator delete(__p[0]);\n  SplitIntFromKey = (GameLevelManager *)GameLevelManager::getSplitIntFromKey(v7, v3, 1);\n  v9 = (int)SplitIntFromKey;\n  v10 = GameLevelManager::getSplitIntFromKey(SplitIntFromKey, v3, 2);\n  sub_100009900(__p, \"-1\");\n  v11 = sub_1000045BC(a2, __p);\n  v12 = v11;\n  if ( v19 < 0 )\n  {\n    operator delete(__p[0]);\n    if ( v12 )\n    {\nLABEL_7:\n      m_uploadActionDelegate = a1->m_uploadActionDelegate;\n      if ( m_uploadActionDelegate )\n        ((void (__fastcall *)(UploadActionDelegate *, __int64, __int64))m_uploadActionDelegate->uploadActionFailed)(\n          m_uploadActionDelegate,\n          v10,\n          31);\n      return;\n    }\n  }\n  else if ( v11 )\n  {\n    goto LABEL_7;\n  }\n  v14 = cocos2d::CCDictionary::objectForKey(a1->m_storedUserInfo, v9);\n  if ( v14 )\n  {\n    v15 = v14;\n    LODWORD(v14[12].__vftable) = 1;\n    m_userInfoDelegate = a1->m_userInfoDelegate;\n    if ( m_userInfoDelegate )\n      ((void (__fastcall *)(UserInfoDelegate *, cocos2d::CCObject *))m_userInfoDelegate->userInfoChanged)(\n        m_userInfoDelegate,\n        v15);\n  }\n  v17 = a1->m_uploadActionDelegate;\n  if ( v17 )\n    ((void (__fastcall *)(UploadActionDelegate *, __int64, __int64))v17->uploadActionFinished)(v17, v10, 31);\n  GameLevelManager::friendRequestWasRemoved(a1, v9, 0);\n  GameLevelManager::resetStoredUserList(a1, (UserListType)0);\n}", "assembly": "; \n; GameLevelManager::onAcceptFriendRequestCompleted from 0x10008d0b8 to 0x10008d204 (332 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::handleIt @ 0x100088f40\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, 0x10008d0b8\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x10008d0bc\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x10008d0c0\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x10008d0c4\nADD             X29, SP, #0x40                                         ; +0x10, 0x10008d0c8\nMOV             X21, X2                                                ; +0x14, 0x10008d0cc\nMOV             X22, X1                                                ; +0x18, 0x10008d0d0\nMOV             X19, X0                                                ; +0x1c, 0x10008d0d4\nLDRSB           W8, [X2,#0x17]                                         ; +0x20, 0x10008d0d8\nTBZ             W8, #0x1F, loc_10008D0E4                               ; +0x24, 0x10008d0dc\nLDR             X21, [X21]                                             ; +0x28, 0x10008d0e0\nLDR             X20, [X19,#0x260]                                      ; +0x2c, 0x10008d0e4\nADD             X0, SP, #0x40+__p; int                                 ; +0x30, 0x10008d0e8\nMOV             X1, X21; __s                                           ; +0x34, 0x10008d0ec\nBL              sub_100009900                                          ; +0x38, 0x10008d0f0\nADD             X1, SP, #0x40+__p; __s                                 ; +0x3c, 0x10008d0f4\nMOV             X0, X20; int                                           ; +0x40, 0x10008d0f8\nBL              cocos2d__CCDictionary__removeObjectForKey_1            ; +0x44, 0x10008d0fc\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x48, 0x10008d100\nTBZ             W8, #0x1F, loc_10008D110                               ; +0x4c, 0x10008d104\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x50, 0x10008d108\nBL              __ZdlPv; operator delete(void *)                       ; +0x54, 0x10008d10c\nMOV             X1, X21                                                ; +0x58, 0x10008d110\nMOV             W2, #1                                                 ; +0x5c, 0x10008d114\nBL              GameLevelManager__getSplitIntFromKey                   ; +0x60, 0x10008d118\nMOV             X20, X0                                                ; +0x64, 0x10008d11c\nMOV             X1, X21                                                ; +0x68, 0x10008d120\nMOV             W2, #2                                                 ; +0x6c, 0x10008d124\nBL              GameLevelManager__getSplitIntFromKey                   ; +0x70, 0x10008d128\nMOV             X21, X0                                                ; +0x74, 0x10008d12c\nADRL            X1, a1_0; \"-1\"                                         ; +0x78, 0x10008d130\nADD             X0, SP, #0x40+__p; int                                 ; +0x80, 0x10008d138\nBL              sub_100009900                                          ; +0x84, 0x10008d13c\nADD             X1, SP, #0x40+__p                                      ; +0x88, 0x10008d140\nMOV             X0, X22                                                ; +0x8c, 0x10008d144\nBL              sub_1000045BC                                          ; +0x90, 0x10008d148\nMOV             X22, X0                                                ; +0x94, 0x10008d14c\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x98, 0x10008d150\nTBNZ            W8, #0x1F, loc_10008D17C                               ; +0x9c, 0x10008d154\nCBZ             W22, loc_10008D188                                     ; +0xa0, 0x10008d158\nLDR             X0, [X19,#0x328]                                       ; +0xa4, 0x10008d15c\nCBZ             X0, loc_10008D1F0                                      ; +0xa8, 0x10008d160\nLDR             X8, [X0]                                               ; +0xac, 0x10008d164\nLDR             X8, [X8,#8]                                            ; +0xb0, 0x10008d168\nMOV             X1, X21                                                ; +0xb4, 0x10008d16c\nMOV             W2, #0x1F                                              ; +0xb8, 0x10008d170\nBLR             X8                                                     ; +0xbc, 0x10008d174\nB               loc_10008D1F0                                          ; +0xc0, 0x10008d178\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0xc4, 0x10008d17c\nBL              __ZdlPv; operator delete(void *)                       ; +0xc8, 0x10008d180\nCBNZ            W22, loc_10008D15C                                     ; +0xcc, 0x10008d184\nLDR             X0, [X19,#0x268]                                       ; +0xd0, 0x10008d188\nSXTW            X1, W20                                                ; +0xd4, 0x10008d18c\nBL              cocos2d__CCDictionary__objectForKey                    ; +0xd8, 0x10008d190\nCBZ             X0, loc_10008D1B8                                      ; +0xdc, 0x10008d194\nMOV             X1, X0                                                 ; +0xe0, 0x10008d198\nMOV             W8, #1                                                 ; +0xe4, 0x10008d19c\nSTR             W8, [X0,#0x2A0]                                        ; +0xe8, 0x10008d1a0\nLDR             X0, [X19,#0x320]                                       ; +0xec, 0x10008d1a4\nCBZ             X0, loc_10008D1B8                                      ; +0xf0, 0x10008d1a8\nLDR             X8, [X0]                                               ; +0xf4, 0x10008d1ac\nLDR             X8, [X8,#0x10]                                         ; +0xf8, 0x10008d1b0\nBLR             X8                                                     ; +0xfc, 0x10008d1b4\nLDR             X0, [X19,#0x328]                                       ; +0x100, 0x10008d1b8\nCBZ             X0, loc_10008D1D4                                      ; +0x104, 0x10008d1bc\nLDR             X8, [X0]                                               ; +0x108, 0x10008d1c0\nLDR             X8, [X8]                                               ; +0x10c, 0x10008d1c4\nMOV             X1, X21                                                ; +0x110, 0x10008d1c8\nMOV             W2, #0x1F                                              ; +0x114, 0x10008d1cc\nBLR             X8                                                     ; +0x118, 0x10008d1d0\nMOV             X0, X19                                                ; +0x11c, 0x10008d1d4\nMOV             X1, X20                                                ; +0x120, 0x10008d1d8\nMOV             W2, #0                                                 ; +0x124, 0x10008d1dc\nBL              GameLevelManager__friendRequestWasRemoved              ; +0x128, 0x10008d1e0\nMOV             X0, X19                                                ; +0x12c, 0x10008d1e4\nMOV             W1, #0                                                 ; +0x130, 0x10008d1e8\nBL              GameLevelManager__resetStoredUserList                  ; +0x134, 0x10008d1ec\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x138, 0x10008d1f0\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x13c, 0x10008d1f4\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x140, 0x10008d1f8\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x144, 0x10008d1fc\nRET                                                                    ; +0x148, 0x10008d200", "xrefs": ["GameLevelManager::handleIt @ 0x100088f40"], "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"}