
size_t dir_len(char *file)

{
  char cVar1;
  char cVar2;
  size_t sVar3;
  char *pcVar4;
  size_t sVar5;
  
  cVar1 = *file;
  pcVar4 = last_component(file);
  sVar5 = (int)pcVar4 - (int)file;
  if ((cVar1 == '/') < sVar5) {
    cVar2 = file[sVar5 - 1];
    sVar3 = sVar5 - 1;
    while ((cVar2 == '/' && (sVar5 = sVar3, (cVar1 == '/') != sVar3))) {
      cVar2 = file[sVar3 - 1];
      sVar3 = sVar3 - 1;
    }
  }
  return sVar5;
}



uint dir_len(char *param_1)

{
  char cVar1;
  char cVar2;
  uint uVar3;
  int iVar4;
  uint uVar5;
  
  cVar1 = *param_1;
  iVar4 = last_component();
  uVar5 = iVar4 - (int)param_1;
  if ((cVar1 == '/') < uVar5) {
    cVar2 = param_1[uVar5 - 1];
    uVar3 = uVar5 - 1;
    while ((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))) {
      cVar2 = param_1[uVar3 - 1];
      uVar3 = uVar3 - 1;
    }
  }
  return uVar5;
}


lui gp,0x2
addiu gp,gp,0x2b0
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
or s1,a0,zero
lb s0,0x0(a0)
xori s0,s0,0x2f
sltiu s0,s0,0x1
lw t9,-0x7f70(gp)
bal 0x00012f80
_nop
lw gp,0x10(sp)
subu v1,v0,s1
sltu v0,s0,v1
beq v0,zero,0x00012ea4
_addiu v0,v1,-0x1
addu a0,s1,v0
lb a1,0x0(a0)
li a0,0x2f
bne a1,a0,0x00012ebc
_li a1,0x2f
beq s0,v0,0x00012ea8
_addiu v1,v0,-0x1
addu a0,s1,v1
lb a0,0x0(a0)
bne a0,a1,0x00012eac
_lw ra,0x24(sp)
b 0x00012e84
_or v0,v1,zero
or v0,v1,zero
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
b 0x00012ea8
_or v0,v1,zero
(translation_unit "uint dir_len(char *param_1)\n\n{\n  char cVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  \n  cVar1 = *param_1;\n  iVar4 = last_component();\n  uVar5 = iVar4 - (int)param_1;\n  if ((cVar1 == '/') < uVar5) {\n    cVar2 = param_1[uVar5 - 1];\n    uVar3 = uVar5 - 1;\n    while ((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))) {\n      cVar2 = param_1[uVar3 - 1];\n      uVar3 = uVar3 - 1;\n    }\n  }\n  return uVar5;\n}\n\n" (function_definition "uint dir_len(char *param_1)\n\n{\n  char cVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  \n  cVar1 = *param_1;\n  iVar4 = last_component();\n  uVar5 = iVar4 - (int)param_1;\n  if ((cVar1 == '/') < uVar5) {\n    cVar2 = param_1[uVar5 - 1];\n    uVar3 = uVar5 - 1;\n    while ((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))) {\n      cVar2 = param_1[uVar3 - 1];\n      uVar3 = uVar3 - 1;\n    }\n  }\n  return uVar5;\n}" type_identifier (function_declarator "dir_len(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 cVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  \n  cVar1 = *param_1;\n  iVar4 = last_component();\n  uVar5 = iVar4 - (int)param_1;\n  if ((cVar1 == '/') < uVar5) {\n    cVar2 = param_1[uVar5 - 1];\n    uVar3 = uVar5 - 1;\n    while ((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))) {\n      cVar2 = param_1[uVar3 - 1];\n      uVar3 = uVar3 - 1;\n    }\n  }\n  return uVar5;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar4 = last_component();" (assignment_expression "iVar4 = last_component()" identifier = (call_expression "last_component()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar5 = iVar4 - (int)param_1;" (assignment_expression "uVar5 = iVar4 - (int)param_1" identifier = (binary_expression "iVar4 - (int)param_1" identifier - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if ((cVar1 == '/') < uVar5) {\n    cVar2 = param_1[uVar5 - 1];\n    uVar3 = uVar5 - 1;\n    while ((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))) {\n      cVar2 = param_1[uVar3 - 1];\n      uVar3 = uVar3 - 1;\n    }\n  }" if (parenthesized_expression "((cVar1 == '/') < uVar5)" ( (binary_expression "(cVar1 == '/') < uVar5" (parenthesized_expression "(cVar1 == '/')" ( (binary_expression "cVar1 == '/'" identifier == (char_literal "'/'" ' character ')) )) < identifier) )) (compound_statement "{\n    cVar2 = param_1[uVar5 - 1];\n    uVar3 = uVar5 - 1;\n    while ((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))) {\n      cVar2 = param_1[uVar3 - 1];\n      uVar3 = uVar3 - 1;\n    }\n  }" { (expression_statement "cVar2 = param_1[uVar5 - 1];" (assignment_expression "cVar2 = param_1[uVar5 - 1]" identifier = (subscript_expression "param_1[uVar5 - 1]" identifier [ (binary_expression "uVar5 - 1" identifier - number_literal) ])) ;) (expression_statement "uVar3 = uVar5 - 1;" (assignment_expression "uVar3 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) (while_statement "while ((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))) {\n      cVar2 = param_1[uVar3 - 1];\n      uVar3 = uVar3 - 1;\n    }" while (parenthesized_expression "((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3)))" ( (parenthesized_expression "(cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))" ( (binary_expression "cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3)" (binary_expression "cVar2 == '/'" identifier == (char_literal "'/'" ' character ')) && (parenthesized_expression "(uVar5 = uVar3, (cVar1 == '/') != uVar3)" ( (comma_expression "uVar5 = uVar3, (cVar1 == '/') != uVar3" (assignment_expression "uVar5 = uVar3" identifier = identifier) , (binary_expression "(cVar1 == '/') != uVar3" (parenthesized_expression "(cVar1 == '/')" ( (binary_expression "cVar1 == '/'" identifier == (char_literal "'/'" ' character ')) )) != identifier)) ))) )) )) (compound_statement "{\n      cVar2 = param_1[uVar3 - 1];\n      uVar3 = uVar3 - 1;\n    }" { (expression_statement "cVar2 = param_1[uVar3 - 1];" (assignment_expression "cVar2 = param_1[uVar3 - 1]" identifier = (subscript_expression "param_1[uVar3 - 1]" identifier [ (binary_expression "uVar3 - 1" identifier - number_literal) ])) ;) (expression_statement "uVar3 = uVar3 - 1;" (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ;) })) })) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit "size_t dir_len(char *file)\n\n{\n  char cVar1;\n  char cVar2;\n  size_t sVar3;\n  char *pcVar4;\n  size_t sVar5;\n  \n  cVar1 = *file;\n  pcVar4 = last_component(file);\n  sVar5 = (int)pcVar4 - (int)file;\n  if ((cVar1 == '/') < sVar5) {\n    cVar2 = file[sVar5 - 1];\n    sVar3 = sVar5 - 1;\n    while ((cVar2 == '/' && (sVar5 = sVar3, (cVar1 == '/') != sVar3))) {\n      cVar2 = file[sVar3 - 1];\n      sVar3 = sVar3 - 1;\n    }\n  }\n  return sVar5;\n}\n\n" (function_definition "size_t dir_len(char *file)\n\n{\n  char cVar1;\n  char cVar2;\n  size_t sVar3;\n  char *pcVar4;\n  size_t sVar5;\n  \n  cVar1 = *file;\n  pcVar4 = last_component(file);\n  sVar5 = (int)pcVar4 - (int)file;\n  if ((cVar1 == '/') < sVar5) {\n    cVar2 = file[sVar5 - 1];\n    sVar3 = sVar5 - 1;\n    while ((cVar2 == '/' && (sVar5 = sVar3, (cVar1 == '/') != sVar3))) {\n      cVar2 = file[sVar3 - 1];\n      sVar3 = sVar3 - 1;\n    }\n  }\n  return sVar5;\n}" primitive_type (function_declarator "dir_len(char *file)" identifier (parameter_list "(char *file)" ( (parameter_declaration "char *file" primitive_type (pointer_declarator "*file" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  char cVar2;\n  size_t sVar3;\n  char *pcVar4;\n  size_t sVar5;\n  \n  cVar1 = *file;\n  pcVar4 = last_component(file);\n  sVar5 = (int)pcVar4 - (int)file;\n  if ((cVar1 == '/') < sVar5) {\n    cVar2 = file[sVar5 - 1];\n    sVar3 = sVar5 - 1;\n    while ((cVar2 == '/' && (sVar5 = sVar3, (cVar1 == '/') != sVar3))) {\n      cVar2 = file[sVar3 - 1];\n      sVar3 = sVar3 - 1;\n    }\n  }\n  return sVar5;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (expression_statement "cVar1 = *file;" (assignment_expression "cVar1 = *file" identifier = (pointer_expression "*file" * identifier)) ;) (expression_statement "pcVar4 = last_component(file);" (assignment_expression "pcVar4 = last_component(file)" identifier = (call_expression "last_component(file)" identifier (argument_list "(file)" ( identifier )))) ;) (expression_statement "sVar5 = (int)pcVar4 - (int)file;" (assignment_expression "sVar5 = (int)pcVar4 - (int)file" identifier = (binary_expression "(int)pcVar4 - (int)file" (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)file" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if ((cVar1 == '/') < sVar5) {\n    cVar2 = file[sVar5 - 1];\n    sVar3 = sVar5 - 1;\n    while ((cVar2 == '/' && (sVar5 = sVar3, (cVar1 == '/') != sVar3))) {\n      cVar2 = file[sVar3 - 1];\n      sVar3 = sVar3 - 1;\n    }\n  }" if (parenthesized_expression "((cVar1 == '/') < sVar5)" ( (binary_expression "(cVar1 == '/') < sVar5" (parenthesized_expression "(cVar1 == '/')" ( (binary_expression "cVar1 == '/'" identifier == (char_literal "'/'" ' character ')) )) < identifier) )) (compound_statement "{\n    cVar2 = file[sVar5 - 1];\n    sVar3 = sVar5 - 1;\n    while ((cVar2 == '/' && (sVar5 = sVar3, (cVar1 == '/') != sVar3))) {\n      cVar2 = file[sVar3 - 1];\n      sVar3 = sVar3 - 1;\n    }\n  }" { (expression_statement "cVar2 = file[sVar5 - 1];" (assignment_expression "cVar2 = file[sVar5 - 1]" identifier = (subscript_expression "file[sVar5 - 1]" identifier [ (binary_expression "sVar5 - 1" identifier - number_literal) ])) ;) (expression_statement "sVar3 = sVar5 - 1;" (assignment_expression "sVar3 = sVar5 - 1" identifier = (binary_expression "sVar5 - 1" identifier - number_literal)) ;) (while_statement "while ((cVar2 == '/' && (sVar5 = sVar3, (cVar1 == '/') != sVar3))) {\n      cVar2 = file[sVar3 - 1];\n      sVar3 = sVar3 - 1;\n    }" while (parenthesized_expression "((cVar2 == '/' && (sVar5 = sVar3, (cVar1 == '/') != sVar3)))" ( (parenthesized_expression "(cVar2 == '/' && (sVar5 = sVar3, (cVar1 == '/') != sVar3))" ( (binary_expression "cVar2 == '/' && (sVar5 = sVar3, (cVar1 == '/') != sVar3)" (binary_expression "cVar2 == '/'" identifier == (char_literal "'/'" ' character ')) && (parenthesized_expression "(sVar5 = sVar3, (cVar1 == '/') != sVar3)" ( (comma_expression "sVar5 = sVar3, (cVar1 == '/') != sVar3" (assignment_expression "sVar5 = sVar3" identifier = identifier) , (binary_expression "(cVar1 == '/') != sVar3" (parenthesized_expression "(cVar1 == '/')" ( (binary_expression "cVar1 == '/'" identifier == (char_literal "'/'" ' character ')) )) != identifier)) ))) )) )) (compound_statement "{\n      cVar2 = file[sVar3 - 1];\n      sVar3 = sVar3 - 1;\n    }" { (expression_statement "cVar2 = file[sVar3 - 1];" (assignment_expression "cVar2 = file[sVar3 - 1]" identifier = (subscript_expression "file[sVar3 - 1]" identifier [ (binary_expression "sVar3 - 1" identifier - number_literal) ])) ;) (expression_statement "sVar3 = sVar3 - 1;" (assignment_expression "sVar3 = sVar3 - 1" identifier = (binary_expression "sVar3 - 1" identifier - number_literal)) ;) })) })) (return_statement "return sVar5;" return identifier ;) })))
(translation_unit "uint dir_len(char *param_1)\n\n{\n  char cVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  \n  cVar1 = *param_1;\n  iVar4 = last_component();\n  uVar5 = iVar4 - (int)param_1;\n  if ((cVar1 == '/') < uVar5) {\n    cVar2 = param_1[uVar5 - 1];\n    uVar3 = uVar5 - 1;\n    while ((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))) {\n      cVar2 = param_1[uVar3 - 1];\n      uVar3 = uVar3 - 1;\n    }\n  }\n  return uVar5;\n}\n\n" (function_definition "uint dir_len(char *param_1)\n\n{\n  char cVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  \n  cVar1 = *param_1;\n  iVar4 = last_component();\n  uVar5 = iVar4 - (int)param_1;\n  if ((cVar1 == '/') < uVar5) {\n    cVar2 = param_1[uVar5 - 1];\n    uVar3 = uVar5 - 1;\n    while ((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))) {\n      cVar2 = param_1[uVar3 - 1];\n      uVar3 = uVar3 - 1;\n    }\n  }\n  return uVar5;\n}" type_identifier (function_declarator "dir_len(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 cVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  \n  cVar1 = *param_1;\n  iVar4 = last_component();\n  uVar5 = iVar4 - (int)param_1;\n  if ((cVar1 == '/') < uVar5) {\n    cVar2 = param_1[uVar5 - 1];\n    uVar3 = uVar5 - 1;\n    while ((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))) {\n      cVar2 = param_1[uVar3 - 1];\n      uVar3 = uVar3 - 1;\n    }\n  }\n  return uVar5;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar4 = last_component();" (assignment_expression "iVar4 = last_component()" identifier = (call_expression "last_component()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar5 = iVar4 - (int)param_1;" (assignment_expression "uVar5 = iVar4 - (int)param_1" identifier = (binary_expression "iVar4 - (int)param_1" identifier - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if ((cVar1 == '/') < uVar5) {\n    cVar2 = param_1[uVar5 - 1];\n    uVar3 = uVar5 - 1;\n    while ((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))) {\n      cVar2 = param_1[uVar3 - 1];\n      uVar3 = uVar3 - 1;\n    }\n  }" if (parenthesized_expression "((cVar1 == '/') < uVar5)" ( (binary_expression "(cVar1 == '/') < uVar5" (parenthesized_expression "(cVar1 == '/')" ( (binary_expression "cVar1 == '/'" identifier == (char_literal "'/'" ' character ')) )) < identifier) )) (compound_statement "{\n    cVar2 = param_1[uVar5 - 1];\n    uVar3 = uVar5 - 1;\n    while ((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))) {\n      cVar2 = param_1[uVar3 - 1];\n      uVar3 = uVar3 - 1;\n    }\n  }" { (expression_statement "cVar2 = param_1[uVar5 - 1];" (assignment_expression "cVar2 = param_1[uVar5 - 1]" identifier = (subscript_expression "param_1[uVar5 - 1]" identifier [ (binary_expression "uVar5 - 1" identifier - number_literal) ])) ;) (expression_statement "uVar3 = uVar5 - 1;" (assignment_expression "uVar3 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) (while_statement "while ((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))) {\n      cVar2 = param_1[uVar3 - 1];\n      uVar3 = uVar3 - 1;\n    }" while (parenthesized_expression "((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3)))" ( (parenthesized_expression "(cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))" ( (binary_expression "cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3)" (binary_expression "cVar2 == '/'" identifier == (char_literal "'/'" ' character ')) && (parenthesized_expression "(uVar5 = uVar3, (cVar1 == '/') != uVar3)" ( (comma_expression "uVar5 = uVar3, (cVar1 == '/') != uVar3" (assignment_expression "uVar5 = uVar3" identifier = identifier) , (binary_expression "(cVar1 == '/') != uVar3" (parenthesized_expression "(cVar1 == '/')" ( (binary_expression "cVar1 == '/'" identifier == (char_literal "'/'" ' character ')) )) != identifier)) ))) )) )) (compound_statement "{\n      cVar2 = param_1[uVar3 - 1];\n      uVar3 = uVar3 - 1;\n    }" { (expression_statement "cVar2 = param_1[uVar3 - 1];" (assignment_expression "cVar2 = param_1[uVar3 - 1]" identifier = (subscript_expression "param_1[uVar3 - 1]" identifier [ (binary_expression "uVar3 - 1" identifier - number_literal) ])) ;) (expression_statement "uVar3 = uVar3 - 1;" (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ;) })) })) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ (binary_expression IDENT - LIT) ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT == (char_literal ' character ')) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) != IDENT)) ))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ (binary_expression IDENT - LIT) ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "uint dir_len(char *param_1)\n\n{\n  char cVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  \n  cVar1 = *param_1;\n  iVar4 = last_component();\n  uVar5 = iVar4 - (int)param_1;\n  if ((cVar1 == '/') < uVar5) {\n    cVar2 = param_1[uVar5 - 1];\n    uVar3 = uVar5 - 1;\n    while ((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))) {\n      cVar2 = param_1[uVar3 - 1];\n      uVar3 = uVar3 - 1;\n    }\n  }\n  return uVar5;\n}" (type_identifier "uint") (function_declarator "dir_len(char *param_1)" (identifier "dir_len") (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 cVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  \n  cVar1 = *param_1;\n  iVar4 = last_component();\n  uVar5 = iVar4 - (int)param_1;\n  if ((cVar1 == '/') < uVar5) {\n    cVar2 = param_1[uVar5 - 1];\n    uVar3 = uVar5 - 1;\n    while ((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))) {\n      cVar2 = param_1[uVar3 - 1];\n      uVar3 = uVar3 - 1;\n    }\n  }\n  return uVar5;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "iVar4 = last_component();" (assignment_expression "iVar4 = last_component()" (identifier "iVar4") (= "=") (call_expression "last_component()" (identifier "last_component") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar5 = iVar4 - (int)param_1;" (assignment_expression "uVar5 = iVar4 - (int)param_1" (identifier "uVar5") (= "=") (binary_expression "iVar4 - (int)param_1" (identifier "iVar4") (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")))) (; ";")) (if_statement "if ((cVar1 == '/') < uVar5) {\n    cVar2 = param_1[uVar5 - 1];\n    uVar3 = uVar5 - 1;\n    while ((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))) {\n      cVar2 = param_1[uVar3 - 1];\n      uVar3 = uVar3 - 1;\n    }\n  }" (if "if") (parenthesized_expression "((cVar1 == '/') < uVar5)" (( "(") (binary_expression "(cVar1 == '/') < uVar5" (parenthesized_expression "(cVar1 == '/')" (( "(") (binary_expression "cVar1 == '/'" (identifier "cVar1") (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (< "<") (identifier "uVar5")) () ")")) (compound_statement "{\n    cVar2 = param_1[uVar5 - 1];\n    uVar3 = uVar5 - 1;\n    while ((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))) {\n      cVar2 = param_1[uVar3 - 1];\n      uVar3 = uVar3 - 1;\n    }\n  }" ({ "{") (expression_statement "cVar2 = param_1[uVar5 - 1];" (assignment_expression "cVar2 = param_1[uVar5 - 1]" (identifier "cVar2") (= "=") (subscript_expression "param_1[uVar5 - 1]" (identifier "param_1") ([ "[") (binary_expression "uVar5 - 1" (identifier "uVar5") (- "-") (number_literal "1")) (] "]"))) (; ";")) (expression_statement "uVar3 = uVar5 - 1;" (assignment_expression "uVar3 = uVar5 - 1" (identifier "uVar3") (= "=") (binary_expression "uVar5 - 1" (identifier "uVar5") (- "-") (number_literal "1"))) (; ";")) (while_statement "while ((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))) {\n      cVar2 = param_1[uVar3 - 1];\n      uVar3 = uVar3 - 1;\n    }" (while "while") (parenthesized_expression "((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3)))" (( "(") (parenthesized_expression "(cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))" (( "(") (binary_expression "cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3)" (binary_expression "cVar2 == '/'" (identifier "cVar2") (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) (&& "&&") (parenthesized_expression "(uVar5 = uVar3, (cVar1 == '/') != uVar3)" (( "(") (comma_expression "uVar5 = uVar3, (cVar1 == '/') != uVar3" (assignment_expression "uVar5 = uVar3" (identifier "uVar5") (= "=") (identifier "uVar3")) (, ",") (binary_expression "(cVar1 == '/') != uVar3" (parenthesized_expression "(cVar1 == '/')" (( "(") (binary_expression "cVar1 == '/'" (identifier "cVar1") (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (!= "!=") (identifier "uVar3"))) () ")"))) () ")")) () ")")) (compound_statement "{\n      cVar2 = param_1[uVar3 - 1];\n      uVar3 = uVar3 - 1;\n    }" ({ "{") (expression_statement "cVar2 = param_1[uVar3 - 1];" (assignment_expression "cVar2 = param_1[uVar3 - 1]" (identifier "cVar2") (= "=") (subscript_expression "param_1[uVar3 - 1]" (identifier "param_1") ([ "[") (binary_expression "uVar3 - 1" (identifier "uVar3") (- "-") (number_literal "1")) (] "]"))) (; ";")) (expression_statement "uVar3 = uVar3 - 1;" (assignment_expression "uVar3 = uVar3 - 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 - 1" (identifier "uVar3") (- "-") (number_literal "1"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) 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: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (while_statement condition: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (char_literal (character))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) right: (identifier))))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (return_statement (identifier)))))

uint MASKED(char *param_1)

{
  char cVar1;
  char cVar2;
  uint uVar3;
  int iVar4;
  uint uVar5;
  
  cVar1 = *param_1;
  iVar4 = last_component();
  uVar5 = iVar4 - (int)param_1;
  if ((cVar1 == '/') < uVar5) {
    cVar2 = param_1[uVar5 - 1];
    uVar3 = uVar5 - 1;
    while ((cVar2 == '/' && (uVar5 = uVar3, (cVar1 == '/') != uVar3))) {
      cVar2 = param_1[uVar3 - 1];
      uVar3 = uVar3 - 1;
    }
  }
  return uVar5;
}

