{"type": "func", "start": 6442939824, "end": 6442939898, "name": "sub_1800775B0", "pseudocode": "// \n// sub_1800775B0 from 0x1800775b0 to 0x1800775fa (74 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCEGLView::setupWindow @ 0x180078b10\n// > <???> @ 0x1801b4974\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\nvoid __fastcall sub_1800775B0(__int64 a1, int a2)\n{\n  cocos2d::CCIMEDispatcher *v2; // rax\n  cocos2d::CCIMEDispatcher *v3; // rax\n  int v4; // [rsp+40h] [rbp+18h] BYREF\n\n  if ( qword_1801A8500 )\n  {\n    v4 = a2;\n    if ( a2 == 8 )\n    {\n      v2 = cocos2d::CCIMEDispatcher::sharedDispatcher();\n      cocos2d::CCIMEDispatcher::dispatchDeleteBackward(v2);\n    }\n    else\n    {\n      v3 = cocos2d::CCIMEDispatcher::sharedDispatcher();\n      cocos2d::CCIMEDispatcher::dispatchInsertText(v3, (const char *)&v4, 1, KEY_Unknown);\n    }\n  }\n}", "assembly": "; \n; sub_1800775B0 from 0x1800775b0 to 0x1800775fa (74 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCEGLView::setupWindow @ 0x180078b10\n; > <???> @ 0x1801b4974\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\nsub     rsp, 28h                                                       ; +0x0, 0x1800775b0\ncmp     cs:qword_1801A8500, 0                                          ; +0x4, 0x1800775b4\njz      short loc_1800775F5                                            ; +0xc, 0x1800775bc\nmov     [rsp+28h+arg_10], edx                                          ; +0xe, 0x1800775be\ncmp     edx, 8                                                         ; +0x12, 0x1800775c2\njnz     short loc_1800775D9                                            ; +0x15, 0x1800775c5\ncall    ?sharedDispatcher@CCIMEDispatcher@cocos2d@@SAPEAV12@XZ; cocos2d::CCIMEDispatcher::sharedDispatcher(void) ; +0x17, 0x1800775c7\nmov     rcx, rax; this                                                 ; +0x1c, 0x1800775cc\ncall    ?dispatchDeleteBackward@CCIMEDispatcher@cocos2d@@QEAAXXZ; cocos2d::CCIMEDispatcher::dispatchDeleteBackward(void) ; +0x1f, 0x1800775cf\nadd     rsp, 28h                                                       ; +0x24, 0x1800775d4\nretn                                                                   ; +0x28, 0x1800775d8\ncall    ?sharedDispatcher@CCIMEDispatcher@cocos2d@@SAPEAV12@XZ; cocos2d::CCIMEDispatcher::sharedDispatcher(void) ; +0x29, 0x1800775d9\nmov     r9d, 0FFFFFFFFh                                                ; +0x2e, 0x1800775de\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x34, 0x1800775e4\nmov     rcx, rax                                                       ; +0x39, 0x1800775e9\nlea     r8d, [r9+2]                                                    ; +0x3c, 0x1800775ec\ncall    ?dispatchInsertText@CCIMEDispatcher@cocos2d@@QEAAXPEBDHW4enumKeyCodes@2@@Z; cocos2d::CCIMEDispatcher::dispatchInsertText(char const *,int,cocos2d::enumKeyCodes) ; +0x40, 0x1800775f0\nadd     rsp, 28h                                                       ; +0x45, 0x1800775f5\nretn                                                                   ; +0x49, 0x1800775f9", "xrefs": ["cocos2d::CCEGLView::setupWindow @ 0x180078b10", "<???> @ 0x1801b4974"], "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"}