
void emergency_save(char *die_filename,stat *die_stat)

{
  undefined3 extraout_var;
  char *name;
  undefined4 uVar1;
  undefined4 uVar2;
  _Bool _Var4;
  undefined4 *puVar3;
  undefined4 uVar5;
  
  if (*die_filename == '\0') {
    die_filename = PTR_s_d_of_current_line_0007755c + 0x2bd0;
  }
  name = get_next_filename(die_filename,PTR_s_d_of_current_line_0007755c + 0x2bd8);
  if (*name != '\0') {
    _Var4 = write_file(name,(FILE *)0x0,true,OVERWRITE,false);
    if (CONCAT31(extraout_var,_Var4) != 0) {
      uVar2 = *(undefined4 *)PTR_stderr_00078124;
      uVar1 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);
      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar1,name);
      goto LAB_0002eef4;
    }
    uVar1 = *(undefined4 *)PTR_stderr_00078124;
    if (*name != '\0') {
      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);
      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();
      uVar5 = (*(code *)PTR_strerror_00078028)(*puVar3);
      (*(code *)PTR___fprintf_chk_00077ef8)(uVar1,1,uVar2,name,uVar5);
      goto LAB_0002eef4;
    }
  }
  uVar5 = *(undefined4 *)PTR_stderr_00078124;
  uVar1 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5);
  uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5);
  (*(code *)PTR___fprintf_chk_00077ef8)(uVar5,1,uVar1,uVar2);
LAB_0002eef4:
  if (die_stat != (stat *)0x0) {
    (*(code *)PTR_chmod_00077ed8)(name,die_stat->st_mode);
    (*(code *)PTR_chown_00077fe0)(name,die_stat->st_uid,die_stat->st_gid);
  }
  (*(code *)PTR_free_0007810c)(name);
  return;
}



void emergency_save(char *param_1,int param_2)

{
  char *pcVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 *puVar5;
  undefined4 uVar6;
  
  if (*param_1 == '\0') {
    param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0;
  }
  pcVar1 = (char *)get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8);
  if (*pcVar1 != '\0') {
    iVar4 = write_file(pcVar1,0,1,0,0);
    if (iVar4 != 0) {
      uVar3 = *(undefined4 *)PTR_stderr_00078124;
      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);
      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);
      goto LAB_0002eef4;
    }
    uVar2 = *(undefined4 *)PTR_stderr_00078124;
    if (*pcVar1 != '\0') {
      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);
      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();
      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);
      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);
      goto LAB_0002eef4;
    }
  }
  uVar6 = *(undefined4 *)PTR_stderr_00078124;
  uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5);
  uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5);
  (*(code *)PTR___fprintf_chk_00077ef8)(uVar6,1,uVar2,uVar3);
LAB_0002eef4:
  if (param_2 != 0) {
    (*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));
    (*(code *)PTR_chown_00077fe0)
              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));
  }
  (*(code *)PTR_free_0007810c)(pcVar1);
  return;
}


lui gp,0x5
addiu gp,gp,0x6e8
addu gp,gp,t9
addiu sp,sp,-0x38
sw s1,0x28(sp)
sw gp,0x18(sp)
sw ra,0x34(sp)
sw s3,0x30(sp)
sw s2,0x2c(sp)
sw s0,0x24(sp)
lb v0,0x0(a0)
bne v0,zero,0x0002ee74
_or s1,a1,zero
lw a0,-0x7fc4(gp)
addiu a0,a0,0x2bd0
lw a1,-0x7fc4(gp)
lw t9,-0x7f38(gp)
bal 0x0001fce4
_addiu a1,a1,0x2bd8
or s0,v0,zero
lb v0,0x0(v0)
bne v0,zero,0x0002ef48
_lw gp,0x18(sp)
lw v0,-0x73fc(gp)
lw a1,-0x7fc4(gp)
li a2,0x5
lw t9,-0x7454(gp)
or a0,zero,zero
lw s2,0x0(v0)
jalr t9
_addiu a1,a1,0x2c18
li a2,0x5
lw gp,0x18(sp)
or a0,zero,zero
or s3,v0,zero
lw a1,-0x7fc4(gp)
lw t9,-0x7454(gp)
jalr t9
_addiu a1,a1,-0x90c
li a1,0x1
lw gp,0x18(sp)
or a3,v0,zero
or a2,s3,zero
lw t9,-0x7628(gp)
jalr t9
_or a0,s2,zero
lw gp,0x18(sp)
beq s1,zero,0x0002ef24
_lw t9,-0x7648(gp)
or a0,s0,zero
jalr t9
_lw a1,0x18(s1)
or a0,s0,zero
lw gp,0x18(sp)
lw a2,0x24(s1)
lw t9,-0x7540(gp)
jalr t9
_lw a1,0x20(s1)
lw gp,0x18(sp)
lw ra,0x34(sp)
or a0,s0,zero
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
lw t9,-0x7414(gp)
jr t9
_addiu sp,sp,0x38
lw t9,-0x7f34(gp)
or a3,zero,zero
li a2,0x1
sw zero,0x10(sp)
or a1,zero,zero
bal 0x00022620
_or a0,s0,zero
bne v0,zero,0x0002efdc
_lw gp,0x18(sp)
lw v0,-0x73fc(gp)
lb v1,0x0(s0)
beq v1,zero,0x0002ee98
_lw s2,0x0(v0)
lw a1,-0x7fc4(gp)
li a2,0x5
lw t9,-0x7454(gp)
or a0,zero,zero
jalr t9
_addiu a1,a1,0x2bf8
lw gp,0x18(sp)
lw t9,-0x7570(gp)
jalr t9
_or s3,v0,zero
lw gp,0x18(sp)
lw t9,-0x74f8(gp)
jalr t9
_lw a0,0x0(v0)
li a1,0x1
lw gp,0x18(sp)
or a3,s0,zero
sw v0,0x10(sp)
or a2,s3,zero
lw t9,-0x7628(gp)
jalr t9
_or a0,s2,zero
b 0x0002eef4
_lw gp,0x18(sp)
lw a1,-0x7fc4(gp)
li a2,0x5
lw v0,-0x73fc(gp)
or a0,zero,zero
lw t9,-0x7454(gp)
addiu a1,a1,0x2be0
jalr t9
_lw s2,0x0(v0)
li a1,0x1
lw gp,0x18(sp)
or a3,s0,zero
or a2,v0,zero
lw t9,-0x7628(gp)
jalr t9
_or a0,s2,zero
b 0x0002eef4
_lw gp,0x18(sp)
(translation_unit "void emergency_save(char *param_1,int param_2)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  \n  if (*param_1 == '\0') {\n    param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0;\n  }\n  pcVar1 = (char *)get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8);\n  if (*pcVar1 != '\0') {\n    iVar4 = write_file(pcVar1,0,1,0,0);\n    if (iVar4 != 0) {\n      uVar3 = *(undefined4 *)PTR_stderr_00078124;\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);\n      goto LAB_0002eef4;\n    }\n    uVar2 = *(undefined4 *)PTR_stderr_00078124;\n    if (*pcVar1 != '\0') {\n      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);\n      goto LAB_0002eef4;\n    }\n  }\n  uVar6 = *(undefined4 *)PTR_stderr_00078124;\n  uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5);\n  uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5);\n  (*(code *)PTR___fprintf_chk_00077ef8)(uVar6,1,uVar2,uVar3);\nLAB_0002eef4:\n  if (param_2 != 0) {\n    (*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));\n    (*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));\n  }\n  (*(code *)PTR_free_0007810c)(pcVar1);\n  return;\n}\n\n" (function_definition "void emergency_save(char *param_1,int param_2)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  \n  if (*param_1 == '\0') {\n    param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0;\n  }\n  pcVar1 = (char *)get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8);\n  if (*pcVar1 != '\0') {\n    iVar4 = write_file(pcVar1,0,1,0,0);\n    if (iVar4 != 0) {\n      uVar3 = *(undefined4 *)PTR_stderr_00078124;\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);\n      goto LAB_0002eef4;\n    }\n    uVar2 = *(undefined4 *)PTR_stderr_00078124;\n    if (*pcVar1 != '\0') {\n      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);\n      goto LAB_0002eef4;\n    }\n  }\n  uVar6 = *(undefined4 *)PTR_stderr_00078124;\n  uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5);\n  uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5);\n  (*(code *)PTR___fprintf_chk_00077ef8)(uVar6,1,uVar2,uVar3);\nLAB_0002eef4:\n  if (param_2 != 0) {\n    (*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));\n    (*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));\n  }\n  (*(code *)PTR_free_0007810c)(pcVar1);\n  return;\n}" primitive_type (function_declarator "emergency_save(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  \n  if (*param_1 == '\0') {\n    param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0;\n  }\n  pcVar1 = (char *)get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8);\n  if (*pcVar1 != '\0') {\n    iVar4 = write_file(pcVar1,0,1,0,0);\n    if (iVar4 != 0) {\n      uVar3 = *(undefined4 *)PTR_stderr_00078124;\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);\n      goto LAB_0002eef4;\n    }\n    uVar2 = *(undefined4 *)PTR_stderr_00078124;\n    if (*pcVar1 != '\0') {\n      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);\n      goto LAB_0002eef4;\n    }\n  }\n  uVar6 = *(undefined4 *)PTR_stderr_00078124;\n  uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5);\n  uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5);\n  (*(code *)PTR___fprintf_chk_00077ef8)(uVar6,1,uVar2,uVar3);\nLAB_0002eef4:\n  if (param_2 != 0) {\n    (*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));\n    (*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));\n  }\n  (*(code *)PTR_free_0007810c)(pcVar1);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (if_statement "if (*param_1 == '\0') {\n    param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0;\n  }" if (parenthesized_expression "(*param_1 == '\0')" ( (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0;\n  }" { (expression_statement "param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0;" (assignment_expression "param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0" identifier = (binary_expression "PTR_s_d_of_current_line_0007755c + 0x2bd0" identifier + number_literal)) ;) })) (expression_statement "pcVar1 = (char *)get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8);" (assignment_expression "pcVar1 = (char *)get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8)" identifier = (cast_expression "(char *)get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8)" identifier (argument_list "(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8)" ( identifier , (binary_expression "PTR_s_d_of_current_line_0007755c + 0x2bd8" identifier + number_literal) ))))) ;) (if_statement "if (*pcVar1 != '\0') {\n    iVar4 = write_file(pcVar1,0,1,0,0);\n    if (iVar4 != 0) {\n      uVar3 = *(undefined4 *)PTR_stderr_00078124;\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);\n      goto LAB_0002eef4;\n    }\n    uVar2 = *(undefined4 *)PTR_stderr_00078124;\n    if (*pcVar1 != '\0') {\n      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);\n      goto LAB_0002eef4;\n    }\n  }" if (parenthesized_expression "(*pcVar1 != '\0')" ( (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar4 = write_file(pcVar1,0,1,0,0);\n    if (iVar4 != 0) {\n      uVar3 = *(undefined4 *)PTR_stderr_00078124;\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);\n      goto LAB_0002eef4;\n    }\n    uVar2 = *(undefined4 *)PTR_stderr_00078124;\n    if (*pcVar1 != '\0') {\n      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);\n      goto LAB_0002eef4;\n    }\n  }" { (expression_statement "iVar4 = write_file(pcVar1,0,1,0,0);" (assignment_expression "iVar4 = write_file(pcVar1,0,1,0,0)" identifier = (call_expression "write_file(pcVar1,0,1,0,0)" identifier (argument_list "(pcVar1,0,1,0,0)" ( identifier , number_literal , number_literal , number_literal , number_literal )))) ;) (if_statement "if (iVar4 != 0) {\n      uVar3 = *(undefined4 *)PTR_stderr_00078124;\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);\n      goto LAB_0002eef4;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar3 = *(undefined4 *)PTR_stderr_00078124;\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);\n      goto LAB_0002eef4;\n    }" { (expression_statement "uVar3 = *(undefined4 *)PTR_stderr_00078124;" (assignment_expression "uVar3 = *(undefined4 *)PTR_stderr_00078124" identifier = (pointer_expression "*(undefined4 *)PTR_stderr_00078124" * (cast_expression "(undefined4 *)PTR_stderr_00078124" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000780cc)" ( (pointer_expression "*(code *)PTR_dcgettext_000780cc" * (cast_expression "(code *)PTR_dcgettext_000780cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5)" ( number_literal , (binary_expression "PTR_s_d_of_current_line_0007755c + 0x2be0" identifier + number_literal) , number_literal )))) ;) (expression_statement "(*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);" (call_expression "(*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00077ef8)" ( (pointer_expression "*(code *)PTR___fprintf_chk_00077ef8" * (cast_expression "(code *)PTR___fprintf_chk_00077ef8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,1,uVar2,pcVar1)" ( identifier , number_literal , identifier , identifier ))) ;) (goto_statement "goto LAB_0002eef4;" goto statement_identifier ;) })) (expression_statement "uVar2 = *(undefined4 *)PTR_stderr_00078124;" (assignment_expression "uVar2 = *(undefined4 *)PTR_stderr_00078124" identifier = (pointer_expression "*(undefined4 *)PTR_stderr_00078124" * (cast_expression "(undefined4 *)PTR_stderr_00078124" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (*pcVar1 != '\0') {\n      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);\n      goto LAB_0002eef4;\n    }" if (parenthesized_expression "(*pcVar1 != '\0')" ( (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);\n      goto LAB_0002eef4;\n    }" { (expression_statement "uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000780cc)" ( (pointer_expression "*(code *)PTR_dcgettext_000780cc" * (cast_expression "(code *)PTR_dcgettext_000780cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5)" ( number_literal , (binary_expression "PTR_s_d_of_current_line_0007755c + 0x2bf8" identifier + number_literal) , number_literal )))) ;) (expression_statement "puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();" (assignment_expression "puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00077fb0)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00077fb0)()" (parenthesized_expression "(*(code *)PTR___errno_location_00077fb0)" ( (pointer_expression "*(code *)PTR___errno_location_00077fb0" * (cast_expression "(code *)PTR___errno_location_00077fb0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);" (assignment_expression "uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5)" identifier = (call_expression "(*(code *)PTR_strerror_00078028)(*puVar5)" (parenthesized_expression "(*(code *)PTR_strerror_00078028)" ( (pointer_expression "*(code *)PTR_strerror_00078028" * (cast_expression "(code *)PTR_strerror_00078028" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar5)" ( (pointer_expression "*puVar5" * identifier) )))) ;) (expression_statement "(*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);" (call_expression "(*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00077ef8)" ( (pointer_expression "*(code *)PTR___fprintf_chk_00077ef8" * (cast_expression "(code *)PTR___fprintf_chk_00077ef8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,1,uVar3,pcVar1,uVar6)" ( identifier , number_literal , identifier , identifier , identifier ))) ;) (goto_statement "goto LAB_0002eef4;" goto statement_identifier ;) })) })) (expression_statement "uVar6 = *(undefined4 *)PTR_stderr_00078124;" (assignment_expression "uVar6 = *(undefined4 *)PTR_stderr_00078124" identifier = (pointer_expression "*(undefined4 *)PTR_stderr_00078124" * (cast_expression "(undefined4 *)PTR_stderr_00078124" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000780cc)" ( (pointer_expression "*(code *)PTR_dcgettext_000780cc" * (cast_expression "(code *)PTR_dcgettext_000780cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5)" ( number_literal , (binary_expression "PTR_s_d_of_current_line_0007755c + 0x2c18" identifier + number_literal) , number_literal )))) ;) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000780cc)" ( (pointer_expression "*(code *)PTR_dcgettext_000780cc" * (cast_expression "(code *)PTR_dcgettext_000780cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_d_of_current_line_0007755c + -0x90c,5)" ( number_literal , (binary_expression "PTR_s_d_of_current_line_0007755c + -0x90c" identifier + number_literal) , number_literal )))) ;) (expression_statement "(*(code *)PTR___fprintf_chk_00077ef8)(uVar6,1,uVar2,uVar3);" (call_expression "(*(code *)PTR___fprintf_chk_00077ef8)(uVar6,1,uVar2,uVar3)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00077ef8)" ( (pointer_expression "*(code *)PTR___fprintf_chk_00077ef8" * (cast_expression "(code *)PTR___fprintf_chk_00077ef8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar6,1,uVar2,uVar3)" ( identifier , number_literal , identifier , identifier ))) ;) (labeled_statement "LAB_0002eef4:\n  if (param_2 != 0) {\n    (*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));\n    (*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));\n  }" statement_identifier : (if_statement "if (param_2 != 0) {\n    (*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));\n    (*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));\n    (*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));\n  }" { (expression_statement "(*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));" (call_expression "(*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18))" (parenthesized_expression "(*(code *)PTR_chmod_00077ed8)" ( (pointer_expression "*(code *)PTR_chmod_00077ed8" * (cast_expression "(code *)PTR_chmod_00077ed8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1,*(undefined4 *)(param_2 + 0x18))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x18)" * (cast_expression "(undefined4 *)(param_2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));" (call_expression "(*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24))" (parenthesized_expression "(*(code *)PTR_chown_00077fe0)" ( (pointer_expression "*(code *)PTR_chown_00077fe0" * (cast_expression "(code *)PTR_chown_00077fe0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x20)" * (cast_expression "(undefined4 *)(param_2 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x24)" * (cast_expression "(undefined4 *)(param_2 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) )))) ))) ;) }))) (expression_statement "(*(code *)PTR_free_0007810c)(pcVar1);" (call_expression "(*(code *)PTR_free_0007810c)(pcVar1)" (parenthesized_expression "(*(code *)PTR_free_0007810c)" ( (pointer_expression "*(code *)PTR_free_0007810c" * (cast_expression "(code *)PTR_free_0007810c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void emergency_save(char *die_filename,stat *die_stat)\n\n{\n  undefined3 extraout_var;\n  char *name;\n  undefined4 uVar1;\n  undefined4 uVar2;\n  _Bool _Var4;\n  undefined4 *puVar3;\n  undefined4 uVar5;\n  \n  if (*die_filename == '\0') {\n    die_filename = PTR_s_d_of_current_line_0007755c + 0x2bd0;\n  }\n  name = get_next_filename(die_filename,PTR_s_d_of_current_line_0007755c + 0x2bd8);\n  if (*name != '\0') {\n    _Var4 = write_file(name,(FILE *)0x0,true,OVERWRITE,false);\n    if (CONCAT31(extraout_var,_Var4) != 0) {\n      uVar2 = *(undefined4 *)PTR_stderr_00078124;\n      uVar1 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar1,name);\n      goto LAB_0002eef4;\n    }\n    uVar1 = *(undefined4 *)PTR_stderr_00078124;\n    if (*name != '\0') {\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar5 = (*(code *)PTR_strerror_00078028)(*puVar3);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar1,1,uVar2,name,uVar5);\n      goto LAB_0002eef4;\n    }\n  }\n  uVar5 = *(undefined4 *)PTR_stderr_00078124;\n  uVar1 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5);\n  uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5);\n  (*(code *)PTR___fprintf_chk_00077ef8)(uVar5,1,uVar1,uVar2);\nLAB_0002eef4:\n  if (die_stat != (stat *)0x0) {\n    (*(code *)PTR_chmod_00077ed8)(name,die_stat->st_mode);\n    (*(code *)PTR_chown_00077fe0)(name,die_stat->st_uid,die_stat->st_gid);\n  }\n  (*(code *)PTR_free_0007810c)(name);\n  return;\n}\n\n" (function_definition "void emergency_save(char *die_filename,stat *die_stat)\n\n{\n  undefined3 extraout_var;\n  char *name;\n  undefined4 uVar1;\n  undefined4 uVar2;\n  _Bool _Var4;\n  undefined4 *puVar3;\n  undefined4 uVar5;\n  \n  if (*die_filename == '\0') {\n    die_filename = PTR_s_d_of_current_line_0007755c + 0x2bd0;\n  }\n  name = get_next_filename(die_filename,PTR_s_d_of_current_line_0007755c + 0x2bd8);\n  if (*name != '\0') {\n    _Var4 = write_file(name,(FILE *)0x0,true,OVERWRITE,false);\n    if (CONCAT31(extraout_var,_Var4) != 0) {\n      uVar2 = *(undefined4 *)PTR_stderr_00078124;\n      uVar1 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar1,name);\n      goto LAB_0002eef4;\n    }\n    uVar1 = *(undefined4 *)PTR_stderr_00078124;\n    if (*name != '\0') {\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar5 = (*(code *)PTR_strerror_00078028)(*puVar3);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar1,1,uVar2,name,uVar5);\n      goto LAB_0002eef4;\n    }\n  }\n  uVar5 = *(undefined4 *)PTR_stderr_00078124;\n  uVar1 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5);\n  uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5);\n  (*(code *)PTR___fprintf_chk_00077ef8)(uVar5,1,uVar1,uVar2);\nLAB_0002eef4:\n  if (die_stat != (stat *)0x0) {\n    (*(code *)PTR_chmod_00077ed8)(name,die_stat->st_mode);\n    (*(code *)PTR_chown_00077fe0)(name,die_stat->st_uid,die_stat->st_gid);\n  }\n  (*(code *)PTR_free_0007810c)(name);\n  return;\n}" primitive_type (function_declarator "emergency_save(char *die_filename,stat *die_stat)" identifier (parameter_list "(char *die_filename,stat *die_stat)" ( (parameter_declaration "char *die_filename" primitive_type (pointer_declarator "*die_filename" * identifier)) , (parameter_declaration "stat *die_stat" type_identifier (pointer_declarator "*die_stat" * identifier)) ))) (compound_statement "{\n  undefined3 extraout_var;\n  char *name;\n  undefined4 uVar1;\n  undefined4 uVar2;\n  _Bool _Var4;\n  undefined4 *puVar3;\n  undefined4 uVar5;\n  \n  if (*die_filename == '\0') {\n    die_filename = PTR_s_d_of_current_line_0007755c + 0x2bd0;\n  }\n  name = get_next_filename(die_filename,PTR_s_d_of_current_line_0007755c + 0x2bd8);\n  if (*name != '\0') {\n    _Var4 = write_file(name,(FILE *)0x0,true,OVERWRITE,false);\n    if (CONCAT31(extraout_var,_Var4) != 0) {\n      uVar2 = *(undefined4 *)PTR_stderr_00078124;\n      uVar1 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar1,name);\n      goto LAB_0002eef4;\n    }\n    uVar1 = *(undefined4 *)PTR_stderr_00078124;\n    if (*name != '\0') {\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar5 = (*(code *)PTR_strerror_00078028)(*puVar3);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar1,1,uVar2,name,uVar5);\n      goto LAB_0002eef4;\n    }\n  }\n  uVar5 = *(undefined4 *)PTR_stderr_00078124;\n  uVar1 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5);\n  uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5);\n  (*(code *)PTR___fprintf_chk_00077ef8)(uVar5,1,uVar1,uVar2);\nLAB_0002eef4:\n  if (die_stat != (stat *)0x0) {\n    (*(code *)PTR_chmod_00077ed8)(name,die_stat->st_mode);\n    (*(code *)PTR_chown_00077fe0)(name,die_stat->st_uid,die_stat->st_gid);\n  }\n  (*(code *)PTR_free_0007810c)(name);\n  return;\n}" { (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "char *name;" primitive_type (pointer_declarator "*name" * identifier) ;) (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "_Bool _Var4;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (if_statement "if (*die_filename == '\0') {\n    die_filename = PTR_s_d_of_current_line_0007755c + 0x2bd0;\n  }" if (parenthesized_expression "(*die_filename == '\0')" ( (binary_expression "*die_filename == '\0'" (pointer_expression "*die_filename" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    die_filename = PTR_s_d_of_current_line_0007755c + 0x2bd0;\n  }" { (expression_statement "die_filename = PTR_s_d_of_current_line_0007755c + 0x2bd0;" (assignment_expression "die_filename = PTR_s_d_of_current_line_0007755c + 0x2bd0" identifier = (binary_expression "PTR_s_d_of_current_line_0007755c + 0x2bd0" identifier + number_literal)) ;) })) (expression_statement "name = get_next_filename(die_filename,PTR_s_d_of_current_line_0007755c + 0x2bd8);" (assignment_expression "name = get_next_filename(die_filename,PTR_s_d_of_current_line_0007755c + 0x2bd8)" identifier = (call_expression "get_next_filename(die_filename,PTR_s_d_of_current_line_0007755c + 0x2bd8)" identifier (argument_list "(die_filename,PTR_s_d_of_current_line_0007755c + 0x2bd8)" ( identifier , (binary_expression "PTR_s_d_of_current_line_0007755c + 0x2bd8" identifier + number_literal) )))) ;) (if_statement "if (*name != '\0') {\n    _Var4 = write_file(name,(FILE *)0x0,true,OVERWRITE,false);\n    if (CONCAT31(extraout_var,_Var4) != 0) {\n      uVar2 = *(undefined4 *)PTR_stderr_00078124;\n      uVar1 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar1,name);\n      goto LAB_0002eef4;\n    }\n    uVar1 = *(undefined4 *)PTR_stderr_00078124;\n    if (*name != '\0') {\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar5 = (*(code *)PTR_strerror_00078028)(*puVar3);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar1,1,uVar2,name,uVar5);\n      goto LAB_0002eef4;\n    }\n  }" if (parenthesized_expression "(*name != '\0')" ( (binary_expression "*name != '\0'" (pointer_expression "*name" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    _Var4 = write_file(name,(FILE *)0x0,true,OVERWRITE,false);\n    if (CONCAT31(extraout_var,_Var4) != 0) {\n      uVar2 = *(undefined4 *)PTR_stderr_00078124;\n      uVar1 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar1,name);\n      goto LAB_0002eef4;\n    }\n    uVar1 = *(undefined4 *)PTR_stderr_00078124;\n    if (*name != '\0') {\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar5 = (*(code *)PTR_strerror_00078028)(*puVar3);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar1,1,uVar2,name,uVar5);\n      goto LAB_0002eef4;\n    }\n  }" { (expression_statement "_Var4 = write_file(name,(FILE *)0x0,true,OVERWRITE,false);" (assignment_expression "_Var4 = write_file(name,(FILE *)0x0,true,OVERWRITE,false)" identifier = (call_expression "write_file(name,(FILE *)0x0,true,OVERWRITE,false)" identifier (argument_list "(name,(FILE *)0x0,true,OVERWRITE,false)" ( identifier , (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , true , identifier , false )))) ;) (if_statement "if (CONCAT31(extraout_var,_Var4) != 0) {\n      uVar2 = *(undefined4 *)PTR_stderr_00078124;\n      uVar1 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar1,name);\n      goto LAB_0002eef4;\n    }" if (parenthesized_expression "(CONCAT31(extraout_var,_Var4) != 0)" ( (binary_expression "CONCAT31(extraout_var,_Var4) != 0" (call_expression "CONCAT31(extraout_var,_Var4)" identifier (argument_list "(extraout_var,_Var4)" ( identifier , identifier ))) != number_literal) )) (compound_statement "{\n      uVar2 = *(undefined4 *)PTR_stderr_00078124;\n      uVar1 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar1,name);\n      goto LAB_0002eef4;\n    }" { (expression_statement "uVar2 = *(undefined4 *)PTR_stderr_00078124;" (assignment_expression "uVar2 = *(undefined4 *)PTR_stderr_00078124" identifier = (pointer_expression "*(undefined4 *)PTR_stderr_00078124" * (cast_expression "(undefined4 *)PTR_stderr_00078124" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar1 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);" (assignment_expression "uVar1 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000780cc)" ( (pointer_expression "*(code *)PTR_dcgettext_000780cc" * (cast_expression "(code *)PTR_dcgettext_000780cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5)" ( number_literal , (binary_expression "PTR_s_d_of_current_line_0007755c + 0x2be0" identifier + number_literal) , number_literal )))) ;) (expression_statement "(*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar1,name);" (call_expression "(*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar1,name)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00077ef8)" ( (pointer_expression "*(code *)PTR___fprintf_chk_00077ef8" * (cast_expression "(code *)PTR___fprintf_chk_00077ef8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,1,uVar1,name)" ( identifier , number_literal , identifier , identifier ))) ;) (goto_statement "goto LAB_0002eef4;" goto statement_identifier ;) })) (expression_statement "uVar1 = *(undefined4 *)PTR_stderr_00078124;" (assignment_expression "uVar1 = *(undefined4 *)PTR_stderr_00078124" identifier = (pointer_expression "*(undefined4 *)PTR_stderr_00078124" * (cast_expression "(undefined4 *)PTR_stderr_00078124" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (*name != '\0') {\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar5 = (*(code *)PTR_strerror_00078028)(*puVar3);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar1,1,uVar2,name,uVar5);\n      goto LAB_0002eef4;\n    }" if (parenthesized_expression "(*name != '\0')" ( (binary_expression "*name != '\0'" (pointer_expression "*name" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar5 = (*(code *)PTR_strerror_00078028)(*puVar3);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar1,1,uVar2,name,uVar5);\n      goto LAB_0002eef4;\n    }" { (expression_statement "uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000780cc)" ( (pointer_expression "*(code *)PTR_dcgettext_000780cc" * (cast_expression "(code *)PTR_dcgettext_000780cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5)" ( number_literal , (binary_expression "PTR_s_d_of_current_line_0007755c + 0x2bf8" identifier + number_literal) , number_literal )))) ;) (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00077fb0)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00077fb0)()" (parenthesized_expression "(*(code *)PTR___errno_location_00077fb0)" ( (pointer_expression "*(code *)PTR___errno_location_00077fb0" * (cast_expression "(code *)PTR___errno_location_00077fb0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar5 = (*(code *)PTR_strerror_00078028)(*puVar3);" (assignment_expression "uVar5 = (*(code *)PTR_strerror_00078028)(*puVar3)" identifier = (call_expression "(*(code *)PTR_strerror_00078028)(*puVar3)" (parenthesized_expression "(*(code *)PTR_strerror_00078028)" ( (pointer_expression "*(code *)PTR_strerror_00078028" * (cast_expression "(code *)PTR_strerror_00078028" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar3)" ( (pointer_expression "*puVar3" * identifier) )))) ;) (expression_statement "(*(code *)PTR___fprintf_chk_00077ef8)(uVar1,1,uVar2,name,uVar5);" (call_expression "(*(code *)PTR___fprintf_chk_00077ef8)(uVar1,1,uVar2,name,uVar5)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00077ef8)" ( (pointer_expression "*(code *)PTR___fprintf_chk_00077ef8" * (cast_expression "(code *)PTR___fprintf_chk_00077ef8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1,1,uVar2,name,uVar5)" ( identifier , number_literal , identifier , identifier , identifier ))) ;) (goto_statement "goto LAB_0002eef4;" goto statement_identifier ;) })) })) (expression_statement "uVar5 = *(undefined4 *)PTR_stderr_00078124;" (assignment_expression "uVar5 = *(undefined4 *)PTR_stderr_00078124" identifier = (pointer_expression "*(undefined4 *)PTR_stderr_00078124" * (cast_expression "(undefined4 *)PTR_stderr_00078124" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar1 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5);" (assignment_expression "uVar1 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000780cc)" ( (pointer_expression "*(code *)PTR_dcgettext_000780cc" * (cast_expression "(code *)PTR_dcgettext_000780cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5)" ( number_literal , (binary_expression "PTR_s_d_of_current_line_0007755c + 0x2c18" identifier + number_literal) , number_literal )))) ;) (expression_statement "uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000780cc)" ( (pointer_expression "*(code *)PTR_dcgettext_000780cc" * (cast_expression "(code *)PTR_dcgettext_000780cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_d_of_current_line_0007755c + -0x90c,5)" ( number_literal , (binary_expression "PTR_s_d_of_current_line_0007755c + -0x90c" identifier + number_literal) , number_literal )))) ;) (expression_statement "(*(code *)PTR___fprintf_chk_00077ef8)(uVar5,1,uVar1,uVar2);" (call_expression "(*(code *)PTR___fprintf_chk_00077ef8)(uVar5,1,uVar1,uVar2)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00077ef8)" ( (pointer_expression "*(code *)PTR___fprintf_chk_00077ef8" * (cast_expression "(code *)PTR___fprintf_chk_00077ef8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,1,uVar1,uVar2)" ( identifier , number_literal , identifier , identifier ))) ;) (labeled_statement "LAB_0002eef4:\n  if (die_stat != (stat *)0x0) {\n    (*(code *)PTR_chmod_00077ed8)(name,die_stat->st_mode);\n    (*(code *)PTR_chown_00077fe0)(name,die_stat->st_uid,die_stat->st_gid);\n  }" statement_identifier : (if_statement "if (die_stat != (stat *)0x0) {\n    (*(code *)PTR_chmod_00077ed8)(name,die_stat->st_mode);\n    (*(code *)PTR_chown_00077fe0)(name,die_stat->st_uid,die_stat->st_gid);\n  }" if (parenthesized_expression "(die_stat != (stat *)0x0)" ( (binary_expression "die_stat != (stat *)0x0" identifier != (cast_expression "(stat *)0x0" ( (type_descriptor "stat *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_chmod_00077ed8)(name,die_stat->st_mode);\n    (*(code *)PTR_chown_00077fe0)(name,die_stat->st_uid,die_stat->st_gid);\n  }" { (expression_statement "(*(code *)PTR_chmod_00077ed8)(name,die_stat->st_mode);" (call_expression "(*(code *)PTR_chmod_00077ed8)(name,die_stat->st_mode)" (parenthesized_expression "(*(code *)PTR_chmod_00077ed8)" ( (pointer_expression "*(code *)PTR_chmod_00077ed8" * (cast_expression "(code *)PTR_chmod_00077ed8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(name,die_stat->st_mode)" ( identifier , (field_expression "die_stat->st_mode" identifier -> field_identifier) ))) ;) (expression_statement "(*(code *)PTR_chown_00077fe0)(name,die_stat->st_uid,die_stat->st_gid);" (call_expression "(*(code *)PTR_chown_00077fe0)(name,die_stat->st_uid,die_stat->st_gid)" (parenthesized_expression "(*(code *)PTR_chown_00077fe0)" ( (pointer_expression "*(code *)PTR_chown_00077fe0" * (cast_expression "(code *)PTR_chown_00077fe0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(name,die_stat->st_uid,die_stat->st_gid)" ( identifier , (field_expression "die_stat->st_uid" identifier -> field_identifier) , (field_expression "die_stat->st_gid" identifier -> field_identifier) ))) ;) }))) (expression_statement "(*(code *)PTR_free_0007810c)(name);" (call_expression "(*(code *)PTR_free_0007810c)(name)" (parenthesized_expression "(*(code *)PTR_free_0007810c)" ( (pointer_expression "*(code *)PTR_free_0007810c" * (cast_expression "(code *)PTR_free_0007810c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(name)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void emergency_save(char *param_1,int param_2)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  \n  if (*param_1 == '\0') {\n    param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0;\n  }\n  pcVar1 = (char *)get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8);\n  if (*pcVar1 != '\0') {\n    iVar4 = write_file(pcVar1,0,1,0,0);\n    if (iVar4 != 0) {\n      uVar3 = *(undefined4 *)PTR_stderr_00078124;\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);\n      goto LAB_0002eef4;\n    }\n    uVar2 = *(undefined4 *)PTR_stderr_00078124;\n    if (*pcVar1 != '\0') {\n      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);\n      goto LAB_0002eef4;\n    }\n  }\n  uVar6 = *(undefined4 *)PTR_stderr_00078124;\n  uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5);\n  uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5);\n  (*(code *)PTR___fprintf_chk_00077ef8)(uVar6,1,uVar2,uVar3);\nLAB_0002eef4:\n  if (param_2 != 0) {\n    (*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));\n    (*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));\n  }\n  (*(code *)PTR_free_0007810c)(pcVar1);\n  return;\n}\n\n" (function_definition "void emergency_save(char *param_1,int param_2)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  \n  if (*param_1 == '\0') {\n    param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0;\n  }\n  pcVar1 = (char *)get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8);\n  if (*pcVar1 != '\0') {\n    iVar4 = write_file(pcVar1,0,1,0,0);\n    if (iVar4 != 0) {\n      uVar3 = *(undefined4 *)PTR_stderr_00078124;\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);\n      goto LAB_0002eef4;\n    }\n    uVar2 = *(undefined4 *)PTR_stderr_00078124;\n    if (*pcVar1 != '\0') {\n      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);\n      goto LAB_0002eef4;\n    }\n  }\n  uVar6 = *(undefined4 *)PTR_stderr_00078124;\n  uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5);\n  uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5);\n  (*(code *)PTR___fprintf_chk_00077ef8)(uVar6,1,uVar2,uVar3);\nLAB_0002eef4:\n  if (param_2 != 0) {\n    (*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));\n    (*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));\n  }\n  (*(code *)PTR_free_0007810c)(pcVar1);\n  return;\n}" primitive_type (function_declarator "emergency_save(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  \n  if (*param_1 == '\0') {\n    param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0;\n  }\n  pcVar1 = (char *)get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8);\n  if (*pcVar1 != '\0') {\n    iVar4 = write_file(pcVar1,0,1,0,0);\n    if (iVar4 != 0) {\n      uVar3 = *(undefined4 *)PTR_stderr_00078124;\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);\n      goto LAB_0002eef4;\n    }\n    uVar2 = *(undefined4 *)PTR_stderr_00078124;\n    if (*pcVar1 != '\0') {\n      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);\n      goto LAB_0002eef4;\n    }\n  }\n  uVar6 = *(undefined4 *)PTR_stderr_00078124;\n  uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5);\n  uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5);\n  (*(code *)PTR___fprintf_chk_00077ef8)(uVar6,1,uVar2,uVar3);\nLAB_0002eef4:\n  if (param_2 != 0) {\n    (*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));\n    (*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));\n  }\n  (*(code *)PTR_free_0007810c)(pcVar1);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (if_statement "if (*param_1 == '\0') {\n    param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0;\n  }" if (parenthesized_expression "(*param_1 == '\0')" ( (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0;\n  }" { (expression_statement "param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0;" (assignment_expression "param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0" identifier = (binary_expression "PTR_s_d_of_current_line_0007755c + 0x2bd0" identifier + number_literal)) ;) })) (expression_statement "pcVar1 = (char *)get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8);" (assignment_expression "pcVar1 = (char *)get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8)" identifier = (cast_expression "(char *)get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8)" identifier (argument_list "(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8)" ( identifier , (binary_expression "PTR_s_d_of_current_line_0007755c + 0x2bd8" identifier + number_literal) ))))) ;) (if_statement "if (*pcVar1 != '\0') {\n    iVar4 = write_file(pcVar1,0,1,0,0);\n    if (iVar4 != 0) {\n      uVar3 = *(undefined4 *)PTR_stderr_00078124;\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);\n      goto LAB_0002eef4;\n    }\n    uVar2 = *(undefined4 *)PTR_stderr_00078124;\n    if (*pcVar1 != '\0') {\n      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);\n      goto LAB_0002eef4;\n    }\n  }" if (parenthesized_expression "(*pcVar1 != '\0')" ( (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar4 = write_file(pcVar1,0,1,0,0);\n    if (iVar4 != 0) {\n      uVar3 = *(undefined4 *)PTR_stderr_00078124;\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);\n      goto LAB_0002eef4;\n    }\n    uVar2 = *(undefined4 *)PTR_stderr_00078124;\n    if (*pcVar1 != '\0') {\n      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);\n      goto LAB_0002eef4;\n    }\n  }" { (expression_statement "iVar4 = write_file(pcVar1,0,1,0,0);" (assignment_expression "iVar4 = write_file(pcVar1,0,1,0,0)" identifier = (call_expression "write_file(pcVar1,0,1,0,0)" identifier (argument_list "(pcVar1,0,1,0,0)" ( identifier , number_literal , number_literal , number_literal , number_literal )))) ;) (if_statement "if (iVar4 != 0) {\n      uVar3 = *(undefined4 *)PTR_stderr_00078124;\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);\n      goto LAB_0002eef4;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar3 = *(undefined4 *)PTR_stderr_00078124;\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);\n      goto LAB_0002eef4;\n    }" { (expression_statement "uVar3 = *(undefined4 *)PTR_stderr_00078124;" (assignment_expression "uVar3 = *(undefined4 *)PTR_stderr_00078124" identifier = (pointer_expression "*(undefined4 *)PTR_stderr_00078124" * (cast_expression "(undefined4 *)PTR_stderr_00078124" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000780cc)" ( (pointer_expression "*(code *)PTR_dcgettext_000780cc" * (cast_expression "(code *)PTR_dcgettext_000780cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5)" ( number_literal , (binary_expression "PTR_s_d_of_current_line_0007755c + 0x2be0" identifier + number_literal) , number_literal )))) ;) (expression_statement "(*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);" (call_expression "(*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00077ef8)" ( (pointer_expression "*(code *)PTR___fprintf_chk_00077ef8" * (cast_expression "(code *)PTR___fprintf_chk_00077ef8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,1,uVar2,pcVar1)" ( identifier , number_literal , identifier , identifier ))) ;) (goto_statement "goto LAB_0002eef4;" goto statement_identifier ;) })) (expression_statement "uVar2 = *(undefined4 *)PTR_stderr_00078124;" (assignment_expression "uVar2 = *(undefined4 *)PTR_stderr_00078124" identifier = (pointer_expression "*(undefined4 *)PTR_stderr_00078124" * (cast_expression "(undefined4 *)PTR_stderr_00078124" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (*pcVar1 != '\0') {\n      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);\n      goto LAB_0002eef4;\n    }" if (parenthesized_expression "(*pcVar1 != '\0')" ( (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);\n      goto LAB_0002eef4;\n    }" { (expression_statement "uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000780cc)" ( (pointer_expression "*(code *)PTR_dcgettext_000780cc" * (cast_expression "(code *)PTR_dcgettext_000780cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5)" ( number_literal , (binary_expression "PTR_s_d_of_current_line_0007755c + 0x2bf8" identifier + number_literal) , number_literal )))) ;) (expression_statement "puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();" (assignment_expression "puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00077fb0)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00077fb0)()" (parenthesized_expression "(*(code *)PTR___errno_location_00077fb0)" ( (pointer_expression "*(code *)PTR___errno_location_00077fb0" * (cast_expression "(code *)PTR___errno_location_00077fb0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);" (assignment_expression "uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5)" identifier = (call_expression "(*(code *)PTR_strerror_00078028)(*puVar5)" (parenthesized_expression "(*(code *)PTR_strerror_00078028)" ( (pointer_expression "*(code *)PTR_strerror_00078028" * (cast_expression "(code *)PTR_strerror_00078028" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar5)" ( (pointer_expression "*puVar5" * identifier) )))) ;) (expression_statement "(*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);" (call_expression "(*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00077ef8)" ( (pointer_expression "*(code *)PTR___fprintf_chk_00077ef8" * (cast_expression "(code *)PTR___fprintf_chk_00077ef8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,1,uVar3,pcVar1,uVar6)" ( identifier , number_literal , identifier , identifier , identifier ))) ;) (goto_statement "goto LAB_0002eef4;" goto statement_identifier ;) })) })) (expression_statement "uVar6 = *(undefined4 *)PTR_stderr_00078124;" (assignment_expression "uVar6 = *(undefined4 *)PTR_stderr_00078124" identifier = (pointer_expression "*(undefined4 *)PTR_stderr_00078124" * (cast_expression "(undefined4 *)PTR_stderr_00078124" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000780cc)" ( (pointer_expression "*(code *)PTR_dcgettext_000780cc" * (cast_expression "(code *)PTR_dcgettext_000780cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5)" ( number_literal , (binary_expression "PTR_s_d_of_current_line_0007755c + 0x2c18" identifier + number_literal) , number_literal )))) ;) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000780cc)" ( (pointer_expression "*(code *)PTR_dcgettext_000780cc" * (cast_expression "(code *)PTR_dcgettext_000780cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_d_of_current_line_0007755c + -0x90c,5)" ( number_literal , (binary_expression "PTR_s_d_of_current_line_0007755c + -0x90c" identifier + number_literal) , number_literal )))) ;) (expression_statement "(*(code *)PTR___fprintf_chk_00077ef8)(uVar6,1,uVar2,uVar3);" (call_expression "(*(code *)PTR___fprintf_chk_00077ef8)(uVar6,1,uVar2,uVar3)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00077ef8)" ( (pointer_expression "*(code *)PTR___fprintf_chk_00077ef8" * (cast_expression "(code *)PTR___fprintf_chk_00077ef8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar6,1,uVar2,uVar3)" ( identifier , number_literal , identifier , identifier ))) ;) (labeled_statement "LAB_0002eef4:\n  if (param_2 != 0) {\n    (*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));\n    (*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));\n  }" statement_identifier : (if_statement "if (param_2 != 0) {\n    (*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));\n    (*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));\n    (*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));\n  }" { (expression_statement "(*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));" (call_expression "(*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18))" (parenthesized_expression "(*(code *)PTR_chmod_00077ed8)" ( (pointer_expression "*(code *)PTR_chmod_00077ed8" * (cast_expression "(code *)PTR_chmod_00077ed8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1,*(undefined4 *)(param_2 + 0x18))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x18)" * (cast_expression "(undefined4 *)(param_2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));" (call_expression "(*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24))" (parenthesized_expression "(*(code *)PTR_chown_00077fe0)" ( (pointer_expression "*(code *)PTR_chown_00077fe0" * (cast_expression "(code *)PTR_chown_00077fe0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x20)" * (cast_expression "(undefined4 *)(param_2 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x24)" * (cast_expression "(undefined4 *)(param_2 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) )))) ))) ;) }))) (expression_statement "(*(code *)PTR_free_0007810c)(pcVar1);" (call_expression "(*(code *)PTR_free_0007810c)(pcVar1)" (parenthesized_expression "(*(code *)PTR_free_0007810c)" ( (pointer_expression "*(code *)PTR_free_0007810c" * (cast_expression "(code *)PTR_free_0007810c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( 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 = (call_expression IDENT (argument_list ( IDENT , LIT , LIT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , IDENT , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , IDENT , IDENT , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , IDENT , IDENT ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void emergency_save(char *param_1,int param_2)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  \n  if (*param_1 == '\0') {\n    param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0;\n  }\n  pcVar1 = (char *)get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8);\n  if (*pcVar1 != '\0') {\n    iVar4 = write_file(pcVar1,0,1,0,0);\n    if (iVar4 != 0) {\n      uVar3 = *(undefined4 *)PTR_stderr_00078124;\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);\n      goto LAB_0002eef4;\n    }\n    uVar2 = *(undefined4 *)PTR_stderr_00078124;\n    if (*pcVar1 != '\0') {\n      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);\n      goto LAB_0002eef4;\n    }\n  }\n  uVar6 = *(undefined4 *)PTR_stderr_00078124;\n  uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5);\n  uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5);\n  (*(code *)PTR___fprintf_chk_00077ef8)(uVar6,1,uVar2,uVar3);\nLAB_0002eef4:\n  if (param_2 != 0) {\n    (*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));\n    (*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));\n  }\n  (*(code *)PTR_free_0007810c)(pcVar1);\n  return;\n}" (primitive_type "void") (function_declarator "emergency_save(char *param_1,int param_2)" (identifier "emergency_save") (parameter_list "(char *param_1,int param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  \n  if (*param_1 == '\0') {\n    param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0;\n  }\n  pcVar1 = (char *)get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8);\n  if (*pcVar1 != '\0') {\n    iVar4 = write_file(pcVar1,0,1,0,0);\n    if (iVar4 != 0) {\n      uVar3 = *(undefined4 *)PTR_stderr_00078124;\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);\n      goto LAB_0002eef4;\n    }\n    uVar2 = *(undefined4 *)PTR_stderr_00078124;\n    if (*pcVar1 != '\0') {\n      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);\n      goto LAB_0002eef4;\n    }\n  }\n  uVar6 = *(undefined4 *)PTR_stderr_00078124;\n  uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5);\n  uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5);\n  (*(code *)PTR___fprintf_chk_00077ef8)(uVar6,1,uVar2,uVar3);\nLAB_0002eef4:\n  if (param_2 != 0) {\n    (*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));\n    (*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));\n  }\n  (*(code *)PTR_free_0007810c)(pcVar1);\n  return;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (if_statement "if (*param_1 == '\0') {\n    param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0;\n  }" (if "if") (parenthesized_expression "(*param_1 == '\0')" (( "(") (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0;\n  }" ({ "{") (expression_statement "param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0;" (assignment_expression "param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0" (identifier "param_1") (= "=") (binary_expression "PTR_s_d_of_current_line_0007755c + 0x2bd0" (identifier "PTR_s_d_of_current_line_0007755c") (+ "+") (number_literal "0x2bd0"))) (; ";")) (} "}"))) (expression_statement "pcVar1 = (char *)get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8);" (assignment_expression "pcVar1 = (char *)get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8)" (identifier "pcVar1") (= "=") (cast_expression "(char *)get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8)" (identifier "get_next_filename") (argument_list "(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_s_d_of_current_line_0007755c + 0x2bd8" (identifier "PTR_s_d_of_current_line_0007755c") (+ "+") (number_literal "0x2bd8")) () ")"))))) (; ";")) (if_statement "if (*pcVar1 != '\0') {\n    iVar4 = write_file(pcVar1,0,1,0,0);\n    if (iVar4 != 0) {\n      uVar3 = *(undefined4 *)PTR_stderr_00078124;\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);\n      goto LAB_0002eef4;\n    }\n    uVar2 = *(undefined4 *)PTR_stderr_00078124;\n    if (*pcVar1 != '\0') {\n      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);\n      goto LAB_0002eef4;\n    }\n  }" (if "if") (parenthesized_expression "(*pcVar1 != '\0')" (( "(") (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar4 = write_file(pcVar1,0,1,0,0);\n    if (iVar4 != 0) {\n      uVar3 = *(undefined4 *)PTR_stderr_00078124;\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);\n      goto LAB_0002eef4;\n    }\n    uVar2 = *(undefined4 *)PTR_stderr_00078124;\n    if (*pcVar1 != '\0') {\n      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);\n      goto LAB_0002eef4;\n    }\n  }" ({ "{") (expression_statement "iVar4 = write_file(pcVar1,0,1,0,0);" (assignment_expression "iVar4 = write_file(pcVar1,0,1,0,0)" (identifier "iVar4") (= "=") (call_expression "write_file(pcVar1,0,1,0,0)" (identifier "write_file") (argument_list "(pcVar1,0,1,0,0)" (( "(") (identifier "pcVar1") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n      uVar3 = *(undefined4 *)PTR_stderr_00078124;\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);\n      goto LAB_0002eef4;\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = *(undefined4 *)PTR_stderr_00078124;\n      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);\n      goto LAB_0002eef4;\n    }" ({ "{") (expression_statement "uVar3 = *(undefined4 *)PTR_stderr_00078124;" (assignment_expression "uVar3 = *(undefined4 *)PTR_stderr_00078124" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)PTR_stderr_00078124" (* "*") (cast_expression "(undefined4 *)PTR_stderr_00078124" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_00078124")))) (; ";")) (expression_statement "uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000780cc)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_000780cc" (* "*") (cast_expression "(code *)PTR_dcgettext_000780cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_000780cc"))) () ")")) (argument_list "(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5)" (( "(") (number_literal "0") (, ",") (binary_expression "PTR_s_d_of_current_line_0007755c + 0x2be0" (identifier "PTR_s_d_of_current_line_0007755c") (+ "+") (number_literal "0x2be0")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "(*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);" (call_expression "(*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00077ef8)" (( "(") (pointer_expression "*(code *)PTR___fprintf_chk_00077ef8" (* "*") (cast_expression "(code *)PTR___fprintf_chk_00077ef8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fprintf_chk_00077ef8"))) () ")")) (argument_list "(uVar3,1,uVar2,pcVar1)" (( "(") (identifier "uVar3") (, ",") (number_literal "1") (, ",") (identifier "uVar2") (, ",") (identifier "pcVar1") () ")"))) (; ";")) (goto_statement "goto LAB_0002eef4;" (goto "goto") (statement_identifier "LAB_0002eef4") (; ";")) (} "}"))) (expression_statement "uVar2 = *(undefined4 *)PTR_stderr_00078124;" (assignment_expression "uVar2 = *(undefined4 *)PTR_stderr_00078124" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)PTR_stderr_00078124" (* "*") (cast_expression "(undefined4 *)PTR_stderr_00078124" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_00078124")))) (; ";")) (if_statement "if (*pcVar1 != '\0') {\n      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);\n      goto LAB_0002eef4;\n    }" (if "if") (parenthesized_expression "(*pcVar1 != '\0')" (( "(") (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);\n      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();\n      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);\n      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);\n      goto LAB_0002eef4;\n    }" ({ "{") (expression_statement "uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000780cc)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_000780cc" (* "*") (cast_expression "(code *)PTR_dcgettext_000780cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_000780cc"))) () ")")) (argument_list "(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5)" (( "(") (number_literal "0") (, ",") (binary_expression "PTR_s_d_of_current_line_0007755c + 0x2bf8" (identifier "PTR_s_d_of_current_line_0007755c") (+ "+") (number_literal "0x2bf8")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();" (assignment_expression "puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)()" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00077fb0)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00077fb0)()" (parenthesized_expression "(*(code *)PTR___errno_location_00077fb0)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00077fb0" (* "*") (cast_expression "(code *)PTR___errno_location_00077fb0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00077fb0"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);" (assignment_expression "uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5)" (identifier "uVar6") (= "=") (call_expression "(*(code *)PTR_strerror_00078028)(*puVar5)" (parenthesized_expression "(*(code *)PTR_strerror_00078028)" (( "(") (pointer_expression "*(code *)PTR_strerror_00078028" (* "*") (cast_expression "(code *)PTR_strerror_00078028" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strerror_00078028"))) () ")")) (argument_list "(*puVar5)" (( "(") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);" (call_expression "(*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00077ef8)" (( "(") (pointer_expression "*(code *)PTR___fprintf_chk_00077ef8" (* "*") (cast_expression "(code *)PTR___fprintf_chk_00077ef8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fprintf_chk_00077ef8"))) () ")")) (argument_list "(uVar2,1,uVar3,pcVar1,uVar6)" (( "(") (identifier "uVar2") (, ",") (number_literal "1") (, ",") (identifier "uVar3") (, ",") (identifier "pcVar1") (, ",") (identifier "uVar6") () ")"))) (; ";")) (goto_statement "goto LAB_0002eef4;" (goto "goto") (statement_identifier "LAB_0002eef4") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar6 = *(undefined4 *)PTR_stderr_00078124;" (assignment_expression "uVar6 = *(undefined4 *)PTR_stderr_00078124" (identifier "uVar6") (= "=") (pointer_expression "*(undefined4 *)PTR_stderr_00078124" (* "*") (cast_expression "(undefined4 *)PTR_stderr_00078124" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_00078124")))) (; ";")) (expression_statement "uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000780cc)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_000780cc" (* "*") (cast_expression "(code *)PTR_dcgettext_000780cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_000780cc"))) () ")")) (argument_list "(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5)" (( "(") (number_literal "0") (, ",") (binary_expression "PTR_s_d_of_current_line_0007755c + 0x2c18" (identifier "PTR_s_d_of_current_line_0007755c") (+ "+") (number_literal "0x2c18")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000780cc)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_000780cc" (* "*") (cast_expression "(code *)PTR_dcgettext_000780cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_000780cc"))) () ")")) (argument_list "(0,PTR_s_d_of_current_line_0007755c + -0x90c,5)" (( "(") (number_literal "0") (, ",") (binary_expression "PTR_s_d_of_current_line_0007755c + -0x90c" (identifier "PTR_s_d_of_current_line_0007755c") (+ "+") (number_literal "-0x90c")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "(*(code *)PTR___fprintf_chk_00077ef8)(uVar6,1,uVar2,uVar3);" (call_expression "(*(code *)PTR___fprintf_chk_00077ef8)(uVar6,1,uVar2,uVar3)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00077ef8)" (( "(") (pointer_expression "*(code *)PTR___fprintf_chk_00077ef8" (* "*") (cast_expression "(code *)PTR___fprintf_chk_00077ef8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fprintf_chk_00077ef8"))) () ")")) (argument_list "(uVar6,1,uVar2,uVar3)" (( "(") (identifier "uVar6") (, ",") (number_literal "1") (, ",") (identifier "uVar2") (, ",") (identifier "uVar3") () ")"))) (; ";")) (labeled_statement "LAB_0002eef4:\n  if (param_2 != 0) {\n    (*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));\n    (*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));\n  }" (statement_identifier "LAB_0002eef4") (: ":") (if_statement "if (param_2 != 0) {\n    (*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));\n    (*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));\n    (*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));\n  }" ({ "{") (expression_statement "(*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));" (call_expression "(*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18))" (parenthesized_expression "(*(code *)PTR_chmod_00077ed8)" (( "(") (pointer_expression "*(code *)PTR_chmod_00077ed8" (* "*") (cast_expression "(code *)PTR_chmod_00077ed8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_chmod_00077ed8"))) () ")")) (argument_list "(pcVar1,*(undefined4 *)(param_2 + 0x18))" (( "(") (identifier "pcVar1") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));" (call_expression "(*(code *)PTR_chown_00077fe0)\n              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24))" (parenthesized_expression "(*(code *)PTR_chown_00077fe0)" (( "(") (pointer_expression "*(code *)PTR_chown_00077fe0" (* "*") (cast_expression "(code *)PTR_chown_00077fe0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_chown_00077fe0"))) () ")")) (argument_list "(pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24))" (( "(") (identifier "pcVar1") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x24)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x24)" (( "(") (binary_expression "param_2 + 0x24" (identifier "param_2") (+ "+") (number_literal "0x24")) () ")")))) () ")"))) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR_free_0007810c)(pcVar1);" (call_expression "(*(code *)PTR_free_0007810c)(pcVar1)" (parenthesized_expression "(*(code *)PTR_free_0007810c)" (( "(") (pointer_expression "*(code *)PTR_free_0007810c" (* "*") (cast_expression "(code *)PTR_free_0007810c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0007810c"))) () ")")) (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char *die_filename,type_1 *var_5)

{
  type_2 extraout_var;
  char *name;
  type_3 uVar1;
  type_3 uVar2;
  type_4 _Var4;
  type_3 *puVar3;
  type_3 uVar5;
  
  if (*die_filename == '\0') {
    die_filename = var_1 + 0x2bd0;
  }
  name = var_2(die_filename,var_1 + 0x2bd8);
  if (*name != '\0') {
    _Var4 = var_3(name,(type_5 *)0x0,true,OVERWRITE,false);
    if (var_4(extraout_var,_Var4) != 0) {
      uVar2 = *(type_3 *)PTR_stderr_00078124;
      uVar1 = (*(type_6 *)PTR_dcgettext_000780cc)(0,var_1 + 0x2be0,5);
      (*(type_6 *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar1,name);
      goto LAB_0002eef4;
    }
    uVar1 = *(type_3 *)PTR_stderr_00078124;
    if (*name != '\0') {
      uVar2 = (*(type_6 *)PTR_dcgettext_000780cc)(0,var_1 + 0x2bf8,5);
      puVar3 = (type_3 *)(*(type_6 *)PTR___errno_location_00077fb0)();
      uVar5 = (*(type_6 *)PTR_strerror_00078028)(*puVar3);
      (*(type_6 *)PTR___fprintf_chk_00077ef8)(uVar1,1,uVar2,name,uVar5);
      goto LAB_0002eef4;
    }
  }
  uVar5 = *(type_3 *)PTR_stderr_00078124;
  uVar1 = (*(type_6 *)PTR_dcgettext_000780cc)(0,var_1 + 0x2c18,5);
  uVar2 = (*(type_6 *)PTR_dcgettext_000780cc)(0,var_1 + -0x90c,5);
  (*(type_6 *)PTR___fprintf_chk_00077ef8)(uVar5,1,uVar1,uVar2);
LAB_0002eef4:
  if (var_5 != (type_1 *)0x0) {
    (*(type_6 *)PTR_chmod_00077ed8)(name,var_5->st_mode);
    (*(type_6 *)PTR_chown_00077fe0)(name,var_5->st_uid,var_5->st_gid);
  }
  (*(type_6 *)PTR_free_0007810c)(name);
  return;
}


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

void MASKED(char *param_1,int param_2)

{
  char *pcVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 *puVar5;
  undefined4 uVar6;
  
  if (*param_1 == '\0') {
    param_1 = PTR_s_d_of_current_line_0007755c + 0x2bd0;
  }
  pcVar1 = (char *)get_next_filename(param_1,PTR_s_d_of_current_line_0007755c + 0x2bd8);
  if (*pcVar1 != '\0') {
    iVar4 = write_file(pcVar1,0,1,0,0);
    if (iVar4 != 0) {
      uVar3 = *(undefined4 *)PTR_stderr_00078124;
      uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2be0,5);
      (*(code *)PTR___fprintf_chk_00077ef8)(uVar3,1,uVar2,pcVar1);
      goto LAB_0002eef4;
    }
    uVar2 = *(undefined4 *)PTR_stderr_00078124;
    if (*pcVar1 != '\0') {
      uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2bf8,5);
      puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00077fb0)();
      uVar6 = (*(code *)PTR_strerror_00078028)(*puVar5);
      (*(code *)PTR___fprintf_chk_00077ef8)(uVar2,1,uVar3,pcVar1,uVar6);
      goto LAB_0002eef4;
    }
  }
  uVar6 = *(undefined4 *)PTR_stderr_00078124;
  uVar2 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + 0x2c18,5);
  uVar3 = (*(code *)PTR_dcgettext_000780cc)(0,PTR_s_d_of_current_line_0007755c + -0x90c,5);
  (*(code *)PTR___fprintf_chk_00077ef8)(uVar6,1,uVar2,uVar3);
LAB_0002eef4:
  if (param_2 != 0) {
    (*(code *)PTR_chmod_00077ed8)(pcVar1,*(undefined4 *)(param_2 + 0x18));
    (*(code *)PTR_chown_00077fe0)
              (pcVar1,*(undefined4 *)(param_2 + 0x20),*(undefined4 *)(param_2 + 0x24));
  }
  (*(code *)PTR_free_0007810c)(pcVar1);
  return;
}

