//
// AchievementManager::notifyAchievementWithID from 0x2da5e4 to 0x2da6b8 (212 bytes)
//
// 1 xrefs:
// > AchievementManager::reportAchievementWithID @ 0x2da86e
//
// 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
//
void AchievementManager::notifyAchievementWithID(AchievementManager *a1, const char *a2)
{
cocos2d::CCDictionary *m_platformAchievements; // r5
cocos2d::CCDictionary *v3; // r5
cocos2d::CCString *v4; // r0
const char *CString; // r9
cocos2d::CCString *v6; // r0
const char *v7; // r8
cocos2d::CCString *v8; // r0
const char *v9; // r5
AchievementNotifier *v10; // r0
std::string v11; // [sp+10h] [bp-Ch] BYREF
if ( !a1->m_dontNotify )
{
m_platformAchievements = a1->m_platformAchievements;
sub_776584((int)&v11, (char *)a2);
v3 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(m_platformAchievements, &v11);
sub_774008(&v11);
if ( v3 )
{
sub_776584((int)&v11, "title");
v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v3, &v11);
CString = cocos2d::CCString::getCString(v4);
sub_774008(&v11);
sub_776584((int)&v11, "achievedDescription");
v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v3, &v11);
v7 = cocos2d::CCString::getCString(v6);
sub_774008(&v11);
sub_776584((int)&v11, "icon");
v8 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v3, &v11);
v9 = cocos2d::CCString::getCString(v8);
sub_774008(&v11);
v10 = AchievementNotifier::sharedState();
AchievementNotifier::notifyAchievement(v10, CString, v7, v9, 0);
}
}
}