//
// DailyLevelPage::createNodeIfLoaded from 0x100216590 to 0x10021661c (140 bytes)
//
// 4 xrefs:
// > DailyLevelPage::dailyStatusFinished @ 0x100215f36
// > DailyLevelPage::downloadAndCreateNode @ 0x100216158
// > DailyLevelPage::claimLevelReward @ 0x100216b0d
// > DailyLevelPage::skipDailyLevel @ 0x100216c11
//
// 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
//
_QWORD *__fastcall DailyLevelPage::createNodeIfLoaded(__int64 a1, double a2)
{
__int64 v2; // rax
_QWORD *result; // rax
__int64 v4; // r14
__int64 v5; // rax
unsigned int DailyID; // eax
__int64 SavedDailyLevel; // rax
*(_BYTE *)(a1 + 728) = 0;
v2 = GameLevelManager::sharedState(a2);
result = (_QWORD *)GameLevelManager::getDailyID(v2, *(unsigned int *)(a1 + 732));
if ( (int)result > 0 )
{
v4 = GameLevelManager::sharedState(a2);
v5 = GameLevelManager::sharedState(a2);
DailyID = GameLevelManager::getDailyID(v5, *(unsigned int *)(a1 + 732));
SavedDailyLevel = GameLevelManager::getSavedDailyLevel(v4, DailyID);
if ( SavedDailyLevel )
return DailyLevelPage::createDailyNode(a1, SavedDailyLevel, 0, 1u, 0.0);
else
return (_QWORD *)(*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 704) + 344LL))(
*(_QWORD *)(a1 + 704),
1);
}
return result;
}