{"type": "func", "start": 4295537908, "end": 4295538120, "name": "GameLevelManager::onDeleteServerLevelCompleted", "pseudocode": "// \n// GameLevelManager::onDeleteServerLevelCompleted from 0x10008b4f4 to 0x10008b5c8 (212 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::handleIt @ 0x100088c88\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\n__int64 (***__fastcall GameLevelManager::onDeleteServerLevelCompleted(__int64 a1, _QWORD *a2, char *__s))(void)\n{\n  char *v3; // x21\n  __int64 v6; // x22\n  _BOOL4 v7; // w20\n  __int64 (***result)(void); // x0\n  __int64 (**v9)(void); // x8\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v11; // [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  cocos2d::CCDictionary::removeObjectForKey_1(v6, (char *)__p);\n  if ( v11 < 0 )\n    operator delete(__p[0]);\n  atoi(v3);\n  sub_100009900(__p, \"-1\");\n  v7 = sub_1000045BC(a2, __p);\n  if ( v11 < 0 )\n    operator delete(__p[0]);\n  result = *(__int64 (****)(void))(a1 + 784);\n  if ( v7 )\n  {\n    if ( !result )\n      return result;\n    v9 = *result + 1;\n  }\n  else\n  {\n    if ( !result )\n      return result;\n    v9 = *result;\n  }\n  return (__int64 (***)(void))(*v9)();\n}", "assembly": "; \n; GameLevelManager::onDeleteServerLevelCompleted from 0x10008b4f4 to 0x10008b5c8 (212 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::handleIt @ 0x100088c88\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, 0x10008b4f4\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x10008b4f8\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x10008b4fc\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x10008b500\nADD             X29, SP, #0x40                                         ; +0x10, 0x10008b504\nMOV             X21, X2                                                ; +0x14, 0x10008b508\nMOV             X20, X1                                                ; +0x18, 0x10008b50c\nMOV             X19, X0                                                ; +0x1c, 0x10008b510\nLDRSB           W8, [X2,#0x17]                                         ; +0x20, 0x10008b514\nTBZ             W8, #0x1F, loc_10008B520                               ; +0x24, 0x10008b518\nLDR             X21, [X21]                                             ; +0x28, 0x10008b51c\nLDR             X22, [X19,#0x260]                                      ; +0x2c, 0x10008b520\nADD             X0, SP, #0x40+__p; int                                 ; +0x30, 0x10008b524\nMOV             X1, X21; __s                                           ; +0x34, 0x10008b528\nBL              sub_100009900                                          ; +0x38, 0x10008b52c\nADD             X1, SP, #0x40+__p; __s                                 ; +0x3c, 0x10008b530\nMOV             X0, X22; int                                           ; +0x40, 0x10008b534\nBL              cocos2d__CCDictionary__removeObjectForKey_1            ; +0x44, 0x10008b538\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x48, 0x10008b53c\nTBZ             W8, #0x1F, loc_10008B54C                               ; +0x4c, 0x10008b540\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x50, 0x10008b544\nBL              __ZdlPv; operator delete(void *)                       ; +0x54, 0x10008b548\nMOV             X0, X21; char *                                        ; +0x58, 0x10008b54c\nBL              _atoi                                                  ; +0x5c, 0x10008b550\nMOV             X21, X0                                                ; +0x60, 0x10008b554\nADRL            X1, a1_0; \"-1\"                                         ; +0x64, 0x10008b558\nADD             X0, SP, #0x40+__p; int                                 ; +0x6c, 0x10008b560\nBL              sub_100009900                                          ; +0x70, 0x10008b564\nADD             X1, SP, #0x40+__p                                      ; +0x74, 0x10008b568\nMOV             X0, X20                                                ; +0x78, 0x10008b56c\nBL              sub_1000045BC                                          ; +0x7c, 0x10008b570\nMOV             X20, X0                                                ; +0x80, 0x10008b574\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x84, 0x10008b578\nTBZ             W8, #0x1F, loc_10008B588                               ; +0x88, 0x10008b57c\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x8c, 0x10008b580\nBL              __ZdlPv; operator delete(void *)                       ; +0x90, 0x10008b584\nLDR             X0, [X19,#0x310]                                       ; +0x94, 0x10008b588\nCBZ             W20, loc_10008B5A0                                     ; +0x98, 0x10008b58c\nCBZ             X0, loc_10008B5B4                                      ; +0x9c, 0x10008b590\nLDR             X8, [X0]                                               ; +0xa0, 0x10008b594\nADD             X8, X8, #8                                             ; +0xa4, 0x10008b598\nB               loc_10008B5A8                                          ; +0xa8, 0x10008b59c\nCBZ             X0, loc_10008B5B4                                      ; +0xac, 0x10008b5a0\nLDR             X8, [X0]                                               ; +0xb0, 0x10008b5a4\nLDR             X8, [X8]                                               ; +0xb4, 0x10008b5a8\nMOV             X1, X21                                                ; +0xb8, 0x10008b5ac\nBLR             X8                                                     ; +0xbc, 0x10008b5b0\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc0, 0x10008b5b4\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xc4, 0x10008b5b8\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xc8, 0x10008b5bc\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xcc, 0x10008b5c0\nRET                                                                    ; +0xd0, 0x10008b5c4", "xrefs": ["GameLevelManager::handleIt @ 0x100088c88"], "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"}