
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char * __regparm3 end_pattern(char *pattern)

{
  byte bVar1;
  char *p;
  char *pcVar2;
  char *pcVar3;
  char cVar4;
  
  pcVar2 = pattern;
LAB_0001df95:
  do {
    bVar1 = pcVar2[1];
    while( true ) {
      if (bVar1 == 0) {
        return pattern;
      }
      if (bVar1 == 0x5b) break;
      if ((byte)(bVar1 - 0x21) < 0x20) {
        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {
          pcVar2 = end_pattern(pcVar2 + 2);
          goto LAB_0001df95;
        }
        if (bVar1 == 0x29) {
          return pcVar2 + 2;
        }
      }
      bVar1 = pcVar2[2];
      pcVar2 = pcVar2 + 1;
    }
    if (posixly_correct == 0) {
      pcVar3 = getenv("POSIXLY_CORRECT");
      posixly_correct = -(uint)(pcVar3 == (char *)0x0) | 1;
    }
    cVar4 = pcVar2[2];
    if ((cVar4 == '!') || ((posixly_correct < 0 && (cVar4 == '^')))) {
      cVar4 = pcVar2[3];
      pcVar2 = pcVar2 + 3;
    }
    else {
      pcVar2 = pcVar2 + 2;
    }
    if (cVar4 == ']') {
      cVar4 = pcVar2[1];
      pcVar2 = pcVar2 + 1;
    }
    while (cVar4 != ']') {
      if (cVar4 == '\0') {
        return pattern;
      }
      cVar4 = pcVar2[1];
      pcVar2 = pcVar2 + 1;
    }
  } while( true );
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char * __regparm3 FUN_0001df70(char *param_1)

{
  byte bVar1;
  char *pcVar2;
  char *pcVar3;
  char cVar4;
  
  pcVar2 = param_1;
LAB_0001df95:
  do {
    bVar1 = pcVar2[1];
    while( true ) {
      if (bVar1 == 0) {
        return param_1;
      }
      if (bVar1 == 0x5b) break;
      if ((byte)(bVar1 - 0x21) < 0x20) {
        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {
          pcVar2 = (char *)FUN_0001df70();
          goto LAB_0001df95;
        }
        if (bVar1 == 0x29) {
          return pcVar2 + 2;
        }
      }
      bVar1 = pcVar2[2];
      pcVar2 = pcVar2 + 1;
    }
    if (DAT_0003e2f4 == 0) {
      pcVar3 = getenv("POSIXLY_CORRECT");
      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;
    }
    cVar4 = pcVar2[2];
    if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {
      cVar4 = pcVar2[3];
      pcVar2 = pcVar2 + 3;
    }
    else {
      pcVar2 = pcVar2 + 2;
    }
    if (cVar4 == ']') {
      cVar4 = pcVar2[1];
      pcVar2 = pcVar2 + 1;
    }
    while (cVar4 != ']') {
      if (cVar4 == '\0') {
        return param_1;
      }
      cVar4 = pcVar2[1];
      pcVar2 = pcVar2 + 1;
    }
  } while( true );
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
MOV EDI,0xc0000601
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x000134d0
ADD EBX,0x1fe82
SUB ESP,0x1c
LEA EAX,[EBX + 0xffff522f]
MOV dword ptr [ESP + 0xc],EAX
MOVZX EAX,byte ptr [ESI + 0x1]
TEST AL,AL
JZ 0x0001dfc7
CMP AL,0x5b
JZ 0x0001dfd8
LEA EDX,[EAX + -0x21]
CMP DL,0x1f
JA 0x0001dfbc
BT EDI,EDX
JNC 0x0001dfb4
CMP byte ptr [ESI + 0x2],0x28
JZ 0x0001e030
CMP AL,0x29
JZ 0x0001e078
ADD ESI,0x1
MOVZX EAX,byte ptr [ESI + 0x1]
TEST AL,AL
JNZ 0x0001df9d
ADD ESP,0x1c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [EBX + 0x4f0]
TEST EDX,EDX
JZ 0x0001e050
MOVZX EDX,byte ptr [ESI + 0x2]
CMP DL,0x21
JZ 0x0001e040
MOV EAX,dword ptr [EBX + 0x4f0]
TEST EAX,EAX
JNS 0x0001dffa
CMP DL,0x5e
JZ 0x0001e040
ADD ESI,0x2
CMP DL,0x5d
JNZ 0x0001e015
MOVZX EDX,byte ptr [ESI + 0x1]
ADD ESI,0x1
JMP 0x0001e015
MOVZX EDX,byte ptr [EAX]
MOV ESI,EAX
LEA EAX,[ESI + 0x1]
CMP DL,0x5d
JZ 0x0001df95
TEST DL,DL
JNZ 0x0001e010
JMP 0x0001dfc7
LEA EAX,[ESI + 0x2]
CALL 0x0001df70
MOV ESI,EAX
JMP 0x0001df95
MOVZX EDX,byte ptr [ESI + 0x3]
ADD ESI,0x3
JMP 0x0001dffd
SUB ESP,0xc
PUSH dword ptr [ESP + 0x18]
CALL 0x000122e0
ADD ESP,0x10
CMP EAX,0x1
SBB EAX,EAX
OR EAX,0x1
MOV dword ptr [EBX + 0x4f0],EAX
JMP 0x0001dfe2
ADD ESP,0x1c
LEA EAX,[ESI + 0x2]
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 FUN_0001df70(char *param_1)\n\n{\n  byte bVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  \n  pcVar2 = param_1;\nLAB_0001df95:\n  do {\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (DAT_0003e2f4 == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  } while( true );\n}\n\n" comment (function_definition "char * __regparm3 FUN_0001df70(char *param_1)\n\n{\n  byte bVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  \n  pcVar2 = param_1;\nLAB_0001df95:\n  do {\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (DAT_0003e2f4 == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  } while( true );\n}" primitive_type (pointer_declarator "* __regparm3 FUN_0001df70(char *param_1)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_0001df70(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  byte bVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  \n  pcVar2 = param_1;\nLAB_0001df95:\n  do {\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (DAT_0003e2f4 == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (expression_statement "pcVar2 = param_1;" (assignment_expression "pcVar2 = param_1" identifier = identifier) ;) (labeled_statement "LAB_0001df95:\n  do {\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (DAT_0003e2f4 == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  } while( true );" statement_identifier : (do_statement "do {\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (DAT_0003e2f4 == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  } while( true );" do (compound_statement "{\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (DAT_0003e2f4 == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  }" { (expression_statement "bVar1 = pcVar2[1];" (assignment_expression "bVar1 = pcVar2[1]" identifier = (subscript_expression "pcVar2[1]" identifier [ number_literal ])) ;) (while_statement "while( true ) {\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }" { (if_statement "if (bVar1 == 0) {\n        return param_1;\n      }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return param_1;\n      }" { (return_statement "return param_1;" return identifier ;) })) (if_statement "if (bVar1 == 0x5b) break;" if (parenthesized_expression "(bVar1 == 0x5b)" ( (binary_expression "bVar1 == 0x5b" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }" if (parenthesized_expression "((byte)(bVar1 - 0x21) < 0x20)" ( (binary_expression "(byte)(bVar1 - 0x21) < 0x20" (call_expression "(byte)(bVar1 - 0x21)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(bVar1 - 0x21)" ( (binary_expression "bVar1 - 0x21" identifier - number_literal) ))) < number_literal) )) (compound_statement "{\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }" { (if_statement "if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }" if (parenthesized_expression "(((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '('))" ( (binary_expression "((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')" (parenthesized_expression "((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0)" ( (binary_expression "(0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0" (parenthesized_expression "(0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1)" ( (binary_expression "0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1" (binary_expression "0xc0000601U >> (bVar1 - 0x21 & 0x1f)" number_literal >> (parenthesized_expression "(bVar1 - 0x21 & 0x1f)" ( (binary_expression "bVar1 - 0x21 & 0x1f" (binary_expression "bVar1 - 0x21" identifier - number_literal) & number_literal) ))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(pcVar2[2] == '(')" ( (binary_expression "pcVar2[2] == '('" (subscript_expression "pcVar2[2]" identifier [ number_literal ]) == (char_literal "'('" ' character ')) ))) )) (compound_statement "{\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }" { (expression_statement "pcVar2 = (char *)FUN_0001df70();" (assignment_expression "pcVar2 = (char *)FUN_0001df70()" identifier = (cast_expression "(char *)FUN_0001df70()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001df70()" identifier (argument_list "()" ( ))))) ;) (goto_statement "goto LAB_0001df95;" goto statement_identifier ;) })) (if_statement "if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }" if (parenthesized_expression "(bVar1 == 0x29)" ( (binary_expression "bVar1 == 0x29" identifier == number_literal) )) (compound_statement "{\n          return pcVar2 + 2;\n        }" { (return_statement "return pcVar2 + 2;" return (binary_expression "pcVar2 + 2" identifier + number_literal) ;) })) })) (expression_statement "bVar1 = pcVar2[2];" (assignment_expression "bVar1 = pcVar2[2]" identifier = (subscript_expression "pcVar2[2]" identifier [ number_literal ])) ;) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) })) (if_statement "if (DAT_0003e2f4 == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }" if (parenthesized_expression "(DAT_0003e2f4 == 0)" ( (binary_expression "DAT_0003e2f4 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }" { (expression_statement "pcVar3 = getenv("POSIXLY_CORRECT");" (assignment_expression "pcVar3 = getenv("POSIXLY_CORRECT")" identifier = (call_expression "getenv("POSIXLY_CORRECT")" identifier (argument_list "("POSIXLY_CORRECT")" ( (string_literal ""POSIXLY_CORRECT"" " string_content ") )))) ;) (expression_statement "DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;" (assignment_expression "DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1" identifier = (binary_expression "-(uint)(pcVar3 == (char *)0x0) | 1" (unary_expression "-(uint)(pcVar3 == (char *)0x0)" - (call_expression "(uint)(pcVar3 == (char *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )))) | number_literal)) ;) })) (expression_statement "cVar4 = pcVar2[2];" (assignment_expression "cVar4 = pcVar2[2]" identifier = (subscript_expression "pcVar2[2]" identifier [ number_literal ])) ;) (if_statement "if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }" if (parenthesized_expression "((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^'))))" ( (binary_expression "(cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))" (parenthesized_expression "(cVar4 == '!')" ( (binary_expression "cVar4 == '!'" identifier == (char_literal "'!'" ' character ')) )) || (parenthesized_expression "(((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))" ( (parenthesized_expression "((int)DAT_0003e2f4 < 0 && (cVar4 == '^'))" ( (binary_expression "(int)DAT_0003e2f4 < 0 && (cVar4 == '^')" (binary_expression "(int)DAT_0003e2f4 < 0" (cast_expression "(int)DAT_0003e2f4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) && (parenthesized_expression "(cVar4 == '^')" ( (binary_expression "cVar4 == '^'" identifier == (char_literal "'^'" ' character ')) ))) )) ))) )) (compound_statement "{\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }" { (expression_statement "cVar4 = pcVar2[3];" (assignment_expression "cVar4 = pcVar2[3]" identifier = (subscript_expression "pcVar2[3]" identifier [ number_literal ])) ;) (expression_statement "pcVar2 = pcVar2 + 3;" (assignment_expression "pcVar2 = pcVar2 + 3" identifier = (binary_expression "pcVar2 + 3" identifier + number_literal)) ;) }) (else_clause "else {\n      pcVar2 = pcVar2 + 2;\n    }" else (compound_statement "{\n      pcVar2 = pcVar2 + 2;\n    }" { (expression_statement "pcVar2 = pcVar2 + 2;" (assignment_expression "pcVar2 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) }))) (if_statement "if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" if (parenthesized_expression "(cVar4 == ']')" ( (binary_expression "cVar4 == ']'" identifier == (char_literal "']'" ' character ')) )) (compound_statement "{\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" { (expression_statement "cVar4 = pcVar2[1];" (assignment_expression "cVar4 = 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_statement "while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" while (parenthesized_expression "(cVar4 != ']')" ( (binary_expression "cVar4 != ']'" identifier != (char_literal "']'" ' character ')) )) (compound_statement "{\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" { (if_statement "if (cVar4 == '\0') {\n        return param_1;\n      }" if (parenthesized_expression "(cVar4 == '\0')" ( (binary_expression "cVar4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return param_1;\n      }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "cVar4 = pcVar2[1];" (assignment_expression "cVar4 = 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 "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 end_pattern(char *pattern)\n\n{\n  byte bVar1;\n  char *p;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  \n  pcVar2 = pattern;\nLAB_0001df95:\n  do {\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return pattern;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = end_pattern(pcVar2 + 2);\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (posixly_correct == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      posixly_correct = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || ((posixly_correct < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return pattern;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  } while( true );\n}\n\n" comment (function_definition "char * __regparm3 end_pattern(char *pattern)\n\n{\n  byte bVar1;\n  char *p;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  \n  pcVar2 = pattern;\nLAB_0001df95:\n  do {\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return pattern;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = end_pattern(pcVar2 + 2);\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (posixly_correct == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      posixly_correct = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || ((posixly_correct < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return pattern;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  } while( true );\n}" primitive_type (pointer_declarator "* __regparm3 end_pattern(char *pattern)" * (ERROR "__regparm3" identifier) (function_declarator "end_pattern(char *pattern)" identifier (parameter_list "(char *pattern)" ( (parameter_declaration "char *pattern" primitive_type (pointer_declarator "*pattern" * identifier)) )))) (compound_statement "{\n  byte bVar1;\n  char *p;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  \n  pcVar2 = pattern;\nLAB_0001df95:\n  do {\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return pattern;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = end_pattern(pcVar2 + 2);\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (posixly_correct == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      posixly_correct = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || ((posixly_correct < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return pattern;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "char *p;" primitive_type (pointer_declarator "*p" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (expression_statement "pcVar2 = pattern;" (assignment_expression "pcVar2 = pattern" identifier = identifier) ;) (labeled_statement "LAB_0001df95:\n  do {\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return pattern;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = end_pattern(pcVar2 + 2);\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (posixly_correct == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      posixly_correct = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || ((posixly_correct < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return pattern;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  } while( true );" statement_identifier : (do_statement "do {\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return pattern;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = end_pattern(pcVar2 + 2);\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (posixly_correct == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      posixly_correct = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || ((posixly_correct < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return pattern;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  } while( true );" do (compound_statement "{\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return pattern;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = end_pattern(pcVar2 + 2);\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (posixly_correct == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      posixly_correct = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || ((posixly_correct < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return pattern;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  }" { (expression_statement "bVar1 = pcVar2[1];" (assignment_expression "bVar1 = pcVar2[1]" identifier = (subscript_expression "pcVar2[1]" identifier [ number_literal ])) ;) (while_statement "while( true ) {\n      if (bVar1 == 0) {\n        return pattern;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = end_pattern(pcVar2 + 2);\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (bVar1 == 0) {\n        return pattern;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = end_pattern(pcVar2 + 2);\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }" { (if_statement "if (bVar1 == 0) {\n        return pattern;\n      }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return pattern;\n      }" { (return_statement "return pattern;" return identifier ;) })) (if_statement "if (bVar1 == 0x5b) break;" if (parenthesized_expression "(bVar1 == 0x5b)" ( (binary_expression "bVar1 == 0x5b" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = end_pattern(pcVar2 + 2);\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }" if (parenthesized_expression "((byte)(bVar1 - 0x21) < 0x20)" ( (binary_expression "(byte)(bVar1 - 0x21) < 0x20" (call_expression "(byte)(bVar1 - 0x21)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(bVar1 - 0x21)" ( (binary_expression "bVar1 - 0x21" identifier - number_literal) ))) < number_literal) )) (compound_statement "{\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = end_pattern(pcVar2 + 2);\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }" { (if_statement "if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = end_pattern(pcVar2 + 2);\n          goto LAB_0001df95;\n        }" if (parenthesized_expression "(((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '('))" ( (binary_expression "((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')" (parenthesized_expression "((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0)" ( (binary_expression "(0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0" (parenthesized_expression "(0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1)" ( (binary_expression "0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1" (binary_expression "0xc0000601U >> (bVar1 - 0x21 & 0x1f)" number_literal >> (parenthesized_expression "(bVar1 - 0x21 & 0x1f)" ( (binary_expression "bVar1 - 0x21 & 0x1f" (binary_expression "bVar1 - 0x21" identifier - number_literal) & number_literal) ))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(pcVar2[2] == '(')" ( (binary_expression "pcVar2[2] == '('" (subscript_expression "pcVar2[2]" identifier [ number_literal ]) == (char_literal "'('" ' character ')) ))) )) (compound_statement "{\n          pcVar2 = end_pattern(pcVar2 + 2);\n          goto LAB_0001df95;\n        }" { (expression_statement "pcVar2 = end_pattern(pcVar2 + 2);" (assignment_expression "pcVar2 = end_pattern(pcVar2 + 2)" identifier = (call_expression "end_pattern(pcVar2 + 2)" identifier (argument_list "(pcVar2 + 2)" ( (binary_expression "pcVar2 + 2" identifier + number_literal) )))) ;) (goto_statement "goto LAB_0001df95;" goto statement_identifier ;) })) (if_statement "if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }" if (parenthesized_expression "(bVar1 == 0x29)" ( (binary_expression "bVar1 == 0x29" identifier == number_literal) )) (compound_statement "{\n          return pcVar2 + 2;\n        }" { (return_statement "return pcVar2 + 2;" return (binary_expression "pcVar2 + 2" identifier + number_literal) ;) })) })) (expression_statement "bVar1 = pcVar2[2];" (assignment_expression "bVar1 = pcVar2[2]" identifier = (subscript_expression "pcVar2[2]" identifier [ number_literal ])) ;) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) })) (if_statement "if (posixly_correct == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      posixly_correct = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }" if (parenthesized_expression "(posixly_correct == 0)" ( (binary_expression "posixly_correct == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      posixly_correct = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }" { (expression_statement "pcVar3 = getenv("POSIXLY_CORRECT");" (assignment_expression "pcVar3 = getenv("POSIXLY_CORRECT")" identifier = (call_expression "getenv("POSIXLY_CORRECT")" identifier (argument_list "("POSIXLY_CORRECT")" ( (string_literal ""POSIXLY_CORRECT"" " string_content ") )))) ;) (expression_statement "posixly_correct = -(uint)(pcVar3 == (char *)0x0) | 1;" (assignment_expression "posixly_correct = -(uint)(pcVar3 == (char *)0x0) | 1" identifier = (binary_expression "-(uint)(pcVar3 == (char *)0x0) | 1" (unary_expression "-(uint)(pcVar3 == (char *)0x0)" - (call_expression "(uint)(pcVar3 == (char *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )))) | number_literal)) ;) })) (expression_statement "cVar4 = pcVar2[2];" (assignment_expression "cVar4 = pcVar2[2]" identifier = (subscript_expression "pcVar2[2]" identifier [ number_literal ])) ;) (if_statement "if ((cVar4 == '!') || ((posixly_correct < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }" if (parenthesized_expression "((cVar4 == '!') || ((posixly_correct < 0 && (cVar4 == '^'))))" ( (binary_expression "(cVar4 == '!') || ((posixly_correct < 0 && (cVar4 == '^')))" (parenthesized_expression "(cVar4 == '!')" ( (binary_expression "cVar4 == '!'" identifier == (char_literal "'!'" ' character ')) )) || (parenthesized_expression "((posixly_correct < 0 && (cVar4 == '^')))" ( (parenthesized_expression "(posixly_correct < 0 && (cVar4 == '^'))" ( (binary_expression "posixly_correct < 0 && (cVar4 == '^')" (binary_expression "posixly_correct < 0" identifier < number_literal) && (parenthesized_expression "(cVar4 == '^')" ( (binary_expression "cVar4 == '^'" identifier == (char_literal "'^'" ' character ')) ))) )) ))) )) (compound_statement "{\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }" { (expression_statement "cVar4 = pcVar2[3];" (assignment_expression "cVar4 = pcVar2[3]" identifier = (subscript_expression "pcVar2[3]" identifier [ number_literal ])) ;) (expression_statement "pcVar2 = pcVar2 + 3;" (assignment_expression "pcVar2 = pcVar2 + 3" identifier = (binary_expression "pcVar2 + 3" identifier + number_literal)) ;) }) (else_clause "else {\n      pcVar2 = pcVar2 + 2;\n    }" else (compound_statement "{\n      pcVar2 = pcVar2 + 2;\n    }" { (expression_statement "pcVar2 = pcVar2 + 2;" (assignment_expression "pcVar2 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) }))) (if_statement "if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" if (parenthesized_expression "(cVar4 == ']')" ( (binary_expression "cVar4 == ']'" identifier == (char_literal "']'" ' character ')) )) (compound_statement "{\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" { (expression_statement "cVar4 = pcVar2[1];" (assignment_expression "cVar4 = 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_statement "while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return pattern;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" while (parenthesized_expression "(cVar4 != ']')" ( (binary_expression "cVar4 != ']'" identifier != (char_literal "']'" ' character ')) )) (compound_statement "{\n      if (cVar4 == '\0') {\n        return pattern;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" { (if_statement "if (cVar4 == '\0') {\n        return pattern;\n      }" if (parenthesized_expression "(cVar4 == '\0')" ( (binary_expression "cVar4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return pattern;\n      }" { (return_statement "return pattern;" return identifier ;) })) (expression_statement "cVar4 = pcVar2[1];" (assignment_expression "cVar4 = 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 * __regparm3 FUN_0001df70(char *param_1)\n\n{\n  byte bVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  \n  pcVar2 = param_1;\nLAB_0001df95:\n  do {\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (DAT_0003e2f4 == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  } while( true );\n}\n\n" (function_definition "char * __regparm3 FUN_0001df70(char *param_1)\n\n{\n  byte bVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  \n  pcVar2 = param_1;\nLAB_0001df95:\n  do {\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (DAT_0003e2f4 == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  } while( true );\n}" primitive_type (pointer_declarator "* __regparm3 FUN_0001df70(char *param_1)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_0001df70(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  byte bVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  \n  pcVar2 = param_1;\nLAB_0001df95:\n  do {\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (DAT_0003e2f4 == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (expression_statement "pcVar2 = param_1;" (assignment_expression "pcVar2 = param_1" identifier = identifier) ;) (labeled_statement "LAB_0001df95:\n  do {\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (DAT_0003e2f4 == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  } while( true );" statement_identifier : (do_statement "do {\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (DAT_0003e2f4 == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  } while( true );" do (compound_statement "{\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (DAT_0003e2f4 == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  }" { (expression_statement "bVar1 = pcVar2[1];" (assignment_expression "bVar1 = pcVar2[1]" identifier = (subscript_expression "pcVar2[1]" identifier [ number_literal ])) ;) (while_statement "while( true ) {\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }" { (if_statement "if (bVar1 == 0) {\n        return param_1;\n      }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return param_1;\n      }" { (return_statement "return param_1;" return identifier ;) })) (if_statement "if (bVar1 == 0x5b) break;" if (parenthesized_expression "(bVar1 == 0x5b)" ( (binary_expression "bVar1 == 0x5b" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }" if (parenthesized_expression "((byte)(bVar1 - 0x21) < 0x20)" ( (binary_expression "(byte)(bVar1 - 0x21) < 0x20" (call_expression "(byte)(bVar1 - 0x21)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(bVar1 - 0x21)" ( (binary_expression "bVar1 - 0x21" identifier - number_literal) ))) < number_literal) )) (compound_statement "{\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }" { (if_statement "if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }" if (parenthesized_expression "(((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '('))" ( (binary_expression "((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')" (parenthesized_expression "((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0)" ( (binary_expression "(0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0" (parenthesized_expression "(0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1)" ( (binary_expression "0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1" (binary_expression "0xc0000601U >> (bVar1 - 0x21 & 0x1f)" number_literal >> (parenthesized_expression "(bVar1 - 0x21 & 0x1f)" ( (binary_expression "bVar1 - 0x21 & 0x1f" (binary_expression "bVar1 - 0x21" identifier - number_literal) & number_literal) ))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(pcVar2[2] == '(')" ( (binary_expression "pcVar2[2] == '('" (subscript_expression "pcVar2[2]" identifier [ number_literal ]) == (char_literal "'('" ' character ')) ))) )) (compound_statement "{\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }" { (expression_statement "pcVar2 = (char *)FUN_0001df70();" (assignment_expression "pcVar2 = (char *)FUN_0001df70()" identifier = (cast_expression "(char *)FUN_0001df70()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001df70()" identifier (argument_list "()" ( ))))) ;) (goto_statement "goto LAB_0001df95;" goto statement_identifier ;) })) (if_statement "if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }" if (parenthesized_expression "(bVar1 == 0x29)" ( (binary_expression "bVar1 == 0x29" identifier == number_literal) )) (compound_statement "{\n          return pcVar2 + 2;\n        }" { (return_statement "return pcVar2 + 2;" return (binary_expression "pcVar2 + 2" identifier + number_literal) ;) })) })) (expression_statement "bVar1 = pcVar2[2];" (assignment_expression "bVar1 = pcVar2[2]" identifier = (subscript_expression "pcVar2[2]" identifier [ number_literal ])) ;) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) })) (if_statement "if (DAT_0003e2f4 == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }" if (parenthesized_expression "(DAT_0003e2f4 == 0)" ( (binary_expression "DAT_0003e2f4 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }" { (expression_statement "pcVar3 = getenv("POSIXLY_CORRECT");" (assignment_expression "pcVar3 = getenv("POSIXLY_CORRECT")" identifier = (call_expression "getenv("POSIXLY_CORRECT")" identifier (argument_list "("POSIXLY_CORRECT")" ( (string_literal ""POSIXLY_CORRECT"" " string_content ") )))) ;) (expression_statement "DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;" (assignment_expression "DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1" identifier = (binary_expression "-(uint)(pcVar3 == (char *)0x0) | 1" (unary_expression "-(uint)(pcVar3 == (char *)0x0)" - (call_expression "(uint)(pcVar3 == (char *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )))) | number_literal)) ;) })) (expression_statement "cVar4 = pcVar2[2];" (assignment_expression "cVar4 = pcVar2[2]" identifier = (subscript_expression "pcVar2[2]" identifier [ number_literal ])) ;) (if_statement "if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }" if (parenthesized_expression "((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^'))))" ( (binary_expression "(cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))" (parenthesized_expression "(cVar4 == '!')" ( (binary_expression "cVar4 == '!'" identifier == (char_literal "'!'" ' character ')) )) || (parenthesized_expression "(((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))" ( (parenthesized_expression "((int)DAT_0003e2f4 < 0 && (cVar4 == '^'))" ( (binary_expression "(int)DAT_0003e2f4 < 0 && (cVar4 == '^')" (binary_expression "(int)DAT_0003e2f4 < 0" (cast_expression "(int)DAT_0003e2f4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) && (parenthesized_expression "(cVar4 == '^')" ( (binary_expression "cVar4 == '^'" identifier == (char_literal "'^'" ' character ')) ))) )) ))) )) (compound_statement "{\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }" { (expression_statement "cVar4 = pcVar2[3];" (assignment_expression "cVar4 = pcVar2[3]" identifier = (subscript_expression "pcVar2[3]" identifier [ number_literal ])) ;) (expression_statement "pcVar2 = pcVar2 + 3;" (assignment_expression "pcVar2 = pcVar2 + 3" identifier = (binary_expression "pcVar2 + 3" identifier + number_literal)) ;) }) (else_clause "else {\n      pcVar2 = pcVar2 + 2;\n    }" else (compound_statement "{\n      pcVar2 = pcVar2 + 2;\n    }" { (expression_statement "pcVar2 = pcVar2 + 2;" (assignment_expression "pcVar2 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) }))) (if_statement "if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" if (parenthesized_expression "(cVar4 == ']')" ( (binary_expression "cVar4 == ']'" identifier == (char_literal "']'" ' character ')) )) (compound_statement "{\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" { (expression_statement "cVar4 = pcVar2[1];" (assignment_expression "cVar4 = 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_statement "while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" while (parenthesized_expression "(cVar4 != ']')" ( (binary_expression "cVar4 != ']'" identifier != (char_literal "']'" ' character ')) )) (compound_statement "{\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" { (if_statement "if (cVar4 == '\0') {\n        return param_1;\n      }" if (parenthesized_expression "(cVar4 == '\0')" ( (binary_expression "cVar4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return param_1;\n      }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "cVar4 = pcVar2[1];" (assignment_expression "cVar4 = 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 (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - LIT) ))) < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression LIT >> (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) ))) & LIT) )) != LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (binary_expression IDENT + LIT) ;) })) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )))) | LIT)) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) && (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return IDENT ;) })) (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 * __regparm3 FUN_0001df70(char *param_1)\n\n{\n  byte bVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  \n  pcVar2 = param_1;\nLAB_0001df95:\n  do {\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (DAT_0003e2f4 == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  } while( true );\n}" (primitive_type "char") (pointer_declarator "* __regparm3 FUN_0001df70(char *param_1)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001df70(char *param_1)" (identifier "FUN_0001df70") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  byte bVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  \n  pcVar2 = param_1;\nLAB_0001df95:\n  do {\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (DAT_0003e2f4 == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  } while( true );\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "char cVar4;" (primitive_type "char") (identifier "cVar4") (; ";")) (expression_statement "pcVar2 = param_1;" (assignment_expression "pcVar2 = param_1" (identifier "pcVar2") (= "=") (identifier "param_1")) (; ";")) (labeled_statement "LAB_0001df95:\n  do {\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (DAT_0003e2f4 == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  } while( true );" (statement_identifier "LAB_0001df95") (: ":") (do_statement "do {\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (DAT_0003e2f4 == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    bVar1 = pcVar2[1];\n    while( true ) {\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }\n    if (DAT_0003e2f4 == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }\n    cVar4 = pcVar2[2];\n    if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }\n    if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n  }" ({ "{") (expression_statement "bVar1 = pcVar2[1];" (assignment_expression "bVar1 = pcVar2[1]" (identifier "bVar1") (= "=") (subscript_expression "pcVar2[1]" (identifier "pcVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (while_statement "while( true ) {\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (bVar1 == 0) {\n        return param_1;\n      }\n      if (bVar1 == 0x5b) break;\n      if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }\n      bVar1 = pcVar2[2];\n      pcVar2 = pcVar2 + 1;\n    }" ({ "{") (if_statement "if (bVar1 == 0) {\n        return param_1;\n      }" (if "if") (parenthesized_expression "(bVar1 == 0)" (( "(") (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return param_1;\n      }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (if_statement "if (bVar1 == 0x5b) break;" (if "if") (parenthesized_expression "(bVar1 == 0x5b)" (( "(") (binary_expression "bVar1 == 0x5b" (identifier "bVar1") (== "==") (number_literal "0x5b")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if ((byte)(bVar1 - 0x21) < 0x20) {\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }" (if "if") (parenthesized_expression "((byte)(bVar1 - 0x21) < 0x20)" (( "(") (binary_expression "(byte)(bVar1 - 0x21) < 0x20" (call_expression "(byte)(bVar1 - 0x21)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(bVar1 - 0x21)" (( "(") (binary_expression "bVar1 - 0x21" (identifier "bVar1") (- "-") (number_literal "0x21")) () ")"))) (< "<") (number_literal "0x20")) () ")")) (compound_statement "{\n        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }\n        if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }\n      }" ({ "{") (if_statement "if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }" (if "if") (parenthesized_expression "(((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '('))" (( "(") (binary_expression "((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')" (parenthesized_expression "((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0)" (( "(") (binary_expression "(0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0" (parenthesized_expression "(0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1)" (( "(") (binary_expression "0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1" (binary_expression "0xc0000601U >> (bVar1 - 0x21 & 0x1f)" (number_literal "0xc0000601U") (>> ">>") (parenthesized_expression "(bVar1 - 0x21 & 0x1f)" (( "(") (binary_expression "bVar1 - 0x21 & 0x1f" (binary_expression "bVar1 - 0x21" (identifier "bVar1") (- "-") (number_literal "0x21")) (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(pcVar2[2] == '(')" (( "(") (binary_expression "pcVar2[2] == '('" (subscript_expression "pcVar2[2]" (identifier "pcVar2") ([ "[") (number_literal "2") (] "]")) (== "==") (char_literal "'('" (' "'") (character "(") (' "'"))) () ")"))) () ")")) (compound_statement "{\n          pcVar2 = (char *)FUN_0001df70();\n          goto LAB_0001df95;\n        }" ({ "{") (expression_statement "pcVar2 = (char *)FUN_0001df70();" (assignment_expression "pcVar2 = (char *)FUN_0001df70()" (identifier "pcVar2") (= "=") (cast_expression "(char *)FUN_0001df70()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001df70()" (identifier "FUN_0001df70") (argument_list "()" (( "(") () ")"))))) (; ";")) (goto_statement "goto LAB_0001df95;" (goto "goto") (statement_identifier "LAB_0001df95") (; ";")) (} "}"))) (if_statement "if (bVar1 == 0x29) {\n          return pcVar2 + 2;\n        }" (if "if") (parenthesized_expression "(bVar1 == 0x29)" (( "(") (binary_expression "bVar1 == 0x29" (identifier "bVar1") (== "==") (number_literal "0x29")) () ")")) (compound_statement "{\n          return pcVar2 + 2;\n        }" ({ "{") (return_statement "return pcVar2 + 2;" (return "return") (binary_expression "pcVar2 + 2" (identifier "pcVar2") (+ "+") (number_literal "2")) (; ";")) (} "}"))) (} "}"))) (expression_statement "bVar1 = pcVar2[2];" (assignment_expression "bVar1 = pcVar2[2]" (identifier "bVar1") (= "=") (subscript_expression "pcVar2[2]" (identifier "pcVar2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" (identifier "pcVar2") (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (if_statement "if (DAT_0003e2f4 == 0) {\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }" (if "if") (parenthesized_expression "(DAT_0003e2f4 == 0)" (( "(") (binary_expression "DAT_0003e2f4 == 0" (identifier "DAT_0003e2f4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      pcVar3 = getenv("POSIXLY_CORRECT");\n      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;\n    }" ({ "{") (expression_statement "pcVar3 = getenv("POSIXLY_CORRECT");" (assignment_expression "pcVar3 = getenv("POSIXLY_CORRECT")" (identifier "pcVar3") (= "=") (call_expression "getenv("POSIXLY_CORRECT")" (identifier "getenv") (argument_list "("POSIXLY_CORRECT")" (( "(") (string_literal ""POSIXLY_CORRECT"" (" """) (string_content "POSIXLY_CORRECT") (" """)) () ")")))) (; ";")) (expression_statement "DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;" (assignment_expression "DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1" (identifier "DAT_0003e2f4") (= "=") (binary_expression "-(uint)(pcVar3 == (char *)0x0) | 1" (unary_expression "-(uint)(pcVar3 == (char *)0x0)" (- "-") (call_expression "(uint)(pcVar3 == (char *)0x0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(pcVar3 == (char *)0x0)" (( "(") (binary_expression "pcVar3 == (char *)0x0" (identifier "pcVar3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")))) (| "|") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "cVar4 = pcVar2[2];" (assignment_expression "cVar4 = pcVar2[2]" (identifier "cVar4") (= "=") (subscript_expression "pcVar2[2]" (identifier "pcVar2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }\n    else {\n      pcVar2 = pcVar2 + 2;\n    }" (if "if") (parenthesized_expression "((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^'))))" (( "(") (binary_expression "(cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))" (parenthesized_expression "(cVar4 == '!')" (( "(") (binary_expression "cVar4 == '!'" (identifier "cVar4") (== "==") (char_literal "'!'" (' "'") (character "!") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))" (( "(") (parenthesized_expression "((int)DAT_0003e2f4 < 0 && (cVar4 == '^'))" (( "(") (binary_expression "(int)DAT_0003e2f4 < 0 && (cVar4 == '^')" (binary_expression "(int)DAT_0003e2f4 < 0" (cast_expression "(int)DAT_0003e2f4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_0003e2f4")) (< "<") (number_literal "0")) (&& "&&") (parenthesized_expression "(cVar4 == '^')" (( "(") (binary_expression "cVar4 == '^'" (identifier "cVar4") (== "==") (char_literal "'^'" (' "'") (character "^") (' "'"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n      cVar4 = pcVar2[3];\n      pcVar2 = pcVar2 + 3;\n    }" ({ "{") (expression_statement "cVar4 = pcVar2[3];" (assignment_expression "cVar4 = pcVar2[3]" (identifier "cVar4") (= "=") (subscript_expression "pcVar2[3]" (identifier "pcVar2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "pcVar2 = pcVar2 + 3;" (assignment_expression "pcVar2 = pcVar2 + 3" (identifier "pcVar2") (= "=") (binary_expression "pcVar2 + 3" (identifier "pcVar2") (+ "+") (number_literal "3"))) (; ";")) (} "}")) (else_clause "else {\n      pcVar2 = pcVar2 + 2;\n    }" (else "else") (compound_statement "{\n      pcVar2 = pcVar2 + 2;\n    }" ({ "{") (expression_statement "pcVar2 = pcVar2 + 2;" (assignment_expression "pcVar2 = pcVar2 + 2" (identifier "pcVar2") (= "=") (binary_expression "pcVar2 + 2" (identifier "pcVar2") (+ "+") (number_literal "2"))) (; ";")) (} "}")))) (if_statement "if (cVar4 == ']') {\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" (if "if") (parenthesized_expression "(cVar4 == ']')" (( "(") (binary_expression "cVar4 == ']'" (identifier "cVar4") (== "==") (char_literal "']'" (' "'") (character "]") (' "'"))) () ")")) (compound_statement "{\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" ({ "{") (expression_statement "cVar4 = pcVar2[1];" (assignment_expression "cVar4 = pcVar2[1]" (identifier "cVar4") (= "=") (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_statement "while (cVar4 != ']') {\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" (while "while") (parenthesized_expression "(cVar4 != ']')" (( "(") (binary_expression "cVar4 != ']'" (identifier "cVar4") (!= "!=") (char_literal "']'" (' "'") (character "]") (' "'"))) () ")")) (compound_statement "{\n      if (cVar4 == '\0') {\n        return param_1;\n      }\n      cVar4 = pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" ({ "{") (if_statement "if (cVar4 == '\0') {\n        return param_1;\n      }" (if "if") (parenthesized_expression "(cVar4 == '\0')" (( "(") (binary_expression "cVar4 == '\0'" (identifier "cVar4") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        return param_1;\n      }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "cVar4 = pcVar2[1];" (assignment_expression "cVar4 = pcVar2[1]" (identifier "cVar4") (= "=") (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") () ")")) (; ";"))) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char * __regparm3 function_1(char *pattern)

{
  type_1 var_1;
  char *p;
  char *var_2;
  char *var_5;
  char var_6;
  
  var_2 = pattern;
LAB_0001df95:
  do {
    var_1 = var_2[1];
    while( true ) {
      if (var_1 == 0) {
        return pattern;
      }
      if (var_1 == 0x5b) break;
      if ((type_1)(var_1 - 0x21) < 0x20) {
        if (((0xc0000601U >> (var_1 - 0x21 & 0x1f) & 1) != 0) && (var_2[2] == '(')) {
          var_2 = function_1(var_2 + 2);
          goto LAB_0001df95;
        }
        if (var_1 == 0x29) {
          return var_2 + 2;
        }
      }
      var_1 = var_2[2];
      var_2 = var_2 + 1;
    }
    if (var_3 == 0) {
      var_5 = var_4("POSIXLY_CORRECT");
      var_3 = -(uint)(var_5 == (char *)0x0) | 1;
    }
    var_6 = var_2[2];
    if ((var_6 == '!') || ((var_3 < 0 && (var_6 == '^')))) {
      var_6 = var_2[3];
      var_2 = var_2 + 3;
    }
    else {
      var_2 = var_2 + 2;
    }
    if (var_6 == ']') {
      var_6 = var_2[1];
      var_2 = var_2 + 1;
    }
    while (var_6 != ']') {
      if (var_6 == '\0') {
        return pattern;
      }
      var_6 = var_2[1];
      var_2 = var_2 + 1;
    }
  } while( true );
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (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))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (character)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (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)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (unary_expression argument: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)) right: (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)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (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)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (identifier)))) (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)))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char * __regparm3 MASKED(char *param_1)

{
  byte bVar1;
  char *pcVar2;
  char *pcVar3;
  char cVar4;
  
  pcVar2 = param_1;
LAB_0001df95:
  do {
    bVar1 = pcVar2[1];
    while( true ) {
      if (bVar1 == 0) {
        return param_1;
      }
      if (bVar1 == 0x5b) break;
      if ((byte)(bVar1 - 0x21) < 0x20) {
        if (((0xc0000601U >> (bVar1 - 0x21 & 0x1f) & 1) != 0) && (pcVar2[2] == '(')) {
          pcVar2 = (char *)MASKED();
          goto LAB_0001df95;
        }
        if (bVar1 == 0x29) {
          return pcVar2 + 2;
        }
      }
      bVar1 = pcVar2[2];
      pcVar2 = pcVar2 + 1;
    }
    if (DAT_0003e2f4 == 0) {
      pcVar3 = getenv("POSIXLY_CORRECT");
      DAT_0003e2f4 = -(uint)(pcVar3 == (char *)0x0) | 1;
    }
    cVar4 = pcVar2[2];
    if ((cVar4 == '!') || (((int)DAT_0003e2f4 < 0 && (cVar4 == '^')))) {
      cVar4 = pcVar2[3];
      pcVar2 = pcVar2 + 3;
    }
    else {
      pcVar2 = pcVar2 + 2;
    }
    if (cVar4 == ']') {
      cVar4 = pcVar2[1];
      pcVar2 = pcVar2 + 1;
    }
    while (cVar4 != ']') {
      if (cVar4 == '\0') {
        return param_1;
      }
      cVar4 = pcVar2[1];
      pcVar2 = pcVar2 + 1;
    }
  } while( true );
}

