{"type": "func", "start": 4300484240, "end": 4300484312, "name": "GameLevelManager::getSavedLevel_1", "pseudocode": "// \n// GameLevelManager::getSavedLevel_1 from 0x100542e90 to 0x100542ed8 (72 bytes)\n// \n// 5 xrefs:\n// > EditLevelLayer::onDeathTracker @ 0x1001dfa48\n// > DailyLevelPage::refreshDailyPage @ 0x100216c99\n// > sub_1002AF600 @ 0x1002af628\n// > GauntletLayer::unlockActiveItem @ 0x10037faee\n// > InfoLayer::onLevelInfo @ 0x100894f54\n// \n// This function is hookable on this platform (idp: pc, 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 12:31:58 +0000\n// \n\n__int64 __fastcall GameLevelManager::getSavedLevel_1(__int64 a1, __int64 a2)\n{\n  int v2; // eax\n  bool v3; // cc\n  unsigned int v4; // eax\n  unsigned int v6; // eax\n\n  if ( !a2 )\n    return 0;\n  v2 = *(_DWORD *)(a2 + 920);\n  v3 = v2 <= *(_DWORD *)(a2 + 924);\n  v4 = v2 - *(_DWORD *)(a2 + 924);\n  if ( !v3 )\n    return GameLevelManager::getSavedDailyLevel(a1, v4);\n  v6 = *(_DWORD *)(a2 + 328) - *(_DWORD *)(a2 + 332);\n  if ( *(_BYTE *)(a2 + 649) == 1 )\n    return GameLevelManager::getSavedGauntletLevel(a1, v6);\n  else\n    return GameLevelManager::getSavedLevel(a1, v6);\n}", "assembly": "; \n; GameLevelManager::getSavedLevel_1 from 0x100542e90 to 0x100542ed8 (72 bytes)\n; \n; 5 xrefs:\n; > EditLevelLayer::onDeathTracker @ 0x1001dfa48\n; > DailyLevelPage::refreshDailyPage @ 0x100216c99\n; > sub_1002AF600 @ 0x1002af628\n; > GauntletLayer::unlockActiveItem @ 0x10037faee\n; > InfoLayer::onLevelInfo @ 0x100894f54\n; \n; This function is hookable on this platform (idp: pc, 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 12:31:58 +0000\n; \npush    rbp                                                            ; +0x0, 0x100542e90\nmov     rbp, rsp                                                       ; +0x1, 0x100542e91\ntest    rsi, rsi                                                       ; +0x4, 0x100542e94\njz      short loc_100542EAF                                            ; +0x7, 0x100542e97\nmov     eax, [rsi+398h]                                                ; +0x9, 0x100542e99\nsub     eax, [rsi+39Ch]                                                ; +0xf, 0x100542e9f\njle     short loc_100542EB3                                            ; +0x15, 0x100542ea5\nmov     esi, eax                                                       ; +0x17, 0x100542ea7\npop     rbp                                                            ; +0x19, 0x100542ea9\njmp     GameLevelManager__getSavedDailyLevel                           ; +0x1a, 0x100542eaa\nxor     eax, eax                                                       ; +0x1f, 0x100542eaf\npop     rbp                                                            ; +0x21, 0x100542eb1\nretn                                                                   ; +0x22, 0x100542eb2\nmov     eax, [rsi+148h]                                                ; +0x23, 0x100542eb3\nsub     eax, [rsi+14Ch]                                                ; +0x29, 0x100542eb9\ncmp     byte ptr [rsi+289h], 1                                         ; +0x2f, 0x100542ebf\njnz     short loc_100542ED0                                            ; +0x36, 0x100542ec6\nmov     esi, eax                                                       ; +0x38, 0x100542ec8\npop     rbp                                                            ; +0x3a, 0x100542eca\njmp     GameLevelManager__getSavedGauntletLevel                        ; +0x3b, 0x100542ecb\nmov     esi, eax                                                       ; +0x40, 0x100542ed0\npop     rbp                                                            ; +0x42, 0x100542ed2\njmp     GameLevelManager__getSavedLevel                                ; +0x43, 0x100542ed3", "xrefs": ["EditLevelLayer::onDeathTracker @ 0x1001dfa48", "DailyLevelPage::refreshDailyPage @ 0x100216c99", "sub_1002AF600 @ 0x1002af628", "GauntletLayer::unlockActiveItem @ 0x10037faee", "InfoLayer::onLevelInfo @ 0x100894f54"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}