{"type": "func", "start": 4295562908, "end": 4295563128, "name": "GameLevelManager::onUploadLevelListCompleted", "pseudocode": "// \n// GameLevelManager::onUploadLevelListCompleted from 0x10009169c to 0x100091778 (220 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::handleIt @ 0x100089a00\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::onUploadLevelListCompleted(__int64 a1, const char *a2, const char *a3)\n{\n  const char *v3; // x21\n  int v6; // w21\n  __int64 result; // x0\n  __int64 v8; // x20\n  GJLevelList *v9; // x0\n  GJLevelList *v10; // x1\n  __int64 v11; // x19\n  GJLevelList *LocalLevelList; // x1\n\n  v3 = a3;\n  sub_1000B3B54(a1 + 320, a3);\n  if ( v3[23] < 0 )\n    v3 = *(const char **)v3;\n  v6 = atoi(v3);\n  if ( a2[23] < 0 )\n    a2 = *(const char **)a2;\n  result = atoi(a2);\n  v8 = result;\n  if ( (result & 0x80000000) != 0 )\n  {\n    v11 = *(_QWORD *)(a1 + 760);\n    if ( v11 )\n    {\n      LocalLevelList = GameLevelManager::getLocalLevelList((GameLevelManager *)result, v6);\n      return (*(__int64 (__fastcall **)(__int64, GJLevelList *, __int64))(*(_QWORD *)v11 + 8LL))(\n               v11,\n               LocalLevelList,\n               v8);\n    }\n  }\n  else\n  {\n    v9 = GameLevelManager::getLocalLevelList((GameLevelManager *)result, v6);\n    v10 = v9;\n    if ( v9 )\n    {\n      v9->m_listID = v8;\n      v9->m_uploaded = 1;\n    }\n    result = *(_QWORD *)(a1 + 760);\n    if ( result )\n      return (**(__int64 (__fastcall ***)(__int64, GJLevelList *))result)(result, v10);\n  }\n  return result;\n}", "assembly": "; \n; GameLevelManager::onUploadLevelListCompleted from 0x10009169c to 0x100091778 (220 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::handleIt @ 0x100089a00\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x10009169c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1000916a0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1000916a4\nADD             X29, SP, #0x20                                         ; +0xc, 0x1000916a8\nMOV             X21, X2                                                ; +0x10, 0x1000916ac\nMOV             X20, X1                                                ; +0x14, 0x1000916b0\nMOV             X19, X0                                                ; +0x18, 0x1000916b4\nADD             X0, X0, #0x140                                         ; +0x1c, 0x1000916b8\nMOV             X1, X2                                                 ; +0x20, 0x1000916bc\nBL              sub_1000B3B54                                          ; +0x24, 0x1000916c0\nLDRSB           W8, [X21,#0x17]                                        ; +0x28, 0x1000916c4\nTBZ             W8, #0x1F, loc_1000916D0                               ; +0x2c, 0x1000916c8\nLDR             X21, [X21]                                             ; +0x30, 0x1000916cc\nMOV             X0, X21; char *                                        ; +0x34, 0x1000916d0\nBL              _atoi                                                  ; +0x38, 0x1000916d4\nMOV             X21, X0                                                ; +0x3c, 0x1000916d8\nLDRSB           W8, [X20,#0x17]                                        ; +0x40, 0x1000916dc\nTBZ             W8, #0x1F, loc_1000916E8                               ; +0x44, 0x1000916e0\nLDR             X20, [X20]                                             ; +0x48, 0x1000916e4\nMOV             X0, X20; char *                                        ; +0x4c, 0x1000916e8\nBL              _atoi                                                  ; +0x50, 0x1000916ec\nMOV             X20, X0                                                ; +0x54, 0x1000916f0\nTBNZ            W0, #0x1F, loc_100091734                               ; +0x58, 0x1000916f4\nMOV             X1, X21                                                ; +0x5c, 0x1000916f8\nBL              GameLevelManager__getLocalLevelList                    ; +0x60, 0x1000916fc\nMOV             X1, X0                                                 ; +0x64, 0x100091700\nCBZ             X0, loc_100091714                                      ; +0x68, 0x100091704\nSTR             W20, [X1,#0x158]                                       ; +0x6c, 0x100091708\nMOV             W8, #1                                                 ; +0x70, 0x10009170c\nSTRB            W8, [X1,#0x18B]                                        ; +0x74, 0x100091710\nLDR             X0, [X19,#0x2F8]                                       ; +0x78, 0x100091714\nCBZ             X0, loc_100091768                                      ; +0x7c, 0x100091718\nLDR             X8, [X0]                                               ; +0x80, 0x10009171c\nLDR             X2, [X8]                                               ; +0x84, 0x100091720\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x88, 0x100091724\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x8c, 0x100091728\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x90, 0x10009172c\nBR              X2                                                     ; +0x94, 0x100091730\nLDR             X19, [X19,#0x2F8]                                      ; +0x98, 0x100091734\nCBZ             X19, loc_100091768                                     ; +0x9c, 0x100091738\nMOV             X1, X21                                                ; +0xa0, 0x10009173c\nBL              GameLevelManager__getLocalLevelList                    ; +0xa4, 0x100091740\nMOV             X1, X0                                                 ; +0xa8, 0x100091744\nLDR             X8, [X19]                                              ; +0xac, 0x100091748\nLDR             X3, [X8,#8]                                            ; +0xb0, 0x10009174c\nMOV             X0, X19                                                ; +0xb4, 0x100091750\nMOV             X2, X20                                                ; +0xb8, 0x100091754\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xbc, 0x100091758\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xc0, 0x10009175c\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xc4, 0x100091760\nBR              X3                                                     ; +0xc8, 0x100091764\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xcc, 0x100091768\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xd0, 0x10009176c\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xd4, 0x100091770\nRET                                                                    ; +0xd8, 0x100091774", "xrefs": ["GameLevelManager::handleIt @ 0x100089a00"], "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"}