{"type": "func", "start": 4300412416, "end": 4300412488, "name": "GameLevelManager::getSavedLevel_1", "pseudocode": "// \n// GameLevelManager::getSavedLevel_1 from 0x100531600 to 0x100531648 (72 bytes)\n// \n// 3 xrefs:\n// > DailyLevelPage::refreshDailyPage @ 0x100232649\n// > GauntletLayer::unlockActiveItem @ 0x100394b7e\n// > InfoLayer::onLevelInfo @ 0x1007b18a4\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\nGJGameLevel *__fastcall GameLevelManager::getSavedLevel_1(GameLevelManager *a1, GJGameLevel *a2)\n{\n  int random; // eax\n  bool v3; // cc\n  int v4; // eax\n  int v6; // eax\n\n  if ( !a2 )\n    return nullptr;\n  random = a2->m_dailyID.random;\n  v3 = random <= a2->m_dailyID.seed;\n  v4 = random - a2->m_dailyID.seed;\n  if ( !v3 )\n    return GameLevelManager::getSavedDailyLevel(a1, v4);\n  v6 = a2->m_levelID.random - a2->m_levelID.seed;\n  if ( a2->m_gauntletLevel )\n    return GameLevelManager::getSavedGauntletLevel(a1, v6);\n  else\n    return GameLevelManager::getSavedLevel(a1, v6);\n}", "assembly": "; \n; GameLevelManager::getSavedLevel_1 from 0x100531600 to 0x100531648 (72 bytes)\n; \n; 3 xrefs:\n; > DailyLevelPage::refreshDailyPage @ 0x100232649\n; > GauntletLayer::unlockActiveItem @ 0x100394b7e\n; > InfoLayer::onLevelInfo @ 0x1007b18a4\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\npush    rbp                                                            ; +0x0, 0x100531600\nmov     rbp, rsp                                                       ; +0x1, 0x100531601\ntest    rsi, rsi                                                       ; +0x4, 0x100531604\njz      short loc_10053161F                                            ; +0x7, 0x100531607\nmov     eax, [rsi+324h]                                                ; +0x9, 0x100531609\nsub     eax, [rsi+328h]                                                ; +0xf, 0x10053160f\njle     short loc_100531623                                            ; +0x15, 0x100531615\nmov     esi, eax                                                       ; +0x17, 0x100531617\npop     rbp                                                            ; +0x19, 0x100531619\njmp     GameLevelManager__getSavedDailyLevel                           ; +0x1a, 0x10053161a\nxor     eax, eax                                                       ; +0x1f, 0x10053161f\npop     rbp                                                            ; +0x21, 0x100531621\nretn                                                                   ; +0x22, 0x100531622\nmov     eax, [rsi+148h]                                                ; +0x23, 0x100531623\nsub     eax, [rsi+14Ch]                                                ; +0x29, 0x100531629\ncmp     byte ptr [rsi+281h], 1                                         ; +0x2f, 0x10053162f\njnz     short loc_100531640                                            ; +0x36, 0x100531636\nmov     esi, eax                                                       ; +0x38, 0x100531638\npop     rbp                                                            ; +0x3a, 0x10053163a\njmp     GameLevelManager__getSavedGauntletLevel                        ; +0x3b, 0x10053163b\nmov     esi, eax                                                       ; +0x40, 0x100531640\npop     rbp                                                            ; +0x42, 0x100531642\njmp     GameLevelManager__getSavedLevel                                ; +0x43, 0x100531643", "xrefs": ["DailyLevelPage::refreshDailyPage @ 0x100232649", "GauntletLayer::unlockActiveItem @ 0x100394b7e", "InfoLayer::onLevelInfo @ 0x1007b18a4"], "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"}