
char * base_name(char *name)

{
  char *pcVar1;
  size_t sVar2;
  
  pcVar1 = last_component(name);
  if (*pcVar1 != '\0') {
    sVar2 = base_len(pcVar1);
    if (pcVar1[sVar2] == '/') {
      sVar2 = sVar2 + 1;
    }
    pcVar1 = xstrndup(pcVar1,sVar2);
    return pcVar1;
  }
  sVar2 = base_len(name);
  pcVar1 = xstrndup(name,sVar2);
  return pcVar1;
}



void base_name(undefined4 param_1)

{
  char *pcVar1;
  int iVar2;
  undefined4 uVar3;
  
  pcVar1 = (char *)last_component();
  if (*pcVar1 != '\0') {
    iVar2 = base_len(pcVar1);
    if (pcVar1[iVar2] == '/') {
      iVar2 = iVar2 + 1;
    }
    xstrndup(pcVar1,iVar2);
    return;
  }
  uVar3 = base_len(param_1);
  xstrndup(param_1,uVar3);
  return;
}


lui gp,0x2
addiu gp,gp,-0x1190
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7f88(gp)
sw gp,0x10(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw ra,0x24(sp)
bal 0x00012310
_or s1,a0,zero
lw gp,0x10(sp)
or s0,v0,zero
lb v0,0x0(v0)
beq v0,zero,0x000122e0
_lw t9,-0x7f84(gp)
bal 0x00012388
_or a0,s0,zero
li v1,0x2f
addu a0,s0,v0
lb a0,0x0(a0)
bne a0,v1,0x000122c0
_lw gp,0x10(sp)
addiu v0,v0,0x1
lw ra,0x24(sp)
or a0,s0,zero
lw s1,0x20(sp)
or a1,v0,zero
lw s0,0x1c(sp)
lw t9,-0x7f80(gp)
b 0x00015540
_addiu sp,sp,0x28
bal 0x00012388
_or a0,s1,zero
or a0,s1,zero
lw gp,0x10(sp)
or a1,v0,zero
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
lw t9,-0x7f80(gp)
b 0x00015540
_addiu sp,sp,0x28
(translation_unit "void base_name(undefined4 param_1)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  pcVar1 = (char *)last_component();\n  if (*pcVar1 != '\0') {\n    iVar2 = base_len(pcVar1);\n    if (pcVar1[iVar2] == '/') {\n      iVar2 = iVar2 + 1;\n    }\n    xstrndup(pcVar1,iVar2);\n    return;\n  }\n  uVar3 = base_len(param_1);\n  xstrndup(param_1,uVar3);\n  return;\n}\n\n" (function_definition "void base_name(undefined4 param_1)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  pcVar1 = (char *)last_component();\n  if (*pcVar1 != '\0') {\n    iVar2 = base_len(pcVar1);\n    if (pcVar1[iVar2] == '/') {\n      iVar2 = iVar2 + 1;\n    }\n    xstrndup(pcVar1,iVar2);\n    return;\n  }\n  uVar3 = base_len(param_1);\n  xstrndup(param_1,uVar3);\n  return;\n}" primitive_type (function_declarator "base_name(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  pcVar1 = (char *)last_component();\n  if (*pcVar1 != '\0') {\n    iVar2 = base_len(pcVar1);\n    if (pcVar1[iVar2] == '/') {\n      iVar2 = iVar2 + 1;\n    }\n    xstrndup(pcVar1,iVar2);\n    return;\n  }\n  uVar3 = base_len(param_1);\n  xstrndup(param_1,uVar3);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "pcVar1 = (char *)last_component();" (assignment_expression "pcVar1 = (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 (*pcVar1 != '\0') {\n    iVar2 = base_len(pcVar1);\n    if (pcVar1[iVar2] == '/') {\n      iVar2 = iVar2 + 1;\n    }\n    xstrndup(pcVar1,iVar2);\n    return;\n  }" if (parenthesized_expression "(*pcVar1 != '\0')" ( (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = base_len(pcVar1);\n    if (pcVar1[iVar2] == '/') {\n      iVar2 = iVar2 + 1;\n    }\n    xstrndup(pcVar1,iVar2);\n    return;\n  }" { (expression_statement "iVar2 = base_len(pcVar1);" (assignment_expression "iVar2 = base_len(pcVar1)" identifier = (call_expression "base_len(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (if_statement "if (pcVar1[iVar2] == '/') {\n      iVar2 = iVar2 + 1;\n    }" if (parenthesized_expression "(pcVar1[iVar2] == '/')" ( (binary_expression "pcVar1[iVar2] == '/'" (subscript_expression "pcVar1[iVar2]" identifier [ identifier ]) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      iVar2 = iVar2 + 1;\n    }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "xstrndup(pcVar1,iVar2);" (call_expression "xstrndup(pcVar1,iVar2)" identifier (argument_list "(pcVar1,iVar2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar3 = base_len(param_1);" (assignment_expression "uVar3 = base_len(param_1)" identifier = (call_expression "base_len(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "xstrndup(param_1,uVar3);" (call_expression "xstrndup(param_1,uVar3)" identifier (argument_list "(param_1,uVar3)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "char * base_name(char *name)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  \n  pcVar1 = last_component(name);\n  if (*pcVar1 != '\0') {\n    sVar2 = base_len(pcVar1);\n    if (pcVar1[sVar2] == '/') {\n      sVar2 = sVar2 + 1;\n    }\n    pcVar1 = xstrndup(pcVar1,sVar2);\n    return pcVar1;\n  }\n  sVar2 = base_len(name);\n  pcVar1 = xstrndup(name,sVar2);\n  return pcVar1;\n}\n\n" (function_definition "char * base_name(char *name)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  \n  pcVar1 = last_component(name);\n  if (*pcVar1 != '\0') {\n    sVar2 = base_len(pcVar1);\n    if (pcVar1[sVar2] == '/') {\n      sVar2 = sVar2 + 1;\n    }\n    pcVar1 = xstrndup(pcVar1,sVar2);\n    return pcVar1;\n  }\n  sVar2 = base_len(name);\n  pcVar1 = xstrndup(name,sVar2);\n  return pcVar1;\n}" primitive_type (pointer_declarator "* base_name(char *name)" * (function_declarator "base_name(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  \n  pcVar1 = last_component(name);\n  if (*pcVar1 != '\0') {\n    sVar2 = base_len(pcVar1);\n    if (pcVar1[sVar2] == '/') {\n      sVar2 = sVar2 + 1;\n    }\n    pcVar1 = xstrndup(pcVar1,sVar2);\n    return pcVar1;\n  }\n  sVar2 = base_len(name);\n  pcVar1 = xstrndup(name,sVar2);\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (expression_statement "pcVar1 = last_component(name);" (assignment_expression "pcVar1 = last_component(name)" identifier = (call_expression "last_component(name)" identifier (argument_list "(name)" ( identifier )))) ;) (if_statement "if (*pcVar1 != '\0') {\n    sVar2 = base_len(pcVar1);\n    if (pcVar1[sVar2] == '/') {\n      sVar2 = sVar2 + 1;\n    }\n    pcVar1 = xstrndup(pcVar1,sVar2);\n    return pcVar1;\n  }" if (parenthesized_expression "(*pcVar1 != '\0')" ( (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    sVar2 = base_len(pcVar1);\n    if (pcVar1[sVar2] == '/') {\n      sVar2 = sVar2 + 1;\n    }\n    pcVar1 = xstrndup(pcVar1,sVar2);\n    return pcVar1;\n  }" { (expression_statement "sVar2 = base_len(pcVar1);" (assignment_expression "sVar2 = base_len(pcVar1)" identifier = (call_expression "base_len(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (if_statement "if (pcVar1[sVar2] == '/') {\n      sVar2 = sVar2 + 1;\n    }" if (parenthesized_expression "(pcVar1[sVar2] == '/')" ( (binary_expression "pcVar1[sVar2] == '/'" (subscript_expression "pcVar1[sVar2]" identifier [ identifier ]) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      sVar2 = sVar2 + 1;\n    }" { (expression_statement "sVar2 = sVar2 + 1;" (assignment_expression "sVar2 = sVar2 + 1" identifier = (binary_expression "sVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "pcVar1 = xstrndup(pcVar1,sVar2);" (assignment_expression "pcVar1 = xstrndup(pcVar1,sVar2)" identifier = (call_expression "xstrndup(pcVar1,sVar2)" identifier (argument_list "(pcVar1,sVar2)" ( identifier , identifier )))) ;) (return_statement "return pcVar1;" return identifier ;) })) (expression_statement "sVar2 = base_len(name);" (assignment_expression "sVar2 = base_len(name)" identifier = (call_expression "base_len(name)" identifier (argument_list "(name)" ( identifier )))) ;) (expression_statement "pcVar1 = xstrndup(name,sVar2);" (assignment_expression "pcVar1 = xstrndup(name,sVar2)" identifier = (call_expression "xstrndup(name,sVar2)" identifier (argument_list "(name,sVar2)" ( identifier , identifier )))) ;) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "void base_name(undefined4 param_1)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  pcVar1 = (char *)last_component();\n  if (*pcVar1 != '\0') {\n    iVar2 = base_len(pcVar1);\n    if (pcVar1[iVar2] == '/') {\n      iVar2 = iVar2 + 1;\n    }\n    xstrndup(pcVar1,iVar2);\n    return;\n  }\n  uVar3 = base_len(param_1);\n  xstrndup(param_1,uVar3);\n  return;\n}\n\n" (function_definition "void base_name(undefined4 param_1)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  pcVar1 = (char *)last_component();\n  if (*pcVar1 != '\0') {\n    iVar2 = base_len(pcVar1);\n    if (pcVar1[iVar2] == '/') {\n      iVar2 = iVar2 + 1;\n    }\n    xstrndup(pcVar1,iVar2);\n    return;\n  }\n  uVar3 = base_len(param_1);\n  xstrndup(param_1,uVar3);\n  return;\n}" primitive_type (function_declarator "base_name(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  pcVar1 = (char *)last_component();\n  if (*pcVar1 != '\0') {\n    iVar2 = base_len(pcVar1);\n    if (pcVar1[iVar2] == '/') {\n      iVar2 = iVar2 + 1;\n    }\n    xstrndup(pcVar1,iVar2);\n    return;\n  }\n  uVar3 = base_len(param_1);\n  xstrndup(param_1,uVar3);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "pcVar1 = (char *)last_component();" (assignment_expression "pcVar1 = (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 (*pcVar1 != '\0') {\n    iVar2 = base_len(pcVar1);\n    if (pcVar1[iVar2] == '/') {\n      iVar2 = iVar2 + 1;\n    }\n    xstrndup(pcVar1,iVar2);\n    return;\n  }" if (parenthesized_expression "(*pcVar1 != '\0')" ( (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = base_len(pcVar1);\n    if (pcVar1[iVar2] == '/') {\n      iVar2 = iVar2 + 1;\n    }\n    xstrndup(pcVar1,iVar2);\n    return;\n  }" { (expression_statement "iVar2 = base_len(pcVar1);" (assignment_expression "iVar2 = base_len(pcVar1)" identifier = (call_expression "base_len(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (if_statement "if (pcVar1[iVar2] == '/') {\n      iVar2 = iVar2 + 1;\n    }" if (parenthesized_expression "(pcVar1[iVar2] == '/')" ( (binary_expression "pcVar1[iVar2] == '/'" (subscript_expression "pcVar1[iVar2]" identifier [ identifier ]) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      iVar2 = iVar2 + 1;\n    }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "xstrndup(pcVar1,iVar2);" (call_expression "xstrndup(pcVar1,iVar2)" identifier (argument_list "(pcVar1,iVar2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar3 = base_len(param_1);" (assignment_expression "uVar3 = base_len(param_1)" identifier = (call_expression "base_len(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "xstrndup(param_1,uVar3);" (call_expression "xstrndup(param_1,uVar3)" identifier (argument_list "(param_1,uVar3)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void base_name(undefined4 param_1)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  pcVar1 = (char *)last_component();\n  if (*pcVar1 != '\0') {\n    iVar2 = base_len(pcVar1);\n    if (pcVar1[iVar2] == '/') {\n      iVar2 = iVar2 + 1;\n    }\n    xstrndup(pcVar1,iVar2);\n    return;\n  }\n  uVar3 = base_len(param_1);\n  xstrndup(param_1,uVar3);\n  return;\n}" (primitive_type "void") (function_declarator "base_name(undefined4 param_1)" (identifier "base_name") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  pcVar1 = (char *)last_component();\n  if (*pcVar1 != '\0') {\n    iVar2 = base_len(pcVar1);\n    if (pcVar1[iVar2] == '/') {\n      iVar2 = iVar2 + 1;\n    }\n    xstrndup(pcVar1,iVar2);\n    return;\n  }\n  uVar3 = base_len(param_1);\n  xstrndup(param_1,uVar3);\n  return;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "pcVar1 = (char *)last_component();" (assignment_expression "pcVar1 = (char *)last_component()" (identifier "pcVar1") (= "=") (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 (*pcVar1 != '\0') {\n    iVar2 = base_len(pcVar1);\n    if (pcVar1[iVar2] == '/') {\n      iVar2 = iVar2 + 1;\n    }\n    xstrndup(pcVar1,iVar2);\n    return;\n  }" (if "if") (parenthesized_expression "(*pcVar1 != '\0')" (( "(") (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar2 = base_len(pcVar1);\n    if (pcVar1[iVar2] == '/') {\n      iVar2 = iVar2 + 1;\n    }\n    xstrndup(pcVar1,iVar2);\n    return;\n  }" ({ "{") (expression_statement "iVar2 = base_len(pcVar1);" (assignment_expression "iVar2 = base_len(pcVar1)" (identifier "iVar2") (= "=") (call_expression "base_len(pcVar1)" (identifier "base_len") (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")")))) (; ";")) (if_statement "if (pcVar1[iVar2] == '/') {\n      iVar2 = iVar2 + 1;\n    }" (if "if") (parenthesized_expression "(pcVar1[iVar2] == '/')" (( "(") (binary_expression "pcVar1[iVar2] == '/'" (subscript_expression "pcVar1[iVar2]" (identifier "pcVar1") ([ "[") (identifier "iVar2") (] "]")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n      iVar2 = iVar2 + 1;\n    }" ({ "{") (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "xstrndup(pcVar1,iVar2);" (call_expression "xstrndup(pcVar1,iVar2)" (identifier "xstrndup") (argument_list "(pcVar1,iVar2)" (( "(") (identifier "pcVar1") (, ",") (identifier "iVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar3 = base_len(param_1);" (assignment_expression "uVar3 = base_len(param_1)" (identifier "uVar3") (= "=") (call_expression "base_len(param_1)" (identifier "base_len") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "xstrndup(param_1,uVar3);" (call_expression "xstrndup(param_1,uVar3)" (identifier "xstrndup") (argument_list "(param_1,uVar3)" (( "(") (identifier "param_1") (, ",") (identifier "uVar3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) 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: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement))))

void MASKED(undefined4 param_1)

{
  char *pcVar1;
  int iVar2;
  undefined4 uVar3;
  
  pcVar1 = (char *)last_component();
  if (*pcVar1 != '\0') {
    iVar2 = base_len(pcVar1);
    if (pcVar1[iVar2] == '/') {
      iVar2 = iVar2 + 1;
    }
    xstrndup(pcVar1,iVar2);
    return;
  }
  uVar3 = base_len(param_1);
  xstrndup(param_1,uVar3);
  return;
}

