//
// DailyLevelPage::skipDailyLevel from 0x100216b60 to 0x100216c51 (241 bytes)
//
// 2 xrefs:
// > DailyLevelNode::FLAlert_Clicked @ 0x100217c91
// > sub_100217CA0 @ 0x100217cbc
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:27:00 +0000
//
__int64 __fastcall DailyLevelPage::skipDailyLevel(__int64 a1, __int64 a2, __int64 a3, double a4)
{
int v4; // r15d
__int64 v5; // rax
__int64 result; // rax
__int64 v7; // rax
int ActiveDailyID; // r15d
__int64 v9; // rax
__int64 v10; // rax
int v11; // r14d
int v12; // eax
int v13; // ecx
int v14; // r8d
int v15; // r9d
__int64 v16; // rax
if ( *(_QWORD *)(a1 + 720) == a2 )
{
v4 = *(_DWORD *)(a3 + 920) - *(_DWORD *)(a3 + 924);
v5 = GameLevelManager::sharedState(a4);
result = GameLevelManager::getActiveDailyID(v5, *(unsigned int *)(a1 + 732));
if ( v4 == (_DWORD)result )
{
v7 = GameLevelManager::sharedState(a4);
ActiveDailyID = GameLevelManager::getActiveDailyID(v7, *(unsigned int *)(a1 + 732));
v9 = GameLevelManager::sharedState(a4);
result = GameLevelManager::getDailyID(v9, *(unsigned int *)(a1 + 732));
if ( ActiveDailyID < (int)result )
{
DailyLevelPage::exitDailyNode(a1, a2, 0.0);
*(_BYTE *)(a1 + 728) = 1;
v10 = GameLevelManager::sharedState(0.0);
GameLevelManager::downloadLevel(v10, *(unsigned int *)(a1 + 736), 0, 0);
v11 = cocos2d::CCDelayTime::create(0.5);
v12 = cocos2d::CCCallFunc::create(a1, DailyLevelPage::createNodeIfLoaded, 0);
v16 = sub_10039EB60(v11, v12, 0, v13, v14, v15);
return cocos2d::CCNode::runAction(a1, v16);
}
}
}
return result;
}