{"type": "func", "start": 4295919700, "end": 4295919984, "name": "AchievementManager::notifyAchievementWithID", "pseudocode": "// \n// AchievementManager::notifyAchievementWithID from 0x1000e8854 to 0x1000e8970 (284 bytes)\n// \n// 1 xrefs:\n// > AchievementManager::reportAchievementWithID @ 0x1000e8b00\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 __fastcall AchievementManager::notifyAchievementWithID(AchievementManager *a1, const char *a2)\n{\n  cocos2d::CCDictionary *m_platformAchievements; // x19\n  __int64 v3; // x0\n  __int64 v4; // x19\n  cocos2d::CCString *v5; // x0\n  const char *CString; // x20\n  cocos2d::CCString *v7; // x0\n  const char *v8; // x21\n  cocos2d::CCString *v9; // x0\n  const char *v10; // x19\n  AchievementNotifier *v11; // x0\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v13; // [xsp+1Fh] [xbp-21h]\n\n  if ( !a1->m_dontNotify )\n  {\n    m_platformAchievements = a1->m_platformAchievements;\n    sub_100009900(__p, (char *)a2);\n    v3 = cocos2d::CCDictionary::objectForKey_1(m_platformAchievements, __p);\n    v4 = v3;\n    if ( v13 < 0 )\n    {\n      operator delete(__p[0]);\n      if ( !v4 )\n        return;\n    }\n    else if ( !v3 )\n    {\n      return;\n    }\n    sub_100009900(__p, \"title\");\n    v5 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(v4, __p);\n    CString = cocos2d::CCString::getCString(v5);\n    if ( v13 < 0 )\n      operator delete(__p[0]);\n    sub_100009900(__p, \"achievedDescription\");\n    v7 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(v4, __p);\n    v8 = cocos2d::CCString::getCString(v7);\n    if ( v13 < 0 )\n      operator delete(__p[0]);\n    sub_100009900(__p, \"icon\");\n    v9 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(v4, __p);\n    v10 = cocos2d::CCString::getCString(v9);\n    if ( v13 < 0 )\n      operator delete(__p[0]);\n    v11 = AchievementNotifier::sharedState();\n    AchievementNotifier::notifyAchievement(v11, CString, v8, v10, 0);\n  }\n}", "assembly": "; \n; AchievementManager::notifyAchievementWithID from 0x1000e8854 to 0x1000e8970 (284 bytes)\n; \n; 1 xrefs:\n; > AchievementManager::reportAchievementWithID @ 0x1000e8b00\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0x1000e8854\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x1000e8858\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x1000e885c\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x1000e8860\nADD             X29, SP, #0x40                                         ; +0x10, 0x1000e8864\nLDRB            W8, [X0,#0x168]                                        ; +0x14, 0x1000e8868\nTBNZ            W8, #0, loc_1000E895C                                  ; +0x18, 0x1000e886c\nLDR             X19, [X0,#0x148]                                       ; +0x1c, 0x1000e8870\nADD             X0, SP, #0x40+__p; int                                 ; +0x20, 0x1000e8874\nBL              sub_100009900                                          ; +0x24, 0x1000e8878\nADD             X1, SP, #0x40+__p                                      ; +0x28, 0x1000e887c\nMOV             X0, X19                                                ; +0x2c, 0x1000e8880\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x30, 0x1000e8884\nMOV             X19, X0                                                ; +0x34, 0x1000e8888\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x38, 0x1000e888c\nTBNZ            W8, #0x1F, loc_1000E889C                               ; +0x3c, 0x1000e8890\nCBNZ            X19, loc_1000E88A8                                     ; +0x40, 0x1000e8894\nB               loc_1000E895C                                          ; +0x44, 0x1000e8898\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x48, 0x1000e889c\nBL              __ZdlPv; operator delete(void *)                       ; +0x4c, 0x1000e88a0\nCBZ             X19, loc_1000E895C                                     ; +0x50, 0x1000e88a4\nADRL            X1, aTitle; \"title\"                                    ; +0x54, 0x1000e88a8\nADD             X0, SP, #0x40+__p; int                                 ; +0x5c, 0x1000e88b0\nBL              sub_100009900                                          ; +0x60, 0x1000e88b4\nADD             X1, SP, #0x40+__p                                      ; +0x64, 0x1000e88b8\nMOV             X0, X19                                                ; +0x68, 0x1000e88bc\nBL              cocos2d__CCDictionary__valueForKey_1                   ; +0x6c, 0x1000e88c0\nBL              cocos2d__CCString__getCString                          ; +0x70, 0x1000e88c4\nMOV             X20, X0                                                ; +0x74, 0x1000e88c8\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x78, 0x1000e88cc\nTBZ             W8, #0x1F, loc_1000E88DC                               ; +0x7c, 0x1000e88d0\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x80, 0x1000e88d4\nBL              __ZdlPv; operator delete(void *)                       ; +0x84, 0x1000e88d8\nADRL            X1, aAchieveddescri; \"achievedDescription\"             ; +0x88, 0x1000e88dc\nADD             X0, SP, #0x40+__p; int                                 ; +0x90, 0x1000e88e4\nBL              sub_100009900                                          ; +0x94, 0x1000e88e8\nADD             X1, SP, #0x40+__p                                      ; +0x98, 0x1000e88ec\nMOV             X0, X19                                                ; +0x9c, 0x1000e88f0\nBL              cocos2d__CCDictionary__valueForKey_1                   ; +0xa0, 0x1000e88f4\nBL              cocos2d__CCString__getCString                          ; +0xa4, 0x1000e88f8\nMOV             X21, X0                                                ; +0xa8, 0x1000e88fc\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0xac, 0x1000e8900\nTBZ             W8, #0x1F, loc_1000E8910                               ; +0xb0, 0x1000e8904\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0xb4, 0x1000e8908\nBL              __ZdlPv; operator delete(void *)                       ; +0xb8, 0x1000e890c\nADRL            X1, aIcon; \"icon\"                                      ; +0xbc, 0x1000e8910\nADD             X0, SP, #0x40+__p; int                                 ; +0xc4, 0x1000e8918\nBL              sub_100009900                                          ; +0xc8, 0x1000e891c\nADD             X1, SP, #0x40+__p                                      ; +0xcc, 0x1000e8920\nMOV             X0, X19                                                ; +0xd0, 0x1000e8924\nBL              cocos2d__CCDictionary__valueForKey_1                   ; +0xd4, 0x1000e8928\nBL              cocos2d__CCString__getCString                          ; +0xd8, 0x1000e892c\nMOV             X19, X0                                                ; +0xdc, 0x1000e8930\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0xe0, 0x1000e8934\nTBZ             W8, #0x1F, loc_1000E8944                               ; +0xe4, 0x1000e8938\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0xe8, 0x1000e893c\nBL              __ZdlPv; operator delete(void *)                       ; +0xec, 0x1000e8940\nBL              AchievementNotifier__sharedState                       ; +0xf0, 0x1000e8944\nMOV             X1, X20                                                ; +0xf4, 0x1000e8948\nMOV             X2, X21                                                ; +0xf8, 0x1000e894c\nMOV             X3, X19                                                ; +0xfc, 0x1000e8950\nMOV             W4, #0                                                 ; +0x100, 0x1000e8954\nBL              AchievementNotifier__notifyAchievement                 ; +0x104, 0x1000e8958\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x108, 0x1000e895c\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x10c, 0x1000e8960\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x110, 0x1000e8964\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x114, 0x1000e8968\nRET                                                                    ; +0x118, 0x1000e896c", "xrefs": ["AchievementManager::reportAchievementWithID @ 0x1000e8b00"], "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"}