{"type": "func", "start": 6442732976, "end": 6442733028, "name": "cocos2d::CCKeyboardDispatcher::convertKeyCode", "pseudocode": "// \n// cocos2d::CCKeyboardDispatcher::convertKeyCode from 0x180044db0 to 0x180044de4 (52 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCEGLView::pumpRawInput @ 0x180078371\n// > <???> @ 0x1801438a8\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__int64 __fastcall cocos2d::CCKeyboardDispatcher::convertKeyCode(unsigned int a1)\n{\n  switch ( a1 )\n  {\n    case 0x11Bu:\n      return 38;\n    case 0x11Cu:\n      return 40;\n    case 0x11Du:\n      return 37;\n    case 0x11Eu:\n      return 39;\n  }\n  return a1;\n}", "assembly": "; \n; cocos2d::CCKeyboardDispatcher::convertKeyCode from 0x180044db0 to 0x180044de4 (52 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCEGLView::pumpRawInput @ 0x180078371\n; > <???> @ 0x1801438a8\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\nmov     edx, ecx                                                       ; +0x0, 0x180044db0\nsub     edx, 11Bh                                                      ; +0x2, 0x180044db2\njz      short loc_180044DDE                                            ; +0x8, 0x180044db8\nsub     edx, 1                                                         ; +0xa, 0x180044dba\njz      short loc_180044DD8                                            ; +0xd, 0x180044dbd\nsub     edx, 1                                                         ; +0xf, 0x180044dbf\njz      short loc_180044DD2                                            ; +0x12, 0x180044dc2\ncmp     edx, 1                                                         ; +0x14, 0x180044dc4\njz      short loc_180044DCC                                            ; +0x17, 0x180044dc7\nmov     eax, ecx                                                       ; +0x19, 0x180044dc9\nretn                                                                   ; +0x1b, 0x180044dcb\nmov     eax, 27h ; '''                                                 ; +0x1c, 0x180044dcc\nretn                                                                   ; +0x21, 0x180044dd1\nmov     eax, 25h ; '%'                                                 ; +0x22, 0x180044dd2\nretn                                                                   ; +0x27, 0x180044dd7\nmov     eax, 28h ; '('                                                 ; +0x28, 0x180044dd8\nretn                                                                   ; +0x2d, 0x180044ddd\nmov     eax, 26h ; '&'                                                 ; +0x2e, 0x180044dde\nretn                                                                   ; +0x33, 0x180044de3", "xrefs": ["cocos2d::CCEGLView::pumpRawInput @ 0x180078371", "<???> @ 0x1801438a8"], "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"}