//
// GameStatsManager::hasCompletedDailyLevel from 0x100334360 to 0x1003343f8 (152 bytes)
//
// 3 xrefs:
// > DailyLevelPage::init @ 0x1001b98c4
// > DailyLevelPage::dailyStatusFinished @ 0x1001ba224
// > GameStatsManager::completedDailyLevel @ 0x100334470
//
// 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 __fastcall GameStatsManager::hasCompletedDailyLevel(GameStatsManager *a1, int a2)
{
cocos2d::CCString *v4; // x0
char *CString; // x0
__int64 v6; // x8
__int64 v7; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v10; // [xsp+1Fh] [xbp-11h]
v4 = (cocos2d::CCString *)sub_100268F4C("d%i", a2);
CString = (char *)cocos2d::CCString::getCString(v4);
sub_100009900(__p, CString);
v6 = 792;
if ( (unsigned int)a2 >> 6 < 0xC35 )
v6 = 736;
if ( a2 < 100000 )
v6 = 712;
v7 = cocos2d::CCDictionary::objectForKey_1(*(GameStatsManager_vtbl **)((char *)&a1->__vftable + v6), __p);
if ( v10 < 0 )
operator delete(__p[0]);
return v7 != 0;
}