//
// DailyLevelPage::refreshDailyPage from 0x607cec to 0x607d3c (80 bytes)
//
// 1 xrefs:
// > CreatorLayer::sceneWillResume @ 0x493986
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:45 +0000
//
DailyLevelPage *__fastcall DailyLevelPage::refreshDailyPage(DailyLevelPage *this)
{
DailyLevelPage *v1; // r5
int v2; // r3
DailyLevelPage *v3; // r6
GJGameLevel *v4; // r4
GameLevelManager *v5; // r0
int SavedLevel; // r0
int v7; // r7
v1 = this;
v2 = *((_DWORD *)this + 137);
if ( v2 )
{
v3 = (DailyLevelPage *)*(unsigned __int8 *)(v2 + 293);
if ( !*(_BYTE *)(v2 + 293) )
{
v4 = *(GJGameLevel **)(v2 + 268);
if ( v4 )
{
v5 = (GameLevelManager *)GameLevelManager::sharedState(this);
SavedLevel = GameLevelManager::getSavedLevel(v5, v4);
v7 = *((_DWORD *)v1 + 137);
*((_DWORD *)v1 + 137) = v3;
if ( SavedLevel )
v4 = (GJGameLevel *)SavedLevel;
DailyLevelPage::createDailyNode(v1, v4, 1, nullptr, v3);
return (DailyLevelPage *)(*(int (__fastcall **)(int))(*(_DWORD *)v7 + 268))(v7);
}
}
}
return this;
}