
/* WARNING: Unknown calling convention */

char * wgetrc_env_file_name(void)

{
  undefined *puVar1;
  undefined3 extraout_var;
  int iVar2;
  char *pcVar3;
  _Bool _Var6;
  undefined4 uVar4;
  undefined4 uVar5;
  undefined4 uVar7;
  undefined4 uVar8;
  file_stats_t flstat;
  
  puVar1 = PTR___stack_chk_guard_000afc3c;
  iVar2 = *(int *)PTR___stack_chk_guard_000afc3c;
  pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8);
  if (pcVar3 != (char *)0x0) {
    if (*pcVar3 == '\0') {
      pcVar3 = (char *)0x0;
    }
    else {
      _Var6 = file_exists_p(pcVar3,&flstat);
      if (CONCAT31(extraout_var,_Var6) == 0) goto LAB_0004197c;
      pcVar3 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar3);
    }
  }
  if (iVar2 == *(int *)puVar1) {
    return pcVar3;
  }
  (*(code *)PTR___stack_chk_fail_000afbd4)();
LAB_0004197c:
  uVar7 = *(undefined4 *)PTR_stderr_000afc74;
  uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5);
  uVar8 = *(undefined4 *)PTR_exec_name_000af47c;
  uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(flstat.access_err);
  (*(code *)PTR___fprintf_chk_000afe0c)(uVar7,1,uVar4,uVar8,pcVar3,uVar5);
  pcVar3 = (char *)(*(code *)PTR_exit_000afab8)(1);
  return pcVar3;
}



char * wgetrc_env_file_name(void)

{
  undefined *puVar1;
  char *pcVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  undefined4 local_38 [7];
  int local_1c;
  
  puVar1 = PTR___stack_chk_guard_000afc3c;
  local_1c = *(int *)PTR___stack_chk_guard_000afc3c;
  pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8);
  if (pcVar2 != (char *)0x0) {
    if (*pcVar2 == '\0') {
      pcVar2 = (char *)0x0;
    }
    else {
      iVar3 = file_exists_p(pcVar2,local_38);
      if (iVar3 == 0) goto LAB_0004197c;
      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);
    }
  }
  if (local_1c == *(int *)puVar1) {
    return pcVar2;
  }
  (*(code *)PTR___stack_chk_fail_000afbd4)();
LAB_0004197c:
  uVar6 = *(undefined4 *)PTR_stderr_000afc74;
  uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5);
  uVar7 = *(undefined4 *)PTR_exec_name_000af47c;
  uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(local_38[0]);
  (*(code *)PTR___fprintf_chk_000afe0c)(uVar6,1,uVar4,uVar7,pcVar2,uVar5);
  pcVar2 = (char *)(*(code *)PTR_exit_000afab8)(1);
  return pcVar2;
}


lui gp,0x7
addiu gp,gp,0x5b7c
addu gp,gp,t9
addiu sp,sp,-0x58
lw a0,-0x7fc4(gp)
lw t9,-0x7670(gp)
sw s1,0x48(sp)
addiu a0,a0,0x12d8
lw s1,-0x77f4(gp)
sw gp,0x18(sp)
sw s0,0x44(sp)
sw ra,0x54(sp)
sw s3,0x50(sp)
sw s2,0x4c(sp)
lw v0,0x0(s1)
sw v0,0x3c(sp)
jalr t9
_nop
lw gp,0x18(sp)
beq v0,zero,0x0004193c
_or s0,v0,zero
lb v0,0x0(v0)
beq v0,zero,0x00041968
_lw t9,-0x7f4c(gp)
addiu a1,sp,0x20
bal 0x00055f74
_or a0,s0,zero
beq v0,zero,0x0004197c
_lw gp,0x18(sp)
lw t9,-0x7fa4(gp)
jalr t9
_or a0,s0,zero
lw gp,0x18(sp)
or s0,v0,zero
lw a0,0x3c(sp)
or v0,s0,zero
lw v1,0x0(s1)
bne a0,v1,0x00041970
_lw ra,0x54(sp)
lw s3,0x50(sp)
lw s2,0x4c(sp)
lw s1,0x48(sp)
lw s0,0x44(sp)
jr ra
_addiu sp,sp,0x58
b 0x0004193c
_or s0,zero,zero
lw t9,-0x785c(gp)
jalr t9
_nop
lw a1,-0x7fc4(gp)
li a2,0x5
lw v0,-0x77bc(gp)
or a0,zero,zero
lw t9,-0x773c(gp)
addiu a1,a1,0x12e0
jalr t9
_lw s2,0x0(v0)
lw gp,0x18(sp)
or s1,v0,zero
lw a0,0x20(sp)
lw v0,-0x7fb4(gp)
lw t9,-0x7f80(gp)
jalr t9
_lw s3,0x0(v0)
li a1,0x1
lw gp,0x18(sp)
or a0,s2,zero
sw v0,0x14(sp)
or a3,s3,zero
sw s0,0x10(sp)
lw t9,-0x7624(gp)
jalr t9
_or a2,s1,zero
lw gp,0x18(sp)
lw t9,-0x7978(gp)
jalr t9
_li a0,0x1
(translation_unit "char * wgetrc_env_file_name(void)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 local_38 [7];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000afc3c;\n  local_1c = *(int *)PTR___stack_chk_guard_000afc3c;\n  pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8);\n  if (pcVar2 != (char *)0x0) {\n    if (*pcVar2 == '\0') {\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }\n  }\n  if (local_1c == *(int *)puVar1) {\n    return pcVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000afbd4)();\nLAB_0004197c:\n  uVar6 = *(undefined4 *)PTR_stderr_000afc74;\n  uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5);\n  uVar7 = *(undefined4 *)PTR_exec_name_000af47c;\n  uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(local_38[0]);\n  (*(code *)PTR___fprintf_chk_000afe0c)(uVar6,1,uVar4,uVar7,pcVar2,uVar5);\n  pcVar2 = (char *)(*(code *)PTR_exit_000afab8)(1);\n  return pcVar2;\n}\n\n" (function_definition "char * wgetrc_env_file_name(void)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 local_38 [7];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000afc3c;\n  local_1c = *(int *)PTR___stack_chk_guard_000afc3c;\n  pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8);\n  if (pcVar2 != (char *)0x0) {\n    if (*pcVar2 == '\0') {\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }\n  }\n  if (local_1c == *(int *)puVar1) {\n    return pcVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000afbd4)();\nLAB_0004197c:\n  uVar6 = *(undefined4 *)PTR_stderr_000afc74;\n  uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5);\n  uVar7 = *(undefined4 *)PTR_exec_name_000af47c;\n  uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(local_38[0]);\n  (*(code *)PTR___fprintf_chk_000afe0c)(uVar6,1,uVar4,uVar7,pcVar2,uVar5);\n  pcVar2 = (char *)(*(code *)PTR_exit_000afab8)(1);\n  return pcVar2;\n}" primitive_type (pointer_declarator "* wgetrc_env_file_name(void)" * (function_declarator "wgetrc_env_file_name(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 local_38 [7];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000afc3c;\n  local_1c = *(int *)PTR___stack_chk_guard_000afc3c;\n  pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8);\n  if (pcVar2 != (char *)0x0) {\n    if (*pcVar2 == '\0') {\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }\n  }\n  if (local_1c == *(int *)puVar1) {\n    return pcVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000afbd4)();\nLAB_0004197c:\n  uVar6 = *(undefined4 *)PTR_stderr_000afc74;\n  uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5);\n  uVar7 = *(undefined4 *)PTR_exec_name_000af47c;\n  uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(local_38[0]);\n  (*(code *)PTR___fprintf_chk_000afe0c)(uVar6,1,uVar4,uVar7,pcVar2,uVar5);\n  pcVar2 = (char *)(*(code *)PTR_exit_000afab8)(1);\n  return pcVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 local_38 [7];" type_identifier (array_declarator "local_38 [7]" identifier [ number_literal ]) ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000afc3c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000afc3c" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000afc3c;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_000afc3c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000afc3c" * (cast_expression "(int *)PTR___stack_chk_guard_000afc3c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8)" (parenthesized_expression "(*(code *)PTR_getenv_000afdc0)" ( (pointer_expression "*(code *)PTR_getenv_000afdc0" * (cast_expression "(code *)PTR_getenv_000afdc0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_hallenge__000af46c + 0x12d8)" ( (binary_expression "PTR_s_hallenge__000af46c + 0x12d8" identifier + number_literal) ))))) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n    if (*pcVar2 == '\0') {\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }\n  }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*pcVar2 == '\0') {\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }\n  }" { (if_statement "if (*pcVar2 == '\0') {\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }" if (parenthesized_expression "(*pcVar2 == '\0')" ( (binary_expression "*pcVar2 == '\0'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar2 = (char *)0x0;\n    }" { (expression_statement "pcVar2 = (char *)0x0;" (assignment_expression "pcVar2 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }" else (compound_statement "{\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }" { (expression_statement "iVar3 = file_exists_p(pcVar2,local_38);" (assignment_expression "iVar3 = file_exists_p(pcVar2,local_38)" identifier = (call_expression "file_exists_p(pcVar2,local_38)" identifier (argument_list "(pcVar2,local_38)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) goto LAB_0004197c;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0004197c;" goto statement_identifier ;)) (expression_statement "pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2)" identifier = (cast_expression "(char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xstrdup_000af48c)(pcVar2)" (parenthesized_expression "(*(code *)PTR_xstrdup_000af48c)" ( (pointer_expression "*(code *)PTR_xstrdup_000af48c" * (cast_expression "(code *)PTR_xstrdup_000af48c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))))) ;) }))) })) (if_statement "if (local_1c == *(int *)puVar1) {\n    return pcVar2;\n  }" if (parenthesized_expression "(local_1c == *(int *)puVar1)" ( (binary_expression "local_1c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return pcVar2;\n  }" { (return_statement "return pcVar2;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000afbd4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000afbd4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000afbd4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000afbd4" * (cast_expression "(code *)PTR___stack_chk_fail_000afbd4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_0004197c:\n  uVar6 = *(undefined4 *)PTR_stderr_000afc74;" statement_identifier : (expression_statement "uVar6 = *(undefined4 *)PTR_stderr_000afc74;" (assignment_expression "uVar6 = *(undefined4 *)PTR_stderr_000afc74" identifier = (pointer_expression "*(undefined4 *)PTR_stderr_000afc74" * (cast_expression "(undefined4 *)PTR_stderr_000afc74" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;)) (expression_statement "uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5);" (assignment_expression "uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000afcf4)" ( (pointer_expression "*(code *)PTR_dcgettext_000afcf4" * (cast_expression "(code *)PTR_dcgettext_000afcf4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_hallenge__000af46c + 0x12e0,5)" ( number_literal , (binary_expression "PTR_s_hallenge__000af46c + 0x12e0" identifier + number_literal) , number_literal )))) ;) (expression_statement "uVar7 = *(undefined4 *)PTR_exec_name_000af47c;" (assignment_expression "uVar7 = *(undefined4 *)PTR_exec_name_000af47c" identifier = (pointer_expression "*(undefined4 *)PTR_exec_name_000af47c" * (cast_expression "(undefined4 *)PTR_exec_name_000af47c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(local_38[0]);" (assignment_expression "uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(local_38[0])" identifier = (call_expression "(*(code *)PTR_rpl_strerror_000af4b0)(local_38[0])" (parenthesized_expression "(*(code *)PTR_rpl_strerror_000af4b0)" ( (pointer_expression "*(code *)PTR_rpl_strerror_000af4b0" * (cast_expression "(code *)PTR_rpl_strerror_000af4b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_38[0])" ( (subscript_expression "local_38[0]" identifier [ number_literal ]) )))) ;) (expression_statement "(*(code *)PTR___fprintf_chk_000afe0c)(uVar6,1,uVar4,uVar7,pcVar2,uVar5);" (call_expression "(*(code *)PTR___fprintf_chk_000afe0c)(uVar6,1,uVar4,uVar7,pcVar2,uVar5)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_000afe0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_000afe0c" * (cast_expression "(code *)PTR___fprintf_chk_000afe0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar6,1,uVar4,uVar7,pcVar2,uVar5)" ( identifier , number_literal , identifier , identifier , identifier , identifier ))) ;) (expression_statement "pcVar2 = (char *)(*(code *)PTR_exit_000afab8)(1);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_exit_000afab8)(1)" identifier = (cast_expression "(char *)(*(code *)PTR_exit_000afab8)(1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_exit_000afab8)(1)" (parenthesized_expression "(*(code *)PTR_exit_000afab8)" ( (pointer_expression "*(code *)PTR_exit_000afab8" * (cast_expression "(code *)PTR_exit_000afab8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1)" ( number_literal ))))) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nchar * wgetrc_env_file_name(void)\n\n{\n  undefined *puVar1;\n  undefined3 extraout_var;\n  int iVar2;\n  char *pcVar3;\n  _Bool _Var6;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  file_stats_t flstat;\n  \n  puVar1 = PTR___stack_chk_guard_000afc3c;\n  iVar2 = *(int *)PTR___stack_chk_guard_000afc3c;\n  pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8);\n  if (pcVar3 != (char *)0x0) {\n    if (*pcVar3 == '\0') {\n      pcVar3 = (char *)0x0;\n    }\n    else {\n      _Var6 = file_exists_p(pcVar3,&flstat);\n      if (CONCAT31(extraout_var,_Var6) == 0) goto LAB_0004197c;\n      pcVar3 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar3);\n    }\n  }\n  if (iVar2 == *(int *)puVar1) {\n    return pcVar3;\n  }\n  (*(code *)PTR___stack_chk_fail_000afbd4)();\nLAB_0004197c:\n  uVar7 = *(undefined4 *)PTR_stderr_000afc74;\n  uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5);\n  uVar8 = *(undefined4 *)PTR_exec_name_000af47c;\n  uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(flstat.access_err);\n  (*(code *)PTR___fprintf_chk_000afe0c)(uVar7,1,uVar4,uVar8,pcVar3,uVar5);\n  pcVar3 = (char *)(*(code *)PTR_exit_000afab8)(1);\n  return pcVar3;\n}\n\n" comment (function_definition "char * wgetrc_env_file_name(void)\n\n{\n  undefined *puVar1;\n  undefined3 extraout_var;\n  int iVar2;\n  char *pcVar3;\n  _Bool _Var6;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  file_stats_t flstat;\n  \n  puVar1 = PTR___stack_chk_guard_000afc3c;\n  iVar2 = *(int *)PTR___stack_chk_guard_000afc3c;\n  pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8);\n  if (pcVar3 != (char *)0x0) {\n    if (*pcVar3 == '\0') {\n      pcVar3 = (char *)0x0;\n    }\n    else {\n      _Var6 = file_exists_p(pcVar3,&flstat);\n      if (CONCAT31(extraout_var,_Var6) == 0) goto LAB_0004197c;\n      pcVar3 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar3);\n    }\n  }\n  if (iVar2 == *(int *)puVar1) {\n    return pcVar3;\n  }\n  (*(code *)PTR___stack_chk_fail_000afbd4)();\nLAB_0004197c:\n  uVar7 = *(undefined4 *)PTR_stderr_000afc74;\n  uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5);\n  uVar8 = *(undefined4 *)PTR_exec_name_000af47c;\n  uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(flstat.access_err);\n  (*(code *)PTR___fprintf_chk_000afe0c)(uVar7,1,uVar4,uVar8,pcVar3,uVar5);\n  pcVar3 = (char *)(*(code *)PTR_exit_000afab8)(1);\n  return pcVar3;\n}" primitive_type (pointer_declarator "* wgetrc_env_file_name(void)" * (function_declarator "wgetrc_env_file_name(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined3 extraout_var;\n  int iVar2;\n  char *pcVar3;\n  _Bool _Var6;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  file_stats_t flstat;\n  \n  puVar1 = PTR___stack_chk_guard_000afc3c;\n  iVar2 = *(int *)PTR___stack_chk_guard_000afc3c;\n  pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8);\n  if (pcVar3 != (char *)0x0) {\n    if (*pcVar3 == '\0') {\n      pcVar3 = (char *)0x0;\n    }\n    else {\n      _Var6 = file_exists_p(pcVar3,&flstat);\n      if (CONCAT31(extraout_var,_Var6) == 0) goto LAB_0004197c;\n      pcVar3 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar3);\n    }\n  }\n  if (iVar2 == *(int *)puVar1) {\n    return pcVar3;\n  }\n  (*(code *)PTR___stack_chk_fail_000afbd4)();\nLAB_0004197c:\n  uVar7 = *(undefined4 *)PTR_stderr_000afc74;\n  uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5);\n  uVar8 = *(undefined4 *)PTR_exec_name_000af47c;\n  uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(flstat.access_err);\n  (*(code *)PTR___fprintf_chk_000afe0c)(uVar7,1,uVar4,uVar8,pcVar3,uVar5);\n  pcVar3 = (char *)(*(code *)PTR_exit_000afab8)(1);\n  return pcVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "_Bool _Var6;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "file_stats_t flstat;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000afc3c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000afc3c" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_000afc3c;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_000afc3c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000afc3c" * (cast_expression "(int *)PTR___stack_chk_guard_000afc3c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8)" (parenthesized_expression "(*(code *)PTR_getenv_000afdc0)" ( (pointer_expression "*(code *)PTR_getenv_000afdc0" * (cast_expression "(code *)PTR_getenv_000afdc0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_hallenge__000af46c + 0x12d8)" ( (binary_expression "PTR_s_hallenge__000af46c + 0x12d8" identifier + number_literal) ))))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n    if (*pcVar3 == '\0') {\n      pcVar3 = (char *)0x0;\n    }\n    else {\n      _Var6 = file_exists_p(pcVar3,&flstat);\n      if (CONCAT31(extraout_var,_Var6) == 0) goto LAB_0004197c;\n      pcVar3 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar3);\n    }\n  }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*pcVar3 == '\0') {\n      pcVar3 = (char *)0x0;\n    }\n    else {\n      _Var6 = file_exists_p(pcVar3,&flstat);\n      if (CONCAT31(extraout_var,_Var6) == 0) goto LAB_0004197c;\n      pcVar3 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar3);\n    }\n  }" { (if_statement "if (*pcVar3 == '\0') {\n      pcVar3 = (char *)0x0;\n    }\n    else {\n      _Var6 = file_exists_p(pcVar3,&flstat);\n      if (CONCAT31(extraout_var,_Var6) == 0) goto LAB_0004197c;\n      pcVar3 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar3);\n    }" if (parenthesized_expression "(*pcVar3 == '\0')" ( (binary_expression "*pcVar3 == '\0'" (pointer_expression "*pcVar3" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar3 = (char *)0x0;\n    }" { (expression_statement "pcVar3 = (char *)0x0;" (assignment_expression "pcVar3 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      _Var6 = file_exists_p(pcVar3,&flstat);\n      if (CONCAT31(extraout_var,_Var6) == 0) goto LAB_0004197c;\n      pcVar3 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar3);\n    }" else (compound_statement "{\n      _Var6 = file_exists_p(pcVar3,&flstat);\n      if (CONCAT31(extraout_var,_Var6) == 0) goto LAB_0004197c;\n      pcVar3 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar3);\n    }" { (expression_statement "_Var6 = file_exists_p(pcVar3,&flstat);" (assignment_expression "_Var6 = file_exists_p(pcVar3,&flstat)" identifier = (call_expression "file_exists_p(pcVar3,&flstat)" identifier (argument_list "(pcVar3,&flstat)" ( identifier , (pointer_expression "&flstat" & identifier) )))) ;) (if_statement "if (CONCAT31(extraout_var,_Var6) == 0) goto LAB_0004197c;" if (parenthesized_expression "(CONCAT31(extraout_var,_Var6) == 0)" ( (binary_expression "CONCAT31(extraout_var,_Var6) == 0" (call_expression "CONCAT31(extraout_var,_Var6)" identifier (argument_list "(extraout_var,_Var6)" ( identifier , identifier ))) == number_literal) )) (goto_statement "goto LAB_0004197c;" goto statement_identifier ;)) (expression_statement "pcVar3 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar3);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar3)" identifier = (cast_expression "(char *)(*(code *)PTR_xstrdup_000af48c)(pcVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xstrdup_000af48c)(pcVar3)" (parenthesized_expression "(*(code *)PTR_xstrdup_000af48c)" ( (pointer_expression "*(code *)PTR_xstrdup_000af48c" * (cast_expression "(code *)PTR_xstrdup_000af48c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3)" ( identifier ))))) ;) }))) })) (if_statement "if (iVar2 == *(int *)puVar1) {\n    return pcVar3;\n  }" if (parenthesized_expression "(iVar2 == *(int *)puVar1)" ( (binary_expression "iVar2 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return pcVar3;\n  }" { (return_statement "return pcVar3;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000afbd4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000afbd4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000afbd4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000afbd4" * (cast_expression "(code *)PTR___stack_chk_fail_000afbd4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_0004197c:\n  uVar7 = *(undefined4 *)PTR_stderr_000afc74;" statement_identifier : (expression_statement "uVar7 = *(undefined4 *)PTR_stderr_000afc74;" (assignment_expression "uVar7 = *(undefined4 *)PTR_stderr_000afc74" identifier = (pointer_expression "*(undefined4 *)PTR_stderr_000afc74" * (cast_expression "(undefined4 *)PTR_stderr_000afc74" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;)) (expression_statement "uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5);" (assignment_expression "uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000afcf4)" ( (pointer_expression "*(code *)PTR_dcgettext_000afcf4" * (cast_expression "(code *)PTR_dcgettext_000afcf4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_hallenge__000af46c + 0x12e0,5)" ( number_literal , (binary_expression "PTR_s_hallenge__000af46c + 0x12e0" identifier + number_literal) , number_literal )))) ;) (expression_statement "uVar8 = *(undefined4 *)PTR_exec_name_000af47c;" (assignment_expression "uVar8 = *(undefined4 *)PTR_exec_name_000af47c" identifier = (pointer_expression "*(undefined4 *)PTR_exec_name_000af47c" * (cast_expression "(undefined4 *)PTR_exec_name_000af47c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(flstat.access_err);" (assignment_expression "uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(flstat.access_err)" identifier = (call_expression "(*(code *)PTR_rpl_strerror_000af4b0)(flstat.access_err)" (parenthesized_expression "(*(code *)PTR_rpl_strerror_000af4b0)" ( (pointer_expression "*(code *)PTR_rpl_strerror_000af4b0" * (cast_expression "(code *)PTR_rpl_strerror_000af4b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(flstat.access_err)" ( (field_expression "flstat.access_err" identifier . field_identifier) )))) ;) (expression_statement "(*(code *)PTR___fprintf_chk_000afe0c)(uVar7,1,uVar4,uVar8,pcVar3,uVar5);" (call_expression "(*(code *)PTR___fprintf_chk_000afe0c)(uVar7,1,uVar4,uVar8,pcVar3,uVar5)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_000afe0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_000afe0c" * (cast_expression "(code *)PTR___fprintf_chk_000afe0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar7,1,uVar4,uVar8,pcVar3,uVar5)" ( identifier , number_literal , identifier , identifier , identifier , identifier ))) ;) (expression_statement "pcVar3 = (char *)(*(code *)PTR_exit_000afab8)(1);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_exit_000afab8)(1)" identifier = (cast_expression "(char *)(*(code *)PTR_exit_000afab8)(1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_exit_000afab8)(1)" (parenthesized_expression "(*(code *)PTR_exit_000afab8)" ( (pointer_expression "*(code *)PTR_exit_000afab8" * (cast_expression "(code *)PTR_exit_000afab8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1)" ( number_literal ))))) ;) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit "char * wgetrc_env_file_name(void)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 local_38 [7];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000afc3c;\n  local_1c = *(int *)PTR___stack_chk_guard_000afc3c;\n  pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8);\n  if (pcVar2 != (char *)0x0) {\n    if (*pcVar2 == '\0') {\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }\n  }\n  if (local_1c == *(int *)puVar1) {\n    return pcVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000afbd4)();\nLAB_0004197c:\n  uVar6 = *(undefined4 *)PTR_stderr_000afc74;\n  uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5);\n  uVar7 = *(undefined4 *)PTR_exec_name_000af47c;\n  uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(local_38[0]);\n  (*(code *)PTR___fprintf_chk_000afe0c)(uVar6,1,uVar4,uVar7,pcVar2,uVar5);\n  pcVar2 = (char *)(*(code *)PTR_exit_000afab8)(1);\n  return pcVar2;\n}\n\n" (function_definition "char * wgetrc_env_file_name(void)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 local_38 [7];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000afc3c;\n  local_1c = *(int *)PTR___stack_chk_guard_000afc3c;\n  pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8);\n  if (pcVar2 != (char *)0x0) {\n    if (*pcVar2 == '\0') {\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }\n  }\n  if (local_1c == *(int *)puVar1) {\n    return pcVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000afbd4)();\nLAB_0004197c:\n  uVar6 = *(undefined4 *)PTR_stderr_000afc74;\n  uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5);\n  uVar7 = *(undefined4 *)PTR_exec_name_000af47c;\n  uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(local_38[0]);\n  (*(code *)PTR___fprintf_chk_000afe0c)(uVar6,1,uVar4,uVar7,pcVar2,uVar5);\n  pcVar2 = (char *)(*(code *)PTR_exit_000afab8)(1);\n  return pcVar2;\n}" primitive_type (pointer_declarator "* wgetrc_env_file_name(void)" * (function_declarator "wgetrc_env_file_name(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 local_38 [7];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000afc3c;\n  local_1c = *(int *)PTR___stack_chk_guard_000afc3c;\n  pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8);\n  if (pcVar2 != (char *)0x0) {\n    if (*pcVar2 == '\0') {\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }\n  }\n  if (local_1c == *(int *)puVar1) {\n    return pcVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000afbd4)();\nLAB_0004197c:\n  uVar6 = *(undefined4 *)PTR_stderr_000afc74;\n  uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5);\n  uVar7 = *(undefined4 *)PTR_exec_name_000af47c;\n  uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(local_38[0]);\n  (*(code *)PTR___fprintf_chk_000afe0c)(uVar6,1,uVar4,uVar7,pcVar2,uVar5);\n  pcVar2 = (char *)(*(code *)PTR_exit_000afab8)(1);\n  return pcVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 local_38 [7];" type_identifier (array_declarator "local_38 [7]" identifier [ number_literal ]) ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000afc3c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000afc3c" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000afc3c;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_000afc3c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000afc3c" * (cast_expression "(int *)PTR___stack_chk_guard_000afc3c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8)" (parenthesized_expression "(*(code *)PTR_getenv_000afdc0)" ( (pointer_expression "*(code *)PTR_getenv_000afdc0" * (cast_expression "(code *)PTR_getenv_000afdc0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_hallenge__000af46c + 0x12d8)" ( (binary_expression "PTR_s_hallenge__000af46c + 0x12d8" identifier + number_literal) ))))) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n    if (*pcVar2 == '\0') {\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }\n  }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*pcVar2 == '\0') {\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }\n  }" { (if_statement "if (*pcVar2 == '\0') {\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }" if (parenthesized_expression "(*pcVar2 == '\0')" ( (binary_expression "*pcVar2 == '\0'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar2 = (char *)0x0;\n    }" { (expression_statement "pcVar2 = (char *)0x0;" (assignment_expression "pcVar2 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }" else (compound_statement "{\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }" { (expression_statement "iVar3 = file_exists_p(pcVar2,local_38);" (assignment_expression "iVar3 = file_exists_p(pcVar2,local_38)" identifier = (call_expression "file_exists_p(pcVar2,local_38)" identifier (argument_list "(pcVar2,local_38)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) goto LAB_0004197c;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0004197c;" goto statement_identifier ;)) (expression_statement "pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2)" identifier = (cast_expression "(char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xstrdup_000af48c)(pcVar2)" (parenthesized_expression "(*(code *)PTR_xstrdup_000af48c)" ( (pointer_expression "*(code *)PTR_xstrdup_000af48c" * (cast_expression "(code *)PTR_xstrdup_000af48c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))))) ;) }))) })) (if_statement "if (local_1c == *(int *)puVar1) {\n    return pcVar2;\n  }" if (parenthesized_expression "(local_1c == *(int *)puVar1)" ( (binary_expression "local_1c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return pcVar2;\n  }" { (return_statement "return pcVar2;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000afbd4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000afbd4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000afbd4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000afbd4" * (cast_expression "(code *)PTR___stack_chk_fail_000afbd4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_0004197c:\n  uVar6 = *(undefined4 *)PTR_stderr_000afc74;" statement_identifier : (expression_statement "uVar6 = *(undefined4 *)PTR_stderr_000afc74;" (assignment_expression "uVar6 = *(undefined4 *)PTR_stderr_000afc74" identifier = (pointer_expression "*(undefined4 *)PTR_stderr_000afc74" * (cast_expression "(undefined4 *)PTR_stderr_000afc74" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;)) (expression_statement "uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5);" (assignment_expression "uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000afcf4)" ( (pointer_expression "*(code *)PTR_dcgettext_000afcf4" * (cast_expression "(code *)PTR_dcgettext_000afcf4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_hallenge__000af46c + 0x12e0,5)" ( number_literal , (binary_expression "PTR_s_hallenge__000af46c + 0x12e0" identifier + number_literal) , number_literal )))) ;) (expression_statement "uVar7 = *(undefined4 *)PTR_exec_name_000af47c;" (assignment_expression "uVar7 = *(undefined4 *)PTR_exec_name_000af47c" identifier = (pointer_expression "*(undefined4 *)PTR_exec_name_000af47c" * (cast_expression "(undefined4 *)PTR_exec_name_000af47c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(local_38[0]);" (assignment_expression "uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(local_38[0])" identifier = (call_expression "(*(code *)PTR_rpl_strerror_000af4b0)(local_38[0])" (parenthesized_expression "(*(code *)PTR_rpl_strerror_000af4b0)" ( (pointer_expression "*(code *)PTR_rpl_strerror_000af4b0" * (cast_expression "(code *)PTR_rpl_strerror_000af4b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_38[0])" ( (subscript_expression "local_38[0]" identifier [ number_literal ]) )))) ;) (expression_statement "(*(code *)PTR___fprintf_chk_000afe0c)(uVar6,1,uVar4,uVar7,pcVar2,uVar5);" (call_expression "(*(code *)PTR___fprintf_chk_000afe0c)(uVar6,1,uVar4,uVar7,pcVar2,uVar5)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_000afe0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_000afe0c" * (cast_expression "(code *)PTR___fprintf_chk_000afe0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar6,1,uVar4,uVar7,pcVar2,uVar5)" ( identifier , number_literal , identifier , identifier , identifier , identifier ))) ;) (expression_statement "pcVar2 = (char *)(*(code *)PTR_exit_000afab8)(1);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_exit_000afab8)(1)" identifier = (cast_expression "(char *)(*(code *)PTR_exit_000afab8)(1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_exit_000afab8)(1)" (parenthesized_expression "(*(code *)PTR_exit_000afab8)" ( (pointer_expression "*(code *)PTR_exit_000afab8" * (cast_expression "(code *)PTR_exit_000afab8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1)" ( number_literal ))))) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = 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 ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (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 ( IDENT ))))) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , IDENT , IDENT , IDENT , 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 ( LIT ))))) ;) (return_statement return IDENT ;) })))
(function_definition "char * wgetrc_env_file_name(void)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 local_38 [7];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000afc3c;\n  local_1c = *(int *)PTR___stack_chk_guard_000afc3c;\n  pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8);\n  if (pcVar2 != (char *)0x0) {\n    if (*pcVar2 == '\0') {\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }\n  }\n  if (local_1c == *(int *)puVar1) {\n    return pcVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000afbd4)();\nLAB_0004197c:\n  uVar6 = *(undefined4 *)PTR_stderr_000afc74;\n  uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5);\n  uVar7 = *(undefined4 *)PTR_exec_name_000af47c;\n  uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(local_38[0]);\n  (*(code *)PTR___fprintf_chk_000afe0c)(uVar6,1,uVar4,uVar7,pcVar2,uVar5);\n  pcVar2 = (char *)(*(code *)PTR_exit_000afab8)(1);\n  return pcVar2;\n}" (primitive_type "char") (pointer_declarator "* wgetrc_env_file_name(void)" (* "*") (function_declarator "wgetrc_env_file_name(void)" (identifier "wgetrc_env_file_name") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 local_38 [7];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000afc3c;\n  local_1c = *(int *)PTR___stack_chk_guard_000afc3c;\n  pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8);\n  if (pcVar2 != (char *)0x0) {\n    if (*pcVar2 == '\0') {\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }\n  }\n  if (local_1c == *(int *)puVar1) {\n    return pcVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000afbd4)();\nLAB_0004197c:\n  uVar6 = *(undefined4 *)PTR_stderr_000afc74;\n  uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5);\n  uVar7 = *(undefined4 *)PTR_exec_name_000af47c;\n  uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(local_38[0]);\n  (*(code *)PTR___fprintf_chk_000afe0c)(uVar6,1,uVar4,uVar7,pcVar2,uVar5);\n  pcVar2 = (char *)(*(code *)PTR_exit_000afab8)(1);\n  return pcVar2;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "undefined4 local_38 [7];" (type_identifier "undefined4") (array_declarator "local_38 [7]" (identifier "local_38") ([ "[") (number_literal "7") (] "]")) (; ";")) (declaration "int local_1c;" (primitive_type "int") (identifier "local_1c") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_000afc3c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000afc3c" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_000afc3c")) (; ";")) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000afc3c;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_000afc3c" (identifier "local_1c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000afc3c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000afc3c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000afc3c")))) (; ";")) (expression_statement "pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8)" (identifier "pcVar2") (= "=") (cast_expression "(char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8)" (parenthesized_expression "(*(code *)PTR_getenv_000afdc0)" (( "(") (pointer_expression "*(code *)PTR_getenv_000afdc0" (* "*") (cast_expression "(code *)PTR_getenv_000afdc0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getenv_000afdc0"))) () ")")) (argument_list "(PTR_s_hallenge__000af46c + 0x12d8)" (( "(") (binary_expression "PTR_s_hallenge__000af46c + 0x12d8" (identifier "PTR_s_hallenge__000af46c") (+ "+") (number_literal "0x12d8")) () ")"))))) (; ";")) (if_statement "if (pcVar2 != (char *)0x0) {\n    if (*pcVar2 == '\0') {\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }\n  }" (if "if") (parenthesized_expression "(pcVar2 != (char *)0x0)" (( "(") (binary_expression "pcVar2 != (char *)0x0" (identifier "pcVar2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (*pcVar2 == '\0') {\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }\n  }" ({ "{") (if_statement "if (*pcVar2 == '\0') {\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }" (if "if") (parenthesized_expression "(*pcVar2 == '\0')" (( "(") (binary_expression "*pcVar2 == '\0'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      pcVar2 = (char *)0x0;\n    }" ({ "{") (expression_statement "pcVar2 = (char *)0x0;" (assignment_expression "pcVar2 = (char *)0x0" (identifier "pcVar2") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }" (else "else") (compound_statement "{\n      iVar3 = file_exists_p(pcVar2,local_38);\n      if (iVar3 == 0) goto LAB_0004197c;\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);\n    }" ({ "{") (expression_statement "iVar3 = file_exists_p(pcVar2,local_38);" (assignment_expression "iVar3 = file_exists_p(pcVar2,local_38)" (identifier "iVar3") (= "=") (call_expression "file_exists_p(pcVar2,local_38)" (identifier "file_exists_p") (argument_list "(pcVar2,local_38)" (( "(") (identifier "pcVar2") (, ",") (identifier "local_38") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) goto LAB_0004197c;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0004197c;" (goto "goto") (statement_identifier "LAB_0004197c") (; ";"))) (expression_statement "pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2)" (identifier "pcVar2") (= "=") (cast_expression "(char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_xstrdup_000af48c)(pcVar2)" (parenthesized_expression "(*(code *)PTR_xstrdup_000af48c)" (( "(") (pointer_expression "*(code *)PTR_xstrdup_000af48c" (* "*") (cast_expression "(code *)PTR_xstrdup_000af48c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xstrdup_000af48c"))) () ")")) (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")"))))) (; ";")) (} "}")))) (} "}"))) (if_statement "if (local_1c == *(int *)puVar1) {\n    return pcVar2;\n  }" (if "if") (parenthesized_expression "(local_1c == *(int *)puVar1)" (( "(") (binary_expression "local_1c == *(int *)puVar1" (identifier "local_1c") (== "==") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    return pcVar2;\n  }" ({ "{") (return_statement "return pcVar2;" (return "return") (identifier "pcVar2") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___stack_chk_fail_000afbd4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000afbd4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000afbd4)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000afbd4" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000afbd4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000afbd4"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_0004197c:\n  uVar6 = *(undefined4 *)PTR_stderr_000afc74;" (statement_identifier "LAB_0004197c") (: ":") (expression_statement "uVar6 = *(undefined4 *)PTR_stderr_000afc74;" (assignment_expression "uVar6 = *(undefined4 *)PTR_stderr_000afc74" (identifier "uVar6") (= "=") (pointer_expression "*(undefined4 *)PTR_stderr_000afc74" (* "*") (cast_expression "(undefined4 *)PTR_stderr_000afc74" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_000afc74")))) (; ";"))) (expression_statement "uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5);" (assignment_expression "uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000afcf4)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_000afcf4" (* "*") (cast_expression "(code *)PTR_dcgettext_000afcf4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_000afcf4"))) () ")")) (argument_list "(0,PTR_s_hallenge__000af46c + 0x12e0,5)" (( "(") (number_literal "0") (, ",") (binary_expression "PTR_s_hallenge__000af46c + 0x12e0" (identifier "PTR_s_hallenge__000af46c") (+ "+") (number_literal "0x12e0")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "uVar7 = *(undefined4 *)PTR_exec_name_000af47c;" (assignment_expression "uVar7 = *(undefined4 *)PTR_exec_name_000af47c" (identifier "uVar7") (= "=") (pointer_expression "*(undefined4 *)PTR_exec_name_000af47c" (* "*") (cast_expression "(undefined4 *)PTR_exec_name_000af47c" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_exec_name_000af47c")))) (; ";")) (expression_statement "uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(local_38[0]);" (assignment_expression "uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(local_38[0])" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_rpl_strerror_000af4b0)(local_38[0])" (parenthesized_expression "(*(code *)PTR_rpl_strerror_000af4b0)" (( "(") (pointer_expression "*(code *)PTR_rpl_strerror_000af4b0" (* "*") (cast_expression "(code *)PTR_rpl_strerror_000af4b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rpl_strerror_000af4b0"))) () ")")) (argument_list "(local_38[0])" (( "(") (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR___fprintf_chk_000afe0c)(uVar6,1,uVar4,uVar7,pcVar2,uVar5);" (call_expression "(*(code *)PTR___fprintf_chk_000afe0c)(uVar6,1,uVar4,uVar7,pcVar2,uVar5)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_000afe0c)" (( "(") (pointer_expression "*(code *)PTR___fprintf_chk_000afe0c" (* "*") (cast_expression "(code *)PTR___fprintf_chk_000afe0c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fprintf_chk_000afe0c"))) () ")")) (argument_list "(uVar6,1,uVar4,uVar7,pcVar2,uVar5)" (( "(") (identifier "uVar6") (, ",") (number_literal "1") (, ",") (identifier "uVar4") (, ",") (identifier "uVar7") (, ",") (identifier "pcVar2") (, ",") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "pcVar2 = (char *)(*(code *)PTR_exit_000afab8)(1);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_exit_000afab8)(1)" (identifier "pcVar2") (= "=") (cast_expression "(char *)(*(code *)PTR_exit_000afab8)(1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_exit_000afab8)(1)" (parenthesized_expression "(*(code *)PTR_exit_000afab8)" (( "(") (pointer_expression "*(code *)PTR_exit_000afab8" (* "*") (cast_expression "(code *)PTR_exit_000afab8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_exit_000afab8"))) () ")")) (argument_list "(1)" (( "(") (number_literal "1") () ")"))))) (; ";")) (return_statement "return pcVar2;" (return "return") (identifier "pcVar2") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

char * function_1(void)

{
  type_1 *puVar1;
  type_2 extraout_var;
  int var_5;
  char *var_2;
  type_3 _Var6;
  type_4 uVar4;
  type_4 uVar5;
  type_4 uVar7;
  type_4 uVar8;
  type_5 flstat;
  
  puVar1 = PTR___stack_chk_guard_000afc3c;
  var_5 = *(int *)PTR___stack_chk_guard_000afc3c;
  var_2 = (char *)(*(type_6 *)PTR_getenv_000afdc0)(var_1 + 0x12d8);
  if (var_2 != (char *)0x0) {
    if (*var_2 == '\0') {
      var_2 = (char *)0x0;
    }
    else {
      _Var6 = var_3(var_2,&flstat);
      if (var_4(extraout_var,_Var6) == 0) goto LAB_0004197c;
      var_2 = (char *)(*(type_6 *)PTR_xstrdup_000af48c)(var_2);
    }
  }
  if (var_5 == *(int *)puVar1) {
    return var_2;
  }
  (*(type_6 *)PTR___stack_chk_fail_000afbd4)();
LAB_0004197c:
  uVar7 = *(type_4 *)PTR_stderr_000afc74;
  uVar4 = (*(type_6 *)PTR_dcgettext_000afcf4)(0,var_1 + 0x12e0,5);
  uVar8 = *(type_4 *)PTR_exec_name_000af47c;
  uVar5 = (*(type_6 *)PTR_rpl_strerror_000af4b0)(flstat.access_err);
  (*(type_6 *)PTR___fprintf_chk_000afe0c)(uVar7,1,uVar4,uVar8,var_2,uVar5);
  var_2 = (char *)(*(type_6 *)PTR_exit_000afab8)(1);
  return var_2;
}


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

char * MASKED(void)

{
  undefined *puVar1;
  char *pcVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  undefined4 local_38 [7];
  int local_1c;
  
  puVar1 = PTR___stack_chk_guard_000afc3c;
  local_1c = *(int *)PTR___stack_chk_guard_000afc3c;
  pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x12d8);
  if (pcVar2 != (char *)0x0) {
    if (*pcVar2 == '\0') {
      pcVar2 = (char *)0x0;
    }
    else {
      iVar3 = file_exists_p(pcVar2,local_38);
      if (iVar3 == 0) goto LAB_0004197c;
      pcVar2 = (char *)(*(code *)PTR_xstrdup_000af48c)(pcVar2);
    }
  }
  if (local_1c == *(int *)puVar1) {
    return pcVar2;
  }
  (*(code *)PTR___stack_chk_fail_000afbd4)();
LAB_0004197c:
  uVar6 = *(undefined4 *)PTR_stderr_000afc74;
  uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + 0x12e0,5);
  uVar7 = *(undefined4 *)PTR_exec_name_000af47c;
  uVar5 = (*(code *)PTR_rpl_strerror_000af4b0)(local_38[0]);
  (*(code *)PTR___fprintf_chk_000afe0c)(uVar6,1,uVar4,uVar7,pcVar2,uVar5);
  pcVar2 = (char *)(*(code *)PTR_exit_000afab8)(1);
  return pcVar2;
}

