{"type": "func", "start": 4295549760, "end": 4295550060, "name": "GameLevelManager::onDeleteUserMessagesCompleted", "pseudocode": "// \n// GameLevelManager::onDeleteUserMessagesCompleted from 0x10008e340 to 0x10008e46c (300 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::handleIt @ 0x10008999c\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::onDeleteUserMessagesCompleted(GameLevelManager *a1, _QWORD *a2, char *__s)\n{\n  char *v3; // x22\n  cocos2d::CCDictionary *m_friendReqAndUserBlocks; // x20\n  GameLevelManager *v7; // x0\n  GameLevelManager *SplitIntFromKey; // x20\n  int v9; // w22\n  _BOOL4 v10; // w21\n  UploadActionDelegate *m_uploadActionDelegate; // x0\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v13; // [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 ( v13 < 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  if ( v13 < 0 )\n    operator delete(__p[0]);\n  m_uploadActionDelegate = a1->m_uploadActionDelegate;\n  if ( v10 )\n  {\n    if ( m_uploadActionDelegate )\n      ((void (__fastcall *)(UploadActionDelegate *, GameLevelManager *, __int64))m_uploadActionDelegate->uploadActionFailed)(\n        m_uploadActionDelegate,\n        SplitIntFromKey,\n        39);\n  }\n  else\n  {\n    if ( m_uploadActionDelegate )\n      ((void (__fastcall *)(UploadActionDelegate *, GameLevelManager *, __int64))m_uploadActionDelegate->uploadActionFinished)(\n        m_uploadActionDelegate,\n        SplitIntFromKey,\n        39);\n    if ( (_DWORD)SplitIntFromKey == -1 )\n      GameLevelManager::invalidateMessages(a1, v9 != 0, 1);\n    else\n      GameLevelManager::messageWasRemoved(a1, (int)SplitIntFromKey, v9 != 0);\n  }\n}", "assembly": "; \n; GameLevelManager::onDeleteUserMessagesCompleted from 0x10008e340 to 0x10008e46c (300 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::handleIt @ 0x10008999c\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, 0x10008e340\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x10008e344\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x10008e348\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x10008e34c\nADD             X29, SP, #0x40                                         ; +0x10, 0x10008e350\nMOV             X22, X2                                                ; +0x14, 0x10008e354\nMOV             X21, X1                                                ; +0x18, 0x10008e358\nMOV             X19, X0                                                ; +0x1c, 0x10008e35c\nLDRSB           W8, [X2,#0x17]                                         ; +0x20, 0x10008e360\nTBZ             W8, #0x1F, loc_10008E36C                               ; +0x24, 0x10008e364\nLDR             X22, [X22]                                             ; +0x28, 0x10008e368\nLDR             X20, [X19,#0x260]                                      ; +0x2c, 0x10008e36c\nADD             X0, SP, #0x40+__p; int                                 ; +0x30, 0x10008e370\nMOV             X1, X22; __s                                           ; +0x34, 0x10008e374\nBL              sub_100009900                                          ; +0x38, 0x10008e378\nADD             X1, SP, #0x40+__p; __s                                 ; +0x3c, 0x10008e37c\nMOV             X0, X20; int                                           ; +0x40, 0x10008e380\nBL              cocos2d__CCDictionary__removeObjectForKey_1            ; +0x44, 0x10008e384\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x48, 0x10008e388\nTBZ             W8, #0x1F, loc_10008E398                               ; +0x4c, 0x10008e38c\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x50, 0x10008e390\nBL              __ZdlPv; operator delete(void *)                       ; +0x54, 0x10008e394\nMOV             X1, X22                                                ; +0x58, 0x10008e398\nMOV             W2, #1                                                 ; +0x5c, 0x10008e39c\nBL              GameLevelManager__getSplitIntFromKey                   ; +0x60, 0x10008e3a0\nMOV             X20, X0                                                ; +0x64, 0x10008e3a4\nMOV             X1, X22                                                ; +0x68, 0x10008e3a8\nMOV             W2, #2                                                 ; +0x6c, 0x10008e3ac\nBL              GameLevelManager__getSplitIntFromKey                   ; +0x70, 0x10008e3b0\nMOV             X22, X0                                                ; +0x74, 0x10008e3b4\nADRL            X1, a1_0; \"-1\"                                         ; +0x78, 0x10008e3b8\nADD             X0, SP, #0x40+__p; int                                 ; +0x80, 0x10008e3c0\nBL              sub_100009900                                          ; +0x84, 0x10008e3c4\nADD             X1, SP, #0x40+__p                                      ; +0x88, 0x10008e3c8\nMOV             X0, X21                                                ; +0x8c, 0x10008e3cc\nBL              sub_1000045BC                                          ; +0x90, 0x10008e3d0\nMOV             X21, X0                                                ; +0x94, 0x10008e3d4\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x98, 0x10008e3d8\nTBZ             W8, #0x1F, loc_10008E3E8                               ; +0x9c, 0x10008e3dc\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0xa0, 0x10008e3e0\nBL              __ZdlPv; operator delete(void *)                       ; +0xa4, 0x10008e3e4\nLDR             X0, [X19,#0x328]                                       ; +0xa8, 0x10008e3e8\nCBZ             W21, loc_10008E40C                                     ; +0xac, 0x10008e3ec\nCBZ             X0, loc_10008E458                                      ; +0xb0, 0x10008e3f0\nLDR             X8, [X0]                                               ; +0xb4, 0x10008e3f4\nLDR             X8, [X8,#8]                                            ; +0xb8, 0x10008e3f8\nMOV             X1, X20                                                ; +0xbc, 0x10008e3fc\nMOV             W2, #0x27 ; '''                                        ; +0xc0, 0x10008e400\nBLR             X8                                                     ; +0xc4, 0x10008e404\nB               loc_10008E458                                          ; +0xc8, 0x10008e408\nCBZ             X0, loc_10008E424                                      ; +0xcc, 0x10008e40c\nLDR             X8, [X0]                                               ; +0xd0, 0x10008e410\nLDR             X8, [X8]                                               ; +0xd4, 0x10008e414\nMOV             X1, X20                                                ; +0xd8, 0x10008e418\nMOV             W2, #0x27 ; '''                                        ; +0xdc, 0x10008e41c\nBLR             X8                                                     ; +0xe0, 0x10008e420\nCMN             W20, #1                                                ; +0xe4, 0x10008e424\nB.EQ            loc_10008E444                                          ; +0xe8, 0x10008e428\nCMP             W22, #0                                                ; +0xec, 0x10008e42c\nCSET            W2, NE                                                 ; +0xf0, 0x10008e430\nMOV             X0, X19                                                ; +0xf4, 0x10008e434\nMOV             X1, X20                                                ; +0xf8, 0x10008e438\nBL              GameLevelManager__messageWasRemoved                    ; +0xfc, 0x10008e43c\nB               loc_10008E458                                          ; +0x100, 0x10008e440\nCMP             W22, #0                                                ; +0x104, 0x10008e444\nCSET            W1, NE                                                 ; +0x108, 0x10008e448\nMOV             X0, X19                                                ; +0x10c, 0x10008e44c\nMOV             W2, #1                                                 ; +0x110, 0x10008e450\nBL              GameLevelManager__invalidateMessages                   ; +0x114, 0x10008e454\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x118, 0x10008e458\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x11c, 0x10008e45c\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x120, 0x10008e460\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x124, 0x10008e464\nRET                                                                    ; +0x128, 0x10008e468", "xrefs": ["GameLevelManager::handleIt @ 0x10008999c"], "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"}