//
// GameLevelManager::getSavedDailyLevelFromLevelID from 0x6f21dc to 0x6f2214 (56 bytes)
//
// 3 xrefs:
// > CommentCell::loadFromComment @ 0x6184a4
// > CommentCell::loadFromComment @ 0x6184c0
// > ??> @ 0xa43b8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
GJGameLevel *GameLevelManager::getSavedDailyLevelFromLevelID(GameLevelManager *a1, int a2)
{
cocos2d::CCDictionary *m_dailyLevels; // x0
cocos2d::CCDictElement *m_pElements; // x2
GJGameLevel *result; // x0
m_dailyLevels = a1->m_dailyLevels;
if ( m_dailyLevels )
{
m_pElements = m_dailyLevels->m_pElements;
while ( m_pElements )
{
result = (GJGameLevel *)m_pElements->m_pObject;
m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next;
if ( a2 == result->m_levelID.random - result->m_levelID.seed )
return result;
}
}
return nullptr;
}