{"type": "func", "start": 6443191680, "end": 6443191879, "name": "cocos2d::CCIMEDispatcher::sharedDispatcher", "pseudocode": "// \n// cocos2d::CCIMEDispatcher::sharedDispatcher from 0x1800b4d80 to 0x1800b4e47 (199 bytes)\n// \n// 16 xrefs:\n// > cocos2d::CCEGLView::onGLFWCharCallback @ 0x18007756f\n// > cocos2d::CCEGLView::onGLFWCharCallback @ 0x180077581\n// > sub_1800775B0 @ 0x1800775c7\n// > sub_1800775B0 @ 0x1800775d9\n// > cocos2d::CCEGLView::performSafeClipboardPaste @ 0x180077eee\n// > cocos2d::CCEGLView::performSafeClipboardPaste @ 0x180077fca\n// > cocos2d::CCEGLView::pumpRawInput @ 0x1800783fb\n// > cocos2d::CCEGLView::pumpRawInput @ 0x180078425\n// > cocos2d::CCEGLView::pumpRawInput @ 0x180078438\n// > cocos2d::CCEGLView::pumpRawInput @ 0x18007845d\n// > cocos2d::CCIMEDelegate::CCIMEDelegate @ 0x1800b45f3\n// > cocos2d::CCIMEDelegate::~CCIMEDelegate @ 0x1800b4693\n// > cocos2d::CCIMEDelegate::attachWithIME @ 0x1800b49b9\n// > cocos2d::CCIMEDelegate::detachWithIME @ 0x1800b4a3d\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b8a18\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::CCIMEDispatcher *__fastcall cocos2d::CCIMEDispatcher::sharedDispatcher()\n{\n  _QWORD *v1; // rax\n  _QWORD *v2; // rbx\n  _QWORD *v3; // rax\n\n  if ( dword_1801A9AF8 <= *(_DWORD *)(*((_QWORD *)NtCurrentTeb()->ThreadLocalStoragePointer + (unsigned int)TlsIndex)\n                                    + 4LL) )\n    return (struct cocos2d::CCIMEDispatcher *)&qword_1801A9AF0;\n  Init_thread_header(&dword_1801A9AF8);\n  if ( dword_1801A9AF8 != -1 )\n    return (struct cocos2d::CCIMEDispatcher *)&qword_1801A9AF0;\n  v1 = operator new(0x18u);\n  v2 = v1;\n  if ( v1 )\n  {\n    *v1 = 0;\n    v1[1] = 0;\n    v3 = operator new(0x18u);\n    *v3 = v3;\n    v3[1] = v3;\n    *v2 = v3;\n  }\n  else\n  {\n    v2 = nullptr;\n  }\n  qword_1801A9AF0 = v2;\n  v2[2] = 0;\n  atexit(sub_1800E3D60);\n  Init_thread_footer(&dword_1801A9AF8);\n  return (struct cocos2d::CCIMEDispatcher *)&qword_1801A9AF0;\n}", "assembly": "; \n; cocos2d::CCIMEDispatcher::sharedDispatcher from 0x1800b4d80 to 0x1800b4e47 (199 bytes)\n; \n; 16 xrefs:\n; > cocos2d::CCEGLView::onGLFWCharCallback @ 0x18007756f\n; > cocos2d::CCEGLView::onGLFWCharCallback @ 0x180077581\n; > sub_1800775B0 @ 0x1800775c7\n; > sub_1800775B0 @ 0x1800775d9\n; > cocos2d::CCEGLView::performSafeClipboardPaste @ 0x180077eee\n; > cocos2d::CCEGLView::performSafeClipboardPaste @ 0x180077fca\n; > cocos2d::CCEGLView::pumpRawInput @ 0x1800783fb\n; > cocos2d::CCEGLView::pumpRawInput @ 0x180078425\n; > cocos2d::CCEGLView::pumpRawInput @ 0x180078438\n; > cocos2d::CCEGLView::pumpRawInput @ 0x18007845d\n; > cocos2d::CCIMEDelegate::CCIMEDelegate @ 0x1800b45f3\n; > cocos2d::CCIMEDelegate::~CCIMEDelegate @ 0x1800b4693\n; > cocos2d::CCIMEDelegate::attachWithIME @ 0x1800b49b9\n; > cocos2d::CCIMEDelegate::detachWithIME @ 0x1800b4a3d\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b8a18\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, 0x1800b4d80\nsub     rsp, 20h                                                       ; +0x2, 0x1800b4d82\nmov     ecx, cs:TlsIndex                                               ; +0x6, 0x1800b4d86\nmov     rax, gs:58h                                                    ; +0xc, 0x1800b4d8c\nmov     edx, 4                                                         ; +0x15, 0x1800b4d95\nmov     rax, [rax+rcx*8]                                               ; +0x1a, 0x1800b4d9a\nmov     eax, [rdx+rax]                                                 ; +0x1e, 0x1800b4d9e\ncmp     cs:dword_1801A9AF8, eax                                        ; +0x21, 0x1800b4da1\njg      short loc_1800B4DEB                                            ; +0x27, 0x1800b4da7\nlea     rax, qword_1801A9AF0                                           ; +0x29, 0x1800b4da9\nadd     rsp, 20h                                                       ; +0x30, 0x1800b4db0\npop     rbx                                                            ; +0x34, 0x1800b4db4\nretn                                                                   ; +0x35, 0x1800b4db5\nmov     cs:qword_1801A9AF0, rbx                                        ; +0x36, 0x1800b4db6\nmov     qword ptr [rbx+10h], 0                                         ; +0x3d, 0x1800b4dbd\nlea     rcx, sub_1800E3D60; void (__cdecl *)()                         ; +0x45, 0x1800b4dc5\ncall    atexit                                                         ; +0x4c, 0x1800b4dcc\nnop                                                                    ; +0x51, 0x1800b4dd1\nlea     rcx, dword_1801A9AF8                                           ; +0x52, 0x1800b4dd2\ncall    _Init_thread_footer                                            ; +0x59, 0x1800b4dd9\nlea     rax, qword_1801A9AF0                                           ; +0x5e, 0x1800b4dde\nadd     rsp, 20h                                                       ; +0x65, 0x1800b4de5\npop     rbx                                                            ; +0x69, 0x1800b4de9\nretn                                                                   ; +0x6a, 0x1800b4dea\nlea     rcx, dword_1801A9AF8                                           ; +0x6b, 0x1800b4deb\ncall    _Init_thread_header                                            ; +0x72, 0x1800b4df2\ncmp     cs:dword_1801A9AF8, 0FFFFFFFFh                                 ; +0x77, 0x1800b4df7\njnz     short loc_1800B4DA9                                            ; +0x7e, 0x1800b4dfe\nmov     ecx, 18h; Size                                                 ; +0x80, 0x1800b4e00\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x85, 0x1800b4e05\nmov     rbx, rax                                                       ; +0x8a, 0x1800b4e0a\nmov     [rsp+28h+arg_0], rax                                           ; +0x8d, 0x1800b4e0d\ntest    rax, rax                                                       ; +0x92, 0x1800b4e12\njz      short loc_1800B4E3F                                            ; +0x95, 0x1800b4e15\nmov     qword ptr [rax], 0                                             ; +0x97, 0x1800b4e17\nmov     qword ptr [rax+8], 0                                           ; +0x9e, 0x1800b4e1e\nmov     ecx, 18h; Size                                                 ; +0xa6, 0x1800b4e26\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xab, 0x1800b4e2b\nmov     [rax], rax                                                     ; +0xb0, 0x1800b4e30\nmov     [rax+8], rax                                                   ; +0xb3, 0x1800b4e33\nmov     [rbx], rax                                                     ; +0xb7, 0x1800b4e37\njmp     loc_1800B4DB6                                                  ; +0xba, 0x1800b4e3a\nxor     ebx, ebx                                                       ; +0xbf, 0x1800b4e3f\njmp     loc_1800B4DB6                                                  ; +0xc1, 0x1800b4e41\ndb 0CCh                                                                ; +0xc6, 0x1800b4e46", "xrefs": ["cocos2d::CCEGLView::onGLFWCharCallback @ 0x18007756f", "cocos2d::CCEGLView::onGLFWCharCallback @ 0x180077581", "sub_1800775B0 @ 0x1800775c7", "sub_1800775B0 @ 0x1800775d9", "cocos2d::CCEGLView::performSafeClipboardPaste @ 0x180077eee", "cocos2d::CCEGLView::performSafeClipboardPaste @ 0x180077fca", "cocos2d::CCEGLView::pumpRawInput @ 0x1800783fb", "cocos2d::CCEGLView::pumpRawInput @ 0x180078425", "cocos2d::CCEGLView::pumpRawInput @ 0x180078438", "cocos2d::CCEGLView::pumpRawInput @ 0x18007845d", "cocos2d::CCIMEDelegate::CCIMEDelegate @ 0x1800b45f3", "cocos2d::CCIMEDelegate::~CCIMEDelegate @ 0x1800b4693", "cocos2d::CCIMEDelegate::attachWithIME @ 0x1800b49b9", "cocos2d::CCIMEDelegate::detachWithIME @ 0x1800b4a3d", "<???> @ 0x1801438a8", "<???> @ 0x1801b8a18"], "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"}