
off_t get_file_size(char *file_name)

{
  int iVar1;
  int *piVar2;
  char *format;
  char *pcVar3;
  stat statbuf;
  
  if (file_name == (char *)0x0) {
    return -1;
  }
  iVar1 = __xstat(1,file_name,(stat *)&statbuf);
  if (iVar1 < 0) {
    piVar2 = __errno_location();
    pcVar3 = "\'%s\': No such file";
    if (*piVar2 != 2) {
      pcVar3 = strerror(*piVar2);
      format = (char *)dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);
      non_fatal(format,file_name,pcVar3);
      return -1;
    }
  }
  else if ((statbuf.st_mode & 0xf000) == 0x4000) {
    pcVar3 = "Warning: \'%s\' is a directory";
  }
  else if ((statbuf.st_mode & 0xf000) == 0x8000) {
    if (-1 < statbuf.st_size) {
      return statbuf.st_size;
    }
    pcVar3 = "Warning: \'%s\' has negative size, probably it is too large";
  }
  else {
    pcVar3 = "Warning: \'%s\' is not an ordinary file";
  }
  pcVar3 = (char *)dcgettext(0,pcVar3,5);
  non_fatal(pcVar3,file_name);
  return -1;
}



long FUN_00108170(char *param_1)

{
  int iVar1;
  int *piVar2;
  undefined8 uVar3;
  char *pcVar4;
  stat sStack_a8;
  
  if (param_1 == (char *)0x0) {
    return -1;
  }
  iVar1 = __xstat(1,param_1,&sStack_a8);
  if (iVar1 < 0) {
    piVar2 = __errno_location();
    pcVar4 = "\'%s\': No such file";
    if (*piVar2 != 2) {
      pcVar4 = strerror(*piVar2);
      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);
      FUN_00107900(uVar3,param_1,pcVar4);
      return -1;
    }
  }
  else if ((sStack_a8.st_mode & 0xf000) == 0x4000) {
    pcVar4 = "Warning: \'%s\' is a directory";
  }
  else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {
    if (-1 < sStack_a8.st_size) {
      return sStack_a8.st_size;
    }
    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";
  }
  else {
    pcVar4 = "Warning: \'%s\' is not an ordinary file";
  }
  uVar3 = dcgettext(0,pcVar4,5);
  FUN_00107900(uVar3,param_1);
  return -1;
}


TEST RDI,RDI
JZ 0x00108266
PUSH RBP
MOV RSI,RDI
PUSH RBX
MOV RBX,RDI
MOV EDI,0x1
SUB RSP,0x98
MOV RDX,RSP
CALL 0x001023d0
TEST EAX,EAX
JS 0x001081d0
MOV EAX,dword ptr [RSP + 0x18]
AND EAX,0xf000
CMP EAX,0x4000
JZ 0x0010826e
CMP EAX,0x8000
JNZ 0x00108258
MOV RAX,qword ptr [RSP + 0x30]
TEST RAX,RAX
JS 0x00108224
ADD RSP,0x98
POP RBX
POP RBP
RET
CALL 0x001020a0
MOV EDX,0x5
LEA RSI,[0x10c3fb]
MOV EDI,dword ptr [RAX]
CMP EDI,0x2
JZ 0x00108230
CALL 0x001025d0
MOV EDX,0x5
LEA RSI,[0x10c4c0]
XOR EDI,EDI
MOV RBP,RAX
CALL 0x001021b0
MOV RDX,RBP
MOV RSI,RBX
MOV RDI,RAX
XOR EAX,EAX
CALL 0x00107900
ADD RSP,0x98
MOV RAX,-0x1
POP RBX
POP RBP
RET
MOV EDX,0x5
LEA RSI,[0x10c518]
XOR EDI,EDI
CALL 0x001021b0
MOV RSI,RBX
MOV RDI,RAX
XOR EAX,EAX
CALL 0x00107900
ADD RSP,0x98
MOV RAX,-0x1
POP RBX
POP RBP
RET
MOV EDX,0x5
LEA RSI,[0x10c4f0]
JMP 0x00108230
MOV RAX,-0x1
RET
MOV EDX,0x5
LEA RSI,[0x10c40e]
JMP 0x00108230
(translation_unit "long FUN_00108170(char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  stat sStack_a8;\n  \n  if (param_1 == (char *)0x0) {\n    return -1;\n  }\n  iVar1 = __xstat(1,param_1,&sStack_a8);\n  if (iVar1 < 0) {\n    piVar2 = __errno_location();\n    pcVar4 = "\'%s\': No such file";\n    if (*piVar2 != 2) {\n      pcVar4 = strerror(*piVar2);\n      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      FUN_00107900(uVar3,param_1,pcVar4);\n      return -1;\n    }\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x4000) {\n    pcVar4 = "Warning: \'%s\' is a directory";\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }\n  uVar3 = dcgettext(0,pcVar4,5);\n  FUN_00107900(uVar3,param_1);\n  return -1;\n}\n\n" (function_definition "long FUN_00108170(char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  stat sStack_a8;\n  \n  if (param_1 == (char *)0x0) {\n    return -1;\n  }\n  iVar1 = __xstat(1,param_1,&sStack_a8);\n  if (iVar1 < 0) {\n    piVar2 = __errno_location();\n    pcVar4 = "\'%s\': No such file";\n    if (*piVar2 != 2) {\n      pcVar4 = strerror(*piVar2);\n      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      FUN_00107900(uVar3,param_1,pcVar4);\n      return -1;\n    }\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x4000) {\n    pcVar4 = "Warning: \'%s\' is a directory";\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }\n  uVar3 = dcgettext(0,pcVar4,5);\n  FUN_00107900(uVar3,param_1);\n  return -1;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00108170(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  stat sStack_a8;\n  \n  if (param_1 == (char *)0x0) {\n    return -1;\n  }\n  iVar1 = __xstat(1,param_1,&sStack_a8);\n  if (iVar1 < 0) {\n    piVar2 = __errno_location();\n    pcVar4 = "\'%s\': No such file";\n    if (*piVar2 != 2) {\n      pcVar4 = strerror(*piVar2);\n      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      FUN_00107900(uVar3,param_1,pcVar4);\n      return -1;\n    }\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x4000) {\n    pcVar4 = "Warning: \'%s\' is a directory";\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }\n  uVar3 = dcgettext(0,pcVar4,5);\n  FUN_00107900(uVar3,param_1);\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "stat sStack_a8;" type_identifier identifier ;) (if_statement "if (param_1 == (char *)0x0) {\n    return -1;\n  }" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "iVar1 = __xstat(1,param_1,&sStack_a8);" (assignment_expression "iVar1 = __xstat(1,param_1,&sStack_a8)" identifier = (call_expression "__xstat(1,param_1,&sStack_a8)" identifier (argument_list "(1,param_1,&sStack_a8)" ( number_literal , identifier , (pointer_expression "&sStack_a8" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n    piVar2 = __errno_location();\n    pcVar4 = "\'%s\': No such file";\n    if (*piVar2 != 2) {\n      pcVar4 = strerror(*piVar2);\n      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      FUN_00107900(uVar3,param_1,pcVar4);\n      return -1;\n    }\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x4000) {\n    pcVar4 = "Warning: \'%s\' is a directory";\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar2 = __errno_location();\n    pcVar4 = "\'%s\': No such file";\n    if (*piVar2 != 2) {\n      pcVar4 = strerror(*piVar2);\n      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      FUN_00107900(uVar3,param_1,pcVar4);\n      return -1;\n    }\n  }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar4 = "\'%s\': No such file";" (assignment_expression "pcVar4 = "\'%s\': No such file"" identifier = (string_literal ""\'%s\': No such file"" " escape_sequence string_content escape_sequence string_content ")) ;) (if_statement "if (*piVar2 != 2) {\n      pcVar4 = strerror(*piVar2);\n      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      FUN_00107900(uVar3,param_1,pcVar4);\n      return -1;\n    }" if (parenthesized_expression "(*piVar2 != 2)" ( (binary_expression "*piVar2 != 2" (pointer_expression "*piVar2" * identifier) != number_literal) )) (compound_statement "{\n      pcVar4 = strerror(*piVar2);\n      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      FUN_00107900(uVar3,param_1,pcVar4);\n      return -1;\n    }" { (expression_statement "pcVar4 = strerror(*piVar2);" (assignment_expression "pcVar4 = strerror(*piVar2)" identifier = (call_expression "strerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5)" identifier = (call_expression "dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5)" identifier (argument_list "(0,"Warning: could not locate \'%s\'.  reason: %s",5)" ( number_literal , (string_literal ""Warning: could not locate \'%s\'.  reason: %s"" " string_content escape_sequence string_content escape_sequence string_content ") , number_literal )))) ;) (expression_statement "FUN_00107900(uVar3,param_1,pcVar4);" (call_expression "FUN_00107900(uVar3,param_1,pcVar4)" identifier (argument_list "(uVar3,param_1,pcVar4)" ( identifier , identifier , identifier ))) ;) (return_statement "return -1;" return number_literal ;) })) }) (else_clause "else if ((sStack_a8.st_mode & 0xf000) == 0x4000) {\n    pcVar4 = "Warning: \'%s\' is a directory";\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" else (if_statement "if ((sStack_a8.st_mode & 0xf000) == 0x4000) {\n    pcVar4 = "Warning: \'%s\' is a directory";\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" if (parenthesized_expression "((sStack_a8.st_mode & 0xf000) == 0x4000)" ( (binary_expression "(sStack_a8.st_mode & 0xf000) == 0x4000" (parenthesized_expression "(sStack_a8.st_mode & 0xf000)" ( (binary_expression "sStack_a8.st_mode & 0xf000" (field_expression "sStack_a8.st_mode" identifier . field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    pcVar4 = "Warning: \'%s\' is a directory";\n  }" { (expression_statement "pcVar4 = "Warning: \'%s\' is a directory";" (assignment_expression "pcVar4 = "Warning: \'%s\' is a directory"" identifier = (string_literal ""Warning: \'%s\' is a directory"" " string_content escape_sequence string_content escape_sequence string_content ")) ;) }) (else_clause "else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" else (if_statement "if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" if (parenthesized_expression "((sStack_a8.st_mode & 0xf000) == 0x8000)" ( (binary_expression "(sStack_a8.st_mode & 0xf000) == 0x8000" (parenthesized_expression "(sStack_a8.st_mode & 0xf000)" ( (binary_expression "sStack_a8.st_mode & 0xf000" (field_expression "sStack_a8.st_mode" identifier . field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }" { (if_statement "if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }" if (parenthesized_expression "(-1 < sStack_a8.st_size)" ( (binary_expression "-1 < sStack_a8.st_size" number_literal < (field_expression "sStack_a8.st_size" identifier . field_identifier)) )) (compound_statement "{\n      return sStack_a8.st_size;\n    }" { (return_statement "return sStack_a8.st_size;" return (field_expression "sStack_a8.st_size" identifier . field_identifier) ;) })) (expression_statement "pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";" (assignment_expression "pcVar4 = "Warning: \'%s\' has negative size, probably it is too large"" identifier = (string_literal ""Warning: \'%s\' has negative size, probably it is too large"" " string_content escape_sequence string_content escape_sequence string_content ")) ;) }) (else_clause "else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" else (compound_statement "{\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" { (expression_statement "pcVar4 = "Warning: \'%s\' is not an ordinary file";" (assignment_expression "pcVar4 = "Warning: \'%s\' is not an ordinary file"" identifier = (string_literal ""Warning: \'%s\' is not an ordinary file"" " string_content escape_sequence string_content escape_sequence string_content ")) ;) }))))))) (expression_statement "uVar3 = dcgettext(0,pcVar4,5);" (assignment_expression "uVar3 = dcgettext(0,pcVar4,5)" identifier = (call_expression "dcgettext(0,pcVar4,5)" identifier (argument_list "(0,pcVar4,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "FUN_00107900(uVar3,param_1);" (call_expression "FUN_00107900(uVar3,param_1)" identifier (argument_list "(uVar3,param_1)" ( identifier , identifier ))) ;) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "off_t get_file_size(char *file_name)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *format;\n  char *pcVar3;\n  stat statbuf;\n  \n  if (file_name == (char *)0x0) {\n    return -1;\n  }\n  iVar1 = __xstat(1,file_name,(stat *)&statbuf);\n  if (iVar1 < 0) {\n    piVar2 = __errno_location();\n    pcVar3 = "\'%s\': No such file";\n    if (*piVar2 != 2) {\n      pcVar3 = strerror(*piVar2);\n      format = (char *)dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      non_fatal(format,file_name,pcVar3);\n      return -1;\n    }\n  }\n  else if ((statbuf.st_mode & 0xf000) == 0x4000) {\n    pcVar3 = "Warning: \'%s\' is a directory";\n  }\n  else if ((statbuf.st_mode & 0xf000) == 0x8000) {\n    if (-1 < statbuf.st_size) {\n      return statbuf.st_size;\n    }\n    pcVar3 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar3 = "Warning: \'%s\' is not an ordinary file";\n  }\n  pcVar3 = (char *)dcgettext(0,pcVar3,5);\n  non_fatal(pcVar3,file_name);\n  return -1;\n}\n\n" (function_definition "off_t get_file_size(char *file_name)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *format;\n  char *pcVar3;\n  stat statbuf;\n  \n  if (file_name == (char *)0x0) {\n    return -1;\n  }\n  iVar1 = __xstat(1,file_name,(stat *)&statbuf);\n  if (iVar1 < 0) {\n    piVar2 = __errno_location();\n    pcVar3 = "\'%s\': No such file";\n    if (*piVar2 != 2) {\n      pcVar3 = strerror(*piVar2);\n      format = (char *)dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      non_fatal(format,file_name,pcVar3);\n      return -1;\n    }\n  }\n  else if ((statbuf.st_mode & 0xf000) == 0x4000) {\n    pcVar3 = "Warning: \'%s\' is a directory";\n  }\n  else if ((statbuf.st_mode & 0xf000) == 0x8000) {\n    if (-1 < statbuf.st_size) {\n      return statbuf.st_size;\n    }\n    pcVar3 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar3 = "Warning: \'%s\' is not an ordinary file";\n  }\n  pcVar3 = (char *)dcgettext(0,pcVar3,5);\n  non_fatal(pcVar3,file_name);\n  return -1;\n}" type_identifier (function_declarator "get_file_size(char *file_name)" identifier (parameter_list "(char *file_name)" ( (parameter_declaration "char *file_name" primitive_type (pointer_declarator "*file_name" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char *format;\n  char *pcVar3;\n  stat statbuf;\n  \n  if (file_name == (char *)0x0) {\n    return -1;\n  }\n  iVar1 = __xstat(1,file_name,(stat *)&statbuf);\n  if (iVar1 < 0) {\n    piVar2 = __errno_location();\n    pcVar3 = "\'%s\': No such file";\n    if (*piVar2 != 2) {\n      pcVar3 = strerror(*piVar2);\n      format = (char *)dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      non_fatal(format,file_name,pcVar3);\n      return -1;\n    }\n  }\n  else if ((statbuf.st_mode & 0xf000) == 0x4000) {\n    pcVar3 = "Warning: \'%s\' is a directory";\n  }\n  else if ((statbuf.st_mode & 0xf000) == 0x8000) {\n    if (-1 < statbuf.st_size) {\n      return statbuf.st_size;\n    }\n    pcVar3 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar3 = "Warning: \'%s\' is not an ordinary file";\n  }\n  pcVar3 = (char *)dcgettext(0,pcVar3,5);\n  non_fatal(pcVar3,file_name);\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "stat statbuf;" type_identifier identifier ;) (if_statement "if (file_name == (char *)0x0) {\n    return -1;\n  }" if (parenthesized_expression "(file_name == (char *)0x0)" ( (binary_expression "file_name == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "iVar1 = __xstat(1,file_name,(stat *)&statbuf);" (assignment_expression "iVar1 = __xstat(1,file_name,(stat *)&statbuf)" identifier = (call_expression "__xstat(1,file_name,(stat *)&statbuf)" identifier (argument_list "(1,file_name,(stat *)&statbuf)" ( number_literal , identifier , (cast_expression "(stat *)&statbuf" ( (type_descriptor "stat *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&statbuf" & identifier)) )))) ;) (if_statement "if (iVar1 < 0) {\n    piVar2 = __errno_location();\n    pcVar3 = "\'%s\': No such file";\n    if (*piVar2 != 2) {\n      pcVar3 = strerror(*piVar2);\n      format = (char *)dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      non_fatal(format,file_name,pcVar3);\n      return -1;\n    }\n  }\n  else if ((statbuf.st_mode & 0xf000) == 0x4000) {\n    pcVar3 = "Warning: \'%s\' is a directory";\n  }\n  else if ((statbuf.st_mode & 0xf000) == 0x8000) {\n    if (-1 < statbuf.st_size) {\n      return statbuf.st_size;\n    }\n    pcVar3 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar3 = "Warning: \'%s\' is not an ordinary file";\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar2 = __errno_location();\n    pcVar3 = "\'%s\': No such file";\n    if (*piVar2 != 2) {\n      pcVar3 = strerror(*piVar2);\n      format = (char *)dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      non_fatal(format,file_name,pcVar3);\n      return -1;\n    }\n  }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = "\'%s\': No such file";" (assignment_expression "pcVar3 = "\'%s\': No such file"" identifier = (string_literal ""\'%s\': No such file"" " escape_sequence string_content escape_sequence string_content ")) ;) (if_statement "if (*piVar2 != 2) {\n      pcVar3 = strerror(*piVar2);\n      format = (char *)dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      non_fatal(format,file_name,pcVar3);\n      return -1;\n    }" if (parenthesized_expression "(*piVar2 != 2)" ( (binary_expression "*piVar2 != 2" (pointer_expression "*piVar2" * identifier) != number_literal) )) (compound_statement "{\n      pcVar3 = strerror(*piVar2);\n      format = (char *)dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      non_fatal(format,file_name,pcVar3);\n      return -1;\n    }" { (expression_statement "pcVar3 = strerror(*piVar2);" (assignment_expression "pcVar3 = strerror(*piVar2)" identifier = (call_expression "strerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "format = (char *)dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);" (assignment_expression "format = (char *)dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5)" identifier = (cast_expression "(char *)dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5)" identifier (argument_list "(0,"Warning: could not locate \'%s\'.  reason: %s",5)" ( number_literal , (string_literal ""Warning: could not locate \'%s\'.  reason: %s"" " string_content escape_sequence string_content escape_sequence string_content ") , number_literal ))))) ;) (expression_statement "non_fatal(format,file_name,pcVar3);" (call_expression "non_fatal(format,file_name,pcVar3)" identifier (argument_list "(format,file_name,pcVar3)" ( identifier , identifier , identifier ))) ;) (return_statement "return -1;" return number_literal ;) })) }) (else_clause "else if ((statbuf.st_mode & 0xf000) == 0x4000) {\n    pcVar3 = "Warning: \'%s\' is a directory";\n  }\n  else if ((statbuf.st_mode & 0xf000) == 0x8000) {\n    if (-1 < statbuf.st_size) {\n      return statbuf.st_size;\n    }\n    pcVar3 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar3 = "Warning: \'%s\' is not an ordinary file";\n  }" else (if_statement "if ((statbuf.st_mode & 0xf000) == 0x4000) {\n    pcVar3 = "Warning: \'%s\' is a directory";\n  }\n  else if ((statbuf.st_mode & 0xf000) == 0x8000) {\n    if (-1 < statbuf.st_size) {\n      return statbuf.st_size;\n    }\n    pcVar3 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar3 = "Warning: \'%s\' is not an ordinary file";\n  }" if (parenthesized_expression "((statbuf.st_mode & 0xf000) == 0x4000)" ( (binary_expression "(statbuf.st_mode & 0xf000) == 0x4000" (parenthesized_expression "(statbuf.st_mode & 0xf000)" ( (binary_expression "statbuf.st_mode & 0xf000" (field_expression "statbuf.st_mode" identifier . field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    pcVar3 = "Warning: \'%s\' is a directory";\n  }" { (expression_statement "pcVar3 = "Warning: \'%s\' is a directory";" (assignment_expression "pcVar3 = "Warning: \'%s\' is a directory"" identifier = (string_literal ""Warning: \'%s\' is a directory"" " string_content escape_sequence string_content escape_sequence string_content ")) ;) }) (else_clause "else if ((statbuf.st_mode & 0xf000) == 0x8000) {\n    if (-1 < statbuf.st_size) {\n      return statbuf.st_size;\n    }\n    pcVar3 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar3 = "Warning: \'%s\' is not an ordinary file";\n  }" else (if_statement "if ((statbuf.st_mode & 0xf000) == 0x8000) {\n    if (-1 < statbuf.st_size) {\n      return statbuf.st_size;\n    }\n    pcVar3 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar3 = "Warning: \'%s\' is not an ordinary file";\n  }" if (parenthesized_expression "((statbuf.st_mode & 0xf000) == 0x8000)" ( (binary_expression "(statbuf.st_mode & 0xf000) == 0x8000" (parenthesized_expression "(statbuf.st_mode & 0xf000)" ( (binary_expression "statbuf.st_mode & 0xf000" (field_expression "statbuf.st_mode" identifier . field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (-1 < statbuf.st_size) {\n      return statbuf.st_size;\n    }\n    pcVar3 = "Warning: \'%s\' has negative size, probably it is too large";\n  }" { (if_statement "if (-1 < statbuf.st_size) {\n      return statbuf.st_size;\n    }" if (parenthesized_expression "(-1 < statbuf.st_size)" ( (binary_expression "-1 < statbuf.st_size" number_literal < (field_expression "statbuf.st_size" identifier . field_identifier)) )) (compound_statement "{\n      return statbuf.st_size;\n    }" { (return_statement "return statbuf.st_size;" return (field_expression "statbuf.st_size" identifier . field_identifier) ;) })) (expression_statement "pcVar3 = "Warning: \'%s\' has negative size, probably it is too large";" (assignment_expression "pcVar3 = "Warning: \'%s\' has negative size, probably it is too large"" identifier = (string_literal ""Warning: \'%s\' has negative size, probably it is too large"" " string_content escape_sequence string_content escape_sequence string_content ")) ;) }) (else_clause "else {\n    pcVar3 = "Warning: \'%s\' is not an ordinary file";\n  }" else (compound_statement "{\n    pcVar3 = "Warning: \'%s\' is not an ordinary file";\n  }" { (expression_statement "pcVar3 = "Warning: \'%s\' is not an ordinary file";" (assignment_expression "pcVar3 = "Warning: \'%s\' is not an ordinary file"" identifier = (string_literal ""Warning: \'%s\' is not an ordinary file"" " string_content escape_sequence string_content escape_sequence string_content ")) ;) }))))))) (expression_statement "pcVar3 = (char *)dcgettext(0,pcVar3,5);" (assignment_expression "pcVar3 = (char *)dcgettext(0,pcVar3,5)" identifier = (cast_expression "(char *)dcgettext(0,pcVar3,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,pcVar3,5)" identifier (argument_list "(0,pcVar3,5)" ( number_literal , identifier , number_literal ))))) ;) (expression_statement "non_fatal(pcVar3,file_name);" (call_expression "non_fatal(pcVar3,file_name)" identifier (argument_list "(pcVar3,file_name)" ( identifier , identifier ))) ;) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "long FUN_00108170(char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  stat sStack_a8;\n  \n  if (param_1 == (char *)0x0) {\n    return -1;\n  }\n  iVar1 = __xstat(1,param_1,&sStack_a8);\n  if (iVar1 < 0) {\n    piVar2 = __errno_location();\n    pcVar4 = "\'%s\': No such file";\n    if (*piVar2 != 2) {\n      pcVar4 = strerror(*piVar2);\n      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      FUN_00107900(uVar3,param_1,pcVar4);\n      return -1;\n    }\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x4000) {\n    pcVar4 = "Warning: \'%s\' is a directory";\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }\n  uVar3 = dcgettext(0,pcVar4,5);\n  FUN_00107900(uVar3,param_1);\n  return -1;\n}\n\n" (function_definition "long FUN_00108170(char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  stat sStack_a8;\n  \n  if (param_1 == (char *)0x0) {\n    return -1;\n  }\n  iVar1 = __xstat(1,param_1,&sStack_a8);\n  if (iVar1 < 0) {\n    piVar2 = __errno_location();\n    pcVar4 = "\'%s\': No such file";\n    if (*piVar2 != 2) {\n      pcVar4 = strerror(*piVar2);\n      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      FUN_00107900(uVar3,param_1,pcVar4);\n      return -1;\n    }\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x4000) {\n    pcVar4 = "Warning: \'%s\' is a directory";\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }\n  uVar3 = dcgettext(0,pcVar4,5);\n  FUN_00107900(uVar3,param_1);\n  return -1;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00108170(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  stat sStack_a8;\n  \n  if (param_1 == (char *)0x0) {\n    return -1;\n  }\n  iVar1 = __xstat(1,param_1,&sStack_a8);\n  if (iVar1 < 0) {\n    piVar2 = __errno_location();\n    pcVar4 = "\'%s\': No such file";\n    if (*piVar2 != 2) {\n      pcVar4 = strerror(*piVar2);\n      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      FUN_00107900(uVar3,param_1,pcVar4);\n      return -1;\n    }\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x4000) {\n    pcVar4 = "Warning: \'%s\' is a directory";\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }\n  uVar3 = dcgettext(0,pcVar4,5);\n  FUN_00107900(uVar3,param_1);\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "stat sStack_a8;" type_identifier identifier ;) (if_statement "if (param_1 == (char *)0x0) {\n    return -1;\n  }" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "iVar1 = __xstat(1,param_1,&sStack_a8);" (assignment_expression "iVar1 = __xstat(1,param_1,&sStack_a8)" identifier = (call_expression "__xstat(1,param_1,&sStack_a8)" identifier (argument_list "(1,param_1,&sStack_a8)" ( number_literal , identifier , (pointer_expression "&sStack_a8" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n    piVar2 = __errno_location();\n    pcVar4 = "\'%s\': No such file";\n    if (*piVar2 != 2) {\n      pcVar4 = strerror(*piVar2);\n      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      FUN_00107900(uVar3,param_1,pcVar4);\n      return -1;\n    }\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x4000) {\n    pcVar4 = "Warning: \'%s\' is a directory";\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar2 = __errno_location();\n    pcVar4 = "\'%s\': No such file";\n    if (*piVar2 != 2) {\n      pcVar4 = strerror(*piVar2);\n      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      FUN_00107900(uVar3,param_1,pcVar4);\n      return -1;\n    }\n  }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar4 = "\'%s\': No such file";" (assignment_expression "pcVar4 = "\'%s\': No such file"" identifier = (string_literal ""\'%s\': No such file"" " escape_sequence string_content escape_sequence string_content ")) ;) (if_statement "if (*piVar2 != 2) {\n      pcVar4 = strerror(*piVar2);\n      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      FUN_00107900(uVar3,param_1,pcVar4);\n      return -1;\n    }" if (parenthesized_expression "(*piVar2 != 2)" ( (binary_expression "*piVar2 != 2" (pointer_expression "*piVar2" * identifier) != number_literal) )) (compound_statement "{\n      pcVar4 = strerror(*piVar2);\n      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      FUN_00107900(uVar3,param_1,pcVar4);\n      return -1;\n    }" { (expression_statement "pcVar4 = strerror(*piVar2);" (assignment_expression "pcVar4 = strerror(*piVar2)" identifier = (call_expression "strerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5)" identifier = (call_expression "dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5)" identifier (argument_list "(0,"Warning: could not locate \'%s\'.  reason: %s",5)" ( number_literal , (string_literal ""Warning: could not locate \'%s\'.  reason: %s"" " string_content escape_sequence string_content escape_sequence string_content ") , number_literal )))) ;) (expression_statement "FUN_00107900(uVar3,param_1,pcVar4);" (call_expression "FUN_00107900(uVar3,param_1,pcVar4)" identifier (argument_list "(uVar3,param_1,pcVar4)" ( identifier , identifier , identifier ))) ;) (return_statement "return -1;" return number_literal ;) })) }) (else_clause "else if ((sStack_a8.st_mode & 0xf000) == 0x4000) {\n    pcVar4 = "Warning: \'%s\' is a directory";\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" else (if_statement "if ((sStack_a8.st_mode & 0xf000) == 0x4000) {\n    pcVar4 = "Warning: \'%s\' is a directory";\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" if (parenthesized_expression "((sStack_a8.st_mode & 0xf000) == 0x4000)" ( (binary_expression "(sStack_a8.st_mode & 0xf000) == 0x4000" (parenthesized_expression "(sStack_a8.st_mode & 0xf000)" ( (binary_expression "sStack_a8.st_mode & 0xf000" (field_expression "sStack_a8.st_mode" identifier . field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    pcVar4 = "Warning: \'%s\' is a directory";\n  }" { (expression_statement "pcVar4 = "Warning: \'%s\' is a directory";" (assignment_expression "pcVar4 = "Warning: \'%s\' is a directory"" identifier = (string_literal ""Warning: \'%s\' is a directory"" " string_content escape_sequence string_content escape_sequence string_content ")) ;) }) (else_clause "else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" else (if_statement "if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" if (parenthesized_expression "((sStack_a8.st_mode & 0xf000) == 0x8000)" ( (binary_expression "(sStack_a8.st_mode & 0xf000) == 0x8000" (parenthesized_expression "(sStack_a8.st_mode & 0xf000)" ( (binary_expression "sStack_a8.st_mode & 0xf000" (field_expression "sStack_a8.st_mode" identifier . field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }" { (if_statement "if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }" if (parenthesized_expression "(-1 < sStack_a8.st_size)" ( (binary_expression "-1 < sStack_a8.st_size" number_literal < (field_expression "sStack_a8.st_size" identifier . field_identifier)) )) (compound_statement "{\n      return sStack_a8.st_size;\n    }" { (return_statement "return sStack_a8.st_size;" return (field_expression "sStack_a8.st_size" identifier . field_identifier) ;) })) (expression_statement "pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";" (assignment_expression "pcVar4 = "Warning: \'%s\' has negative size, probably it is too large"" identifier = (string_literal ""Warning: \'%s\' has negative size, probably it is too large"" " string_content escape_sequence string_content escape_sequence string_content ")) ;) }) (else_clause "else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" else (compound_statement "{\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" { (expression_statement "pcVar4 = "Warning: \'%s\' is not an ordinary file";" (assignment_expression "pcVar4 = "Warning: \'%s\' is not an ordinary file"" identifier = (string_literal ""Warning: \'%s\' is not an ordinary file"" " string_content escape_sequence string_content escape_sequence string_content ")) ;) }))))))) (expression_statement "uVar3 = dcgettext(0,pcVar4,5);" (assignment_expression "uVar3 = dcgettext(0,pcVar4,5)" identifier = (call_expression "dcgettext(0,pcVar4,5)" identifier (argument_list "(0,pcVar4,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "FUN_00107900(uVar3,param_1);" (call_expression "FUN_00107900(uVar3,param_1)" identifier (argument_list "(uVar3,param_1)" ( identifier , identifier ))) ;) (return_statement "return -1;" return number_literal ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (string_literal " escape_sequence string_content escape_sequence string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence string_content escape_sequence string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return LIT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence string_content escape_sequence string_content ")) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (field_expression IDENT . field_identifier)) )) (compound_statement { (return_statement return (field_expression IDENT . field_identifier) ;) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence string_content escape_sequence string_content ")) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence string_content escape_sequence string_content ")) ;) }))))))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "long FUN_00108170(char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  stat sStack_a8;\n  \n  if (param_1 == (char *)0x0) {\n    return -1;\n  }\n  iVar1 = __xstat(1,param_1,&sStack_a8);\n  if (iVar1 < 0) {\n    piVar2 = __errno_location();\n    pcVar4 = "\'%s\': No such file";\n    if (*piVar2 != 2) {\n      pcVar4 = strerror(*piVar2);\n      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      FUN_00107900(uVar3,param_1,pcVar4);\n      return -1;\n    }\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x4000) {\n    pcVar4 = "Warning: \'%s\' is a directory";\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }\n  uVar3 = dcgettext(0,pcVar4,5);\n  FUN_00107900(uVar3,param_1);\n  return -1;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_00108170(char *param_1)" (identifier "FUN_00108170") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  stat sStack_a8;\n  \n  if (param_1 == (char *)0x0) {\n    return -1;\n  }\n  iVar1 = __xstat(1,param_1,&sStack_a8);\n  if (iVar1 < 0) {\n    piVar2 = __errno_location();\n    pcVar4 = "\'%s\': No such file";\n    if (*piVar2 != 2) {\n      pcVar4 = strerror(*piVar2);\n      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      FUN_00107900(uVar3,param_1,pcVar4);\n      return -1;\n    }\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x4000) {\n    pcVar4 = "Warning: \'%s\' is a directory";\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }\n  uVar3 = dcgettext(0,pcVar4,5);\n  FUN_00107900(uVar3,param_1);\n  return -1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "stat sStack_a8;" (type_identifier "stat") (identifier "sStack_a8") (; ";")) (if_statement "if (param_1 == (char *)0x0) {\n    return -1;\n  }" (if "if") (parenthesized_expression "(param_1 == (char *)0x0)" (( "(") (binary_expression "param_1 == (char *)0x0" (identifier "param_1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return -1;\n  }" ({ "{") (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))) (expression_statement "iVar1 = __xstat(1,param_1,&sStack_a8);" (assignment_expression "iVar1 = __xstat(1,param_1,&sStack_a8)" (identifier "iVar1") (= "=") (call_expression "__xstat(1,param_1,&sStack_a8)" (identifier "__xstat") (argument_list "(1,param_1,&sStack_a8)" (( "(") (number_literal "1") (, ",") (identifier "param_1") (, ",") (pointer_expression "&sStack_a8" (& "&") (identifier "sStack_a8")) () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\n    piVar2 = __errno_location();\n    pcVar4 = "\'%s\': No such file";\n    if (*piVar2 != 2) {\n      pcVar4 = strerror(*piVar2);\n      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      FUN_00107900(uVar3,param_1,pcVar4);\n      return -1;\n    }\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x4000) {\n    pcVar4 = "Warning: \'%s\' is a directory";\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    piVar2 = __errno_location();\n    pcVar4 = "\'%s\': No such file";\n    if (*piVar2 != 2) {\n      pcVar4 = strerror(*piVar2);\n      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      FUN_00107900(uVar3,param_1,pcVar4);\n      return -1;\n    }\n  }" ({ "{") (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar4 = "\'%s\': No such file";" (assignment_expression "pcVar4 = "\'%s\': No such file"" (identifier "pcVar4") (= "=") (string_literal ""\'%s\': No such file"" (" """) (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (string_content ": No such file") (" """))) (; ";")) (if_statement "if (*piVar2 != 2) {\n      pcVar4 = strerror(*piVar2);\n      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      FUN_00107900(uVar3,param_1,pcVar4);\n      return -1;\n    }" (if "if") (parenthesized_expression "(*piVar2 != 2)" (( "(") (binary_expression "*piVar2 != 2" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n      pcVar4 = strerror(*piVar2);\n      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);\n      FUN_00107900(uVar3,param_1,pcVar4);\n      return -1;\n    }" ({ "{") (expression_statement "pcVar4 = strerror(*piVar2);" (assignment_expression "pcVar4 = strerror(*piVar2)" (identifier "pcVar4") (= "=") (call_expression "strerror(*piVar2)" (identifier "strerror") (argument_list "(*piVar2)" (( "(") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) () ")")))) (; ";")) (expression_statement "uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5)" (identifier "dcgettext") (argument_list "(0,"Warning: could not locate \'%s\'.  reason: %s",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Warning: could not locate \'%s\'.  reason: %s"" (" """) (string_content "Warning: could not locate ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (string_content ".  reason: %s") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00107900(uVar3,param_1,pcVar4);" (call_expression "FUN_00107900(uVar3,param_1,pcVar4)" (identifier "FUN_00107900") (argument_list "(uVar3,param_1,pcVar4)" (( "(") (identifier "uVar3") (, ",") (identifier "param_1") (, ",") (identifier "pcVar4") () ")"))) (; ";")) (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))) (} "}")) (else_clause "else if ((sStack_a8.st_mode & 0xf000) == 0x4000) {\n    pcVar4 = "Warning: \'%s\' is a directory";\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" (else "else") (if_statement "if ((sStack_a8.st_mode & 0xf000) == 0x4000) {\n    pcVar4 = "Warning: \'%s\' is a directory";\n  }\n  else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" (if "if") (parenthesized_expression "((sStack_a8.st_mode & 0xf000) == 0x4000)" (( "(") (binary_expression "(sStack_a8.st_mode & 0xf000) == 0x4000" (parenthesized_expression "(sStack_a8.st_mode & 0xf000)" (( "(") (binary_expression "sStack_a8.st_mode & 0xf000" (field_expression "sStack_a8.st_mode" (identifier "sStack_a8") (. ".") (field_identifier "st_mode")) (& "&") (number_literal "0xf000")) () ")")) (== "==") (number_literal "0x4000")) () ")")) (compound_statement "{\n    pcVar4 = "Warning: \'%s\' is a directory";\n  }" ({ "{") (expression_statement "pcVar4 = "Warning: \'%s\' is a directory";" (assignment_expression "pcVar4 = "Warning: \'%s\' is a directory"" (identifier "pcVar4") (= "=") (string_literal ""Warning: \'%s\' is a directory"" (" """) (string_content "Warning: ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (string_content " is a directory") (" """))) (; ";")) (} "}")) (else_clause "else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" (else "else") (if_statement "if ((sStack_a8.st_mode & 0xf000) == 0x8000) {\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }\n  else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" (if "if") (parenthesized_expression "((sStack_a8.st_mode & 0xf000) == 0x8000)" (( "(") (binary_expression "(sStack_a8.st_mode & 0xf000) == 0x8000" (parenthesized_expression "(sStack_a8.st_mode & 0xf000)" (( "(") (binary_expression "sStack_a8.st_mode & 0xf000" (field_expression "sStack_a8.st_mode" (identifier "sStack_a8") (. ".") (field_identifier "st_mode")) (& "&") (number_literal "0xf000")) () ")")) (== "==") (number_literal "0x8000")) () ")")) (compound_statement "{\n    if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }\n    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";\n  }" ({ "{") (if_statement "if (-1 < sStack_a8.st_size) {\n      return sStack_a8.st_size;\n    }" (if "if") (parenthesized_expression "(-1 < sStack_a8.st_size)" (( "(") (binary_expression "-1 < sStack_a8.st_size" (number_literal "-1") (< "<") (field_expression "sStack_a8.st_size" (identifier "sStack_a8") (. ".") (field_identifier "st_size"))) () ")")) (compound_statement "{\n      return sStack_a8.st_size;\n    }" ({ "{") (return_statement "return sStack_a8.st_size;" (return "return") (field_expression "sStack_a8.st_size" (identifier "sStack_a8") (. ".") (field_identifier "st_size")) (; ";")) (} "}"))) (expression_statement "pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";" (assignment_expression "pcVar4 = "Warning: \'%s\' has negative size, probably it is too large"" (identifier "pcVar4") (= "=") (string_literal ""Warning: \'%s\' has negative size, probably it is too large"" (" """) (string_content "Warning: ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (string_content " has negative size, probably it is too large") (" """))) (; ";")) (} "}")) (else_clause "else {\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" (else "else") (compound_statement "{\n    pcVar4 = "Warning: \'%s\' is not an ordinary file";\n  }" ({ "{") (expression_statement "pcVar4 = "Warning: \'%s\' is not an ordinary file";" (assignment_expression "pcVar4 = "Warning: \'%s\' is not an ordinary file"" (identifier "pcVar4") (= "=") (string_literal ""Warning: \'%s\' is not an ordinary file"" (" """) (string_content "Warning: ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (string_content " is not an ordinary file") (" """))) (; ";")) (} "}")))))))) (expression_statement "uVar3 = dcgettext(0,pcVar4,5);" (assignment_expression "uVar3 = dcgettext(0,pcVar4,5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,pcVar4,5)" (identifier "dcgettext") (argument_list "(0,pcVar4,5)" (( "(") (number_literal "0") (, ",") (identifier "pcVar4") (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00107900(uVar3,param_1);" (call_expression "FUN_00107900(uVar3,param_1)" (identifier "FUN_00107900") (argument_list "(uVar3,param_1)" (( "(") (identifier "uVar3") (, ",") (identifier "param_1") () ")"))) (; ";")) (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}")))

type_1 function_1(char *var_1)

{
  int var_3;
  int *piVar2;
  char *format;
  char *pcVar3;
  type_2 statbuf;
  
  if (var_1 == (char *)0x0) {
    return -1;
  }
  var_3 = var_2(1,var_1,(type_2 *)&statbuf);
  if (var_3 < 0) {
    piVar2 = var_4();
    pcVar3 = "\'%s\': No such file";
    if (*piVar2 != 2) {
      pcVar3 = var_5(*piVar2);
      format = (char *)var_6(0,"Warning: could not locate \'%s\'.  reason: %s",5);
      var_7(format,var_1,pcVar3);
      return -1;
    }
  }
  else if ((statbuf.st_mode & 0xf000) == 0x4000) {
    pcVar3 = "Warning: \'%s\' is a directory";
  }
  else if ((statbuf.st_mode & 0xf000) == 0x8000) {
    if (-1 < statbuf.st_size) {
      return statbuf.st_size;
    }
    pcVar3 = "Warning: \'%s\' has negative size, probably it is too large";
  }
  else {
    pcVar3 = "Warning: \'%s\' is not an ordinary file";
  }
  pcVar3 = (char *)var_6(0,pcVar3,5);
  var_7(pcVar3,var_1);
  return -1;
}


(translation_unit (function_definition type: (sized_type_specifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (pointer_expression argument: (identifier)))))) (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: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (escape_sequence) (string_content) (escape_sequence) (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence) (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement (number_literal))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence) (string_content))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (field_expression argument: (identifier) field: (field_identifier)))) consequence: (compound_statement (return_statement (field_expression argument: (identifier) field: (field_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence) (string_content))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence) (string_content))))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement (number_literal)))))

long MASKED(char *param_1)

{
  int iVar1;
  int *piVar2;
  undefined8 uVar3;
  char *pcVar4;
  stat sStack_a8;
  
  if (param_1 == (char *)0x0) {
    return -1;
  }
  iVar1 = __xstat(1,param_1,&sStack_a8);
  if (iVar1 < 0) {
    piVar2 = __errno_location();
    pcVar4 = "\'%s\': No such file";
    if (*piVar2 != 2) {
      pcVar4 = strerror(*piVar2);
      uVar3 = dcgettext(0,"Warning: could not locate \'%s\'.  reason: %s",5);
      FUN_00107900(uVar3,param_1,pcVar4);
      return -1;
    }
  }
  else if ((sStack_a8.st_mode & 0xf000) == 0x4000) {
    pcVar4 = "Warning: \'%s\' is a directory";
  }
  else if ((sStack_a8.st_mode & 0xf000) == 0x8000) {
    if (-1 < sStack_a8.st_size) {
      return sStack_a8.st_size;
    }
    pcVar4 = "Warning: \'%s\' has negative size, probably it is too large";
  }
  else {
    pcVar4 = "Warning: \'%s\' is not an ordinary file";
  }
  uVar3 = dcgettext(0,pcVar4,5);
  FUN_00107900(uVar3,param_1);
  return -1;
}

