
void rl_replace_from_history(HIST_ENTRY *entry,int flags)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined4 uVar4;
  int iVar5;
  histdata_t pvVar6;
  
  rl_replace_line(entry->line,0);
  puVar3 = PTR_rl_undo_list_00145c1c;
  puVar2 = PTR_rl_mark_00145640;
  puVar1 = PTR_rl_point_0014555c;
  pvVar6 = entry->data;
  uVar4 = *(undefined4 *)PTR_rl_end_00145558;
  iVar5 = *(int *)PTR_rl_editing_mode_001455b4;
  *(undefined4 *)PTR_rl_mark_00145640 = 0;
  *(histdata_t *)puVar3 = pvVar6;
  *(undefined4 *)puVar1 = uVar4;
  if (iVar5 == 0) {
    *(undefined4 *)puVar1 = 0;
    *(undefined4 *)puVar2 = uVar4;
  }
  return;
}



void rl_replace_from_history(undefined4 *param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined4 uVar4;
  int iVar5;
  undefined4 uVar6;
  
  rl_replace_line(*param_1,0);
  puVar3 = PTR_rl_undo_list_00145c1c;
  puVar2 = PTR_rl_mark_00145640;
  puVar1 = PTR_rl_point_0014555c;
  uVar6 = param_1[2];
  uVar4 = *(undefined4 *)PTR_rl_end_00145558;
  iVar5 = *(int *)PTR_rl_editing_mode_001455b4;
  *(undefined4 *)PTR_rl_mark_00145640 = 0;
  *(undefined4 *)puVar3 = uVar6;
  *(undefined4 *)puVar1 = uVar4;
  if (iVar5 == 0) {
    *(undefined4 *)puVar1 = 0;
    *(undefined4 *)puVar2 = uVar4;
  }
  return;
}


lui gp,0x4
addiu gp,gp,0x3118
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x6564(gp)
or a1,zero,zero
sw s0,0x18(sp)
or s0,a0,zero
sw gp,0x10(sp)
sw ra,0x1c(sp)
bal 0x0010601c
_lw a0,0x0(a0)
lw gp,0x10(sp)
lw a3,0x8(s0)
lw v1,-0x6fe8(gp)
lw a1,-0x6f8c(gp)
lw a0,-0x6fe4(gp)
lw v0,-0x6f00(gp)
lw a2,-0x6924(gp)
lw v1,0x0(v1)
lw a1,0x0(a1)
sw zero,0x0(v0)
sw a3,0x0(a2)
bne a1,zero,0x00109494
_sw v1,0x0(a0)
sw zero,0x0(a0)
sw v1,0x0(v0)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void rl_replace_from_history(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  rl_replace_line(*param_1,0);\n  puVar3 = PTR_rl_undo_list_00145c1c;\n  puVar2 = PTR_rl_mark_00145640;\n  puVar1 = PTR_rl_point_0014555c;\n  uVar6 = param_1[2];\n  uVar4 = *(undefined4 *)PTR_rl_end_00145558;\n  iVar5 = *(int *)PTR_rl_editing_mode_001455b4;\n  *(undefined4 *)PTR_rl_mark_00145640 = 0;\n  *(undefined4 *)puVar3 = uVar6;\n  *(undefined4 *)puVar1 = uVar4;\n  if (iVar5 == 0) {\n    *(undefined4 *)puVar1 = 0;\n    *(undefined4 *)puVar2 = uVar4;\n  }\n  return;\n}\n\n" (function_definition "void rl_replace_from_history(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  rl_replace_line(*param_1,0);\n  puVar3 = PTR_rl_undo_list_00145c1c;\n  puVar2 = PTR_rl_mark_00145640;\n  puVar1 = PTR_rl_point_0014555c;\n  uVar6 = param_1[2];\n  uVar4 = *(undefined4 *)PTR_rl_end_00145558;\n  iVar5 = *(int *)PTR_rl_editing_mode_001455b4;\n  *(undefined4 *)PTR_rl_mark_00145640 = 0;\n  *(undefined4 *)puVar3 = uVar6;\n  *(undefined4 *)puVar1 = uVar4;\n  if (iVar5 == 0) {\n    *(undefined4 *)puVar1 = 0;\n    *(undefined4 *)puVar2 = uVar4;\n  }\n  return;\n}" primitive_type (function_declarator "rl_replace_from_history(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  rl_replace_line(*param_1,0);\n  puVar3 = PTR_rl_undo_list_00145c1c;\n  puVar2 = PTR_rl_mark_00145640;\n  puVar1 = PTR_rl_point_0014555c;\n  uVar6 = param_1[2];\n  uVar4 = *(undefined4 *)PTR_rl_end_00145558;\n  iVar5 = *(int *)PTR_rl_editing_mode_001455b4;\n  *(undefined4 *)PTR_rl_mark_00145640 = 0;\n  *(undefined4 *)puVar3 = uVar6;\n  *(undefined4 *)puVar1 = uVar4;\n  if (iVar5 == 0) {\n    *(undefined4 *)puVar1 = 0;\n    *(undefined4 *)puVar2 = uVar4;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "rl_replace_line(*param_1,0);" (call_expression "rl_replace_line(*param_1,0)" identifier (argument_list "(*param_1,0)" ( (pointer_expression "*param_1" * identifier) , number_literal ))) ;) (expression_statement "puVar3 = PTR_rl_undo_list_00145c1c;" (assignment_expression "puVar3 = PTR_rl_undo_list_00145c1c" identifier = identifier) ;) (expression_statement "puVar2 = PTR_rl_mark_00145640;" (assignment_expression "puVar2 = PTR_rl_mark_00145640" identifier = identifier) ;) (expression_statement "puVar1 = PTR_rl_point_0014555c;" (assignment_expression "puVar1 = PTR_rl_point_0014555c" identifier = identifier) ;) (expression_statement "uVar6 = param_1[2];" (assignment_expression "uVar6 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = *(undefined4 *)PTR_rl_end_00145558;" (assignment_expression "uVar4 = *(undefined4 *)PTR_rl_end_00145558" identifier = (pointer_expression "*(undefined4 *)PTR_rl_end_00145558" * (cast_expression "(undefined4 *)PTR_rl_end_00145558" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar5 = *(int *)PTR_rl_editing_mode_001455b4;" (assignment_expression "iVar5 = *(int *)PTR_rl_editing_mode_001455b4" identifier = (pointer_expression "*(int *)PTR_rl_editing_mode_001455b4" * (cast_expression "(int *)PTR_rl_editing_mode_001455b4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)PTR_rl_mark_00145640 = 0;" (assignment_expression "*(undefined4 *)PTR_rl_mark_00145640 = 0" (pointer_expression "*(undefined4 *)PTR_rl_mark_00145640" * (cast_expression "(undefined4 *)PTR_rl_mark_00145640" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)puVar3 = uVar6;" (assignment_expression "*(undefined4 *)puVar3 = uVar6" (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)puVar1 = uVar4;" (assignment_expression "*(undefined4 *)puVar1 = uVar4" (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if (iVar5 == 0) {\n    *(undefined4 *)puVar1 = 0;\n    *(undefined4 *)puVar2 = uVar4;\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)puVar1 = 0;\n    *(undefined4 *)puVar2 = uVar4;\n  }" { (expression_statement "*(undefined4 *)puVar1 = 0;" (assignment_expression "*(undefined4 *)puVar1 = 0" (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)puVar2 = uVar4;" (assignment_expression "*(undefined4 *)puVar2 = uVar4" (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void rl_replace_from_history(HIST_ENTRY *entry,int flags)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  histdata_t pvVar6;\n  \n  rl_replace_line(entry->line,0);\n  puVar3 = PTR_rl_undo_list_00145c1c;\n  puVar2 = PTR_rl_mark_00145640;\n  puVar1 = PTR_rl_point_0014555c;\n  pvVar6 = entry->data;\n  uVar4 = *(undefined4 *)PTR_rl_end_00145558;\n  iVar5 = *(int *)PTR_rl_editing_mode_001455b4;\n  *(undefined4 *)PTR_rl_mark_00145640 = 0;\n  *(histdata_t *)puVar3 = pvVar6;\n  *(undefined4 *)puVar1 = uVar4;\n  if (iVar5 == 0) {\n    *(undefined4 *)puVar1 = 0;\n    *(undefined4 *)puVar2 = uVar4;\n  }\n  return;\n}\n\n" (function_definition "void rl_replace_from_history(HIST_ENTRY *entry,int flags)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  histdata_t pvVar6;\n  \n  rl_replace_line(entry->line,0);\n  puVar3 = PTR_rl_undo_list_00145c1c;\n  puVar2 = PTR_rl_mark_00145640;\n  puVar1 = PTR_rl_point_0014555c;\n  pvVar6 = entry->data;\n  uVar4 = *(undefined4 *)PTR_rl_end_00145558;\n  iVar5 = *(int *)PTR_rl_editing_mode_001455b4;\n  *(undefined4 *)PTR_rl_mark_00145640 = 0;\n  *(histdata_t *)puVar3 = pvVar6;\n  *(undefined4 *)puVar1 = uVar4;\n  if (iVar5 == 0) {\n    *(undefined4 *)puVar1 = 0;\n    *(undefined4 *)puVar2 = uVar4;\n  }\n  return;\n}" primitive_type (function_declarator "rl_replace_from_history(HIST_ENTRY *entry,int flags)" identifier (parameter_list "(HIST_ENTRY *entry,int flags)" ( (parameter_declaration "HIST_ENTRY *entry" type_identifier (pointer_declarator "*entry" * identifier)) , (parameter_declaration "int flags" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  histdata_t pvVar6;\n  \n  rl_replace_line(entry->line,0);\n  puVar3 = PTR_rl_undo_list_00145c1c;\n  puVar2 = PTR_rl_mark_00145640;\n  puVar1 = PTR_rl_point_0014555c;\n  pvVar6 = entry->data;\n  uVar4 = *(undefined4 *)PTR_rl_end_00145558;\n  iVar5 = *(int *)PTR_rl_editing_mode_001455b4;\n  *(undefined4 *)PTR_rl_mark_00145640 = 0;\n  *(histdata_t *)puVar3 = pvVar6;\n  *(undefined4 *)puVar1 = uVar4;\n  if (iVar5 == 0) {\n    *(undefined4 *)puVar1 = 0;\n    *(undefined4 *)puVar2 = uVar4;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "histdata_t pvVar6;" type_identifier identifier ;) (expression_statement "rl_replace_line(entry->line,0);" (call_expression "rl_replace_line(entry->line,0)" identifier (argument_list "(entry->line,0)" ( (field_expression "entry->line" identifier -> field_identifier) , number_literal ))) ;) (expression_statement "puVar3 = PTR_rl_undo_list_00145c1c;" (assignment_expression "puVar3 = PTR_rl_undo_list_00145c1c" identifier = identifier) ;) (expression_statement "puVar2 = PTR_rl_mark_00145640;" (assignment_expression "puVar2 = PTR_rl_mark_00145640" identifier = identifier) ;) (expression_statement "puVar1 = PTR_rl_point_0014555c;" (assignment_expression "puVar1 = PTR_rl_point_0014555c" identifier = identifier) ;) (expression_statement "pvVar6 = entry->data;" (assignment_expression "pvVar6 = entry->data" identifier = (field_expression "entry->data" identifier -> field_identifier)) ;) (expression_statement "uVar4 = *(undefined4 *)PTR_rl_end_00145558;" (assignment_expression "uVar4 = *(undefined4 *)PTR_rl_end_00145558" identifier = (pointer_expression "*(undefined4 *)PTR_rl_end_00145558" * (cast_expression "(undefined4 *)PTR_rl_end_00145558" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar5 = *(int *)PTR_rl_editing_mode_001455b4;" (assignment_expression "iVar5 = *(int *)PTR_rl_editing_mode_001455b4" identifier = (pointer_expression "*(int *)PTR_rl_editing_mode_001455b4" * (cast_expression "(int *)PTR_rl_editing_mode_001455b4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)PTR_rl_mark_00145640 = 0;" (assignment_expression "*(undefined4 *)PTR_rl_mark_00145640 = 0" (pointer_expression "*(undefined4 *)PTR_rl_mark_00145640" * (cast_expression "(undefined4 *)PTR_rl_mark_00145640" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(histdata_t *)puVar3 = pvVar6;" (assignment_expression "*(histdata_t *)puVar3 = pvVar6" (pointer_expression "*(histdata_t *)puVar3" * (cast_expression "(histdata_t *)puVar3" ( (type_descriptor "histdata_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)puVar1 = uVar4;" (assignment_expression "*(undefined4 *)puVar1 = uVar4" (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if (iVar5 == 0) {\n    *(undefined4 *)puVar1 = 0;\n    *(undefined4 *)puVar2 = uVar4;\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)puVar1 = 0;\n    *(undefined4 *)puVar2 = uVar4;\n  }" { (expression_statement "*(undefined4 *)puVar1 = 0;" (assignment_expression "*(undefined4 *)puVar1 = 0" (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)puVar2 = uVar4;" (assignment_expression "*(undefined4 *)puVar2 = uVar4" (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void rl_replace_from_history(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  rl_replace_line(*param_1,0);\n  puVar3 = PTR_rl_undo_list_00145c1c;\n  puVar2 = PTR_rl_mark_00145640;\n  puVar1 = PTR_rl_point_0014555c;\n  uVar6 = param_1[2];\n  uVar4 = *(undefined4 *)PTR_rl_end_00145558;\n  iVar5 = *(int *)PTR_rl_editing_mode_001455b4;\n  *(undefined4 *)PTR_rl_mark_00145640 = 0;\n  *(undefined4 *)puVar3 = uVar6;\n  *(undefined4 *)puVar1 = uVar4;\n  if (iVar5 == 0) {\n    *(undefined4 *)puVar1 = 0;\n    *(undefined4 *)puVar2 = uVar4;\n  }\n  return;\n}\n\n" (function_definition "void rl_replace_from_history(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  rl_replace_line(*param_1,0);\n  puVar3 = PTR_rl_undo_list_00145c1c;\n  puVar2 = PTR_rl_mark_00145640;\n  puVar1 = PTR_rl_point_0014555c;\n  uVar6 = param_1[2];\n  uVar4 = *(undefined4 *)PTR_rl_end_00145558;\n  iVar5 = *(int *)PTR_rl_editing_mode_001455b4;\n  *(undefined4 *)PTR_rl_mark_00145640 = 0;\n  *(undefined4 *)puVar3 = uVar6;\n  *(undefined4 *)puVar1 = uVar4;\n  if (iVar5 == 0) {\n    *(undefined4 *)puVar1 = 0;\n    *(undefined4 *)puVar2 = uVar4;\n  }\n  return;\n}" primitive_type (function_declarator "rl_replace_from_history(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  rl_replace_line(*param_1,0);\n  puVar3 = PTR_rl_undo_list_00145c1c;\n  puVar2 = PTR_rl_mark_00145640;\n  puVar1 = PTR_rl_point_0014555c;\n  uVar6 = param_1[2];\n  uVar4 = *(undefined4 *)PTR_rl_end_00145558;\n  iVar5 = *(int *)PTR_rl_editing_mode_001455b4;\n  *(undefined4 *)PTR_rl_mark_00145640 = 0;\n  *(undefined4 *)puVar3 = uVar6;\n  *(undefined4 *)puVar1 = uVar4;\n  if (iVar5 == 0) {\n    *(undefined4 *)puVar1 = 0;\n    *(undefined4 *)puVar2 = uVar4;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "rl_replace_line(*param_1,0);" (call_expression "rl_replace_line(*param_1,0)" identifier (argument_list "(*param_1,0)" ( (pointer_expression "*param_1" * identifier) , number_literal ))) ;) (expression_statement "puVar3 = PTR_rl_undo_list_00145c1c;" (assignment_expression "puVar3 = PTR_rl_undo_list_00145c1c" identifier = identifier) ;) (expression_statement "puVar2 = PTR_rl_mark_00145640;" (assignment_expression "puVar2 = PTR_rl_mark_00145640" identifier = identifier) ;) (expression_statement "puVar1 = PTR_rl_point_0014555c;" (assignment_expression "puVar1 = PTR_rl_point_0014555c" identifier = identifier) ;) (expression_statement "uVar6 = param_1[2];" (assignment_expression "uVar6 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = *(undefined4 *)PTR_rl_end_00145558;" (assignment_expression "uVar4 = *(undefined4 *)PTR_rl_end_00145558" identifier = (pointer_expression "*(undefined4 *)PTR_rl_end_00145558" * (cast_expression "(undefined4 *)PTR_rl_end_00145558" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar5 = *(int *)PTR_rl_editing_mode_001455b4;" (assignment_expression "iVar5 = *(int *)PTR_rl_editing_mode_001455b4" identifier = (pointer_expression "*(int *)PTR_rl_editing_mode_001455b4" * (cast_expression "(int *)PTR_rl_editing_mode_001455b4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)PTR_rl_mark_00145640 = 0;" (assignment_expression "*(undefined4 *)PTR_rl_mark_00145640 = 0" (pointer_expression "*(undefined4 *)PTR_rl_mark_00145640" * (cast_expression "(undefined4 *)PTR_rl_mark_00145640" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)puVar3 = uVar6;" (assignment_expression "*(undefined4 *)puVar3 = uVar6" (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)puVar1 = uVar4;" (assignment_expression "*(undefined4 *)puVar1 = uVar4" (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if (iVar5 == 0) {\n    *(undefined4 *)puVar1 = 0;\n    *(undefined4 *)puVar2 = uVar4;\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)puVar1 = 0;\n    *(undefined4 *)puVar2 = uVar4;\n  }" { (expression_statement "*(undefined4 *)puVar1 = 0;" (assignment_expression "*(undefined4 *)puVar1 = 0" (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)puVar2 = uVar4;" (assignment_expression "*(undefined4 *)puVar2 = uVar4" (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * 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 ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 *)) ) IDENT)) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) })) (return_statement return ;) })))
(function_definition "void rl_replace_from_history(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  rl_replace_line(*param_1,0);\n  puVar3 = PTR_rl_undo_list_00145c1c;\n  puVar2 = PTR_rl_mark_00145640;\n  puVar1 = PTR_rl_point_0014555c;\n  uVar6 = param_1[2];\n  uVar4 = *(undefined4 *)PTR_rl_end_00145558;\n  iVar5 = *(int *)PTR_rl_editing_mode_001455b4;\n  *(undefined4 *)PTR_rl_mark_00145640 = 0;\n  *(undefined4 *)puVar3 = uVar6;\n  *(undefined4 *)puVar1 = uVar4;\n  if (iVar5 == 0) {\n    *(undefined4 *)puVar1 = 0;\n    *(undefined4 *)puVar2 = uVar4;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "rl_replace_from_history(undefined4 *param_1)" (identifier "rl_replace_from_history") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  rl_replace_line(*param_1,0);\n  puVar3 = PTR_rl_undo_list_00145c1c;\n  puVar2 = PTR_rl_mark_00145640;\n  puVar1 = PTR_rl_point_0014555c;\n  uVar6 = param_1[2];\n  uVar4 = *(undefined4 *)PTR_rl_end_00145558;\n  iVar5 = *(int *)PTR_rl_editing_mode_001455b4;\n  *(undefined4 *)PTR_rl_mark_00145640 = 0;\n  *(undefined4 *)puVar3 = uVar6;\n  *(undefined4 *)puVar1 = uVar4;\n  if (iVar5 == 0) {\n    *(undefined4 *)puVar1 = 0;\n    *(undefined4 *)puVar2 = uVar4;\n  }\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (expression_statement "rl_replace_line(*param_1,0);" (call_expression "rl_replace_line(*param_1,0)" (identifier "rl_replace_line") (argument_list "(*param_1,0)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "puVar3 = PTR_rl_undo_list_00145c1c;" (assignment_expression "puVar3 = PTR_rl_undo_list_00145c1c" (identifier "puVar3") (= "=") (identifier "PTR_rl_undo_list_00145c1c")) (; ";")) (expression_statement "puVar2 = PTR_rl_mark_00145640;" (assignment_expression "puVar2 = PTR_rl_mark_00145640" (identifier "puVar2") (= "=") (identifier "PTR_rl_mark_00145640")) (; ";")) (expression_statement "puVar1 = PTR_rl_point_0014555c;" (assignment_expression "puVar1 = PTR_rl_point_0014555c" (identifier "puVar1") (= "=") (identifier "PTR_rl_point_0014555c")) (; ";")) (expression_statement "uVar6 = param_1[2];" (assignment_expression "uVar6 = param_1[2]" (identifier "uVar6") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar4 = *(undefined4 *)PTR_rl_end_00145558;" (assignment_expression "uVar4 = *(undefined4 *)PTR_rl_end_00145558" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)PTR_rl_end_00145558" (* "*") (cast_expression "(undefined4 *)PTR_rl_end_00145558" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_end_00145558")))) (; ";")) (expression_statement "iVar5 = *(int *)PTR_rl_editing_mode_001455b4;" (assignment_expression "iVar5 = *(int *)PTR_rl_editing_mode_001455b4" (identifier "iVar5") (= "=") (pointer_expression "*(int *)PTR_rl_editing_mode_001455b4" (* "*") (cast_expression "(int *)PTR_rl_editing_mode_001455b4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_editing_mode_001455b4")))) (; ";")) (expression_statement "*(undefined4 *)PTR_rl_mark_00145640 = 0;" (assignment_expression "*(undefined4 *)PTR_rl_mark_00145640 = 0" (pointer_expression "*(undefined4 *)PTR_rl_mark_00145640" (* "*") (cast_expression "(undefined4 *)PTR_rl_mark_00145640" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_mark_00145640"))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)puVar3 = uVar6;" (assignment_expression "*(undefined4 *)puVar3 = uVar6" (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "*(undefined4 *)puVar1 = uVar4;" (assignment_expression "*(undefined4 *)puVar1 = uVar4" (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (= "=") (identifier "uVar4")) (; ";")) (if_statement "if (iVar5 == 0) {\n    *(undefined4 *)puVar1 = 0;\n    *(undefined4 *)puVar2 = uVar4;\n  }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)puVar1 = 0;\n    *(undefined4 *)puVar2 = uVar4;\n  }" ({ "{") (expression_statement "*(undefined4 *)puVar1 = 0;" (assignment_expression "*(undefined4 *)puVar1 = 0" (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)puVar2 = uVar4;" (assignment_expression "*(undefined4 *)puVar2 = uVar4" (pointer_expression "*(undefined4 *)puVar2" (* "*") (cast_expression "(undefined4 *)puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *entry,int flags)

{
  type_2 *puVar1;
  type_2 *puVar2;
  type_2 *puVar3;
  type_3 uVar4;
  int var_2;
  type_4 pvVar6;
  
  var_1(entry->line,0);
  puVar3 = PTR_rl_undo_list_00145c1c;
  puVar2 = PTR_rl_mark_00145640;
  puVar1 = PTR_rl_point_0014555c;
  pvVar6 = entry->data;
  uVar4 = *(type_3 *)PTR_rl_end_00145558;
  var_2 = *(int *)PTR_rl_editing_mode_001455b4;
  *(type_3 *)PTR_rl_mark_00145640 = 0;
  *(type_4 *)puVar3 = pvVar6;
  *(type_3 *)puVar1 = uVar4;
  if (var_2 == 0) {
    *(type_3 *)puVar1 = 0;
    *(type_3 *)puVar2 = uVar4;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator 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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (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: (identifier))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (identifier))) right: (identifier))))) (return_statement))))

void MASKED(undefined4 *param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined4 uVar4;
  int iVar5;
  undefined4 uVar6;
  
  rl_replace_line(*param_1,0);
  puVar3 = PTR_rl_undo_list_00145c1c;
  puVar2 = PTR_rl_mark_00145640;
  puVar1 = PTR_rl_point_0014555c;
  uVar6 = param_1[2];
  uVar4 = *(undefined4 *)PTR_rl_end_00145558;
  iVar5 = *(int *)PTR_rl_editing_mode_001455b4;
  *(undefined4 *)PTR_rl_mark_00145640 = 0;
  *(undefined4 *)puVar3 = uVar6;
  *(undefined4 *)puVar1 = uVar4;
  if (iVar5 == 0) {
    *(undefined4 *)puVar1 = 0;
    *(undefined4 *)puVar2 = uVar4;
  }
  return;
}

