//
// DailyLevelPage::dailyStatusFinished from 0x10024fde8 to 0x10024ff80 (408 bytes)
//
// 2 xrefs:
// > sub_100250130 @ 0x100250134
// > ??> @ 0x10090c138
//
// 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
//
void __fastcall DailyLevelPage::dailyStatusFinished(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x20
unsigned int *v4; // x0
__int64 v5; // x0
unsigned int *v6; // x0
int v7; // w20
unsigned int *v8; // x0
__int64 v9; // x20
__int64 v10; // x0
void **v11; // x1
__int64 v12; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v14; // [xsp+1Fh] [xbp-21h]
DailyLevelPage::updateTimers(a1);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 688) + 344LL))(*(_QWORD *)(a1 + 688), 1);
DailyLevelPage::updateTimers(a1);
cocos2d::CCNode::unschedule(a1, DailyLevelPage::updateTimers, 0);
cocos2d::CCNode::schedule(a1, DailyLevelPage::updateTimers, 0, 1.0);
v2 = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 696) + 344LL))(*(_QWORD *)(a1 + 696), 0);
v3 = GameStatsManager::sharedState(v2);
v4 = (unsigned int *)GameLevelManager::sharedState();
v5 = sub_1000CD764(v4, *(_DWORD *)(a1 + 732));
if ( (sub_1003D2428(v3, v5) & 1) == 0 )
{
v6 = (unsigned int *)GameLevelManager::sharedState();
v7 = sub_1000CD764(v6, *(_DWORD *)(a1 + 732));
v8 = (unsigned int *)GameLevelManager::sharedState();
if ( v7 > (int)GameLevelManager::getActiveDailyID(v8, *(_DWORD *)(a1 + 732)) )
{
v9 = *(_QWORD *)(a1 + 720);
if ( v9 )
{
if ( *(_BYTE *)(v9 + 369) == 1 )
{
sub_100009900(__p, "00:00:00");
v10 = *(_QWORD *)(v9 + 344);
if ( v10 )
{
if ( v14 >= 0 )
v11 = __p;
else
v11 = (void **)__p[0];
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v10 + 928LL))(v10, v11);
}
if ( v14 < 0 )
operator delete(__p[0]);
sub_10024FF9C(a1, *(_QWORD *)(a1 + 720), 0.0);
DailyLevelPage::downloadAndCreateNode(a1);
}
else
{
sub_1002500C4(*(_QWORD *)(a1 + 720));
}
}
else
{
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 704) + 344LL))(*(_QWORD *)(a1 + 704), 1);
v12 = GameLevelManager::sharedState();
GameLevelManager::downloadLevel(v12, *(unsigned int *)(a1 + 736), 0, 0);
}
}
}
}