//
// AchievementManager::percentForAchievement from 0x1000e8454 to 0x1000e84a8 (84 bytes)
//
// 5 xrefs:
// > AchievementManager::isAchievementEarned @ 0x1000e8440
// > AchievementManager::reportAchievementWithID @ 0x1000e8a70
// > AchievementManager::reportAchievementWithID @ 0x1000e8a84
// > AchievementCell::loadFromDict @ 0x100101ef0
// > GameManager::syncPlatformAchievements @ 0x1003175e0
//
// 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 __fastcall AchievementManager::percentForAchievement(AchievementManager *a1, const char *a2)
{
cocos2d::CCDictionary *m_reportedAchievements; // x19
cocos2d::CCString *v3; // x0
int v4; // w19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v7; // [xsp+1Fh] [xbp-11h]
m_reportedAchievements = a1->m_reportedAchievements;
sub_100009900(__p, (char *)a2);
v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(m_reportedAchievements, __p);
v4 = cocos2d::CCString::intValue(v3);
if ( v7 < 0 )
operator delete(__p[0]);
return v4;
}