{"type": "func", "start": 6443055792, "end": 6443055900, "name": "cocos2d::CCNotificationCenter::sharedNotificationCenter", "pseudocode": "// \n// cocos2d::CCNotificationCenter::sharedNotificationCenter from 0x180093ab0 to 0x180093b1c (108 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b65d0\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=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 = (struct cocos2d::CCNotificationCenter *)qword_1801A8A00;\n  if ( !qword_1801A8A00 )\n  {\n    v1 = (cocos2d::CCObject *)operator new(0x48u);\n    v2 = v1;\n    if ( v1 )\n    {\n      cocos2d::CCObject::CCObject(v1);\n      v2->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCNotificationCenter::`vftable';\n      v2[1].m_uID = 0;\n      v3 = cocos2d::CCArray::createWithCapacity(3u);\n      v2[1].__vftable = (cocos2d::CCObject_vtbl *)v3;\n      cocos2d::CCObject::retain(v3);\n    }\n    else\n    {\n      v2 = nullptr;\n    }\n    qword_1801A8A00 = v2;\n    return (struct cocos2d::CCNotificationCenter *)v2;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCNotificationCenter::sharedNotificationCenter from 0x180093ab0 to 0x180093b1c (108 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b65d0\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, 0x180093ab0\nsub     rsp, 20h                                                       ; +0x2, 0x180093ab2\nmov     rax, cs:qword_1801A8A00                                        ; +0x6, 0x180093ab6\ntest    rax, rax                                                       ; +0xd, 0x180093abd\njnz     short loc_180093B16                                            ; +0x10, 0x180093ac0\nlea     ecx, [rax+48h]; Size                                           ; +0x12, 0x180093ac2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x15, 0x180093ac5\nmov     rbx, rax                                                       ; +0x1a, 0x180093aca\nmov     [rsp+28h+arg_0], rax                                           ; +0x1d, 0x180093acd\ntest    rax, rax                                                       ; +0x22, 0x180093ad2\njz      short loc_180093B0A                                            ; +0x25, 0x180093ad5\nmov     rcx, rax; this                                                 ; +0x27, 0x180093ad7\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x2a, 0x180093ada\nnop                                                                    ; +0x2f, 0x180093adf\nlea     rax, ??_7CCNotificationCenter@cocos2d@@6B@; const cocos2d::CCNotificationCenter::`vftable' ; +0x30, 0x180093ae0\nmov     [rbx], rax                                                     ; +0x37, 0x180093ae7\nmov     dword ptr [rbx+40h], 0                                         ; +0x3a, 0x180093aea\nmov     ecx, 3; Count                                                  ; +0x41, 0x180093af1\ncall    ?createWithCapacity@CCArray@cocos2d@@SAPEAV12@I@Z; cocos2d::CCArray::createWithCapacity(uint) ; +0x46, 0x180093af6\nmov     [rbx+38h], rax                                                 ; +0x4b, 0x180093afb\nmov     rcx, rax; this                                                 ; +0x4f, 0x180093aff\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x52, 0x180093b02\nnop                                                                    ; +0x57, 0x180093b07\njmp     short loc_180093B0C                                            ; +0x58, 0x180093b08\nxor     ebx, ebx                                                       ; +0x5a, 0x180093b0a\nmov     cs:qword_1801A8A00, rbx                                        ; +0x5c, 0x180093b0c\nmov     rax, rbx                                                       ; +0x63, 0x180093b13\nadd     rsp, 20h                                                       ; +0x66, 0x180093b16\npop     rbx                                                            ; +0x6a, 0x180093b1a\nretn                                                                   ; +0x6b, 0x180093b1b", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b65d0"], "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"}