{"type": "func", "start": 4303104864, "end": 4303104979, "name": "AchievementNotifier::sharedState", "pseudocode": "// \n// AchievementNotifier::sharedState from 0x1007c2b60 to 0x1007c2bd3 (115 bytes)\n// \n// 5 xrefs:\n// > AchievementBar::show @ 0x10061a3e8\n// > AppDelegate::willSwitchToScene @ 0x10065c839\n// > sub_10065C850 @ 0x10065c859\n// > AchievementManager::notifyAchievementWithID @ 0x100785a01\n// > AchievementManager::notifyAchievement @ 0x100785a6d\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\nAchievementNotifier *__fastcall AchievementNotifier::sharedState()\n{\n  AchievementNotifier *result; // rax\n  _OWORD *v1; // rbx\n  cocos2d::CCObject *v2; // rax\n\n  result = (AchievementNotifier *)qword_1009A3E20;\n  if ( !qword_1009A3E20 )\n  {\n    v1 = operator new(0x158u);\n    cocos2d::CCNode::CCNode((__int64)v1);\n    *(_QWORD *)v1 = off_100995AA8;\n    v1[20] = 0;\n    *((_QWORD *)v1 + 42) = 0;\n    qword_1009A3E20 = (__int64)v1;\n    v2 = sub_10071F9E0();\n    *((_QWORD *)v1 + 41) = v2;\n    cocos2d::CCObject::retain(v2);\n    return (AchievementNotifier *)qword_1009A3E20;\n  }\n  return result;\n}", "assembly": "; \n; AchievementNotifier::sharedState from 0x1007c2b60 to 0x1007c2bd3 (115 bytes)\n; \n; 5 xrefs:\n; > AchievementBar::show @ 0x10061a3e8\n; > AppDelegate::willSwitchToScene @ 0x10065c839\n; > sub_10065C850 @ 0x10065c859\n; > AchievementManager::notifyAchievementWithID @ 0x100785a01\n; > AchievementManager::notifyAchievement @ 0x100785a6d\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    rbp                                                            ; +0x0, 0x1007c2b60\nmov     rbp, rsp                                                       ; +0x1, 0x1007c2b61\npush    r14                                                            ; +0x4, 0x1007c2b64\npush    rbx                                                            ; +0x6, 0x1007c2b66\nmov     rax, cs:qword_1009A3E20                                        ; +0x7, 0x1007c2b67\ntest    rax, rax                                                       ; +0xe, 0x1007c2b6e\njz      short loc_1007C2B78                                            ; +0x11, 0x1007c2b71\npop     rbx                                                            ; +0x13, 0x1007c2b73\npop     r14                                                            ; +0x14, 0x1007c2b74\npop     rbp                                                            ; +0x16, 0x1007c2b76\nretn                                                                   ; +0x17, 0x1007c2b77\nmov     edi, 158h; __sz                                                ; +0x18, 0x1007c2b78\ncall    __Znwm; operator new(ulong)                                    ; +0x1d, 0x1007c2b7d\nmov     rbx, rax                                                       ; +0x22, 0x1007c2b82\nmov     rdi, rax                                                       ; +0x25, 0x1007c2b85\ncall    cocos2d__CCNode__CCNode                                        ; +0x28, 0x1007c2b88\nlea     rax, off_100995AA8                                             ; +0x2d, 0x1007c2b8d\nmov     [rbx], rax                                                     ; +0x34, 0x1007c2b94\nxorps   xmm0, xmm0                                                     ; +0x37, 0x1007c2b97\nmovups  xmmword ptr [rbx+140h], xmm0                                   ; +0x3a, 0x1007c2b9a\nmov     qword ptr [rbx+150h], 0                                        ; +0x41, 0x1007c2ba1\nmov     cs:qword_1009A3E20, rbx                                        ; +0x4c, 0x1007c2bac\ncall    sub_10071F9E0                                                  ; +0x53, 0x1007c2bb3\nmov     [rbx+148h], rax                                                ; +0x58, 0x1007c2bb8\nmov     rdi, rax                                                       ; +0x5f, 0x1007c2bbf\ncall    cocos2d__CCObject__retain                                      ; +0x62, 0x1007c2bc2\nmov     rax, cs:qword_1009A3E20                                        ; +0x67, 0x1007c2bc7\npop     rbx                                                            ; +0x6e, 0x1007c2bce\npop     r14                                                            ; +0x6f, 0x1007c2bcf\npop     rbp                                                            ; +0x71, 0x1007c2bd1\nretn                                                                   ; +0x72, 0x1007c2bd2", "xrefs": ["AchievementBar::show @ 0x10061a3e8", "AppDelegate::willSwitchToScene @ 0x10065c839", "sub_10065C850 @ 0x10065c859", "AchievementManager::notifyAchievementWithID @ 0x100785a01", "AchievementManager::notifyAchievement @ 0x100785a6d"], "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"}