
bfd_boolean is_valid_archive_path(char *pathname)

{
  char *pcVar1;
  char cVar2;
  
  cVar2 = *pathname;
  if (cVar2 == '/') {
    return 0;
  }
  do {
    if (cVar2 == '\0') {
      return 1;
    }
    if (cVar2 == '.') {
      cVar2 = pathname[1];
      if (cVar2 != '.') {
        pathname = pathname + 1;
        if (cVar2 != '\0') goto LAB_0001604a;
        cVar2 = '\0';
        goto LAB_0001605e;
      }
      pcVar1 = pathname + 2;
      pathname = pathname + 2;
      if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {
        return 0;
      }
    }
    do {
      pathname = pathname + 1;
      cVar2 = *pathname;
      if (cVar2 == '\0') goto LAB_0001605e;
LAB_0001604a:
    } while (cVar2 != '/');
    do {
      pathname = pathname + 1;
      cVar2 = *pathname;
LAB_0001605e:
    } while (cVar2 == '/');
  } while( true );
}



undefined4 FUN_00016020(char *param_1)

{
  char *pcVar1;
  char cVar2;
  
  cVar2 = *param_1;
  if (cVar2 == '/') {
    return 0;
  }
  do {
    if (cVar2 == '\0') {
      return 1;
    }
    if (cVar2 == '.') {
      cVar2 = param_1[1];
      if (cVar2 != '.') {
        param_1 = param_1 + 1;
        if (cVar2 != '\0') goto LAB_0001604a;
        cVar2 = '\0';
        goto LAB_0001605e;
      }
      pcVar1 = param_1 + 2;
      param_1 = param_1 + 2;
      if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {
        return 0;
      }
    }
    do {
      param_1 = param_1 + 1;
      cVar2 = *param_1;
      if (cVar2 == '\0') goto LAB_0001605e;
LAB_0001604a:
    } while (cVar2 != '/');
    do {
      param_1 = param_1 + 1;
      cVar2 = *param_1;
LAB_0001605e:
    } while (cVar2 == '/');
  } while( true );
}


MOV EDX,dword ptr [ESP + 0x4]
XOR EAX,EAX
MOVZX ECX,byte ptr [EDX]
CMP CL,0x2f
JZ 0x0001609b
TEST CL,CL
JZ 0x00016067
LEA ESI,[ESI]
CMP CL,0x2e
JZ 0x00016070
LEA ESI,[ESI]
ADD EDX,0x1
MOVZX ECX,byte ptr [EDX]
TEST CL,CL
JZ 0x0001605e
CMP CL,0x2f
JNZ 0x00016040
CMP CL,0x2f
JNZ 0x0001602e
LEA ESI,[ESI]
ADD EDX,0x1
MOVZX ECX,byte ptr [EDX]
CMP CL,0x2f
JZ 0x00016058
TEST CL,CL
JNZ 0x00016038
MOV EAX,0x1
RET
MOVZX ECX,byte ptr [EDX + 0x1]
CMP CL,0x2e
JZ 0x00016088
ADD EDX,0x1
TEST CL,CL
JNZ 0x0001604a
JMP 0x0001605e
MOVZX EAX,byte ptr [EDX + 0x2]
LEA ECX,[EDX + 0x2]
CMP AL,0x2f
JZ 0x0001609c
TEST AL,AL
JZ 0x0001609c
MOV EDX,ECX
JMP 0x00016040
RET
XOR EAX,EAX
RET
(translation_unit "undefined4 FUN_00016020(char *param_1)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  cVar2 = *param_1;\n  if (cVar2 == '/') {\n    return 0;\n  }\n  do {\n    if (cVar2 == '\0') {\n      return 1;\n    }\n    if (cVar2 == '.') {\n      cVar2 = param_1[1];\n      if (cVar2 != '.') {\n        param_1 = param_1 + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }\n      pcVar1 = param_1 + 2;\n      param_1 = param_1 + 2;\n      if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {\n        return 0;\n      }\n    }\n    do {\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\n      if (cVar2 == '\0') goto LAB_0001605e;\nLAB_0001604a:\n    } while (cVar2 != '/');\n    do {\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\nLAB_0001605e:\n    } while (cVar2 == '/');\n  } while( true );\n}\n\n" (ERROR "undefined4 FUN_00016020(char *param_1)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  cVar2 = *param_1;\n  if (cVar2 == '/') {\n    return 0;\n  }\n  do {\n    if (cVar2 == '\0') {\n      return 1;\n    }\n    if (cVar2 == '.') {\n      cVar2 = param_1[1];\n      if (cVar2 != '.') {\n        param_1 = param_1 + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }\n      pcVar1 = param_1 + 2;\n      param_1 = param_1 + 2;\n      if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {\n        return 0;\n      }\n    }\n    do {\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\n      if (cVar2 == '\0') goto LAB_0001605e;\nLAB_0001604a:\n    } while (cVar2 != '/');\n    do {\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\nLAB_0001605e:\n    } while (cVar2 == '/');\n  } while( true );\n}" type_identifier (function_declarator "FUN_00016020(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar2 == '/') {\n    return 0;\n  }" if (parenthesized_expression "(cVar2 == '/')" ( (binary_expression "cVar2 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) do { (if_statement "if (cVar2 == '\0') {\n      return 1;\n    }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (cVar2 == '.') {\n      cVar2 = param_1[1];\n      if (cVar2 != '.') {\n        param_1 = param_1 + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }\n      pcVar1 = param_1 + 2;\n      param_1 = param_1 + 2;\n      if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {\n        return 0;\n      }\n    }" if (parenthesized_expression "(cVar2 == '.')" ( (binary_expression "cVar2 == '.'" identifier == (char_literal "'.'" ' character ')) )) (compound_statement "{\n      cVar2 = param_1[1];\n      if (cVar2 != '.') {\n        param_1 = param_1 + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }\n      pcVar1 = param_1 + 2;\n      param_1 = param_1 + 2;\n      if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {\n        return 0;\n      }\n    }" { (expression_statement "cVar2 = param_1[1];" (assignment_expression "cVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (cVar2 != '.') {\n        param_1 = param_1 + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }" if (parenthesized_expression "(cVar2 != '.')" ( (binary_expression "cVar2 != '.'" identifier != (char_literal "'.'" ' character ')) )) (compound_statement "{\n        param_1 = param_1 + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (cVar2 != '\0') goto LAB_0001604a;" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0001604a;" goto statement_identifier ;)) (expression_statement "cVar2 = '\0';" (assignment_expression "cVar2 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (goto_statement "goto LAB_0001605e;" goto statement_identifier ;) })) (expression_statement "pcVar1 = param_1 + 2;" (assignment_expression "pcVar1 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "param_1 = param_1 + 2;" (assignment_expression "param_1 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (if_statement "if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {\n        return 0;\n      }" if (parenthesized_expression "((*pcVar1 == '/') || (*pcVar1 == '\0'))" ( (binary_expression "(*pcVar1 == '/') || (*pcVar1 == '\0')" (parenthesized_expression "(*pcVar1 == '/')" ( (binary_expression "*pcVar1 == '/'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'/'" ' character ')) )) || (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) do (compound_statement "{\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\n      if (cVar2 == '\0') goto LAB_0001605e;\nLAB_0001604a:\n    } while (cVar2 != '/');\n    do {\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\nLAB_0001605e:\n    } while (cVar2 == '/');\n  } while( true );\n}" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar2 == '\0') goto LAB_0001605e;" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0001605e;" goto statement_identifier ;)) (labeled_statement "LAB_0001604a:\n    } while (cVar2 != '/');" statement_identifier : (ERROR "}" }) (while_statement "while (cVar2 != '/');" while (parenthesized_expression "(cVar2 != '/')" ( (binary_expression "cVar2 != '/'" identifier != (char_literal "'/'" ' character ')) )) (expression_statement ";" ;))) (do_statement "do {\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\nLAB_0001605e:\n    } while (cVar2 == '/');\n  } while( true );" do (compound_statement "{\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\nLAB_0001605e:\n    } while (cVar2 == '/');\n  }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (labeled_statement "LAB_0001605e:\n    } while (cVar2 == '/');" statement_identifier : (ERROR "}" }) (while_statement "while (cVar2 == '/');" while (parenthesized_expression "(cVar2 == '/')" ( (binary_expression "cVar2 == '/'" identifier == (char_literal "'/'" ' character ')) )) (expression_statement ";" ;))) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "bfd_boolean is_valid_archive_path(char *pathname)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  cVar2 = *pathname;\n  if (cVar2 == '/') {\n    return 0;\n  }\n  do {\n    if (cVar2 == '\0') {\n      return 1;\n    }\n    if (cVar2 == '.') {\n      cVar2 = pathname[1];\n      if (cVar2 != '.') {\n        pathname = pathname + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }\n      pcVar1 = pathname + 2;\n      pathname = pathname + 2;\n      if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {\n        return 0;\n      }\n    }\n    do {\n      pathname = pathname + 1;\n      cVar2 = *pathname;\n      if (cVar2 == '\0') goto LAB_0001605e;\nLAB_0001604a:\n    } while (cVar2 != '/');\n    do {\n      pathname = pathname + 1;\n      cVar2 = *pathname;\nLAB_0001605e:\n    } while (cVar2 == '/');\n  } while( true );\n}\n\n" (ERROR "bfd_boolean is_valid_archive_path(char *pathname)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  cVar2 = *pathname;\n  if (cVar2 == '/') {\n    return 0;\n  }\n  do {\n    if (cVar2 == '\0') {\n      return 1;\n    }\n    if (cVar2 == '.') {\n      cVar2 = pathname[1];\n      if (cVar2 != '.') {\n        pathname = pathname + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }\n      pcVar1 = pathname + 2;\n      pathname = pathname + 2;\n      if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {\n        return 0;\n      }\n    }\n    do {\n      pathname = pathname + 1;\n      cVar2 = *pathname;\n      if (cVar2 == '\0') goto LAB_0001605e;\nLAB_0001604a:\n    } while (cVar2 != '/');\n    do {\n      pathname = pathname + 1;\n      cVar2 = *pathname;\nLAB_0001605e:\n    } while (cVar2 == '/');\n  } while( true );\n}" type_identifier (function_declarator "is_valid_archive_path(char *pathname)" identifier (parameter_list "(char *pathname)" ( (parameter_declaration "char *pathname" primitive_type (pointer_declarator "*pathname" * identifier)) ))) { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (expression_statement "cVar2 = *pathname;" (assignment_expression "cVar2 = *pathname" identifier = (pointer_expression "*pathname" * identifier)) ;) (if_statement "if (cVar2 == '/') {\n    return 0;\n  }" if (parenthesized_expression "(cVar2 == '/')" ( (binary_expression "cVar2 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) do { (if_statement "if (cVar2 == '\0') {\n      return 1;\n    }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (cVar2 == '.') {\n      cVar2 = pathname[1];\n      if (cVar2 != '.') {\n        pathname = pathname + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }\n      pcVar1 = pathname + 2;\n      pathname = pathname + 2;\n      if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {\n        return 0;\n      }\n    }" if (parenthesized_expression "(cVar2 == '.')" ( (binary_expression "cVar2 == '.'" identifier == (char_literal "'.'" ' character ')) )) (compound_statement "{\n      cVar2 = pathname[1];\n      if (cVar2 != '.') {\n        pathname = pathname + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }\n      pcVar1 = pathname + 2;\n      pathname = pathname + 2;\n      if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {\n        return 0;\n      }\n    }" { (expression_statement "cVar2 = pathname[1];" (assignment_expression "cVar2 = pathname[1]" identifier = (subscript_expression "pathname[1]" identifier [ number_literal ])) ;) (if_statement "if (cVar2 != '.') {\n        pathname = pathname + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }" if (parenthesized_expression "(cVar2 != '.')" ( (binary_expression "cVar2 != '.'" identifier != (char_literal "'.'" ' character ')) )) (compound_statement "{\n        pathname = pathname + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }" { (expression_statement "pathname = pathname + 1;" (assignment_expression "pathname = pathname + 1" identifier = (binary_expression "pathname + 1" identifier + number_literal)) ;) (if_statement "if (cVar2 != '\0') goto LAB_0001604a;" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0001604a;" goto statement_identifier ;)) (expression_statement "cVar2 = '\0';" (assignment_expression "cVar2 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (goto_statement "goto LAB_0001605e;" goto statement_identifier ;) })) (expression_statement "pcVar1 = pathname + 2;" (assignment_expression "pcVar1 = pathname + 2" identifier = (binary_expression "pathname + 2" identifier + number_literal)) ;) (expression_statement "pathname = pathname + 2;" (assignment_expression "pathname = pathname + 2" identifier = (binary_expression "pathname + 2" identifier + number_literal)) ;) (if_statement "if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {\n        return 0;\n      }" if (parenthesized_expression "((*pcVar1 == '/') || (*pcVar1 == '\0'))" ( (binary_expression "(*pcVar1 == '/') || (*pcVar1 == '\0')" (parenthesized_expression "(*pcVar1 == '/')" ( (binary_expression "*pcVar1 == '/'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'/'" ' character ')) )) || (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) do (compound_statement "{\n      pathname = pathname + 1;\n      cVar2 = *pathname;\n      if (cVar2 == '\0') goto LAB_0001605e;\nLAB_0001604a:\n    } while (cVar2 != '/');\n    do {\n      pathname = pathname + 1;\n      cVar2 = *pathname;\nLAB_0001605e:\n    } while (cVar2 == '/');\n  } while( true );\n}" { (expression_statement "pathname = pathname + 1;" (assignment_expression "pathname = pathname + 1" identifier = (binary_expression "pathname + 1" identifier + number_literal)) ;) (expression_statement "cVar2 = *pathname;" (assignment_expression "cVar2 = *pathname" identifier = (pointer_expression "*pathname" * identifier)) ;) (if_statement "if (cVar2 == '\0') goto LAB_0001605e;" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0001605e;" goto statement_identifier ;)) (labeled_statement "LAB_0001604a:\n    } while (cVar2 != '/');" statement_identifier : (ERROR "}" }) (while_statement "while (cVar2 != '/');" while (parenthesized_expression "(cVar2 != '/')" ( (binary_expression "cVar2 != '/'" identifier != (char_literal "'/'" ' character ')) )) (expression_statement ";" ;))) (do_statement "do {\n      pathname = pathname + 1;\n      cVar2 = *pathname;\nLAB_0001605e:\n    } while (cVar2 == '/');\n  } while( true );" do (compound_statement "{\n      pathname = pathname + 1;\n      cVar2 = *pathname;\nLAB_0001605e:\n    } while (cVar2 == '/');\n  }" { (expression_statement "pathname = pathname + 1;" (assignment_expression "pathname = pathname + 1" identifier = (binary_expression "pathname + 1" identifier + number_literal)) ;) (expression_statement "cVar2 = *pathname;" (assignment_expression "cVar2 = *pathname" identifier = (pointer_expression "*pathname" * identifier)) ;) (labeled_statement "LAB_0001605e:\n    } while (cVar2 == '/');" statement_identifier : (ERROR "}" }) (while_statement "while (cVar2 == '/');" while (parenthesized_expression "(cVar2 == '/')" ( (binary_expression "cVar2 == '/'" identifier == (char_literal "'/'" ' character ')) )) (expression_statement ";" ;))) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "undefined4 FUN_00016020(char *param_1)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  cVar2 = *param_1;\n  if (cVar2 == '/') {\n    return 0;\n  }\n  do {\n    if (cVar2 == '\0') {\n      return 1;\n    }\n    if (cVar2 == '.') {\n      cVar2 = param_1[1];\n      if (cVar2 != '.') {\n        param_1 = param_1 + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }\n      pcVar1 = param_1 + 2;\n      param_1 = param_1 + 2;\n      if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {\n        return 0;\n      }\n    }\n    do {\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\n      if (cVar2 == '\0') goto LAB_0001605e;\nLAB_0001604a:\n    } while (cVar2 != '/');\n    do {\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\nLAB_0001605e:\n    } while (cVar2 == '/');\n  } while( true );\n}\n\n" (ERROR "undefined4 FUN_00016020(char *param_1)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  cVar2 = *param_1;\n  if (cVar2 == '/') {\n    return 0;\n  }\n  do {\n    if (cVar2 == '\0') {\n      return 1;\n    }\n    if (cVar2 == '.') {\n      cVar2 = param_1[1];\n      if (cVar2 != '.') {\n        param_1 = param_1 + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }\n      pcVar1 = param_1 + 2;\n      param_1 = param_1 + 2;\n      if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {\n        return 0;\n      }\n    }\n    do {\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\n      if (cVar2 == '\0') goto LAB_0001605e;\nLAB_0001604a:\n    } while (cVar2 != '/');\n    do {\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\nLAB_0001605e:\n    } while (cVar2 == '/');\n  } while( true );\n}" type_identifier (function_declarator "FUN_00016020(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar2 == '/') {\n    return 0;\n  }" if (parenthesized_expression "(cVar2 == '/')" ( (binary_expression "cVar2 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) do { (if_statement "if (cVar2 == '\0') {\n      return 1;\n    }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (cVar2 == '.') {\n      cVar2 = param_1[1];\n      if (cVar2 != '.') {\n        param_1 = param_1 + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }\n      pcVar1 = param_1 + 2;\n      param_1 = param_1 + 2;\n      if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {\n        return 0;\n      }\n    }" if (parenthesized_expression "(cVar2 == '.')" ( (binary_expression "cVar2 == '.'" identifier == (char_literal "'.'" ' character ')) )) (compound_statement "{\n      cVar2 = param_1[1];\n      if (cVar2 != '.') {\n        param_1 = param_1 + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }\n      pcVar1 = param_1 + 2;\n      param_1 = param_1 + 2;\n      if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {\n        return 0;\n      }\n    }" { (expression_statement "cVar2 = param_1[1];" (assignment_expression "cVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (cVar2 != '.') {\n        param_1 = param_1 + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }" if (parenthesized_expression "(cVar2 != '.')" ( (binary_expression "cVar2 != '.'" identifier != (char_literal "'.'" ' character ')) )) (compound_statement "{\n        param_1 = param_1 + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (cVar2 != '\0') goto LAB_0001604a;" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0001604a;" goto statement_identifier ;)) (expression_statement "cVar2 = '\0';" (assignment_expression "cVar2 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (goto_statement "goto LAB_0001605e;" goto statement_identifier ;) })) (expression_statement "pcVar1 = param_1 + 2;" (assignment_expression "pcVar1 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "param_1 = param_1 + 2;" (assignment_expression "param_1 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (if_statement "if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {\n        return 0;\n      }" if (parenthesized_expression "((*pcVar1 == '/') || (*pcVar1 == '\0'))" ( (binary_expression "(*pcVar1 == '/') || (*pcVar1 == '\0')" (parenthesized_expression "(*pcVar1 == '/')" ( (binary_expression "*pcVar1 == '/'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'/'" ' character ')) )) || (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) do (compound_statement "{\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\n      if (cVar2 == '\0') goto LAB_0001605e;\nLAB_0001604a:\n    } while (cVar2 != '/');\n    do {\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\nLAB_0001605e:\n    } while (cVar2 == '/');\n  } while( true );\n}" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar2 == '\0') goto LAB_0001605e;" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0001605e;" goto statement_identifier ;)) (labeled_statement "LAB_0001604a:\n    } while (cVar2 != '/');" statement_identifier : (ERROR "}" }) (while_statement "while (cVar2 != '/');" while (parenthesized_expression "(cVar2 != '/')" ( (binary_expression "cVar2 != '/'" identifier != (char_literal "'/'" ' character ')) )) (expression_statement ";" ;))) (do_statement "do {\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\nLAB_0001605e:\n    } while (cVar2 == '/');\n  } while( true );" do (compound_statement "{\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\nLAB_0001605e:\n    } while (cVar2 == '/');\n  }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (labeled_statement "LAB_0001605e:\n    } while (cVar2 == '/');" statement_identifier : (ERROR "}" }) (while_statement "while (cVar2 == '/');" while (parenthesized_expression "(cVar2 == '/')" ( (binary_expression "cVar2 == '/'" identifier == (char_literal "'/'" ' character ')) )) (expression_statement ";" ;))) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (ERROR TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (return_statement return LIT ;) })) do { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (return_statement return LIT ;) })) })) do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (ERROR }) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (expression_statement ;))) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (labeled_statement statement_identifier : (ERROR }) (while_statement while (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (expression_statement ;))) }) while (parenthesized_expression ( BOOL )) ;) })))
(ERROR "undefined4 FUN_00016020(char *param_1)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  cVar2 = *param_1;\n  if (cVar2 == '/') {\n    return 0;\n  }\n  do {\n    if (cVar2 == '\0') {\n      return 1;\n    }\n    if (cVar2 == '.') {\n      cVar2 = param_1[1];\n      if (cVar2 != '.') {\n        param_1 = param_1 + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }\n      pcVar1 = param_1 + 2;\n      param_1 = param_1 + 2;\n      if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {\n        return 0;\n      }\n    }\n    do {\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\n      if (cVar2 == '\0') goto LAB_0001605e;\nLAB_0001604a:\n    } while (cVar2 != '/');\n    do {\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\nLAB_0001605e:\n    } while (cVar2 == '/');\n  } while( true );\n}" (type_identifier "undefined4") (function_declarator "FUN_00016020(char *param_1)" (identifier "FUN_00016020") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" (identifier "cVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (cVar2 == '/') {\n    return 0;\n  }" (if "if") (parenthesized_expression "(cVar2 == '/')" (( "(") (binary_expression "cVar2 == '/'" (identifier "cVar2") (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (do "do") ({ "{") (if_statement "if (cVar2 == '\0') {\n      return 1;\n    }" (if "if") (parenthesized_expression "(cVar2 == '\0')" (( "(") (binary_expression "cVar2 == '\0'" (identifier "cVar2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (cVar2 == '.') {\n      cVar2 = param_1[1];\n      if (cVar2 != '.') {\n        param_1 = param_1 + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }\n      pcVar1 = param_1 + 2;\n      param_1 = param_1 + 2;\n      if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {\n        return 0;\n      }\n    }" (if "if") (parenthesized_expression "(cVar2 == '.')" (( "(") (binary_expression "cVar2 == '.'" (identifier "cVar2") (== "==") (char_literal "'.'" (' "'") (character ".") (' "'"))) () ")")) (compound_statement "{\n      cVar2 = param_1[1];\n      if (cVar2 != '.') {\n        param_1 = param_1 + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }\n      pcVar1 = param_1 + 2;\n      param_1 = param_1 + 2;\n      if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {\n        return 0;\n      }\n    }" ({ "{") (expression_statement "cVar2 = param_1[1];" (assignment_expression "cVar2 = param_1[1]" (identifier "cVar2") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (cVar2 != '.') {\n        param_1 = param_1 + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }" (if "if") (parenthesized_expression "(cVar2 != '.')" (( "(") (binary_expression "cVar2 != '.'" (identifier "cVar2") (!= "!=") (char_literal "'.'" (' "'") (character ".") (' "'"))) () ")")) (compound_statement "{\n        param_1 = param_1 + 1;\n        if (cVar2 != '\0') goto LAB_0001604a;\n        cVar2 = '\0';\n        goto LAB_0001605e;\n      }" ({ "{") (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (cVar2 != '\0') goto LAB_0001604a;" (if "if") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_0001604a;" (goto "goto") (statement_identifier "LAB_0001604a") (; ";"))) (expression_statement "cVar2 = '\0';" (assignment_expression "cVar2 = '\0'" (identifier "cVar2") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (goto_statement "goto LAB_0001605e;" (goto "goto") (statement_identifier "LAB_0001605e") (; ";")) (} "}"))) (expression_statement "pcVar1 = param_1 + 2;" (assignment_expression "pcVar1 = param_1 + 2" (identifier "pcVar1") (= "=") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "param_1 = param_1 + 2;" (assignment_expression "param_1 = param_1 + 2" (identifier "param_1") (= "=") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {\n        return 0;\n      }" (if "if") (parenthesized_expression "((*pcVar1 == '/') || (*pcVar1 == '\0'))" (( "(") (binary_expression "(*pcVar1 == '/') || (*pcVar1 == '\0')" (parenthesized_expression "(*pcVar1 == '/')" (( "(") (binary_expression "*pcVar1 == '/'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(*pcVar1 == '\0')" (( "(") (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (do "do") (compound_statement "{\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\n      if (cVar2 == '\0') goto LAB_0001605e;\nLAB_0001604a:\n    } while (cVar2 != '/');\n    do {\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\nLAB_0001605e:\n    } while (cVar2 == '/');\n  } while( true );\n}" ({ "{") (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" (identifier "cVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (cVar2 == '\0') goto LAB_0001605e;" (if "if") (parenthesized_expression "(cVar2 == '\0')" (( "(") (binary_expression "cVar2 == '\0'" (identifier "cVar2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_0001605e;" (goto "goto") (statement_identifier "LAB_0001605e") (; ";"))) (labeled_statement "LAB_0001604a:\n    } while (cVar2 != '/');" (statement_identifier "LAB_0001604a") (: ":") (ERROR "}" (} "}")) (while_statement "while (cVar2 != '/');" (while "while") (parenthesized_expression "(cVar2 != '/')" (( "(") (binary_expression "cVar2 != '/'" (identifier "cVar2") (!= "!=") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (expression_statement ";" (; ";")))) (do_statement "do {\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\nLAB_0001605e:\n    } while (cVar2 == '/');\n  } while( true );" (do "do") (compound_statement "{\n      param_1 = param_1 + 1;\n      cVar2 = *param_1;\nLAB_0001605e:\n    } while (cVar2 == '/');\n  }" ({ "{") (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" (identifier "cVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (labeled_statement "LAB_0001605e:\n    } while (cVar2 == '/');" (statement_identifier "LAB_0001605e") (: ":") (ERROR "}" (} "}")) (while_statement "while (cVar2 == '/');" (while "while") (parenthesized_expression "(cVar2 == '/')" (( "(") (binary_expression "cVar2 == '/'" (identifier "cVar2") (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (expression_statement ";" (; ";")))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

bfd_boolean is_valid_archive_path(char *pathname)

{
  char *pcVar1;
  char cVar2;
  
  cVar2 = *pathname;
  if (cVar2 == '/') {
    return 0;
  }
  do {
    if (cVar2 == '\0') {
      return 1;
    }
    if (cVar2 == '.') {
      cVar2 = pathname[1];
      if (cVar2 != '.') {
        pathname = pathname + 1;
        if (cVar2 != '\0') goto LAB_0001604a;
        cVar2 = '\0';
        goto LAB_0001605e;
      }
      pcVar1 = pathname + 2;
      pathname = pathname + 2;
      if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {
        return 0;
      }
    }
    do {
      pathname = pathname + 1;
      cVar2 = *pathname;
      if (cVar2 == '\0') goto LAB_0001605e;
LAB_0001604a:
    } while (cVar2 != '/');
    do {
      pathname = pathname + 1;
      cVar2 = *pathname;
LAB_0001605e:
    } while (cVar2 == '/');
  } while( true );
}


(translation_unit (ERROR type: (type_identifier) (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (char_literal (escape_sequence)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (return_statement (number_literal)))))) (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (ERROR) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) body: (expression_statement))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (labeled_statement label: (statement_identifier) (ERROR) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) body: (expression_statement)))) condition: (parenthesized_expression (true))))))

undefined4 MASKED(char *param_1)

{
  char *pcVar1;
  char cVar2;
  
  cVar2 = *param_1;
  if (cVar2 == '/') {
    return 0;
  }
  do {
    if (cVar2 == '\0') {
      return 1;
    }
    if (cVar2 == '.') {
      cVar2 = param_1[1];
      if (cVar2 != '.') {
        param_1 = param_1 + 1;
        if (cVar2 != '\0') goto LAB_0001604a;
        cVar2 = '\0';
        goto LAB_0001605e;
      }
      pcVar1 = param_1 + 2;
      param_1 = param_1 + 2;
      if ((*pcVar1 == '/') || (*pcVar1 == '\0')) {
        return 0;
      }
    }
    do {
      param_1 = param_1 + 1;
      cVar2 = *param_1;
      if (cVar2 == '\0') goto LAB_0001605e;
LAB_0001604a:
    } while (cVar2 != '/');
    do {
      param_1 = param_1 + 1;
      cVar2 = *param_1;
LAB_0001605e:
    } while (cVar2 == '/');
  } while( true );
}

