
int clean_line(char *line,int len)

{
  char *pcVar1;
  char cVar2;
  
  if (len < 1) {
    if (len == 0) {
      return 0;
    }
LAB_0002bde0:
    cVar2 = *line;
    if (cVar2 != '\0') {
      do {
        if (cVar2 == '\t') {
          *line = ' ';
        }
        line = line + 1;
        cVar2 = *line;
      } while (cVar2 != '\0');
      return len;
    }
  }
  else {
    pcVar1 = line + len + -1;
    do {
      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;
      len = len + -1;
      *pcVar1 = '\0';
      pcVar1 = pcVar1 + -1;
    } while (len != 0);
  }
  return len;
}



int FUN_0002bd90(char *param_1,int param_2)

{
  char *pcVar1;
  char cVar2;
  
  if (param_2 < 1) {
    if (param_2 == 0) {
      return 0;
    }
LAB_0002bde0:
    cVar2 = *param_1;
    if (cVar2 != '\0') {
      do {
        if (cVar2 == '\t') {
          *param_1 = ' ';
        }
        param_1 = param_1 + 1;
        cVar2 = *param_1;
      } while (cVar2 != '\0');
      return param_2;
    }
  }
  else {
    pcVar1 = param_1 + param_2 + -1;
    do {
      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;
      param_2 = param_2 + -1;
      *pcVar1 = '\0';
      pcVar1 = pcVar1 + -1;
    } while (param_2 != 0);
  }
  return param_2;
}


blez a1,0x0002bdd4
_addiu v1,a1,-0x1
li a2,0xa
addu v1,a0,v1
li a3,0xd
or v0,a1,zero
lb a1,0x0(v1)
beq a1,a2,0x0002bdbc
_nop
bne a1,a3,0x0002bde0
_nop
addiu v0,v0,-0x1
sb zero,0x0(v1)
bne v0,zero,0x0002bda8
_addiu v1,v1,-0x1
jr ra
_nop
beq a1,zero,0x0002be14
_nop
or v0,a1,zero
lb v1,0x0(a0)
beq v1,zero,0x0002bdcc
_li a1,0x9
li a2,0x20
bne v1,a1,0x0002bdfc
_nop
sb a2,0x0(a0)
addiu a0,a0,0x1
lb v1,0x0(a0)
bne v1,zero,0x0002bdf0
_nop
jr ra
_nop
jr ra
_or v0,zero,zero
(translation_unit "int FUN_0002bd90(char *param_1,int param_2)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  if (param_2 < 1) {\n    if (param_2 == 0) {\n      return 0;\n    }\nLAB_0002bde0:\n    cVar2 = *param_1;\n    if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');\n      return param_2;\n    }\n  }\n  else {\n    pcVar1 = param_1 + param_2 + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (param_2 != 0);\n  }\n  return param_2;\n}\n\n" (function_definition "int FUN_0002bd90(char *param_1,int param_2)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  if (param_2 < 1) {\n    if (param_2 == 0) {\n      return 0;\n    }\nLAB_0002bde0:\n    cVar2 = *param_1;\n    if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');\n      return param_2;\n    }\n  }\n  else {\n    pcVar1 = param_1 + param_2 + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (param_2 != 0);\n  }\n  return param_2;\n}" primitive_type (function_declarator "FUN_0002bd90(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  char cVar2;\n  \n  if (param_2 < 1) {\n    if (param_2 == 0) {\n      return 0;\n    }\nLAB_0002bde0:\n    cVar2 = *param_1;\n    if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');\n      return param_2;\n    }\n  }\n  else {\n    pcVar1 = param_1 + param_2 + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (param_2 != 0);\n  }\n  return param_2;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (if_statement "if (param_2 < 1) {\n    if (param_2 == 0) {\n      return 0;\n    }\nLAB_0002bde0:\n    cVar2 = *param_1;\n    if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');\n      return param_2;\n    }\n  }\n  else {\n    pcVar1 = param_1 + param_2 + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (param_2 != 0);\n  }" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n    if (param_2 == 0) {\n      return 0;\n    }\nLAB_0002bde0:\n    cVar2 = *param_1;\n    if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');\n      return param_2;\n    }\n  }" { (if_statement "if (param_2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_0002bde0:\n    cVar2 = *param_1;" statement_identifier : (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;)) (if_statement "if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');\n      return param_2;\n    }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');\n      return param_2;\n    }" { (do_statement "do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');" do (compound_statement "{\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      }" { (if_statement "if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }" if (parenthesized_expression "(cVar2 == '\t')" ( (binary_expression "cVar2 == '\t'" identifier == (char_literal "'\t'" ' escape_sequence ')) )) (compound_statement "{\n          *param_1 = ' ';\n        }" { (expression_statement "*param_1 = ' ';" (assignment_expression "*param_1 = ' '" (pointer_expression "*param_1" * identifier) = (char_literal "' '" ' character ')) ;) })) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (return_statement "return param_2;" return identifier ;) })) }) (else_clause "else {\n    pcVar1 = param_1 + param_2 + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (param_2 != 0);\n  }" else (compound_statement "{\n    pcVar1 = param_1 + param_2 + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (param_2 != 0);\n  }" { (expression_statement "pcVar1 = param_1 + param_2 + -1;" (assignment_expression "pcVar1 = param_1 + param_2 + -1" identifier = (binary_expression "param_1 + param_2 + -1" (binary_expression "param_1 + param_2" identifier + identifier) + number_literal)) ;) (do_statement "do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (param_2 != 0);" do (compound_statement "{\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    }" { (if_statement "if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;" if (parenthesized_expression "((*pcVar1 != '\n') && (*pcVar1 != '\r'))" ( (binary_expression "(*pcVar1 != '\n') && (*pcVar1 != '\r')" (parenthesized_expression "(*pcVar1 != '\n')" ( (binary_expression "*pcVar1 != '\n'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\n'" ' escape_sequence ')) )) && (parenthesized_expression "(*pcVar1 != '\r')" ( (binary_expression "*pcVar1 != '\r'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\r'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_0002bde0;" goto statement_identifier ;)) (expression_statement "param_2 = param_2 + -1;" (assignment_expression "param_2 = param_2 + -1" identifier = (binary_expression "param_2 + -1" identifier + number_literal)) ;) (expression_statement "*pcVar1 = '\0';" (assignment_expression "*pcVar1 = '\0'" (pointer_expression "*pcVar1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1 = pcVar1 + -1;" (assignment_expression "pcVar1 = pcVar1 + -1" identifier = (binary_expression "pcVar1 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) }))) (return_statement "return param_2;" return identifier ;) })))
(translation_unit "int clean_line(char *line,int len)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  if (len < 1) {\n    if (len == 0) {\n      return 0;\n    }\nLAB_0002bde0:\n    cVar2 = *line;\n    if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *line = ' ';\n        }\n        line = line + 1;\n        cVar2 = *line;\n      } while (cVar2 != '\0');\n      return len;\n    }\n  }\n  else {\n    pcVar1 = line + len + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      len = len + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (len != 0);\n  }\n  return len;\n}\n\n" (function_definition "int clean_line(char *line,int len)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  if (len < 1) {\n    if (len == 0) {\n      return 0;\n    }\nLAB_0002bde0:\n    cVar2 = *line;\n    if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *line = ' ';\n        }\n        line = line + 1;\n        cVar2 = *line;\n      } while (cVar2 != '\0');\n      return len;\n    }\n  }\n  else {\n    pcVar1 = line + len + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      len = len + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (len != 0);\n  }\n  return len;\n}" primitive_type (function_declarator "clean_line(char *line,int len)" identifier (parameter_list "(char *line,int len)" ( (parameter_declaration "char *line" primitive_type (pointer_declarator "*line" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  char cVar2;\n  \n  if (len < 1) {\n    if (len == 0) {\n      return 0;\n    }\nLAB_0002bde0:\n    cVar2 = *line;\n    if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *line = ' ';\n        }\n        line = line + 1;\n        cVar2 = *line;\n      } while (cVar2 != '\0');\n      return len;\n    }\n  }\n  else {\n    pcVar1 = line + len + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      len = len + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (len != 0);\n  }\n  return len;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (if_statement "if (len < 1) {\n    if (len == 0) {\n      return 0;\n    }\nLAB_0002bde0:\n    cVar2 = *line;\n    if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *line = ' ';\n        }\n        line = line + 1;\n        cVar2 = *line;\n      } while (cVar2 != '\0');\n      return len;\n    }\n  }\n  else {\n    pcVar1 = line + len + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      len = len + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (len != 0);\n  }" if (parenthesized_expression "(len < 1)" ( (binary_expression "len < 1" identifier < number_literal) )) (compound_statement "{\n    if (len == 0) {\n      return 0;\n    }\nLAB_0002bde0:\n    cVar2 = *line;\n    if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *line = ' ';\n        }\n        line = line + 1;\n        cVar2 = *line;\n      } while (cVar2 != '\0');\n      return len;\n    }\n  }" { (if_statement "if (len == 0) {\n      return 0;\n    }" if (parenthesized_expression "(len == 0)" ( (binary_expression "len == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_0002bde0:\n    cVar2 = *line;" statement_identifier : (expression_statement "cVar2 = *line;" (assignment_expression "cVar2 = *line" identifier = (pointer_expression "*line" * identifier)) ;)) (if_statement "if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *line = ' ';\n        }\n        line = line + 1;\n        cVar2 = *line;\n      } while (cVar2 != '\0');\n      return len;\n    }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      do {\n        if (cVar2 == '\t') {\n          *line = ' ';\n        }\n        line = line + 1;\n        cVar2 = *line;\n      } while (cVar2 != '\0');\n      return len;\n    }" { (do_statement "do {\n        if (cVar2 == '\t') {\n          *line = ' ';\n        }\n        line = line + 1;\n        cVar2 = *line;\n      } while (cVar2 != '\0');" do (compound_statement "{\n        if (cVar2 == '\t') {\n          *line = ' ';\n        }\n        line = line + 1;\n        cVar2 = *line;\n      }" { (if_statement "if (cVar2 == '\t') {\n          *line = ' ';\n        }" if (parenthesized_expression "(cVar2 == '\t')" ( (binary_expression "cVar2 == '\t'" identifier == (char_literal "'\t'" ' escape_sequence ')) )) (compound_statement "{\n          *line = ' ';\n        }" { (expression_statement "*line = ' ';" (assignment_expression "*line = ' '" (pointer_expression "*line" * identifier) = (char_literal "' '" ' character ')) ;) })) (expression_statement "line = line + 1;" (assignment_expression "line = line + 1" identifier = (binary_expression "line + 1" identifier + number_literal)) ;) (expression_statement "cVar2 = *line;" (assignment_expression "cVar2 = *line" identifier = (pointer_expression "*line" * identifier)) ;) }) while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (return_statement "return len;" return identifier ;) })) }) (else_clause "else {\n    pcVar1 = line + len + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      len = len + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (len != 0);\n  }" else (compound_statement "{\n    pcVar1 = line + len + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      len = len + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (len != 0);\n  }" { (expression_statement "pcVar1 = line + len + -1;" (assignment_expression "pcVar1 = line + len + -1" identifier = (binary_expression "line + len + -1" (binary_expression "line + len" identifier + identifier) + number_literal)) ;) (do_statement "do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      len = len + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (len != 0);" do (compound_statement "{\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      len = len + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    }" { (if_statement "if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;" if (parenthesized_expression "((*pcVar1 != '\n') && (*pcVar1 != '\r'))" ( (binary_expression "(*pcVar1 != '\n') && (*pcVar1 != '\r')" (parenthesized_expression "(*pcVar1 != '\n')" ( (binary_expression "*pcVar1 != '\n'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\n'" ' escape_sequence ')) )) && (parenthesized_expression "(*pcVar1 != '\r')" ( (binary_expression "*pcVar1 != '\r'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\r'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_0002bde0;" goto statement_identifier ;)) (expression_statement "len = len + -1;" (assignment_expression "len = len + -1" identifier = (binary_expression "len + -1" identifier + number_literal)) ;) (expression_statement "*pcVar1 = '\0';" (assignment_expression "*pcVar1 = '\0'" (pointer_expression "*pcVar1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1 = pcVar1 + -1;" (assignment_expression "pcVar1 = pcVar1 + -1" identifier = (binary_expression "pcVar1 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(len != 0)" ( (binary_expression "len != 0" identifier != number_literal) )) ;) }))) (return_statement "return len;" return identifier ;) })))
(translation_unit "int FUN_0002bd90(char *param_1,int param_2)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  if (param_2 < 1) {\n    if (param_2 == 0) {\n      return 0;\n    }\nLAB_0002bde0:\n    cVar2 = *param_1;\n    if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');\n      return param_2;\n    }\n  }\n  else {\n    pcVar1 = param_1 + param_2 + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (param_2 != 0);\n  }\n  return param_2;\n}\n\n" (function_definition "int FUN_0002bd90(char *param_1,int param_2)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  if (param_2 < 1) {\n    if (param_2 == 0) {\n      return 0;\n    }\nLAB_0002bde0:\n    cVar2 = *param_1;\n    if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');\n      return param_2;\n    }\n  }\n  else {\n    pcVar1 = param_1 + param_2 + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (param_2 != 0);\n  }\n  return param_2;\n}" primitive_type (function_declarator "FUN_0002bd90(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  char cVar2;\n  \n  if (param_2 < 1) {\n    if (param_2 == 0) {\n      return 0;\n    }\nLAB_0002bde0:\n    cVar2 = *param_1;\n    if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');\n      return param_2;\n    }\n  }\n  else {\n    pcVar1 = param_1 + param_2 + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (param_2 != 0);\n  }\n  return param_2;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (if_statement "if (param_2 < 1) {\n    if (param_2 == 0) {\n      return 0;\n    }\nLAB_0002bde0:\n    cVar2 = *param_1;\n    if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');\n      return param_2;\n    }\n  }\n  else {\n    pcVar1 = param_1 + param_2 + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (param_2 != 0);\n  }" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n    if (param_2 == 0) {\n      return 0;\n    }\nLAB_0002bde0:\n    cVar2 = *param_1;\n    if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');\n      return param_2;\n    }\n  }" { (if_statement "if (param_2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_0002bde0:\n    cVar2 = *param_1;" statement_identifier : (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;)) (if_statement "if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');\n      return param_2;\n    }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');\n      return param_2;\n    }" { (do_statement "do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');" do (compound_statement "{\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      }" { (if_statement "if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }" if (parenthesized_expression "(cVar2 == '\t')" ( (binary_expression "cVar2 == '\t'" identifier == (char_literal "'\t'" ' escape_sequence ')) )) (compound_statement "{\n          *param_1 = ' ';\n        }" { (expression_statement "*param_1 = ' ';" (assignment_expression "*param_1 = ' '" (pointer_expression "*param_1" * identifier) = (char_literal "' '" ' character ')) ;) })) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (return_statement "return param_2;" return identifier ;) })) }) (else_clause "else {\n    pcVar1 = param_1 + param_2 + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (param_2 != 0);\n  }" else (compound_statement "{\n    pcVar1 = param_1 + param_2 + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (param_2 != 0);\n  }" { (expression_statement "pcVar1 = param_1 + param_2 + -1;" (assignment_expression "pcVar1 = param_1 + param_2 + -1" identifier = (binary_expression "param_1 + param_2 + -1" (binary_expression "param_1 + param_2" identifier + identifier) + number_literal)) ;) (do_statement "do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (param_2 != 0);" do (compound_statement "{\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    }" { (if_statement "if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;" if (parenthesized_expression "((*pcVar1 != '\n') && (*pcVar1 != '\r'))" ( (binary_expression "(*pcVar1 != '\n') && (*pcVar1 != '\r')" (parenthesized_expression "(*pcVar1 != '\n')" ( (binary_expression "*pcVar1 != '\n'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\n'" ' escape_sequence ')) )) && (parenthesized_expression "(*pcVar1 != '\r')" ( (binary_expression "*pcVar1 != '\r'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\r'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_0002bde0;" goto statement_identifier ;)) (expression_statement "param_2 = param_2 + -1;" (assignment_expression "param_2 = param_2 + -1" identifier = (binary_expression "param_2 + -1" identifier + number_literal)) ;) (expression_statement "*pcVar1 = '\0';" (assignment_expression "*pcVar1 = '\0'" (pointer_expression "*pcVar1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1 = pcVar1 + -1;" (assignment_expression "pcVar1 = pcVar1 + -1" identifier = (binary_expression "pcVar1 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) }))) (return_statement "return param_2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' character ')) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (return_statement return IDENT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_0002bd90(char *param_1,int param_2)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  if (param_2 < 1) {\n    if (param_2 == 0) {\n      return 0;\n    }\nLAB_0002bde0:\n    cVar2 = *param_1;\n    if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');\n      return param_2;\n    }\n  }\n  else {\n    pcVar1 = param_1 + param_2 + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (param_2 != 0);\n  }\n  return param_2;\n}" (primitive_type "int") (function_declarator "FUN_0002bd90(char *param_1,int param_2)" (identifier "FUN_0002bd90") (parameter_list "(char *param_1,int param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  char cVar2;\n  \n  if (param_2 < 1) {\n    if (param_2 == 0) {\n      return 0;\n    }\nLAB_0002bde0:\n    cVar2 = *param_1;\n    if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');\n      return param_2;\n    }\n  }\n  else {\n    pcVar1 = param_1 + param_2 + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (param_2 != 0);\n  }\n  return param_2;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (if_statement "if (param_2 < 1) {\n    if (param_2 == 0) {\n      return 0;\n    }\nLAB_0002bde0:\n    cVar2 = *param_1;\n    if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');\n      return param_2;\n    }\n  }\n  else {\n    pcVar1 = param_1 + param_2 + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (param_2 != 0);\n  }" (if "if") (parenthesized_expression "(param_2 < 1)" (( "(") (binary_expression "param_2 < 1" (identifier "param_2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    if (param_2 == 0) {\n      return 0;\n    }\nLAB_0002bde0:\n    cVar2 = *param_1;\n    if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');\n      return param_2;\n    }\n  }" ({ "{") (if_statement "if (param_2 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (labeled_statement "LAB_0002bde0:\n    cVar2 = *param_1;" (statement_identifier "LAB_0002bde0") (: ":") (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" (identifier "cVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";"))) (if_statement "if (cVar2 != '\0') {\n      do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');\n      return param_2;\n    }" (if "if") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');\n      return param_2;\n    }" ({ "{") (do_statement "do {\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      } while (cVar2 != '\0');" (do "do") (compound_statement "{\n        if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }\n        param_1 = param_1 + 1;\n        cVar2 = *param_1;\n      }" ({ "{") (if_statement "if (cVar2 == '\t') {\n          *param_1 = ' ';\n        }" (if "if") (parenthesized_expression "(cVar2 == '\t')" (( "(") (binary_expression "cVar2 == '\t'" (identifier "cVar2") (== "==") (char_literal "'\t'" (' "'") (escape_sequence "\t") (' "'"))) () ")")) (compound_statement "{\n          *param_1 = ' ';\n        }" ({ "{") (expression_statement "*param_1 = ' ';" (assignment_expression "*param_1 = ' '" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (char_literal "' '" (' "'") (character " ") (' "'"))) (; ";")) (} "}"))) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" (identifier "cVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    pcVar1 = param_1 + param_2 + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (param_2 != 0);\n  }" (else "else") (compound_statement "{\n    pcVar1 = param_1 + param_2 + -1;\n    do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (param_2 != 0);\n  }" ({ "{") (expression_statement "pcVar1 = param_1 + param_2 + -1;" (assignment_expression "pcVar1 = param_1 + param_2 + -1" (identifier "pcVar1") (= "=") (binary_expression "param_1 + param_2 + -1" (binary_expression "param_1 + param_2" (identifier "param_1") (+ "+") (identifier "param_2")) (+ "+") (number_literal "-1"))) (; ";")) (do_statement "do {\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    } while (param_2 != 0);" (do "do") (compound_statement "{\n      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;\n      param_2 = param_2 + -1;\n      *pcVar1 = '\0';\n      pcVar1 = pcVar1 + -1;\n    }" ({ "{") (if_statement "if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;" (if "if") (parenthesized_expression "((*pcVar1 != '\n') && (*pcVar1 != '\r'))" (( "(") (binary_expression "(*pcVar1 != '\n') && (*pcVar1 != '\r')" (parenthesized_expression "(*pcVar1 != '\n')" (( "(") (binary_expression "*pcVar1 != '\n'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (!= "!=") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(*pcVar1 != '\r')" (( "(") (binary_expression "*pcVar1 != '\r'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (!= "!=") (char_literal "'\r'" (' "'") (escape_sequence "\r") (' "'"))) () ")"))) () ")")) (goto_statement "goto LAB_0002bde0;" (goto "goto") (statement_identifier "LAB_0002bde0") (; ";"))) (expression_statement "param_2 = param_2 + -1;" (assignment_expression "param_2 = param_2 + -1" (identifier "param_2") (= "=") (binary_expression "param_2 + -1" (identifier "param_2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*pcVar1 = '\0';" (assignment_expression "*pcVar1 = '\0'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "pcVar1 = pcVar1 + -1;" (assignment_expression "pcVar1 = pcVar1 + -1" (identifier "pcVar1") (= "=") (binary_expression "pcVar1 + -1" (identifier "pcVar1") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}")))) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}")))

int function_1(char *var_3,int var_1)

{
  char *var_4;
  char var_2;
  
  if (var_1 < 1) {
    if (var_1 == 0) {
      return 0;
    }
LAB_0002bde0:
    var_2 = *var_3;
    if (var_2 != '\0') {
      do {
        if (var_2 == '\t') {
          *var_3 = ' ';
        }
        var_3 = var_3 + 1;
        var_2 = *var_3;
      } while (var_2 != '\0');
      return var_1;
    }
  }
  else {
    var_4 = var_3 + var_1 + -1;
    do {
      if ((*var_4 != '\n') && (*var_4 != '\r')) goto LAB_0002bde0;
      var_1 = var_1 + -1;
      *var_4 = '\0';
      var_4 = var_4 + -1;
    } while (var_1 != 0);
  }
  return var_1;
}


(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))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (labeled_statement label: (statement_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 (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) (return_statement (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (return_statement (identifier)))))

int MASKED(char *param_1,int param_2)

{
  char *pcVar1;
  char cVar2;
  
  if (param_2 < 1) {
    if (param_2 == 0) {
      return 0;
    }
LAB_0002bde0:
    cVar2 = *param_1;
    if (cVar2 != '\0') {
      do {
        if (cVar2 == '\t') {
          *param_1 = ' ';
        }
        param_1 = param_1 + 1;
        cVar2 = *param_1;
      } while (cVar2 != '\0');
      return param_2;
    }
  }
  else {
    pcVar1 = param_1 + param_2 + -1;
    do {
      if ((*pcVar1 != '\n') && (*pcVar1 != '\r')) goto LAB_0002bde0;
      param_2 = param_2 + -1;
      *pcVar1 = '\0';
      pcVar1 = pcVar1 + -1;
    } while (param_2 != 0);
  }
  return param_2;
}

