//
// DailyLevelPage::createNodeIfLoaded from 0xa6ee20 to 0xa6eeb0 (144 bytes)
//
// 4 xrefs:
// > ??> @ 0xd8cb8
// > DailyLevelPage::downloadAndCreateNode @ 0xa6cfdc
// > DailyLevelPage::skipDailyLevel @ 0xa6d238
// > ??> @ 0x15467a0
//
// 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 13:00:22 +0000
//
cocos2d::CCDirector **__fastcall DailyLevelPage::createNodeIfLoaded(DailyLevelPage *this)
{
unsigned int *v2; // x0
cocos2d::CCDirector **result; // x0
GameLevelManager *v4; // x20
unsigned int *v5; // x0
unsigned int DailyID; // w0
GJGameLevel *SavedDailyLevel; // x1
*((_BYTE *)this + 728) = 0;
v2 = (unsigned int *)GameLevelManager::sharedState(this);
result = (cocos2d::CCDirector **)GameLevelManager::getDailyID(v2, *((_DWORD *)this + 183));
if ( (int)result > 0 )
{
v4 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)result);
v5 = (unsigned int *)GameLevelManager::sharedState(v4);
DailyID = GameLevelManager::getDailyID(v5, *((_DWORD *)this + 183));
SavedDailyLevel = (GJGameLevel *)GameLevelManager::getSavedDailyLevel(v4, (const char *)DailyID);
if ( SavedDailyLevel )
return DailyLevelPage::createDailyNode(this, SavedDailyLevel, 0, 0.0, 1u);
else
return (cocos2d::CCDirector **)(*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 88) + 344LL))(
*((_QWORD *)this + 88),
1);
}
return result;
}