//
// GameLevelManager::getSavedDailyLevelFromLevelID from 0x4aa76c to 0x4aa7aa (62 bytes)
//
// 3 xrefs:
// > CommentCell::loadFromComment @ 0x43301a
// > CommentCell::loadFromComment @ 0x43317e
// > GameLevelManager::replayPlatformerSaveJournal @ 0x4cfca6
//
// 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:49:58 +0000
//
_DWORD *__fastcall GameLevelManager::getSavedDailyLevelFromLevelID(GameLevelManager *this, int a2)
{
_DWORD *result; // r0
_DWORD *v3; // r3
_DWORD *v4; // r2
result = *((_DWORD **)this + 147);
if ( result )
{
result = (_DWORD *)result[13];
if ( result )
v3 = (_DWORD *)result[68];
else
v3 = nullptr;
while ( result )
{
result = (_DWORD *)result[65];
if ( result[67] - result[68] == a2 )
break;
if ( v3 )
v4 = (_DWORD *)v3[68];
else
v4 = nullptr;
result = v3;
v3 = v4;
}
}
return result;
}