//
// DailyLevelPage::levelDownloadFinished from 0x607b30 to 0x607b96 (102 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'DailyLevelPage::levelDownloadFinished @ 0x607b9a
//
// 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
//
int *__fastcall DailyLevelPage::levelDownloadFinished(int *this, GJGameLevel *a2)
{
int *v2; // r5
int v4; // r6
_DWORD *v5; // r0
GameLevelManager *DailyID; // r0
int v7; // r6
_DWORD *v8; // r0
v2 = this;
if ( a2 )
{
v4 = *((_DWORD *)a2 + 186) - *((_DWORD *)a2 + 187);
if ( v4 > 0 )
{
v5 = (_DWORD *)GameLevelManager::sharedState((GameLevelManager *)this);
DailyID = (GameLevelManager *)GameLevelManager::getDailyID(v5, v2[139]);
if ( (GameLevelManager *)v4 == DailyID
|| (v7 = *((_DWORD *)a2 + 186) - *((_DWORD *)a2 + 187),
v8 = (_DWORD *)GameLevelManager::sharedState(DailyID),
this = (int *)GameLevelManager::getActiveDailyID(v8, v2[139]),
(int *)v7 == this) )
{
this = (int *)(*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)v2[135] + 172))(v2[135], 0);
if ( !*((_BYTE *)v2 + 552) )
return DailyLevelPage::createDailyNode(
(DailyLevelPage *)v2,
a2,
*((unsigned __int8 *)v2 + 552),
nullptr,
(DailyLevelPage *)((char *)&dword_0 + 1));
}
}
}
return this;
}