//
// AchievementManager::init from 0x6792a8 to 0x679324 (124 bytes)
//
// 3 xrefs:
// > AchievementManager::sharedState @ 0x679394
// > ??> @ 0x654b8
// > ??> @ 0x1410f60
//
// 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 12:50:20 +0000
//
__int64 __fastcall AchievementManager::init(AchievementManager *this)
{
cocos2d::CCObject *v2; // x0
cocos2d::CCDictionary *v3; // x0
cocos2d::CCObject *v4; // x0
cocos2d::CCObject *AllAchievementsSorted; // x0
cocos2d::CCObject *v6; // x0
v2 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)&dword_0 + 1);
*((_QWORD *)this + 48) = v2;
v3 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v2);
v4 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v3);
*((_QWORD *)this + 41) = v4;
cocos2d::CCObject::retain(v4);
AchievementManager::addManualAchievements(this);
AllAchievementsSorted = AchievementManager::getAllAchievementsSorted((cocos2d::CCDictionary **)this, 0);
*((_QWORD *)this + 40) = AllAchievementsSorted;
cocos2d::CCObject::retain(AllAchievementsSorted);
v6 = AchievementManager::getAllAchievementsSorted((cocos2d::CCDictionary **)this, 1u);
*((_QWORD *)this + 46) = v6;
cocos2d::CCObject::retain(v6);
AchievementManager::storeAchievementUnlocks(this);
return 1;
}