//
// AchievementManager::firstSetup from 0x55263c to 0x552688 (76 bytes)
//
// 3 xrefs:
// > AchievementManager::firstSetup @ 0x55163c
// > GameManager::firstLoad @ 0x5f0b70
// > ??> @ 0x4c7e8
//
// 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::firstSetup(AchievementManager *a1)
{
cocos2d::CCDictionary *v2; // x0
cocos2d::CCDictionary *v3; // x19
cocos2d::CCDictionary *m_reportedAchievements; // x1
v2 = cocos2d::CCDictionary::create();
v3 = v2;
m_reportedAchievements = a1->m_reportedAchievements;
if ( v2 != m_reportedAchievements )
{
if ( v2 )
{
cocos2d::CCObject::retain(v2);
m_reportedAchievements = a1->m_reportedAchievements;
}
if ( m_reportedAchievements )
cocos2d::CCObject::release(m_reportedAchievements);
a1->m_reportedAchievements = v3;
}
}