
int wc_unescape(char *output,char *wildcard)

{
  int iVar1;
  
  iVar1 = (int)*wildcard;
  while (iVar1 != 0) {
    if (iVar1 == 0x5c) {
      if (wildcard[1] == '\0') break;
      if (output != (char *)0x0) {
        *output = wildcard[1];
        output = output + 1;
      }
      iVar1 = (int)wildcard[2];
      wildcard = wildcard + 2;
    }
    else {
      if ((iVar1 == 0x2a) ||
         (((iVar1 - 0x3fU & 0xff) < 0x1f &&
          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {
        return 0;
      }
      if (output != (char *)0x0) {
        *output = (char)iVar1;
        output = output + 1;
      }
      iVar1 = (int)wildcard[1];
      wildcard = wildcard + 1;
    }
  }
  if (output != (char *)0x0) {
    *output = '\0';
    return 1;
  }
  return 1;
}



undefined4 wc_unescape(char *param_1,char *param_2)

{
  int iVar1;
  
  iVar1 = (int)*param_2;
  while (iVar1 != 0) {
    if (iVar1 == 0x5c) {
      if (param_2[1] == '\0') break;
      if (param_1 != (char *)0x0) {
        *param_1 = param_2[1];
        param_1 = param_1 + 1;
      }
      iVar1 = (int)param_2[2];
      param_2 = param_2 + 2;
    }
    else {
      if ((iVar1 == 0x2a) ||
         (((iVar1 - 0x3fU & 0xff) < 0x1f &&
          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {
        return 0;
      }
      if (param_1 != (char *)0x0) {
        *param_1 = (char)iVar1;
        param_1 = param_1 + 1;
      }
      iVar1 = (int)param_2[1];
      param_2 = param_2 + 1;
    }
  }
  if (param_1 != (char *)0x0) {
    *param_1 = '\0';
    return 1;
  }
  return 1;
}


lui t1,0x5000
lb v1,0x0(a1)
li a3,0x5c
li t0,0x2a
addiu t1,t1,0x1
beq v1,zero,0x0008a5a8
_nop
beq v1,a3,0x0008a59c
_nop
beq v1,t0,0x0008a5d8
_nop
addiu v0,v1,-0x3f
andi v0,v0,0xff
sltiu a2,v0,0x1f
beq a2,zero,0x0008a580
_srlv v0,t1,v0
ext v0,v0,0x0,0x1
bne v0,zero,0x0008a5d8
_nop
beq a0,zero,0x0008a590
_nop
sb v1,0x0(a0)
addiu a0,a0,0x1
lb v1,0x1(a1)
b 0x0008a548
_addiu a1,a1,0x1
lb v0,0x1(a1)
bne v0,zero,0x0008a5bc
_nop
beq a0,zero,0x0008a5e0
_nop
sb zero,0x0(a0)
jr ra
_li v0,0x1
beq a0,zero,0x0008a5cc
_nop
sb v0,0x0(a0)
addiu a0,a0,0x1
lb v1,0x2(a1)
b 0x0008a548
_addiu a1,a1,0x2
jr ra
_or v0,zero,zero
jr ra
_li v0,0x1
(translation_unit "undefined4 wc_unescape(char *param_1,char *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (int)*param_2;\n  while (iVar1 != 0) {\n    if (iVar1 == 0x5c) {\n      if (param_2[1] == '\0') break;\n      if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[2];\n      param_2 = param_2 + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }\n  }\n  if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n    return 1;\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 wc_unescape(char *param_1,char *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (int)*param_2;\n  while (iVar1 != 0) {\n    if (iVar1 == 0x5c) {\n      if (param_2[1] == '\0') break;\n      if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[2];\n      param_2 = param_2 + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }\n  }\n  if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n    return 1;\n  }\n  return 1;\n}" type_identifier (function_declarator "wc_unescape(char *param_1,char *param_2)" identifier (parameter_list "(char *param_1,char *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (int)*param_2;\n  while (iVar1 != 0) {\n    if (iVar1 == 0x5c) {\n      if (param_2[1] == '\0') break;\n      if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[2];\n      param_2 = param_2 + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }\n  }\n  if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n    return 1;\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (int)*param_2;" (assignment_expression "iVar1 = (int)*param_2" identifier = (cast_expression "(int)*param_2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_2" * identifier))) ;) (while_statement "while (iVar1 != 0) {\n    if (iVar1 == 0x5c) {\n      if (param_2[1] == '\0') break;\n      if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[2];\n      param_2 = param_2 + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }\n  }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (iVar1 == 0x5c) {\n      if (param_2[1] == '\0') break;\n      if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[2];\n      param_2 = param_2 + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }\n  }" { (if_statement "if (iVar1 == 0x5c) {\n      if (param_2[1] == '\0') break;\n      if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[2];\n      param_2 = param_2 + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }" if (parenthesized_expression "(iVar1 == 0x5c)" ( (binary_expression "iVar1 == 0x5c" identifier == number_literal) )) (compound_statement "{\n      if (param_2[1] == '\0') break;\n      if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[2];\n      param_2 = param_2 + 2;\n    }" { (if_statement "if (param_2[1] == '\0') break;" if (parenthesized_expression "(param_2[1] == '\0')" ( (binary_expression "param_2[1] == '\0'" (subscript_expression "param_2[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (if_statement "if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }" { (expression_statement "*param_1 = param_2[1];" (assignment_expression "*param_1 = param_2[1]" (pointer_expression "*param_1" * identifier) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (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 "iVar1 = (int)param_2[2];" (assignment_expression "iVar1 = (int)param_2[2]" identifier = (cast_expression "(int)param_2[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[2]" identifier [ number_literal ]))) ;) (expression_statement "param_2 = param_2 + 2;" (assignment_expression "param_2 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) }) (else_clause "else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }" else (compound_statement "{\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }" { (if_statement "if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }" if (parenthesized_expression "((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0))))" ( (binary_expression "(iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))" (parenthesized_expression "(iVar1 == 0x2a)" ( (binary_expression "iVar1 == 0x2a" identifier == number_literal) )) || (parenthesized_expression "(((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))" ( (parenthesized_expression "((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0))" ( (binary_expression "(iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)" (binary_expression "(iVar1 - 0x3fU & 0xff) < 0x1f" (parenthesized_expression "(iVar1 - 0x3fU & 0xff)" ( (binary_expression "iVar1 - 0x3fU & 0xff" (binary_expression "iVar1 - 0x3fU" identifier - number_literal) & number_literal) )) < number_literal) && (parenthesized_expression "((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)" ( (binary_expression "(int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0" (cast_expression "(int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f)" ( (binary_expression "(0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f" (parenthesized_expression "(0x50000001U >> (iVar1 - 0x3fU & 0x1f))" ( (binary_expression "0x50000001U >> (iVar1 - 0x3fU & 0x1f)" number_literal >> (parenthesized_expression "(iVar1 - 0x3fU & 0x1f)" ( (binary_expression "iVar1 - 0x3fU & 0x1f" (binary_expression "iVar1 - 0x3fU" identifier - number_literal) & number_literal) ))) )) << number_literal) ))) < number_literal) ))) )) ))) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }" { (expression_statement "*param_1 = (char)iVar1;" (assignment_expression "*param_1 = (char)iVar1" (pointer_expression "*param_1" * identifier) = (cast_expression "(char)iVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (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 "iVar1 = (int)param_2[1];" (assignment_expression "iVar1 = (int)param_2[1]" identifier = (cast_expression "(int)param_2[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) }))) })) (if_statement "if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n    return 1;\n  }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_1 = '\0';\n    return 1;\n  }" { (expression_statement "*param_1 = '\0';" (assignment_expression "*param_1 = '\0'" (pointer_expression "*param_1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int wc_unescape(char *output,char *wildcard)\n\n{\n  int iVar1;\n  \n  iVar1 = (int)*wildcard;\n  while (iVar1 != 0) {\n    if (iVar1 == 0x5c) {\n      if (wildcard[1] == '\0') break;\n      if (output != (char *)0x0) {\n        *output = wildcard[1];\n        output = output + 1;\n      }\n      iVar1 = (int)wildcard[2];\n      wildcard = wildcard + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (output != (char *)0x0) {\n        *output = (char)iVar1;\n        output = output + 1;\n      }\n      iVar1 = (int)wildcard[1];\n      wildcard = wildcard + 1;\n    }\n  }\n  if (output != (char *)0x0) {\n    *output = '\0';\n    return 1;\n  }\n  return 1;\n}\n\n" (function_definition "int wc_unescape(char *output,char *wildcard)\n\n{\n  int iVar1;\n  \n  iVar1 = (int)*wildcard;\n  while (iVar1 != 0) {\n    if (iVar1 == 0x5c) {\n      if (wildcard[1] == '\0') break;\n      if (output != (char *)0x0) {\n        *output = wildcard[1];\n        output = output + 1;\n      }\n      iVar1 = (int)wildcard[2];\n      wildcard = wildcard + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (output != (char *)0x0) {\n        *output = (char)iVar1;\n        output = output + 1;\n      }\n      iVar1 = (int)wildcard[1];\n      wildcard = wildcard + 1;\n    }\n  }\n  if (output != (char *)0x0) {\n    *output = '\0';\n    return 1;\n  }\n  return 1;\n}" primitive_type (function_declarator "wc_unescape(char *output,char *wildcard)" identifier (parameter_list "(char *output,char *wildcard)" ( (parameter_declaration "char *output" primitive_type (pointer_declarator "*output" * identifier)) , (parameter_declaration "char *wildcard" primitive_type (pointer_declarator "*wildcard" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (int)*wildcard;\n  while (iVar1 != 0) {\n    if (iVar1 == 0x5c) {\n      if (wildcard[1] == '\0') break;\n      if (output != (char *)0x0) {\n        *output = wildcard[1];\n        output = output + 1;\n      }\n      iVar1 = (int)wildcard[2];\n      wildcard = wildcard + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (output != (char *)0x0) {\n        *output = (char)iVar1;\n        output = output + 1;\n      }\n      iVar1 = (int)wildcard[1];\n      wildcard = wildcard + 1;\n    }\n  }\n  if (output != (char *)0x0) {\n    *output = '\0';\n    return 1;\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (int)*wildcard;" (assignment_expression "iVar1 = (int)*wildcard" identifier = (cast_expression "(int)*wildcard" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*wildcard" * identifier))) ;) (while_statement "while (iVar1 != 0) {\n    if (iVar1 == 0x5c) {\n      if (wildcard[1] == '\0') break;\n      if (output != (char *)0x0) {\n        *output = wildcard[1];\n        output = output + 1;\n      }\n      iVar1 = (int)wildcard[2];\n      wildcard = wildcard + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (output != (char *)0x0) {\n        *output = (char)iVar1;\n        output = output + 1;\n      }\n      iVar1 = (int)wildcard[1];\n      wildcard = wildcard + 1;\n    }\n  }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (iVar1 == 0x5c) {\n      if (wildcard[1] == '\0') break;\n      if (output != (char *)0x0) {\n        *output = wildcard[1];\n        output = output + 1;\n      }\n      iVar1 = (int)wildcard[2];\n      wildcard = wildcard + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (output != (char *)0x0) {\n        *output = (char)iVar1;\n        output = output + 1;\n      }\n      iVar1 = (int)wildcard[1];\n      wildcard = wildcard + 1;\n    }\n  }" { (if_statement "if (iVar1 == 0x5c) {\n      if (wildcard[1] == '\0') break;\n      if (output != (char *)0x0) {\n        *output = wildcard[1];\n        output = output + 1;\n      }\n      iVar1 = (int)wildcard[2];\n      wildcard = wildcard + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (output != (char *)0x0) {\n        *output = (char)iVar1;\n        output = output + 1;\n      }\n      iVar1 = (int)wildcard[1];\n      wildcard = wildcard + 1;\n    }" if (parenthesized_expression "(iVar1 == 0x5c)" ( (binary_expression "iVar1 == 0x5c" identifier == number_literal) )) (compound_statement "{\n      if (wildcard[1] == '\0') break;\n      if (output != (char *)0x0) {\n        *output = wildcard[1];\n        output = output + 1;\n      }\n      iVar1 = (int)wildcard[2];\n      wildcard = wildcard + 2;\n    }" { (if_statement "if (wildcard[1] == '\0') break;" if (parenthesized_expression "(wildcard[1] == '\0')" ( (binary_expression "wildcard[1] == '\0'" (subscript_expression "wildcard[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (if_statement "if (output != (char *)0x0) {\n        *output = wildcard[1];\n        output = output + 1;\n      }" if (parenthesized_expression "(output != (char *)0x0)" ( (binary_expression "output != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *output = wildcard[1];\n        output = output + 1;\n      }" { (expression_statement "*output = wildcard[1];" (assignment_expression "*output = wildcard[1]" (pointer_expression "*output" * identifier) = (subscript_expression "wildcard[1]" identifier [ number_literal ])) ;) (expression_statement "output = output + 1;" (assignment_expression "output = output + 1" identifier = (binary_expression "output + 1" identifier + number_literal)) ;) })) (expression_statement "iVar1 = (int)wildcard[2];" (assignment_expression "iVar1 = (int)wildcard[2]" identifier = (cast_expression "(int)wildcard[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "wildcard[2]" identifier [ number_literal ]))) ;) (expression_statement "wildcard = wildcard + 2;" (assignment_expression "wildcard = wildcard + 2" identifier = (binary_expression "wildcard + 2" identifier + number_literal)) ;) }) (else_clause "else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (output != (char *)0x0) {\n        *output = (char)iVar1;\n        output = output + 1;\n      }\n      iVar1 = (int)wildcard[1];\n      wildcard = wildcard + 1;\n    }" else (compound_statement "{\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (output != (char *)0x0) {\n        *output = (char)iVar1;\n        output = output + 1;\n      }\n      iVar1 = (int)wildcard[1];\n      wildcard = wildcard + 1;\n    }" { (if_statement "if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }" if (parenthesized_expression "((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0))))" ( (binary_expression "(iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))" (parenthesized_expression "(iVar1 == 0x2a)" ( (binary_expression "iVar1 == 0x2a" identifier == number_literal) )) || (parenthesized_expression "(((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))" ( (parenthesized_expression "((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0))" ( (binary_expression "(iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)" (binary_expression "(iVar1 - 0x3fU & 0xff) < 0x1f" (parenthesized_expression "(iVar1 - 0x3fU & 0xff)" ( (binary_expression "iVar1 - 0x3fU & 0xff" (binary_expression "iVar1 - 0x3fU" identifier - number_literal) & number_literal) )) < number_literal) && (parenthesized_expression "((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)" ( (binary_expression "(int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0" (cast_expression "(int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f)" ( (binary_expression "(0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f" (parenthesized_expression "(0x50000001U >> (iVar1 - 0x3fU & 0x1f))" ( (binary_expression "0x50000001U >> (iVar1 - 0x3fU & 0x1f)" number_literal >> (parenthesized_expression "(iVar1 - 0x3fU & 0x1f)" ( (binary_expression "iVar1 - 0x3fU & 0x1f" (binary_expression "iVar1 - 0x3fU" identifier - number_literal) & number_literal) ))) )) << number_literal) ))) < number_literal) ))) )) ))) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (output != (char *)0x0) {\n        *output = (char)iVar1;\n        output = output + 1;\n      }" if (parenthesized_expression "(output != (char *)0x0)" ( (binary_expression "output != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *output = (char)iVar1;\n        output = output + 1;\n      }" { (expression_statement "*output = (char)iVar1;" (assignment_expression "*output = (char)iVar1" (pointer_expression "*output" * identifier) = (cast_expression "(char)iVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "output = output + 1;" (assignment_expression "output = output + 1" identifier = (binary_expression "output + 1" identifier + number_literal)) ;) })) (expression_statement "iVar1 = (int)wildcard[1];" (assignment_expression "iVar1 = (int)wildcard[1]" identifier = (cast_expression "(int)wildcard[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "wildcard[1]" identifier [ number_literal ]))) ;) (expression_statement "wildcard = wildcard + 1;" (assignment_expression "wildcard = wildcard + 1" identifier = (binary_expression "wildcard + 1" identifier + number_literal)) ;) }))) })) (if_statement "if (output != (char *)0x0) {\n    *output = '\0';\n    return 1;\n  }" if (parenthesized_expression "(output != (char *)0x0)" ( (binary_expression "output != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *output = '\0';\n    return 1;\n  }" { (expression_statement "*output = '\0';" (assignment_expression "*output = '\0'" (pointer_expression "*output" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 wc_unescape(char *param_1,char *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (int)*param_2;\n  while (iVar1 != 0) {\n    if (iVar1 == 0x5c) {\n      if (param_2[1] == '\0') break;\n      if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[2];\n      param_2 = param_2 + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }\n  }\n  if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n    return 1;\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 wc_unescape(char *param_1,char *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (int)*param_2;\n  while (iVar1 != 0) {\n    if (iVar1 == 0x5c) {\n      if (param_2[1] == '\0') break;\n      if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[2];\n      param_2 = param_2 + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }\n  }\n  if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n    return 1;\n  }\n  return 1;\n}" type_identifier (function_declarator "wc_unescape(char *param_1,char *param_2)" identifier (parameter_list "(char *param_1,char *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (int)*param_2;\n  while (iVar1 != 0) {\n    if (iVar1 == 0x5c) {\n      if (param_2[1] == '\0') break;\n      if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[2];\n      param_2 = param_2 + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }\n  }\n  if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n    return 1;\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (int)*param_2;" (assignment_expression "iVar1 = (int)*param_2" identifier = (cast_expression "(int)*param_2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_2" * identifier))) ;) (while_statement "while (iVar1 != 0) {\n    if (iVar1 == 0x5c) {\n      if (param_2[1] == '\0') break;\n      if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[2];\n      param_2 = param_2 + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }\n  }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (iVar1 == 0x5c) {\n      if (param_2[1] == '\0') break;\n      if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[2];\n      param_2 = param_2 + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }\n  }" { (if_statement "if (iVar1 == 0x5c) {\n      if (param_2[1] == '\0') break;\n      if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[2];\n      param_2 = param_2 + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }" if (parenthesized_expression "(iVar1 == 0x5c)" ( (binary_expression "iVar1 == 0x5c" identifier == number_literal) )) (compound_statement "{\n      if (param_2[1] == '\0') break;\n      if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[2];\n      param_2 = param_2 + 2;\n    }" { (if_statement "if (param_2[1] == '\0') break;" if (parenthesized_expression "(param_2[1] == '\0')" ( (binary_expression "param_2[1] == '\0'" (subscript_expression "param_2[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (if_statement "if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }" { (expression_statement "*param_1 = param_2[1];" (assignment_expression "*param_1 = param_2[1]" (pointer_expression "*param_1" * identifier) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (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 "iVar1 = (int)param_2[2];" (assignment_expression "iVar1 = (int)param_2[2]" identifier = (cast_expression "(int)param_2[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[2]" identifier [ number_literal ]))) ;) (expression_statement "param_2 = param_2 + 2;" (assignment_expression "param_2 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) }) (else_clause "else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }" else (compound_statement "{\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }" { (if_statement "if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }" if (parenthesized_expression "((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0))))" ( (binary_expression "(iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))" (parenthesized_expression "(iVar1 == 0x2a)" ( (binary_expression "iVar1 == 0x2a" identifier == number_literal) )) || (parenthesized_expression "(((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))" ( (parenthesized_expression "((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0))" ( (binary_expression "(iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)" (binary_expression "(iVar1 - 0x3fU & 0xff) < 0x1f" (parenthesized_expression "(iVar1 - 0x3fU & 0xff)" ( (binary_expression "iVar1 - 0x3fU & 0xff" (binary_expression "iVar1 - 0x3fU" identifier - number_literal) & number_literal) )) < number_literal) && (parenthesized_expression "((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)" ( (binary_expression "(int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0" (cast_expression "(int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f)" ( (binary_expression "(0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f" (parenthesized_expression "(0x50000001U >> (iVar1 - 0x3fU & 0x1f))" ( (binary_expression "0x50000001U >> (iVar1 - 0x3fU & 0x1f)" number_literal >> (parenthesized_expression "(iVar1 - 0x3fU & 0x1f)" ( (binary_expression "iVar1 - 0x3fU & 0x1f" (binary_expression "iVar1 - 0x3fU" identifier - number_literal) & number_literal) ))) )) << number_literal) ))) < number_literal) ))) )) ))) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }" { (expression_statement "*param_1 = (char)iVar1;" (assignment_expression "*param_1 = (char)iVar1" (pointer_expression "*param_1" * identifier) = (cast_expression "(char)iVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (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 "iVar1 = (int)param_2[1];" (assignment_expression "iVar1 = (int)param_2[1]" identifier = (cast_expression "(int)param_2[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) }))) })) (if_statement "if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n    return 1;\n  }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_1 = '\0';\n    return 1;\n  }" { (expression_statement "*param_1 = '\0';" (assignment_expression "*param_1 = '\0'" (pointer_expression "*param_1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) )) < LIT) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT >> (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) ))) )) << LIT) ))) < LIT) ))) )) ))) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 wc_unescape(char *param_1,char *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (int)*param_2;\n  while (iVar1 != 0) {\n    if (iVar1 == 0x5c) {\n      if (param_2[1] == '\0') break;\n      if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[2];\n      param_2 = param_2 + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }\n  }\n  if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n    return 1;\n  }\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "wc_unescape(char *param_1,char *param_2)" (identifier "wc_unescape") (parameter_list "(char *param_1,char *param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (int)*param_2;\n  while (iVar1 != 0) {\n    if (iVar1 == 0x5c) {\n      if (param_2[1] == '\0') break;\n      if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[2];\n      param_2 = param_2 + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }\n  }\n  if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n    return 1;\n  }\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = (int)*param_2;" (assignment_expression "iVar1 = (int)*param_2" (identifier "iVar1") (= "=") (cast_expression "(int)*param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (while_statement "while (iVar1 != 0) {\n    if (iVar1 == 0x5c) {\n      if (param_2[1] == '\0') break;\n      if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[2];\n      param_2 = param_2 + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }\n  }" (while "while") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (iVar1 == 0x5c) {\n      if (param_2[1] == '\0') break;\n      if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[2];\n      param_2 = param_2 + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }\n  }" ({ "{") (if_statement "if (iVar1 == 0x5c) {\n      if (param_2[1] == '\0') break;\n      if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[2];\n      param_2 = param_2 + 2;\n    }\n    else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0x5c)" (( "(") (binary_expression "iVar1 == 0x5c" (identifier "iVar1") (== "==") (number_literal "0x5c")) () ")")) (compound_statement "{\n      if (param_2[1] == '\0') break;\n      if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[2];\n      param_2 = param_2 + 2;\n    }" ({ "{") (if_statement "if (param_2[1] == '\0') break;" (if "if") (parenthesized_expression "(param_2[1] == '\0')" (( "(") (binary_expression "param_2[1] == '\0'" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (param_1 != (char *)0x0) {\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *param_1 = param_2[1];\n        param_1 = param_1 + 1;\n      }" ({ "{") (expression_statement "*param_1 = param_2[1];" (assignment_expression "*param_1 = param_2[1]" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (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 "iVar1 = (int)param_2[2];" (assignment_expression "iVar1 = (int)param_2[2]" (identifier "iVar1") (= "=") (cast_expression "(int)param_2[2]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "param_2 = param_2 + 2;" (assignment_expression "param_2 = param_2 + 2" (identifier "param_2") (= "=") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (else_clause "else {\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }" (else "else") (compound_statement "{\n      if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }\n      iVar1 = (int)param_2[1];\n      param_2 = param_2 + 1;\n    }" ({ "{") (if_statement "if ((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {\n        return 0;\n      }" (if "if") (parenthesized_expression "((iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0))))" (( "(") (binary_expression "(iVar1 == 0x2a) ||\n         (((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))" (parenthesized_expression "(iVar1 == 0x2a)" (( "(") (binary_expression "iVar1 == 0x2a" (identifier "iVar1") (== "==") (number_literal "0x2a")) () ")")) (|| "||") (parenthesized_expression "(((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))" (( "(") (parenthesized_expression "((iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0))" (( "(") (binary_expression "(iVar1 - 0x3fU & 0xff) < 0x1f &&\n          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)" (binary_expression "(iVar1 - 0x3fU & 0xff) < 0x1f" (parenthesized_expression "(iVar1 - 0x3fU & 0xff)" (( "(") (binary_expression "iVar1 - 0x3fU & 0xff" (binary_expression "iVar1 - 0x3fU" (identifier "iVar1") (- "-") (number_literal "0x3fU")) (& "&") (number_literal "0xff")) () ")")) (< "<") (number_literal "0x1f")) (&& "&&") (parenthesized_expression "((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)" (( "(") (binary_expression "(int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0" (cast_expression "(int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f)" (( "(") (binary_expression "(0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f" (parenthesized_expression "(0x50000001U >> (iVar1 - 0x3fU & 0x1f))" (( "(") (binary_expression "0x50000001U >> (iVar1 - 0x3fU & 0x1f)" (number_literal "0x50000001U") (>> ">>") (parenthesized_expression "(iVar1 - 0x3fU & 0x1f)" (( "(") (binary_expression "iVar1 - 0x3fU & 0x1f" (binary_expression "iVar1 - 0x3fU" (identifier "iVar1") (- "-") (number_literal "0x3fU")) (& "&") (number_literal "0x1f")) () ")"))) () ")")) (<< "<<") (number_literal "0x1f")) () ")"))) (< "<") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_1 != (char *)0x0) {\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *param_1 = (char)iVar1;\n        param_1 = param_1 + 1;\n      }" ({ "{") (expression_statement "*param_1 = (char)iVar1;" (assignment_expression "*param_1 = (char)iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(char)iVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar1"))) (; ";")) (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 "iVar1 = (int)param_2[1];" (assignment_expression "iVar1 = (int)param_2[1]" (identifier "iVar1") (= "=") (cast_expression "(int)param_2[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")))) (; ";")) (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"))) (; ";")) (} "}")))) (} "}"))) (if_statement "if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n    return 1;\n  }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *param_1 = '\0';\n    return 1;\n  }" ({ "{") (expression_statement "*param_1 = '\0';" (assignment_expression "*param_1 = '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

int function_1(char *var_2,char *var_3)

{
  int var_1;
  
  var_1 = (int)*var_3;
  while (var_1 != 0) {
    if (var_1 == 0x5c) {
      if (var_3[1] == '\0') break;
      if (var_2 != (char *)0x0) {
        *var_2 = var_3[1];
        var_2 = var_2 + 1;
      }
      var_1 = (int)var_3[2];
      var_3 = var_3 + 2;
    }
    else {
      if ((var_1 == 0x2a) ||
         (((var_1 - 0x3fU & 0xff) < 0x1f &&
          ((int)((0x50000001U >> (var_1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {
        return 0;
      }
      if (var_2 != (char *)0x0) {
        *var_2 = (char)var_1;
        var_2 = var_2 + 1;
      }
      var_1 = (int)var_3[1];
      var_3 = var_3 + 1;
    }
  }
  if (var_2 != (char *)0x0) {
    *var_2 = '\0';
    return 1;
  }
  return 1;
}


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

undefined4 MASKED(char *param_1,char *param_2)

{
  int iVar1;
  
  iVar1 = (int)*param_2;
  while (iVar1 != 0) {
    if (iVar1 == 0x5c) {
      if (param_2[1] == '\0') break;
      if (param_1 != (char *)0x0) {
        *param_1 = param_2[1];
        param_1 = param_1 + 1;
      }
      iVar1 = (int)param_2[2];
      param_2 = param_2 + 2;
    }
    else {
      if ((iVar1 == 0x2a) ||
         (((iVar1 - 0x3fU & 0xff) < 0x1f &&
          ((int)((0x50000001U >> (iVar1 - 0x3fU & 0x1f)) << 0x1f) < 0)))) {
        return 0;
      }
      if (param_1 != (char *)0x0) {
        *param_1 = (char)iVar1;
        param_1 = param_1 + 1;
      }
      iVar1 = (int)param_2[1];
      param_2 = param_2 + 1;
    }
  }
  if (param_1 != (char *)0x0) {
    *param_1 = '\0';
    return 1;
  }
  return 1;
}

