{"type": "func", "start": 6787752, "end": 6787876, "name": "AchievementManager::init", "pseudocode": "// \n// AchievementManager::init from 0x6792a8 to 0x679324 (124 bytes)\n// \n// 3 xrefs:\n// > AchievementManager::sharedState @ 0x679394\n// > <???> @ 0x654b8\n// > <???> @ 0x1410f60\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:50:20 +0000\n// \n\n__int64 __fastcall AchievementManager::init(AchievementManager *this)\n{\n  cocos2d::CCObject *v2; // x0\n  cocos2d::CCDictionary *v3; // x0\n  cocos2d::CCObject *v4; // x0\n  cocos2d::CCObject *AllAchievementsSorted; // x0\n  cocos2d::CCObject *v6; // x0\n\n  v2 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", (const char *)&dword_0 + 1);\n  *((_QWORD *)this + 48) = v2;\n  v3 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v2);\n  v4 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v3);\n  *((_QWORD *)this + 41) = v4;\n  cocos2d::CCObject::retain(v4);\n  AchievementManager::addManualAchievements(this);\n  AllAchievementsSorted = AchievementManager::getAllAchievementsSorted((cocos2d::CCDictionary **)this, 0);\n  *((_QWORD *)this + 40) = AllAchievementsSorted;\n  cocos2d::CCObject::retain(AllAchievementsSorted);\n  v6 = AchievementManager::getAllAchievementsSorted((cocos2d::CCDictionary **)this, 1u);\n  *((_QWORD *)this + 46) = v6;\n  cocos2d::CCObject::retain(v6);\n  AchievementManager::storeAchievementUnlocks(this);\n  return 1;\n}", "assembly": "; \n; AchievementManager::init from 0x6792a8 to 0x679324 (124 bytes)\n; \n; 3 xrefs:\n; > AchievementManager::sharedState @ 0x679394\n; > <???> @ 0x654b8\n; > <???> @ 0x1410f60\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:50:20 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x6792a8\nMOV             W1, #(dword_0+1); char *                               ; +0x4, 0x6792ac\nMOV             X29, SP                                                ; +0x8, 0x6792b0\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x6792b4\nMOV             X19, X0                                                ; +0x10, 0x6792b8\nADRL            X0, (aSongidI+8); this                                 ; +0x14, 0x6792bc\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x1c, 0x6792c4\nSTR             X0, [X19,#0x180]                                       ; +0x20, 0x6792c8\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x24, 0x6792cc\nBL              _ZN7cocos2d12CCDictionary6createEv; cocos2d::CCDictionary::create(void) ; +0x28, 0x6792d0\nSTR             X0, [X19,#0x148]                                       ; +0x2c, 0x6792d4\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x30, 0x6792d8\nMOV             X0, X19; this                                          ; +0x34, 0x6792dc\nBL              _ZN18AchievementManager21addManualAchievementsEv; AchievementManager::addManualAchievements(void) ; +0x38, 0x6792e0\nMOV             W1, #0; bool                                           ; +0x3c, 0x6792e4\nMOV             X0, X19; this                                          ; +0x40, 0x6792e8\nBL              _ZN18AchievementManager24getAllAchievementsSortedEb; AchievementManager::getAllAchievementsSorted(bool) ; +0x44, 0x6792ec\nSTR             X0, [X19,#0x140]                                       ; +0x48, 0x6792f0\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x4c, 0x6792f4\nMOV             W1, #1; bool                                           ; +0x50, 0x6792f8\nMOV             X0, X19; this                                          ; +0x54, 0x6792fc\nBL              _ZN18AchievementManager24getAllAchievementsSortedEb; AchievementManager::getAllAchievementsSorted(bool) ; +0x58, 0x679300\nSTR             X0, [X19,#0x170]                                       ; +0x5c, 0x679304\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x60, 0x679308\nMOV             X0, X19; this                                          ; +0x64, 0x67930c\nBL              _ZN18AchievementManager23storeAchievementUnlocksEv; AchievementManager::storeAchievementUnlocks(void) ; +0x68, 0x679310\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x6c, 0x679314\nMOV             W0, #1                                                 ; +0x70, 0x679318\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x74, 0x67931c\nRET                                                                    ; +0x78, 0x679320", "xrefs": ["AchievementManager::sharedState @ 0x679394", "<???> @ 0x654b8", "<???> @ 0x1410f60"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}