//
// DailyLevelPage::skipDailyLevel from 0x91375c to 0x913844 (232 bytes)
//
// 2 xrefs:
// > DailyLevelNode::FLAlert_Clicked @ 0x913868
// > ??> @ 0xa0938
//
// 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 DailyLevelPage::skipDailyLevel(DailyLevelPage *a1, DailyLevelNode *a2, GJGameLevel *a3)
{
DailyLevelNode *m_dailyNode; // x20
int v5; // w21
GameLevelManager *v6; // x0
GameLevelManager *v7; // x0
int ActiveDailyID; // w21
GameLevelManager *v9; // x0
GameLevelManager *v10; // x0
cocos2d::CCSequence *v11; // x20
cocos2d::CCFiniteTimeAction *v12; // x0
cocos2d::CCAction *v13; // x0
m_dailyNode = a1->m_dailyNode;
if ( m_dailyNode == a2 )
{
v5 = a3->m_dailyID.random - a3->m_dailyID.seed;
v6 = GameLevelManager::sharedState();
if ( GameLevelManager::getActiveDailyID(v6, a1->m_type) == v5 )
{
v7 = GameLevelManager::sharedState();
ActiveDailyID = GameLevelManager::getActiveDailyID(v7, a1->m_type);
v9 = GameLevelManager::sharedState();
if ( ActiveDailyID < GameLevelManager::getDailyID(v9, a1->m_type) )
{
DailyLevelPage::exitDailyNode(a1, m_dailyNode, 0.0);
a1->m_downloadStarted = (unsigned __int8)&dword_0 + 1;
v10 = GameLevelManager::sharedState();
GameLevelManager::downloadLevel(v10, a1->m_downloadLevelID, 0, 0);
v11 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(0.5);
v12 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, DailyLevelPage::createNodeIfLoaded, 0);
v13 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v11, v12, 0);
cocos2d::CCNode::runAction(a1, v13);
}
}
}
}