//
// DailyLevelPage::skipDailyLevel from 0x1001bac20 to 0x1001bad14 (244 bytes)
//
// 2 xrefs:
// > DailyLevelNode::FLAlert_Clicked @ 0x1001bbbf4
// > sub_1001BBBFC @ 0x1001bbc14
//
// 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
//
void __fastcall DailyLevelPage::skipDailyLevel(DailyLevelPage *a1, DailyLevelNode *a2, GJGameLevel *a3)
{
int v5; // w21
GameLevelManager *v6; // x0
GameLevelManager *v7; // x0
int ActiveDailyID; // w21
GameLevelManager *v9; // x0
GameLevelManager *v10; // x0
cocos2d::CCDelayTime *v11; // x20
char v12; // w0
__int64 v13; // x1
__int64 v14; // x2
__int64 v15; // x3
__int64 v16; // x4
__int64 v17; // x5
__int64 v18; // x6
__int64 v19; // x7
cocos2d::CCSequence *v20; // x1
cocos2d::SEL_CallFunc v21; // 0:x1.16
if ( a1->m_dailyNode == a2 )
{
v5 = a3->m_dailyID.random - a3->m_dailyID.seed;
v6 = GameLevelManager::sharedState();
if ( v5 == GameLevelManager::getActiveDailyID(v6, a1->m_type) )
{
v7 = GameLevelManager::sharedState();
ActiveDailyID = GameLevelManager::getActiveDailyID(v7, a1->m_type);
v9 = GameLevelManager::sharedState();
if ( ActiveDailyID < GameLevelManager::getDailyID(v9, a1->m_type) )
{
DailyLevelPage::exitDailyNode(a1, a2, 0.0);
a1->m_downloadStarted = 1;
v10 = GameLevelManager::sharedState();
GameLevelManager::downloadLevel(v10, a1->m_downloadLevelID, 0, 0);
v11 = cocos2d::CCDelayTime::create(0.5);
v21.ptr = (void (*)(void))DailyLevelPage::createNodeIfLoaded;
v21.adj = 0;
v12 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, v21);
v20 = sub_10018A494(v11, v13, v14, v15, v16, v17, v18, v19, v12);
cocos2d::CCNode::runAction(a1, v20);
}
}
}
}