{"type": "func", "start": 5068936, "end": 5069016, "name": "DailyLevelPage::refreshDailyPage", "pseudocode": "// \n// DailyLevelPage::refreshDailyPage from 0x4d5888 to 0x4d58d8 (80 bytes)\n// \n// 1 xrefs:\n// > CreatorLayer::sceneWillResume @ 0x3ab2c2\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; // r3\n  _BOOL4 m_needsDownloading; // r6\n  GJGameLevel *m_level; // r4\n  GameLevelManager *v5; // r0\n  GJGameLevel *SavedLevel; // r0\n  DailyLevelNode *v7; // r7\n\n  m_dailyNode = a1->m_dailyNode;\n  if ( m_dailyNode )\n  {\n    m_needsDownloading = m_dailyNode->m_needsDownloading;\n    if ( !m_dailyNode->m_needsDownloading )\n    {\n      m_level = m_dailyNode->m_level;\n      if ( m_level )\n      {\n        v5 = GameLevelManager::sharedState();\n        SavedLevel = GameLevelManager::getSavedLevel(v5, m_level);\n        v7 = a1->m_dailyNode;\n        a1->m_dailyNode = (DailyLevelNode *)m_needsDownloading;\n        if ( SavedLevel )\n          m_level = SavedLevel;\n        DailyLevelPage::createDailyNode(a1, m_level, 1, 0.0, m_needsDownloading);\n        v7->removeMeAndCleanup(v7);\n      }\n    }\n  }\n}", "assembly": "; \n; DailyLevelPage::refreshDailyPage from 0x4d5888 to 0x4d58d8 (80 bytes)\n; \n; 1 xrefs:\n; > CreatorLayer::sceneWillResume @ 0x3ab2c2\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\nLDR.W           R3, [R0,#0x20C]                                        ; +0x0, 0x4d5888\nPUSH            {R0-R2,R4-R7,LR}                                       ; +0x4, 0x4d588c\nMOV             R5, R0                                                 ; +0x6, 0x4d588e\nCBZ             R3, loc_4D58D4                                         ; +0x8, 0x4d5890\nLDRB.W          R6, [R3,#0x125]                                        ; +0xa, 0x4d5892\nCBNZ            R6, loc_4D58D4                                         ; +0xe, 0x4d5896\nLDR.W           R4, [R3,#0x10C]                                        ; +0x10, 0x4d5898\nCBZ             R4, loc_4D58D4                                         ; +0x14, 0x4d589c\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x16, 0x4d589e\nMOV             R1, R4; GJGameLevel *                                  ; +0x1a, 0x4d58a2\nBL              _ZN16GameLevelManager13getSavedLevelEP11GJGameLevel; GameLevelManager::getSavedLevel(GJGameLevel *) ; +0x1c, 0x4d58a4\nLDR.W           R7, [R5,#0x20C]                                        ; +0x20, 0x4d58a8\nSTR             R6, [SP,#0xC+var_C]; DailyLevelPage *                  ; +0x24, 0x4d58ac\nMOVS            R2, #1; bool                                           ; +0x26, 0x4d58ae\nSTR.W           R6, [R5,#0x20C]                                        ; +0x28, 0x4d58b0\nMOVS            R3, #0; float                                          ; +0x2c, 0x4d58b4\nCMP             R0, #0                                                 ; +0x2e, 0x4d58b6\nIT NE                                                                  ; +0x30, 0x4d58b8\nMOVNE           R4, R0                                                 ; +0x32, 0x4d58ba\nMOV             R0, R5; this                                           ; +0x34, 0x4d58bc\nMOV             R1, R4; GJGameLevel *                                  ; +0x36, 0x4d58be\nBL              _ZN14DailyLevelPage15createDailyNodeEP11GJGameLevelbfb; DailyLevelPage::createDailyNode(GJGameLevel *,bool,float,bool) ; +0x38, 0x4d58c0\nLDR             R3, [R7]                                               ; +0x3c, 0x4d58c4\nMOV             R0, R7                                                 ; +0x3e, 0x4d58c6\nLDR.W           R3, [R3,#0x104]                                        ; +0x40, 0x4d58c8\nADD             SP, SP, #0xC                                           ; +0x44, 0x4d58cc\nPOP.W           {R4-R7,LR}                                             ; +0x46, 0x4d58ce\nBX              R3                                                     ; +0x4a, 0x4d58d2\nADD             SP, SP, #0xC                                           ; +0x4c, 0x4d58d4\nPOP             {R4-R7,PC}                                             ; +0x4e, 0x4d58d6", "xrefs": ["CreatorLayer::sceneWillResume @ 0x3ab2c2"], "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"}