//
// DailyLevelPage::skipDailyLevel from 0x1002508b8 to 0x1002509ac (244 bytes)
//
// 2 xrefs:
// > DailyLevelNode::FLAlert_Clicked @ 0x100251890
// > sub_100251898 @ 0x1002518b0
//
// This function is hookable on this platform (idp: arm, 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 11:01:31 +0000
//
double __fastcall DailyLevelPage::skipDailyLevel(__int64 a1, __int64 a2, __int64 a3, double result)
{
int v6; // w21
unsigned int *v7; // x0
unsigned int *v8; // x0
int ActiveDailyID; // w21
unsigned int *v10; // x0
__int64 v11; // x0
float *v12; // x20
char v13; // w0
__int64 v14; // x1
__int64 v15; // x2
__int64 v16; // x3
__int64 v17; // x4
__int64 v18; // x5
__int64 v19; // x6
__int64 v20; // x7
__int64 v21; // x1
if ( *(_QWORD *)(a1 + 720) == a2 )
{
v6 = *(_DWORD *)(a3 + 920) - *(_DWORD *)(a3 + 924);
v7 = (unsigned int *)GameLevelManager::sharedState();
if ( v6 == (unsigned int)GameLevelManager::getActiveDailyID(v7, *(_DWORD *)(a1 + 732)) )
{
v8 = (unsigned int *)GameLevelManager::sharedState();
ActiveDailyID = GameLevelManager::getActiveDailyID(v8, *(_DWORD *)(a1 + 732));
v10 = (unsigned int *)GameLevelManager::sharedState();
if ( ActiveDailyID < (int)sub_1000CD764(v10, *(_DWORD *)(a1 + 732)) )
{
LODWORD(result) = 0;
sub_10024FF9C(a1, a2, result);
*(_BYTE *)(a1 + 728) = 1;
v11 = GameLevelManager::sharedState();
GameLevelManager::downloadLevel(v11, *(unsigned int *)(a1 + 736), 0, 0);
v12 = cocos2d::CCDelayTime::create(0.5);
v13 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, (__int64)DailyLevelPage::createNodeIfLoaded, 0);
v21 = sub_10021D420((__int64)v12, v14, v15, v16, v17, v18, v19, v20, v13);
*(_QWORD *)&result = cocos2d::CCNode::runAction(a1, v21).n128_u64[0];
}
}
}
return result;
}