//
// AchievementManager::areAchievementsEarned from 0x55282c to 0x552898 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x59b08
//
// 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 AchievementManager::areAchievementsEarned(AchievementManager *a1, cocos2d::CCArray *a2)
{
unsigned int v4; // w19
cocos2d::CCString *v5; // x0
const char *CString; // x0
bool result; // w0
bool v8; // cf
unsigned int v9; // w1
v4 = 0;
while ( 1 )
{
v8 = v4 >= (unsigned int)cocos2d::CCArray::count(a2);
v9 = v4++;
if ( v8 )
break;
v5 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(a2, v9);
CString = cocos2d::CCString::getCString(v5);
result = AchievementManager::isAchievementEarned(a1, CString);
if ( !result )
return result;
}
return 1;
}