//
// GameStatsManager::hasCompletedDailyLevel from 0x40da24 to 0x40da88 (100 bytes)
//
// 3 xrefs:
// > GameStatsManager::completedDailyLevel @ 0x4206ae
// > DailyLevelPage::init @ 0x4d541e
// > DailyLevelPage::dailyStatusFinished @ 0x4d5a58
//
// 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
//
bool GameStatsManager::hasCompletedDailyLevel(GameStatsManager *a1, int a2)
{
cocos2d::CCDictionary *m_wraithChests; // r0
bool v5; // r6
std::string v7[3]; // [sp+0h] [bp-Ch] BYREF
v7[0].m_data.m_data = (stl::StringData::Internal *)a1;
v7[1].m_data.m_data = (stl::StringData::Internal *)a2;
GameStatsManager::getDailyLevelKey((GameStatsManager *)v7, (int)a1, (const char *)a2);
if ( a2 > 99999 )
{
if ( a2 > 199999 )
m_wraithChests = a1->m_wraithChests;
else
m_wraithChests = a1->m_weeklyChest;
}
else
{
m_wraithChests = a1->m_challengeDiamonds;
}
v5 = cocos2d::CCDictionary::objectForKey(m_wraithChests, v7) != 0;
sub_774008(v7);
return v5;
}