
int rl_vi_insertion_mode(int count,int key)

{
  undefined *puVar1;
  int iVar2;
  
  puVar1 = PTR__rl_show_mode_in_prompt_00145bec;
  *(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678;
  iVar2 = *(int *)puVar1;
  *(int *)(PTR___environ_00145154 + -0x62ac) = key;
  if (iVar2 == 0) {
    return 0;
  }
  _rl_reset_prompt();
  return 0;
}



undefined4 rl_vi_insertion_mode(undefined4 param_1,undefined4 param_2)

{
  undefined *puVar1;
  int iVar2;
  
  puVar1 = PTR__rl_show_mode_in_prompt_00145bec;
  *(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678;
  iVar2 = *(int *)puVar1;
  *(undefined4 *)(PTR___environ_00145154 + -0x62ac) = param_2;
  if (iVar2 == 0) {
    return 0;
  }
  _rl_reset_prompt();
  return 0;
}


lui gp,0x6
addiu gp,gp,0x76a4
addu gp,gp,t9
addiu sp,sp,-0x20
lw v1,-0x6990(gp)
lw v0,-0x6954(gp)
lw a0,-0x6ec8(gp)
sw gp,0x10(sp)
sw ra,0x1c(sp)
sw a0,0x0(v1)
lw v1,-0x73ec(gp)
lw v0,0x0(v0)
bne v0,zero,0x000e4ee4
_sw a1,-0x62ac(v1)
lw ra,0x1c(sp)
or v0,zero,zero
jr ra
_addiu sp,sp,0x20
lw t9,-0x6934(gp)
bal 0x000f8438
_nop
or v0,zero,zero
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined4 rl_vi_insertion_mode(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR__rl_show_mode_in_prompt_00145bec;\n  *(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678;\n  iVar2 = *(int *)puVar1;\n  *(undefined4 *)(PTR___environ_00145154 + -0x62ac) = param_2;\n  if (iVar2 == 0) {\n    return 0;\n  }\n  _rl_reset_prompt();\n  return 0;\n}\n\n" (function_definition "undefined4 rl_vi_insertion_mode(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR__rl_show_mode_in_prompt_00145bec;\n  *(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678;\n  iVar2 = *(int *)puVar1;\n  *(undefined4 *)(PTR___environ_00145154 + -0x62ac) = param_2;\n  if (iVar2 == 0) {\n    return 0;\n  }\n  _rl_reset_prompt();\n  return 0;\n}" type_identifier (function_declarator "rl_vi_insertion_mode(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR__rl_show_mode_in_prompt_00145bec;\n  *(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678;\n  iVar2 = *(int *)puVar1;\n  *(undefined4 *)(PTR___environ_00145154 + -0x62ac) = param_2;\n  if (iVar2 == 0) {\n    return 0;\n  }\n  _rl_reset_prompt();\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = PTR__rl_show_mode_in_prompt_00145bec;" (assignment_expression "puVar1 = PTR__rl_show_mode_in_prompt_00145bec" identifier = identifier) ;) (expression_statement "*(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678;" (assignment_expression "*(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678" (pointer_expression "*(undefined **)PTR__rl_keymap_00145bb0" * (cast_expression "(undefined **)PTR__rl_keymap_00145bb0" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "iVar2 = *(int *)puVar1;" (assignment_expression "iVar2 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(PTR___environ_00145154 + -0x62ac) = param_2;" (assignment_expression "*(undefined4 *)(PTR___environ_00145154 + -0x62ac) = param_2" (pointer_expression "*(undefined4 *)(PTR___environ_00145154 + -0x62ac)" * (cast_expression "(undefined4 *)(PTR___environ_00145154 + -0x62ac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x62ac)" ( (binary_expression "PTR___environ_00145154 + -0x62ac" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "_rl_reset_prompt();" (call_expression "_rl_reset_prompt()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int rl_vi_insertion_mode(int count,int key)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR__rl_show_mode_in_prompt_00145bec;\n  *(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678;\n  iVar2 = *(int *)puVar1;\n  *(int *)(PTR___environ_00145154 + -0x62ac) = key;\n  if (iVar2 == 0) {\n    return 0;\n  }\n  _rl_reset_prompt();\n  return 0;\n}\n\n" (function_definition "int rl_vi_insertion_mode(int count,int key)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR__rl_show_mode_in_prompt_00145bec;\n  *(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678;\n  iVar2 = *(int *)puVar1;\n  *(int *)(PTR___environ_00145154 + -0x62ac) = key;\n  if (iVar2 == 0) {\n    return 0;\n  }\n  _rl_reset_prompt();\n  return 0;\n}" primitive_type (function_declarator "rl_vi_insertion_mode(int count,int key)" identifier (parameter_list "(int count,int key)" ( (parameter_declaration "int count" primitive_type identifier) , (parameter_declaration "int key" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR__rl_show_mode_in_prompt_00145bec;\n  *(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678;\n  iVar2 = *(int *)puVar1;\n  *(int *)(PTR___environ_00145154 + -0x62ac) = key;\n  if (iVar2 == 0) {\n    return 0;\n  }\n  _rl_reset_prompt();\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = PTR__rl_show_mode_in_prompt_00145bec;" (assignment_expression "puVar1 = PTR__rl_show_mode_in_prompt_00145bec" identifier = identifier) ;) (expression_statement "*(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678;" (assignment_expression "*(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678" (pointer_expression "*(undefined **)PTR__rl_keymap_00145bb0" * (cast_expression "(undefined **)PTR__rl_keymap_00145bb0" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "iVar2 = *(int *)puVar1;" (assignment_expression "iVar2 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(int *)(PTR___environ_00145154 + -0x62ac) = key;" (assignment_expression "*(int *)(PTR___environ_00145154 + -0x62ac) = key" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x62ac)" * (cast_expression "(int *)(PTR___environ_00145154 + -0x62ac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x62ac)" ( (binary_expression "PTR___environ_00145154 + -0x62ac" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "_rl_reset_prompt();" (call_expression "_rl_reset_prompt()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 rl_vi_insertion_mode(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR__rl_show_mode_in_prompt_00145bec;\n  *(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678;\n  iVar2 = *(int *)puVar1;\n  *(undefined4 *)(PTR___environ_00145154 + -0x62ac) = param_2;\n  if (iVar2 == 0) {\n    return 0;\n  }\n  _rl_reset_prompt();\n  return 0;\n}\n\n" (function_definition "undefined4 rl_vi_insertion_mode(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR__rl_show_mode_in_prompt_00145bec;\n  *(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678;\n  iVar2 = *(int *)puVar1;\n  *(undefined4 *)(PTR___environ_00145154 + -0x62ac) = param_2;\n  if (iVar2 == 0) {\n    return 0;\n  }\n  _rl_reset_prompt();\n  return 0;\n}" type_identifier (function_declarator "rl_vi_insertion_mode(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR__rl_show_mode_in_prompt_00145bec;\n  *(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678;\n  iVar2 = *(int *)puVar1;\n  *(undefined4 *)(PTR___environ_00145154 + -0x62ac) = param_2;\n  if (iVar2 == 0) {\n    return 0;\n  }\n  _rl_reset_prompt();\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = PTR__rl_show_mode_in_prompt_00145bec;" (assignment_expression "puVar1 = PTR__rl_show_mode_in_prompt_00145bec" identifier = identifier) ;) (expression_statement "*(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678;" (assignment_expression "*(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678" (pointer_expression "*(undefined **)PTR__rl_keymap_00145bb0" * (cast_expression "(undefined **)PTR__rl_keymap_00145bb0" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "iVar2 = *(int *)puVar1;" (assignment_expression "iVar2 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(PTR___environ_00145154 + -0x62ac) = param_2;" (assignment_expression "*(undefined4 *)(PTR___environ_00145154 + -0x62ac) = param_2" (pointer_expression "*(undefined4 *)(PTR___environ_00145154 + -0x62ac)" * (cast_expression "(undefined4 *)(PTR___environ_00145154 + -0x62ac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x62ac)" ( (binary_expression "PTR___environ_00145154 + -0x62ac" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "_rl_reset_prompt();" (call_expression "_rl_reset_prompt()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 rl_vi_insertion_mode(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR__rl_show_mode_in_prompt_00145bec;\n  *(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678;\n  iVar2 = *(int *)puVar1;\n  *(undefined4 *)(PTR___environ_00145154 + -0x62ac) = param_2;\n  if (iVar2 == 0) {\n    return 0;\n  }\n  _rl_reset_prompt();\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "rl_vi_insertion_mode(undefined4 param_1,undefined4 param_2)" (identifier "rl_vi_insertion_mode") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR__rl_show_mode_in_prompt_00145bec;\n  *(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678;\n  iVar2 = *(int *)puVar1;\n  *(undefined4 *)(PTR___environ_00145154 + -0x62ac) = param_2;\n  if (iVar2 == 0) {\n    return 0;\n  }\n  _rl_reset_prompt();\n  return 0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "puVar1 = PTR__rl_show_mode_in_prompt_00145bec;" (assignment_expression "puVar1 = PTR__rl_show_mode_in_prompt_00145bec" (identifier "puVar1") (= "=") (identifier "PTR__rl_show_mode_in_prompt_00145bec")) (; ";")) (expression_statement "*(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678;" (assignment_expression "*(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678" (pointer_expression "*(undefined **)PTR__rl_keymap_00145bb0" (* "*") (cast_expression "(undefined **)PTR__rl_keymap_00145bb0" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR__rl_keymap_00145bb0"))) (= "=") (identifier "PTR_vi_insertion_keymap_00145678")) (; ";")) (expression_statement "iVar2 = *(int *)puVar1;" (assignment_expression "iVar2 = *(int *)puVar1" (identifier "iVar2") (= "=") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "*(undefined4 *)(PTR___environ_00145154 + -0x62ac) = param_2;" (assignment_expression "*(undefined4 *)(PTR___environ_00145154 + -0x62ac) = param_2" (pointer_expression "*(undefined4 *)(PTR___environ_00145154 + -0x62ac)" (* "*") (cast_expression "(undefined4 *)(PTR___environ_00145154 + -0x62ac)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR___environ_00145154 + -0x62ac)" (( "(") (binary_expression "PTR___environ_00145154 + -0x62ac" (identifier "PTR___environ_00145154") (+ "+") (number_literal "-0x62ac")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "_rl_reset_prompt();" (call_expression "_rl_reset_prompt()" (identifier "_rl_reset_prompt") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (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: (identifier))))) (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: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement (number_literal)))))

undefined4 MASKED(undefined4 param_1,undefined4 param_2)

{
  undefined *puVar1;
  int iVar2;
  
  puVar1 = PTR__rl_show_mode_in_prompt_00145bec;
  *(undefined **)PTR__rl_keymap_00145bb0 = PTR_vi_insertion_keymap_00145678;
  iVar2 = *(int *)puVar1;
  *(undefined4 *)(PTR___environ_00145154 + -0x62ac) = param_2;
  if (iVar2 == 0) {
    return 0;
  }
  _rl_reset_prompt();
  return 0;
}

