{"type": "func", "start": 9525652, "end": 9525780, "name": "DailyLevelPage::refreshDailyPage", "pseudocode": "// \n// DailyLevelPage::refreshDailyPage from 0x915994 to 0x915a14 (128 bytes)\n// \n// 2 xrefs:\n// > CreatorLayer::sceneWillResume @ 0x6cbf60\n// > <???> @ 0xbdb70\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\nvoid DailyLevelPage::refreshDailyPage(DailyLevelPage *a1)\n{\n  DailyLevelNode *m_dailyNode; // x1\n  GJGameLevel *m_level; // x20\n  GameLevelManager *v4; // x0\n  GJGameLevel *SavedLevel; // x1\n  DailyLevelNode *v6; // x21\n\n  m_dailyNode = a1->m_dailyNode;\n  if ( m_dailyNode )\n  {\n    if ( !m_dailyNode->m_needsDownloading )\n    {\n      m_level = m_dailyNode->m_level;\n      if ( m_level )\n      {\n        v4 = GameLevelManager::sharedState();\n        SavedLevel = GameLevelManager::getSavedLevel(v4, m_level);\n        v6 = a1->m_dailyNode;\n        if ( !SavedLevel )\n          SavedLevel = m_level;\n        a1->m_dailyNode = nullptr;\n        DailyLevelPage::createDailyNode(a1, SavedLevel, 1, 0.0, 0);\n        v6->removeMeAndCleanup(v6);\n      }\n    }\n  }\n}", "assembly": "; \n; DailyLevelPage::refreshDailyPage from 0x915994 to 0x915a14 (128 bytes)\n; \n; 2 xrefs:\n; > CreatorLayer::sceneWillResume @ 0x6cbf60\n; > <???> @ 0xbdb70\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             X29, X30, [SP,#var_30]!                                ; +0x0, 0x915994\nMOV             X29, SP                                                ; +0x4, 0x915998\nLDR             X1, [X0,#0x2B0]                                        ; +0x8, 0x91599c\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0xc, 0x9159a0\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x10, 0x9159a4\nCBZ             X1, loc_915A04                                         ; +0x14, 0x9159a8\nLDRB            W2, [X1,#0x171]                                        ; +0x18, 0x9159ac\nCBNZ            W2, loc_915A04                                         ; +0x1c, 0x9159b0\nLDR             X20, [X1,#0x148]                                       ; +0x20, 0x9159b4\nCBZ             X20, loc_915A04                                        ; +0x24, 0x9159b8\nMOV             X19, X0                                                ; +0x28, 0x9159bc\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x2c, 0x9159c0\nMOV             X1, X20; GJGameLevel *                                 ; +0x30, 0x9159c4\nBL              _ZN16GameLevelManager13getSavedLevelEP11GJGameLevel; GameLevelManager::getSavedLevel(GJGameLevel *) ; +0x34, 0x9159c8\nCMP             X0, XZR                                                ; +0x38, 0x9159cc\nFMOV            S0, WZR; float                                         ; +0x3c, 0x9159d0\nMOV             X1, X0                                                 ; +0x40, 0x9159d4\nLDR             X21, [X19,#0x2B0]                                      ; +0x44, 0x9159d8\nCSEL            X1, X1, X20, NE; GJGameLevel *                         ; +0x48, 0x9159dc\nSTR             XZR, [X19,#0x2B0]                                      ; +0x4c, 0x9159e0\nMOV             X0, X19; this                                          ; +0x50, 0x9159e4\nMOV             W2, #1; bool                                           ; +0x54, 0x9159e8\nMOV             W3, #0; bool                                           ; +0x58, 0x9159ec\nBL              _ZN14DailyLevelPage15createDailyNodeEP11GJGameLevelbfb; DailyLevelPage::createDailyNode(GJGameLevel *,bool,float,bool) ; +0x5c, 0x9159f0\nLDR             X1, [X21]                                              ; +0x60, 0x9159f4\nMOV             X0, X21                                                ; +0x64, 0x9159f8\nLDR             X1, [X1,#0x208]                                        ; +0x68, 0x9159fc\nBLR             X1                                                     ; +0x6c, 0x915a00\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x70, 0x915a04\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x74, 0x915a08\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x78, 0x915a0c\nRET                                                                    ; +0x7c, 0x915a10", "xrefs": ["CreatorLayer::sceneWillResume @ 0x6cbf60", "<???> @ 0xbdb70"], "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"}