
char * lbasename(char *name)

{
  char cVar1;
  char *base;
  char *pcVar2;
  
  cVar1 = *name;
  if (cVar1 != '\0') {
    pcVar2 = name + 1;
    do {
      if (cVar1 == '/') {
        name = pcVar2;
      }
      cVar1 = *pcVar2;
      pcVar2 = pcVar2 + 1;
    } while (cVar1 != '\0');
  }
  return name;
}



char * lbasename(char *param_1)

{
  char cVar1;
  char *pcVar2;
  
  cVar1 = *param_1;
  if (cVar1 != '\0') {
    pcVar2 = param_1 + 1;
    do {
      if (cVar1 == '/') {
        param_1 = pcVar2;
      }
      cVar1 = *pcVar2;
      pcVar2 = pcVar2 + 1;
    } while (cVar1 != '\0');
  }
  return param_1;
}


lb v1,0x0(a0)
beq v1,zero,0x00015204
_or v0,a0,zero
addiu a0,a0,0x1
xori v1,v1,0x2f
movz v0,a0,v1
lb v1,0x0(a0)
bne v1,zero,0x000151f0
_addiu a0,a0,0x1
jr ra
_nop
(translation_unit "char * lbasename(char *param_1)\n\n{\n  char cVar1;\n  char *pcVar2;\n  \n  cVar1 = *param_1;\n  if (cVar1 != '\0') {\n    pcVar2 = param_1 + 1;\n    do {\n      if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');\n  }\n  return param_1;\n}\n\n" (function_definition "char * lbasename(char *param_1)\n\n{\n  char cVar1;\n  char *pcVar2;\n  \n  cVar1 = *param_1;\n  if (cVar1 != '\0') {\n    pcVar2 = param_1 + 1;\n    do {\n      if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');\n  }\n  return param_1;\n}" primitive_type (pointer_declarator "* lbasename(char *param_1)" * (function_declarator "lbasename(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  \n  cVar1 = *param_1;\n  if (cVar1 != '\0') {\n    pcVar2 = param_1 + 1;\n    do {\n      if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');\n  }\n  return param_1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar1 != '\0') {\n    pcVar2 = param_1 + 1;\n    do {\n      if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar2 = param_1 + 1;\n    do {\n      if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');\n  }" { (expression_statement "pcVar2 = param_1 + 1;" (assignment_expression "pcVar2 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (do_statement "do {\n      if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');" do (compound_statement "{\n      if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    }" { (if_statement "if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }" if (parenthesized_expression "(cVar1 == '/')" ( (binary_expression "cVar1 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n        param_1 = pcVar2;\n      }" { (expression_statement "param_1 = pcVar2;" (assignment_expression "param_1 = pcVar2" identifier = identifier) ;) })) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "char * lbasename(char *name)\n\n{\n  char cVar1;\n  char *base;\n  char *pcVar2;\n  \n  cVar1 = *name;\n  if (cVar1 != '\0') {\n    pcVar2 = name + 1;\n    do {\n      if (cVar1 == '/') {\n        name = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');\n  }\n  return name;\n}\n\n" (function_definition "char * lbasename(char *name)\n\n{\n  char cVar1;\n  char *base;\n  char *pcVar2;\n  \n  cVar1 = *name;\n  if (cVar1 != '\0') {\n    pcVar2 = name + 1;\n    do {\n      if (cVar1 == '/') {\n        name = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');\n  }\n  return name;\n}" primitive_type (pointer_declarator "* lbasename(char *name)" * (function_declarator "lbasename(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  char *base;\n  char *pcVar2;\n  \n  cVar1 = *name;\n  if (cVar1 != '\0') {\n    pcVar2 = name + 1;\n    do {\n      if (cVar1 == '/') {\n        name = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');\n  }\n  return name;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *base;" primitive_type (pointer_declarator "*base" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "cVar1 = *name;" (assignment_expression "cVar1 = *name" identifier = (pointer_expression "*name" * identifier)) ;) (if_statement "if (cVar1 != '\0') {\n    pcVar2 = name + 1;\n    do {\n      if (cVar1 == '/') {\n        name = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar2 = name + 1;\n    do {\n      if (cVar1 == '/') {\n        name = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');\n  }" { (expression_statement "pcVar2 = name + 1;" (assignment_expression "pcVar2 = name + 1" identifier = (binary_expression "name + 1" identifier + number_literal)) ;) (do_statement "do {\n      if (cVar1 == '/') {\n        name = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');" do (compound_statement "{\n      if (cVar1 == '/') {\n        name = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    }" { (if_statement "if (cVar1 == '/') {\n        name = pcVar2;\n      }" if (parenthesized_expression "(cVar1 == '/')" ( (binary_expression "cVar1 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n        name = pcVar2;\n      }" { (expression_statement "name = pcVar2;" (assignment_expression "name = pcVar2" identifier = identifier) ;) })) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (return_statement "return name;" return identifier ;) })))
(translation_unit "char * lbasename(char *param_1)\n\n{\n  char cVar1;\n  char *pcVar2;\n  \n  cVar1 = *param_1;\n  if (cVar1 != '\0') {\n    pcVar2 = param_1 + 1;\n    do {\n      if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');\n  }\n  return param_1;\n}\n\n" (function_definition "char * lbasename(char *param_1)\n\n{\n  char cVar1;\n  char *pcVar2;\n  \n  cVar1 = *param_1;\n  if (cVar1 != '\0') {\n    pcVar2 = param_1 + 1;\n    do {\n      if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');\n  }\n  return param_1;\n}" primitive_type (pointer_declarator "* lbasename(char *param_1)" * (function_declarator "lbasename(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  \n  cVar1 = *param_1;\n  if (cVar1 != '\0') {\n    pcVar2 = param_1 + 1;\n    do {\n      if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');\n  }\n  return param_1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar1 != '\0') {\n    pcVar2 = param_1 + 1;\n    do {\n      if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar2 = param_1 + 1;\n    do {\n      if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');\n  }" { (expression_statement "pcVar2 = param_1 + 1;" (assignment_expression "pcVar2 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (do_statement "do {\n      if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');" do (compound_statement "{\n      if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    }" { (if_statement "if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }" if (parenthesized_expression "(cVar1 == '/')" ( (binary_expression "cVar1 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n        param_1 = pcVar2;\n      }" { (expression_statement "param_1 = pcVar2;" (assignment_expression "param_1 = pcVar2" identifier = identifier) ;) })) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) })) (return_statement return IDENT ;) })))
(function_definition "char * lbasename(char *param_1)\n\n{\n  char cVar1;\n  char *pcVar2;\n  \n  cVar1 = *param_1;\n  if (cVar1 != '\0') {\n    pcVar2 = param_1 + 1;\n    do {\n      if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');\n  }\n  return param_1;\n}" (primitive_type "char") (pointer_declarator "* lbasename(char *param_1)" (* "*") (function_declarator "lbasename(char *param_1)" (identifier "lbasename") (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  \n  cVar1 = *param_1;\n  if (cVar1 != '\0') {\n    pcVar2 = param_1 + 1;\n    do {\n      if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');\n  }\n  return param_1;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (cVar1 != '\0') {\n    pcVar2 = param_1 + 1;\n    do {\n      if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');\n  }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    pcVar2 = param_1 + 1;\n    do {\n      if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');\n  }" ({ "{") (expression_statement "pcVar2 = param_1 + 1;" (assignment_expression "pcVar2 = param_1 + 1" (identifier "pcVar2") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (do_statement "do {\n      if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    } while (cVar1 != '\0');" (do "do") (compound_statement "{\n      if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n    }" ({ "{") (if_statement "if (cVar1 == '/') {\n        param_1 = pcVar2;\n      }" (if "if") (parenthesized_expression "(cVar1 == '/')" (( "(") (binary_expression "cVar1 == '/'" (identifier "cVar1") (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n        param_1 = pcVar2;\n      }" ({ "{") (expression_statement "param_1 = pcVar2;" (assignment_expression "param_1 = pcVar2" (identifier "param_1") (= "=") (identifier "pcVar2")) (; ";")) (} "}"))) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" (identifier "cVar1") (= "=") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2"))) (; ";")) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" (identifier "pcVar2") (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator 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))) (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: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))))) (return_statement (identifier)))))

char * MASKED(char *param_1)

{
  char cVar1;
  char *pcVar2;
  
  cVar1 = *param_1;
  if (cVar1 != '\0') {
    pcVar2 = param_1 + 1;
    do {
      if (cVar1 == '/') {
        param_1 = pcVar2;
      }
      cVar1 = *pcVar2;
      pcVar2 = pcVar2 + 1;
    } while (cVar1 != '\0');
  }
  return param_1;
}

