
/* DWARF original prototype: bool skip_c_comment(Lex * this, char * * pp) */

bool __thiscall gold::Lex::skip_c_comment(Lex *this,char **pp)

{
  char cVar1;
  char *pcVar2;
  
  pcVar2 = *pp;
  cVar1 = *pcVar2;
  do {
    if (cVar1 == '*') {
      cVar1 = pcVar2[1];
      if (cVar1 == '/') {
        *pp = pcVar2 + 2;
        return true;
      }
    }
    else {
      if (cVar1 == '\0') {
        *pp = pcVar2;
        return false;
      }
      if (cVar1 == '\n') {
        this->lineno_ = this->lineno_ + 1;
        this->linestart_ = pcVar2 + 1;
      }
      cVar1 = pcVar2[1];
    }
    pcVar2 = pcVar2 + 1;
  } while( true );
}



char FUN_0017c390(int param_1,undefined4 *param_2)

{
  char cVar1;
  char *pcVar2;
  
  pcVar2 = (char *)*param_2;
  cVar1 = *pcVar2;
  do {
    if (cVar1 == '*') {
      cVar1 = pcVar2[1];
      if (cVar1 == '/') {
        *param_2 = pcVar2 + 2;
        return '\x01';
      }
    }
    else {
      if (cVar1 == '\0') {
        *param_2 = pcVar2;
        return cVar1;
      }
      if (cVar1 == '\n') {
        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;
        *(char **)(param_1 + 0x30) = pcVar2 + 1;
      }
      cVar1 = pcVar2[1];
    }
    pcVar2 = pcVar2 + 1;
  } while( true );
}


PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
MOV EBX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [ESI]
MOVZX EAX,byte ptr [EDX]
CMP AL,0x2a
JZ 0x0017c3c4
LEA ESI,[ESI]
NOP
TEST AL,AL
JZ 0x0017c3d8
LEA ECX,[EDX + 0x1]
CMP AL,0xa
JNZ 0x0017c3ba
ADD dword ptr [EBX + 0x2c],0x1
MOV dword ptr [EBX + 0x30],ECX
MOVZX EAX,byte ptr [EDX + 0x1]
MOV EDX,ECX
CMP AL,0x2a
JNZ 0x0017c3a8
MOVZX EAX,byte ptr [EDX + 0x1]
CMP AL,0x2f
JZ 0x0017c3e0
LEA ECX,[EDX + 0x1]
MOV EDX,ECX
JMP 0x0017c3c0
MOV dword ptr [ESI],EDX
POP EBX
POP ESI
RET
ADD EDX,0x2
MOV EAX,0x1
MOV dword ptr [ESI],EDX
POP EBX
POP ESI
RET
(translation_unit "char FUN_0017c390(int param_1,undefined4 *param_2)\n\n{\n  char cVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)*param_2;\n  cVar1 = *pcVar2;\n  do {\n    if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }\n    pcVar2 = pcVar2 + 1;\n  } while( true );\n}\n\n" (function_definition "char FUN_0017c390(int param_1,undefined4 *param_2)\n\n{\n  char cVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)*param_2;\n  cVar1 = *pcVar2;\n  do {\n    if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }\n    pcVar2 = pcVar2 + 1;\n  } while( true );\n}" primitive_type (function_declarator "FUN_0017c390(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)*param_2;\n  cVar1 = *pcVar2;\n  do {\n    if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }\n    pcVar2 = pcVar2 + 1;\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "pcVar2 = (char *)*param_2;" (assignment_expression "pcVar2 = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (do_statement "do {\n    if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }\n    pcVar2 = pcVar2 + 1;\n  } while( true );" do (compound_statement "{\n    if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }\n    pcVar2 = pcVar2 + 1;\n  }" { (if_statement "if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }" if (parenthesized_expression "(cVar1 == '*')" ( (binary_expression "cVar1 == '*'" identifier == (char_literal "'*'" ' character ')) )) (compound_statement "{\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }\n    }" { (expression_statement "cVar1 = pcVar2[1];" (assignment_expression "cVar1 = pcVar2[1]" identifier = (subscript_expression "pcVar2[1]" identifier [ number_literal ])) ;) (if_statement "if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }" if (parenthesized_expression "(cVar1 == '/')" ( (binary_expression "cVar1 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }" { (expression_statement "*param_2 = pcVar2 + 2;" (assignment_expression "*param_2 = pcVar2 + 2" (pointer_expression "*param_2" * identifier) = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) (return_statement "return '\x01';" return (char_literal "'\x01'" ' escape_sequence ') ;) })) }) (else_clause "else {\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }" else (compound_statement "{\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }" { (if_statement "if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        *param_2 = pcVar2;\n        return cVar1;\n      }" { (expression_statement "*param_2 = pcVar2;" (assignment_expression "*param_2 = pcVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return cVar1;" return identifier ;) })) (if_statement "if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }" if (parenthesized_expression "(cVar1 == '\n')" ( (binary_expression "cVar1 == '\n'" identifier == (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }" { (expression_statement "*(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "*(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(char **)(param_1 + 0x30) = pcVar2 + 1;" (assignment_expression "*(char **)(param_1 + 0x30) = pcVar2 + 1" (pointer_expression "*(char **)(param_1 + 0x30)" * (cast_expression "(char **)(param_1 + 0x30)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) })) (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)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* DWARF original prototype: bool skip_c_comment(Lex * this, char * * pp) */\n\nbool __thiscall gold::Lex::skip_c_comment(Lex *this,char **pp)\n\n{\n  char cVar1;\n  char *pcVar2;\n  \n  pcVar2 = *pp;\n  cVar1 = *pcVar2;\n  do {\n    if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *pp = pcVar2 + 2;\n        return true;\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *pp = pcVar2;\n        return false;\n      }\n      if (cVar1 == '\n') {\n        this->lineno_ = this->lineno_ + 1;\n        this->linestart_ = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }\n    pcVar2 = pcVar2 + 1;\n  } while( true );\n}\n\n" comment (function_definition "bool __thiscall gold::Lex::skip_c_comment(Lex *this,char **pp)\n\n{\n  char cVar1;\n  char *pcVar2;\n  \n  pcVar2 = *pp;\n  cVar1 = *pcVar2;\n  do {\n    if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *pp = pcVar2 + 2;\n        return true;\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *pp = pcVar2;\n        return false;\n      }\n      if (cVar1 == '\n') {\n        this->lineno_ = this->lineno_ + 1;\n        this->linestart_ = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }\n    pcVar2 = pcVar2 + 1;\n  } while( true );\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Lex::" identifier : : identifier : :) (function_declarator "skip_c_comment(Lex *this,char **pp)" identifier (parameter_list "(Lex *this,char **pp)" ( (parameter_declaration "Lex *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char **pp" primitive_type (pointer_declarator "**pp" * (pointer_declarator "*pp" * identifier))) ))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  \n  pcVar2 = *pp;\n  cVar1 = *pcVar2;\n  do {\n    if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *pp = pcVar2 + 2;\n        return true;\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *pp = pcVar2;\n        return false;\n      }\n      if (cVar1 == '\n') {\n        this->lineno_ = this->lineno_ + 1;\n        this->linestart_ = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }\n    pcVar2 = pcVar2 + 1;\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "pcVar2 = *pp;" (assignment_expression "pcVar2 = *pp" identifier = (pointer_expression "*pp" * identifier)) ;) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (do_statement "do {\n    if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *pp = pcVar2 + 2;\n        return true;\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *pp = pcVar2;\n        return false;\n      }\n      if (cVar1 == '\n') {\n        this->lineno_ = this->lineno_ + 1;\n        this->linestart_ = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }\n    pcVar2 = pcVar2 + 1;\n  } while( true );" do (compound_statement "{\n    if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *pp = pcVar2 + 2;\n        return true;\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *pp = pcVar2;\n        return false;\n      }\n      if (cVar1 == '\n') {\n        this->lineno_ = this->lineno_ + 1;\n        this->linestart_ = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }\n    pcVar2 = pcVar2 + 1;\n  }" { (if_statement "if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *pp = pcVar2 + 2;\n        return true;\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *pp = pcVar2;\n        return false;\n      }\n      if (cVar1 == '\n') {\n        this->lineno_ = this->lineno_ + 1;\n        this->linestart_ = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }" if (parenthesized_expression "(cVar1 == '*')" ( (binary_expression "cVar1 == '*'" identifier == (char_literal "'*'" ' character ')) )) (compound_statement "{\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *pp = pcVar2 + 2;\n        return true;\n      }\n    }" { (expression_statement "cVar1 = pcVar2[1];" (assignment_expression "cVar1 = pcVar2[1]" identifier = (subscript_expression "pcVar2[1]" identifier [ number_literal ])) ;) (if_statement "if (cVar1 == '/') {\n        *pp = pcVar2 + 2;\n        return true;\n      }" if (parenthesized_expression "(cVar1 == '/')" ( (binary_expression "cVar1 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n        *pp = pcVar2 + 2;\n        return true;\n      }" { (expression_statement "*pp = pcVar2 + 2;" (assignment_expression "*pp = pcVar2 + 2" (pointer_expression "*pp" * identifier) = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) (return_statement "return true;" return true ;) })) }) (else_clause "else {\n      if (cVar1 == '\0') {\n        *pp = pcVar2;\n        return false;\n      }\n      if (cVar1 == '\n') {\n        this->lineno_ = this->lineno_ + 1;\n        this->linestart_ = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }" else (compound_statement "{\n      if (cVar1 == '\0') {\n        *pp = pcVar2;\n        return false;\n      }\n      if (cVar1 == '\n') {\n        this->lineno_ = this->lineno_ + 1;\n        this->linestart_ = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }" { (if_statement "if (cVar1 == '\0') {\n        *pp = pcVar2;\n        return false;\n      }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        *pp = pcVar2;\n        return false;\n      }" { (expression_statement "*pp = pcVar2;" (assignment_expression "*pp = pcVar2" (pointer_expression "*pp" * identifier) = identifier) ;) (return_statement "return false;" return false ;) })) (if_statement "if (cVar1 == '\n') {\n        this->lineno_ = this->lineno_ + 1;\n        this->linestart_ = pcVar2 + 1;\n      }" if (parenthesized_expression "(cVar1 == '\n')" ( (binary_expression "cVar1 == '\n'" identifier == (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n        this->lineno_ = this->lineno_ + 1;\n        this->linestart_ = pcVar2 + 1;\n      }" { (expression_statement "this->lineno_ = this->lineno_ + 1;" (assignment_expression "this->lineno_ = this->lineno_ + 1" (field_expression "this->lineno_" identifier -> field_identifier) = (binary_expression "this->lineno_ + 1" (field_expression "this->lineno_" identifier -> field_identifier) + number_literal)) ;) (expression_statement "this->linestart_ = pcVar2 + 1;" (assignment_expression "this->linestart_ = pcVar2 + 1" (field_expression "this->linestart_" identifier -> field_identifier) = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) })) (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)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "char FUN_0017c390(int param_1,undefined4 *param_2)\n\n{\n  char cVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)*param_2;\n  cVar1 = *pcVar2;\n  do {\n    if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }\n    pcVar2 = pcVar2 + 1;\n  } while( true );\n}\n\n" (function_definition "char FUN_0017c390(int param_1,undefined4 *param_2)\n\n{\n  char cVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)*param_2;\n  cVar1 = *pcVar2;\n  do {\n    if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }\n    pcVar2 = pcVar2 + 1;\n  } while( true );\n}" primitive_type (function_declarator "FUN_0017c390(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)*param_2;\n  cVar1 = *pcVar2;\n  do {\n    if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }\n    pcVar2 = pcVar2 + 1;\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "pcVar2 = (char *)*param_2;" (assignment_expression "pcVar2 = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (do_statement "do {\n    if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }\n    pcVar2 = pcVar2 + 1;\n  } while( true );" do (compound_statement "{\n    if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }\n    pcVar2 = pcVar2 + 1;\n  }" { (if_statement "if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }" if (parenthesized_expression "(cVar1 == '*')" ( (binary_expression "cVar1 == '*'" identifier == (char_literal "'*'" ' character ')) )) (compound_statement "{\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }\n    }" { (expression_statement "cVar1 = pcVar2[1];" (assignment_expression "cVar1 = pcVar2[1]" identifier = (subscript_expression "pcVar2[1]" identifier [ number_literal ])) ;) (if_statement "if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }" if (parenthesized_expression "(cVar1 == '/')" ( (binary_expression "cVar1 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }" { (expression_statement "*param_2 = pcVar2 + 2;" (assignment_expression "*param_2 = pcVar2 + 2" (pointer_expression "*param_2" * identifier) = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) (return_statement "return '\x01';" return (char_literal "'\x01'" ' escape_sequence ') ;) })) }) (else_clause "else {\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }" else (compound_statement "{\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }" { (if_statement "if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        *param_2 = pcVar2;\n        return cVar1;\n      }" { (expression_statement "*param_2 = pcVar2;" (assignment_expression "*param_2 = pcVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return cVar1;" return identifier ;) })) (if_statement "if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }" if (parenthesized_expression "(cVar1 == '\n')" ( (binary_expression "cVar1 == '\n'" identifier == (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }" { (expression_statement "*(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "*(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(char **)(param_1 + 0x30) = pcVar2 + 1;" (assignment_expression "*(char **)(param_1 + 0x30) = pcVar2 + 1" (pointer_expression "*(char **)(param_1 + 0x30)" * (cast_expression "(char **)(param_1 + 0x30)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) })) (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)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (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 *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (return_statement return (char_literal ' escape_sequence ') ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "char FUN_0017c390(int param_1,undefined4 *param_2)\n\n{\n  char cVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)*param_2;\n  cVar1 = *pcVar2;\n  do {\n    if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }\n    pcVar2 = pcVar2 + 1;\n  } while( true );\n}" (primitive_type "char") (function_declarator "FUN_0017c390(int param_1,undefined4 *param_2)" (identifier "FUN_0017c390") (parameter_list "(int param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)*param_2;\n  cVar1 = *pcVar2;\n  do {\n    if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }\n    pcVar2 = pcVar2 + 1;\n  } while( true );\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (expression_statement "pcVar2 = (char *)*param_2;" (assignment_expression "pcVar2 = (char *)*param_2" (identifier "pcVar2") (= "=") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" (identifier "cVar1") (= "=") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2"))) (; ";")) (do_statement "do {\n    if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }\n    pcVar2 = pcVar2 + 1;\n  } while( true );" (do "do") (compound_statement "{\n    if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }\n    pcVar2 = pcVar2 + 1;\n  }" ({ "{") (if_statement "if (cVar1 == '*') {\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }\n    }\n    else {\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }" (if "if") (parenthesized_expression "(cVar1 == '*')" (( "(") (binary_expression "cVar1 == '*'" (identifier "cVar1") (== "==") (char_literal "'*'" (' "'") (character "*") (' "'"))) () ")")) (compound_statement "{\n      cVar1 = pcVar2[1];\n      if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }\n    }" ({ "{") (expression_statement "cVar1 = pcVar2[1];" (assignment_expression "cVar1 = pcVar2[1]" (identifier "cVar1") (= "=") (subscript_expression "pcVar2[1]" (identifier "pcVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (cVar1 == '/') {\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }" (if "if") (parenthesized_expression "(cVar1 == '/')" (( "(") (binary_expression "cVar1 == '/'" (identifier "cVar1") (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n        *param_2 = pcVar2 + 2;\n        return '\x01';\n      }" ({ "{") (expression_statement "*param_2 = pcVar2 + 2;" (assignment_expression "*param_2 = pcVar2 + 2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "pcVar2 + 2" (identifier "pcVar2") (+ "+") (number_literal "2"))) (; ";")) (return_statement "return '\x01';" (return "return") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }" (else "else") (compound_statement "{\n      if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }\n      if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }\n      cVar1 = pcVar2[1];\n    }" ({ "{") (if_statement "if (cVar1 == '\0') {\n        *param_2 = pcVar2;\n        return cVar1;\n      }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        *param_2 = pcVar2;\n        return cVar1;\n      }" ({ "{") (expression_statement "*param_2 = pcVar2;" (assignment_expression "*param_2 = pcVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "pcVar2")) (; ";")) (return_statement "return cVar1;" (return "return") (identifier "cVar1") (; ";")) (} "}"))) (if_statement "if (cVar1 == '\n') {\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }" (if "if") (parenthesized_expression "(cVar1 == '\n')" (( "(") (binary_expression "cVar1 == '\n'" (identifier "cVar1") (== "==") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")")) (compound_statement "{\n        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;\n        *(char **)(param_1 + 0x30) = pcVar2 + 1;\n      }" ({ "{") (expression_statement "*(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "*(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(char **)(param_1 + 0x30) = pcVar2 + 1;" (assignment_expression "*(char **)(param_1 + 0x30) = pcVar2 + 1" (pointer_expression "*(char **)(param_1 + 0x30)" (* "*") (cast_expression "(char **)(param_1 + 0x30)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (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"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* DWARF original prototype: bool skip_c_comment(Lex * this, char * * pp) */

bool __thiscall gold::type_1::function_1(type_1 *this,char **pp)

{
  char var_1;
  char *var_2;
  
  var_2 = *pp;
  var_1 = *var_2;
  do {
    if (var_1 == '*') {
      var_1 = var_2[1];
      if (var_1 == '/') {
        *pp = var_2 + 2;
        return true;
      }
    }
    else {
      if (var_1 == '\0') {
        *pp = var_2;
        return false;
      }
      if (var_1 == '\n') {
        this->lineno_ = this->lineno_ + 1;
        this->linestart_ = var_2 + 1;
      }
      var_1 = var_2[1];
    }
    var_2 = var_2 + 1;
  } while( true );
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) 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: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement (char_literal (escape_sequence)))))) alternative: (else_clause (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: (identifier))) (return_statement (identifier)))) (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))))) (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))))) condition: (parenthesized_expression (true))))))

char MASKED(int param_1,undefined4 *param_2)

{
  char cVar1;
  char *pcVar2;
  
  pcVar2 = (char *)*param_2;
  cVar1 = *pcVar2;
  do {
    if (cVar1 == '*') {
      cVar1 = pcVar2[1];
      if (cVar1 == '/') {
        *param_2 = pcVar2 + 2;
        return '\x01';
      }
    }
    else {
      if (cVar1 == '\0') {
        *param_2 = pcVar2;
        return cVar1;
      }
      if (cVar1 == '\n') {
        *(int *)(param_1 + 0x2c) = *(int *)(param_1 + 0x2c) + 1;
        *(char **)(param_1 + 0x30) = pcVar2 + 1;
      }
      cVar1 = pcVar2[1];
    }
    pcVar2 = pcVar2 + 1;
  } while( true );
}

