//
// GameLevelManager::getSavedDailyLevelFromLevelID from 0x7ffd38 to 0x7ffd70 (56 bytes)
//
// 4 xrefs:
// > CommentCell::loadFromComment @ 0x74cd3c
// > CommentCell::loadFromComment @ 0x74cd84
// > GameLevelManager::replayPlatformerSaveJournal @ 0x845438
// > ??> @ 0xd7d40
//
// 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 12:54:43 +0000
//
__int64 __fastcall GameLevelManager::getSavedDailyLevelFromLevelID(GameLevelManager *this, int a2)
{
__int64 v2; // x0
__int64 v3; // x2
__int64 result; // x0
v2 = *((_QWORD *)this + 106);
if ( v2 )
{
v3 = *(_QWORD *)(v2 + 56);
while ( v3 )
{
result = *(_QWORD *)(v3 + 264);
v3 = *(_QWORD *)(v3 + 288);
if ( a2 == *(_DWORD *)(result + 328) - *(_DWORD *)(result + 332) )
return result;
}
}
return 0;
}