{"type": "func", "start": 4297267088, "end": 4297267639, "name": "DailyLevelPage::dailyStatusFinished", "pseudocode": "// \n// DailyLevelPage::dailyStatusFinished from 0x100231790 to 0x1002319b7 (551 bytes)\n// \n// 2 xrefs:\n// > sub_100231BC0 @ 0x100231bcc\n// > <???> @ 0x1008e1f40\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 __fastcall DailyLevelPage::dailyStatusFinished(DailyLevelPage *a1, GJTimedLevelType a2)\n{\n  float v2; // xmm0_4\n  float v4; // xmm0_4\n  GameStatsManager *v5; // r14\n  GameLevelManager *v6; // rax\n  int DailyID; // eax\n  GameLevelManager *v8; // rax\n  int v9; // r14d\n  GameLevelManager *v10; // rax\n  DailyLevelNode *m_dailyNode; // r14\n  cocos2d::CCLabelBMFont *m_timeLabel; // rdi\n  GameLevelManager *v13; // rax\n  unsigned int v14; // r14d\n  unsigned int v15; // eax\n  int v16; // ecx\n  int v17; // r8d\n  int v18; // r9d\n  cocos2d::CCAction *v19; // rax\n  GameLevelManager *v20; // rax\n  CCMenuItemSpriteExtra *m_skipButton; // rdi\n  GJGameLevel *m_level; // rax\n  char v23[15]; // [rsp+9h] [rbp-27h] BYREF\n\n  DailyLevelPage::updateTimers(a1, v2);\n  v4 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))a1->m_timeLabel->setVisible)(a1->m_timeLabel, 1);\n  DailyLevelPage::updateTimers(a1, v4);\n  cocos2d::CCNode::unschedule(a1, (cocos2d::SEL_SCHEDULE)(unsigned __int64)DailyLevelPage::updateTimers);\n  cocos2d::CCNode::schedule_1(a1, (cocos2d::SEL_SCHEDULE)(unsigned __int64)DailyLevelPage::updateTimers, 1.0);\n  ((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_timeCircle->setVisible)(a1->m_timeCircle, 0);\n  v5 = GameStatsManager::sharedState();\n  v6 = GameLevelManager::sharedState();\n  DailyID = GameLevelManager::getDailyID(v6, a1->m_type);\n  if ( !GameStatsManager::hasCompletedDailyLevel(v5, DailyID) )\n  {\n    v8 = GameLevelManager::sharedState();\n    v9 = GameLevelManager::getDailyID(v8, a1->m_type);\n    v10 = GameLevelManager::sharedState();\n    if ( v9 > GameLevelManager::getActiveDailyID(v10, a1->m_type) )\n    {\n      m_dailyNode = a1->m_dailyNode;\n      if ( m_dailyNode )\n      {\n        if ( m_dailyNode->m_needsDownloading )\n        {\n          strcpy(v23, \"00:00:00\");\n          m_timeLabel = m_dailyNode->m_timeLabel;\n          if ( m_timeLabel )\n            ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))m_timeLabel->setString)(m_timeLabel, v23);\n          DailyLevelPage::exitDailyNode(a1, a1->m_dailyNode, 0.0);\n          a1->m_downloadStarted = 1;\n          v13 = GameLevelManager::sharedState();\n          GameLevelManager::downloadLevel(v13, a1->m_downloadLevelID, 0, 0);\n          v14 = (unsigned int)cocos2d::CCDelayTime::create(0.5);\n          v15 = (unsigned int)cocos2d::CCCallFunc::create(\n                                a1,\n                                (cocos2d::SEL_CallFunc)(unsigned __int64)DailyLevelPage::createNodeIfLoaded);\n          v19 = (cocos2d::CCAction *)sub_1003B5760(v14, v15, 0, v16, v17, v18);\n          cocos2d::CCNode::runAction(a1, v19);\n        }\n        else\n        {\n          m_skipButton = m_dailyNode->m_skipButton;\n          if ( m_skipButton )\n          {\n            m_level = m_dailyNode->m_level;\n            if ( !m_level || m_level->m_orbCompletion.random - m_level->m_orbCompletion.seed <= 99 )\n            {\n              ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))m_skipButton->setVisible)(m_skipButton, 1);\n              ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))m_dailyNode->m_skipButton->__vftable[1].setScaleY)(\n                m_dailyNode->m_skipButton,\n                1);\n            }\n          }\n        }\n      }\n      else\n      {\n        ((void (__fastcall *)(LoadingCircle *, __int64))a1->m_nodeCircle->setVisible)(a1->m_nodeCircle, 1);\n        v20 = GameLevelManager::sharedState();\n        GameLevelManager::downloadLevel(v20, a1->m_downloadLevelID, 0, 0);\n      }\n    }\n  }\n}", "assembly": "; \n; DailyLevelPage::dailyStatusFinished from 0x100231790 to 0x1002319b7 (551 bytes)\n; \n; 2 xrefs:\n; > sub_100231BC0 @ 0x100231bcc\n; > <???> @ 0x1008e1f40\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, 0x100231790\nmov     rbp, rsp                                                       ; +0x1, 0x100231791\npush    r14                                                            ; +0x4, 0x100231794\npush    rbx                                                            ; +0x6, 0x100231796\nsub     rsp, 20h                                                       ; +0x7, 0x100231797\nmov     rbx, rdi                                                       ; +0xb, 0x10023179b\ncall    DailyLevelPage__updateTimers                                   ; +0xe, 0x10023179e\nlea     r14, DailyLevelPage__updateTimers                              ; +0x13, 0x1002317a3\nmov     rdi, [rbx+290h]                                                ; +0x1a, 0x1002317aa\nmov     rax, [rdi]                                                     ; +0x21, 0x1002317b1\nmov     esi, 1                                                         ; +0x24, 0x1002317b4\ncall    qword ptr [rax+148h]                                           ; +0x29, 0x1002317b9\nmov     rdi, rbx                                                       ; +0x2f, 0x1002317bf\ncall    DailyLevelPage__updateTimers                                   ; +0x32, 0x1002317c2\nmov     rdi, rbx                                                       ; +0x37, 0x1002317c7\nmov     rsi, r14                                                       ; +0x3a, 0x1002317ca\nxor     edx, edx                                                       ; +0x3d, 0x1002317cd\ncall    cocos2d__CCNode__unschedule                                    ; +0x3f, 0x1002317cf\nmovss   xmm0, cs:alpha                                                 ; +0x44, 0x1002317d4\nmov     rdi, rbx                                                       ; +0x4c, 0x1002317dc\nmov     rsi, r14                                                       ; +0x4f, 0x1002317df\nxor     edx, edx                                                       ; +0x52, 0x1002317e2\ncall    cocos2d__CCNode__schedule_1                                    ; +0x54, 0x1002317e4\nmov     rdi, [rbx+298h]                                                ; +0x59, 0x1002317e9\nmov     rax, [rdi]                                                     ; +0x60, 0x1002317f0\nxor     esi, esi                                                       ; +0x63, 0x1002317f3\ncall    qword ptr [rax+148h]                                           ; +0x65, 0x1002317f5\ncall    GameStatsManager__sharedState                                  ; +0x6b, 0x1002317fb\nmov     r14, rax                                                       ; +0x70, 0x100231800\ncall    GameLevelManager__sharedState                                  ; +0x73, 0x100231803\nmov     esi, [rbx+2BCh]                                                ; +0x78, 0x100231808\nmov     rdi, rax                                                       ; +0x7e, 0x10023180e\ncall    GameLevelManager__getDailyID                                   ; +0x81, 0x100231811\nmov     rdi, r14                                                       ; +0x86, 0x100231816\nmov     esi, eax                                                       ; +0x89, 0x100231819\ncall    GameStatsManager__hasCompletedDailyLevel                       ; +0x8b, 0x10023181b\ntest    al, al                                                         ; +0x90, 0x100231820\njnz     loc_100231980                                                  ; +0x92, 0x100231822\ncall    GameLevelManager__sharedState                                  ; +0x98, 0x100231828\nmov     esi, [rbx+2BCh]                                                ; +0x9d, 0x10023182d\nmov     rdi, rax                                                       ; +0xa3, 0x100231833\ncall    GameLevelManager__getDailyID                                   ; +0xa6, 0x100231836\nmov     r14d, eax                                                      ; +0xab, 0x10023183b\ncall    GameLevelManager__sharedState                                  ; +0xae, 0x10023183e\nmov     esi, [rbx+2BCh]                                                ; +0xb3, 0x100231843\nmov     rdi, rax                                                       ; +0xb9, 0x100231849\ncall    GameLevelManager__getActiveDailyID                             ; +0xbc, 0x10023184c\ncmp     r14d, eax                                                      ; +0xc1, 0x100231851\njle     loc_100231980                                                  ; +0xc4, 0x100231854\nmov     r14, [rbx+2B0h]                                                ; +0xca, 0x10023185a\ntest    r14, r14                                                       ; +0xd1, 0x100231861\njz      loc_100231923                                                  ; +0xd4, 0x100231864\ncmp     byte ptr [r14+171h], 1                                         ; +0xda, 0x10023186a\njnz     loc_100231957                                                  ; +0xe2, 0x100231872\nmov     [rbp+var_28], 10h                                              ; +0xe8, 0x100231878\nmov     rax, 30303A30303A3030h                                         ; +0xec, 0x10023187c\nmov     qword ptr [rbp+var_27], rax                                    ; +0xf6, 0x100231886\nmov     [rbp+var_27+8], 0                                              ; +0xfa, 0x10023188a\nmov     rdi, [r14+158h]                                                ; +0xfe, 0x10023188e\ntest    rdi, rdi                                                       ; +0x105, 0x100231895\njz      short loc_1002318B6                                            ; +0x108, 0x100231898\nlea     rsi, [rbp+var_27]                                              ; +0x10a, 0x10023189a\nmov     rax, [rdi]                                                     ; +0x10e, 0x10023189e\ncall    qword ptr [rax+390h]                                           ; +0x111, 0x1002318a1\ntest    [rbp+var_28], 1                                                ; +0x117, 0x1002318a7\njz      short loc_1002318B6                                            ; +0x11b, 0x1002318ab\nmov     rdi, [rbp+__p]; __p                                            ; +0x11d, 0x1002318ad\ncall    __ZdlPv; operator delete(void *)                               ; +0x121, 0x1002318b1\nmov     rsi, [rbx+2B0h]                                                ; +0x126, 0x1002318b6\nxorps   xmm0, xmm0                                                     ; +0x12d, 0x1002318bd\nmov     rdi, rbx                                                       ; +0x130, 0x1002318c0\ncall    DailyLevelPage__exitDailyNode                                  ; +0x133, 0x1002318c3\nmov     byte ptr [rbx+2B8h], 1                                         ; +0x138, 0x1002318c8\ncall    GameLevelManager__sharedState                                  ; +0x13f, 0x1002318cf\nmov     esi, [rbx+2C0h]                                                ; +0x144, 0x1002318d4\nmov     rdi, rax                                                       ; +0x14a, 0x1002318da\nxor     edx, edx                                                       ; +0x14d, 0x1002318dd\nxor     ecx, ecx                                                       ; +0x14f, 0x1002318df\ncall    GameLevelManager__downloadLevel                                ; +0x151, 0x1002318e1\nmovss   xmm0, cs:dword_100814FA8                                       ; +0x156, 0x1002318e6\ncall    cocos2d__CCDelayTime__create                                   ; +0x15e, 0x1002318ee\nmov     r14, rax                                                       ; +0x163, 0x1002318f3\nlea     rsi, DailyLevelPage__createNodeIfLoaded                        ; +0x166, 0x1002318f6\nmov     rdi, rbx                                                       ; +0x16d, 0x1002318fd\nxor     edx, edx                                                       ; +0x170, 0x100231900\ncall    cocos2d__CCCallFunc__create                                    ; +0x172, 0x100231902\nmov     rdi, r14                                                       ; +0x177, 0x100231907\nmov     rsi, rax                                                       ; +0x17a, 0x10023190a\nxor     edx, edx                                                       ; +0x17d, 0x10023190d\nxor     eax, eax                                                       ; +0x17f, 0x10023190f\ncall    sub_1003B5760                                                  ; +0x181, 0x100231911\nmov     rdi, rbx                                                       ; +0x186, 0x100231916\nmov     rsi, rax                                                       ; +0x189, 0x100231919\ncall    cocos2d__CCNode__runAction                                     ; +0x18c, 0x10023191c\njmp     short loc_100231980                                            ; +0x191, 0x100231921\nmov     rdi, [rbx+2A0h]                                                ; +0x193, 0x100231923\nmov     rax, [rdi]                                                     ; +0x19a, 0x10023192a\nmov     esi, 1                                                         ; +0x19d, 0x10023192d\ncall    qword ptr [rax+148h]                                           ; +0x1a2, 0x100231932\ncall    GameLevelManager__sharedState                                  ; +0x1a8, 0x100231938\nmov     esi, [rbx+2C0h]                                                ; +0x1ad, 0x10023193d\nmov     rdi, rax                                                       ; +0x1b3, 0x100231943\nxor     edx, edx                                                       ; +0x1b6, 0x100231946\nxor     ecx, ecx                                                       ; +0x1b8, 0x100231948\nadd     rsp, 20h                                                       ; +0x1ba, 0x10023194a\npop     rbx                                                            ; +0x1be, 0x10023194e\npop     r14                                                            ; +0x1bf, 0x10023194f\npop     rbp                                                            ; +0x1c1, 0x100231951\njmp     GameLevelManager__downloadLevel                                ; +0x1c2, 0x100231952\nmov     rdi, [r14+168h]                                                ; +0x1c7, 0x100231957\ntest    rdi, rdi                                                       ; +0x1ce, 0x10023195e\njz      short loc_100231980                                            ; +0x1d1, 0x100231961\nmov     rax, [r14+148h]                                                ; +0x1d3, 0x100231963\ntest    rax, rax                                                       ; +0x1da, 0x10023196a\njz      short loc_100231989                                            ; +0x1dd, 0x10023196d\nmov     ecx, [rax+2ECh]                                                ; +0x1df, 0x10023196f\nsub     ecx, [rax+2F0h]                                                ; +0x1e5, 0x100231975\ncmp     ecx, 63h ; 'c'                                                 ; +0x1eb, 0x10023197b\njle     short loc_100231989                                            ; +0x1ee, 0x10023197e\nadd     rsp, 20h                                                       ; +0x1f0, 0x100231980\npop     rbx                                                            ; +0x1f4, 0x100231984\npop     r14                                                            ; +0x1f5, 0x100231985\npop     rbp                                                            ; +0x1f7, 0x100231987\nretn                                                                   ; +0x1f8, 0x100231988\nmov     rax, [rdi]                                                     ; +0x1f9, 0x100231989\nmov     esi, 1                                                         ; +0x1fc, 0x10023198c\ncall    qword ptr [rax+148h]                                           ; +0x201, 0x100231991\nmov     rdi, [r14+168h]                                                ; +0x207, 0x100231997\nmov     rax, [rdi]                                                     ; +0x20e, 0x10023199e\nmov     rax, [rax+4E8h]                                                ; +0x211, 0x1002319a1\nmov     esi, 1                                                         ; +0x218, 0x1002319a8\nadd     rsp, 20h                                                       ; +0x21d, 0x1002319ad\npop     rbx                                                            ; +0x221, 0x1002319b1\npop     r14                                                            ; +0x222, 0x1002319b2\npop     rbp                                                            ; +0x224, 0x1002319b4\njmp     rax                                                            ; +0x225, 0x1002319b5", "xrefs": ["sub_100231BC0 @ 0x100231bcc", "<???> @ 0x1008e1f40"], "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"}