{"type": "func", "start": 4295537212, "end": 4295537388, "name": "GameLevelManager::onDownloadLevelCompleted", "pseudocode": "// \n// GameLevelManager::onDownloadLevelCompleted from 0x10008b23c to 0x10008b2ec (176 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::handleIt @ 0x100089188\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::onDownloadLevelCompleted(__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, 0);\n  if ( SHIBYTE(v6) < 0 )\n    operator delete(__p[0]);\n  if ( SHIBYTE(v8) < 0 )\n    operator delete(__dst[0]);\n}", "assembly": "; \n; GameLevelManager::onDownloadLevelCompleted from 0x10008b23c to 0x10008b2ec (176 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::handleIt @ 0x100089188\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, 0x10008b23c\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x4, 0x10008b240\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x8, 0x10008b244\nADD             X29, SP, #0x50                                         ; +0xc, 0x10008b248\nMOV             X20, X2                                                ; +0x10, 0x10008b24c\nMOV             X19, X0                                                ; +0x14, 0x10008b250\nLDRSB           W8, [X1,#0x17]                                         ; +0x18, 0x10008b254\nTBNZ            W8, #0x1F, loc_10008B270                               ; +0x1c, 0x10008b258\nLDR             Q0, [X1]                                               ; +0x20, 0x10008b25c\nSTR             Q0, [SP,#0x50+__dst]                                   ; +0x24, 0x10008b260\nLDR             X8, [X1,#0x10]                                         ; +0x28, 0x10008b264\nSTR             X8, [SP,#0x50+var_20]                                  ; +0x2c, 0x10008b268\nB               loc_10008B280                                          ; +0x30, 0x10008b26c\nLDP             X8, X2, [X1]                                           ; +0x34, 0x10008b270\nADD             X0, SP, #0x50+__dst; __dst                             ; +0x38, 0x10008b274\nMOV             X1, X8; __src                                          ; +0x3c, 0x10008b278\nBL              sub_1000097D0                                          ; +0x40, 0x10008b27c\nLDRSB           W8, [X20,#0x17]                                        ; +0x44, 0x10008b280\nTBNZ            W8, #0x1F, loc_10008B29C                               ; +0x48, 0x10008b284\nLDR             Q0, [X20]                                              ; +0x4c, 0x10008b288\nSTR             Q0, [SP,#0x50+__p]                                     ; +0x50, 0x10008b28c\nLDR             X8, [X20,#0x10]                                        ; +0x54, 0x10008b290\nSTR             X8, [SP,#0x50+var_40]                                  ; +0x58, 0x10008b294\nB               loc_10008B2A8                                          ; +0x5c, 0x10008b298\nLDP             X1, X2, [X20]; __src                                   ; +0x60, 0x10008b29c\nMOV             X0, SP; __dst                                          ; +0x64, 0x10008b2a0\nBL              sub_1000097D0                                          ; +0x68, 0x10008b2a4\nADD             X1, SP, #0x50+__dst                                    ; +0x6c, 0x10008b2a8\nMOV             X2, SP                                                 ; +0x70, 0x10008b2ac\nMOV             X0, X19                                                ; +0x74, 0x10008b2b0\nMOV             W3, #0                                                 ; +0x78, 0x10008b2b4\nBL              GameLevelManager__processOnDownloadLevelCompleted      ; +0x7c, 0x10008b2b8\nLDRSB           W8, [SP,#0x50+var_40+7]                                ; +0x80, 0x10008b2bc\nTBZ             W8, #0x1F, loc_10008B2CC                               ; +0x84, 0x10008b2c0\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0x88, 0x10008b2c4\nBL              __ZdlPv; operator delete(void *)                       ; +0x8c, 0x10008b2c8\nLDRSB           W8, [SP,#0x50+var_20+7]                                ; +0x90, 0x10008b2cc\nTBZ             W8, #0x1F, loc_10008B2DC                               ; +0x94, 0x10008b2d0\nLDR             X0, [SP,#0x50+__dst]; __p                              ; +0x98, 0x10008b2d4\nBL              __ZdlPv; operator delete(void *)                       ; +0x9c, 0x10008b2d8\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0xa0, 0x10008b2dc\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0xa4, 0x10008b2e0\nADD             SP, SP, #0x60 ; '`'                                    ; +0xa8, 0x10008b2e4\nRET                                                                    ; +0xac, 0x10008b2e8", "xrefs": ["GameLevelManager::handleIt @ 0x100089188"], "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"}