//
// DailyLevelPage::refreshDailyPage from 0xa6f17c to 0xa6f1fc (128 bytes)
//
// 2 xrefs:
// > CreatorLayer::sceneWillResume @ 0x7dbd68
// > ??> @ 0xf7618
//
// 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
//
DailyLevelPage *__fastcall DailyLevelPage::refreshDailyPage(DailyLevelPage *this)
{
__int64 v1; // x1
GJGameLevel *v2; // x20
DailyLevelPage *v3; // x19
GameLevelManager *v4; // x0
GJGameLevel *SavedLevel; // x1
__int64 v6; // x21
v1 = *((_QWORD *)this + 90);
if ( v1 )
{
if ( !*(_BYTE *)(v1 + 369) )
{
v2 = *(GJGameLevel **)(v1 + 328);
if ( v2 )
{
v3 = this;
v4 = (GameLevelManager *)GameLevelManager::sharedState(this);
SavedLevel = (GJGameLevel *)GameLevelManager::getSavedLevel(v4, v2);
v6 = *((_QWORD *)v3 + 90);
if ( !SavedLevel )
SavedLevel = v2;
*((_QWORD *)v3 + 90) = 0;
DailyLevelPage::createDailyNode(v3, SavedLevel, 1u, 0.0, 0);
return (DailyLevelPage *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 536LL))(v6);
}
}
}
return this;
}