{"type": "func", "start": 6565972, "end": 6566084, "name": "AchievementManager::dataLoaded", "pseudocode": "// \n// AchievementManager::dataLoaded from 0x643054 to 0x6430c4 (112 bytes)\n// \n// 2 xrefs:\n// > GameManager::dataLoaded @ 0x7279f4\n// > <???> @ 0x9a810\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:18 +0000\n// \n\ncocos2d::CCDictionary *__fastcall AchievementManager::dataLoaded(AchievementManager *this, DS_Dictionary *a2)\n{\n  cocos2d::CCDictionary *result; // x0\n  GameToolbox *v4; // x2\n  cocos2d::CCDictionary *v5; // x1\n  cocos2d::CCDictionary *v6; // [xsp+28h] [xbp+28h]\n\n  result = (cocos2d::CCDictionary *)DS_Dictionary::getDictForKey(a2, \"reportedAchievements\", 0);\n  v4 = *((GameToolbox **)this + 44);\n  if ( v4 )\n    return (cocos2d::CCDictionary *)GameToolbox::mergeDictsSaveLargestInt(v4, result, v4);\n  v6 = result;\n  if ( result )\n  {\n    cocos2d::CCObject::retain(result);\n    result = *((cocos2d::CCDictionary **)this + 44);\n    v5 = v6;\n    if ( result )\n    {\n      result = (cocos2d::CCDictionary *)cocos2d::CCObject::release(result);\n      v5 = v6;\n    }\n    *((_QWORD *)this + 44) = v5;\n  }\n  return result;\n}", "assembly": "; \n; AchievementManager::dataLoaded from 0x643054 to 0x6430c4 (112 bytes)\n; \n; 2 xrefs:\n; > GameManager::dataLoaded @ 0x7279f4\n; > <???> @ 0x9a810\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:18 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x643054\nMOV             W2, #0; bool                                           ; +0x4, 0x643058\nMOV             X29, SP                                                ; +0x8, 0x64305c\nSTR             X19, [SP,#0x30+var_20]                                 ; +0xc, 0x643060\nMOV             X19, X0                                                ; +0x10, 0x643064\nMOV             X0, X1; this                                           ; +0x14, 0x643068\nADRL            X1, aReportedachiev; \"reportedAchievements\"            ; +0x18, 0x64306c\nBL              _ZN13DS_Dictionary13getDictForKeyEPKcb; DS_Dictionary::getDictForKey(char const*,bool) ; +0x20, 0x643074\nMOV             X1, X0; cocos2d::CCDictionary *                        ; +0x24, 0x643078\nLDR             X2, [X19,#0x160]; cocos2d::CCDictionary *              ; +0x28, 0x64307c\nCBZ             X2, loc_643094                                         ; +0x2c, 0x643080\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x30, 0x643084\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x34, 0x643088\nMOV             X0, X2; this                                           ; +0x38, 0x64308c\nB               _ZN11GameToolbox24mergeDictsSaveLargestIntEPN7cocos2d12CCDictionaryES2_; GameToolbox::mergeDictsSaveLargestInt(cocos2d::CCDictionary *,cocos2d::CCDictionary *) ; +0x3c, 0x643090\nSTR             X0, [X29,#0x30+var_8]                                  ; +0x40, 0x643094\nCBZ             X0, loc_6430B8                                         ; +0x44, 0x643098\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x48, 0x64309c\nLDR             X0, [X19,#0x160]; this                                 ; +0x4c, 0x6430a0\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x50, 0x6430a4\nCBZ             X0, loc_6430B4                                         ; +0x54, 0x6430a8\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x58, 0x6430ac\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x5c, 0x6430b0\nSTR             X1, [X19,#0x160]                                       ; +0x60, 0x6430b4\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x64, 0x6430b8\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x68, 0x6430bc\nRET                                                                    ; +0x6c, 0x6430c0", "xrefs": ["GameManager::dataLoaded @ 0x7279f4", "<???> @ 0x9a810"], "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"}