// // DailyLevelPage::dailyStatusFinished from 0x1400cf990 to 0x1400cfc87 (759 bytes) // // 2 xrefs: // > @ 0x14054fe30 // > @ 0x1406c852c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=6 void DailyLevelPage::dailyStatusFinished(DailyLevelPage *a1, GJTimedLevelType a2) { DailyLevelPage *v3; // rbp __int64 v4; // rdx _DWORD *v5; // rsi float m_fRotationY; // ecx int v7; // edi int v8; // ecx int v9; // esi GameStatsManager *v10; // rcx _DWORD *v11; // rcx float v12; // edx int v13; // edx int v14; // esi __int64 m_fRotationY_low; // rdx DailyLevelNode *v16; // rcx GameLevelManager *v17; // rcx cocos2d::CCLabelBMFont *m_timeLabel; // rcx __int128 v19; // [rsp+20h] [rbp-28h] BYREF __int64 v20; // [rsp+30h] [rbp-18h] __int64 v21; // [rsp+38h] [rbp-10h] void *v22; // [rsp+50h] [rbp+8h] void *v23; // [rsp+50h] [rbp+8h] void *v24; // [rsp+50h] [rbp+8h] void *v25; // [rsp+50h] [rbp+8h] void *v26; // [rsp+50h] [rbp+8h] v3 = (DailyLevelPage *)((char *)a1 - 640); DailyLevelPage::updateTimers((DailyLevelPage *)((char *)a1 - 640), 0.0); LOBYTE(v4) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)&a1->m_nTag + 320LL))(*(_QWORD *)&a1->m_nTag, v4); DailyLevelPage::updateTimers(v3, 0.0); cocos2d::CCNode::unschedule(v3, DailyLevelPage::updateTimers); cocos2d::CCNode::schedule(v3, DailyLevelPage::updateTimers); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_uAutoReleaseCount + 320LL))( *(_QWORD *)&a1->m_uAutoReleaseCount, 0); v5 = (_DWORD *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v22 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280(v22); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v5 = (_DWORD *)qword_1406C2EC0; } m_fRotationY = a1->m_fRotationY; v7 = 0; if ( m_fRotationY == 0.0 ) { v9 = v5[113]; } else { v8 = LODWORD(m_fRotationY) - 1; if ( v8 ) { if ( v8 == 1 ) v9 = v5[119]; else v9 = 0; } else { v9 = v5[116]; } } v10 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v23 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v23); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v10 = (GameStatsManager *)qword_1406C2EE8; } if ( !GameStatsManager::hasCompletedDailyLevel(v10, v9) ) { v11 = (_DWORD *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v24 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280(v24); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v11 = (_DWORD *)qword_1406C2EC0; } v12 = a1->m_fRotationY; if ( v12 == 0.0 ) { v14 = v11[113]; } else { v13 = LODWORD(v12) - 1; if ( v13 ) { if ( v13 == 1 ) v14 = v11[119]; else v14 = 0; } else { v14 = v11[116]; } } if ( !v11 ) { v25 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280(v25); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v11 = (_DWORD *)qword_1406C2EC0; } m_fRotationY_low = LODWORD(a1->m_fRotationY); if ( (_DWORD)m_fRotationY_low ) { m_fRotationY_low = (unsigned int)(m_fRotationY_low - 1); if ( (_DWORD)m_fRotationY_low ) { if ( (_DWORD)m_fRotationY_low == 1 ) v7 = v11[120]; } else { v7 = v11[117]; } } else { v7 = v11[114]; } if ( v14 > v7 ) { v16 = *(DailyLevelNode **)&a1->m_uOrderOfArrival; if ( v16 ) { if ( v16->m_needsDownloading ) { v20 = 8; v21 = 15; v19 = *(unsigned __int64 *)"00:00:00"; m_timeLabel = v16->m_timeLabel; if ( m_timeLabel ) m_timeLabel->setString(&m_timeLabel->cocos2d::CCLabelProtocol, (const char *)&v19); sub_14003A830((__int64)&v19); DailyLevelPage::exitDailyNode(v3, *(DailyLevelNode **)&a1->m_uOrderOfArrival, 0.0); DailyLevelPage::downloadAndCreateNode(v3); } else { DailyLevelNode::showSkipButton(v16); } } else { LOBYTE(m_fRotationY_low) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)&a1->m_uIndexInArray + 320LL))( *(_QWORD *)&a1->m_uIndexInArray, m_fRotationY_low); v17 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v26 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280(v26); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v17 = (GameLevelManager *)qword_1406C2EC0; } GameLevelManager::downloadLevel(v17, LODWORD(a1->m_fScaleX), 0, 0); } } } }