//
// DailyLevelPage::createNodeIfLoaded from 0x100250410 to 0x1002504a4 (148 bytes)
//
// 2 xrefs:
// > DailyLevelPage::downloadAndCreateNode @ 0x10025008c
// > DailyLevelPage::skipDailyLevel @ 0x10025095c
//
// 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
//
__int64 __fastcall DailyLevelPage::createNodeIfLoaded(__int64 a1)
{
unsigned int *v2; // x0
__int64 result; // x0
__int64 v4; // x20
unsigned int *v5; // x0
int v6; // w0
__int64 SavedDailyLevel; // x0
*(_BYTE *)(a1 + 728) = 0;
v2 = (unsigned int *)GameLevelManager::sharedState();
result = sub_1000CD764(v2, *(_DWORD *)(a1 + 732));
if ( (int)result >= 1 )
{
v4 = GameLevelManager::sharedState();
v5 = (unsigned int *)GameLevelManager::sharedState();
v6 = sub_1000CD764(v5, *(_DWORD *)(a1 + 732));
SavedDailyLevel = GameLevelManager::getSavedDailyLevel(v4, v6);
if ( SavedDailyLevel )
return DailyLevelPage::createDailyNode(a1, SavedDailyLevel, 0, 1, 0.0);
else
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 704) + 344LL))(*(_QWORD *)(a1 + 704), 1);
}
return result;
}