{"type": "func", "start": 5368949504, "end": 5368949665, "name": "AchievementNotifier::sharedState", "pseudocode": "// \n// AchievementNotifier::sharedState from 0x14003ab00 to 0x14003aba1 (161 bytes)\n// \n// 5 xrefs:\n// > AchievementManager::notifyAchievementWithID @ 0x14003a71b\n// > AchievementBar::show @ 0x140081d97\n// > AppDelegate::willSwitchToScene @ 0x1400835ed\n// > GameStatsManager::incrementChallenge @ 0x1401e2736\n// > <???> @ 0x1406c3d38\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\n// Hidden C++ exception states: #wind=1\nAchievementNotifier *AchievementNotifier::sharedState()\n{\n  AchievementNotifier *result; // rax\n  cocos2d::CCObject *v1; // rax\n  cocos2d::CCNode *v2; // [rsp+30h] [rbp+8h]\n\n  result = (AchievementNotifier *)qword_1406C2E68;\n  if ( !qword_1406C2E68 )\n  {\n    v2 = (cocos2d::CCNode *)operator new(0x158u);\n    cocos2d::CCNode::CCNode(v2);\n    v2->__vftable = (cocos2d::CCNode_vtbl *)&AchievementNotifier::`vftable';\n    v2[1].__vftable = nullptr;\n    *(_QWORD *)&v2[1].m_uID = 0;\n    *(_QWORD *)&v2[1].m_nTag = 0;\n    qword_1406C2E68 = (__int64)v2;\n    v1 = (cocos2d::CCObject *)cocos2d::CCArray::create(AchievementNotifier::init);\n    *(_QWORD *)&v2[1].m_uID = v1;\n    cocos2d::CCObject::retain(v1);\n    return (AchievementNotifier *)qword_1406C2E68;\n  }\n  return result;\n}", "assembly": "; \n; AchievementNotifier::sharedState from 0x14003ab00 to 0x14003aba1 (161 bytes)\n; \n; 5 xrefs:\n; > AchievementManager::notifyAchievementWithID @ 0x14003a71b\n; > AchievementBar::show @ 0x140081d97\n; > AppDelegate::willSwitchToScene @ 0x1400835ed\n; > GameStatsManager::incrementChallenge @ 0x1401e2736\n; > <???> @ 0x1406c3d38\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, 0x14003ab00\nsub     rsp, 20h                                                       ; +0x2, 0x14003ab02\nmov     rax, cs:qword_1406C2E68                                        ; +0x6, 0x14003ab06\ntest    rax, rax                                                       ; +0xd, 0x14003ab0d\njnz     loc_14003AB9B                                                  ; +0x10, 0x14003ab10\nmov     ecx, 158h; Size                                                ; +0x16, 0x14003ab16\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1b, 0x14003ab1b\nmov     rbx, rax                                                       ; +0x20, 0x14003ab20\nmov     [rsp+28h+arg_0], rax                                           ; +0x23, 0x14003ab23\nmov     rcx, rax                                                       ; +0x28, 0x14003ab28\ncall    cs:??0CCNode@cocos2d@@QEAA@XZ; cocos2d::CCNode::CCNode(void)   ; +0x2b, 0x14003ab2b\nlea     rax, ??_7AchievementNotifier@@6B@; const AchievementNotifier::`vftable' ; +0x31, 0x14003ab31\nmov     [rbx], rax                                                     ; +0x38, 0x14003ab38\nxor     eax, eax                                                       ; +0x3b, 0x14003ab3b\nmov     [rbx+140h], rax                                                ; +0x3d, 0x14003ab3d\nmov     [rbx+148h], rax                                                ; +0x44, 0x14003ab44\nmov     [rbx+150h], rax                                                ; +0x4b, 0x14003ab4b\nmov     cs:qword_1406C2E68, rbx                                        ; +0x52, 0x14003ab52\nmov     rax, cs:off_14052A088                                          ; +0x59, 0x14003ab59\nlea     rcx, AchievementNotifier__init                                 ; +0x60, 0x14003ab60\ncmp     rax, rcx                                                       ; +0x67, 0x14003ab67\njnz     short loc_14003AB8F                                            ; +0x6a, 0x14003ab6a\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x6c, 0x14003ab6c\nmov     [rbx+148h], rax                                                ; +0x72, 0x14003ab72\nmov     rcx, rax                                                       ; +0x79, 0x14003ab79\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x7c, 0x14003ab7c\nmov     rax, cs:qword_1406C2E68                                        ; +0x82, 0x14003ab82\nadd     rsp, 20h                                                       ; +0x89, 0x14003ab89\npop     rbx                                                            ; +0x8d, 0x14003ab8d\nretn                                                                   ; +0x8e, 0x14003ab8e\nmov     rcx, rbx                                                       ; +0x8f, 0x14003ab8f\ncall    rax ; AchievementNotifier__init                                ; +0x92, 0x14003ab92\nmov     rax, cs:qword_1406C2E68                                        ; +0x94, 0x14003ab94\nadd     rsp, 20h                                                       ; +0x9b, 0x14003ab9b\npop     rbx                                                            ; +0x9f, 0x14003ab9f\nretn                                                                   ; +0xa0, 0x14003aba0", "xrefs": ["AchievementManager::notifyAchievementWithID @ 0x14003a71b", "AchievementBar::show @ 0x140081d97", "AppDelegate::willSwitchToScene @ 0x1400835ed", "GameStatsManager::incrementChallenge @ 0x1401e2736", "<???> @ 0x1406c3d38"], "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"}