
char * __regparm1 bb_get_last_path_component_strip(char *path)

{
  char cVar1;
  char *pcVar2;
  char *in_stack_00000004;
  char *in_stack_fffffff4;
  int in_stack_fffffff8;
  
  pcVar2 = last_char_is(in_stack_fffffff4,in_stack_fffffff8);
  if (pcVar2 != (char *)0x0) {
    cVar1 = *pcVar2;
    while ((cVar1 == '/' && (path != pcVar2))) {
      *pcVar2 = '\0';
      cVar1 = pcVar2[-1];
      pcVar2 = pcVar2 + -1;
    }
  }
  pcVar2 = bb_get_last_path_component_nostrip(in_stack_00000004);
  return pcVar2;
}



void __regparm3 FUN_00018c90(char *param_1)

{
  char cVar1;
  char *pcVar2;
  
  pcVar2 = (char *)FUN_00018cc2();
  if (pcVar2 != (char *)0x0) {
    cVar1 = *pcVar2;
    while ((cVar1 == '/' && (param_1 != pcVar2))) {
      *pcVar2 = '\0';
      cVar1 = pcVar2[-1];
      pcVar2 = pcVar2 + -1;
    }
  }
  FUN_00018c56();
  return;
}


PUSH EBX
SUB ESP,0x8
MOV EBX,EAX
MOV EDX,0x2f
CALL 0x00018cc2
TEST EAX,EAX
JZ 0x00018cb7
CMP byte ptr [EAX],0x2f
JNZ 0x00018cb7
CMP EBX,EAX
JZ 0x00018cb7
DEC EAX
MOV byte ptr [EAX + 0x1],0x0
CMP byte ptr [EAX],0x2f
JZ 0x00018ca9
MOV EAX,EBX
ADD ESP,0x8
POP EBX
JMP 0x00018c56
(translation_unit "void __regparm3 FUN_00018c90(char *param_1)\n\n{\n  char cVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)FUN_00018cc2();\n  if (pcVar2 != (char *)0x0) {\n    cVar1 = *pcVar2;\n    while ((cVar1 == '/' && (param_1 != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }\n  }\n  FUN_00018c56();\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00018c90(char *param_1)\n\n{\n  char cVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)FUN_00018cc2();\n  if (pcVar2 != (char *)0x0) {\n    cVar1 = *pcVar2;\n    while ((cVar1 == '/' && (param_1 != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }\n  }\n  FUN_00018c56();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00018c90(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  pcVar2 = (char *)FUN_00018cc2();\n  if (pcVar2 != (char *)0x0) {\n    cVar1 = *pcVar2;\n    while ((cVar1 == '/' && (param_1 != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }\n  }\n  FUN_00018c56();\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "pcVar2 = (char *)FUN_00018cc2();" (assignment_expression "pcVar2 = (char *)FUN_00018cc2()" identifier = (cast_expression "(char *)FUN_00018cc2()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00018cc2()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n    cVar1 = *pcVar2;\n    while ((cVar1 == '/' && (param_1 != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }\n  }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    cVar1 = *pcVar2;\n    while ((cVar1 == '/' && (param_1 != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }\n  }" { (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (while_statement "while ((cVar1 == '/' && (param_1 != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }" while (parenthesized_expression "((cVar1 == '/' && (param_1 != pcVar2)))" ( (parenthesized_expression "(cVar1 == '/' && (param_1 != pcVar2))" ( (binary_expression "cVar1 == '/' && (param_1 != pcVar2)" (binary_expression "cVar1 == '/'" identifier == (char_literal "'/'" ' character ')) && (parenthesized_expression "(param_1 != pcVar2)" ( (binary_expression "param_1 != pcVar2" identifier != identifier) ))) )) )) (compound_statement "{\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }" { (expression_statement "*pcVar2 = '\0';" (assignment_expression "*pcVar2 = '\0'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "cVar1 = pcVar2[-1];" (assignment_expression "cVar1 = pcVar2[-1]" identifier = (subscript_expression "pcVar2[-1]" identifier [ number_literal ])) ;) (expression_statement "pcVar2 = pcVar2 + -1;" (assignment_expression "pcVar2 = pcVar2 + -1" identifier = (binary_expression "pcVar2 + -1" identifier + number_literal)) ;) })) })) (expression_statement "FUN_00018c56();" (call_expression "FUN_00018c56()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "char * __regparm1 bb_get_last_path_component_strip(char *path)\n\n{\n  char cVar1;\n  char *pcVar2;\n  char *in_stack_00000004;\n  char *in_stack_fffffff4;\n  int in_stack_fffffff8;\n  \n  pcVar2 = last_char_is(in_stack_fffffff4,in_stack_fffffff8);\n  if (pcVar2 != (char *)0x0) {\n    cVar1 = *pcVar2;\n    while ((cVar1 == '/' && (path != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }\n  }\n  pcVar2 = bb_get_last_path_component_nostrip(in_stack_00000004);\n  return pcVar2;\n}\n\n" (function_definition "char * __regparm1 bb_get_last_path_component_strip(char *path)\n\n{\n  char cVar1;\n  char *pcVar2;\n  char *in_stack_00000004;\n  char *in_stack_fffffff4;\n  int in_stack_fffffff8;\n  \n  pcVar2 = last_char_is(in_stack_fffffff4,in_stack_fffffff8);\n  if (pcVar2 != (char *)0x0) {\n    cVar1 = *pcVar2;\n    while ((cVar1 == '/' && (path != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }\n  }\n  pcVar2 = bb_get_last_path_component_nostrip(in_stack_00000004);\n  return pcVar2;\n}" primitive_type (pointer_declarator "* __regparm1 bb_get_last_path_component_strip(char *path)" * (ERROR "__regparm1" identifier) (function_declarator "bb_get_last_path_component_strip(char *path)" identifier (parameter_list "(char *path)" ( (parameter_declaration "char *path" primitive_type (pointer_declarator "*path" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  char *in_stack_00000004;\n  char *in_stack_fffffff4;\n  int in_stack_fffffff8;\n  \n  pcVar2 = last_char_is(in_stack_fffffff4,in_stack_fffffff8);\n  if (pcVar2 != (char *)0x0) {\n    cVar1 = *pcVar2;\n    while ((cVar1 == '/' && (path != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }\n  }\n  pcVar2 = bb_get_last_path_component_nostrip(in_stack_00000004);\n  return pcVar2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *in_stack_00000004;" primitive_type (pointer_declarator "*in_stack_00000004" * identifier) ;) (declaration "char *in_stack_fffffff4;" primitive_type (pointer_declarator "*in_stack_fffffff4" * identifier) ;) (declaration "int in_stack_fffffff8;" primitive_type identifier ;) (expression_statement "pcVar2 = last_char_is(in_stack_fffffff4,in_stack_fffffff8);" (assignment_expression "pcVar2 = last_char_is(in_stack_fffffff4,in_stack_fffffff8)" identifier = (call_expression "last_char_is(in_stack_fffffff4,in_stack_fffffff8)" identifier (argument_list "(in_stack_fffffff4,in_stack_fffffff8)" ( identifier , identifier )))) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n    cVar1 = *pcVar2;\n    while ((cVar1 == '/' && (path != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }\n  }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    cVar1 = *pcVar2;\n    while ((cVar1 == '/' && (path != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }\n  }" { (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (while_statement "while ((cVar1 == '/' && (path != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }" while (parenthesized_expression "((cVar1 == '/' && (path != pcVar2)))" ( (parenthesized_expression "(cVar1 == '/' && (path != pcVar2))" ( (binary_expression "cVar1 == '/' && (path != pcVar2)" (binary_expression "cVar1 == '/'" identifier == (char_literal "'/'" ' character ')) && (parenthesized_expression "(path != pcVar2)" ( (binary_expression "path != pcVar2" identifier != identifier) ))) )) )) (compound_statement "{\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }" { (expression_statement "*pcVar2 = '\0';" (assignment_expression "*pcVar2 = '\0'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "cVar1 = pcVar2[-1];" (assignment_expression "cVar1 = pcVar2[-1]" identifier = (subscript_expression "pcVar2[-1]" identifier [ number_literal ])) ;) (expression_statement "pcVar2 = pcVar2 + -1;" (assignment_expression "pcVar2 = pcVar2 + -1" identifier = (binary_expression "pcVar2 + -1" identifier + number_literal)) ;) })) })) (expression_statement "pcVar2 = bb_get_last_path_component_nostrip(in_stack_00000004);" (assignment_expression "pcVar2 = bb_get_last_path_component_nostrip(in_stack_00000004)" identifier = (call_expression "bb_get_last_path_component_nostrip(in_stack_00000004)" identifier (argument_list "(in_stack_00000004)" ( identifier )))) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "void __regparm3 FUN_00018c90(char *param_1)\n\n{\n  char cVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)FUN_00018cc2();\n  if (pcVar2 != (char *)0x0) {\n    cVar1 = *pcVar2;\n    while ((cVar1 == '/' && (param_1 != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }\n  }\n  FUN_00018c56();\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00018c90(char *param_1)\n\n{\n  char cVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)FUN_00018cc2();\n  if (pcVar2 != (char *)0x0) {\n    cVar1 = *pcVar2;\n    while ((cVar1 == '/' && (param_1 != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }\n  }\n  FUN_00018c56();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00018c90(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  pcVar2 = (char *)FUN_00018cc2();\n  if (pcVar2 != (char *)0x0) {\n    cVar1 = *pcVar2;\n    while ((cVar1 == '/' && (param_1 != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }\n  }\n  FUN_00018c56();\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "pcVar2 = (char *)FUN_00018cc2();" (assignment_expression "pcVar2 = (char *)FUN_00018cc2()" identifier = (cast_expression "(char *)FUN_00018cc2()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00018cc2()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n    cVar1 = *pcVar2;\n    while ((cVar1 == '/' && (param_1 != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }\n  }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    cVar1 = *pcVar2;\n    while ((cVar1 == '/' && (param_1 != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }\n  }" { (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (while_statement "while ((cVar1 == '/' && (param_1 != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }" while (parenthesized_expression "((cVar1 == '/' && (param_1 != pcVar2)))" ( (parenthesized_expression "(cVar1 == '/' && (param_1 != pcVar2))" ( (binary_expression "cVar1 == '/' && (param_1 != pcVar2)" (binary_expression "cVar1 == '/'" identifier == (char_literal "'/'" ' character ')) && (parenthesized_expression "(param_1 != pcVar2)" ( (binary_expression "param_1 != pcVar2" identifier != identifier) ))) )) )) (compound_statement "{\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }" { (expression_statement "*pcVar2 = '\0';" (assignment_expression "*pcVar2 = '\0'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "cVar1 = pcVar2[-1];" (assignment_expression "cVar1 = pcVar2[-1]" identifier = (subscript_expression "pcVar2[-1]" identifier [ number_literal ])) ;) (expression_statement "pcVar2 = pcVar2 + -1;" (assignment_expression "pcVar2 = pcVar2 + -1" identifier = (binary_expression "pcVar2 + -1" identifier + number_literal)) ;) })) })) (expression_statement "FUN_00018c56();" (call_expression "FUN_00018c56()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT == (char_literal ' character ')) && (parenthesized_expression ( (binary_expression IDENT != IDENT) ))) )) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00018c90(char *param_1)\n\n{\n  char cVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)FUN_00018cc2();\n  if (pcVar2 != (char *)0x0) {\n    cVar1 = *pcVar2;\n    while ((cVar1 == '/' && (param_1 != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }\n  }\n  FUN_00018c56();\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00018c90(char *param_1)" (identifier "FUN_00018c90") (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  pcVar2 = (char *)FUN_00018cc2();\n  if (pcVar2 != (char *)0x0) {\n    cVar1 = *pcVar2;\n    while ((cVar1 == '/' && (param_1 != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }\n  }\n  FUN_00018c56();\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (expression_statement "pcVar2 = (char *)FUN_00018cc2();" (assignment_expression "pcVar2 = (char *)FUN_00018cc2()" (identifier "pcVar2") (= "=") (cast_expression "(char *)FUN_00018cc2()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00018cc2()" (identifier "FUN_00018cc2") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (pcVar2 != (char *)0x0) {\n    cVar1 = *pcVar2;\n    while ((cVar1 == '/' && (param_1 != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }\n  }" (if "if") (parenthesized_expression "(pcVar2 != (char *)0x0)" (( "(") (binary_expression "pcVar2 != (char *)0x0" (identifier "pcVar2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    cVar1 = *pcVar2;\n    while ((cVar1 == '/' && (param_1 != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }\n  }" ({ "{") (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" (identifier "cVar1") (= "=") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2"))) (; ";")) (while_statement "while ((cVar1 == '/' && (param_1 != pcVar2))) {\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }" (while "while") (parenthesized_expression "((cVar1 == '/' && (param_1 != pcVar2)))" (( "(") (parenthesized_expression "(cVar1 == '/' && (param_1 != pcVar2))" (( "(") (binary_expression "cVar1 == '/' && (param_1 != pcVar2)" (binary_expression "cVar1 == '/'" (identifier "cVar1") (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) (&& "&&") (parenthesized_expression "(param_1 != pcVar2)" (( "(") (binary_expression "param_1 != pcVar2" (identifier "param_1") (!= "!=") (identifier "pcVar2")) () ")"))) () ")")) () ")")) (compound_statement "{\n      *pcVar2 = '\0';\n      cVar1 = pcVar2[-1];\n      pcVar2 = pcVar2 + -1;\n    }" ({ "{") (expression_statement "*pcVar2 = '\0';" (assignment_expression "*pcVar2 = '\0'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "cVar1 = pcVar2[-1];" (assignment_expression "cVar1 = pcVar2[-1]" (identifier "cVar1") (= "=") (subscript_expression "pcVar2[-1]" (identifier "pcVar2") ([ "[") (number_literal "-1") (] "]"))) (; ";")) (expression_statement "pcVar2 = pcVar2 + -1;" (assignment_expression "pcVar2 = pcVar2 + -1" (identifier "pcVar2") (= "=") (binary_expression "pcVar2 + -1" (identifier "pcVar2") (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_00018c56();" (call_expression "FUN_00018c56()" (identifier "FUN_00018c56") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

char * __regparm1 function_1(char *var_4)

{
  char var_3;
  char *var_2;
  char *in_stack_00000004;
  char *in_stack_fffffff4;
  int in_stack_fffffff8;
  
  var_2 = var_1(in_stack_fffffff4,in_stack_fffffff8);
  if (var_2 != (char *)0x0) {
    var_3 = *var_2;
    while ((var_3 == '/' && (var_4 != var_2))) {
      *var_2 = '\0';
      var_3 = var_2[-1];
      var_2 = var_2 + -1;
    }
  }
  var_2 = var_5(in_stack_00000004);
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (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: (pointer_declarator 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: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (while_statement condition: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (char_literal (character))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

void __regparm3 MASKED(char *param_1)

{
  char cVar1;
  char *pcVar2;
  
  pcVar2 = (char *)FUN_00018cc2();
  if (pcVar2 != (char *)0x0) {
    cVar1 = *pcVar2;
    while ((cVar1 == '/' && (param_1 != pcVar2))) {
      *pcVar2 = '\0';
      cVar1 = pcVar2[-1];
      pcVar2 = pcVar2 + -1;
    }
  }
  FUN_00018c56();
  return;
}

