{"type": "func", "start": 4296237924, "end": 4296238012, "name": "LevelCell::recallSavedLevel", "pseudocode": "// \n// LevelCell::recallSavedLevel from 0x100136364 to 0x1001363bc (88 bytes)\n// \n// 1 xrefs:\n// > LevelCell::loadCustomLevelCell @ 0x1001338bc\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 10:59:27 +0000\n// \n\n__int64 __fastcall LevelCell::recallSavedLevel(__int64 a1)\n{\n  __int64 v2; // x0\n  __int64 result; // x0\n\n  v2 = GameLevelManager::sharedState();\n  result = GameLevelManager::getSavedDailyLevel(v2, *(_DWORD *)(*(_QWORD *)(a1 + 560) + 1292LL));\n  if ( !result\n    || *(_DWORD *)(result + 328) - *(_DWORD *)(result + 332) != *(_DWORD *)(*(_QWORD *)(a1 + 560) + 328LL)\n                                                              - *(_DWORD *)(*(_QWORD *)(a1 + 560) + 332LL) )\n  {\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; LevelCell::recallSavedLevel from 0x100136364 to 0x1001363bc (88 bytes)\n; \n; 1 xrefs:\n; > LevelCell::loadCustomLevelCell @ 0x1001338bc\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 10:59:27 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100136364\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100136368\nADD             X29, SP, #0x10                                         ; +0x8, 0x10013636c\nMOV             X19, X0                                                ; +0xc, 0x100136370\nBL              GameLevelManager__sharedState                          ; +0x10, 0x100136374\nLDR             X8, [X19,#0x230]                                       ; +0x14, 0x100136378\nLDR             W1, [X8,#0x50C]                                        ; +0x18, 0x10013637c\nBL              GameLevelManager__getSavedDailyLevel                   ; +0x1c, 0x100136380\nCBZ             X0, loc_1001363AC                                      ; +0x20, 0x100136384\nLDR             W8, [X0,#0x148]                                        ; +0x24, 0x100136388\nLDR             W9, [X0,#0x14C]                                        ; +0x28, 0x10013638c\nSUB             W8, W8, W9                                             ; +0x2c, 0x100136390\nLDR             X9, [X19,#0x230]                                       ; +0x30, 0x100136394\nLDR             W10, [X9,#0x148]                                       ; +0x34, 0x100136398\nLDR             W9, [X9,#0x14C]                                        ; +0x38, 0x10013639c\nSUB             W9, W10, W9                                            ; +0x3c, 0x1001363a0\nCMP             W8, W9                                                 ; +0x40, 0x1001363a4\nB.EQ            loc_1001363B0                                          ; +0x44, 0x1001363a8\nMOV             X0, #0                                                 ; +0x48, 0x1001363ac\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4c, 0x1001363b0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x50, 0x1001363b4\nRET                                                                    ; +0x54, 0x1001363b8", "xrefs": ["LevelCell::loadCustomLevelCell @ 0x1001338bc"], "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"}