{"type": "func", "start": 5580348, "end": 5580424, "name": "AchievementManager::firstSetup", "pseudocode": "// \n// AchievementManager::firstSetup from 0x55263c to 0x552688 (76 bytes)\n// \n// 3 xrefs:\n// > AchievementManager::firstSetup @ 0x55163c\n// > GameManager::firstLoad @ 0x5f0b70\n// > <???> @ 0x4c7e8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid AchievementManager::firstSetup(AchievementManager *a1)\n{\n  cocos2d::CCDictionary *v2; // x0\n  cocos2d::CCDictionary *v3; // x19\n  cocos2d::CCDictionary *m_reportedAchievements; // x1\n\n  v2 = cocos2d::CCDictionary::create();\n  v3 = v2;\n  m_reportedAchievements = a1->m_reportedAchievements;\n  if ( v2 != m_reportedAchievements )\n  {\n    if ( v2 )\n    {\n      cocos2d::CCObject::retain(v2);\n      m_reportedAchievements = a1->m_reportedAchievements;\n    }\n    if ( m_reportedAchievements )\n      cocos2d::CCObject::release(m_reportedAchievements);\n    a1->m_reportedAchievements = v3;\n  }\n}", "assembly": "; \n; AchievementManager::firstSetup from 0x55263c to 0x552688 (76 bytes)\n; \n; 3 xrefs:\n; > AchievementManager::firstSetup @ 0x55163c\n; > GameManager::firstLoad @ 0x5f0b70\n; > <???> @ 0x4c7e8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x55263c\nMOV             X29, SP                                                ; +0x4, 0x552640\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x552644\nMOV             X20, X0                                                ; +0xc, 0x552648\nBL              _ZN7cocos2d12CCDictionary6createEv; cocos2d::CCDictionary::create(void) ; +0x10, 0x55264c\nMOV             X19, X0                                                ; +0x14, 0x552650\nLDR             X1, [X20,#0x160]                                       ; +0x18, 0x552654\nCMP             X0, X1                                                 ; +0x1c, 0x552658\nB.EQ            loc_55267C                                             ; +0x20, 0x55265c\nCBZ             X0, loc_55266C                                         ; +0x24, 0x552660\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x28, 0x552664\nLDR             X1, [X20,#0x160]                                       ; +0x2c, 0x552668\nCBZ             X1, loc_552678                                         ; +0x30, 0x55266c\nMOV             X0, X1; this                                           ; +0x34, 0x552670\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x38, 0x552674\nSTR             X19, [X20,#0x160]                                      ; +0x3c, 0x552678\nLDP             X19, X20, [SP,#var_s10]                                ; +0x40, 0x55267c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x44, 0x552680\nRET                                                                    ; +0x48, 0x552684", "xrefs": ["AchievementManager::firstSetup @ 0x55163c", "GameManager::firstLoad @ 0x5f0b70", "<???> @ 0x4c7e8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}