
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int rl_unbind_key(int key)

{
  int iVar1;
  rl_command_func_t *prVar2;
  Keymap pKVar3;
  Keymap pKVar4;
  int iVar5;
  int iVar6;
  int in_GS_OFFSET;
  char keyseq [3];
  
  pKVar3 = _rl_keymap;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (key < 0) goto LAB_000efd77;
  if (key - 0x80U < 0x80) {
    if (_rl_convert_meta_chars_to_ascii != 0) {
      if (_rl_keymap[0x1b].type == '\x01') {
        prVar2 = _rl_keymap[0x1b].function;
        prVar2[(key & 0xffffff7fU) * 8] = (rl_command_func_t)0x0;
        *(undefined4 *)(prVar2 + (key & 0xffffff7fU) * 8 + 4) = 0;
        key = 0;
      }
      goto LAB_000efd77;
    }
    if (_rl_keymap[key].type == '\x01') {
      iVar5 = 1;
      iVar6 = 0;
      goto LAB_000efda9;
    }
LAB_000efd63:
    pKVar4 = _rl_keymap + key;
    pKVar4->type = '\0';
    pKVar4->function = (rl_command_func_t *)0x0;
    rl_binding_keymap = pKVar3;
  }
  else {
    if (_rl_keymap[key].type != '\x01') goto LAB_000efd63;
    if (key == 0x5c) {
      keyseq[0] = '\\';
      iVar5 = 2;
      iVar6 = 1;
    }
    else {
      iVar5 = 1;
      iVar6 = 0;
    }
LAB_000efda9:
    keyseq[iVar6] = (char)key;
    keyseq[iVar5] = '\0';
    rl_generic_bind(0,keyseq,(char *)0x0,_rl_keymap);
    rl_binding_keymap = _rl_keymap;
  }
  key = 0;
LAB_000efd77:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return key;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

uint rl_unbind_key(uint param_1)

{
  undefined1 *puVar1;
  undefined *puVar2;
  char *pcVar3;
  int iVar4;
  int iVar5;
  int in_GS_OFFSET;
  undefined1 local_13 [3];
  int local_10;
  
  puVar2 = _rl_keymap;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if ((int)param_1 < 0) goto LAB_000efd77;
  if (param_1 - 0x80 < 0x80) {
    if (_rl_convert_meta_chars_to_ascii != 0) {
      if (_rl_keymap[0xd8] == '\x01') {
        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);
        *puVar1 = 0;
        *(undefined4 *)(puVar1 + 4) = 0;
        param_1 = 0;
      }
      goto LAB_000efd77;
    }
    pcVar3 = _rl_keymap + param_1 * 8;
    if (*pcVar3 == '\x01') {
      iVar4 = 1;
      iVar5 = 0;
      goto LAB_000efda9;
    }
LAB_000efd63:
    *pcVar3 = '\0';
    pcVar3[4] = '\0';
    pcVar3[5] = '\0';
    pcVar3[6] = '\0';
    pcVar3[7] = '\0';
    rl_binding_keymap = puVar2;
  }
  else {
    pcVar3 = _rl_keymap + param_1 * 8;
    if (*pcVar3 != '\x01') goto LAB_000efd63;
    if (param_1 == 0x5c) {
      local_13[0] = 0x5c;
      iVar4 = 2;
      iVar5 = 1;
    }
    else {
      iVar4 = 1;
      iVar5 = 0;
    }
LAB_000efda9:
    local_13[iVar5] = (char)param_1;
    local_13[iVar4] = 0;
    rl_generic_bind(0,local_13,0,_rl_keymap);
    rl_binding_keymap = _rl_keymap;
  }
  param_1 = 0;
LAB_000efd77:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0010f8b0();
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000312b0
ADD EBX,0x822d8
SUB ESP,0x10
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV EDX,dword ptr [ESP + 0x20]
MOV EAX,EDX
TEST EDX,EDX
JS 0x000efd77
LEA ESI,[EBX + 0x1d5c]
LEA EDI,[EDX + -0x80]
MOV ECX,dword ptr [ESI]
CMP EDI,0x7f
JBE 0x000efd90
LEA EAX,[ECX + EDX*0x8]
CMP byte ptr [EAX],0x1
JZ 0x000efdf8
MOV byte ptr [EAX],0x0
MOV dword ptr [EAX + 0x4],0x0
LEA EAX,[EBX + 0xd9bc]
MOV dword ptr [EAX],ECX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0xc]
XOR ESI,dword ptr GS:[0x14]
JNZ 0x000efe19
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
LEA EDI,[EBX + 0x1d34]
MOV EDI,dword ptr [EDI]
TEST EDI,EDI
JNZ 0x000efdd0
LEA EAX,[ECX + EDX*0x8]
CMP byte ptr [EAX],0x1
JNZ 0x000efd63
MOV EAX,0x1
MOV byte ptr [ESP + EDI*0x1 + 0x9],DL
MOV byte ptr [ESP + EAX*0x1 + 0x9],0x0
PUSH ECX
PUSH 0x0
LEA EAX,[ESP + 0x11]
PUSH EAX
PUSH 0x0
CALL 0x000ef7c0
MOV ECX,dword ptr [ESI]
ADD ESP,0x10
JMP 0x000efd6d
CMP byte ptr [ECX + 0xd8],0x1
JNZ 0x000efd77
MOV EDX,dword ptr [ECX + 0xdc]
AND AL,0x7f
LEA EAX,[EDX + EAX*0x8]
MOV byte ptr [EAX],0x0
MOV dword ptr [EAX + 0x4],0x0
XOR EAX,EAX
JMP 0x000efd77
CMP EDX,0x5c
JNZ 0x000efe10
MOV byte ptr [ESP + 0x9],0x5c
MOV EAX,0x2
MOV EDI,0x1
JMP 0x000efda9
MOV EAX,0x1
XOR EDI,EDI
JMP 0x000efda9
CALL 0x0010f8b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint rl_unbind_key(uint param_1)\n\n{\n  undefined1 *puVar1;\n  undefined *puVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined1 local_13 [3];\n  int local_10;\n  \n  puVar2 = _rl_keymap;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((int)param_1 < 0) goto LAB_000efd77;\n  if (param_1 - 0x80 < 0x80) {\n    if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }\n      goto LAB_000efd77;\n    }\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 == '\x01') {\n      iVar4 = 1;\n      iVar5 = 0;\n      goto LAB_000efda9;\n    }\nLAB_000efd63:\n    *pcVar3 = '\0';\n    pcVar3[4] = '\0';\n    pcVar3[5] = '\0';\n    pcVar3[6] = '\0';\n    pcVar3[7] = '\0';\n    rl_binding_keymap = puVar2;\n  }\n  else {\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 != '\x01') goto LAB_000efd63;\n    if (param_1 == 0x5c) {\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }\n    else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }\nLAB_000efda9:\n    local_13[iVar5] = (char)param_1;\n    local_13[iVar4] = 0;\n    rl_generic_bind(0,local_13,0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }\n  param_1 = 0;\nLAB_000efd77:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0010f8b0();\n}\n\n" comment (function_definition "uint rl_unbind_key(uint param_1)\n\n{\n  undefined1 *puVar1;\n  undefined *puVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined1 local_13 [3];\n  int local_10;\n  \n  puVar2 = _rl_keymap;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((int)param_1 < 0) goto LAB_000efd77;\n  if (param_1 - 0x80 < 0x80) {\n    if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }\n      goto LAB_000efd77;\n    }\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 == '\x01') {\n      iVar4 = 1;\n      iVar5 = 0;\n      goto LAB_000efda9;\n    }\nLAB_000efd63:\n    *pcVar3 = '\0';\n    pcVar3[4] = '\0';\n    pcVar3[5] = '\0';\n    pcVar3[6] = '\0';\n    pcVar3[7] = '\0';\n    rl_binding_keymap = puVar2;\n  }\n  else {\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 != '\x01') goto LAB_000efd63;\n    if (param_1 == 0x5c) {\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }\n    else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }\nLAB_000efda9:\n    local_13[iVar5] = (char)param_1;\n    local_13[iVar4] = 0;\n    rl_generic_bind(0,local_13,0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }\n  param_1 = 0;\nLAB_000efd77:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0010f8b0();\n}" type_identifier (function_declarator "rl_unbind_key(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined *puVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined1 local_13 [3];\n  int local_10;\n  \n  puVar2 = _rl_keymap;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((int)param_1 < 0) goto LAB_000efd77;\n  if (param_1 - 0x80 < 0x80) {\n    if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }\n      goto LAB_000efd77;\n    }\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 == '\x01') {\n      iVar4 = 1;\n      iVar5 = 0;\n      goto LAB_000efda9;\n    }\nLAB_000efd63:\n    *pcVar3 = '\0';\n    pcVar3[4] = '\0';\n    pcVar3[5] = '\0';\n    pcVar3[6] = '\0';\n    pcVar3[7] = '\0';\n    rl_binding_keymap = puVar2;\n  }\n  else {\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 != '\x01') goto LAB_000efd63;\n    if (param_1 == 0x5c) {\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }\n    else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }\nLAB_000efda9:\n    local_13[iVar5] = (char)param_1;\n    local_13[iVar4] = 0;\n    rl_generic_bind(0,local_13,0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }\n  param_1 = 0;\nLAB_000efd77:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0010f8b0();\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_13 [3];" type_identifier (array_declarator "local_13 [3]" identifier [ number_literal ]) ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "puVar2 = _rl_keymap;" (assignment_expression "puVar2 = _rl_keymap" identifier = identifier) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((int)param_1 < 0) goto LAB_000efd77;" if (parenthesized_expression "((int)param_1 < 0)" ( (binary_expression "(int)param_1 < 0" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_000efd77;" goto statement_identifier ;)) (if_statement "if (param_1 - 0x80 < 0x80) {\n    if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }\n      goto LAB_000efd77;\n    }\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 == '\x01') {\n      iVar4 = 1;\n      iVar5 = 0;\n      goto LAB_000efda9;\n    }\nLAB_000efd63:\n    *pcVar3 = '\0';\n    pcVar3[4] = '\0';\n    pcVar3[5] = '\0';\n    pcVar3[6] = '\0';\n    pcVar3[7] = '\0';\n    rl_binding_keymap = puVar2;\n  }\n  else {\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 != '\x01') goto LAB_000efd63;\n    if (param_1 == 0x5c) {\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }\n    else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }\nLAB_000efda9:\n    local_13[iVar5] = (char)param_1;\n    local_13[iVar4] = 0;\n    rl_generic_bind(0,local_13,0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }" if (parenthesized_expression "(param_1 - 0x80 < 0x80)" ( (binary_expression "param_1 - 0x80 < 0x80" (binary_expression "param_1 - 0x80" identifier - number_literal) < number_literal) )) (compound_statement "{\n    if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }\n      goto LAB_000efd77;\n    }\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 == '\x01') {\n      iVar4 = 1;\n      iVar5 = 0;\n      goto LAB_000efda9;\n    }\nLAB_000efd63:\n    *pcVar3 = '\0';\n    pcVar3[4] = '\0';\n    pcVar3[5] = '\0';\n    pcVar3[6] = '\0';\n    pcVar3[7] = '\0';\n    rl_binding_keymap = puVar2;\n  }" { (if_statement "if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }\n      goto LAB_000efd77;\n    }" if (parenthesized_expression "(_rl_convert_meta_chars_to_ascii != 0)" ( (binary_expression "_rl_convert_meta_chars_to_ascii != 0" identifier != number_literal) )) (compound_statement "{\n      if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }\n      goto LAB_000efd77;\n    }" { (if_statement "if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }" if (parenthesized_expression "(_rl_keymap[0xd8] == '\x01')" ( (binary_expression "_rl_keymap[0xd8] == '\x01'" (subscript_expression "_rl_keymap[0xd8]" identifier [ number_literal ]) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }" { (expression_statement "puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);" (assignment_expression "puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8)" identifier = (cast_expression "(undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8)" ( (binary_expression "*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8" (pointer_expression "*(int *)(_rl_keymap + 0xdc)" * (cast_expression "(int *)(_rl_keymap + 0xdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(_rl_keymap + 0xdc)" ( (binary_expression "_rl_keymap + 0xdc" identifier + number_literal) )))) + (binary_expression "(param_1 & 0xffffff7f) * 8" (parenthesized_expression "(param_1 & 0xffffff7f)" ( (binary_expression "param_1 & 0xffffff7f" identifier & number_literal) )) * number_literal)) )))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar1 + 4) = 0;" (assignment_expression "*(undefined4 *)(puVar1 + 4) = 0" (pointer_expression "*(undefined4 *)(puVar1 + 4)" * (cast_expression "(undefined4 *)(puVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 4)" ( (binary_expression "puVar1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1 = 0;" (assignment_expression "param_1 = 0" identifier = number_literal) ;) })) (goto_statement "goto LAB_000efd77;" goto statement_identifier ;) })) (expression_statement "pcVar3 = _rl_keymap + param_1 * 8;" (assignment_expression "pcVar3 = _rl_keymap + param_1 * 8" identifier = (binary_expression "_rl_keymap + param_1 * 8" identifier + (binary_expression "param_1 * 8" identifier * number_literal))) ;) (if_statement "if (*pcVar3 == '\x01') {\n      iVar4 = 1;\n      iVar5 = 0;\n      goto LAB_000efda9;\n    }" if (parenthesized_expression "(*pcVar3 == '\x01')" ( (binary_expression "*pcVar3 == '\x01'" (pointer_expression "*pcVar3" * identifier) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      iVar4 = 1;\n      iVar5 = 0;\n      goto LAB_000efda9;\n    }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000efda9;" goto statement_identifier ;) })) (labeled_statement "LAB_000efd63:\n    *pcVar3 = '\0';" statement_identifier : (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;)) (expression_statement "pcVar3[4] = '\0';" (assignment_expression "pcVar3[4] = '\0'" (subscript_expression "pcVar3[4]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[5] = '\0';" (assignment_expression "pcVar3[5] = '\0'" (subscript_expression "pcVar3[5]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[6] = '\0';" (assignment_expression "pcVar3[6] = '\0'" (subscript_expression "pcVar3[6]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[7] = '\0';" (assignment_expression "pcVar3[7] = '\0'" (subscript_expression "pcVar3[7]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "rl_binding_keymap = puVar2;" (assignment_expression "rl_binding_keymap = puVar2" identifier = identifier) ;) }) (else_clause "else {\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 != '\x01') goto LAB_000efd63;\n    if (param_1 == 0x5c) {\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }\n    else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }\nLAB_000efda9:\n    local_13[iVar5] = (char)param_1;\n    local_13[iVar4] = 0;\n    rl_generic_bind(0,local_13,0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }" else (compound_statement "{\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 != '\x01') goto LAB_000efd63;\n    if (param_1 == 0x5c) {\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }\n    else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }\nLAB_000efda9:\n    local_13[iVar5] = (char)param_1;\n    local_13[iVar4] = 0;\n    rl_generic_bind(0,local_13,0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }" { (expression_statement "pcVar3 = _rl_keymap + param_1 * 8;" (assignment_expression "pcVar3 = _rl_keymap + param_1 * 8" identifier = (binary_expression "_rl_keymap + param_1 * 8" identifier + (binary_expression "param_1 * 8" identifier * number_literal))) ;) (if_statement "if (*pcVar3 != '\x01') goto LAB_000efd63;" if (parenthesized_expression "(*pcVar3 != '\x01')" ( (binary_expression "*pcVar3 != '\x01'" (pointer_expression "*pcVar3" * identifier) != (char_literal "'\x01'" ' escape_sequence ')) )) (goto_statement "goto LAB_000efd63;" goto statement_identifier ;)) (if_statement "if (param_1 == 0x5c) {\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }\n    else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }" if (parenthesized_expression "(param_1 == 0x5c)" ( (binary_expression "param_1 == 0x5c" identifier == number_literal) )) (compound_statement "{\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }" { (expression_statement "local_13[0] = 0x5c;" (assignment_expression "local_13[0] = 0x5c" (subscript_expression "local_13[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" identifier = number_literal) ;) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }" else (compound_statement "{\n      iVar4 = 1;\n      iVar5 = 0;\n    }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }))) (labeled_statement "LAB_000efda9:\n    local_13[iVar5] = (char)param_1;" statement_identifier : (expression_statement "local_13[iVar5] = (char)param_1;" (assignment_expression "local_13[iVar5] = (char)param_1" (subscript_expression "local_13[iVar5]" identifier [ identifier ]) = (cast_expression "(char)param_1" ( (type_descriptor "char" primitive_type) ) identifier)) ;)) (expression_statement "local_13[iVar4] = 0;" (assignment_expression "local_13[iVar4] = 0" (subscript_expression "local_13[iVar4]" identifier [ identifier ]) = number_literal) ;) (expression_statement "rl_generic_bind(0,local_13,0,_rl_keymap);" (call_expression "rl_generic_bind(0,local_13,0,_rl_keymap)" identifier (argument_list "(0,local_13,0,_rl_keymap)" ( number_literal , identifier , number_literal , identifier ))) ;) (expression_statement "rl_binding_keymap = _rl_keymap;" (assignment_expression "rl_binding_keymap = _rl_keymap" identifier = identifier) ;) }))) (expression_statement "param_1 = 0;" (assignment_expression "param_1 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000efd77:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) }))) comment (expression_statement "FUN_0010f8b0();" (call_expression "FUN_0010f8b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint rl_unbind_key(int key)\n\n{\n  int iVar1;\n  rl_command_func_t *prVar2;\n  Keymap pKVar3;\n  Keymap pKVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  char keyseq [3];\n  \n  pKVar3 = _rl_keymap;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (key < 0) goto LAB_000efd77;\n  if (key - 0x80U < 0x80) {\n    if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0x1b].type == '\x01') {\n        prVar2 = _rl_keymap[0x1b].function;\n        prVar2[(key & 0xffffff7fU) * 8] = (rl_command_func_t)0x0;\n        *(undefined4 *)(prVar2 + (key & 0xffffff7fU) * 8 + 4) = 0;\n        key = 0;\n      }\n      goto LAB_000efd77;\n    }\n    if (_rl_keymap[key].type == '\x01') {\n      iVar5 = 1;\n      iVar6 = 0;\n      goto LAB_000efda9;\n    }\nLAB_000efd63:\n    pKVar4 = _rl_keymap + key;\n    pKVar4->type = '\0';\n    pKVar4->function = (rl_command_func_t *)0x0;\n    rl_binding_keymap = pKVar3;\n  }\n  else {\n    if (_rl_keymap[key].type != '\x01') goto LAB_000efd63;\n    if (key == 0x5c) {\n      keyseq[0] = '\\';\n      iVar5 = 2;\n      iVar6 = 1;\n    }\n    else {\n      iVar5 = 1;\n      iVar6 = 0;\n    }\nLAB_000efda9:\n    keyseq[iVar6] = (char)key;\n    keyseq[iVar5] = '\0';\n    rl_generic_bind(0,keyseq,(char *)0x0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }\n  key = 0;\nLAB_000efd77:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return key;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "int rl_unbind_key(int key)\n\n{\n  int iVar1;\n  rl_command_func_t *prVar2;\n  Keymap pKVar3;\n  Keymap pKVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  char keyseq [3];\n  \n  pKVar3 = _rl_keymap;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (key < 0) goto LAB_000efd77;\n  if (key - 0x80U < 0x80) {\n    if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0x1b].type == '\x01') {\n        prVar2 = _rl_keymap[0x1b].function;\n        prVar2[(key & 0xffffff7fU) * 8] = (rl_command_func_t)0x0;\n        *(undefined4 *)(prVar2 + (key & 0xffffff7fU) * 8 + 4) = 0;\n        key = 0;\n      }\n      goto LAB_000efd77;\n    }\n    if (_rl_keymap[key].type == '\x01') {\n      iVar5 = 1;\n      iVar6 = 0;\n      goto LAB_000efda9;\n    }\nLAB_000efd63:\n    pKVar4 = _rl_keymap + key;\n    pKVar4->type = '\0';\n    pKVar4->function = (rl_command_func_t *)0x0;\n    rl_binding_keymap = pKVar3;\n  }\n  else {\n    if (_rl_keymap[key].type != '\x01') goto LAB_000efd63;\n    if (key == 0x5c) {\n      keyseq[0] = '\\';\n      iVar5 = 2;\n      iVar6 = 1;\n    }\n    else {\n      iVar5 = 1;\n      iVar6 = 0;\n    }\nLAB_000efda9:\n    keyseq[iVar6] = (char)key;\n    keyseq[iVar5] = '\0';\n    rl_generic_bind(0,keyseq,(char *)0x0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }\n  key = 0;\nLAB_000efd77:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return key;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "rl_unbind_key(int key)" identifier (parameter_list "(int key)" ( (parameter_declaration "int key" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  rl_command_func_t *prVar2;\n  Keymap pKVar3;\n  Keymap pKVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  char keyseq [3];\n  \n  pKVar3 = _rl_keymap;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (key < 0) goto LAB_000efd77;\n  if (key - 0x80U < 0x80) {\n    if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0x1b].type == '\x01') {\n        prVar2 = _rl_keymap[0x1b].function;\n        prVar2[(key & 0xffffff7fU) * 8] = (rl_command_func_t)0x0;\n        *(undefined4 *)(prVar2 + (key & 0xffffff7fU) * 8 + 4) = 0;\n        key = 0;\n      }\n      goto LAB_000efd77;\n    }\n    if (_rl_keymap[key].type == '\x01') {\n      iVar5 = 1;\n      iVar6 = 0;\n      goto LAB_000efda9;\n    }\nLAB_000efd63:\n    pKVar4 = _rl_keymap + key;\n    pKVar4->type = '\0';\n    pKVar4->function = (rl_command_func_t *)0x0;\n    rl_binding_keymap = pKVar3;\n  }\n  else {\n    if (_rl_keymap[key].type != '\x01') goto LAB_000efd63;\n    if (key == 0x5c) {\n      keyseq[0] = '\\';\n      iVar5 = 2;\n      iVar6 = 1;\n    }\n    else {\n      iVar5 = 1;\n      iVar6 = 0;\n    }\nLAB_000efda9:\n    keyseq[iVar6] = (char)key;\n    keyseq[iVar5] = '\0';\n    rl_generic_bind(0,keyseq,(char *)0x0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }\n  key = 0;\nLAB_000efd77:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return key;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "rl_command_func_t *prVar2;" type_identifier (pointer_declarator "*prVar2" * identifier) ;) (declaration "Keymap pKVar3;" type_identifier identifier ;) (declaration "Keymap pKVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char keyseq [3];" primitive_type (array_declarator "keyseq [3]" identifier [ number_literal ]) ;) (expression_statement "pKVar3 = _rl_keymap;" (assignment_expression "pKVar3 = _rl_keymap" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (key < 0) goto LAB_000efd77;" if (parenthesized_expression "(key < 0)" ( (binary_expression "key < 0" identifier < number_literal) )) (goto_statement "goto LAB_000efd77;" goto statement_identifier ;)) (if_statement "if (key - 0x80U < 0x80) {\n    if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0x1b].type == '\x01') {\n        prVar2 = _rl_keymap[0x1b].function;\n        prVar2[(key & 0xffffff7fU) * 8] = (rl_command_func_t)0x0;\n        *(undefined4 *)(prVar2 + (key & 0xffffff7fU) * 8 + 4) = 0;\n        key = 0;\n      }\n      goto LAB_000efd77;\n    }\n    if (_rl_keymap[key].type == '\x01') {\n      iVar5 = 1;\n      iVar6 = 0;\n      goto LAB_000efda9;\n    }\nLAB_000efd63:\n    pKVar4 = _rl_keymap + key;\n    pKVar4->type = '\0';\n    pKVar4->function = (rl_command_func_t *)0x0;\n    rl_binding_keymap = pKVar3;\n  }\n  else {\n    if (_rl_keymap[key].type != '\x01') goto LAB_000efd63;\n    if (key == 0x5c) {\n      keyseq[0] = '\\';\n      iVar5 = 2;\n      iVar6 = 1;\n    }\n    else {\n      iVar5 = 1;\n      iVar6 = 0;\n    }\nLAB_000efda9:\n    keyseq[iVar6] = (char)key;\n    keyseq[iVar5] = '\0';\n    rl_generic_bind(0,keyseq,(char *)0x0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }" if (parenthesized_expression "(key - 0x80U < 0x80)" ( (binary_expression "key - 0x80U < 0x80" (binary_expression "key - 0x80U" identifier - number_literal) < number_literal) )) (compound_statement "{\n    if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0x1b].type == '\x01') {\n        prVar2 = _rl_keymap[0x1b].function;\n        prVar2[(key & 0xffffff7fU) * 8] = (rl_command_func_t)0x0;\n        *(undefined4 *)(prVar2 + (key & 0xffffff7fU) * 8 + 4) = 0;\n        key = 0;\n      }\n      goto LAB_000efd77;\n    }\n    if (_rl_keymap[key].type == '\x01') {\n      iVar5 = 1;\n      iVar6 = 0;\n      goto LAB_000efda9;\n    }\nLAB_000efd63:\n    pKVar4 = _rl_keymap + key;\n    pKVar4->type = '\0';\n    pKVar4->function = (rl_command_func_t *)0x0;\n    rl_binding_keymap = pKVar3;\n  }" { (if_statement "if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0x1b].type == '\x01') {\n        prVar2 = _rl_keymap[0x1b].function;\n        prVar2[(key & 0xffffff7fU) * 8] = (rl_command_func_t)0x0;\n        *(undefined4 *)(prVar2 + (key & 0xffffff7fU) * 8 + 4) = 0;\n        key = 0;\n      }\n      goto LAB_000efd77;\n    }" if (parenthesized_expression "(_rl_convert_meta_chars_to_ascii != 0)" ( (binary_expression "_rl_convert_meta_chars_to_ascii != 0" identifier != number_literal) )) (compound_statement "{\n      if (_rl_keymap[0x1b].type == '\x01') {\n        prVar2 = _rl_keymap[0x1b].function;\n        prVar2[(key & 0xffffff7fU) * 8] = (rl_command_func_t)0x0;\n        *(undefined4 *)(prVar2 + (key & 0xffffff7fU) * 8 + 4) = 0;\n        key = 0;\n      }\n      goto LAB_000efd77;\n    }" { (if_statement "if (_rl_keymap[0x1b].type == '\x01') {\n        prVar2 = _rl_keymap[0x1b].function;\n        prVar2[(key & 0xffffff7fU) * 8] = (rl_command_func_t)0x0;\n        *(undefined4 *)(prVar2 + (key & 0xffffff7fU) * 8 + 4) = 0;\n        key = 0;\n      }" if (parenthesized_expression "(_rl_keymap[0x1b].type == '\x01')" ( (binary_expression "_rl_keymap[0x1b].type == '\x01'" (field_expression "_rl_keymap[0x1b].type" (subscript_expression "_rl_keymap[0x1b]" identifier [ number_literal ]) . field_identifier) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n        prVar2 = _rl_keymap[0x1b].function;\n        prVar2[(key & 0xffffff7fU) * 8] = (rl_command_func_t)0x0;\n        *(undefined4 *)(prVar2 + (key & 0xffffff7fU) * 8 + 4) = 0;\n        key = 0;\n      }" { (expression_statement "prVar2 = _rl_keymap[0x1b].function;" (assignment_expression "prVar2 = _rl_keymap[0x1b].function" identifier = (field_expression "_rl_keymap[0x1b].function" (subscript_expression "_rl_keymap[0x1b]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "prVar2[(key & 0xffffff7fU) * 8] = (rl_command_func_t)0x0;" (assignment_expression "prVar2[(key & 0xffffff7fU) * 8] = (rl_command_func_t)0x0" (subscript_expression "prVar2[(key & 0xffffff7fU) * 8]" identifier [ (binary_expression "(key & 0xffffff7fU) * 8" (parenthesized_expression "(key & 0xffffff7fU)" ( (binary_expression "key & 0xffffff7fU" identifier & number_literal) )) * number_literal) ]) = (cast_expression "(rl_command_func_t)0x0" ( (type_descriptor "rl_command_func_t" type_identifier) ) number_literal)) ;) (expression_statement "*(undefined4 *)(prVar2 + (key & 0xffffff7fU) * 8 + 4) = 0;" (assignment_expression "*(undefined4 *)(prVar2 + (key & 0xffffff7fU) * 8 + 4) = 0" (pointer_expression "*(undefined4 *)(prVar2 + (key & 0xffffff7fU) * 8 + 4)" * (cast_expression "(undefined4 *)(prVar2 + (key & 0xffffff7fU) * 8 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(prVar2 + (key & 0xffffff7fU) * 8 + 4)" ( (binary_expression "prVar2 + (key & 0xffffff7fU) * 8 + 4" (binary_expression "prVar2 + (key & 0xffffff7fU) * 8" identifier + (binary_expression "(key & 0xffffff7fU) * 8" (parenthesized_expression "(key & 0xffffff7fU)" ( (binary_expression "key & 0xffffff7fU" identifier & number_literal) )) * number_literal)) + number_literal) )))) = number_literal) ;) (expression_statement "key = 0;" (assignment_expression "key = 0" identifier = number_literal) ;) })) (goto_statement "goto LAB_000efd77;" goto statement_identifier ;) })) (if_statement "if (_rl_keymap[key].type == '\x01') {\n      iVar5 = 1;\n      iVar6 = 0;\n      goto LAB_000efda9;\n    }" if (parenthesized_expression "(_rl_keymap[key].type == '\x01')" ( (binary_expression "_rl_keymap[key].type == '\x01'" (field_expression "_rl_keymap[key].type" (subscript_expression "_rl_keymap[key]" identifier [ identifier ]) . field_identifier) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      iVar5 = 1;\n      iVar6 = 0;\n      goto LAB_000efda9;\n    }" { (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000efda9;" goto statement_identifier ;) })) (labeled_statement "LAB_000efd63:\n    pKVar4 = _rl_keymap + key;" statement_identifier : (expression_statement "pKVar4 = _rl_keymap + key;" (assignment_expression "pKVar4 = _rl_keymap + key" identifier = (binary_expression "_rl_keymap + key" identifier + identifier)) ;)) (expression_statement "pKVar4->type = '\0';" (assignment_expression "pKVar4->type = '\0'" (field_expression "pKVar4->type" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pKVar4->function = (rl_command_func_t *)0x0;" (assignment_expression "pKVar4->function = (rl_command_func_t *)0x0" (field_expression "pKVar4->function" identifier -> field_identifier) = (cast_expression "(rl_command_func_t *)0x0" ( (type_descriptor "rl_command_func_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "rl_binding_keymap = pKVar3;" (assignment_expression "rl_binding_keymap = pKVar3" identifier = identifier) ;) }) (else_clause "else {\n    if (_rl_keymap[key].type != '\x01') goto LAB_000efd63;\n    if (key == 0x5c) {\n      keyseq[0] = '\\';\n      iVar5 = 2;\n      iVar6 = 1;\n    }\n    else {\n      iVar5 = 1;\n      iVar6 = 0;\n    }\nLAB_000efda9:\n    keyseq[iVar6] = (char)key;\n    keyseq[iVar5] = '\0';\n    rl_generic_bind(0,keyseq,(char *)0x0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }" else (compound_statement "{\n    if (_rl_keymap[key].type != '\x01') goto LAB_000efd63;\n    if (key == 0x5c) {\n      keyseq[0] = '\\';\n      iVar5 = 2;\n      iVar6 = 1;\n    }\n    else {\n      iVar5 = 1;\n      iVar6 = 0;\n    }\nLAB_000efda9:\n    keyseq[iVar6] = (char)key;\n    keyseq[iVar5] = '\0';\n    rl_generic_bind(0,keyseq,(char *)0x0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }" { (if_statement "if (_rl_keymap[key].type != '\x01') goto LAB_000efd63;" if (parenthesized_expression "(_rl_keymap[key].type != '\x01')" ( (binary_expression "_rl_keymap[key].type != '\x01'" (field_expression "_rl_keymap[key].type" (subscript_expression "_rl_keymap[key]" identifier [ identifier ]) . field_identifier) != (char_literal "'\x01'" ' escape_sequence ')) )) (goto_statement "goto LAB_000efd63;" goto statement_identifier ;)) (if_statement "if (key == 0x5c) {\n      keyseq[0] = '\\';\n      iVar5 = 2;\n      iVar6 = 1;\n    }\n    else {\n      iVar5 = 1;\n      iVar6 = 0;\n    }" if (parenthesized_expression "(key == 0x5c)" ( (binary_expression "key == 0x5c" identifier == number_literal) )) (compound_statement "{\n      keyseq[0] = '\\';\n      iVar5 = 2;\n      iVar6 = 1;\n    }" { (expression_statement "keyseq[0] = '\\';" (assignment_expression "keyseq[0] = '\\'" (subscript_expression "keyseq[0]" identifier [ number_literal ]) = (char_literal "'\\'" ' escape_sequence ')) ;) (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" identifier = number_literal) ;) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      iVar5 = 1;\n      iVar6 = 0;\n    }" else (compound_statement "{\n      iVar5 = 1;\n      iVar6 = 0;\n    }" { (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) }))) (labeled_statement "LAB_000efda9:\n    keyseq[iVar6] = (char)key;" statement_identifier : (expression_statement "keyseq[iVar6] = (char)key;" (assignment_expression "keyseq[iVar6] = (char)key" (subscript_expression "keyseq[iVar6]" identifier [ identifier ]) = (cast_expression "(char)key" ( (type_descriptor "char" primitive_type) ) identifier)) ;)) (expression_statement "keyseq[iVar5] = '\0';" (assignment_expression "keyseq[iVar5] = '\0'" (subscript_expression "keyseq[iVar5]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "rl_generic_bind(0,keyseq,(char *)0x0,_rl_keymap);" (call_expression "rl_generic_bind(0,keyseq,(char *)0x0,_rl_keymap)" identifier (argument_list "(0,keyseq,(char *)0x0,_rl_keymap)" ( number_literal , identifier , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier ))) ;) (expression_statement "rl_binding_keymap = _rl_keymap;" (assignment_expression "rl_binding_keymap = _rl_keymap" identifier = identifier) ;) }))) (expression_statement "key = 0;" (assignment_expression "key = 0" identifier = number_literal) ;) (labeled_statement "LAB_000efd77:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return key;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return key;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return key;\n  }" { (return_statement "return key;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "uint rl_unbind_key(uint param_1)\n\n{\n  undefined1 *puVar1;\n  undefined *puVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined1 local_13 [3];\n  int local_10;\n  \n  puVar2 = _rl_keymap;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((int)param_1 < 0) goto LAB_000efd77;\n  if (param_1 - 0x80 < 0x80) {\n    if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }\n      goto LAB_000efd77;\n    }\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 == '\x01') {\n      iVar4 = 1;\n      iVar5 = 0;\n      goto LAB_000efda9;\n    }\nLAB_000efd63:\n    *pcVar3 = '\0';\n    pcVar3[4] = '\0';\n    pcVar3[5] = '\0';\n    pcVar3[6] = '\0';\n    pcVar3[7] = '\0';\n    rl_binding_keymap = puVar2;\n  }\n  else {\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 != '\x01') goto LAB_000efd63;\n    if (param_1 == 0x5c) {\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }\n    else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }\nLAB_000efda9:\n    local_13[iVar5] = (char)param_1;\n    local_13[iVar4] = 0;\n    rl_generic_bind(0,local_13,0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }\n  param_1 = 0;\nLAB_000efd77:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    \n  FUN_0010f8b0();\n}\n\n" (function_definition "uint rl_unbind_key(uint param_1)\n\n{\n  undefined1 *puVar1;\n  undefined *puVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined1 local_13 [3];\n  int local_10;\n  \n  puVar2 = _rl_keymap;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((int)param_1 < 0) goto LAB_000efd77;\n  if (param_1 - 0x80 < 0x80) {\n    if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }\n      goto LAB_000efd77;\n    }\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 == '\x01') {\n      iVar4 = 1;\n      iVar5 = 0;\n      goto LAB_000efda9;\n    }\nLAB_000efd63:\n    *pcVar3 = '\0';\n    pcVar3[4] = '\0';\n    pcVar3[5] = '\0';\n    pcVar3[6] = '\0';\n    pcVar3[7] = '\0';\n    rl_binding_keymap = puVar2;\n  }\n  else {\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 != '\x01') goto LAB_000efd63;\n    if (param_1 == 0x5c) {\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }\n    else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }\nLAB_000efda9:\n    local_13[iVar5] = (char)param_1;\n    local_13[iVar4] = 0;\n    rl_generic_bind(0,local_13,0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }\n  param_1 = 0;\nLAB_000efd77:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    \n  FUN_0010f8b0();\n}" type_identifier (function_declarator "rl_unbind_key(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined *puVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined1 local_13 [3];\n  int local_10;\n  \n  puVar2 = _rl_keymap;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((int)param_1 < 0) goto LAB_000efd77;\n  if (param_1 - 0x80 < 0x80) {\n    if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }\n      goto LAB_000efd77;\n    }\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 == '\x01') {\n      iVar4 = 1;\n      iVar5 = 0;\n      goto LAB_000efda9;\n    }\nLAB_000efd63:\n    *pcVar3 = '\0';\n    pcVar3[4] = '\0';\n    pcVar3[5] = '\0';\n    pcVar3[6] = '\0';\n    pcVar3[7] = '\0';\n    rl_binding_keymap = puVar2;\n  }\n  else {\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 != '\x01') goto LAB_000efd63;\n    if (param_1 == 0x5c) {\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }\n    else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }\nLAB_000efda9:\n    local_13[iVar5] = (char)param_1;\n    local_13[iVar4] = 0;\n    rl_generic_bind(0,local_13,0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }\n  param_1 = 0;\nLAB_000efd77:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    \n  FUN_0010f8b0();\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_13 [3];" type_identifier (array_declarator "local_13 [3]" identifier [ number_literal ]) ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "puVar2 = _rl_keymap;" (assignment_expression "puVar2 = _rl_keymap" identifier = identifier) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((int)param_1 < 0) goto LAB_000efd77;" if (parenthesized_expression "((int)param_1 < 0)" ( (binary_expression "(int)param_1 < 0" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_000efd77;" goto statement_identifier ;)) (if_statement "if (param_1 - 0x80 < 0x80) {\n    if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }\n      goto LAB_000efd77;\n    }\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 == '\x01') {\n      iVar4 = 1;\n      iVar5 = 0;\n      goto LAB_000efda9;\n    }\nLAB_000efd63:\n    *pcVar3 = '\0';\n    pcVar3[4] = '\0';\n    pcVar3[5] = '\0';\n    pcVar3[6] = '\0';\n    pcVar3[7] = '\0';\n    rl_binding_keymap = puVar2;\n  }\n  else {\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 != '\x01') goto LAB_000efd63;\n    if (param_1 == 0x5c) {\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }\n    else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }\nLAB_000efda9:\n    local_13[iVar5] = (char)param_1;\n    local_13[iVar4] = 0;\n    rl_generic_bind(0,local_13,0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }" if (parenthesized_expression "(param_1 - 0x80 < 0x80)" ( (binary_expression "param_1 - 0x80 < 0x80" (binary_expression "param_1 - 0x80" identifier - number_literal) < number_literal) )) (compound_statement "{\n    if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }\n      goto LAB_000efd77;\n    }\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 == '\x01') {\n      iVar4 = 1;\n      iVar5 = 0;\n      goto LAB_000efda9;\n    }\nLAB_000efd63:\n    *pcVar3 = '\0';\n    pcVar3[4] = '\0';\n    pcVar3[5] = '\0';\n    pcVar3[6] = '\0';\n    pcVar3[7] = '\0';\n    rl_binding_keymap = puVar2;\n  }" { (if_statement "if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }\n      goto LAB_000efd77;\n    }" if (parenthesized_expression "(_rl_convert_meta_chars_to_ascii != 0)" ( (binary_expression "_rl_convert_meta_chars_to_ascii != 0" identifier != number_literal) )) (compound_statement "{\n      if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }\n      goto LAB_000efd77;\n    }" { (if_statement "if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }" if (parenthesized_expression "(_rl_keymap[0xd8] == '\x01')" ( (binary_expression "_rl_keymap[0xd8] == '\x01'" (subscript_expression "_rl_keymap[0xd8]" identifier [ number_literal ]) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }" { (expression_statement "puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);" (assignment_expression "puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8)" identifier = (cast_expression "(undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8)" ( (binary_expression "*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8" (pointer_expression "*(int *)(_rl_keymap + 0xdc)" * (cast_expression "(int *)(_rl_keymap + 0xdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(_rl_keymap + 0xdc)" ( (binary_expression "_rl_keymap + 0xdc" identifier + number_literal) )))) + (binary_expression "(param_1 & 0xffffff7f) * 8" (parenthesized_expression "(param_1 & 0xffffff7f)" ( (binary_expression "param_1 & 0xffffff7f" identifier & number_literal) )) * number_literal)) )))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar1 + 4) = 0;" (assignment_expression "*(undefined4 *)(puVar1 + 4) = 0" (pointer_expression "*(undefined4 *)(puVar1 + 4)" * (cast_expression "(undefined4 *)(puVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 4)" ( (binary_expression "puVar1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1 = 0;" (assignment_expression "param_1 = 0" identifier = number_literal) ;) })) (goto_statement "goto LAB_000efd77;" goto statement_identifier ;) })) (expression_statement "pcVar3 = _rl_keymap + param_1 * 8;" (assignment_expression "pcVar3 = _rl_keymap + param_1 * 8" identifier = (binary_expression "_rl_keymap + param_1 * 8" identifier + (binary_expression "param_1 * 8" identifier * number_literal))) ;) (if_statement "if (*pcVar3 == '\x01') {\n      iVar4 = 1;\n      iVar5 = 0;\n      goto LAB_000efda9;\n    }" if (parenthesized_expression "(*pcVar3 == '\x01')" ( (binary_expression "*pcVar3 == '\x01'" (pointer_expression "*pcVar3" * identifier) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      iVar4 = 1;\n      iVar5 = 0;\n      goto LAB_000efda9;\n    }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000efda9;" goto statement_identifier ;) })) (labeled_statement "LAB_000efd63:\n    *pcVar3 = '\0';" statement_identifier : (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;)) (expression_statement "pcVar3[4] = '\0';" (assignment_expression "pcVar3[4] = '\0'" (subscript_expression "pcVar3[4]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[5] = '\0';" (assignment_expression "pcVar3[5] = '\0'" (subscript_expression "pcVar3[5]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[6] = '\0';" (assignment_expression "pcVar3[6] = '\0'" (subscript_expression "pcVar3[6]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[7] = '\0';" (assignment_expression "pcVar3[7] = '\0'" (subscript_expression "pcVar3[7]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "rl_binding_keymap = puVar2;" (assignment_expression "rl_binding_keymap = puVar2" identifier = identifier) ;) }) (else_clause "else {\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 != '\x01') goto LAB_000efd63;\n    if (param_1 == 0x5c) {\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }\n    else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }\nLAB_000efda9:\n    local_13[iVar5] = (char)param_1;\n    local_13[iVar4] = 0;\n    rl_generic_bind(0,local_13,0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }" else (compound_statement "{\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 != '\x01') goto LAB_000efd63;\n    if (param_1 == 0x5c) {\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }\n    else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }\nLAB_000efda9:\n    local_13[iVar5] = (char)param_1;\n    local_13[iVar4] = 0;\n    rl_generic_bind(0,local_13,0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }" { (expression_statement "pcVar3 = _rl_keymap + param_1 * 8;" (assignment_expression "pcVar3 = _rl_keymap + param_1 * 8" identifier = (binary_expression "_rl_keymap + param_1 * 8" identifier + (binary_expression "param_1 * 8" identifier * number_literal))) ;) (if_statement "if (*pcVar3 != '\x01') goto LAB_000efd63;" if (parenthesized_expression "(*pcVar3 != '\x01')" ( (binary_expression "*pcVar3 != '\x01'" (pointer_expression "*pcVar3" * identifier) != (char_literal "'\x01'" ' escape_sequence ')) )) (goto_statement "goto LAB_000efd63;" goto statement_identifier ;)) (if_statement "if (param_1 == 0x5c) {\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }\n    else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }" if (parenthesized_expression "(param_1 == 0x5c)" ( (binary_expression "param_1 == 0x5c" identifier == number_literal) )) (compound_statement "{\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }" { (expression_statement "local_13[0] = 0x5c;" (assignment_expression "local_13[0] = 0x5c" (subscript_expression "local_13[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" identifier = number_literal) ;) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }" else (compound_statement "{\n      iVar4 = 1;\n      iVar5 = 0;\n    }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }))) (labeled_statement "LAB_000efda9:\n    local_13[iVar5] = (char)param_1;" statement_identifier : (expression_statement "local_13[iVar5] = (char)param_1;" (assignment_expression "local_13[iVar5] = (char)param_1" (subscript_expression "local_13[iVar5]" identifier [ identifier ]) = (cast_expression "(char)param_1" ( (type_descriptor "char" primitive_type) ) identifier)) ;)) (expression_statement "local_13[iVar4] = 0;" (assignment_expression "local_13[iVar4] = 0" (subscript_expression "local_13[iVar4]" identifier [ identifier ]) = number_literal) ;) (expression_statement "rl_generic_bind(0,local_13,0,_rl_keymap);" (call_expression "rl_generic_bind(0,local_13,0,_rl_keymap)" identifier (argument_list "(0,local_13,0,_rl_keymap)" ( number_literal , identifier , number_literal , identifier ))) ;) (expression_statement "rl_binding_keymap = _rl_keymap;" (assignment_expression "rl_binding_keymap = _rl_keymap" identifier = identifier) ;) }))) (expression_statement "param_1 = 0;" (assignment_expression "param_1 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000efd77:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) }))) (expression_statement "FUN_0010f8b0();" (call_expression "FUN_0010f8b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * LIT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "uint rl_unbind_key(uint param_1)\n\n{\n  undefined1 *puVar1;\n  undefined *puVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined1 local_13 [3];\n  int local_10;\n  \n  puVar2 = _rl_keymap;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((int)param_1 < 0) goto LAB_000efd77;\n  if (param_1 - 0x80 < 0x80) {\n    if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }\n      goto LAB_000efd77;\n    }\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 == '\x01') {\n      iVar4 = 1;\n      iVar5 = 0;\n      goto LAB_000efda9;\n    }\nLAB_000efd63:\n    *pcVar3 = '\0';\n    pcVar3[4] = '\0';\n    pcVar3[5] = '\0';\n    pcVar3[6] = '\0';\n    pcVar3[7] = '\0';\n    rl_binding_keymap = puVar2;\n  }\n  else {\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 != '\x01') goto LAB_000efd63;\n    if (param_1 == 0x5c) {\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }\n    else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }\nLAB_000efda9:\n    local_13[iVar5] = (char)param_1;\n    local_13[iVar4] = 0;\n    rl_generic_bind(0,local_13,0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }\n  param_1 = 0;\nLAB_000efd77:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    \n  FUN_0010f8b0();\n}" (type_identifier "uint") (function_declarator "rl_unbind_key(uint param_1)" (identifier "rl_unbind_key") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined *puVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined1 local_13 [3];\n  int local_10;\n  \n  puVar2 = _rl_keymap;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((int)param_1 < 0) goto LAB_000efd77;\n  if (param_1 - 0x80 < 0x80) {\n    if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }\n      goto LAB_000efd77;\n    }\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 == '\x01') {\n      iVar4 = 1;\n      iVar5 = 0;\n      goto LAB_000efda9;\n    }\nLAB_000efd63:\n    *pcVar3 = '\0';\n    pcVar3[4] = '\0';\n    pcVar3[5] = '\0';\n    pcVar3[6] = '\0';\n    pcVar3[7] = '\0';\n    rl_binding_keymap = puVar2;\n  }\n  else {\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 != '\x01') goto LAB_000efd63;\n    if (param_1 == 0x5c) {\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }\n    else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }\nLAB_000efda9:\n    local_13[iVar5] = (char)param_1;\n    local_13[iVar4] = 0;\n    rl_generic_bind(0,local_13,0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }\n  param_1 = 0;\nLAB_000efd77:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    \n  FUN_0010f8b0();\n}" ({ "{") (declaration "undefined1 *puVar1;" (type_identifier "undefined1") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined1 local_13 [3];" (type_identifier "undefined1") (array_declarator "local_13 [3]" (identifier "local_13") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (expression_statement "puVar2 = _rl_keymap;" (assignment_expression "puVar2 = _rl_keymap" (identifier "puVar2") (= "=") (identifier "_rl_keymap")) (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if ((int)param_1 < 0) goto LAB_000efd77;" (if "if") (parenthesized_expression "((int)param_1 < 0)" (( "(") (binary_expression "(int)param_1 < 0" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_000efd77;" (goto "goto") (statement_identifier "LAB_000efd77") (; ";"))) (if_statement "if (param_1 - 0x80 < 0x80) {\n    if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }\n      goto LAB_000efd77;\n    }\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 == '\x01') {\n      iVar4 = 1;\n      iVar5 = 0;\n      goto LAB_000efda9;\n    }\nLAB_000efd63:\n    *pcVar3 = '\0';\n    pcVar3[4] = '\0';\n    pcVar3[5] = '\0';\n    pcVar3[6] = '\0';\n    pcVar3[7] = '\0';\n    rl_binding_keymap = puVar2;\n  }\n  else {\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 != '\x01') goto LAB_000efd63;\n    if (param_1 == 0x5c) {\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }\n    else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }\nLAB_000efda9:\n    local_13[iVar5] = (char)param_1;\n    local_13[iVar4] = 0;\n    rl_generic_bind(0,local_13,0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }" (if "if") (parenthesized_expression "(param_1 - 0x80 < 0x80)" (( "(") (binary_expression "param_1 - 0x80 < 0x80" (binary_expression "param_1 - 0x80" (identifier "param_1") (- "-") (number_literal "0x80")) (< "<") (number_literal "0x80")) () ")")) (compound_statement "{\n    if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }\n      goto LAB_000efd77;\n    }\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 == '\x01') {\n      iVar4 = 1;\n      iVar5 = 0;\n      goto LAB_000efda9;\n    }\nLAB_000efd63:\n    *pcVar3 = '\0';\n    pcVar3[4] = '\0';\n    pcVar3[5] = '\0';\n    pcVar3[6] = '\0';\n    pcVar3[7] = '\0';\n    rl_binding_keymap = puVar2;\n  }" ({ "{") (if_statement "if (_rl_convert_meta_chars_to_ascii != 0) {\n      if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }\n      goto LAB_000efd77;\n    }" (if "if") (parenthesized_expression "(_rl_convert_meta_chars_to_ascii != 0)" (( "(") (binary_expression "_rl_convert_meta_chars_to_ascii != 0" (identifier "_rl_convert_meta_chars_to_ascii") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }\n      goto LAB_000efd77;\n    }" ({ "{") (if_statement "if (_rl_keymap[0xd8] == '\x01') {\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }" (if "if") (parenthesized_expression "(_rl_keymap[0xd8] == '\x01')" (( "(") (binary_expression "_rl_keymap[0xd8] == '\x01'" (subscript_expression "_rl_keymap[0xd8]" (identifier "_rl_keymap") ([ "[") (number_literal "0xd8") (] "]")) (== "==") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (compound_statement "{\n        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);\n        *puVar1 = 0;\n        *(undefined4 *)(puVar1 + 4) = 0;\n        param_1 = 0;\n      }" ({ "{") (expression_statement "puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);" (assignment_expression "puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8)" (identifier "puVar1") (= "=") (cast_expression "(undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8)" (( "(") (binary_expression "*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8" (pointer_expression "*(int *)(_rl_keymap + 0xdc)" (* "*") (cast_expression "(int *)(_rl_keymap + 0xdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(_rl_keymap + 0xdc)" (( "(") (binary_expression "_rl_keymap + 0xdc" (identifier "_rl_keymap") (+ "+") (number_literal "0xdc")) () ")")))) (+ "+") (binary_expression "(param_1 & 0xffffff7f) * 8" (parenthesized_expression "(param_1 & 0xffffff7f)" (( "(") (binary_expression "param_1 & 0xffffff7f" (identifier "param_1") (& "&") (number_literal "0xffffff7f")) () ")")) (* "*") (number_literal "8"))) () ")")))) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(puVar1 + 4) = 0;" (assignment_expression "*(undefined4 *)(puVar1 + 4) = 0" (pointer_expression "*(undefined4 *)(puVar1 + 4)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 4)" (( "(") (binary_expression "puVar1 + 4" (identifier "puVar1") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1 = 0;" (assignment_expression "param_1 = 0" (identifier "param_1") (= "=") (number_literal "0")) (; ";")) (} "}"))) (goto_statement "goto LAB_000efd77;" (goto "goto") (statement_identifier "LAB_000efd77") (; ";")) (} "}"))) (expression_statement "pcVar3 = _rl_keymap + param_1 * 8;" (assignment_expression "pcVar3 = _rl_keymap + param_1 * 8" (identifier "pcVar3") (= "=") (binary_expression "_rl_keymap + param_1 * 8" (identifier "_rl_keymap") (+ "+") (binary_expression "param_1 * 8" (identifier "param_1") (* "*") (number_literal "8")))) (; ";")) (if_statement "if (*pcVar3 == '\x01') {\n      iVar4 = 1;\n      iVar5 = 0;\n      goto LAB_000efda9;\n    }" (if "if") (parenthesized_expression "(*pcVar3 == '\x01')" (( "(") (binary_expression "*pcVar3 == '\x01'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (== "==") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (compound_statement "{\n      iVar4 = 1;\n      iVar5 = 0;\n      goto LAB_000efda9;\n    }" ({ "{") (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_000efda9;" (goto "goto") (statement_identifier "LAB_000efda9") (; ";")) (} "}"))) (labeled_statement "LAB_000efd63:\n    *pcVar3 = '\0';" (statement_identifier "LAB_000efd63") (: ":") (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";"))) (expression_statement "pcVar3[4] = '\0';" (assignment_expression "pcVar3[4] = '\0'" (subscript_expression "pcVar3[4]" (identifier "pcVar3") ([ "[") (number_literal "4") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "pcVar3[5] = '\0';" (assignment_expression "pcVar3[5] = '\0'" (subscript_expression "pcVar3[5]" (identifier "pcVar3") ([ "[") (number_literal "5") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "pcVar3[6] = '\0';" (assignment_expression "pcVar3[6] = '\0'" (subscript_expression "pcVar3[6]" (identifier "pcVar3") ([ "[") (number_literal "6") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "pcVar3[7] = '\0';" (assignment_expression "pcVar3[7] = '\0'" (subscript_expression "pcVar3[7]" (identifier "pcVar3") ([ "[") (number_literal "7") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "rl_binding_keymap = puVar2;" (assignment_expression "rl_binding_keymap = puVar2" (identifier "rl_binding_keymap") (= "=") (identifier "puVar2")) (; ";")) (} "}")) (else_clause "else {\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 != '\x01') goto LAB_000efd63;\n    if (param_1 == 0x5c) {\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }\n    else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }\nLAB_000efda9:\n    local_13[iVar5] = (char)param_1;\n    local_13[iVar4] = 0;\n    rl_generic_bind(0,local_13,0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }" (else "else") (compound_statement "{\n    pcVar3 = _rl_keymap + param_1 * 8;\n    if (*pcVar3 != '\x01') goto LAB_000efd63;\n    if (param_1 == 0x5c) {\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }\n    else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }\nLAB_000efda9:\n    local_13[iVar5] = (char)param_1;\n    local_13[iVar4] = 0;\n    rl_generic_bind(0,local_13,0,_rl_keymap);\n    rl_binding_keymap = _rl_keymap;\n  }" ({ "{") (expression_statement "pcVar3 = _rl_keymap + param_1 * 8;" (assignment_expression "pcVar3 = _rl_keymap + param_1 * 8" (identifier "pcVar3") (= "=") (binary_expression "_rl_keymap + param_1 * 8" (identifier "_rl_keymap") (+ "+") (binary_expression "param_1 * 8" (identifier "param_1") (* "*") (number_literal "8")))) (; ";")) (if_statement "if (*pcVar3 != '\x01') goto LAB_000efd63;" (if "if") (parenthesized_expression "(*pcVar3 != '\x01')" (( "(") (binary_expression "*pcVar3 != '\x01'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (!= "!=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (goto_statement "goto LAB_000efd63;" (goto "goto") (statement_identifier "LAB_000efd63") (; ";"))) (if_statement "if (param_1 == 0x5c) {\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }\n    else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }" (if "if") (parenthesized_expression "(param_1 == 0x5c)" (( "(") (binary_expression "param_1 == 0x5c" (identifier "param_1") (== "==") (number_literal "0x5c")) () ")")) (compound_statement "{\n      local_13[0] = 0x5c;\n      iVar4 = 2;\n      iVar5 = 1;\n    }" ({ "{") (expression_statement "local_13[0] = 0x5c;" (assignment_expression "local_13[0] = 0x5c" (subscript_expression "local_13[0]" (identifier "local_13") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0x5c")) (; ";")) (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" (identifier "iVar4") (= "=") (number_literal "2")) (; ";")) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" (identifier "iVar5") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      iVar4 = 1;\n      iVar5 = 0;\n    }" (else "else") (compound_statement "{\n      iVar4 = 1;\n      iVar5 = 0;\n    }" ({ "{") (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (} "}")))) (labeled_statement "LAB_000efda9:\n    local_13[iVar5] = (char)param_1;" (statement_identifier "LAB_000efda9") (: ":") (expression_statement "local_13[iVar5] = (char)param_1;" (assignment_expression "local_13[iVar5] = (char)param_1" (subscript_expression "local_13[iVar5]" (identifier "local_13") ([ "[") (identifier "iVar5") (] "]")) (= "=") (cast_expression "(char)param_1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_1"))) (; ";"))) (expression_statement "local_13[iVar4] = 0;" (assignment_expression "local_13[iVar4] = 0" (subscript_expression "local_13[iVar4]" (identifier "local_13") ([ "[") (identifier "iVar4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "rl_generic_bind(0,local_13,0,_rl_keymap);" (call_expression "rl_generic_bind(0,local_13,0,_rl_keymap)" (identifier "rl_generic_bind") (argument_list "(0,local_13,0,_rl_keymap)" (( "(") (number_literal "0") (, ",") (identifier "local_13") (, ",") (number_literal "0") (, ",") (identifier "_rl_keymap") () ")"))) (; ";")) (expression_statement "rl_binding_keymap = _rl_keymap;" (assignment_expression "rl_binding_keymap = _rl_keymap" (identifier "rl_binding_keymap") (= "=") (identifier "_rl_keymap")) (; ";")) (} "}")))) (expression_statement "param_1 = 0;" (assignment_expression "param_1 = 0" (identifier "param_1") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_000efd77:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }" (statement_identifier "LAB_000efd77") (: ":") (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))) (expression_statement "FUN_0010f8b0();" (call_expression "FUN_0010f8b0()" (identifier "FUN_0010f8b0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int function_1(int var_2)

{
  int var_7;
  type_1 *var_4;
  type_2 pKVar3;
  type_2 pKVar4;
  int iVar5;
  int iVar6;
  int var_1;
  char keyseq [3];
  
  pKVar3 = var_5;
  var_7 = *(int *)(var_1 + 0x14);
  if (var_2 < 0) goto LAB_000efd77;
  if (var_2 - 0x80U < 0x80) {
    if (var_3 != 0) {
      if (var_5[0x1b].type == '\x01') {
        var_4 = var_5[0x1b].function;
        var_4[(var_2 & 0xffffff7fU) * 8] = (type_1)0x0;
        *(type_3 *)(var_4 + (var_2 & 0xffffff7fU) * 8 + 4) = 0;
        var_2 = 0;
      }
      goto LAB_000efd77;
    }
    if (var_5[var_2].type == '\x01') {
      iVar5 = 1;
      iVar6 = 0;
      goto LAB_000efda9;
    }
LAB_000efd63:
    pKVar4 = var_5 + var_2;
    pKVar4->type = '\0';
    pKVar4->function = (type_1 *)0x0;
    rl_binding_keymap = pKVar3;
  }
  else {
    if (var_5[var_2].type != '\x01') goto LAB_000efd63;
    if (var_2 == 0x5c) {
      keyseq[0] = '\\';
      iVar5 = 2;
      iVar6 = 1;
    }
    else {
      iVar5 = 1;
      iVar6 = 0;
    }
LAB_000efda9:
    keyseq[iVar6] = (char)var_2;
    keyseq[iVar5] = '\0';
    var_6(0,keyseq,(char *)0x0,var_5);
    rl_binding_keymap = var_5;
  }
  var_2 = 0;
LAB_000efd77:
  if (var_7 == *(int *)(var_1 + 0x14)) {
    return var_2;
  }
                    /* WARNING: Subroutine does not return */
  var_8();
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

uint MASKED(uint param_1)

{
  undefined1 *puVar1;
  undefined *puVar2;
  char *pcVar3;
  int iVar4;
  int iVar5;
  int in_GS_OFFSET;
  undefined1 local_13 [3];
  int local_10;
  
  puVar2 = _rl_keymap;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if ((int)param_1 < 0) goto LAB_000efd77;
  if (param_1 - 0x80 < 0x80) {
    if (_rl_convert_meta_chars_to_ascii != 0) {
      if (_rl_keymap[0xd8] == '\x01') {
        puVar1 = (undefined1 *)(*(int *)(_rl_keymap + 0xdc) + (param_1 & 0xffffff7f) * 8);
        *puVar1 = 0;
        *(undefined4 *)(puVar1 + 4) = 0;
        param_1 = 0;
      }
      goto LAB_000efd77;
    }
    pcVar3 = _rl_keymap + param_1 * 8;
    if (*pcVar3 == '\x01') {
      iVar4 = 1;
      iVar5 = 0;
      goto LAB_000efda9;
    }
LAB_000efd63:
    *pcVar3 = '\0';
    pcVar3[4] = '\0';
    pcVar3[5] = '\0';
    pcVar3[6] = '\0';
    pcVar3[7] = '\0';
    rl_binding_keymap = puVar2;
  }
  else {
    pcVar3 = _rl_keymap + param_1 * 8;
    if (*pcVar3 != '\x01') goto LAB_000efd63;
    if (param_1 == 0x5c) {
      local_13[0] = 0x5c;
      iVar4 = 2;
      iVar5 = 1;
    }
    else {
      iVar4 = 1;
      iVar5 = 0;
    }
LAB_000efda9:
    local_13[iVar5] = (char)param_1;
    local_13[iVar4] = 0;
    rl_generic_bind(0,local_13,0,_rl_keymap);
    rl_binding_keymap = _rl_keymap;
  }
  param_1 = 0;
LAB_000efd77:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0010f8b0();
}

