//
// AchievementManager::dataLoaded from 0x100784da0 to 0x100784e03 (99 bytes)
//
// 1 xrefs:
// > GameManager::dataLoaded @ 0x100389925
//
// 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 __fastcall AchievementManager::dataLoaded(AchievementManager *a1, DS_Dictionary *a2)
{
cocos2d::CCDictionary *DictForKey; // rax
cocos2d::CCDictionary *m_reportedAchievements; // rdi
cocos2d::CCDictionary *v5; // r14
cocos2d::CCDictionary *v6; // rdi
DictForKey = DS_Dictionary::getDictForKey(a2, "reportedAchievements", 0);
m_reportedAchievements = a1->m_reportedAchievements;
if ( m_reportedAchievements )
{
GameToolbox::mergeDictsSaveLargestInt(m_reportedAchievements, DictForKey);
}
else if ( DictForKey )
{
v5 = DictForKey;
cocos2d::CCObject::retain(DictForKey);
v6 = a1->m_reportedAchievements;
if ( v6 )
cocos2d::CCObject::release(v6);
a1->m_reportedAchievements = v5;
}
}