//
// DailyLevelPage::skipDailyLevel from 0x100232510 to 0x100232601 (241 bytes)
//
// 2 xrefs:
// > DailyLevelNode::FLAlert_Clicked @ 0x100233641
// > sub_100233650 @ 0x10023366c
//
// 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 v3; // r15d
GameLevelManager *v4; // rax
GameLevelManager *v5; // rax
int ActiveDailyID; // r15d
GameLevelManager *v7; // rax
GameLevelManager *v8; // rax
unsigned int v9; // r14d
unsigned int v10; // eax
int v11; // ecx
int v12; // r8d
int v13; // r9d
cocos2d::CCAction *v14; // rax
if ( a1->m_dailyNode == a2 )
{
v3 = a3->m_dailyID.random - a3->m_dailyID.seed;
v4 = GameLevelManager::sharedState();
if ( v3 == GameLevelManager::getActiveDailyID(v4, a1->m_type) )
{
v5 = GameLevelManager::sharedState();
ActiveDailyID = GameLevelManager::getActiveDailyID(v5, a1->m_type);
v7 = GameLevelManager::sharedState();
if ( ActiveDailyID < GameLevelManager::getDailyID(v7, a1->m_type) )
{
DailyLevelPage::exitDailyNode(a1, a2, 0.0);
a1->m_downloadStarted = 1;
v8 = GameLevelManager::sharedState();
GameLevelManager::downloadLevel(v8, a1->m_downloadLevelID, 0, 0);
v9 = (unsigned int)cocos2d::CCDelayTime::create(0.5);
v10 = (unsigned int)cocos2d::CCCallFunc::create(
a1,
(cocos2d::SEL_CallFunc)(unsigned __int64)DailyLevelPage::createNodeIfLoaded);
v14 = (cocos2d::CCAction *)sub_1003B5760(v9, v10, 0, v11, v12, v13);
cocos2d::CCNode::runAction(a1, v14);
}
}
}
}