//
// GameStatsManager::hasCompletedDailyLevel from 0x516db8 to 0x516e1e (102 bytes)
//
// 5 xrefs:
// > LevelCell::recallChestReady @ 0x4253ae
// > LevelBrowserLayer::claimRecallChest @ 0x4a901c
// > GameStatsManager::completedDailyLevel @ 0x52ae20
// > DailyLevelPage::init @ 0x6089dc
// > DailyLevelPage::dailyStatusFinished @ 0x608fde
//
// 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:51:43 +0000
//
bool __fastcall GameStatsManager::hasCompletedDailyLevel(GameStatsManager *this, const char *a2)
{
int v4; // r0
int v5; // r6
_BYTE v7[12]; // [sp+0h] [bp-14h] BYREF
GameStatsManager::getDailyLevelKey((GameStatsManager *)v7, (int)this, a2);
if ( (int)a2 > 99999 )
{
if ( (int)a2 > 199999 )
v4 = *((_DWORD *)this + 128);
else
v4 = *((_DWORD *)this + 119);
}
else
{
v4 = *((_DWORD *)this + 116);
}
v5 = cocos2d::CCDictionary::objectForKey(v4, v7);
std::string::~string((int)v7);
return v5 != 0;
}