{"type": "func", "start": 5368741472, "end": 5368741613, "name": "AchievementManager::init", "pseudocode": "// \n// AchievementManager::init from 0x140007e60 to 0x140007eed (141 bytes)\n// \n// 5 xrefs:\n// > AchievementManager::sharedState @ 0x140007e37\n// > AchievementManager::sharedState @ 0x140007e49\n// > AchievementManager::sharedState @ 0x140007e28\n// > <???> @ 0x140529d00\n// > <???> @ 0x1406c3c30\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\nbool AchievementManager::init(AchievementManager *a1)\n{\n  cocos2d::CCDictionary *v2; // rax\n  cocos2d::CCDictionary *v3; // rax\n  cocos2d::CCArray *AllAchievementsSorted; // rax\n  cocos2d::CCArray *v5; // rax\n\n  v2 = (cocos2d::CCDictionary *)cocos2d::CCString::createWithFormat(\"%i\", 1);\n  a1->m_unAchieved = v2;\n  cocos2d::CCObject::retain(v2);\n  v3 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create();\n  a1->m_platformAchievements = v3;\n  cocos2d::CCObject::retain(v3);\n  AchievementManager::addManualAchievements(a1);\n  AllAchievementsSorted = AchievementManager::getAllAchievementsSorted(a1, 0);\n  a1->m_allAchievements = AllAchievementsSorted;\n  cocos2d::CCObject::retain(AllAchievementsSorted);\n  v5 = AchievementManager::getAllAchievementsSorted(a1, 1);\n  a1->m_allAchievementsSorted = v5;\n  cocos2d::CCObject::retain(v5);\n  AchievementManager::storeAchievementUnlocks(a1);\n  return 1;\n}", "assembly": "; \n; AchievementManager::init from 0x140007e60 to 0x140007eed (141 bytes)\n; \n; 5 xrefs:\n; > AchievementManager::sharedState @ 0x140007e37\n; > AchievementManager::sharedState @ 0x140007e49\n; > AchievementManager::sharedState @ 0x140007e28\n; > <???> @ 0x140529d00\n; > <???> @ 0x1406c3c30\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\npush    rbx                                                            ; +0x0, 0x140007e60\nsub     rsp, 20h                                                       ; +0x2, 0x140007e62\nmov     rbx, rcx                                                       ; +0x6, 0x140007e66\nmov     edx, 1                                                         ; +0x9, 0x140007e69\nlea     rcx, aI_11; \"%i\"                                               ; +0xe, 0x140007e6e\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x15, 0x140007e75\nmov     [rbx+180h], rax                                                ; +0x1b, 0x140007e7b\nmov     rcx, rax                                                       ; +0x22, 0x140007e82\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x25, 0x140007e85\ncall    cs:?create@CCDictionary@cocos2d@@SAPEAV12@XZ; cocos2d::CCDictionary::create(void) ; +0x2b, 0x140007e8b\nmov     [rbx+148h], rax                                                ; +0x31, 0x140007e91\nmov     rcx, rax                                                       ; +0x38, 0x140007e98\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x3b, 0x140007e9b\nmov     rcx, rbx                                                       ; +0x41, 0x140007ea1\ncall    AchievementManager__addManualAchievements                      ; +0x44, 0x140007ea4\nxor     edx, edx                                                       ; +0x49, 0x140007ea9\nmov     rcx, rbx                                                       ; +0x4b, 0x140007eab\ncall    AchievementManager__getAllAchievementsSorted                   ; +0x4e, 0x140007eae\nmov     [rbx+140h], rax                                                ; +0x53, 0x140007eb3\nmov     rcx, rax                                                       ; +0x5a, 0x140007eba\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x5d, 0x140007ebd\nmov     dl, 1                                                          ; +0x63, 0x140007ec3\nmov     rcx, rbx                                                       ; +0x65, 0x140007ec5\ncall    AchievementManager__getAllAchievementsSorted                   ; +0x68, 0x140007ec8\nmov     [rbx+170h], rax                                                ; +0x6d, 0x140007ecd\nmov     rcx, rax                                                       ; +0x74, 0x140007ed4\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x77, 0x140007ed7\nmov     rcx, rbx                                                       ; +0x7d, 0x140007edd\ncall    AchievementManager__storeAchievementUnlocks                    ; +0x80, 0x140007ee0\nmov     al, 1                                                          ; +0x85, 0x140007ee5\nadd     rsp, 20h                                                       ; +0x87, 0x140007ee7\npop     rbx                                                            ; +0x8b, 0x140007eeb\nretn                                                                   ; +0x8c, 0x140007eec", "xrefs": ["AchievementManager::sharedState @ 0x140007e37", "AchievementManager::sharedState @ 0x140007e49", "AchievementManager::sharedState @ 0x140007e28", "<???> @ 0x140529d00", "<???> @ 0x1406c3c30"], "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"}