{"type": "func", "start": 4304053232, "end": 4304053347, "name": "AchievementNotifier::sharedState", "pseudocode": "// \n// AchievementNotifier::sharedState from 0x1008aa3f0 to 0x1008aa463 (115 bytes)\n// \n// 5 xrefs:\n// > AchievementBar::show @ 0x1006f6e48\n// > AppDelegate::willSwitchToScene @ 0x10073bda9\n// > sub_10073BDD0 @ 0x10073bdd9\n// > AchievementManager::notifyAchievementWithID @ 0x100864c61\n// > AchievementManager::notifyAchievement @ 0x100864ccd\n// \n// This function is hookable on this platform (idp: pc, 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:37:17 +0000\n// \n\n__int64 AchievementNotifier::sharedState()\n{\n  __int64 result; // rax\n  _OWORD *v1; // rbx\n  void *v2; // rax\n\n  result = qword_100BE6DB8;\n  if ( !qword_100BE6DB8 )\n  {\n    v1 = operator new(0x158u);\n    cocos2d::CCNode::CCNode((__int64)v1);\n    *(_QWORD *)v1 = off_100BABCF0;\n    v1[20] = 0;\n    *((_QWORD *)v1 + 42) = 0;\n    qword_100BE6DB8 = (__int64)v1;\n    v2 = sub_1007FE900();\n    *((_QWORD *)v1 + 41) = v2;\n    cocos2d::CCObject::retain((__int64)v2);\n    return qword_100BE6DB8;\n  }\n  return result;\n}", "assembly": "; \n; AchievementNotifier::sharedState from 0x1008aa3f0 to 0x1008aa463 (115 bytes)\n; \n; 5 xrefs:\n; > AchievementBar::show @ 0x1006f6e48\n; > AppDelegate::willSwitchToScene @ 0x10073bda9\n; > sub_10073BDD0 @ 0x10073bdd9\n; > AchievementManager::notifyAchievementWithID @ 0x100864c61\n; > AchievementManager::notifyAchievement @ 0x100864ccd\n; \n; This function is hookable on this platform (idp: pc, 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:37:17 +0000\n; \npush    rbp                                                            ; +0x0, 0x1008aa3f0\nmov     rbp, rsp                                                       ; +0x1, 0x1008aa3f1\npush    r14                                                            ; +0x4, 0x1008aa3f4\npush    rbx                                                            ; +0x6, 0x1008aa3f6\nmov     rax, cs:qword_100BE6DB8                                        ; +0x7, 0x1008aa3f7\ntest    rax, rax                                                       ; +0xe, 0x1008aa3fe\njz      short loc_1008AA408                                            ; +0x11, 0x1008aa401\npop     rbx                                                            ; +0x13, 0x1008aa403\npop     r14                                                            ; +0x14, 0x1008aa404\npop     rbp                                                            ; +0x16, 0x1008aa406\nretn                                                                   ; +0x17, 0x1008aa407\nmov     edi, 158h; __sz                                                ; +0x18, 0x1008aa408\ncall    __Znwm; operator new(ulong)                                    ; +0x1d, 0x1008aa40d\nmov     rbx, rax                                                       ; +0x22, 0x1008aa412\nmov     rdi, rax                                                       ; +0x25, 0x1008aa415\ncall    cocos2d__CCNode__CCNode                                        ; +0x28, 0x1008aa418\nlea     rax, off_100BABCF0                                             ; +0x2d, 0x1008aa41d\nmov     [rbx], rax                                                     ; +0x34, 0x1008aa424\nxorps   xmm0, xmm0                                                     ; +0x37, 0x1008aa427\nmovups  xmmword ptr [rbx+140h], xmm0                                   ; +0x3a, 0x1008aa42a\nmov     qword ptr [rbx+150h], 0                                        ; +0x41, 0x1008aa431\nmov     cs:qword_100BE6DB8, rbx                                        ; +0x4c, 0x1008aa43c\ncall    sub_1007FE900                                                  ; +0x53, 0x1008aa443\nmov     [rbx+148h], rax                                                ; +0x58, 0x1008aa448\nmov     rdi, rax                                                       ; +0x5f, 0x1008aa44f\ncall    cocos2d__CCObject__retain                                      ; +0x62, 0x1008aa452\nmov     rax, cs:qword_100BE6DB8                                        ; +0x67, 0x1008aa457\npop     rbx                                                            ; +0x6e, 0x1008aa45e\npop     r14                                                            ; +0x6f, 0x1008aa45f\npop     rbp                                                            ; +0x71, 0x1008aa461\nretn                                                                   ; +0x72, 0x1008aa462", "xrefs": ["AchievementBar::show @ 0x1006f6e48", "AppDelegate::willSwitchToScene @ 0x10073bda9", "sub_10073BDD0 @ 0x10073bdd9", "AchievementManager::notifyAchievementWithID @ 0x100864c61", "AchievementManager::notifyAchievement @ 0x100864ccd"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}