
/* WARNING: Unknown calling convention */

int rl_bind_key_if_unbound_in_map(int key,rl_command_func_t *default_func,Keymap kmap)

{
  char *keyseq;
  int iVar1;
  
  keyseq = rl_untranslate_keyseq(key & 0xff);
  if (keyseq != (char *)0x0) {
    iVar1 = rl_bind_keyseq_if_unbound_in_map(keyseq,default_func,kmap);
    return iVar1;
  }
  return 0;
}



undefined4 rl_bind_key_if_unbound_in_map(undefined1 param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = rl_untranslate_keyseq(param_1);
  if (iVar1 != 0) {
    uVar2 = FUN_000d2080();
    return uVar2;
  }
  return 0;
}


PUSH ESI
PUSH EBX
SUB ESP,0x10
MOVZX EAX,byte ptr [ESP + 0x1c]
MOV EBX,dword ptr [ESP + 0x20]
MOV ESI,dword ptr [ESP + 0x24]
PUSH EAX
CALL 0x000d21b0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000d23f0
ADD ESP,0x4
MOV ECX,ESI
MOV EDX,EBX
POP EBX
POP ESI
JMP 0x000d2080
ADD ESP,0x4
XOR EAX,EAX
POP EBX
POP ESI
RET
(translation_unit "undefined4 rl_bind_key_if_unbound_in_map(undefined1 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = rl_untranslate_keyseq(param_1);\n  if (iVar1 != 0) {\n    uVar2 = FUN_000d2080();\n    return uVar2;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 rl_bind_key_if_unbound_in_map(undefined1 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = rl_untranslate_keyseq(param_1);\n  if (iVar1 != 0) {\n    uVar2 = FUN_000d2080();\n    return uVar2;\n  }\n  return 0;\n}" type_identifier (function_declarator "rl_bind_key_if_unbound_in_map(undefined1 param_1)" identifier (parameter_list "(undefined1 param_1)" ( (parameter_declaration "undefined1 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = rl_untranslate_keyseq(param_1);\n  if (iVar1 != 0) {\n    uVar2 = FUN_000d2080();\n    return uVar2;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = rl_untranslate_keyseq(param_1);" (assignment_expression "iVar1 = rl_untranslate_keyseq(param_1)" identifier = (call_expression "rl_untranslate_keyseq(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    uVar2 = FUN_000d2080();\n    return uVar2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = FUN_000d2080();\n    return uVar2;\n  }" { (expression_statement "uVar2 = FUN_000d2080();" (assignment_expression "uVar2 = FUN_000d2080()" identifier = (call_expression "FUN_000d2080()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint rl_bind_key_if_unbound_in_map(int key,rl_command_func_t *default_func,Keymap kmap)\n\n{\n  char *keyseq;\n  int iVar1;\n  \n  keyseq = rl_untranslate_keyseq(key & 0xff);\n  if (keyseq != (char *)0x0) {\n    iVar1 = rl_bind_keyseq_if_unbound_in_map(keyseq,default_func,kmap);\n    return iVar1;\n  }\n  return 0;\n}\n\n" comment (function_definition "int rl_bind_key_if_unbound_in_map(int key,rl_command_func_t *default_func,Keymap kmap)\n\n{\n  char *keyseq;\n  int iVar1;\n  \n  keyseq = rl_untranslate_keyseq(key & 0xff);\n  if (keyseq != (char *)0x0) {\n    iVar1 = rl_bind_keyseq_if_unbound_in_map(keyseq,default_func,kmap);\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (function_declarator "rl_bind_key_if_unbound_in_map(int key,rl_command_func_t *default_func,Keymap kmap)" identifier (parameter_list "(int key,rl_command_func_t *default_func,Keymap kmap)" ( (parameter_declaration "int key" primitive_type identifier) , (parameter_declaration "rl_command_func_t *default_func" type_identifier (pointer_declarator "*default_func" * identifier)) , (parameter_declaration "Keymap kmap" type_identifier identifier) ))) (compound_statement "{\n  char *keyseq;\n  int iVar1;\n  \n  keyseq = rl_untranslate_keyseq(key & 0xff);\n  if (keyseq != (char *)0x0) {\n    iVar1 = rl_bind_keyseq_if_unbound_in_map(keyseq,default_func,kmap);\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "char *keyseq;" primitive_type (pointer_declarator "*keyseq" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "keyseq = rl_untranslate_keyseq(key & 0xff);" (assignment_expression "keyseq = rl_untranslate_keyseq(key & 0xff)" identifier = (call_expression "rl_untranslate_keyseq(key & 0xff)" identifier (argument_list "(key & 0xff)" ( (binary_expression "key & 0xff" identifier & number_literal) )))) ;) (if_statement "if (keyseq != (char *)0x0) {\n    iVar1 = rl_bind_keyseq_if_unbound_in_map(keyseq,default_func,kmap);\n    return iVar1;\n  }" if (parenthesized_expression "(keyseq != (char *)0x0)" ( (binary_expression "keyseq != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = rl_bind_keyseq_if_unbound_in_map(keyseq,default_func,kmap);\n    return iVar1;\n  }" { (expression_statement "iVar1 = rl_bind_keyseq_if_unbound_in_map(keyseq,default_func,kmap);" (assignment_expression "iVar1 = rl_bind_keyseq_if_unbound_in_map(keyseq,default_func,kmap)" identifier = (call_expression "rl_bind_keyseq_if_unbound_in_map(keyseq,default_func,kmap)" identifier (argument_list "(keyseq,default_func,kmap)" ( identifier , identifier , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 rl_bind_key_if_unbound_in_map(undefined1 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = rl_untranslate_keyseq(param_1);\n  if (iVar1 != 0) {\n    uVar2 = FUN_000d2080();\n    return uVar2;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 rl_bind_key_if_unbound_in_map(undefined1 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = rl_untranslate_keyseq(param_1);\n  if (iVar1 != 0) {\n    uVar2 = FUN_000d2080();\n    return uVar2;\n  }\n  return 0;\n}" type_identifier (function_declarator "rl_bind_key_if_unbound_in_map(undefined1 param_1)" identifier (parameter_list "(undefined1 param_1)" ( (parameter_declaration "undefined1 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = rl_untranslate_keyseq(param_1);\n  if (iVar1 != 0) {\n    uVar2 = FUN_000d2080();\n    return uVar2;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = rl_untranslate_keyseq(param_1);" (assignment_expression "iVar1 = rl_untranslate_keyseq(param_1)" identifier = (call_expression "rl_untranslate_keyseq(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    uVar2 = FUN_000d2080();\n    return uVar2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = FUN_000d2080();\n    return uVar2;\n  }" { (expression_statement "uVar2 = FUN_000d2080();" (assignment_expression "uVar2 = FUN_000d2080()" identifier = (call_expression "FUN_000d2080()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 rl_bind_key_if_unbound_in_map(undefined1 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = rl_untranslate_keyseq(param_1);\n  if (iVar1 != 0) {\n    uVar2 = FUN_000d2080();\n    return uVar2;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "rl_bind_key_if_unbound_in_map(undefined1 param_1)" (identifier "rl_bind_key_if_unbound_in_map") (parameter_list "(undefined1 param_1)" (( "(") (parameter_declaration "undefined1 param_1" (type_identifier "undefined1") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = rl_untranslate_keyseq(param_1);\n  if (iVar1 != 0) {\n    uVar2 = FUN_000d2080();\n    return uVar2;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = rl_untranslate_keyseq(param_1);" (assignment_expression "iVar1 = rl_untranslate_keyseq(param_1)" (identifier "iVar1") (= "=") (call_expression "rl_untranslate_keyseq(param_1)" (identifier "rl_untranslate_keyseq") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    uVar2 = FUN_000d2080();\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = FUN_000d2080();\n    return uVar2;\n  }" ({ "{") (expression_statement "uVar2 = FUN_000d2080();" (assignment_expression "uVar2 = FUN_000d2080()" (identifier "uVar2") (= "=") (call_expression "FUN_000d2080()" (identifier "FUN_000d2080") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(int var_2,type_1 *default_func,type_2 kmap)

{
  char *var_3;
  int iVar1;
  
  var_3 = var_1(var_2 & 0xff);
  if (var_3 != (char *)0x0) {
    iVar1 = var_4(var_3,default_func,kmap);
    return iVar1;
  }
  return 0;
}


(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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (identifier)))) (return_statement (number_literal)))))

undefined4 MASKED(undefined1 param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = rl_untranslate_keyseq(param_1);
  if (iVar1 != 0) {
    uVar2 = FUN_000d2080();
    return uVar2;
  }
  return 0;
}

