{"type": "func", "start": 4297452896, "end": 4297453036, "name": "LocalLevelManager::getCreatedLevels", "pseudocode": "// \n// LocalLevelManager::getCreatedLevels from 0x10025ed60 to 0x10025edec (140 bytes)\n// \n// 1 xrefs:\n// > LevelBrowserLayer::loadPage @ 0x100498490\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:01:37 +0000\n// \n\n__int64 __fastcall LocalLevelManager::getCreatedLevels(__int64 a1, int a2)\n{\n  __int64 v4; // x19\n  __int64 v5; // x8\n  unsigned int *v6; // x9\n  __int64 v7; // x8\n  __int64 *v8; // x21\n  unsigned __int64 v9; // x22\n  __int64 v10; // x1\n\n  if ( a2 <= 0 )\n    return *(_QWORD *)(a1 + 360);\n  v4 = sub_1002E736C(a1);\n  v5 = *(_QWORD *)(a1 + 360);\n  if ( v5 )\n  {\n    v6 = *(unsigned int **)(v5 + 56);\n    v7 = *v6;\n    if ( (_DWORD)v7 )\n    {\n      v8 = *((__int64 **)v6 + 2);\n      v9 = (unsigned __int64)&v8[v7 - 1];\n      do\n      {\n        v10 = *v8;\n        if ( !*v8 )\n          break;\n        if ( *(_DWORD *)(v10 + 916) == a2 )\n          sub_1002E74E0(v4, v10);\n        ++v8;\n      }\n      while ( (unsigned __int64)v8 <= v9 );\n    }\n  }\n  return v4;\n}", "assembly": "; \n; LocalLevelManager::getCreatedLevels from 0x10025ed60 to 0x10025edec (140 bytes)\n; \n; 1 xrefs:\n; > LevelBrowserLayer::loadPage @ 0x100498490\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:01:37 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x10025ed60\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10025ed64\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10025ed68\nADD             X29, SP, #0x20                                         ; +0xc, 0x10025ed6c\nMOV             X21, X0                                                ; +0x10, 0x10025ed70\nCMP             W1, #0                                                 ; +0x14, 0x10025ed74\nB.LE            loc_10025EDD4                                          ; +0x18, 0x10025ed78\nMOV             X20, X1                                                ; +0x1c, 0x10025ed7c\nBL              sub_1002E736C                                          ; +0x20, 0x10025ed80\nMOV             X19, X0                                                ; +0x24, 0x10025ed84\nLDR             X8, [X21,#0x168]                                       ; +0x28, 0x10025ed88\nCBZ             X8, loc_10025EDD8                                      ; +0x2c, 0x10025ed8c\nLDR             X9, [X8,#0x38]                                         ; +0x30, 0x10025ed90\nLDR             W8, [X9]                                               ; +0x34, 0x10025ed94\nCBZ             W8, loc_10025EDD8                                      ; +0x38, 0x10025ed98\nLDR             X21, [X9,#0x10]                                        ; +0x3c, 0x10025ed9c\nADD             X8, X21, X8,LSL#3                                      ; +0x40, 0x10025eda0\nSUB             X22, X8, #8                                            ; +0x44, 0x10025eda4\nLDR             X1, [X21]                                              ; +0x48, 0x10025eda8\nCBZ             X1, loc_10025EDD8                                      ; +0x4c, 0x10025edac\nLDR             W8, [X1,#0x394]                                        ; +0x50, 0x10025edb0\nCMP             W8, W20                                                ; +0x54, 0x10025edb4\nB.NE            loc_10025EDC4                                          ; +0x58, 0x10025edb8\nMOV             X0, X19                                                ; +0x5c, 0x10025edbc\nBL              sub_1002E74E0                                          ; +0x60, 0x10025edc0\nADD             X21, X21, #8                                           ; +0x64, 0x10025edc4\nCMP             X21, X22                                               ; +0x68, 0x10025edc8\nB.LS            loc_10025EDA8                                          ; +0x6c, 0x10025edcc\nB               loc_10025EDD8                                          ; +0x70, 0x10025edd0\nLDR             X19, [X21,#0x168]                                      ; +0x74, 0x10025edd4\nMOV             X0, X19                                                ; +0x78, 0x10025edd8\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x7c, 0x10025eddc\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x80, 0x10025ede0\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x84, 0x10025ede4\nRET                                                                    ; +0x88, 0x10025ede8", "xrefs": ["LevelBrowserLayer::loadPage @ 0x100498490"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}