{"type": "func", "start": 6443070032, "end": 6443070142, "name": "cocos2d::CCNotificationCenter::sharedNotificationCenter", "pseudocode": "// \n// cocos2d::CCNotificationCenter::sharedNotificationCenter from 0x180097250 to 0x1800972be (110 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c0870\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 11:22:10 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nstruct cocos2d::CCNotificationCenter *__fastcall cocos2d::CCNotificationCenter::sharedNotificationCenter()\n{\n  struct cocos2d::CCNotificationCenter *result; // rax\n  cocos2d::CCObject *v1; // rax\n  cocos2d::CCObject *v2; // rbx\n  struct cocos2d::CCArray *v3; // rax\n\n  result = qword_1801B2A60;\n  if ( !qword_1801B2A60 )\n  {\n    v1 = (cocos2d::CCObject *)sub_1800E4AC0(0x48u);\n    v2 = v1;\n    if ( v1 )\n    {\n      cocos2d::CCObject::CCObject(v1);\n      *(_QWORD *)v2 = &cocos2d::CCNotificationCenter::`vftable';\n      *((_DWORD *)v2 + 16) = 0;\n      v3 = cocos2d::CCArray::createWithCapacity(3u);\n      *((_QWORD *)v2 + 7) = v3;\n      cocos2d::CCObject::retain(v3);\n    }\n    else\n    {\n      v2 = nullptr;\n    }\n    qword_1801B2A60 = v2;\n    return v2;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCNotificationCenter::sharedNotificationCenter from 0x180097250 to 0x1800972be (110 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c0870\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 11:22:10 +0000\n; \npush    rbx                                                            ; +0x0, 0x180097250\nsub     rsp, 20h                                                       ; +0x2, 0x180097252\nmov     rax, cs:qword_1801B2A60                                        ; +0x6, 0x180097256\ntest    rax, rax                                                       ; +0xd, 0x18009725d\njnz     short loc_1800972B8                                            ; +0x10, 0x180097260\nmov     ecx, 48h ; 'H'; Size                                           ; +0x12, 0x180097262\ncall    sub_1800E4AC0                                                  ; +0x17, 0x180097267\nmov     rbx, rax                                                       ; +0x1c, 0x18009726c\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x18009726f\ntest    rax, rax                                                       ; +0x24, 0x180097274\njz      short loc_1800972AC                                            ; +0x27, 0x180097277\nmov     rcx, rax; this                                                 ; +0x29, 0x180097279\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x2c, 0x18009727c\nnop                                                                    ; +0x31, 0x180097281\nlea     rax, ??_7CCNotificationCenter@cocos2d@@6B@; const cocos2d::CCNotificationCenter::`vftable' ; +0x32, 0x180097282\nmov     [rbx], rax                                                     ; +0x39, 0x180097289\nmov     dword ptr [rbx+40h], 0                                         ; +0x3c, 0x18009728c\nmov     ecx, 3; Count                                                  ; +0x43, 0x180097293\ncall    ?createWithCapacity@CCArray@cocos2d@@SAPEAV12@I@Z; cocos2d::CCArray::createWithCapacity(uint) ; +0x48, 0x180097298\nmov     [rbx+38h], rax                                                 ; +0x4d, 0x18009729d\nmov     rcx, rax; this                                                 ; +0x51, 0x1800972a1\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x54, 0x1800972a4\nnop                                                                    ; +0x59, 0x1800972a9\njmp     short loc_1800972AE                                            ; +0x5a, 0x1800972aa\nxor     ebx, ebx                                                       ; +0x5c, 0x1800972ac\nmov     cs:qword_1801B2A60, rbx                                        ; +0x5e, 0x1800972ae\nmov     rax, rbx                                                       ; +0x65, 0x1800972b5\nadd     rsp, 20h                                                       ; +0x68, 0x1800972b8\npop     rbx                                                            ; +0x6c, 0x1800972bc\nretn                                                                   ; +0x6d, 0x1800972bd", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c0870"], "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"}