//
// GameStatsManager::hasCompletedDailyStars from 0x517b40 to 0x517ba0 (96 bytes)
//
// 8 xrefs:
// > GameManager::recountUserStats @ 0x41bb30
// > LevelCell::recallChestReady @ 0x4253a2
// > LevelCell::loadCustomLevelCell @ 0x42ec40
// > LevelCell::loadCustomLevelCell @ 0x42efc4
// > LevelCell::loadCustomLevelCell @ 0x42f9a0
// > LevelCell::loadCustomLevelCell @ 0x430198
// > GameLevelManager::updateLevelRewards @ 0x4ab43c
// > GameStatsManager::completedDailyLevel @ 0x52ae38
//
// 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
//
int __fastcall GameStatsManager::hasCompletedDailyStars(GameStatsManager *this, int a2)
{
int v2; // r6
const char *DailyStarKey; // r7
size_t v4; // r0
int v5; // r6
int result; // r0
int v7[3]; // [sp+0h] [bp-14h] BYREF
v2 = *((_DWORD *)this + 103);
memset(v7, 0, sizeof(v7));
DailyStarKey = (const char *)GameStatsManager::getDailyStarKey(this, a2);
v4 = strlen(DailyStarKey);
std::string::__init(v7, DailyStarKey, v4);
v5 = cocos2d::CCDictionary::objectForKey(v2, v7);
std::string::~string((int)v7);
result = v5;
if ( v5 )
return 1;
return result;
}