{"type": "func", "start": 6442951264, "end": 6442951517, "name": "cocos2d::CCEGLView::onGLFWCharCallback", "pseudocode": "// \n// cocos2d::CCEGLView::onGLFWCharCallback from 0x18007a260 to 0x18007a35d (253 bytes)\n// \n// 3 xrefs:\n// > sub_18007A360 @ 0x18007a375\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bec80\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:21:59 +0000\n// \n\nvoid __fastcall cocos2d::CCEGLView::onGLFWCharCallback(\n        cocos2d::CCEGLView *this,\n        struct GLFWwindow *a2,\n        unsigned int a3)\n{\n  cocos2d::CCIMEDispatcher *v3; // rax\n  unsigned int v4; // ebx\n  struct cocos2d::CCIMEDispatcher *v5; // rax\n  char v6; // [rsp+40h] [rbp+18h] BYREF\n  char v7; // [rsp+41h] [rbp+19h]\n  char v8; // [rsp+42h] [rbp+1Ah]\n  char v9; // [rsp+43h] [rbp+1Bh]\n\n  if ( a3 == 8 )\n  {\n    v3 = cocos2d::CCIMEDispatcher::sharedDispatcher();\n    cocos2d::CCIMEDispatcher::dispatchDeleteBackward(v3);\n    return;\n  }\n  if ( a3 > 0x7F )\n  {\n    if ( a3 > 0x7FF )\n    {\n      if ( a3 > 0xFFFF )\n      {\n        if ( a3 > 0x10FFFF )\n          return;\n        v4 = 4;\n        v6 = (a3 >> 18) | 0xF0;\n        v7 = (a3 >> 12) & 0x3F | 0x80;\n        v8 = (a3 >> 6) & 0x3F | 0x80;\n        v9 = a3 & 0x3F | 0x80;\n      }\n      else\n      {\n        v4 = 3;\n        v6 = (a3 >> 12) | 0xE0;\n        v7 = (a3 >> 6) & 0x3F | 0x80;\n        v8 = a3 & 0x3F | 0x80;\n      }\n    }\n    else\n    {\n      v4 = 2;\n      v6 = (a3 >> 6) | 0xC0;\n      v7 = a3 & 0x3F | 0x80;\n    }\n  }\n  else\n  {\n    v6 = a3;\n    v4 = 1;\n  }\n  v5 = cocos2d::CCIMEDispatcher::sharedDispatcher();\n  cocos2d::CCIMEDispatcher::dispatchInsertText(v5, &v6, v4, 0xFFFFFFFFLL);\n}", "assembly": "; \n; cocos2d::CCEGLView::onGLFWCharCallback from 0x18007a260 to 0x18007a35d (253 bytes)\n; \n; 3 xrefs:\n; > sub_18007A360 @ 0x18007a375\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bec80\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:21:59 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x18007a260\ncmp     r8d, 8                                                         ; +0x4, 0x18007a264\njnz     short loc_18007A27B                                            ; +0x8, 0x18007a268\ncall    ?sharedDispatcher@CCIMEDispatcher@cocos2d@@SAPEAV12@XZ; cocos2d::CCIMEDispatcher::sharedDispatcher(void) ; +0xa, 0x18007a26a\nmov     rcx, rax; this                                                 ; +0xf, 0x18007a26f\nadd     rsp, 28h                                                       ; +0x12, 0x18007a272\njmp     ?dispatchDeleteBackward@CCIMEDispatcher@cocos2d@@QEAAXXZ; cocos2d::CCIMEDispatcher::dispatchDeleteBackward(void) ; +0x16, 0x18007a276\nmov     [rsp+28h+var_8], rbx                                           ; +0x1b, 0x18007a27b\ncmp     r8d, 7Fh                                                       ; +0x20, 0x18007a280\nja      short loc_18007A295                                            ; +0x24, 0x18007a284\nmov     [rsp+28h+arg_10], r8b                                          ; +0x26, 0x18007a286\nmov     ebx, 1                                                         ; +0x2b, 0x18007a28b\njmp     loc_18007A338                                                  ; +0x30, 0x18007a290\ncmp     r8d, 7FFh                                                      ; +0x35, 0x18007a295\nja      short loc_18007A2BE                                            ; +0x3c, 0x18007a29c\nmov     eax, r8d                                                       ; +0x3e, 0x18007a29e\nmov     ebx, 2                                                         ; +0x41, 0x18007a2a1\nshr     eax, 6                                                         ; +0x46, 0x18007a2a6\nand     r8b, 3Fh                                                       ; +0x49, 0x18007a2a9\nor      al, 0C0h                                                       ; +0x4d, 0x18007a2ad\nor      r8b, 80h                                                       ; +0x4f, 0x18007a2af\nmov     [rsp+28h+arg_10], al                                           ; +0x53, 0x18007a2b3\nmov     [rsp+28h+arg_11], r8b                                          ; +0x57, 0x18007a2b7\njmp     short loc_18007A338                                            ; +0x5c, 0x18007a2bc\ncmp     r8d, 0FFFFh                                                    ; +0x5e, 0x18007a2be\nja      short loc_18007A2F5                                            ; +0x65, 0x18007a2c5\nmov     eax, r8d                                                       ; +0x67, 0x18007a2c7\nmov     ebx, 3                                                         ; +0x6a, 0x18007a2ca\nshr     eax, 0Ch                                                       ; +0x6f, 0x18007a2cf\nor      al, 0E0h                                                       ; +0x72, 0x18007a2d2\nmov     [rsp+28h+arg_10], al                                           ; +0x74, 0x18007a2d4\nmov     eax, r8d                                                       ; +0x78, 0x18007a2d8\nshr     eax, 6                                                         ; +0x7b, 0x18007a2db\nand     r8b, 3Fh                                                       ; +0x7e, 0x18007a2de\nand     al, 3Fh                                                        ; +0x82, 0x18007a2e2\nor      al, 80h                                                        ; +0x84, 0x18007a2e4\nor      r8b, 80h                                                       ; +0x86, 0x18007a2e6\nmov     [rsp+28h+arg_11], al                                           ; +0x8a, 0x18007a2ea\nmov     [rsp+28h+arg_12], r8b                                          ; +0x8e, 0x18007a2ee\njmp     short loc_18007A338                                            ; +0x93, 0x18007a2f3\ncmp     r8d, 10FFFFh                                                   ; +0x95, 0x18007a2f5\nja      short loc_18007A353                                            ; +0x9c, 0x18007a2fc\nmov     eax, r8d                                                       ; +0x9e, 0x18007a2fe\nmov     ebx, 4                                                         ; +0xa1, 0x18007a301\nshr     eax, 12h                                                       ; +0xa6, 0x18007a306\nor      al, 0F0h                                                       ; +0xa9, 0x18007a309\nmov     [rsp+28h+arg_10], al                                           ; +0xab, 0x18007a30b\nmov     eax, r8d                                                       ; +0xaf, 0x18007a30f\nshr     eax, 0Ch                                                       ; +0xb2, 0x18007a312\nand     al, 3Fh                                                        ; +0xb5, 0x18007a315\nor      al, 80h                                                        ; +0xb7, 0x18007a317\nmov     [rsp+28h+arg_11], al                                           ; +0xb9, 0x18007a319\nmov     eax, r8d                                                       ; +0xbd, 0x18007a31d\nshr     eax, 6                                                         ; +0xc0, 0x18007a320\nand     r8b, 3Fh                                                       ; +0xc3, 0x18007a323\nand     al, 3Fh                                                        ; +0xc7, 0x18007a327\nor      al, 80h                                                        ; +0xc9, 0x18007a329\nor      r8b, 80h                                                       ; +0xcb, 0x18007a32b\nmov     [rsp+28h+arg_12], al                                           ; +0xcf, 0x18007a32f\nmov     [rsp+28h+arg_13], r8b                                          ; +0xd3, 0x18007a333\ncall    ?sharedDispatcher@CCIMEDispatcher@cocos2d@@SAPEAV12@XZ; cocos2d::CCIMEDispatcher::sharedDispatcher(void) ; +0xd8, 0x18007a338\nmov     rcx, rax                                                       ; +0xdd, 0x18007a33d\nlea     rdx, [rsp+28h+arg_10]                                          ; +0xe0, 0x18007a340\nmov     r9d, 0FFFFFFFFh                                                ; +0xe5, 0x18007a345\nmov     r8d, ebx                                                       ; +0xeb, 0x18007a34b\ncall    ?dispatchInsertText@CCIMEDispatcher@cocos2d@@QEAAXPEBDHW4enumKeyCodes@2@@Z; cocos2d::CCIMEDispatcher::dispatchInsertText(char const *,int,cocos2d::enumKeyCodes) ; +0xee, 0x18007a34e\nmov     rbx, [rsp+28h+var_8]                                           ; +0xf3, 0x18007a353\nadd     rsp, 28h                                                       ; +0xf8, 0x18007a358\nretn                                                                   ; +0xfc, 0x18007a35c", "xrefs": ["sub_18007A360 @ 0x18007a375", "<???> @ 0x18014cf68", "<???> @ 0x1801bec80"], "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"}