{"type": "func", "start": 4295537440, "end": 4295537616, "name": "GameLevelManager::onUpdateLevelCompleted", "pseudocode": "// \n// GameLevelManager::onUpdateLevelCompleted from 0x10008b320 to 0x10008b3d0 (176 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::handleIt @ 0x10008950c\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::onUpdateLevelCompleted(__int64 a1, __int64 a2, __int64 a3)\n{\n  void *__p[2]; // [xsp+0h] [xbp-50h] BYREF\n  __int64 v6; // [xsp+10h] [xbp-40h]\n  void *__dst[2]; // [xsp+20h] [xbp-30h] BYREF\n  __int64 v8; // [xsp+30h] [xbp-20h]\n\n  if ( *(char *)(a2 + 23) < 0 )\n  {\n    sub_1000097D0(__dst, *(void **)a2, *(_QWORD *)(a2 + 8));\n  }\n  else\n  {\n    *(_OWORD *)__dst = *(_OWORD *)a2;\n    v8 = *(_QWORD *)(a2 + 16);\n  }\n  if ( *(char *)(a3 + 23) < 0 )\n  {\n    sub_1000097D0(__p, *(void **)a3, *(_QWORD *)(a3 + 8));\n  }\n  else\n  {\n    *(_OWORD *)__p = *(_OWORD *)a3;\n    v6 = *(_QWORD *)(a3 + 16);\n  }\n  GameLevelManager::processOnDownloadLevelCompleted(a1, __dst, __p, 1);\n  if ( SHIBYTE(v6) < 0 )\n    operator delete(__p[0]);\n  if ( SHIBYTE(v8) < 0 )\n    operator delete(__dst[0]);\n}", "assembly": "; \n; GameLevelManager::onUpdateLevelCompleted from 0x10008b320 to 0x10008b3d0 (176 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::handleIt @ 0x10008950c\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, #0x60                                          ; +0x0, 0x10008b320\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x4, 0x10008b324\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x8, 0x10008b328\nADD             X29, SP, #0x50                                         ; +0xc, 0x10008b32c\nMOV             X20, X2                                                ; +0x10, 0x10008b330\nMOV             X19, X0                                                ; +0x14, 0x10008b334\nLDRSB           W8, [X1,#0x17]                                         ; +0x18, 0x10008b338\nTBNZ            W8, #0x1F, loc_10008B354                               ; +0x1c, 0x10008b33c\nLDR             Q0, [X1]                                               ; +0x20, 0x10008b340\nSTR             Q0, [SP,#0x50+__dst]                                   ; +0x24, 0x10008b344\nLDR             X8, [X1,#0x10]                                         ; +0x28, 0x10008b348\nSTR             X8, [SP,#0x50+var_20]                                  ; +0x2c, 0x10008b34c\nB               loc_10008B364                                          ; +0x30, 0x10008b350\nLDP             X8, X2, [X1]                                           ; +0x34, 0x10008b354\nADD             X0, SP, #0x50+__dst; __dst                             ; +0x38, 0x10008b358\nMOV             X1, X8; __src                                          ; +0x3c, 0x10008b35c\nBL              sub_1000097D0                                          ; +0x40, 0x10008b360\nLDRSB           W8, [X20,#0x17]                                        ; +0x44, 0x10008b364\nTBNZ            W8, #0x1F, loc_10008B380                               ; +0x48, 0x10008b368\nLDR             Q0, [X20]                                              ; +0x4c, 0x10008b36c\nSTR             Q0, [SP,#0x50+__p]                                     ; +0x50, 0x10008b370\nLDR             X8, [X20,#0x10]                                        ; +0x54, 0x10008b374\nSTR             X8, [SP,#0x50+var_40]                                  ; +0x58, 0x10008b378\nB               loc_10008B38C                                          ; +0x5c, 0x10008b37c\nLDP             X1, X2, [X20]; __src                                   ; +0x60, 0x10008b380\nMOV             X0, SP; __dst                                          ; +0x64, 0x10008b384\nBL              sub_1000097D0                                          ; +0x68, 0x10008b388\nADD             X1, SP, #0x50+__dst                                    ; +0x6c, 0x10008b38c\nMOV             X2, SP                                                 ; +0x70, 0x10008b390\nMOV             X0, X19                                                ; +0x74, 0x10008b394\nMOV             W3, #1                                                 ; +0x78, 0x10008b398\nBL              GameLevelManager__processOnDownloadLevelCompleted      ; +0x7c, 0x10008b39c\nLDRSB           W8, [SP,#0x50+var_40+7]                                ; +0x80, 0x10008b3a0\nTBZ             W8, #0x1F, loc_10008B3B0                               ; +0x84, 0x10008b3a4\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0x88, 0x10008b3a8\nBL              __ZdlPv; operator delete(void *)                       ; +0x8c, 0x10008b3ac\nLDRSB           W8, [SP,#0x50+var_20+7]                                ; +0x90, 0x10008b3b0\nTBZ             W8, #0x1F, loc_10008B3C0                               ; +0x94, 0x10008b3b4\nLDR             X0, [SP,#0x50+__dst]; __p                              ; +0x98, 0x10008b3b8\nBL              __ZdlPv; operator delete(void *)                       ; +0x9c, 0x10008b3bc\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0xa0, 0x10008b3c0\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0xa4, 0x10008b3c4\nADD             SP, SP, #0x60 ; '`'                                    ; +0xa8, 0x10008b3c8\nRET                                                                    ; +0xac, 0x10008b3cc", "xrefs": ["GameLevelManager::handleIt @ 0x10008950c"], "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"}