
_Bool strip_trailing_slashes(char *file)

{
  char cVar1;
  char *pcVar2;
  size_t sVar3;
  
  pcVar2 = last_component(file);
  if (*pcVar2 != '\0') {
    file = pcVar2;
  }
  sVar3 = base_len(file);
  cVar1 = file[sVar3];
  file[sVar3] = '\0';
  return cVar1 != '\0';
}



bool strip_trailing_slashes(char *param_1)

{
  char cVar1;
  char *pcVar2;
  int iVar3;
  
  pcVar2 = (char *)last_component();
  if (*pcVar2 != '\0') {
    param_1 = pcVar2;
  }
  iVar3 = base_len(param_1);
  cVar1 = param_1[iVar3];
  param_1[iVar3] = '\0';
  return cVar1 != '\0';
}


lui gp,0x2
addiu gp,gp,-0x1340
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7f88(gp)
sw ra,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
bal 0x00012310
_or s1,a0,zero
lb s0,0x0(v0)
lw gp,0x10(sp)
movn s1,v0,s0
lw t9,-0x7f84(gp)
bal 0x00012388
_or a0,s1,zero
addu s0,s1,v0
lb v0,0x0(s0)
sb zero,0x0(s0)
lw ra,0x24(sp)
lw s1,0x20(sp)
sltu v0,zero,v0
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "bool strip_trailing_slashes(char *param_1)\n\n{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  pcVar2 = (char *)last_component();\n  if (*pcVar2 != '\0') {\n    param_1 = pcVar2;\n  }\n  iVar3 = base_len(param_1);\n  cVar1 = param_1[iVar3];\n  param_1[iVar3] = '\0';\n  return cVar1 != '\0';\n}\n\n" (function_definition "bool strip_trailing_slashes(char *param_1)\n\n{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  pcVar2 = (char *)last_component();\n  if (*pcVar2 != '\0') {\n    param_1 = pcVar2;\n  }\n  iVar3 = base_len(param_1);\n  cVar1 = param_1[iVar3];\n  param_1[iVar3] = '\0';\n  return cVar1 != '\0';\n}" primitive_type (function_declarator "strip_trailing_slashes(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  pcVar2 = (char *)last_component();\n  if (*pcVar2 != '\0') {\n    param_1 = pcVar2;\n  }\n  iVar3 = base_len(param_1);\n  cVar1 = param_1[iVar3];\n  param_1[iVar3] = '\0';\n  return cVar1 != '\0';\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "pcVar2 = (char *)last_component();" (assignment_expression "pcVar2 = (char *)last_component()" identifier = (cast_expression "(char *)last_component()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "last_component()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (*pcVar2 != '\0') {\n    param_1 = pcVar2;\n  }" if (parenthesized_expression "(*pcVar2 != '\0')" ( (binary_expression "*pcVar2 != '\0'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    param_1 = pcVar2;\n  }" { (expression_statement "param_1 = pcVar2;" (assignment_expression "param_1 = pcVar2" identifier = identifier) ;) })) (expression_statement "iVar3 = base_len(param_1);" (assignment_expression "iVar3 = base_len(param_1)" identifier = (call_expression "base_len(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "cVar1 = param_1[iVar3];" (assignment_expression "cVar1 = param_1[iVar3]" identifier = (subscript_expression "param_1[iVar3]" identifier [ identifier ])) ;) (expression_statement "param_1[iVar3] = '\0';" (assignment_expression "param_1[iVar3] = '\0'" (subscript_expression "param_1[iVar3]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return cVar1 != '\0';" return (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) ;) })))
(translation_unit "_Bool strip_trailing_slashes(char *file)\n\n{\n  char cVar1;\n  char *pcVar2;\n  size_t sVar3;\n  \n  pcVar2 = last_component(file);\n  if (*pcVar2 != '\0') {\n    file = pcVar2;\n  }\n  sVar3 = base_len(file);\n  cVar1 = file[sVar3];\n  file[sVar3] = '\0';\n  return cVar1 != '\0';\n}\n\n" (function_definition "_Bool strip_trailing_slashes(char *file)\n\n{\n  char cVar1;\n  char *pcVar2;\n  size_t sVar3;\n  \n  pcVar2 = last_component(file);\n  if (*pcVar2 != '\0') {\n    file = pcVar2;\n  }\n  sVar3 = base_len(file);\n  cVar1 = file[sVar3];\n  file[sVar3] = '\0';\n  return cVar1 != '\0';\n}" type_identifier (function_declarator "strip_trailing_slashes(char *file)" identifier (parameter_list "(char *file)" ( (parameter_declaration "char *file" primitive_type (pointer_declarator "*file" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  size_t sVar3;\n  \n  pcVar2 = last_component(file);\n  if (*pcVar2 != '\0') {\n    file = pcVar2;\n  }\n  sVar3 = base_len(file);\n  cVar1 = file[sVar3];\n  file[sVar3] = '\0';\n  return cVar1 != '\0';\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (expression_statement "pcVar2 = last_component(file);" (assignment_expression "pcVar2 = last_component(file)" identifier = (call_expression "last_component(file)" identifier (argument_list "(file)" ( identifier )))) ;) (if_statement "if (*pcVar2 != '\0') {\n    file = pcVar2;\n  }" if (parenthesized_expression "(*pcVar2 != '\0')" ( (binary_expression "*pcVar2 != '\0'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    file = pcVar2;\n  }" { (expression_statement "file = pcVar2;" (assignment_expression "file = pcVar2" identifier = identifier) ;) })) (expression_statement "sVar3 = base_len(file);" (assignment_expression "sVar3 = base_len(file)" identifier = (call_expression "base_len(file)" identifier (argument_list "(file)" ( identifier )))) ;) (expression_statement "cVar1 = file[sVar3];" (assignment_expression "cVar1 = file[sVar3]" identifier = (subscript_expression "file[sVar3]" identifier [ identifier ])) ;) (expression_statement "file[sVar3] = '\0';" (assignment_expression "file[sVar3] = '\0'" (subscript_expression "file[sVar3]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return cVar1 != '\0';" return (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) ;) })))
(translation_unit "bool strip_trailing_slashes(char *param_1)\n\n{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  pcVar2 = (char *)last_component();\n  if (*pcVar2 != '\0') {\n    param_1 = pcVar2;\n  }\n  iVar3 = base_len(param_1);\n  cVar1 = param_1[iVar3];\n  param_1[iVar3] = '\0';\n  return cVar1 != '\0';\n}\n\n" (function_definition "bool strip_trailing_slashes(char *param_1)\n\n{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  pcVar2 = (char *)last_component();\n  if (*pcVar2 != '\0') {\n    param_1 = pcVar2;\n  }\n  iVar3 = base_len(param_1);\n  cVar1 = param_1[iVar3];\n  param_1[iVar3] = '\0';\n  return cVar1 != '\0';\n}" primitive_type (function_declarator "strip_trailing_slashes(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  pcVar2 = (char *)last_component();\n  if (*pcVar2 != '\0') {\n    param_1 = pcVar2;\n  }\n  iVar3 = base_len(param_1);\n  cVar1 = param_1[iVar3];\n  param_1[iVar3] = '\0';\n  return cVar1 != '\0';\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "pcVar2 = (char *)last_component();" (assignment_expression "pcVar2 = (char *)last_component()" identifier = (cast_expression "(char *)last_component()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "last_component()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (*pcVar2 != '\0') {\n    param_1 = pcVar2;\n  }" if (parenthesized_expression "(*pcVar2 != '\0')" ( (binary_expression "*pcVar2 != '\0'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    param_1 = pcVar2;\n  }" { (expression_statement "param_1 = pcVar2;" (assignment_expression "param_1 = pcVar2" identifier = identifier) ;) })) (expression_statement "iVar3 = base_len(param_1);" (assignment_expression "iVar3 = base_len(param_1)" identifier = (call_expression "base_len(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "cVar1 = param_1[iVar3];" (assignment_expression "cVar1 = param_1[iVar3]" identifier = (subscript_expression "param_1[iVar3]" identifier [ identifier ])) ;) (expression_statement "param_1[iVar3] = '\0';" (assignment_expression "param_1[iVar3] = '\0'" (subscript_expression "param_1[iVar3]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return cVar1 != '\0';" return (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (char_literal ' escape_sequence ')) ;) (return_statement return (binary_expression IDENT != (char_literal ' escape_sequence ')) ;) })))
(function_definition "bool strip_trailing_slashes(char *param_1)\n\n{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  pcVar2 = (char *)last_component();\n  if (*pcVar2 != '\0') {\n    param_1 = pcVar2;\n  }\n  iVar3 = base_len(param_1);\n  cVar1 = param_1[iVar3];\n  param_1[iVar3] = '\0';\n  return cVar1 != '\0';\n}" (primitive_type "bool") (function_declarator "strip_trailing_slashes(char *param_1)" (identifier "strip_trailing_slashes") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  pcVar2 = (char *)last_component();\n  if (*pcVar2 != '\0') {\n    param_1 = pcVar2;\n  }\n  iVar3 = base_len(param_1);\n  cVar1 = param_1[iVar3];\n  param_1[iVar3] = '\0';\n  return cVar1 != '\0';\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "pcVar2 = (char *)last_component();" (assignment_expression "pcVar2 = (char *)last_component()" (identifier "pcVar2") (= "=") (cast_expression "(char *)last_component()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "last_component()" (identifier "last_component") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (*pcVar2 != '\0') {\n    param_1 = pcVar2;\n  }" (if "if") (parenthesized_expression "(*pcVar2 != '\0')" (( "(") (binary_expression "*pcVar2 != '\0'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    param_1 = pcVar2;\n  }" ({ "{") (expression_statement "param_1 = pcVar2;" (assignment_expression "param_1 = pcVar2" (identifier "param_1") (= "=") (identifier "pcVar2")) (; ";")) (} "}"))) (expression_statement "iVar3 = base_len(param_1);" (assignment_expression "iVar3 = base_len(param_1)" (identifier "iVar3") (= "=") (call_expression "base_len(param_1)" (identifier "base_len") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "cVar1 = param_1[iVar3];" (assignment_expression "cVar1 = param_1[iVar3]" (identifier "cVar1") (= "=") (subscript_expression "param_1[iVar3]" (identifier "param_1") ([ "[") (identifier "iVar3") (] "]"))) (; ";")) (expression_statement "param_1[iVar3] = '\0';" (assignment_expression "param_1[iVar3] = '\0'" (subscript_expression "param_1[iVar3]" (identifier "param_1") ([ "[") (identifier "iVar3") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (return_statement "return cVar1 != '\0';" (return "return") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}")))

type_1 function_1(char *file)

{
  char var_3;
  char *pcVar2;
  size_t sVar3;
  
  pcVar2 = var_1(file);
  if (*pcVar2 != '\0') {
    file = pcVar2;
  }
  sVar3 = var_2(file);
  var_3 = file[sVar3];
  file[sVar3] = '\0';
  return var_3 != '\0';
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (char_literal (escape_sequence)))) (return_statement (binary_expression left: (identifier) right: (char_literal (escape_sequence)))))))

bool MASKED(char *param_1)

{
  char cVar1;
  char *pcVar2;
  int iVar3;
  
  pcVar2 = (char *)last_component();
  if (*pcVar2 != '\0') {
    param_1 = pcVar2;
  }
  iVar3 = base_len(param_1);
  cVar1 = param_1[iVar3];
  param_1[iVar3] = '\0';
  return cVar1 != '\0';
}

