{"type": "func", "start": 4295544636, "end": 4295544988, "name": "GameLevelManager::onDeleteFriendRequestCompleted", "pseudocode": "// \n// GameLevelManager::onDeleteFriendRequestCompleted from 0x10008cf3c to 0x10008d09c (352 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::handleIt @ 0x1000889d0\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::onDeleteFriendRequestCompleted(GameLevelManager *a1, _QWORD *a2, char *__s)\n{\n  char *v3; // x21\n  cocos2d::CCDictionary *m_friendReqAndUserBlocks; // x20\n  GameLevelManager *v7; // x0\n  GameLevelManager *SplitIntFromKey; // x20\n  int v9; // w21\n  _BOOL4 v10; // w0\n  _BOOL4 v11; // w22\n  UploadActionDelegate *m_uploadActionDelegate; // x0\n  cocos2d::CCObject *v13; // x0\n  cocos2d::CCObject *v14; // x1\n  UserInfoDelegate *m_userInfoDelegate; // x0\n  UploadActionDelegate *v16; // x0\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v18; // [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 ( v18 < 0 )\n    operator delete(__p[0]);\n  SplitIntFromKey = (GameLevelManager *)GameLevelManager::getSplitIntFromKey(v7, v3, 1);\n  v9 = GameLevelManager::getSplitIntFromKey(SplitIntFromKey, v3, 2);\n  sub_100009900(__p, \"-1\");\n  v10 = sub_1000045BC(a2, __p);\n  v11 = v10;\n  if ( v18 < 0 )\n  {\n    operator delete(__p[0]);\n    if ( v11 )\n    {\nLABEL_7:\n      m_uploadActionDelegate = a1->m_uploadActionDelegate;\n      if ( m_uploadActionDelegate )\n        ((void (__fastcall *)(UploadActionDelegate *, GameLevelManager *, __int64))m_uploadActionDelegate->uploadActionFailed)(\n          m_uploadActionDelegate,\n          SplitIntFromKey,\n          30);\n      return;\n    }\n  }\n  else if ( v10 )\n  {\n    goto LABEL_7;\n  }\n  v13 = cocos2d::CCDictionary::objectForKey(a1->m_storedUserInfo, (int)SplitIntFromKey);\n  if ( v13 )\n  {\n    v14 = v13;\n    LODWORD(v13[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        v14);\n  }\n  v16 = a1->m_uploadActionDelegate;\n  if ( v16 )\n    ((void (__fastcall *)(UploadActionDelegate *, GameLevelManager *, __int64))v16->uploadActionFinished)(\n      v16,\n      SplitIntFromKey,\n      30);\n  if ( (_DWORD)SplitIntFromKey == -1 )\n    GameLevelManager::invalidateRequests(a1, v9 != 0, 1);\n  else\n    GameLevelManager::friendRequestWasRemoved(a1, (int)SplitIntFromKey, v9 != 0);\n}", "assembly": "; \n; GameLevelManager::onDeleteFriendRequestCompleted from 0x10008cf3c to 0x10008d09c (352 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::handleIt @ 0x1000889d0\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, 0x10008cf3c\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x10008cf40\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x10008cf44\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x10008cf48\nADD             X29, SP, #0x40                                         ; +0x10, 0x10008cf4c\nMOV             X21, X2                                                ; +0x14, 0x10008cf50\nMOV             X22, X1                                                ; +0x18, 0x10008cf54\nMOV             X19, X0                                                ; +0x1c, 0x10008cf58\nLDRSB           W8, [X2,#0x17]                                         ; +0x20, 0x10008cf5c\nTBZ             W8, #0x1F, loc_10008CF68                               ; +0x24, 0x10008cf60\nLDR             X21, [X21]                                             ; +0x28, 0x10008cf64\nLDR             X20, [X19,#0x260]                                      ; +0x2c, 0x10008cf68\nADD             X0, SP, #0x40+__p; int                                 ; +0x30, 0x10008cf6c\nMOV             X1, X21; __s                                           ; +0x34, 0x10008cf70\nBL              sub_100009900                                          ; +0x38, 0x10008cf74\nADD             X1, SP, #0x40+__p; __s                                 ; +0x3c, 0x10008cf78\nMOV             X0, X20; int                                           ; +0x40, 0x10008cf7c\nBL              cocos2d__CCDictionary__removeObjectForKey_1            ; +0x44, 0x10008cf80\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x48, 0x10008cf84\nTBZ             W8, #0x1F, loc_10008CF94                               ; +0x4c, 0x10008cf88\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x50, 0x10008cf8c\nBL              __ZdlPv; operator delete(void *)                       ; +0x54, 0x10008cf90\nMOV             X1, X21                                                ; +0x58, 0x10008cf94\nMOV             W2, #1                                                 ; +0x5c, 0x10008cf98\nBL              GameLevelManager__getSplitIntFromKey                   ; +0x60, 0x10008cf9c\nMOV             X20, X0                                                ; +0x64, 0x10008cfa0\nMOV             X1, X21                                                ; +0x68, 0x10008cfa4\nMOV             W2, #2                                                 ; +0x6c, 0x10008cfa8\nBL              GameLevelManager__getSplitIntFromKey                   ; +0x70, 0x10008cfac\nMOV             X21, X0                                                ; +0x74, 0x10008cfb0\nADRL            X1, a1_0; \"-1\"                                         ; +0x78, 0x10008cfb4\nADD             X0, SP, #0x40+__p; int                                 ; +0x80, 0x10008cfbc\nBL              sub_100009900                                          ; +0x84, 0x10008cfc0\nADD             X1, SP, #0x40+__p                                      ; +0x88, 0x10008cfc4\nMOV             X0, X22                                                ; +0x8c, 0x10008cfc8\nBL              sub_1000045BC                                          ; +0x90, 0x10008cfcc\nMOV             X22, X0                                                ; +0x94, 0x10008cfd0\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x98, 0x10008cfd4\nTBNZ            W8, #0x1F, loc_10008D000                               ; +0x9c, 0x10008cfd8\nCBZ             W22, loc_10008D00C                                     ; +0xa0, 0x10008cfdc\nLDR             X0, [X19,#0x328]                                       ; +0xa4, 0x10008cfe0\nCBZ             X0, loc_10008D088                                      ; +0xa8, 0x10008cfe4\nLDR             X8, [X0]                                               ; +0xac, 0x10008cfe8\nLDR             X8, [X8,#8]                                            ; +0xb0, 0x10008cfec\nMOV             X1, X20                                                ; +0xb4, 0x10008cff0\nMOV             W2, #0x1E                                              ; +0xb8, 0x10008cff4\nBLR             X8                                                     ; +0xbc, 0x10008cff8\nB               loc_10008D088                                          ; +0xc0, 0x10008cffc\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0xc4, 0x10008d000\nBL              __ZdlPv; operator delete(void *)                       ; +0xc8, 0x10008d004\nCBNZ            W22, loc_10008CFE0                                     ; +0xcc, 0x10008d008\nLDR             X0, [X19,#0x268]                                       ; +0xd0, 0x10008d00c\nSXTW            X1, W20                                                ; +0xd4, 0x10008d010\nBL              cocos2d__CCDictionary__objectForKey                    ; +0xd8, 0x10008d014\nCBZ             X0, loc_10008D038                                      ; +0xdc, 0x10008d018\nMOV             X1, X0                                                 ; +0xe0, 0x10008d01c\nSTR             WZR, [X0,#0x2A0]                                       ; +0xe4, 0x10008d020\nLDR             X0, [X19,#0x320]                                       ; +0xe8, 0x10008d024\nCBZ             X0, loc_10008D038                                      ; +0xec, 0x10008d028\nLDR             X8, [X0]                                               ; +0xf0, 0x10008d02c\nLDR             X8, [X8,#0x10]                                         ; +0xf4, 0x10008d030\nBLR             X8                                                     ; +0xf8, 0x10008d034\nLDR             X0, [X19,#0x328]                                       ; +0xfc, 0x10008d038\nCBZ             X0, loc_10008D054                                      ; +0x100, 0x10008d03c\nLDR             X8, [X0]                                               ; +0x104, 0x10008d040\nLDR             X8, [X8]                                               ; +0x108, 0x10008d044\nMOV             X1, X20                                                ; +0x10c, 0x10008d048\nMOV             W2, #0x1E                                              ; +0x110, 0x10008d04c\nBLR             X8                                                     ; +0x114, 0x10008d050\nCMN             W20, #1                                                ; +0x118, 0x10008d054\nB.EQ            loc_10008D074                                          ; +0x11c, 0x10008d058\nCMP             W21, #0                                                ; +0x120, 0x10008d05c\nCSET            W2, NE                                                 ; +0x124, 0x10008d060\nMOV             X0, X19                                                ; +0x128, 0x10008d064\nMOV             X1, X20                                                ; +0x12c, 0x10008d068\nBL              GameLevelManager__friendRequestWasRemoved              ; +0x130, 0x10008d06c\nB               loc_10008D088                                          ; +0x134, 0x10008d070\nCMP             W21, #0                                                ; +0x138, 0x10008d074\nCSET            W1, NE                                                 ; +0x13c, 0x10008d078\nMOV             X0, X19                                                ; +0x140, 0x10008d07c\nMOV             W2, #1                                                 ; +0x144, 0x10008d080\nBL              GameLevelManager__invalidateRequests                   ; +0x148, 0x10008d084\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x14c, 0x10008d088\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x150, 0x10008d08c\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x154, 0x10008d090\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x158, 0x10008d094\nRET                                                                    ; +0x15c, 0x10008d098", "xrefs": ["GameLevelManager::handleIt @ 0x1000889d0"], "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"}