{"type": "func", "start": 5369578416, "end": 5369578474, "name": "DialogLayer::keyDown", "pseudocode": "// \n// DialogLayer::keyDown from 0x1400d43b0 to 0x1400d43ea (58 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1405507a0\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// local variable allocation has failed, the output may be wrong!\nvoid DialogLayer::keyDown(DialogLayer *a1, cocos2d::enumKeyCodes a2, double a3)\n{\n  __int64 v3; // rax\n  __int32 v4; // edx\n\n  if ( a2 <= CONTROLLER_A )\n  {\n    if ( a2 != CONTROLLER_A )\n    {\n      if ( (unsigned int)a2 > KEY_Up )\n        return;\n      v3 = 0x4108000000LL;\n      if ( !_bittest64(&v3, *(unsigned __int64 *)&a2) )\n        return;\n    }\nLABEL_8:\n    DialogLayer::handleDialogTap((DialogLayer *)((char *)a1 - 344));\n    return;\n  }\n  v4 = a2 - 1013;\n  if ( !v4 || v4 == 2 )\n    goto LABEL_8;\n}", "assembly": "; \n; DialogLayer::keyDown from 0x1400d43b0 to 0x1400d43ea (58 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1405507a0\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\ncmp     edx, 3E9h                                                      ; +0x0, 0x1400d43b0\njg      short loc_1400D43D0                                            ; +0x6, 0x1400d43b6\njz      short loc_1400D43DD                                            ; +0x8, 0x1400d43b8\ncmp     edx, 26h ; '&'                                                 ; +0xa, 0x1400d43ba\nja      short locret_1400D43E9                                         ; +0xd, 0x1400d43bd\nmov     rax, 4108000000h                                               ; +0xf, 0x1400d43bf\nbt      rax, rdx                                                       ; +0x19, 0x1400d43c9\njb      short loc_1400D43DD                                            ; +0x1d, 0x1400d43cd\nretn                                                                   ; +0x1f, 0x1400d43cf\nsub     edx, 3F5h                                                      ; +0x20, 0x1400d43d0\njz      short loc_1400D43DD                                            ; +0x26, 0x1400d43d6\ncmp     edx, 2                                                         ; +0x28, 0x1400d43d8\njnz     short locret_1400D43E9                                         ; +0x2b, 0x1400d43db\nadd     rcx, 0FFFFFFFFFFFFFEA8h                                        ; +0x2d, 0x1400d43dd\njmp     DialogLayer__handleDialogTap                                   ; +0x34, 0x1400d43e4\nretn                                                                   ; +0x39, 0x1400d43e9", "xrefs": ["<???> @ 0x1405507a0"], "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"}