//
// AchievementManager::percentForAchievement from 0x2da180 to 0x2da1ca (74 bytes)
//
// 4 xrefs:
// > AchievementManager::isAchievementEarned @ 0x2da1d2
// > AchievementManager::reportAchievementWithID @ 0x2da81a
// > GameManager::syncPlatformAchievements @ 0x32239c
// > AchievementCell::loadFromDict @ 0x331268
//
// 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
//
int AchievementManager::percentForAchievement(AchievementManager *a1, const char *a2)
{
cocos2d::CCDictionary *m_reportedAchievements; // r6
cocos2d::CCString *v3; // r0
int v4; // r6
std::string v6; // [sp+8h] [bp-8h] BYREF
m_reportedAchievements = a1->m_reportedAchievements;
sub_776584((int)&v6, (char *)a2);
v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(m_reportedAchievements, &v6);
v4 = cocos2d::CCString::intValue(v3);
sub_774008(&v6);
return v4;
}