
void xtrace_set(int fd,FILE *fp)

{
  int iVar1;
  undefined4 uVar2;
  char *pcVar3;
  
  if (fd < 0) {
    if (fp == (FILE *)0x0) {
LAB_00045c4c:
      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);
      internal_error(pcVar3);
      return;
    }
  }
  else {
    iVar1 = sh_validfd(fd);
    if (iVar1 == 0) {
      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);
      internal_error(pcVar3,fd);
      return;
    }
    if (fp == (FILE *)0x0) goto LAB_00045c4c;
    iVar1 = (*(code *)PTR_fileno_00146328)(fp);
    if (iVar1 != fd) {
      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);
      uVar2 = (*(code *)PTR_fileno_00146328)(fp);
      internal_warning(pcVar3,fd,uVar2);
      *(int *)PTR_xtrace_fd_00144b44 = fd;
      *(FILE **)PTR_xtrace_fp_00144b48 = fp;
      return;
    }
  }
  *(int *)PTR_xtrace_fd_00144b44 = fd;
  *(FILE **)PTR_xtrace_fp_00144b48 = fp;
  return;
}



void xtrace_set(int param_1,int param_2)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  
  if (param_1 < 0) {
    if (param_2 == 0) {
LAB_00045c4c:
      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);
      internal_error(uVar3);
      return;
    }
  }
  else {
    iVar1 = sh_validfd();
    if (iVar1 == 0) {
      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);
      internal_error(uVar3,param_1);
      return;
    }
    if (param_2 == 0) goto LAB_00045c4c;
    iVar1 = (*(code *)PTR_fileno_00146328)(param_2);
    if (iVar1 != param_1) {
      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);
      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);
      internal_warning(uVar3,param_1,uVar2);
      *(int *)PTR_xtrace_fd_00144b44 = param_1;
      *(int *)PTR_xtrace_fp_00144b48 = param_2;
      return;
    }
  }
  *(int *)PTR_xtrace_fd_00144b44 = param_1;
  *(int *)PTR_xtrace_fp_00144b48 = param_2;
  return;
}


lui gp,0x10
addiu gp,gp,0x69f4
addu gp,gp,t9
addiu sp,sp,-0x28
sw gp,0x10(sp)
sw s1,0x1c(sp)
or s1,a1,zero
sw s0,0x18(sp)
or s0,a0,zero
sw ra,0x24(sp)
bgez a0,0x00045bac
_sw s2,0x20(sp)
beq a1,zero,0x00045c4c
_lw a1,-0x7fc8(gp)
lw v0,-0x79fc(gp)
lw ra,0x24(sp)
lw s2,0x20(sp)
sw s0,0x0(v0)
lw v0,-0x79f8(gp)
lw s0,0x18(sp)
sw s1,0x0(v0)
lw s1,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x79f4(gp)
bal 0x000411c8
_nop
beq v0,zero,0x00045c84
_lw gp,0x10(sp)
beq s1,zero,0x00045c48
_lw t9,-0x6218(gp)
jalr t9
_or a0,s1,zero
beq v0,s0,0x00045b84
_lw gp,0x10(sp)
lw a1,-0x7fc8(gp)
li a2,0x5
lw t9,-0x60a8(gp)
or a0,zero,zero
jalr t9
_addiu a1,a1,0x6660
or a0,s1,zero
lw gp,0x10(sp)
lw t9,-0x6218(gp)
jalr t9
_or s2,v0,zero
or a1,s0,zero
lw gp,0x10(sp)
or a2,v0,zero
lw t9,-0x7f3c(gp)
bal 0x0005fbbc
_or a0,s2,zero
lw gp,0x10(sp)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw v0,-0x79fc(gp)
sw s0,0x0(v0)
lw v0,-0x79f8(gp)
lw s0,0x18(sp)
sw s1,0x0(v0)
lw s1,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw a1,-0x7fc8(gp)
or a0,zero,zero
lw t9,-0x60a8(gp)
li a2,0x5
jalr t9
_addiu a1,a1,0x6640
lw gp,0x10(sp)
or a0,v0,zero
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
lw t9,-0x7d44(gp)
b 0x0005faf8
_addiu sp,sp,0x28
lw a1,-0x7fc8(gp)
or a0,zero,zero
lw t9,-0x60a8(gp)
li a2,0x5
jalr t9
_addiu a1,a1,0x6618
or a1,s0,zero
lw gp,0x10(sp)
or a0,v0,zero
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
lw t9,-0x7d44(gp)
b 0x0005faf8
_addiu sp,sp,0x28
(translation_unit "void xtrace_set(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  if (param_1 < 0) {\n    if (param_2 == 0) {\nLAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(uVar3);\n      return;\n    }\n  }\n  else {\n    iVar1 = sh_validfd();\n    if (iVar1 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }\n    if (param_2 == 0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(param_2);\n    if (iVar1 != param_1) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }\n  }\n  *(int *)PTR_xtrace_fd_00144b44 = param_1;\n  *(int *)PTR_xtrace_fp_00144b48 = param_2;\n  return;\n}\n\n" (function_definition "void xtrace_set(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  if (param_1 < 0) {\n    if (param_2 == 0) {\nLAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(uVar3);\n      return;\n    }\n  }\n  else {\n    iVar1 = sh_validfd();\n    if (iVar1 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }\n    if (param_2 == 0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(param_2);\n    if (iVar1 != param_1) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }\n  }\n  *(int *)PTR_xtrace_fd_00144b44 = param_1;\n  *(int *)PTR_xtrace_fp_00144b48 = param_2;\n  return;\n}" primitive_type (function_declarator "xtrace_set(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  if (param_1 < 0) {\n    if (param_2 == 0) {\nLAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(uVar3);\n      return;\n    }\n  }\n  else {\n    iVar1 = sh_validfd();\n    if (iVar1 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }\n    if (param_2 == 0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(param_2);\n    if (iVar1 != param_1) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }\n  }\n  *(int *)PTR_xtrace_fd_00144b44 = param_1;\n  *(int *)PTR_xtrace_fp_00144b48 = param_2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (param_1 < 0) {\n    if (param_2 == 0) {\nLAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(uVar3);\n      return;\n    }\n  }\n  else {\n    iVar1 = sh_validfd();\n    if (iVar1 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }\n    if (param_2 == 0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(param_2);\n    if (iVar1 != param_1) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }\n  }" if (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) )) (compound_statement "{\n    if (param_2 == 0) {\nLAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(uVar3);\n      return;\n    }\n  }" { (if_statement "if (param_2 == 0) {\nLAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(uVar3);\n      return;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(uVar3);\n      return;\n    }" { (labeled_statement "LAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);" statement_identifier : (expression_statement "uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00146498)" ( (pointer_expression "*(code *)PTR_dcgettext_00146498" * (cast_expression "(code *)PTR_dcgettext_00146498" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_LAB_00144578 + 0x6640,5)" ( number_literal , (binary_expression "PTR_LAB_00144578 + 0x6640" identifier + number_literal) , number_literal )))) ;)) (expression_statement "internal_error(uVar3);" (call_expression "internal_error(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    iVar1 = sh_validfd();\n    if (iVar1 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }\n    if (param_2 == 0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(param_2);\n    if (iVar1 != param_1) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }\n  }" else (compound_statement "{\n    iVar1 = sh_validfd();\n    if (iVar1 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }\n    if (param_2 == 0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(param_2);\n    if (iVar1 != param_1) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }\n  }" { (expression_statement "iVar1 = sh_validfd();" (assignment_expression "iVar1 = sh_validfd()" identifier = (call_expression "sh_validfd()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }" { (expression_statement "uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00146498)" ( (pointer_expression "*(code *)PTR_dcgettext_00146498" * (cast_expression "(code *)PTR_dcgettext_00146498" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_LAB_00144578 + 0x6618,5)" ( number_literal , (binary_expression "PTR_LAB_00144578 + 0x6618" identifier + number_literal) , number_literal )))) ;) (expression_statement "internal_error(uVar3,param_1);" (call_expression "internal_error(uVar3,param_1)" identifier (argument_list "(uVar3,param_1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (param_2 == 0) goto LAB_00045c4c;" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00045c4c;" goto statement_identifier ;)) (expression_statement "iVar1 = (*(code *)PTR_fileno_00146328)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_fileno_00146328)(param_2)" identifier = (call_expression "(*(code *)PTR_fileno_00146328)(param_2)" (parenthesized_expression "(*(code *)PTR_fileno_00146328)" ( (pointer_expression "*(code *)PTR_fileno_00146328" * (cast_expression "(code *)PTR_fileno_00146328" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar1 != param_1) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }" if (parenthesized_expression "(iVar1 != param_1)" ( (binary_expression "iVar1 != param_1" identifier != identifier) )) (compound_statement "{\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }" { (expression_statement "uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00146498)" ( (pointer_expression "*(code *)PTR_dcgettext_00146498" * (cast_expression "(code *)PTR_dcgettext_00146498" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_LAB_00144578 + 0x6660,5)" ( number_literal , (binary_expression "PTR_LAB_00144578 + 0x6660" identifier + number_literal) , number_literal )))) ;) (expression_statement "uVar2 = (*(code *)PTR_fileno_00146328)(param_2);" (assignment_expression "uVar2 = (*(code *)PTR_fileno_00146328)(param_2)" identifier = (call_expression "(*(code *)PTR_fileno_00146328)(param_2)" (parenthesized_expression "(*(code *)PTR_fileno_00146328)" ( (pointer_expression "*(code *)PTR_fileno_00146328" * (cast_expression "(code *)PTR_fileno_00146328" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "internal_warning(uVar3,param_1,uVar2);" (call_expression "internal_warning(uVar3,param_1,uVar2)" identifier (argument_list "(uVar3,param_1,uVar2)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(int *)PTR_xtrace_fd_00144b44 = param_1;" (assignment_expression "*(int *)PTR_xtrace_fd_00144b44 = param_1" (pointer_expression "*(int *)PTR_xtrace_fd_00144b44" * (cast_expression "(int *)PTR_xtrace_fd_00144b44" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(int *)PTR_xtrace_fp_00144b48 = param_2;" (assignment_expression "*(int *)PTR_xtrace_fp_00144b48 = param_2" (pointer_expression "*(int *)PTR_xtrace_fp_00144b48" * (cast_expression "(int *)PTR_xtrace_fp_00144b48" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })) }))) (expression_statement "*(int *)PTR_xtrace_fd_00144b44 = param_1;" (assignment_expression "*(int *)PTR_xtrace_fd_00144b44 = param_1" (pointer_expression "*(int *)PTR_xtrace_fd_00144b44" * (cast_expression "(int *)PTR_xtrace_fd_00144b44" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(int *)PTR_xtrace_fp_00144b48 = param_2;" (assignment_expression "*(int *)PTR_xtrace_fp_00144b48 = param_2" (pointer_expression "*(int *)PTR_xtrace_fp_00144b48" * (cast_expression "(int *)PTR_xtrace_fp_00144b48" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void xtrace_set(int fd,FILE *fp)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  \n  if (fd < 0) {\n    if (fp == (FILE *)0x0) {\nLAB_00045c4c:\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(pcVar3);\n      return;\n    }\n  }\n  else {\n    iVar1 = sh_validfd(fd);\n    if (iVar1 == 0) {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(pcVar3,fd);\n      return;\n    }\n    if (fp == (FILE *)0x0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(fp);\n    if (iVar1 != fd) {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(fp);\n      internal_warning(pcVar3,fd,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = fd;\n      *(FILE **)PTR_xtrace_fp_00144b48 = fp;\n      return;\n    }\n  }\n  *(int *)PTR_xtrace_fd_00144b44 = fd;\n  *(FILE **)PTR_xtrace_fp_00144b48 = fp;\n  return;\n}\n\n" (function_definition "void xtrace_set(int fd,FILE *fp)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  \n  if (fd < 0) {\n    if (fp == (FILE *)0x0) {\nLAB_00045c4c:\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(pcVar3);\n      return;\n    }\n  }\n  else {\n    iVar1 = sh_validfd(fd);\n    if (iVar1 == 0) {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(pcVar3,fd);\n      return;\n    }\n    if (fp == (FILE *)0x0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(fp);\n    if (iVar1 != fd) {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(fp);\n      internal_warning(pcVar3,fd,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = fd;\n      *(FILE **)PTR_xtrace_fp_00144b48 = fp;\n      return;\n    }\n  }\n  *(int *)PTR_xtrace_fd_00144b44 = fd;\n  *(FILE **)PTR_xtrace_fp_00144b48 = fp;\n  return;\n}" primitive_type (function_declarator "xtrace_set(int fd,FILE *fp)" identifier (parameter_list "(int fd,FILE *fp)" ( (parameter_declaration "int fd" primitive_type identifier) , (parameter_declaration "FILE *fp" type_identifier (pointer_declarator "*fp" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  \n  if (fd < 0) {\n    if (fp == (FILE *)0x0) {\nLAB_00045c4c:\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(pcVar3);\n      return;\n    }\n  }\n  else {\n    iVar1 = sh_validfd(fd);\n    if (iVar1 == 0) {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(pcVar3,fd);\n      return;\n    }\n    if (fp == (FILE *)0x0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(fp);\n    if (iVar1 != fd) {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(fp);\n      internal_warning(pcVar3,fd,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = fd;\n      *(FILE **)PTR_xtrace_fp_00144b48 = fp;\n      return;\n    }\n  }\n  *(int *)PTR_xtrace_fd_00144b44 = fd;\n  *(FILE **)PTR_xtrace_fp_00144b48 = fp;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (fd < 0) {\n    if (fp == (FILE *)0x0) {\nLAB_00045c4c:\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(pcVar3);\n      return;\n    }\n  }\n  else {\n    iVar1 = sh_validfd(fd);\n    if (iVar1 == 0) {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(pcVar3,fd);\n      return;\n    }\n    if (fp == (FILE *)0x0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(fp);\n    if (iVar1 != fd) {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(fp);\n      internal_warning(pcVar3,fd,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = fd;\n      *(FILE **)PTR_xtrace_fp_00144b48 = fp;\n      return;\n    }\n  }" if (parenthesized_expression "(fd < 0)" ( (binary_expression "fd < 0" identifier < number_literal) )) (compound_statement "{\n    if (fp == (FILE *)0x0) {\nLAB_00045c4c:\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(pcVar3);\n      return;\n    }\n  }" { (if_statement "if (fp == (FILE *)0x0) {\nLAB_00045c4c:\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(pcVar3);\n      return;\n    }" if (parenthesized_expression "(fp == (FILE *)0x0)" ( (binary_expression "fp == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00045c4c:\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(pcVar3);\n      return;\n    }" { (labeled_statement "LAB_00045c4c:\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);" statement_identifier : (expression_statement "pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5)" identifier = (cast_expression "(char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00146498)" ( (pointer_expression "*(code *)PTR_dcgettext_00146498" * (cast_expression "(code *)PTR_dcgettext_00146498" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_LAB_00144578 + 0x6640,5)" ( number_literal , (binary_expression "PTR_LAB_00144578 + 0x6640" identifier + number_literal) , number_literal ))))) ;)) (expression_statement "internal_error(pcVar3);" (call_expression "internal_error(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    iVar1 = sh_validfd(fd);\n    if (iVar1 == 0) {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(pcVar3,fd);\n      return;\n    }\n    if (fp == (FILE *)0x0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(fp);\n    if (iVar1 != fd) {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(fp);\n      internal_warning(pcVar3,fd,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = fd;\n      *(FILE **)PTR_xtrace_fp_00144b48 = fp;\n      return;\n    }\n  }" else (compound_statement "{\n    iVar1 = sh_validfd(fd);\n    if (iVar1 == 0) {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(pcVar3,fd);\n      return;\n    }\n    if (fp == (FILE *)0x0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(fp);\n    if (iVar1 != fd) {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(fp);\n      internal_warning(pcVar3,fd,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = fd;\n      *(FILE **)PTR_xtrace_fp_00144b48 = fp;\n      return;\n    }\n  }" { (expression_statement "iVar1 = sh_validfd(fd);" (assignment_expression "iVar1 = sh_validfd(fd)" identifier = (call_expression "sh_validfd(fd)" identifier (argument_list "(fd)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(pcVar3,fd);\n      return;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(pcVar3,fd);\n      return;\n    }" { (expression_statement "pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5)" identifier = (cast_expression "(char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00146498)" ( (pointer_expression "*(code *)PTR_dcgettext_00146498" * (cast_expression "(code *)PTR_dcgettext_00146498" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_LAB_00144578 + 0x6618,5)" ( number_literal , (binary_expression "PTR_LAB_00144578 + 0x6618" identifier + number_literal) , number_literal ))))) ;) (expression_statement "internal_error(pcVar3,fd);" (call_expression "internal_error(pcVar3,fd)" identifier (argument_list "(pcVar3,fd)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (fp == (FILE *)0x0) goto LAB_00045c4c;" if (parenthesized_expression "(fp == (FILE *)0x0)" ( (binary_expression "fp == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00045c4c;" goto statement_identifier ;)) (expression_statement "iVar1 = (*(code *)PTR_fileno_00146328)(fp);" (assignment_expression "iVar1 = (*(code *)PTR_fileno_00146328)(fp)" identifier = (call_expression "(*(code *)PTR_fileno_00146328)(fp)" (parenthesized_expression "(*(code *)PTR_fileno_00146328)" ( (pointer_expression "*(code *)PTR_fileno_00146328" * (cast_expression "(code *)PTR_fileno_00146328" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fp)" ( identifier )))) ;) (if_statement "if (iVar1 != fd) {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(fp);\n      internal_warning(pcVar3,fd,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = fd;\n      *(FILE **)PTR_xtrace_fp_00144b48 = fp;\n      return;\n    }" if (parenthesized_expression "(iVar1 != fd)" ( (binary_expression "iVar1 != fd" identifier != identifier) )) (compound_statement "{\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(fp);\n      internal_warning(pcVar3,fd,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = fd;\n      *(FILE **)PTR_xtrace_fp_00144b48 = fp;\n      return;\n    }" { (expression_statement "pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5)" identifier = (cast_expression "(char *)(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00146498)" ( (pointer_expression "*(code *)PTR_dcgettext_00146498" * (cast_expression "(code *)PTR_dcgettext_00146498" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_LAB_00144578 + 0x6660,5)" ( number_literal , (binary_expression "PTR_LAB_00144578 + 0x6660" identifier + number_literal) , number_literal ))))) ;) (expression_statement "uVar2 = (*(code *)PTR_fileno_00146328)(fp);" (assignment_expression "uVar2 = (*(code *)PTR_fileno_00146328)(fp)" identifier = (call_expression "(*(code *)PTR_fileno_00146328)(fp)" (parenthesized_expression "(*(code *)PTR_fileno_00146328)" ( (pointer_expression "*(code *)PTR_fileno_00146328" * (cast_expression "(code *)PTR_fileno_00146328" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fp)" ( identifier )))) ;) (expression_statement "internal_warning(pcVar3,fd,uVar2);" (call_expression "internal_warning(pcVar3,fd,uVar2)" identifier (argument_list "(pcVar3,fd,uVar2)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(int *)PTR_xtrace_fd_00144b44 = fd;" (assignment_expression "*(int *)PTR_xtrace_fd_00144b44 = fd" (pointer_expression "*(int *)PTR_xtrace_fd_00144b44" * (cast_expression "(int *)PTR_xtrace_fd_00144b44" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(FILE **)PTR_xtrace_fp_00144b48 = fp;" (assignment_expression "*(FILE **)PTR_xtrace_fp_00144b48 = fp" (pointer_expression "*(FILE **)PTR_xtrace_fp_00144b48" * (cast_expression "(FILE **)PTR_xtrace_fp_00144b48" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })) }))) (expression_statement "*(int *)PTR_xtrace_fd_00144b44 = fd;" (assignment_expression "*(int *)PTR_xtrace_fd_00144b44 = fd" (pointer_expression "*(int *)PTR_xtrace_fd_00144b44" * (cast_expression "(int *)PTR_xtrace_fd_00144b44" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(FILE **)PTR_xtrace_fp_00144b48 = fp;" (assignment_expression "*(FILE **)PTR_xtrace_fp_00144b48 = fp" (pointer_expression "*(FILE **)PTR_xtrace_fp_00144b48" * (cast_expression "(FILE **)PTR_xtrace_fp_00144b48" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void xtrace_set(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  if (param_1 < 0) {\n    if (param_2 == 0) {\nLAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(uVar3);\n      return;\n    }\n  }\n  else {\n    iVar1 = sh_validfd();\n    if (iVar1 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }\n    if (param_2 == 0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(param_2);\n    if (iVar1 != param_1) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }\n  }\n  *(int *)PTR_xtrace_fd_00144b44 = param_1;\n  *(int *)PTR_xtrace_fp_00144b48 = param_2;\n  return;\n}\n\n" (function_definition "void xtrace_set(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  if (param_1 < 0) {\n    if (param_2 == 0) {\nLAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(uVar3);\n      return;\n    }\n  }\n  else {\n    iVar1 = sh_validfd();\n    if (iVar1 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }\n    if (param_2 == 0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(param_2);\n    if (iVar1 != param_1) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }\n  }\n  *(int *)PTR_xtrace_fd_00144b44 = param_1;\n  *(int *)PTR_xtrace_fp_00144b48 = param_2;\n  return;\n}" primitive_type (function_declarator "xtrace_set(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  if (param_1 < 0) {\n    if (param_2 == 0) {\nLAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(uVar3);\n      return;\n    }\n  }\n  else {\n    iVar1 = sh_validfd();\n    if (iVar1 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }\n    if (param_2 == 0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(param_2);\n    if (iVar1 != param_1) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }\n  }\n  *(int *)PTR_xtrace_fd_00144b44 = param_1;\n  *(int *)PTR_xtrace_fp_00144b48 = param_2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (param_1 < 0) {\n    if (param_2 == 0) {\nLAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(uVar3);\n      return;\n    }\n  }\n  else {\n    iVar1 = sh_validfd();\n    if (iVar1 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }\n    if (param_2 == 0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(param_2);\n    if (iVar1 != param_1) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }\n  }" if (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) )) (compound_statement "{\n    if (param_2 == 0) {\nLAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(uVar3);\n      return;\n    }\n  }" { (if_statement "if (param_2 == 0) {\nLAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(uVar3);\n      return;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(uVar3);\n      return;\n    }" { (labeled_statement "LAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);" statement_identifier : (expression_statement "uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00146498)" ( (pointer_expression "*(code *)PTR_dcgettext_00146498" * (cast_expression "(code *)PTR_dcgettext_00146498" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_LAB_00144578 + 0x6640,5)" ( number_literal , (binary_expression "PTR_LAB_00144578 + 0x6640" identifier + number_literal) , number_literal )))) ;)) (expression_statement "internal_error(uVar3);" (call_expression "internal_error(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    iVar1 = sh_validfd();\n    if (iVar1 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }\n    if (param_2 == 0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(param_2);\n    if (iVar1 != param_1) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }\n  }" else (compound_statement "{\n    iVar1 = sh_validfd();\n    if (iVar1 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }\n    if (param_2 == 0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(param_2);\n    if (iVar1 != param_1) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }\n  }" { (expression_statement "iVar1 = sh_validfd();" (assignment_expression "iVar1 = sh_validfd()" identifier = (call_expression "sh_validfd()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }" { (expression_statement "uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00146498)" ( (pointer_expression "*(code *)PTR_dcgettext_00146498" * (cast_expression "(code *)PTR_dcgettext_00146498" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_LAB_00144578 + 0x6618,5)" ( number_literal , (binary_expression "PTR_LAB_00144578 + 0x6618" identifier + number_literal) , number_literal )))) ;) (expression_statement "internal_error(uVar3,param_1);" (call_expression "internal_error(uVar3,param_1)" identifier (argument_list "(uVar3,param_1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (param_2 == 0) goto LAB_00045c4c;" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00045c4c;" goto statement_identifier ;)) (expression_statement "iVar1 = (*(code *)PTR_fileno_00146328)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_fileno_00146328)(param_2)" identifier = (call_expression "(*(code *)PTR_fileno_00146328)(param_2)" (parenthesized_expression "(*(code *)PTR_fileno_00146328)" ( (pointer_expression "*(code *)PTR_fileno_00146328" * (cast_expression "(code *)PTR_fileno_00146328" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar1 != param_1) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }" if (parenthesized_expression "(iVar1 != param_1)" ( (binary_expression "iVar1 != param_1" identifier != identifier) )) (compound_statement "{\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }" { (expression_statement "uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00146498)" ( (pointer_expression "*(code *)PTR_dcgettext_00146498" * (cast_expression "(code *)PTR_dcgettext_00146498" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_LAB_00144578 + 0x6660,5)" ( number_literal , (binary_expression "PTR_LAB_00144578 + 0x6660" identifier + number_literal) , number_literal )))) ;) (expression_statement "uVar2 = (*(code *)PTR_fileno_00146328)(param_2);" (assignment_expression "uVar2 = (*(code *)PTR_fileno_00146328)(param_2)" identifier = (call_expression "(*(code *)PTR_fileno_00146328)(param_2)" (parenthesized_expression "(*(code *)PTR_fileno_00146328)" ( (pointer_expression "*(code *)PTR_fileno_00146328" * (cast_expression "(code *)PTR_fileno_00146328" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "internal_warning(uVar3,param_1,uVar2);" (call_expression "internal_warning(uVar3,param_1,uVar2)" identifier (argument_list "(uVar3,param_1,uVar2)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(int *)PTR_xtrace_fd_00144b44 = param_1;" (assignment_expression "*(int *)PTR_xtrace_fd_00144b44 = param_1" (pointer_expression "*(int *)PTR_xtrace_fd_00144b44" * (cast_expression "(int *)PTR_xtrace_fd_00144b44" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(int *)PTR_xtrace_fp_00144b48 = param_2;" (assignment_expression "*(int *)PTR_xtrace_fp_00144b48 = param_2" (pointer_expression "*(int *)PTR_xtrace_fp_00144b48" * (cast_expression "(int *)PTR_xtrace_fp_00144b48" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })) }))) (expression_statement "*(int *)PTR_xtrace_fd_00144b44 = param_1;" (assignment_expression "*(int *)PTR_xtrace_fd_00144b44 = param_1" (pointer_expression "*(int *)PTR_xtrace_fd_00144b44" * (cast_expression "(int *)PTR_xtrace_fd_00144b44" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(int *)PTR_xtrace_fp_00144b48 = param_2;" (assignment_expression "*(int *)PTR_xtrace_fp_00144b48 = param_2" (pointer_expression "*(int *)PTR_xtrace_fp_00144b48" * (cast_expression "(int *)PTR_xtrace_fp_00144b48" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , LIT )))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (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 != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (return_statement return ;) })) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (return_statement return ;) })))
(function_definition "void xtrace_set(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  if (param_1 < 0) {\n    if (param_2 == 0) {\nLAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(uVar3);\n      return;\n    }\n  }\n  else {\n    iVar1 = sh_validfd();\n    if (iVar1 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }\n    if (param_2 == 0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(param_2);\n    if (iVar1 != param_1) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }\n  }\n  *(int *)PTR_xtrace_fd_00144b44 = param_1;\n  *(int *)PTR_xtrace_fp_00144b48 = param_2;\n  return;\n}" (primitive_type "void") (function_declarator "xtrace_set(int param_1,int param_2)" (identifier "xtrace_set") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  if (param_1 < 0) {\n    if (param_2 == 0) {\nLAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(uVar3);\n      return;\n    }\n  }\n  else {\n    iVar1 = sh_validfd();\n    if (iVar1 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }\n    if (param_2 == 0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(param_2);\n    if (iVar1 != param_1) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }\n  }\n  *(int *)PTR_xtrace_fd_00144b44 = param_1;\n  *(int *)PTR_xtrace_fp_00144b48 = param_2;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (if_statement "if (param_1 < 0) {\n    if (param_2 == 0) {\nLAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(uVar3);\n      return;\n    }\n  }\n  else {\n    iVar1 = sh_validfd();\n    if (iVar1 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }\n    if (param_2 == 0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(param_2);\n    if (iVar1 != param_1) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(param_1 < 0)" (( "(") (binary_expression "param_1 < 0" (identifier "param_1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_2 == 0) {\nLAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(uVar3);\n      return;\n    }\n  }" ({ "{") (if_statement "if (param_2 == 0) {\nLAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(uVar3);\n      return;\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);\n      internal_error(uVar3);\n      return;\n    }" ({ "{") (labeled_statement "LAB_00045c4c:\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);" (statement_identifier "LAB_00045c4c") (: ":") (expression_statement "uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00146498)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_00146498" (* "*") (cast_expression "(code *)PTR_dcgettext_00146498" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_00146498"))) () ")")) (argument_list "(0,PTR_LAB_00144578 + 0x6640,5)" (( "(") (number_literal "0") (, ",") (binary_expression "PTR_LAB_00144578 + 0x6640" (identifier "PTR_LAB_00144578") (+ "+") (number_literal "0x6640")) (, ",") (number_literal "5") () ")")))) (; ";"))) (expression_statement "internal_error(uVar3);" (call_expression "internal_error(uVar3)" (identifier "internal_error") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar1 = sh_validfd();\n    if (iVar1 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }\n    if (param_2 == 0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(param_2);\n    if (iVar1 != param_1) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = sh_validfd();\n    if (iVar1 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }\n    if (param_2 == 0) goto LAB_00045c4c;\n    iVar1 = (*(code *)PTR_fileno_00146328)(param_2);\n    if (iVar1 != param_1) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar1 = sh_validfd();" (assignment_expression "iVar1 = sh_validfd()" (identifier "iVar1") (= "=") (call_expression "sh_validfd()" (identifier "sh_validfd") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);\n      internal_error(uVar3,param_1);\n      return;\n    }" ({ "{") (expression_statement "uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00146498)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_00146498" (* "*") (cast_expression "(code *)PTR_dcgettext_00146498" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_00146498"))) () ")")) (argument_list "(0,PTR_LAB_00144578 + 0x6618,5)" (( "(") (number_literal "0") (, ",") (binary_expression "PTR_LAB_00144578 + 0x6618" (identifier "PTR_LAB_00144578") (+ "+") (number_literal "0x6618")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "internal_error(uVar3,param_1);" (call_expression "internal_error(uVar3,param_1)" (identifier "internal_error") (argument_list "(uVar3,param_1)" (( "(") (identifier "uVar3") (, ",") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (param_2 == 0) goto LAB_00045c4c;" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00045c4c;" (goto "goto") (statement_identifier "LAB_00045c4c") (; ";"))) (expression_statement "iVar1 = (*(code *)PTR_fileno_00146328)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_fileno_00146328)(param_2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_fileno_00146328)(param_2)" (parenthesized_expression "(*(code *)PTR_fileno_00146328)" (( "(") (pointer_expression "*(code *)PTR_fileno_00146328" (* "*") (cast_expression "(code *)PTR_fileno_00146328" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fileno_00146328"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar1 != param_1) {\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }" (if "if") (parenthesized_expression "(iVar1 != param_1)" (( "(") (binary_expression "iVar1 != param_1" (identifier "iVar1") (!= "!=") (identifier "param_1")) () ")")) (compound_statement "{\n      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);\n      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);\n      internal_warning(uVar3,param_1,uVar2);\n      *(int *)PTR_xtrace_fd_00144b44 = param_1;\n      *(int *)PTR_xtrace_fp_00144b48 = param_2;\n      return;\n    }" ({ "{") (expression_statement "uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00146498)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_00146498" (* "*") (cast_expression "(code *)PTR_dcgettext_00146498" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_00146498"))) () ")")) (argument_list "(0,PTR_LAB_00144578 + 0x6660,5)" (( "(") (number_literal "0") (, ",") (binary_expression "PTR_LAB_00144578 + 0x6660" (identifier "PTR_LAB_00144578") (+ "+") (number_literal "0x6660")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "uVar2 = (*(code *)PTR_fileno_00146328)(param_2);" (assignment_expression "uVar2 = (*(code *)PTR_fileno_00146328)(param_2)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_fileno_00146328)(param_2)" (parenthesized_expression "(*(code *)PTR_fileno_00146328)" (( "(") (pointer_expression "*(code *)PTR_fileno_00146328" (* "*") (cast_expression "(code *)PTR_fileno_00146328" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fileno_00146328"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "internal_warning(uVar3,param_1,uVar2);" (call_expression "internal_warning(uVar3,param_1,uVar2)" (identifier "internal_warning") (argument_list "(uVar3,param_1,uVar2)" (( "(") (identifier "uVar3") (, ",") (identifier "param_1") (, ",") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "*(int *)PTR_xtrace_fd_00144b44 = param_1;" (assignment_expression "*(int *)PTR_xtrace_fd_00144b44 = param_1" (pointer_expression "*(int *)PTR_xtrace_fd_00144b44" (* "*") (cast_expression "(int *)PTR_xtrace_fd_00144b44" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xtrace_fd_00144b44"))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(int *)PTR_xtrace_fp_00144b48 = param_2;" (assignment_expression "*(int *)PTR_xtrace_fp_00144b48 = param_2" (pointer_expression "*(int *)PTR_xtrace_fp_00144b48" (* "*") (cast_expression "(int *)PTR_xtrace_fp_00144b48" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xtrace_fp_00144b48"))) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")))) (expression_statement "*(int *)PTR_xtrace_fd_00144b44 = param_1;" (assignment_expression "*(int *)PTR_xtrace_fd_00144b44 = param_1" (pointer_expression "*(int *)PTR_xtrace_fd_00144b44" (* "*") (cast_expression "(int *)PTR_xtrace_fd_00144b44" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xtrace_fd_00144b44"))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(int *)PTR_xtrace_fp_00144b48 = param_2;" (assignment_expression "*(int *)PTR_xtrace_fp_00144b48 = param_2" (pointer_expression "*(int *)PTR_xtrace_fp_00144b48" (* "*") (cast_expression "(int *)PTR_xtrace_fp_00144b48" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xtrace_fp_00144b48"))) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(int var_1,type_1 *var_2)

{
  int var_6;
  type_2 uVar2;
  char *pcVar3;
  
  if (var_1 < 0) {
    if (var_2 == (type_1 *)0x0) {
LAB_00045c4c:
      pcVar3 = (char *)(*(type_3 *)PTR_dcgettext_00146498)(0,var_3 + 0x6640,5);
      var_4(pcVar3);
      return;
    }
  }
  else {
    var_6 = var_5(var_1);
    if (var_6 == 0) {
      pcVar3 = (char *)(*(type_3 *)PTR_dcgettext_00146498)(0,var_3 + 0x6618,5);
      var_4(pcVar3,var_1);
      return;
    }
    if (var_2 == (type_1 *)0x0) goto LAB_00045c4c;
    var_6 = (*(type_3 *)PTR_fileno_00146328)(var_2);
    if (var_6 != var_1) {
      pcVar3 = (char *)(*(type_3 *)PTR_dcgettext_00146498)(0,var_3 + 0x6660,5);
      uVar2 = (*(type_3 *)PTR_fileno_00146328)(var_2);
      var_7(pcVar3,var_1,uVar2);
      *(int *)PTR_xtrace_fd_00144b44 = var_1;
      *(type_1 **)PTR_xtrace_fp_00144b48 = var_2;
      return;
    }
  }
  *(int *)PTR_xtrace_fd_00144b44 = var_1;
  *(type_1 **)PTR_xtrace_fp_00144b48 = var_2;
  return;
}


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

void MASKED(int param_1,int param_2)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  
  if (param_1 < 0) {
    if (param_2 == 0) {
LAB_00045c4c:
      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6640,5);
      internal_error(uVar3);
      return;
    }
  }
  else {
    iVar1 = sh_validfd();
    if (iVar1 == 0) {
      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6618,5);
      internal_error(uVar3,param_1);
      return;
    }
    if (param_2 == 0) goto LAB_00045c4c;
    iVar1 = (*(code *)PTR_fileno_00146328)(param_2);
    if (iVar1 != param_1) {
      uVar3 = (*(code *)PTR_dcgettext_00146498)(0,PTR_LAB_00144578 + 0x6660,5);
      uVar2 = (*(code *)PTR_fileno_00146328)(param_2);
      internal_warning(uVar3,param_1,uVar2);
      *(int *)PTR_xtrace_fd_00144b44 = param_1;
      *(int *)PTR_xtrace_fp_00144b48 = param_2;
      return;
    }
  }
  *(int *)PTR_xtrace_fd_00144b44 = param_1;
  *(int *)PTR_xtrace_fp_00144b48 = param_2;
  return;
}

