{"type": "func", "start": 6565000, "end": 6565128, "name": "AchievementNotifier::sharedState", "pseudocode": "// \n// AchievementNotifier::sharedState from 0x642c88 to 0x642d08 (128 bytes)\n// \n// 5 xrefs:\n// > AchievementManager::notifyAchievement @ 0x6435ac\n// > AchievementManager::notifyAchievementWithID @ 0x679514\n// > AppDelegate::willSwitchToScene @ 0x6e65c0\n// > AchievementBar::show @ 0x8fdcd8\n// > <???> @ 0xdfb58\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\n__int64 __fastcall AchievementNotifier::sharedState(AchievementNotifier *this)\n{\n  __int64 result; // x0\n  cocos2d::CCNode *v2; // x20\n\n  result = qword_155A560;\n  if ( !qword_155A560 )\n  {\n    v2 = (cocos2d::CCNode *)operator new(0x158u);\n    cocos2d::CCNode::CCNode(v2);\n    qword_155A560 = (__int64)v2;\n    *((_QWORD *)v2 + 40) = 0;\n    *((_QWORD *)v2 + 41) = 0;\n    *(_QWORD *)v2 = &off_1410B60;\n    *((_QWORD *)v2 + 42) = 0;\n    AchievementNotifier::init(v2);\n    return qword_155A560;\n  }\n  return result;\n}", "assembly": "; \n; AchievementNotifier::sharedState from 0x642c88 to 0x642d08 (128 bytes)\n; \n; 5 xrefs:\n; > AchievementManager::notifyAchievement @ 0x6435ac\n; > AchievementManager::notifyAchievementWithID @ 0x679514\n; > AppDelegate::willSwitchToScene @ 0x6e65c0\n; > AchievementBar::show @ 0x8fdcd8\n; > <???> @ 0xdfb58\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,#-0x20+var_s0]!                          ; +0x0, 0x642c88\nMOV             X29, SP                                                ; +0x4, 0x642c8c\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x642c90\nADRP            X19, #qword_155A560@PAGE                               ; +0xc, 0x642c94\nLDR             X0, [X19,#qword_155A560@PAGEOFF]                       ; +0x10, 0x642c98\nCBZ             X0, loc_642CAC                                         ; +0x14, 0x642c9c\nLDP             X19, X20, [SP,#var_s10]                                ; +0x18, 0x642ca0\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x1c, 0x642ca4\nRET                                                                    ; +0x20, 0x642ca8\nMOV             X0, #0x158; unsigned __int64                           ; +0x24, 0x642cac\nBL              _Znwm; operator new(ulong)                             ; +0x28, 0x642cb0\nMOV             X20, X0                                                ; +0x2c, 0x642cb4\nBL              _ZN7cocos2d6CCNodeC2Ev; cocos2d::CCNode::CCNode(void)  ; +0x30, 0x642cb8\nADRP            X1, #_ZTV19AchievementNotifier_ptr@PAGE                ; +0x34, 0x642cbc\nMOV             X0, X20; this                                          ; +0x38, 0x642cc0\nSTR             X20, [X19,#qword_155A560@PAGEOFF]                      ; +0x3c, 0x642cc4\nLDR             X1, [X1,#_ZTV19AchievementNotifier_ptr@PAGEOFF]; `vtable for'AchievementNotifier ... ; +0x40, 0x642cc8\nSTR             XZR, [X20,#0x140]                                      ; +0x44, 0x642ccc\nADD             X1, X1, #0x10                                          ; +0x48, 0x642cd0\nSTR             XZR, [X20,#0x148]                                      ; +0x4c, 0x642cd4\nSTR             X1, [X20]                                              ; +0x50, 0x642cd8\nSTR             XZR, [X20,#0x150]                                      ; +0x54, 0x642cdc\nBL              _ZN19AchievementNotifier4initEv; AchievementNotifier::init(void) ; +0x58, 0x642ce0\nLDR             X0, [X19,#qword_155A560@PAGEOFF]                       ; +0x5c, 0x642ce4\nLDP             X19, X20, [SP,#var_s10]                                ; +0x60, 0x642ce8\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x64, 0x642cec\nRET                                                                    ; +0x68, 0x642cf0\nMOV             X19, X0                                                ; +0x6c, 0x642cf4\nMOV             X0, X20; void *                                        ; +0x70, 0x642cf8\nBL              _ZdlPv; operator delete(void *)                        ; +0x74, 0x642cfc\nMOV             X0, X19                                                ; +0x78, 0x642d00\nBL              _Unwind_Resume                                         ; +0x7c, 0x642d04", "xrefs": ["AchievementManager::notifyAchievement @ 0x6435ac", "AchievementManager::notifyAchievementWithID @ 0x679514", "AppDelegate::willSwitchToScene @ 0x6e65c0", "AchievementBar::show @ 0x8fdcd8", "<???> @ 0xdfb58"], "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"}