//
// AchievementManager::init from 0x3b847c to 0x3b84ce (82 bytes)
//
// 1 xrefs:
// > AchievementManager::sharedState @ 0x395fc8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:46:21 +0000
//
int __fastcall AchievementManager::init(AchievementManager *this)
{
cocos2d::CCObject *v2; // r0
cocos2d::CCDictionary *v3; // r0
cocos2d::CCObject *v4; // r0
size_t **AllAchievementsSorted; // r0
size_t **v6; // r0
v2 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)&dword_0 + 1);
*((_DWORD *)this + 74) = v2;
v3 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v2);
v4 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v3);
*((_DWORD *)this + 67) = v4;
cocos2d::CCObject::retain(v4);
AchievementManager::addManualAchievements(this);
AllAchievementsSorted = AchievementManager::getAllAchievementsSorted((cocos2d::CCDictionary **)this, 0);
*((_DWORD *)this + 66) = AllAchievementsSorted;
cocos2d::CCObject::retain((cocos2d::CCObject *)AllAchievementsSorted);
v6 = AchievementManager::getAllAchievementsSorted((cocos2d::CCDictionary **)this, 1);
*((_DWORD *)this + 72) = v6;
cocos2d::CCObject::retain((cocos2d::CCObject *)v6);
AchievementManager::storeAchievementUnlocks((unsigned int *)this);
return 1;
}