
void log_init(char *file,_Bool appendp)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  undefined3 in_register_00000014;
  undefined *puVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  
  if (file == (char *)0x0) {
    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;
    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;
    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;
    uVar2 = (*(code *)PTR_fileno_000b7ec8)();
    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);
    if (iVar1 != 0) {
      PTR_DAT_000b7720[-0x522b] = 1;
    }
  }
  else if ((*file == '-') && (file[1] == '\0')) {
    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;
    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;
    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;
  }
  else {
    if (CONCAT31(in_register_00000014,appendp) == 0) {
      puVar4 = PTR_DAT_000b758c + -0x1d00;
    }
    else {
      puVar4 = PTR_DAT_000b758c + 0x2584;
    }
    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(file,puVar4);
    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;
    if (iVar1 == 0) {
      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;
      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;
      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();
      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);
      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,file,uVar2);
      (*(code *)PTR_exit_000b7ae0)(1);
      return;
    }
    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;
  }
  uVar2 = (*(code *)PTR_isatty_000b7cdc)(0);
  *(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2;
  return;
}



void log_init(char *param_1,int param_2)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  undefined *puVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  
  if (param_1 == (char *)0x0) {
    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;
    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;
    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;
    uVar2 = (*(code *)PTR_fileno_000b7ec8)();
    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);
    if (iVar1 != 0) {
      PTR_DAT_000b7720[-0x522b] = 1;
    }
  }
  else if ((*param_1 == '-') && (param_1[1] == '\0')) {
    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;
    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;
    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;
  }
  else {
    if (param_2 == 0) {
      puVar4 = PTR_DAT_000b758c + -0x1d00;
    }
    else {
      puVar4 = PTR_DAT_000b758c + 0x2584;
    }
    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);
    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;
    if (iVar1 == 0) {
      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;
      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;
      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();
      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);
      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);
      (*(code *)PTR_exit_000b7ae0)(1);
      return;
    }
    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;
  }
  uVar2 = (*(code *)PTR_isatty_000b7cdc)(0);
  *(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2;
  return;
}


lui gp,0x8
addiu gp,gp,-0x5a04
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s2,0x28(sp)
sw s1,0x24(sp)
sw s0,0x20(sp)
sw gp,0x18(sp)
beq a0,zero,0x00044f74
_li v0,0x2d
lb v1,0x0(a0)
beq v1,v0,0x00044ed8
_or s0,a0,zero
bne a1,zero,0x00044efc
_lw a1,-0x7ea4(gp)
lw a1,-0x7ea4(gp)
addiu a1,a1,-0x1d00
or a0,s0,zero
lw t9,-0x795c(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw v1,-0x7d10(gp)
beq v0,zero,0x00044f04
_sw v0,-0x521c(v1)
lw v1,-0x7d10(gp)
sw v0,-0x5214(v1)
or a0,zero,zero
lw t9,-0x7754(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw v1,-0x7d10(gp)
sw v0,-0x5224(v1)
lw ra,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
lb v0,0x1(a0)
bne v0,zero,0x00044e6c
_lw v0,-0x789c(gp)
lw v0,0x0(v0)
lw v1,-0x7d10(gp)
sw v0,-0x5218(v1)
lw v1,-0x7d10(gp)
b 0x00044ea4
_sw v0,-0x5214(v1)
b 0x00044e7c
_addiu a1,a1,0x2584
lw v0,-0x7790(gp)
lw s1,0x0(v0)
lw v0,-0x7f7c(gp)
lw s2,0x0(v0)
lw t9,-0x7578(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw a0,0x0(v0)
lw t9,-0x7fa0(gp)
jalr t9
_nop
lw gp,0x18(sp)
sw v0,0x14(sp)
sw s0,0x10(sp)
or a3,s2,zero
lw a2,-0x7ea4(gp)
addiu a2,a2,-0x6f5c
li a1,0x1
or a0,s1,zero
lw t9,-0x75f8(gp)
jalr t9
_nop
lw gp,0x18(sp)
li a0,0x1
lw t9,-0x7950(gp)
jalr t9
_nop
lw v0,-0x7790(gp)
lw a0,0x0(v0)
lw v0,-0x7d10(gp)
sw a0,-0x5218(v0)
lw v0,-0x7d10(gp)
sw a0,-0x5214(v0)
lw t9,-0x7568(gp)
jalr t9
_nop
lw gp,0x18(sp)
or a0,v0,zero
lw t9,-0x7754(gp)
jalr t9
_nop
lw gp,0x18(sp)
beq v0,zero,0x00044ea8
_or a0,zero,zero
lw v0,-0x7d10(gp)
li v1,0x1
b 0x00044ea8
_sb v1,-0x522b(v0)
(translation_unit "void log_init(char *param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  if (param_1 == (char *)0x0) {\n    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n    uVar2 = (*(code *)PTR_fileno_000b7ec8)();\n    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);\n    if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }\n  }\n  else if ((*param_1 == '-') && (param_1[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }\n  uVar2 = (*(code *)PTR_isatty_000b7cdc)(0);\n  *(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2;\n  return;\n}\n\n" (function_definition "void log_init(char *param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  if (param_1 == (char *)0x0) {\n    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n    uVar2 = (*(code *)PTR_fileno_000b7ec8)();\n    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);\n    if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }\n  }\n  else if ((*param_1 == '-') && (param_1[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }\n  uVar2 = (*(code *)PTR_isatty_000b7cdc)(0);\n  *(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2;\n  return;\n}" primitive_type (function_declarator "log_init(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  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  if (param_1 == (char *)0x0) {\n    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n    uVar2 = (*(code *)PTR_fileno_000b7ec8)();\n    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);\n    if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }\n  }\n  else if ((*param_1 == '-') && (param_1[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }\n  uVar2 = (*(code *)PTR_isatty_000b7cdc)(0);\n  *(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (if_statement "if (param_1 == (char *)0x0) {\n    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n    uVar2 = (*(code *)PTR_fileno_000b7ec8)();\n    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);\n    if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }\n  }\n  else if ((*param_1 == '-') && (param_1[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n    uVar2 = (*(code *)PTR_fileno_000b7ec8)();\n    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);\n    if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }\n  }" { (expression_statement "uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;" (assignment_expression "uVar2 = *(undefined4 *)PTR_stderr_000b7ca0" identifier = (pointer_expression "*(undefined4 *)PTR_stderr_000b7ca0" * (cast_expression "(undefined4 *)PTR_stderr_000b7ca0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2" (pointer_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218)" * (cast_expression "(undefined4 *)(PTR_DAT_000b7720 + -0x5218)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x5218)" ( (binary_expression "PTR_DAT_000b7720 + -0x5218" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2" (pointer_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214)" * (cast_expression "(undefined4 *)(PTR_DAT_000b7720 + -0x5214)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x5214)" ( (binary_expression "PTR_DAT_000b7720 + -0x5214" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = (*(code *)PTR_fileno_000b7ec8)();" (assignment_expression "uVar2 = (*(code *)PTR_fileno_000b7ec8)()" identifier = (call_expression "(*(code *)PTR_fileno_000b7ec8)()" (parenthesized_expression "(*(code *)PTR_fileno_000b7ec8)" ( (pointer_expression "*(code *)PTR_fileno_000b7ec8" * (cast_expression "(code *)PTR_fileno_000b7ec8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);" (assignment_expression "iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2)" identifier = (call_expression "(*(code *)PTR_isatty_000b7cdc)(uVar2)" (parenthesized_expression "(*(code *)PTR_isatty_000b7cdc)" ( (pointer_expression "*(code *)PTR_isatty_000b7cdc" * (cast_expression "(code *)PTR_isatty_000b7cdc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }" { (expression_statement "PTR_DAT_000b7720[-0x522b] = 1;" (assignment_expression "PTR_DAT_000b7720[-0x522b] = 1" (subscript_expression "PTR_DAT_000b7720[-0x522b]" identifier [ number_literal ]) = number_literal) ;) })) }) (else_clause "else if ((*param_1 == '-') && (param_1[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }" else (if_statement "if ((*param_1 == '-') && (param_1[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }" if (parenthesized_expression "((*param_1 == '-') && (param_1[1] == '\0'))" ( (binary_expression "(*param_1 == '-') && (param_1[1] == '\0')" (parenthesized_expression "(*param_1 == '-')" ( (binary_expression "*param_1 == '-'" (pointer_expression "*param_1" * identifier) == (char_literal "'-'" ' character ')) )) && (parenthesized_expression "(param_1[1] == '\0')" ( (binary_expression "param_1[1] == '\0'" (subscript_expression "param_1[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }" { (expression_statement "uVar2 = *(undefined4 *)PTR_stdout_000b7b94;" (assignment_expression "uVar2 = *(undefined4 *)PTR_stdout_000b7b94" identifier = (pointer_expression "*(undefined4 *)PTR_stdout_000b7b94" * (cast_expression "(undefined4 *)PTR_stdout_000b7b94" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2" (pointer_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218)" * (cast_expression "(undefined4 *)(PTR_DAT_000b7720 + -0x5218)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x5218)" ( (binary_expression "PTR_DAT_000b7720 + -0x5218" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2" (pointer_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214)" * (cast_expression "(undefined4 *)(PTR_DAT_000b7720 + -0x5214)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x5214)" ( (binary_expression "PTR_DAT_000b7720 + -0x5214" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }" else (compound_statement "{\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }" { (if_statement "if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }" { (expression_statement "puVar4 = PTR_DAT_000b758c + -0x1d00;" (assignment_expression "puVar4 = PTR_DAT_000b758c + -0x1d00" identifier = (binary_expression "PTR_DAT_000b758c + -0x1d00" identifier + number_literal)) ;) }) (else_clause "else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }" else (compound_statement "{\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }" { (expression_statement "puVar4 = PTR_DAT_000b758c + 0x2584;" (assignment_expression "puVar4 = PTR_DAT_000b758c + 0x2584" identifier = (binary_expression "PTR_DAT_000b758c + 0x2584" identifier + number_literal)) ;) }))) (expression_statement "iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);" (assignment_expression "iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4)" identifier = (call_expression "(*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4)" (parenthesized_expression "(*(code *)PTR_fopen64_000b7ad4)" ( (pointer_expression "*(code *)PTR_fopen64_000b7ad4" * (cast_expression "(code *)PTR_fopen64_000b7ad4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,puVar4)" ( identifier , identifier )))) ;) (expression_statement "*(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;" (assignment_expression "*(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1" (pointer_expression "*(int *)(PTR_DAT_000b7720 + -0x521c)" * (cast_expression "(int *)(PTR_DAT_000b7720 + -0x521c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x521c)" ( (binary_expression "PTR_DAT_000b7720 + -0x521c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }" { (expression_statement "uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;" (assignment_expression "uVar5 = *(undefined4 *)PTR_stderr_000b7ca0" identifier = (pointer_expression "*(undefined4 *)PTR_stderr_000b7ca0" * (cast_expression "(undefined4 *)PTR_stderr_000b7ca0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;" (assignment_expression "uVar6 = *(undefined4 *)PTR_exec_name_000b74b4" identifier = (pointer_expression "*(undefined4 *)PTR_exec_name_000b74b4" * (cast_expression "(undefined4 *)PTR_exec_name_000b74b4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000b7eb8)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000b7eb8)()" (parenthesized_expression "(*(code *)PTR___errno_location_000b7eb8)" ( (pointer_expression "*(code *)PTR___errno_location_000b7eb8" * (cast_expression "(code *)PTR___errno_location_000b7eb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);" (assignment_expression "uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3)" identifier = (call_expression "(*(code *)PTR_rpl_strerror_000b7490)(*puVar3)" (parenthesized_expression "(*(code *)PTR_rpl_strerror_000b7490)" ( (pointer_expression "*(code *)PTR_rpl_strerror_000b7490" * (cast_expression "(code *)PTR_rpl_strerror_000b7490" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar3)" ( (pointer_expression "*puVar3" * identifier) )))) ;) (expression_statement "(*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);" (call_expression "(*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_000b7e38)" ( (pointer_expression "*(code *)PTR___fprintf_chk_000b7e38" * (cast_expression "(code *)PTR___fprintf_chk_000b7e38" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2)" ( identifier , number_literal , (binary_expression "PTR_DAT_000b758c + -0x6f5c" identifier + number_literal) , identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_exit_000b7ae0)(1);" (call_expression "(*(code *)PTR_exit_000b7ae0)(1)" (parenthesized_expression "(*(code *)PTR_exit_000b7ae0)" ( (pointer_expression "*(code *)PTR_exit_000b7ae0" * (cast_expression "(code *)PTR_exit_000b7ae0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1)" ( number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "*(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;" (assignment_expression "*(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1" (pointer_expression "*(int *)(PTR_DAT_000b7720 + -0x5214)" * (cast_expression "(int *)(PTR_DAT_000b7720 + -0x5214)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x5214)" ( (binary_expression "PTR_DAT_000b7720 + -0x5214" identifier + number_literal) )))) = identifier) ;) }))))) (expression_statement "uVar2 = (*(code *)PTR_isatty_000b7cdc)(0);" (assignment_expression "uVar2 = (*(code *)PTR_isatty_000b7cdc)(0)" identifier = (call_expression "(*(code *)PTR_isatty_000b7cdc)(0)" (parenthesized_expression "(*(code *)PTR_isatty_000b7cdc)" ( (pointer_expression "*(code *)PTR_isatty_000b7cdc" * (cast_expression "(code *)PTR_isatty_000b7cdc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0)" ( number_literal )))) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2" (pointer_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5224)" * (cast_expression "(undefined4 *)(PTR_DAT_000b7720 + -0x5224)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x5224)" ( (binary_expression "PTR_DAT_000b7720 + -0x5224" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void log_init(char *file,_Bool appendp)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined3 in_register_00000014;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  if (file == (char *)0x0) {\n    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n    uVar2 = (*(code *)PTR_fileno_000b7ec8)();\n    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);\n    if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }\n  }\n  else if ((*file == '-') && (file[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (CONCAT31(in_register_00000014,appendp) == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(file,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,file,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }\n  uVar2 = (*(code *)PTR_isatty_000b7cdc)(0);\n  *(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2;\n  return;\n}\n\n" (function_definition "void log_init(char *file,_Bool appendp)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined3 in_register_00000014;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  if (file == (char *)0x0) {\n    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n    uVar2 = (*(code *)PTR_fileno_000b7ec8)();\n    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);\n    if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }\n  }\n  else if ((*file == '-') && (file[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (CONCAT31(in_register_00000014,appendp) == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(file,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,file,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }\n  uVar2 = (*(code *)PTR_isatty_000b7cdc)(0);\n  *(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2;\n  return;\n}" primitive_type (function_declarator "log_init(char *file,_Bool appendp)" identifier (parameter_list "(char *file,_Bool appendp)" ( (parameter_declaration "char *file" primitive_type (pointer_declarator "*file" * identifier)) , (parameter_declaration "_Bool appendp" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined3 in_register_00000014;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  if (file == (char *)0x0) {\n    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n    uVar2 = (*(code *)PTR_fileno_000b7ec8)();\n    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);\n    if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }\n  }\n  else if ((*file == '-') && (file[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (CONCAT31(in_register_00000014,appendp) == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(file,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,file,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }\n  uVar2 = (*(code *)PTR_isatty_000b7cdc)(0);\n  *(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined3 in_register_00000014;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (if_statement "if (file == (char *)0x0) {\n    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n    uVar2 = (*(code *)PTR_fileno_000b7ec8)();\n    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);\n    if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }\n  }\n  else if ((*file == '-') && (file[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (CONCAT31(in_register_00000014,appendp) == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(file,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,file,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }" if (parenthesized_expression "(file == (char *)0x0)" ( (binary_expression "file == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n    uVar2 = (*(code *)PTR_fileno_000b7ec8)();\n    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);\n    if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }\n  }" { (expression_statement "uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;" (assignment_expression "uVar2 = *(undefined4 *)PTR_stderr_000b7ca0" identifier = (pointer_expression "*(undefined4 *)PTR_stderr_000b7ca0" * (cast_expression "(undefined4 *)PTR_stderr_000b7ca0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2" (pointer_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218)" * (cast_expression "(undefined4 *)(PTR_DAT_000b7720 + -0x5218)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x5218)" ( (binary_expression "PTR_DAT_000b7720 + -0x5218" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2" (pointer_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214)" * (cast_expression "(undefined4 *)(PTR_DAT_000b7720 + -0x5214)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x5214)" ( (binary_expression "PTR_DAT_000b7720 + -0x5214" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = (*(code *)PTR_fileno_000b7ec8)();" (assignment_expression "uVar2 = (*(code *)PTR_fileno_000b7ec8)()" identifier = (call_expression "(*(code *)PTR_fileno_000b7ec8)()" (parenthesized_expression "(*(code *)PTR_fileno_000b7ec8)" ( (pointer_expression "*(code *)PTR_fileno_000b7ec8" * (cast_expression "(code *)PTR_fileno_000b7ec8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);" (assignment_expression "iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2)" identifier = (call_expression "(*(code *)PTR_isatty_000b7cdc)(uVar2)" (parenthesized_expression "(*(code *)PTR_isatty_000b7cdc)" ( (pointer_expression "*(code *)PTR_isatty_000b7cdc" * (cast_expression "(code *)PTR_isatty_000b7cdc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }" { (expression_statement "PTR_DAT_000b7720[-0x522b] = 1;" (assignment_expression "PTR_DAT_000b7720[-0x522b] = 1" (subscript_expression "PTR_DAT_000b7720[-0x522b]" identifier [ number_literal ]) = number_literal) ;) })) }) (else_clause "else if ((*file == '-') && (file[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (CONCAT31(in_register_00000014,appendp) == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(file,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,file,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }" else (if_statement "if ((*file == '-') && (file[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (CONCAT31(in_register_00000014,appendp) == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(file,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,file,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }" if (parenthesized_expression "((*file == '-') && (file[1] == '\0'))" ( (binary_expression "(*file == '-') && (file[1] == '\0')" (parenthesized_expression "(*file == '-')" ( (binary_expression "*file == '-'" (pointer_expression "*file" * identifier) == (char_literal "'-'" ' character ')) )) && (parenthesized_expression "(file[1] == '\0')" ( (binary_expression "file[1] == '\0'" (subscript_expression "file[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }" { (expression_statement "uVar2 = *(undefined4 *)PTR_stdout_000b7b94;" (assignment_expression "uVar2 = *(undefined4 *)PTR_stdout_000b7b94" identifier = (pointer_expression "*(undefined4 *)PTR_stdout_000b7b94" * (cast_expression "(undefined4 *)PTR_stdout_000b7b94" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2" (pointer_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218)" * (cast_expression "(undefined4 *)(PTR_DAT_000b7720 + -0x5218)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x5218)" ( (binary_expression "PTR_DAT_000b7720 + -0x5218" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2" (pointer_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214)" * (cast_expression "(undefined4 *)(PTR_DAT_000b7720 + -0x5214)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x5214)" ( (binary_expression "PTR_DAT_000b7720 + -0x5214" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    if (CONCAT31(in_register_00000014,appendp) == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(file,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,file,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }" else (compound_statement "{\n    if (CONCAT31(in_register_00000014,appendp) == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(file,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,file,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }" { (if_statement "if (CONCAT31(in_register_00000014,appendp) == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }" if (parenthesized_expression "(CONCAT31(in_register_00000014,appendp) == 0)" ( (binary_expression "CONCAT31(in_register_00000014,appendp) == 0" (call_expression "CONCAT31(in_register_00000014,appendp)" identifier (argument_list "(in_register_00000014,appendp)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }" { (expression_statement "puVar4 = PTR_DAT_000b758c + -0x1d00;" (assignment_expression "puVar4 = PTR_DAT_000b758c + -0x1d00" identifier = (binary_expression "PTR_DAT_000b758c + -0x1d00" identifier + number_literal)) ;) }) (else_clause "else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }" else (compound_statement "{\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }" { (expression_statement "puVar4 = PTR_DAT_000b758c + 0x2584;" (assignment_expression "puVar4 = PTR_DAT_000b758c + 0x2584" identifier = (binary_expression "PTR_DAT_000b758c + 0x2584" identifier + number_literal)) ;) }))) (expression_statement "iVar1 = (*(code *)PTR_fopen64_000b7ad4)(file,puVar4);" (assignment_expression "iVar1 = (*(code *)PTR_fopen64_000b7ad4)(file,puVar4)" identifier = (call_expression "(*(code *)PTR_fopen64_000b7ad4)(file,puVar4)" (parenthesized_expression "(*(code *)PTR_fopen64_000b7ad4)" ( (pointer_expression "*(code *)PTR_fopen64_000b7ad4" * (cast_expression "(code *)PTR_fopen64_000b7ad4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(file,puVar4)" ( identifier , identifier )))) ;) (expression_statement "*(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;" (assignment_expression "*(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1" (pointer_expression "*(int *)(PTR_DAT_000b7720 + -0x521c)" * (cast_expression "(int *)(PTR_DAT_000b7720 + -0x521c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x521c)" ( (binary_expression "PTR_DAT_000b7720 + -0x521c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,file,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,file,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }" { (expression_statement "uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;" (assignment_expression "uVar5 = *(undefined4 *)PTR_stderr_000b7ca0" identifier = (pointer_expression "*(undefined4 *)PTR_stderr_000b7ca0" * (cast_expression "(undefined4 *)PTR_stderr_000b7ca0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;" (assignment_expression "uVar6 = *(undefined4 *)PTR_exec_name_000b74b4" identifier = (pointer_expression "*(undefined4 *)PTR_exec_name_000b74b4" * (cast_expression "(undefined4 *)PTR_exec_name_000b74b4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000b7eb8)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000b7eb8)()" (parenthesized_expression "(*(code *)PTR___errno_location_000b7eb8)" ( (pointer_expression "*(code *)PTR___errno_location_000b7eb8" * (cast_expression "(code *)PTR___errno_location_000b7eb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);" (assignment_expression "uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3)" identifier = (call_expression "(*(code *)PTR_rpl_strerror_000b7490)(*puVar3)" (parenthesized_expression "(*(code *)PTR_rpl_strerror_000b7490)" ( (pointer_expression "*(code *)PTR_rpl_strerror_000b7490" * (cast_expression "(code *)PTR_rpl_strerror_000b7490" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar3)" ( (pointer_expression "*puVar3" * identifier) )))) ;) (expression_statement "(*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,file,uVar2);" (call_expression "(*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,file,uVar2)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_000b7e38)" ( (pointer_expression "*(code *)PTR___fprintf_chk_000b7e38" * (cast_expression "(code *)PTR___fprintf_chk_000b7e38" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,file,uVar2)" ( identifier , number_literal , (binary_expression "PTR_DAT_000b758c + -0x6f5c" identifier + number_literal) , identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_exit_000b7ae0)(1);" (call_expression "(*(code *)PTR_exit_000b7ae0)(1)" (parenthesized_expression "(*(code *)PTR_exit_000b7ae0)" ( (pointer_expression "*(code *)PTR_exit_000b7ae0" * (cast_expression "(code *)PTR_exit_000b7ae0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1)" ( number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "*(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;" (assignment_expression "*(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1" (pointer_expression "*(int *)(PTR_DAT_000b7720 + -0x5214)" * (cast_expression "(int *)(PTR_DAT_000b7720 + -0x5214)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x5214)" ( (binary_expression "PTR_DAT_000b7720 + -0x5214" identifier + number_literal) )))) = identifier) ;) }))))) (expression_statement "uVar2 = (*(code *)PTR_isatty_000b7cdc)(0);" (assignment_expression "uVar2 = (*(code *)PTR_isatty_000b7cdc)(0)" identifier = (call_expression "(*(code *)PTR_isatty_000b7cdc)(0)" (parenthesized_expression "(*(code *)PTR_isatty_000b7cdc)" ( (pointer_expression "*(code *)PTR_isatty_000b7cdc" * (cast_expression "(code *)PTR_isatty_000b7cdc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0)" ( number_literal )))) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2" (pointer_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5224)" * (cast_expression "(undefined4 *)(PTR_DAT_000b7720 + -0x5224)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x5224)" ( (binary_expression "PTR_DAT_000b7720 + -0x5224" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void log_init(char *param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  if (param_1 == (char *)0x0) {\n    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n    uVar2 = (*(code *)PTR_fileno_000b7ec8)();\n    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);\n    if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }\n  }\n  else if ((*param_1 == '-') && (param_1[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }\n  uVar2 = (*(code *)PTR_isatty_000b7cdc)(0);\n  *(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2;\n  return;\n}\n\n" (function_definition "void log_init(char *param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  if (param_1 == (char *)0x0) {\n    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n    uVar2 = (*(code *)PTR_fileno_000b7ec8)();\n    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);\n    if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }\n  }\n  else if ((*param_1 == '-') && (param_1[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }\n  uVar2 = (*(code *)PTR_isatty_000b7cdc)(0);\n  *(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2;\n  return;\n}" primitive_type (function_declarator "log_init(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  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  if (param_1 == (char *)0x0) {\n    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n    uVar2 = (*(code *)PTR_fileno_000b7ec8)();\n    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);\n    if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }\n  }\n  else if ((*param_1 == '-') && (param_1[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }\n  uVar2 = (*(code *)PTR_isatty_000b7cdc)(0);\n  *(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (if_statement "if (param_1 == (char *)0x0) {\n    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n    uVar2 = (*(code *)PTR_fileno_000b7ec8)();\n    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);\n    if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }\n  }\n  else if ((*param_1 == '-') && (param_1[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n    uVar2 = (*(code *)PTR_fileno_000b7ec8)();\n    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);\n    if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }\n  }" { (expression_statement "uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;" (assignment_expression "uVar2 = *(undefined4 *)PTR_stderr_000b7ca0" identifier = (pointer_expression "*(undefined4 *)PTR_stderr_000b7ca0" * (cast_expression "(undefined4 *)PTR_stderr_000b7ca0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2" (pointer_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218)" * (cast_expression "(undefined4 *)(PTR_DAT_000b7720 + -0x5218)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x5218)" ( (binary_expression "PTR_DAT_000b7720 + -0x5218" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2" (pointer_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214)" * (cast_expression "(undefined4 *)(PTR_DAT_000b7720 + -0x5214)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x5214)" ( (binary_expression "PTR_DAT_000b7720 + -0x5214" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = (*(code *)PTR_fileno_000b7ec8)();" (assignment_expression "uVar2 = (*(code *)PTR_fileno_000b7ec8)()" identifier = (call_expression "(*(code *)PTR_fileno_000b7ec8)()" (parenthesized_expression "(*(code *)PTR_fileno_000b7ec8)" ( (pointer_expression "*(code *)PTR_fileno_000b7ec8" * (cast_expression "(code *)PTR_fileno_000b7ec8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);" (assignment_expression "iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2)" identifier = (call_expression "(*(code *)PTR_isatty_000b7cdc)(uVar2)" (parenthesized_expression "(*(code *)PTR_isatty_000b7cdc)" ( (pointer_expression "*(code *)PTR_isatty_000b7cdc" * (cast_expression "(code *)PTR_isatty_000b7cdc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }" { (expression_statement "PTR_DAT_000b7720[-0x522b] = 1;" (assignment_expression "PTR_DAT_000b7720[-0x522b] = 1" (subscript_expression "PTR_DAT_000b7720[-0x522b]" identifier [ number_literal ]) = number_literal) ;) })) }) (else_clause "else if ((*param_1 == '-') && (param_1[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }" else (if_statement "if ((*param_1 == '-') && (param_1[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }" if (parenthesized_expression "((*param_1 == '-') && (param_1[1] == '\0'))" ( (binary_expression "(*param_1 == '-') && (param_1[1] == '\0')" (parenthesized_expression "(*param_1 == '-')" ( (binary_expression "*param_1 == '-'" (pointer_expression "*param_1" * identifier) == (char_literal "'-'" ' character ')) )) && (parenthesized_expression "(param_1[1] == '\0')" ( (binary_expression "param_1[1] == '\0'" (subscript_expression "param_1[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }" { (expression_statement "uVar2 = *(undefined4 *)PTR_stdout_000b7b94;" (assignment_expression "uVar2 = *(undefined4 *)PTR_stdout_000b7b94" identifier = (pointer_expression "*(undefined4 *)PTR_stdout_000b7b94" * (cast_expression "(undefined4 *)PTR_stdout_000b7b94" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2" (pointer_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218)" * (cast_expression "(undefined4 *)(PTR_DAT_000b7720 + -0x5218)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x5218)" ( (binary_expression "PTR_DAT_000b7720 + -0x5218" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2" (pointer_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214)" * (cast_expression "(undefined4 *)(PTR_DAT_000b7720 + -0x5214)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x5214)" ( (binary_expression "PTR_DAT_000b7720 + -0x5214" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }" else (compound_statement "{\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }" { (if_statement "if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }" { (expression_statement "puVar4 = PTR_DAT_000b758c + -0x1d00;" (assignment_expression "puVar4 = PTR_DAT_000b758c + -0x1d00" identifier = (binary_expression "PTR_DAT_000b758c + -0x1d00" identifier + number_literal)) ;) }) (else_clause "else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }" else (compound_statement "{\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }" { (expression_statement "puVar4 = PTR_DAT_000b758c + 0x2584;" (assignment_expression "puVar4 = PTR_DAT_000b758c + 0x2584" identifier = (binary_expression "PTR_DAT_000b758c + 0x2584" identifier + number_literal)) ;) }))) (expression_statement "iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);" (assignment_expression "iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4)" identifier = (call_expression "(*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4)" (parenthesized_expression "(*(code *)PTR_fopen64_000b7ad4)" ( (pointer_expression "*(code *)PTR_fopen64_000b7ad4" * (cast_expression "(code *)PTR_fopen64_000b7ad4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,puVar4)" ( identifier , identifier )))) ;) (expression_statement "*(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;" (assignment_expression "*(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1" (pointer_expression "*(int *)(PTR_DAT_000b7720 + -0x521c)" * (cast_expression "(int *)(PTR_DAT_000b7720 + -0x521c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x521c)" ( (binary_expression "PTR_DAT_000b7720 + -0x521c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }" { (expression_statement "uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;" (assignment_expression "uVar5 = *(undefined4 *)PTR_stderr_000b7ca0" identifier = (pointer_expression "*(undefined4 *)PTR_stderr_000b7ca0" * (cast_expression "(undefined4 *)PTR_stderr_000b7ca0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;" (assignment_expression "uVar6 = *(undefined4 *)PTR_exec_name_000b74b4" identifier = (pointer_expression "*(undefined4 *)PTR_exec_name_000b74b4" * (cast_expression "(undefined4 *)PTR_exec_name_000b74b4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000b7eb8)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000b7eb8)()" (parenthesized_expression "(*(code *)PTR___errno_location_000b7eb8)" ( (pointer_expression "*(code *)PTR___errno_location_000b7eb8" * (cast_expression "(code *)PTR___errno_location_000b7eb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);" (assignment_expression "uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3)" identifier = (call_expression "(*(code *)PTR_rpl_strerror_000b7490)(*puVar3)" (parenthesized_expression "(*(code *)PTR_rpl_strerror_000b7490)" ( (pointer_expression "*(code *)PTR_rpl_strerror_000b7490" * (cast_expression "(code *)PTR_rpl_strerror_000b7490" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar3)" ( (pointer_expression "*puVar3" * identifier) )))) ;) (expression_statement "(*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);" (call_expression "(*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_000b7e38)" ( (pointer_expression "*(code *)PTR___fprintf_chk_000b7e38" * (cast_expression "(code *)PTR___fprintf_chk_000b7e38" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2)" ( identifier , number_literal , (binary_expression "PTR_DAT_000b758c + -0x6f5c" identifier + number_literal) , identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_exit_000b7ae0)(1);" (call_expression "(*(code *)PTR_exit_000b7ae0)(1)" (parenthesized_expression "(*(code *)PTR_exit_000b7ae0)" ( (pointer_expression "*(code *)PTR_exit_000b7ae0" * (cast_expression "(code *)PTR_exit_000b7ae0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1)" ( number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "*(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;" (assignment_expression "*(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1" (pointer_expression "*(int *)(PTR_DAT_000b7720 + -0x5214)" * (cast_expression "(int *)(PTR_DAT_000b7720 + -0x5214)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x5214)" ( (binary_expression "PTR_DAT_000b7720 + -0x5214" identifier + number_literal) )))) = identifier) ;) }))))) (expression_statement "uVar2 = (*(code *)PTR_isatty_000b7cdc)(0);" (assignment_expression "uVar2 = (*(code *)PTR_isatty_000b7cdc)(0)" identifier = (call_expression "(*(code *)PTR_isatty_000b7cdc)(0)" (parenthesized_expression "(*(code *)PTR_isatty_000b7cdc)" ( (pointer_expression "*(code *)PTR_isatty_000b7cdc" * (cast_expression "(code *)PTR_isatty_000b7cdc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0)" ( number_literal )))) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2" (pointer_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5224)" * (cast_expression "(undefined4 *)(PTR_DAT_000b7720 + -0x5224)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7720 + -0x5224)" ( (binary_expression "PTR_DAT_000b7720 + -0x5224" identifier + number_literal) )))) = 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (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 ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression 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 , (binary_expression IDENT + LIT) , IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void log_init(char *param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  if (param_1 == (char *)0x0) {\n    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n    uVar2 = (*(code *)PTR_fileno_000b7ec8)();\n    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);\n    if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }\n  }\n  else if ((*param_1 == '-') && (param_1[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }\n  uVar2 = (*(code *)PTR_isatty_000b7cdc)(0);\n  *(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2;\n  return;\n}" (primitive_type "void") (function_declarator "log_init(char *param_1,int param_2)" (identifier "log_init") (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  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  if (param_1 == (char *)0x0) {\n    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n    uVar2 = (*(code *)PTR_fileno_000b7ec8)();\n    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);\n    if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }\n  }\n  else if ((*param_1 == '-') && (param_1[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }\n  uVar2 = (*(code *)PTR_isatty_000b7cdc)(0);\n  *(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (if_statement "if (param_1 == (char *)0x0) {\n    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n    uVar2 = (*(code *)PTR_fileno_000b7ec8)();\n    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);\n    if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }\n  }\n  else if ((*param_1 == '-') && (param_1[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }" (if "if") (parenthesized_expression "(param_1 == (char *)0x0)" (( "(") (binary_expression "param_1 == (char *)0x0" (identifier "param_1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n    uVar2 = (*(code *)PTR_fileno_000b7ec8)();\n    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);\n    if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }\n  }" ({ "{") (expression_statement "uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;" (assignment_expression "uVar2 = *(undefined4 *)PTR_stderr_000b7ca0" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)PTR_stderr_000b7ca0" (* "*") (cast_expression "(undefined4 *)PTR_stderr_000b7ca0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_000b7ca0")))) (; ";")) (expression_statement "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2" (pointer_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000b7720 + -0x5218)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b7720 + -0x5218)" (( "(") (binary_expression "PTR_DAT_000b7720 + -0x5218" (identifier "PTR_DAT_000b7720") (+ "+") (number_literal "-0x5218")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2" (pointer_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000b7720 + -0x5214)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b7720 + -0x5214)" (( "(") (binary_expression "PTR_DAT_000b7720 + -0x5214" (identifier "PTR_DAT_000b7720") (+ "+") (number_literal "-0x5214")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar2 = (*(code *)PTR_fileno_000b7ec8)();" (assignment_expression "uVar2 = (*(code *)PTR_fileno_000b7ec8)()" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_fileno_000b7ec8)()" (parenthesized_expression "(*(code *)PTR_fileno_000b7ec8)" (( "(") (pointer_expression "*(code *)PTR_fileno_000b7ec8" (* "*") (cast_expression "(code *)PTR_fileno_000b7ec8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fileno_000b7ec8"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);" (assignment_expression "iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_isatty_000b7cdc)(uVar2)" (parenthesized_expression "(*(code *)PTR_isatty_000b7cdc)" (( "(") (pointer_expression "*(code *)PTR_isatty_000b7cdc" (* "*") (cast_expression "(code *)PTR_isatty_000b7cdc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_isatty_000b7cdc"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      PTR_DAT_000b7720[-0x522b] = 1;\n    }" ({ "{") (expression_statement "PTR_DAT_000b7720[-0x522b] = 1;" (assignment_expression "PTR_DAT_000b7720[-0x522b] = 1" (subscript_expression "PTR_DAT_000b7720[-0x522b]" (identifier "PTR_DAT_000b7720") ([ "[") (number_literal "-0x522b") (] "]")) (= "=") (number_literal "1")) (; ";")) (} "}"))) (} "}")) (else_clause "else if ((*param_1 == '-') && (param_1[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }" (else "else") (if_statement "if ((*param_1 == '-') && (param_1[1] == '\0')) {\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }\n  else {\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }" (if "if") (parenthesized_expression "((*param_1 == '-') && (param_1[1] == '\0'))" (( "(") (binary_expression "(*param_1 == '-') && (param_1[1] == '\0')" (parenthesized_expression "(*param_1 == '-')" (( "(") (binary_expression "*param_1 == '-'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'-'" (' "'") (character "-") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(param_1[1] == '\0')" (( "(") (binary_expression "param_1[1] == '\0'" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;\n    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;\n  }" ({ "{") (expression_statement "uVar2 = *(undefined4 *)PTR_stdout_000b7b94;" (assignment_expression "uVar2 = *(undefined4 *)PTR_stdout_000b7b94" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)PTR_stdout_000b7b94" (* "*") (cast_expression "(undefined4 *)PTR_stdout_000b7b94" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdout_000b7b94")))) (; ";")) (expression_statement "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2" (pointer_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5218)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000b7720 + -0x5218)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b7720 + -0x5218)" (( "(") (binary_expression "PTR_DAT_000b7720 + -0x5218" (identifier "PTR_DAT_000b7720") (+ "+") (number_literal "-0x5218")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2" (pointer_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5214)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000b7720 + -0x5214)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b7720 + -0x5214)" (( "(") (binary_expression "PTR_DAT_000b7720 + -0x5214" (identifier "PTR_DAT_000b7720") (+ "+") (number_literal "-0x5214")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (} "}")) (else_clause "else {\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }" (else "else") (compound_statement "{\n    if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }\n    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);\n    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;\n    if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }\n    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;\n  }" ({ "{") (if_statement "if (param_2 == 0) {\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }\n    else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      puVar4 = PTR_DAT_000b758c + -0x1d00;\n    }" ({ "{") (expression_statement "puVar4 = PTR_DAT_000b758c + -0x1d00;" (assignment_expression "puVar4 = PTR_DAT_000b758c + -0x1d00" (identifier "puVar4") (= "=") (binary_expression "PTR_DAT_000b758c + -0x1d00" (identifier "PTR_DAT_000b758c") (+ "+") (number_literal "-0x1d00"))) (; ";")) (} "}")) (else_clause "else {\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }" (else "else") (compound_statement "{\n      puVar4 = PTR_DAT_000b758c + 0x2584;\n    }" ({ "{") (expression_statement "puVar4 = PTR_DAT_000b758c + 0x2584;" (assignment_expression "puVar4 = PTR_DAT_000b758c + 0x2584" (identifier "puVar4") (= "=") (binary_expression "PTR_DAT_000b758c + 0x2584" (identifier "PTR_DAT_000b758c") (+ "+") (number_literal "0x2584"))) (; ";")) (} "}")))) (expression_statement "iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);" (assignment_expression "iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4)" (parenthesized_expression "(*(code *)PTR_fopen64_000b7ad4)" (( "(") (pointer_expression "*(code *)PTR_fopen64_000b7ad4" (* "*") (cast_expression "(code *)PTR_fopen64_000b7ad4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fopen64_000b7ad4"))) () ")")) (argument_list "(param_1,puVar4)" (( "(") (identifier "param_1") (, ",") (identifier "puVar4") () ")")))) (; ";")) (expression_statement "*(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;" (assignment_expression "*(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1" (pointer_expression "*(int *)(PTR_DAT_000b7720 + -0x521c)" (* "*") (cast_expression "(int *)(PTR_DAT_000b7720 + -0x521c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b7720 + -0x521c)" (( "(") (binary_expression "PTR_DAT_000b7720 + -0x521c" (identifier "PTR_DAT_000b7720") (+ "+") (number_literal "-0x521c")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 == 0) {\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;\n      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();\n      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);\n      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);\n      (*(code *)PTR_exit_000b7ae0)(1);\n      return;\n    }" ({ "{") (expression_statement "uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;" (assignment_expression "uVar5 = *(undefined4 *)PTR_stderr_000b7ca0" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)PTR_stderr_000b7ca0" (* "*") (cast_expression "(undefined4 *)PTR_stderr_000b7ca0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_000b7ca0")))) (; ";")) (expression_statement "uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;" (assignment_expression "uVar6 = *(undefined4 *)PTR_exec_name_000b74b4" (identifier "uVar6") (= "=") (pointer_expression "*(undefined4 *)PTR_exec_name_000b74b4" (* "*") (cast_expression "(undefined4 *)PTR_exec_name_000b74b4" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_exec_name_000b74b4")))) (; ";")) (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)()" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000b7eb8)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_000b7eb8)()" (parenthesized_expression "(*(code *)PTR___errno_location_000b7eb8)" (( "(") (pointer_expression "*(code *)PTR___errno_location_000b7eb8" (* "*") (cast_expression "(code *)PTR___errno_location_000b7eb8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_000b7eb8"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);" (assignment_expression "uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_rpl_strerror_000b7490)(*puVar3)" (parenthesized_expression "(*(code *)PTR_rpl_strerror_000b7490)" (( "(") (pointer_expression "*(code *)PTR_rpl_strerror_000b7490" (* "*") (cast_expression "(code *)PTR_rpl_strerror_000b7490" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rpl_strerror_000b7490"))) () ")")) (argument_list "(*puVar3)" (( "(") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);" (call_expression "(*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_000b7e38)" (( "(") (pointer_expression "*(code *)PTR___fprintf_chk_000b7e38" (* "*") (cast_expression "(code *)PTR___fprintf_chk_000b7e38" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fprintf_chk_000b7e38"))) () ")")) (argument_list "(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2)" (( "(") (identifier "uVar5") (, ",") (number_literal "1") (, ",") (binary_expression "PTR_DAT_000b758c + -0x6f5c" (identifier "PTR_DAT_000b758c") (+ "+") (number_literal "-0x6f5c")) (, ",") (identifier "uVar6") (, ",") (identifier "param_1") (, ",") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_exit_000b7ae0)(1);" (call_expression "(*(code *)PTR_exit_000b7ae0)(1)" (parenthesized_expression "(*(code *)PTR_exit_000b7ae0)" (( "(") (pointer_expression "*(code *)PTR_exit_000b7ae0" (* "*") (cast_expression "(code *)PTR_exit_000b7ae0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_exit_000b7ae0"))) () ")")) (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;" (assignment_expression "*(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1" (pointer_expression "*(int *)(PTR_DAT_000b7720 + -0x5214)" (* "*") (cast_expression "(int *)(PTR_DAT_000b7720 + -0x5214)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b7720 + -0x5214)" (( "(") (binary_expression "PTR_DAT_000b7720 + -0x5214" (identifier "PTR_DAT_000b7720") (+ "+") (number_literal "-0x5214")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (} "}")))))) (expression_statement "uVar2 = (*(code *)PTR_isatty_000b7cdc)(0);" (assignment_expression "uVar2 = (*(code *)PTR_isatty_000b7cdc)(0)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_isatty_000b7cdc)(0)" (parenthesized_expression "(*(code *)PTR_isatty_000b7cdc)" (( "(") (pointer_expression "*(code *)PTR_isatty_000b7cdc" (* "*") (cast_expression "(code *)PTR_isatty_000b7cdc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_isatty_000b7cdc"))) () ")")) (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2" (pointer_expression "*(undefined4 *)(PTR_DAT_000b7720 + -0x5224)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000b7720 + -0x5224)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b7720 + -0x5224)" (( "(") (binary_expression "PTR_DAT_000b7720 + -0x5224" (identifier "PTR_DAT_000b7720") (+ "+") (number_literal "-0x5224")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return;" (return "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: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (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)))) (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 (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (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 (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (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) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier) (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 (number_literal)))) (return_statement))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement))))

void MASKED(char *param_1,int param_2)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  undefined *puVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  
  if (param_1 == (char *)0x0) {
    uVar2 = *(undefined4 *)PTR_stderr_000b7ca0;
    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;
    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;
    uVar2 = (*(code *)PTR_fileno_000b7ec8)();
    iVar1 = (*(code *)PTR_isatty_000b7cdc)(uVar2);
    if (iVar1 != 0) {
      PTR_DAT_000b7720[-0x522b] = 1;
    }
  }
  else if ((*param_1 == '-') && (param_1[1] == '\0')) {
    uVar2 = *(undefined4 *)PTR_stdout_000b7b94;
    *(undefined4 *)(PTR_DAT_000b7720 + -0x5218) = uVar2;
    *(undefined4 *)(PTR_DAT_000b7720 + -0x5214) = uVar2;
  }
  else {
    if (param_2 == 0) {
      puVar4 = PTR_DAT_000b758c + -0x1d00;
    }
    else {
      puVar4 = PTR_DAT_000b758c + 0x2584;
    }
    iVar1 = (*(code *)PTR_fopen64_000b7ad4)(param_1,puVar4);
    *(int *)(PTR_DAT_000b7720 + -0x521c) = iVar1;
    if (iVar1 == 0) {
      uVar5 = *(undefined4 *)PTR_stderr_000b7ca0;
      uVar6 = *(undefined4 *)PTR_exec_name_000b74b4;
      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_000b7eb8)();
      uVar2 = (*(code *)PTR_rpl_strerror_000b7490)(*puVar3);
      (*(code *)PTR___fprintf_chk_000b7e38)(uVar5,1,PTR_DAT_000b758c + -0x6f5c,uVar6,param_1,uVar2);
      (*(code *)PTR_exit_000b7ae0)(1);
      return;
    }
    *(int *)(PTR_DAT_000b7720 + -0x5214) = iVar1;
  }
  uVar2 = (*(code *)PTR_isatty_000b7cdc)(0);
  *(undefined4 *)(PTR_DAT_000b7720 + -0x5224) = uVar2;
  return;
}

