//
// AchievementManager::percentForAchievement from 0x10010e334 to 0x10010e388 (84 bytes)
//
// 5 xrefs:
// > AchievementManager::isAchievementEarned @ 0x10010e320
// > AchievementManager::reportAchievementWithID @ 0x10010e950
// > AchievementManager::reportAchievementWithID @ 0x10010e964
// > AchievementCell::loadFromDict @ 0x100126fc0
// > GameManager::syncPlatformAchievements @ 0x1003b4364
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 10:59:07 +0000
//
__int64 __fastcall AchievementManager::percentForAchievement(__int64 a1, char *a2)
{
__int64 v2; // x19
__int64 v3; // x0
__int64 v4; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v7; // [xsp+1Fh] [xbp-11h]
v2 = *(_QWORD *)(a1 + 352);
sub_100009900(__p, a2);
v3 = cocos2d::CCDictionary::valueForKey(v2, __p);
v4 = cocos2d::CCString::intValue(v3);
if ( v7 < 0 )
operator delete(__p[0]);
return v4;
}