//
// AchievementManager::dataLoaded from 0x552688 to 0x5526f8 (112 bytes)
//
// 2 xrefs:
// > GameManager::dataLoaded @ 0x5faeb4
// > ??> @ 0x73068
//
// 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::dataLoaded(AchievementManager *a1, DS_Dictionary *a2)
{
cocos2d::CCDictionary *DictForKey; // x0
cocos2d::CCDictionary *m_reportedAchievements; // x2
cocos2d::CCDictionary *v5; // x0
cocos2d::CCDictionary *v6; // x1
cocos2d::CCDictionary *v7; // [xsp+28h] [xbp+28h]
DictForKey = DS_Dictionary::getDictForKey(a2, "reportedAchievements", 0);
m_reportedAchievements = a1->m_reportedAchievements;
if ( m_reportedAchievements )
{
GameToolbox::mergeDictsSaveLargestInt(m_reportedAchievements, DictForKey);
}
else
{
v7 = DictForKey;
if ( DictForKey )
{
cocos2d::CCObject::retain(DictForKey);
v5 = a1->m_reportedAchievements;
v6 = v7;
if ( v5 )
{
cocos2d::CCObject::release(v5);
v6 = v7;
}
a1->m_reportedAchievements = v6;
}
}
}