//
// DailyLevelPage::refreshDailyPage from 0x100216c60 to 0x100216ced (141 bytes)
//
// 1 xrefs:
// > CreatorLayer::sceneWillResume @ 0x1002848eb
//
// 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::refreshDailyPage(__int64 a1, double a2)
{
__int64 result; // rax
__int64 v3; // rbx
__int64 v4; // rax
__int64 SavedLevel_1; // rax
__int64 v6; // r15
result = *(_QWORD *)(a1 + 720);
if ( result )
{
if ( !*(_BYTE *)(result + 369) )
{
v3 = *(_QWORD *)(result + 328);
if ( v3 )
{
v4 = GameLevelManager::sharedState(a2);
SavedLevel_1 = GameLevelManager::getSavedLevel_1(v4, v3);
if ( SavedLevel_1 )
v3 = SavedLevel_1;
v6 = *(_QWORD *)(a1 + 720);
*(_QWORD *)(a1 + 720) = 0;
DailyLevelPage::createDailyNode(a1, v3, 1, 0, 0.0);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 536LL))(v6);
}
}
}
return result;
}