//
// GameStatsManager::hasCompletedDailyLevel from 0x8cc878 to 0x8cc958 (224 bytes)
//
// 6 xrefs:
// > LevelCell::recallChestReady @ 0x7374b4
// > LevelBrowserLayer::claimRecallChest @ 0x7fca5c
// > GameStatsManager::completedDailyLevel @ 0x8eb548
// > DailyLevelPage::dailyStatusFinished @ 0xa6de30
// > DailyLevelPage::init @ 0xa6f93c
// > ??> @ 0xf23f8
//
// 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:56:36 +0000
//
bool __fastcall GameStatsManager::hasCompletedDailyLevel(GameStatsManager *this, const char *a2)
{
int v2; // w21
__int64 v4; // x0
_BOOL4 v5; // w20
__int64 v7[3]; // [xsp+30h] [xbp+30h] BYREF
v2 = (int)a2;
GameStatsManager::getDailyLevelKey(a2, v7);
if ( v2 <= 99999 )
{
v4 = cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 89), v7);
}
else if ( v2 <= 199999 )
{
v4 = cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 92), v7);
}
else
{
v4 = cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 100), v7);
}
v5 = v4 != 0;
if ( (v7[0] & 1) != 0 )
operator delete((void *)v7[2]);
return v5;
}