{"type": "func", "start": 4295542300, "end": 4295542556, "name": "GameLevelManager::onDeleteCommentCompleted", "pseudocode": "// \n// GameLevelManager::onDeleteCommentCompleted from 0x10008c61c to 0x10008c71c (256 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::handleIt @ 0x100089690\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::onDeleteCommentCompleted(__int64 a1, _QWORD *a2, char *__s)\n{\n  char *v3; // x21\n  __int64 v6; // x22\n  GameLevelManager *v7; // x0\n  GameLevelManager *v8; // x0\n  GJAccountManager *v9; // x0\n  unsigned __int64 v10; // x22\n  __int64 v11; // x21\n  _BOOL4 v12; // w0\n  _BOOL4 v13; // w20\n  __int64 v14; // x0\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v16; // [xsp+1Fh] [xbp-21h]\n\n  v3 = __s;\n  if ( __s[23] < 0 )\n    v3 = *(char **)__s;\n  v6 = *(_QWORD *)(a1 + 608);\n  sub_100009900(__p, v3);\n  v7 = (GameLevelManager *)cocos2d::CCDictionary::removeObjectForKey_1(v6, (char *)__p);\n  if ( v16 < 0 )\n    operator delete(__p[0]);\n  v8 = (GameLevelManager *)(int)GameLevelManager::typeFromCommentKey(v7, v3);\n  if ( (_DWORD)v8 == 1 )\n  {\n    v9 = GJAccountManager::sharedState();\n    v10 = (unsigned int)(v9->m_accountID - v9->m_unkInt1);\n  }\n  else\n  {\n    v9 = (GJAccountManager *)GameLevelManager::levelIDFromCommentKey(v8, v3);\n    v10 = (unsigned __int64)v9;\n  }\n  v11 = GameLevelManager::pageFromCommentKey((GameLevelManager *)v9, v3);\n  sub_100009900(__p, \"-1\");\n  v12 = sub_1000045BC(a2, __p);\n  v13 = v12;\n  if ( v16 < 0 )\n  {\n    operator delete(__p[0]);\n    if ( !v13 )\n      return;\n  }\n  else if ( !v12 )\n  {\n    return;\n  }\n  v14 = *(_QWORD *)(a1 + 744);\n  if ( v14 )\n    (*(void (__fastcall **)(__int64, unsigned __int64, __int64))(*(_QWORD *)v14 + 16LL))(v14, v10, v11);\n}", "assembly": "; \n; GameLevelManager::onDeleteCommentCompleted from 0x10008c61c to 0x10008c71c (256 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::handleIt @ 0x100089690\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, 0x10008c61c\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x10008c620\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x10008c624\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x10008c628\nADD             X29, SP, #0x40                                         ; +0x10, 0x10008c62c\nMOV             X21, X2                                                ; +0x14, 0x10008c630\nMOV             X20, X1                                                ; +0x18, 0x10008c634\nMOV             X19, X0                                                ; +0x1c, 0x10008c638\nLDRSB           W8, [X2,#0x17]                                         ; +0x20, 0x10008c63c\nTBZ             W8, #0x1F, loc_10008C648                               ; +0x24, 0x10008c640\nLDR             X21, [X21]                                             ; +0x28, 0x10008c644\nLDR             X22, [X19,#0x260]                                      ; +0x2c, 0x10008c648\nADD             X0, SP, #0x40+__p; int                                 ; +0x30, 0x10008c64c\nMOV             X1, X21; __s                                           ; +0x34, 0x10008c650\nBL              sub_100009900                                          ; +0x38, 0x10008c654\nADD             X1, SP, #0x40+__p; __s                                 ; +0x3c, 0x10008c658\nMOV             X0, X22; int                                           ; +0x40, 0x10008c65c\nBL              cocos2d__CCDictionary__removeObjectForKey_1            ; +0x44, 0x10008c660\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x48, 0x10008c664\nTBZ             W8, #0x1F, loc_10008C674                               ; +0x4c, 0x10008c668\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x50, 0x10008c66c\nBL              __ZdlPv; operator delete(void *)                       ; +0x54, 0x10008c670\nMOV             X1, X21                                                ; +0x58, 0x10008c674\nBL              GameLevelManager__typeFromCommentKey                   ; +0x5c, 0x10008c678\nCMP             W0, #1                                                 ; +0x60, 0x10008c67c\nB.NE            loc_10008C698                                          ; +0x64, 0x10008c680\nBL              GJAccountManager__sharedState                          ; +0x68, 0x10008c684\nLDR             W8, [X0,#0x160]                                        ; +0x6c, 0x10008c688\nLDR             W9, [X0,#0x164]                                        ; +0x70, 0x10008c68c\nSUB             W22, W8, W9                                            ; +0x74, 0x10008c690\nB               loc_10008C6A4                                          ; +0x78, 0x10008c694\nMOV             X1, X21                                                ; +0x7c, 0x10008c698\nBL              GameLevelManager__levelIDFromCommentKey                ; +0x80, 0x10008c69c\nMOV             X22, X0                                                ; +0x84, 0x10008c6a0\nMOV             X1, X21                                                ; +0x88, 0x10008c6a4\nBL              GameLevelManager__pageFromCommentKey                   ; +0x8c, 0x10008c6a8\nMOV             X21, X0                                                ; +0x90, 0x10008c6ac\nADRL            X1, a1_0; \"-1\"                                         ; +0x94, 0x10008c6b0\nADD             X0, SP, #0x40+__p; int                                 ; +0x9c, 0x10008c6b8\nBL              sub_100009900                                          ; +0xa0, 0x10008c6bc\nADD             X1, SP, #0x40+__p                                      ; +0xa4, 0x10008c6c0\nMOV             X0, X20                                                ; +0xa8, 0x10008c6c4\nBL              sub_1000045BC                                          ; +0xac, 0x10008c6c8\nMOV             X20, X0                                                ; +0xb0, 0x10008c6cc\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0xb4, 0x10008c6d0\nTBNZ            W8, #0x1F, loc_10008C6E0                               ; +0xb8, 0x10008c6d4\nCBNZ            W20, loc_10008C6EC                                     ; +0xbc, 0x10008c6d8\nB               loc_10008C708                                          ; +0xc0, 0x10008c6dc\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0xc4, 0x10008c6e0\nBL              __ZdlPv; operator delete(void *)                       ; +0xc8, 0x10008c6e4\nCBZ             W20, loc_10008C708                                     ; +0xcc, 0x10008c6e8\nLDR             X0, [X19,#0x2E8]                                       ; +0xd0, 0x10008c6ec\nCBZ             X0, loc_10008C708                                      ; +0xd4, 0x10008c6f0\nLDR             X8, [X0]                                               ; +0xd8, 0x10008c6f4\nLDR             X8, [X8,#0x10]                                         ; +0xdc, 0x10008c6f8\nMOV             X1, X22                                                ; +0xe0, 0x10008c6fc\nMOV             X2, X21                                                ; +0xe4, 0x10008c700\nBLR             X8                                                     ; +0xe8, 0x10008c704\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xec, 0x10008c708\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xf0, 0x10008c70c\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xf4, 0x10008c710\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xf8, 0x10008c714\nRET                                                                    ; +0xfc, 0x10008c718", "xrefs": ["GameLevelManager::handleIt @ 0x100089690"], "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"}