
char * end_pattern(char *pattern)

{
  char *pcVar1;
  undefined *puVar2;
  char *pcVar3;
  char *pcVar4;
  int iVar5;
  char cVar6;
  undefined4 uVar7;
  undefined *puVar8;
  
  puVar2 = PTR_DAT_0004b178;
  iVar5 = (int)pattern[1];
  puVar8 = PTR_DAT_0004b1a0 + -0x7a9c;
  pcVar3 = pattern + 1;
  pcVar1 = pattern;
  do {
    pcVar4 = pcVar3;
    if (iVar5 == 0) {
      return pattern;
    }
    if (iVar5 == 0x5b) {
      if (*(int *)(puVar2 + -0x4960) == 0) {
        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);
        uVar7 = 0xffffffff;
        if (iVar5 != 0) {
          uVar7 = 1;
        }
        *(undefined4 *)(puVar2 + -0x4960) = uVar7;
      }
      cVar6 = pcVar1[2];
      pcVar4 = pcVar1 + 2;
      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {
        cVar6 = pcVar1[3];
        pcVar4 = pcVar1 + 3;
        if (cVar6 == ']') {
          cVar6 = pcVar1[4];
          goto LAB_0001f0b4;
        }
      }
      else if (cVar6 == ']') {
        cVar6 = pcVar1[3];
LAB_0001f0b4:
        pcVar4 = pcVar4 + 1;
      }
      while (cVar6 != ']') {
        if (cVar6 == '\0') {
          return pattern;
        }
        cVar6 = pcVar4[1];
        pcVar4 = pcVar4 + 1;
      }
      iVar5 = (int)pcVar4[1];
    }
    else {
      if ((iVar5 - 0x21U & 0xff) < 0x20) {
        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {
          iVar5 = (int)pcVar1[2];
          if (iVar5 == 0x28) {
            pcVar4 = end_pattern(pcVar1 + 2);
            iVar5 = (int)pcVar4[1];
          }
          goto LAB_0001f078;
        }
        if (iVar5 == 0x29) {
          return pcVar1 + 2;
        }
      }
      iVar5 = (int)pcVar1[2];
    }
LAB_0001f078:
    pcVar3 = pcVar4 + 1;
    pcVar1 = pcVar4;
  } while( true );
}



char * FUN_0001ef70(char *param_1)

{
  char *pcVar1;
  undefined *puVar2;
  char *pcVar3;
  char *pcVar4;
  int iVar5;
  char cVar6;
  undefined4 uVar7;
  undefined *puVar8;
  
  puVar2 = PTR_DAT_0004b178;
  iVar5 = (int)param_1[1];
  puVar8 = PTR_DAT_0004b1a0 + -0x7a9c;
  pcVar3 = param_1 + 1;
  pcVar1 = param_1;
  do {
    pcVar4 = pcVar3;
    if (iVar5 == 0) {
      return param_1;
    }
    if (iVar5 == 0x5b) {
      if (*(int *)(puVar2 + -0x4960) == 0) {
        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);
        uVar7 = 0xffffffff;
        if (iVar5 != 0) {
          uVar7 = 1;
        }
        *(undefined4 *)(puVar2 + -0x4960) = uVar7;
      }
      cVar6 = pcVar1[2];
      pcVar4 = pcVar1 + 2;
      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {
        cVar6 = pcVar1[3];
        pcVar4 = pcVar1 + 3;
        if (cVar6 == ']') {
          cVar6 = pcVar1[4];
          goto LAB_0001f0b4;
        }
      }
      else if (cVar6 == ']') {
        cVar6 = pcVar1[3];
LAB_0001f0b4:
        pcVar4 = pcVar4 + 1;
      }
      while (cVar6 != ']') {
        if (cVar6 == '\0') {
          return param_1;
        }
        cVar6 = pcVar4[1];
        pcVar4 = pcVar4 + 1;
      }
      iVar5 = (int)pcVar4[1];
    }
    else {
      if ((iVar5 - 0x21U & 0xff) < 0x20) {
        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {
          iVar5 = (int)pcVar1[2];
          if (iVar5 == 0x28) {
            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);
            iVar5 = (int)pcVar4[1];
          }
          goto LAB_0001f078;
        }
        if (iVar5 == 0x29) {
          return pcVar1 + 2;
        }
      }
      iVar5 = (int)pcVar1[2];
    }
LAB_0001f078:
    pcVar3 = pcVar4 + 1;
    pcVar1 = pcVar4;
  } while( true );
}


lui gp,0x3
addiu gp,gp,0x41e0
addu gp,gp,t9
addiu sp,sp,-0x30
sw s4,0x28(sp)
sw s3,0x24(sp)
or s3,a0,zero
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
or s0,a0,zero
sw gp,0x10(sp)
addiu v0,s0,0x1
sw ra,0x2c(sp)
lw s1,-0x7eec(gp)
lw s2,-0x7fb0(gp)
lb v1,0x1(a0)
addiu s1,s1,-0x1090
lw s4,-0x7fd8(gp)
beq v1,zero,0x0001f080
_addiu s2,s2,-0x7a9c
li a0,0x5b
beq v1,a0,0x0001f020
_addiu a0,v1,-0x21
andi a0,a0,0xff
sltiu a1,a0,0x20
beq a1,zero,0x0001f0a4
_nop
lui a1,0xc000
addiu a1,a1,0x601
srlv a0,a1,a0
ext a0,a0,0x0,0x1
bne a0,zero,0x0001f0dc
_li a0,0x29
bne v1,a0,0x0001f0a4
_lw ra,0x2c(sp)
addiu v0,s0,0x2
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
lw v0,-0x4960(s4)
beq v0,zero,0x0001f104
_lw t9,-0x7d60(gp)
lb v1,0x2(s0)
li a0,0x21
beq v1,a0,0x0001f0c4
_addiu v0,s0,0x2
lw a0,-0x4960(s4)
bltz a0,0x0001f0bc
_li a0,0x5e
li a0,0x5d
beq v1,a0,0x0001f0b0
_nop
b 0x0001f068
_li a1,0x5d
beq v1,zero,0x0001f080
_or v0,a0,zero
lb v1,0x0(a0)
bne v1,a1,0x0001f05c
_addiu a0,v0,0x1
lb v1,0x1(v0)
or s0,v0,zero
bne v1,zero,0x0001efc4
_addiu v0,s0,0x1
lw ra,0x2c(sp)
or v0,s3,zero
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
lb v1,0x2(s0)
b 0x0001f078
_or s0,v0,zero
lb v1,0x1(v0)
b 0x0001f054
_addiu v0,v0,0x1
bne v1,a0,0x0001f04c
_li a0,0x5d
lb v1,0x3(s0)
li a0,0x5d
bne v1,a0,0x0001f054
_addiu v0,s0,0x3
b 0x0001f0b4
_lb v1,0x1(v0)
lb v1,0x2(s0)
li a0,0x28
bne v1,a0,0x0001f074
_or t9,s1,zero
bal 0x0001ef70
_addiu a0,s0,0x2
lw gp,0x10(sp)
or s0,v0,zero
b 0x0001f078
_lb v1,0x1(v0)
jalr t9
_or a0,s2,zero
li v1,0x1
li a0,-0x1
lw gp,0x10(sp)
movn a0,v1,v0
b 0x0001f02c
_sw a0,-0x4960(s4)
(translation_unit "char * FUN_0001ef70(char *param_1)\n\n{\n  char *pcVar1;\n  undefined *puVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  char cVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  \n  puVar2 = PTR_DAT_0004b178;\n  iVar5 = (int)param_1[1];\n  puVar8 = PTR_DAT_0004b1a0 + -0x7a9c;\n  pcVar3 = param_1 + 1;\n  pcVar1 = param_1;\n  do {\n    pcVar4 = pcVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }\nLAB_0001f078:\n    pcVar3 = pcVar4 + 1;\n    pcVar1 = pcVar4;\n  } while( true );\n}\n\n" (function_definition "char * FUN_0001ef70(char *param_1)\n\n{\n  char *pcVar1;\n  undefined *puVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  char cVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  \n  puVar2 = PTR_DAT_0004b178;\n  iVar5 = (int)param_1[1];\n  puVar8 = PTR_DAT_0004b1a0 + -0x7a9c;\n  pcVar3 = param_1 + 1;\n  pcVar1 = param_1;\n  do {\n    pcVar4 = pcVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }\nLAB_0001f078:\n    pcVar3 = pcVar4 + 1;\n    pcVar1 = pcVar4;\n  } while( true );\n}" primitive_type (pointer_declarator "* FUN_0001ef70(char *param_1)" * (function_declarator "FUN_0001ef70(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  undefined *puVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  char cVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  \n  puVar2 = PTR_DAT_0004b178;\n  iVar5 = (int)param_1[1];\n  puVar8 = PTR_DAT_0004b1a0 + -0x7a9c;\n  pcVar3 = param_1 + 1;\n  pcVar1 = param_1;\n  do {\n    pcVar4 = pcVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }\nLAB_0001f078:\n    pcVar3 = pcVar4 + 1;\n    pcVar1 = pcVar4;\n  } while( true );\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char cVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (expression_statement "puVar2 = PTR_DAT_0004b178;" (assignment_expression "puVar2 = PTR_DAT_0004b178" identifier = identifier) ;) (expression_statement "iVar5 = (int)param_1[1];" (assignment_expression "iVar5 = (int)param_1[1]" identifier = (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "puVar8 = PTR_DAT_0004b1a0 + -0x7a9c;" (assignment_expression "puVar8 = PTR_DAT_0004b1a0 + -0x7a9c" identifier = (binary_expression "PTR_DAT_0004b1a0 + -0x7a9c" identifier + number_literal)) ;) (expression_statement "pcVar3 = param_1 + 1;" (assignment_expression "pcVar3 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "pcVar1 = param_1;" (assignment_expression "pcVar1 = param_1" identifier = identifier) ;) (do_statement "do {\n    pcVar4 = pcVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }\nLAB_0001f078:\n    pcVar3 = pcVar4 + 1;\n    pcVar1 = pcVar4;\n  } while( true );" do (compound_statement "{\n    pcVar4 = pcVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }\nLAB_0001f078:\n    pcVar3 = pcVar4 + 1;\n    pcVar1 = pcVar4;\n  }" { (expression_statement "pcVar4 = pcVar3;" (assignment_expression "pcVar4 = pcVar3" identifier = identifier) ;) (if_statement "if (iVar5 == 0) {\n      return param_1;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (if_statement "if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }" if (parenthesized_expression "(iVar5 == 0x5b)" ( (binary_expression "iVar5 == 0x5b" identifier == number_literal) )) (compound_statement "{\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }" { (if_statement "if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }" if (parenthesized_expression "(*(int *)(puVar2 + -0x4960) == 0)" ( (binary_expression "*(int *)(puVar2 + -0x4960) == 0" (pointer_expression "*(int *)(puVar2 + -0x4960)" * (cast_expression "(int *)(puVar2 + -0x4960)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x4960)" ( (binary_expression "puVar2 + -0x4960" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }" { (expression_statement "iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);" (assignment_expression "iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8)" identifier = (call_expression "(*(code *)PTR_getenv_0004b3f0)(puVar8)" (parenthesized_expression "(*(code *)PTR_getenv_0004b3f0)" ( (pointer_expression "*(code *)PTR_getenv_0004b3f0" * (cast_expression "(code *)PTR_getenv_0004b3f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar8)" ( identifier )))) ;) (expression_statement "uVar7 = 0xffffffff;" (assignment_expression "uVar7 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (iVar5 != 0) {\n          uVar7 = 1;\n        }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar7 = 1;\n        }" { (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) })) (expression_statement "*(undefined4 *)(puVar2 + -0x4960) = uVar7;" (assignment_expression "*(undefined4 *)(puVar2 + -0x4960) = uVar7" (pointer_expression "*(undefined4 *)(puVar2 + -0x4960)" * (cast_expression "(undefined4 *)(puVar2 + -0x4960)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x4960)" ( (binary_expression "puVar2 + -0x4960" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "cVar6 = pcVar1[2];" (assignment_expression "cVar6 = pcVar1[2]" identifier = (subscript_expression "pcVar1[2]" identifier [ number_literal ])) ;) (expression_statement "pcVar4 = pcVar1 + 2;" (assignment_expression "pcVar4 = pcVar1 + 2" identifier = (binary_expression "pcVar1 + 2" identifier + number_literal)) ;) (if_statement "if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }" if (parenthesized_expression "((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^'))))" ( (binary_expression "(cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))" (parenthesized_expression "(cVar6 == '!')" ( (binary_expression "cVar6 == '!'" identifier == (char_literal "'!'" ' character ')) )) || (parenthesized_expression "((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))" ( (parenthesized_expression "(*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^'))" ( (binary_expression "*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')" (binary_expression "*(int *)(puVar2 + -0x4960) < 0" (pointer_expression "*(int *)(puVar2 + -0x4960)" * (cast_expression "(int *)(puVar2 + -0x4960)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x4960)" ( (binary_expression "puVar2 + -0x4960" identifier + number_literal) )))) < number_literal) && (parenthesized_expression "(cVar6 == '^')" ( (binary_expression "cVar6 == '^'" identifier == (char_literal "'^'" ' character ')) ))) )) ))) )) (compound_statement "{\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }" { (expression_statement "cVar6 = pcVar1[3];" (assignment_expression "cVar6 = pcVar1[3]" identifier = (subscript_expression "pcVar1[3]" identifier [ number_literal ])) ;) (expression_statement "pcVar4 = pcVar1 + 3;" (assignment_expression "pcVar4 = pcVar1 + 3" identifier = (binary_expression "pcVar1 + 3" identifier + number_literal)) ;) (if_statement "if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }" if (parenthesized_expression "(cVar6 == ']')" ( (binary_expression "cVar6 == ']'" identifier == (char_literal "']'" ' character ')) )) (compound_statement "{\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }" { (expression_statement "cVar6 = pcVar1[4];" (assignment_expression "cVar6 = pcVar1[4]" identifier = (subscript_expression "pcVar1[4]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_0001f0b4;" goto statement_identifier ;) })) }) (else_clause "else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }" else (if_statement "if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }" if (parenthesized_expression "(cVar6 == ']')" ( (binary_expression "cVar6 == ']'" identifier == (char_literal "']'" ' character ')) )) (compound_statement "{\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }" { (expression_statement "cVar6 = pcVar1[3];" (assignment_expression "cVar6 = pcVar1[3]" identifier = (subscript_expression "pcVar1[3]" identifier [ number_literal ])) ;) (labeled_statement "LAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;" statement_identifier : (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;)) })))) (while_statement "while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }" while (parenthesized_expression "(cVar6 != ']')" ( (binary_expression "cVar6 != ']'" identifier != (char_literal "']'" ' character ')) )) (compound_statement "{\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }" { (if_statement "if (cVar6 == '\0') {\n          return param_1;\n        }" if (parenthesized_expression "(cVar6 == '\0')" ( (binary_expression "cVar6 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          return param_1;\n        }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "cVar6 = pcVar4[1];" (assignment_expression "cVar6 = pcVar4[1]" identifier = (subscript_expression "pcVar4[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar5 = (int)pcVar4[1];" (assignment_expression "iVar5 = (int)pcVar4[1]" identifier = (cast_expression "(int)pcVar4[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar4[1]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }" else (compound_statement "{\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }" { (if_statement "if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }" if (parenthesized_expression "((iVar5 - 0x21U & 0xff) < 0x20)" ( (binary_expression "(iVar5 - 0x21U & 0xff) < 0x20" (parenthesized_expression "(iVar5 - 0x21U & 0xff)" ( (binary_expression "iVar5 - 0x21U & 0xff" (binary_expression "iVar5 - 0x21U" identifier - number_literal) & number_literal) )) < number_literal) )) (compound_statement "{\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }" { (if_statement "if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }" if (parenthesized_expression "((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0)" ( (binary_expression "(int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0" (cast_expression "(int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f)" ( (binary_expression "(0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f" (parenthesized_expression "(0xc0000601U >> (iVar5 - 0x21U & 0x1f))" ( (binary_expression "0xc0000601U >> (iVar5 - 0x21U & 0x1f)" number_literal >> (parenthesized_expression "(iVar5 - 0x21U & 0x1f)" ( (binary_expression "iVar5 - 0x21U & 0x1f" (binary_expression "iVar5 - 0x21U" identifier - number_literal) & number_literal) ))) )) << number_literal) ))) < number_literal) )) (compound_statement "{\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }" { (expression_statement "iVar5 = (int)pcVar1[2];" (assignment_expression "iVar5 = (int)pcVar1[2]" identifier = (cast_expression "(int)pcVar1[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }" if (parenthesized_expression "(iVar5 == 0x28)" ( (binary_expression "iVar5 == 0x28" identifier == number_literal) )) (compound_statement "{\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }" { (expression_statement "pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);" (assignment_expression "pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2)" identifier = (cast_expression "(char *)FUN_0001ef70(pcVar1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001ef70(pcVar1 + 2)" identifier (argument_list "(pcVar1 + 2)" ( (binary_expression "pcVar1 + 2" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = (int)pcVar4[1];" (assignment_expression "iVar5 = (int)pcVar4[1]" identifier = (cast_expression "(int)pcVar4[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar4[1]" identifier [ number_literal ]))) ;) })) (goto_statement "goto LAB_0001f078;" goto statement_identifier ;) })) (if_statement "if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }" if (parenthesized_expression "(iVar5 == 0x29)" ( (binary_expression "iVar5 == 0x29" identifier == number_literal) )) (compound_statement "{\n          return pcVar1 + 2;\n        }" { (return_statement "return pcVar1 + 2;" return (binary_expression "pcVar1 + 2" identifier + number_literal) ;) })) })) (expression_statement "iVar5 = (int)pcVar1[2];" (assignment_expression "iVar5 = (int)pcVar1[2]" identifier = (cast_expression "(int)pcVar1[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar1[2]" identifier [ number_literal ]))) ;) }))) (labeled_statement "LAB_0001f078:\n    pcVar3 = pcVar4 + 1;" statement_identifier : (expression_statement "pcVar3 = pcVar4 + 1;" (assignment_expression "pcVar3 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;)) (expression_statement "pcVar1 = pcVar4;" (assignment_expression "pcVar1 = pcVar4" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "char * end_pattern(char *pattern)\n\n{\n  char *pcVar1;\n  undefined *puVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  char cVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  \n  puVar2 = PTR_DAT_0004b178;\n  iVar5 = (int)pattern[1];\n  puVar8 = PTR_DAT_0004b1a0 + -0x7a9c;\n  pcVar3 = pattern + 1;\n  pcVar1 = pattern;\n  do {\n    pcVar4 = pcVar3;\n    if (iVar5 == 0) {\n      return pattern;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return pattern;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = end_pattern(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }\nLAB_0001f078:\n    pcVar3 = pcVar4 + 1;\n    pcVar1 = pcVar4;\n  } while( true );\n}\n\n" (function_definition "char * end_pattern(char *pattern)\n\n{\n  char *pcVar1;\n  undefined *puVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  char cVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  \n  puVar2 = PTR_DAT_0004b178;\n  iVar5 = (int)pattern[1];\n  puVar8 = PTR_DAT_0004b1a0 + -0x7a9c;\n  pcVar3 = pattern + 1;\n  pcVar1 = pattern;\n  do {\n    pcVar4 = pcVar3;\n    if (iVar5 == 0) {\n      return pattern;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return pattern;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = end_pattern(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }\nLAB_0001f078:\n    pcVar3 = pcVar4 + 1;\n    pcVar1 = pcVar4;\n  } while( true );\n}" primitive_type (pointer_declarator "* end_pattern(char *pattern)" * (function_declarator "end_pattern(char *pattern)" identifier (parameter_list "(char *pattern)" ( (parameter_declaration "char *pattern" primitive_type (pointer_declarator "*pattern" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  undefined *puVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  char cVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  \n  puVar2 = PTR_DAT_0004b178;\n  iVar5 = (int)pattern[1];\n  puVar8 = PTR_DAT_0004b1a0 + -0x7a9c;\n  pcVar3 = pattern + 1;\n  pcVar1 = pattern;\n  do {\n    pcVar4 = pcVar3;\n    if (iVar5 == 0) {\n      return pattern;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return pattern;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = end_pattern(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }\nLAB_0001f078:\n    pcVar3 = pcVar4 + 1;\n    pcVar1 = pcVar4;\n  } while( true );\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char cVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (expression_statement "puVar2 = PTR_DAT_0004b178;" (assignment_expression "puVar2 = PTR_DAT_0004b178" identifier = identifier) ;) (expression_statement "iVar5 = (int)pattern[1];" (assignment_expression "iVar5 = (int)pattern[1]" identifier = (cast_expression "(int)pattern[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pattern[1]" identifier [ number_literal ]))) ;) (expression_statement "puVar8 = PTR_DAT_0004b1a0 + -0x7a9c;" (assignment_expression "puVar8 = PTR_DAT_0004b1a0 + -0x7a9c" identifier = (binary_expression "PTR_DAT_0004b1a0 + -0x7a9c" identifier + number_literal)) ;) (expression_statement "pcVar3 = pattern + 1;" (assignment_expression "pcVar3 = pattern + 1" identifier = (binary_expression "pattern + 1" identifier + number_literal)) ;) (expression_statement "pcVar1 = pattern;" (assignment_expression "pcVar1 = pattern" identifier = identifier) ;) (do_statement "do {\n    pcVar4 = pcVar3;\n    if (iVar5 == 0) {\n      return pattern;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return pattern;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = end_pattern(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }\nLAB_0001f078:\n    pcVar3 = pcVar4 + 1;\n    pcVar1 = pcVar4;\n  } while( true );" do (compound_statement "{\n    pcVar4 = pcVar3;\n    if (iVar5 == 0) {\n      return pattern;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return pattern;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = end_pattern(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }\nLAB_0001f078:\n    pcVar3 = pcVar4 + 1;\n    pcVar1 = pcVar4;\n  }" { (expression_statement "pcVar4 = pcVar3;" (assignment_expression "pcVar4 = pcVar3" identifier = identifier) ;) (if_statement "if (iVar5 == 0) {\n      return pattern;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      return pattern;\n    }" { (return_statement "return pattern;" return identifier ;) })) (if_statement "if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return pattern;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = end_pattern(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }" if (parenthesized_expression "(iVar5 == 0x5b)" ( (binary_expression "iVar5 == 0x5b" identifier == number_literal) )) (compound_statement "{\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return pattern;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }" { (if_statement "if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }" if (parenthesized_expression "(*(int *)(puVar2 + -0x4960) == 0)" ( (binary_expression "*(int *)(puVar2 + -0x4960) == 0" (pointer_expression "*(int *)(puVar2 + -0x4960)" * (cast_expression "(int *)(puVar2 + -0x4960)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x4960)" ( (binary_expression "puVar2 + -0x4960" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }" { (expression_statement "iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);" (assignment_expression "iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8)" identifier = (call_expression "(*(code *)PTR_getenv_0004b3f0)(puVar8)" (parenthesized_expression "(*(code *)PTR_getenv_0004b3f0)" ( (pointer_expression "*(code *)PTR_getenv_0004b3f0" * (cast_expression "(code *)PTR_getenv_0004b3f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar8)" ( identifier )))) ;) (expression_statement "uVar7 = 0xffffffff;" (assignment_expression "uVar7 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (iVar5 != 0) {\n          uVar7 = 1;\n        }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar7 = 1;\n        }" { (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) })) (expression_statement "*(undefined4 *)(puVar2 + -0x4960) = uVar7;" (assignment_expression "*(undefined4 *)(puVar2 + -0x4960) = uVar7" (pointer_expression "*(undefined4 *)(puVar2 + -0x4960)" * (cast_expression "(undefined4 *)(puVar2 + -0x4960)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x4960)" ( (binary_expression "puVar2 + -0x4960" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "cVar6 = pcVar1[2];" (assignment_expression "cVar6 = pcVar1[2]" identifier = (subscript_expression "pcVar1[2]" identifier [ number_literal ])) ;) (expression_statement "pcVar4 = pcVar1 + 2;" (assignment_expression "pcVar4 = pcVar1 + 2" identifier = (binary_expression "pcVar1 + 2" identifier + number_literal)) ;) (if_statement "if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }" if (parenthesized_expression "((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^'))))" ( (binary_expression "(cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))" (parenthesized_expression "(cVar6 == '!')" ( (binary_expression "cVar6 == '!'" identifier == (char_literal "'!'" ' character ')) )) || (parenthesized_expression "((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))" ( (parenthesized_expression "(*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^'))" ( (binary_expression "*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')" (binary_expression "*(int *)(puVar2 + -0x4960) < 0" (pointer_expression "*(int *)(puVar2 + -0x4960)" * (cast_expression "(int *)(puVar2 + -0x4960)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x4960)" ( (binary_expression "puVar2 + -0x4960" identifier + number_literal) )))) < number_literal) && (parenthesized_expression "(cVar6 == '^')" ( (binary_expression "cVar6 == '^'" identifier == (char_literal "'^'" ' character ')) ))) )) ))) )) (compound_statement "{\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }" { (expression_statement "cVar6 = pcVar1[3];" (assignment_expression "cVar6 = pcVar1[3]" identifier = (subscript_expression "pcVar1[3]" identifier [ number_literal ])) ;) (expression_statement "pcVar4 = pcVar1 + 3;" (assignment_expression "pcVar4 = pcVar1 + 3" identifier = (binary_expression "pcVar1 + 3" identifier + number_literal)) ;) (if_statement "if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }" if (parenthesized_expression "(cVar6 == ']')" ( (binary_expression "cVar6 == ']'" identifier == (char_literal "']'" ' character ')) )) (compound_statement "{\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }" { (expression_statement "cVar6 = pcVar1[4];" (assignment_expression "cVar6 = pcVar1[4]" identifier = (subscript_expression "pcVar1[4]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_0001f0b4;" goto statement_identifier ;) })) }) (else_clause "else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }" else (if_statement "if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }" if (parenthesized_expression "(cVar6 == ']')" ( (binary_expression "cVar6 == ']'" identifier == (char_literal "']'" ' character ')) )) (compound_statement "{\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }" { (expression_statement "cVar6 = pcVar1[3];" (assignment_expression "cVar6 = pcVar1[3]" identifier = (subscript_expression "pcVar1[3]" identifier [ number_literal ])) ;) (labeled_statement "LAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;" statement_identifier : (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;)) })))) (while_statement "while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return pattern;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }" while (parenthesized_expression "(cVar6 != ']')" ( (binary_expression "cVar6 != ']'" identifier != (char_literal "']'" ' character ')) )) (compound_statement "{\n        if (cVar6 == '\0') {\n          return pattern;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }" { (if_statement "if (cVar6 == '\0') {\n          return pattern;\n        }" if (parenthesized_expression "(cVar6 == '\0')" ( (binary_expression "cVar6 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          return pattern;\n        }" { (return_statement "return pattern;" return identifier ;) })) (expression_statement "cVar6 = pcVar4[1];" (assignment_expression "cVar6 = pcVar4[1]" identifier = (subscript_expression "pcVar4[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar5 = (int)pcVar4[1];" (assignment_expression "iVar5 = (int)pcVar4[1]" identifier = (cast_expression "(int)pcVar4[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar4[1]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = end_pattern(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }" else (compound_statement "{\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = end_pattern(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }" { (if_statement "if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = end_pattern(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }" if (parenthesized_expression "((iVar5 - 0x21U & 0xff) < 0x20)" ( (binary_expression "(iVar5 - 0x21U & 0xff) < 0x20" (parenthesized_expression "(iVar5 - 0x21U & 0xff)" ( (binary_expression "iVar5 - 0x21U & 0xff" (binary_expression "iVar5 - 0x21U" identifier - number_literal) & number_literal) )) < number_literal) )) (compound_statement "{\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = end_pattern(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }" { (if_statement "if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = end_pattern(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }" if (parenthesized_expression "((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0)" ( (binary_expression "(int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0" (cast_expression "(int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f)" ( (binary_expression "(0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f" (parenthesized_expression "(0xc0000601U >> (iVar5 - 0x21U & 0x1f))" ( (binary_expression "0xc0000601U >> (iVar5 - 0x21U & 0x1f)" number_literal >> (parenthesized_expression "(iVar5 - 0x21U & 0x1f)" ( (binary_expression "iVar5 - 0x21U & 0x1f" (binary_expression "iVar5 - 0x21U" identifier - number_literal) & number_literal) ))) )) << number_literal) ))) < number_literal) )) (compound_statement "{\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = end_pattern(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }" { (expression_statement "iVar5 = (int)pcVar1[2];" (assignment_expression "iVar5 = (int)pcVar1[2]" identifier = (cast_expression "(int)pcVar1[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (iVar5 == 0x28) {\n            pcVar4 = end_pattern(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }" if (parenthesized_expression "(iVar5 == 0x28)" ( (binary_expression "iVar5 == 0x28" identifier == number_literal) )) (compound_statement "{\n            pcVar4 = end_pattern(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }" { (expression_statement "pcVar4 = end_pattern(pcVar1 + 2);" (assignment_expression "pcVar4 = end_pattern(pcVar1 + 2)" identifier = (call_expression "end_pattern(pcVar1 + 2)" identifier (argument_list "(pcVar1 + 2)" ( (binary_expression "pcVar1 + 2" identifier + number_literal) )))) ;) (expression_statement "iVar5 = (int)pcVar4[1];" (assignment_expression "iVar5 = (int)pcVar4[1]" identifier = (cast_expression "(int)pcVar4[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar4[1]" identifier [ number_literal ]))) ;) })) (goto_statement "goto LAB_0001f078;" goto statement_identifier ;) })) (if_statement "if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }" if (parenthesized_expression "(iVar5 == 0x29)" ( (binary_expression "iVar5 == 0x29" identifier == number_literal) )) (compound_statement "{\n          return pcVar1 + 2;\n        }" { (return_statement "return pcVar1 + 2;" return (binary_expression "pcVar1 + 2" identifier + number_literal) ;) })) })) (expression_statement "iVar5 = (int)pcVar1[2];" (assignment_expression "iVar5 = (int)pcVar1[2]" identifier = (cast_expression "(int)pcVar1[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar1[2]" identifier [ number_literal ]))) ;) }))) (labeled_statement "LAB_0001f078:\n    pcVar3 = pcVar4 + 1;" statement_identifier : (expression_statement "pcVar3 = pcVar4 + 1;" (assignment_expression "pcVar3 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;)) (expression_statement "pcVar1 = pcVar4;" (assignment_expression "pcVar1 = pcVar4" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "char * FUN_0001ef70(char *param_1)\n\n{\n  char *pcVar1;\n  undefined *puVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  char cVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  \n  puVar2 = PTR_DAT_0004b178;\n  iVar5 = (int)param_1[1];\n  puVar8 = PTR_DAT_0004b1a0 + -0x7a9c;\n  pcVar3 = param_1 + 1;\n  pcVar1 = param_1;\n  do {\n    pcVar4 = pcVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }\nLAB_0001f078:\n    pcVar3 = pcVar4 + 1;\n    pcVar1 = pcVar4;\n  } while( true );\n}\n\n" (function_definition "char * FUN_0001ef70(char *param_1)\n\n{\n  char *pcVar1;\n  undefined *puVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  char cVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  \n  puVar2 = PTR_DAT_0004b178;\n  iVar5 = (int)param_1[1];\n  puVar8 = PTR_DAT_0004b1a0 + -0x7a9c;\n  pcVar3 = param_1 + 1;\n  pcVar1 = param_1;\n  do {\n    pcVar4 = pcVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }\nLAB_0001f078:\n    pcVar3 = pcVar4 + 1;\n    pcVar1 = pcVar4;\n  } while( true );\n}" primitive_type (pointer_declarator "* FUN_0001ef70(char *param_1)" * (function_declarator "FUN_0001ef70(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  undefined *puVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  char cVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  \n  puVar2 = PTR_DAT_0004b178;\n  iVar5 = (int)param_1[1];\n  puVar8 = PTR_DAT_0004b1a0 + -0x7a9c;\n  pcVar3 = param_1 + 1;\n  pcVar1 = param_1;\n  do {\n    pcVar4 = pcVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }\nLAB_0001f078:\n    pcVar3 = pcVar4 + 1;\n    pcVar1 = pcVar4;\n  } while( true );\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char cVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (expression_statement "puVar2 = PTR_DAT_0004b178;" (assignment_expression "puVar2 = PTR_DAT_0004b178" identifier = identifier) ;) (expression_statement "iVar5 = (int)param_1[1];" (assignment_expression "iVar5 = (int)param_1[1]" identifier = (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "puVar8 = PTR_DAT_0004b1a0 + -0x7a9c;" (assignment_expression "puVar8 = PTR_DAT_0004b1a0 + -0x7a9c" identifier = (binary_expression "PTR_DAT_0004b1a0 + -0x7a9c" identifier + number_literal)) ;) (expression_statement "pcVar3 = param_1 + 1;" (assignment_expression "pcVar3 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "pcVar1 = param_1;" (assignment_expression "pcVar1 = param_1" identifier = identifier) ;) (do_statement "do {\n    pcVar4 = pcVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }\nLAB_0001f078:\n    pcVar3 = pcVar4 + 1;\n    pcVar1 = pcVar4;\n  } while( true );" do (compound_statement "{\n    pcVar4 = pcVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }\nLAB_0001f078:\n    pcVar3 = pcVar4 + 1;\n    pcVar1 = pcVar4;\n  }" { (expression_statement "pcVar4 = pcVar3;" (assignment_expression "pcVar4 = pcVar3" identifier = identifier) ;) (if_statement "if (iVar5 == 0) {\n      return param_1;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (if_statement "if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }" if (parenthesized_expression "(iVar5 == 0x5b)" ( (binary_expression "iVar5 == 0x5b" identifier == number_literal) )) (compound_statement "{\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }" { (if_statement "if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }" if (parenthesized_expression "(*(int *)(puVar2 + -0x4960) == 0)" ( (binary_expression "*(int *)(puVar2 + -0x4960) == 0" (pointer_expression "*(int *)(puVar2 + -0x4960)" * (cast_expression "(int *)(puVar2 + -0x4960)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x4960)" ( (binary_expression "puVar2 + -0x4960" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }" { (expression_statement "iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);" (assignment_expression "iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8)" identifier = (call_expression "(*(code *)PTR_getenv_0004b3f0)(puVar8)" (parenthesized_expression "(*(code *)PTR_getenv_0004b3f0)" ( (pointer_expression "*(code *)PTR_getenv_0004b3f0" * (cast_expression "(code *)PTR_getenv_0004b3f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar8)" ( identifier )))) ;) (expression_statement "uVar7 = 0xffffffff;" (assignment_expression "uVar7 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (iVar5 != 0) {\n          uVar7 = 1;\n        }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar7 = 1;\n        }" { (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) })) (expression_statement "*(undefined4 *)(puVar2 + -0x4960) = uVar7;" (assignment_expression "*(undefined4 *)(puVar2 + -0x4960) = uVar7" (pointer_expression "*(undefined4 *)(puVar2 + -0x4960)" * (cast_expression "(undefined4 *)(puVar2 + -0x4960)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x4960)" ( (binary_expression "puVar2 + -0x4960" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "cVar6 = pcVar1[2];" (assignment_expression "cVar6 = pcVar1[2]" identifier = (subscript_expression "pcVar1[2]" identifier [ number_literal ])) ;) (expression_statement "pcVar4 = pcVar1 + 2;" (assignment_expression "pcVar4 = pcVar1 + 2" identifier = (binary_expression "pcVar1 + 2" identifier + number_literal)) ;) (if_statement "if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }" if (parenthesized_expression "((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^'))))" ( (binary_expression "(cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))" (parenthesized_expression "(cVar6 == '!')" ( (binary_expression "cVar6 == '!'" identifier == (char_literal "'!'" ' character ')) )) || (parenthesized_expression "((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))" ( (parenthesized_expression "(*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^'))" ( (binary_expression "*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')" (binary_expression "*(int *)(puVar2 + -0x4960) < 0" (pointer_expression "*(int *)(puVar2 + -0x4960)" * (cast_expression "(int *)(puVar2 + -0x4960)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x4960)" ( (binary_expression "puVar2 + -0x4960" identifier + number_literal) )))) < number_literal) && (parenthesized_expression "(cVar6 == '^')" ( (binary_expression "cVar6 == '^'" identifier == (char_literal "'^'" ' character ')) ))) )) ))) )) (compound_statement "{\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }" { (expression_statement "cVar6 = pcVar1[3];" (assignment_expression "cVar6 = pcVar1[3]" identifier = (subscript_expression "pcVar1[3]" identifier [ number_literal ])) ;) (expression_statement "pcVar4 = pcVar1 + 3;" (assignment_expression "pcVar4 = pcVar1 + 3" identifier = (binary_expression "pcVar1 + 3" identifier + number_literal)) ;) (if_statement "if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }" if (parenthesized_expression "(cVar6 == ']')" ( (binary_expression "cVar6 == ']'" identifier == (char_literal "']'" ' character ')) )) (compound_statement "{\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }" { (expression_statement "cVar6 = pcVar1[4];" (assignment_expression "cVar6 = pcVar1[4]" identifier = (subscript_expression "pcVar1[4]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_0001f0b4;" goto statement_identifier ;) })) }) (else_clause "else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }" else (if_statement "if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }" if (parenthesized_expression "(cVar6 == ']')" ( (binary_expression "cVar6 == ']'" identifier == (char_literal "']'" ' character ')) )) (compound_statement "{\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }" { (expression_statement "cVar6 = pcVar1[3];" (assignment_expression "cVar6 = pcVar1[3]" identifier = (subscript_expression "pcVar1[3]" identifier [ number_literal ])) ;) (labeled_statement "LAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;" statement_identifier : (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;)) })))) (while_statement "while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }" while (parenthesized_expression "(cVar6 != ']')" ( (binary_expression "cVar6 != ']'" identifier != (char_literal "']'" ' character ')) )) (compound_statement "{\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }" { (if_statement "if (cVar6 == '\0') {\n          return param_1;\n        }" if (parenthesized_expression "(cVar6 == '\0')" ( (binary_expression "cVar6 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          return param_1;\n        }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "cVar6 = pcVar4[1];" (assignment_expression "cVar6 = pcVar4[1]" identifier = (subscript_expression "pcVar4[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar5 = (int)pcVar4[1];" (assignment_expression "iVar5 = (int)pcVar4[1]" identifier = (cast_expression "(int)pcVar4[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar4[1]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }" else (compound_statement "{\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }" { (if_statement "if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }" if (parenthesized_expression "((iVar5 - 0x21U & 0xff) < 0x20)" ( (binary_expression "(iVar5 - 0x21U & 0xff) < 0x20" (parenthesized_expression "(iVar5 - 0x21U & 0xff)" ( (binary_expression "iVar5 - 0x21U & 0xff" (binary_expression "iVar5 - 0x21U" identifier - number_literal) & number_literal) )) < number_literal) )) (compound_statement "{\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }" { (if_statement "if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }" if (parenthesized_expression "((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0)" ( (binary_expression "(int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0" (cast_expression "(int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f)" ( (binary_expression "(0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f" (parenthesized_expression "(0xc0000601U >> (iVar5 - 0x21U & 0x1f))" ( (binary_expression "0xc0000601U >> (iVar5 - 0x21U & 0x1f)" number_literal >> (parenthesized_expression "(iVar5 - 0x21U & 0x1f)" ( (binary_expression "iVar5 - 0x21U & 0x1f" (binary_expression "iVar5 - 0x21U" identifier - number_literal) & number_literal) ))) )) << number_literal) ))) < number_literal) )) (compound_statement "{\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }" { (expression_statement "iVar5 = (int)pcVar1[2];" (assignment_expression "iVar5 = (int)pcVar1[2]" identifier = (cast_expression "(int)pcVar1[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }" if (parenthesized_expression "(iVar5 == 0x28)" ( (binary_expression "iVar5 == 0x28" identifier == number_literal) )) (compound_statement "{\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }" { (expression_statement "pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);" (assignment_expression "pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2)" identifier = (cast_expression "(char *)FUN_0001ef70(pcVar1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001ef70(pcVar1 + 2)" identifier (argument_list "(pcVar1 + 2)" ( (binary_expression "pcVar1 + 2" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = (int)pcVar4[1];" (assignment_expression "iVar5 = (int)pcVar4[1]" identifier = (cast_expression "(int)pcVar4[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar4[1]" identifier [ number_literal ]))) ;) })) (goto_statement "goto LAB_0001f078;" goto statement_identifier ;) })) (if_statement "if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }" if (parenthesized_expression "(iVar5 == 0x29)" ( (binary_expression "iVar5 == 0x29" identifier == number_literal) )) (compound_statement "{\n          return pcVar1 + 2;\n        }" { (return_statement "return pcVar1 + 2;" return (binary_expression "pcVar1 + 2" identifier + number_literal) ;) })) })) (expression_statement "iVar5 = (int)pcVar1[2];" (assignment_expression "iVar5 = (int)pcVar1[2]" identifier = (cast_expression "(int)pcVar1[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar1[2]" identifier [ number_literal ]))) ;) }))) (labeled_statement "LAB_0001f078:\n    pcVar3 = pcVar4 + 1;" statement_identifier : (expression_statement "pcVar3 = pcVar4 + 1;" (assignment_expression "pcVar3 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;)) (expression_statement "pcVar1 = pcVar4;" (assignment_expression "pcVar1 = pcVar4" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (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 (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < 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)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (labeled_statement statement_identifier : (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)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) )) < LIT) )) (compound_statement { (if_statement if (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 { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) })) (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 = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "char * FUN_0001ef70(char *param_1)\n\n{\n  char *pcVar1;\n  undefined *puVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  char cVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  \n  puVar2 = PTR_DAT_0004b178;\n  iVar5 = (int)param_1[1];\n  puVar8 = PTR_DAT_0004b1a0 + -0x7a9c;\n  pcVar3 = param_1 + 1;\n  pcVar1 = param_1;\n  do {\n    pcVar4 = pcVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }\nLAB_0001f078:\n    pcVar3 = pcVar4 + 1;\n    pcVar1 = pcVar4;\n  } while( true );\n}" (primitive_type "char") (pointer_declarator "* FUN_0001ef70(char *param_1)" (* "*") (function_declarator "FUN_0001ef70(char *param_1)" (identifier "FUN_0001ef70") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  char *pcVar1;\n  undefined *puVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  char cVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  \n  puVar2 = PTR_DAT_0004b178;\n  iVar5 = (int)param_1[1];\n  puVar8 = PTR_DAT_0004b1a0 + -0x7a9c;\n  pcVar3 = param_1 + 1;\n  pcVar1 = param_1;\n  do {\n    pcVar4 = pcVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }\nLAB_0001f078:\n    pcVar3 = pcVar4 + 1;\n    pcVar1 = pcVar4;\n  } while( true );\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "char cVar6;" (primitive_type "char") (identifier "cVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "undefined *puVar8;" (type_identifier "undefined") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (expression_statement "puVar2 = PTR_DAT_0004b178;" (assignment_expression "puVar2 = PTR_DAT_0004b178" (identifier "puVar2") (= "=") (identifier "PTR_DAT_0004b178")) (; ";")) (expression_statement "iVar5 = (int)param_1[1];" (assignment_expression "iVar5 = (int)param_1[1]" (identifier "iVar5") (= "=") (cast_expression "(int)param_1[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "puVar8 = PTR_DAT_0004b1a0 + -0x7a9c;" (assignment_expression "puVar8 = PTR_DAT_0004b1a0 + -0x7a9c" (identifier "puVar8") (= "=") (binary_expression "PTR_DAT_0004b1a0 + -0x7a9c" (identifier "PTR_DAT_0004b1a0") (+ "+") (number_literal "-0x7a9c"))) (; ";")) (expression_statement "pcVar3 = param_1 + 1;" (assignment_expression "pcVar3 = param_1 + 1" (identifier "pcVar3") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar1 = param_1;" (assignment_expression "pcVar1 = param_1" (identifier "pcVar1") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n    pcVar4 = pcVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }\nLAB_0001f078:\n    pcVar3 = pcVar4 + 1;\n    pcVar1 = pcVar4;\n  } while( true );" (do "do") (compound_statement "{\n    pcVar4 = pcVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }\nLAB_0001f078:\n    pcVar3 = pcVar4 + 1;\n    pcVar1 = pcVar4;\n  }" ({ "{") (expression_statement "pcVar4 = pcVar3;" (assignment_expression "pcVar4 = pcVar3" (identifier "pcVar4") (= "=") (identifier "pcVar3")) (; ";")) (if_statement "if (iVar5 == 0) {\n      return param_1;\n    }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return param_1;\n    }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (if_statement "if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }\n    else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }" (if "if") (parenthesized_expression "(iVar5 == 0x5b)" (( "(") (binary_expression "iVar5 == 0x5b" (identifier "iVar5") (== "==") (number_literal "0x5b")) () ")")) (compound_statement "{\n      if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }\n      cVar6 = pcVar1[2];\n      pcVar4 = pcVar1 + 2;\n      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }\n      while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }\n      iVar5 = (int)pcVar4[1];\n    }" ({ "{") (if_statement "if (*(int *)(puVar2 + -0x4960) == 0) {\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }" (if "if") (parenthesized_expression "(*(int *)(puVar2 + -0x4960) == 0)" (( "(") (binary_expression "*(int *)(puVar2 + -0x4960) == 0" (pointer_expression "*(int *)(puVar2 + -0x4960)" (* "*") (cast_expression "(int *)(puVar2 + -0x4960)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + -0x4960)" (( "(") (binary_expression "puVar2 + -0x4960" (identifier "puVar2") (+ "+") (number_literal "-0x4960")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);\n        uVar7 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar7 = 1;\n        }\n        *(undefined4 *)(puVar2 + -0x4960) = uVar7;\n      }" ({ "{") (expression_statement "iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);" (assignment_expression "iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_getenv_0004b3f0)(puVar8)" (parenthesized_expression "(*(code *)PTR_getenv_0004b3f0)" (( "(") (pointer_expression "*(code *)PTR_getenv_0004b3f0" (* "*") (cast_expression "(code *)PTR_getenv_0004b3f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getenv_0004b3f0"))) () ")")) (argument_list "(puVar8)" (( "(") (identifier "puVar8") () ")")))) (; ";")) (expression_statement "uVar7 = 0xffffffff;" (assignment_expression "uVar7 = 0xffffffff" (identifier "uVar7") (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if (iVar5 != 0) {\n          uVar7 = 1;\n        }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar7 = 1;\n        }" ({ "{") (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" (identifier "uVar7") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(puVar2 + -0x4960) = uVar7;" (assignment_expression "*(undefined4 *)(puVar2 + -0x4960) = uVar7" (pointer_expression "*(undefined4 *)(puVar2 + -0x4960)" (* "*") (cast_expression "(undefined4 *)(puVar2 + -0x4960)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + -0x4960)" (( "(") (binary_expression "puVar2 + -0x4960" (identifier "puVar2") (+ "+") (number_literal "-0x4960")) () ")")))) (= "=") (identifier "uVar7")) (; ";")) (} "}"))) (expression_statement "cVar6 = pcVar1[2];" (assignment_expression "cVar6 = pcVar1[2]" (identifier "cVar6") (= "=") (subscript_expression "pcVar1[2]" (identifier "pcVar1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "pcVar4 = pcVar1 + 2;" (assignment_expression "pcVar4 = pcVar1 + 2" (identifier "pcVar4") (= "=") (binary_expression "pcVar1 + 2" (identifier "pcVar1") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }\n      else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }" (if "if") (parenthesized_expression "((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^'))))" (( "(") (binary_expression "(cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))" (parenthesized_expression "(cVar6 == '!')" (( "(") (binary_expression "cVar6 == '!'" (identifier "cVar6") (== "==") (char_literal "'!'" (' "'") (character "!") (' "'"))) () ")")) (|| "||") (parenthesized_expression "((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))" (( "(") (parenthesized_expression "(*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^'))" (( "(") (binary_expression "*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')" (binary_expression "*(int *)(puVar2 + -0x4960) < 0" (pointer_expression "*(int *)(puVar2 + -0x4960)" (* "*") (cast_expression "(int *)(puVar2 + -0x4960)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + -0x4960)" (( "(") (binary_expression "puVar2 + -0x4960" (identifier "puVar2") (+ "+") (number_literal "-0x4960")) () ")")))) (< "<") (number_literal "0")) (&& "&&") (parenthesized_expression "(cVar6 == '^')" (( "(") (binary_expression "cVar6 == '^'" (identifier "cVar6") (== "==") (char_literal "'^'" (' "'") (character "^") (' "'"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n        cVar6 = pcVar1[3];\n        pcVar4 = pcVar1 + 3;\n        if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }\n      }" ({ "{") (expression_statement "cVar6 = pcVar1[3];" (assignment_expression "cVar6 = pcVar1[3]" (identifier "cVar6") (= "=") (subscript_expression "pcVar1[3]" (identifier "pcVar1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "pcVar4 = pcVar1 + 3;" (assignment_expression "pcVar4 = pcVar1 + 3" (identifier "pcVar4") (= "=") (binary_expression "pcVar1 + 3" (identifier "pcVar1") (+ "+") (number_literal "3"))) (; ";")) (if_statement "if (cVar6 == ']') {\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }" (if "if") (parenthesized_expression "(cVar6 == ']')" (( "(") (binary_expression "cVar6 == ']'" (identifier "cVar6") (== "==") (char_literal "']'" (' "'") (character "]") (' "'"))) () ")")) (compound_statement "{\n          cVar6 = pcVar1[4];\n          goto LAB_0001f0b4;\n        }" ({ "{") (expression_statement "cVar6 = pcVar1[4];" (assignment_expression "cVar6 = pcVar1[4]" (identifier "cVar6") (= "=") (subscript_expression "pcVar1[4]" (identifier "pcVar1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (goto_statement "goto LAB_0001f0b4;" (goto "goto") (statement_identifier "LAB_0001f0b4") (; ";")) (} "}"))) (} "}")) (else_clause "else if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }" (else "else") (if_statement "if (cVar6 == ']') {\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }" (if "if") (parenthesized_expression "(cVar6 == ']')" (( "(") (binary_expression "cVar6 == ']'" (identifier "cVar6") (== "==") (char_literal "']'" (' "'") (character "]") (' "'"))) () ")")) (compound_statement "{\n        cVar6 = pcVar1[3];\nLAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;\n      }" ({ "{") (expression_statement "cVar6 = pcVar1[3];" (assignment_expression "cVar6 = pcVar1[3]" (identifier "cVar6") (= "=") (subscript_expression "pcVar1[3]" (identifier "pcVar1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (labeled_statement "LAB_0001f0b4:\n        pcVar4 = pcVar4 + 1;" (statement_identifier "LAB_0001f0b4") (: ":") (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" (identifier "pcVar4") (= "=") (binary_expression "pcVar4 + 1" (identifier "pcVar4") (+ "+") (number_literal "1"))) (; ";"))) (} "}"))))) (while_statement "while (cVar6 != ']') {\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }" (while "while") (parenthesized_expression "(cVar6 != ']')" (( "(") (binary_expression "cVar6 != ']'" (identifier "cVar6") (!= "!=") (char_literal "']'" (' "'") (character "]") (' "'"))) () ")")) (compound_statement "{\n        if (cVar6 == '\0') {\n          return param_1;\n        }\n        cVar6 = pcVar4[1];\n        pcVar4 = pcVar4 + 1;\n      }" ({ "{") (if_statement "if (cVar6 == '\0') {\n          return param_1;\n        }" (if "if") (parenthesized_expression "(cVar6 == '\0')" (( "(") (binary_expression "cVar6 == '\0'" (identifier "cVar6") (== "==") (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 "cVar6 = pcVar4[1];" (assignment_expression "cVar6 = pcVar4[1]" (identifier "cVar6") (= "=") (subscript_expression "pcVar4[1]" (identifier "pcVar4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" (identifier "pcVar4") (= "=") (binary_expression "pcVar4 + 1" (identifier "pcVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "iVar5 = (int)pcVar4[1];" (assignment_expression "iVar5 = (int)pcVar4[1]" (identifier "iVar5") (= "=") (cast_expression "(int)pcVar4[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "pcVar4[1]" (identifier "pcVar4") ([ "[") (number_literal "1") (] "]")))) (; ";")) (} "}")) (else_clause "else {\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }" (else "else") (compound_statement "{\n      if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }\n      iVar5 = (int)pcVar1[2];\n    }" ({ "{") (if_statement "if ((iVar5 - 0x21U & 0xff) < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }" (if "if") (parenthesized_expression "((iVar5 - 0x21U & 0xff) < 0x20)" (( "(") (binary_expression "(iVar5 - 0x21U & 0xff) < 0x20" (parenthesized_expression "(iVar5 - 0x21U & 0xff)" (( "(") (binary_expression "iVar5 - 0x21U & 0xff" (binary_expression "iVar5 - 0x21U" (identifier "iVar5") (- "-") (number_literal "0x21U")) (& "&") (number_literal "0xff")) () ")")) (< "<") (number_literal "0x20")) () ")")) (compound_statement "{\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }\n        if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }\n      }" ({ "{") (if_statement "if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }" (if "if") (parenthesized_expression "((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0)" (( "(") (binary_expression "(int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0" (cast_expression "(int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f)" (( "(") (binary_expression "(0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f" (parenthesized_expression "(0xc0000601U >> (iVar5 - 0x21U & 0x1f))" (( "(") (binary_expression "0xc0000601U >> (iVar5 - 0x21U & 0x1f)" (number_literal "0xc0000601U") (>> ">>") (parenthesized_expression "(iVar5 - 0x21U & 0x1f)" (( "(") (binary_expression "iVar5 - 0x21U & 0x1f" (binary_expression "iVar5 - 0x21U" (identifier "iVar5") (- "-") (number_literal "0x21U")) (& "&") (number_literal "0x1f")) () ")"))) () ")")) (<< "<<") (number_literal "0x1f")) () ")"))) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n          iVar5 = (int)pcVar1[2];\n          if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }\n          goto LAB_0001f078;\n        }" ({ "{") (expression_statement "iVar5 = (int)pcVar1[2];" (assignment_expression "iVar5 = (int)pcVar1[2]" (identifier "iVar5") (= "=") (cast_expression "(int)pcVar1[2]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "pcVar1[2]" (identifier "pcVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (iVar5 == 0x28) {\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }" (if "if") (parenthesized_expression "(iVar5 == 0x28)" (( "(") (binary_expression "iVar5 == 0x28" (identifier "iVar5") (== "==") (number_literal "0x28")) () ")")) (compound_statement "{\n            pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);\n            iVar5 = (int)pcVar4[1];\n          }" ({ "{") (expression_statement "pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2);" (assignment_expression "pcVar4 = (char *)FUN_0001ef70(pcVar1 + 2)" (identifier "pcVar4") (= "=") (cast_expression "(char *)FUN_0001ef70(pcVar1 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001ef70(pcVar1 + 2)" (identifier "FUN_0001ef70") (argument_list "(pcVar1 + 2)" (( "(") (binary_expression "pcVar1 + 2" (identifier "pcVar1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "iVar5 = (int)pcVar4[1];" (assignment_expression "iVar5 = (int)pcVar4[1]" (identifier "iVar5") (= "=") (cast_expression "(int)pcVar4[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "pcVar4[1]" (identifier "pcVar4") ([ "[") (number_literal "1") (] "]")))) (; ";")) (} "}"))) (goto_statement "goto LAB_0001f078;" (goto "goto") (statement_identifier "LAB_0001f078") (; ";")) (} "}"))) (if_statement "if (iVar5 == 0x29) {\n          return pcVar1 + 2;\n        }" (if "if") (parenthesized_expression "(iVar5 == 0x29)" (( "(") (binary_expression "iVar5 == 0x29" (identifier "iVar5") (== "==") (number_literal "0x29")) () ")")) (compound_statement "{\n          return pcVar1 + 2;\n        }" ({ "{") (return_statement "return pcVar1 + 2;" (return "return") (binary_expression "pcVar1 + 2" (identifier "pcVar1") (+ "+") (number_literal "2")) (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar5 = (int)pcVar1[2];" (assignment_expression "iVar5 = (int)pcVar1[2]" (identifier "iVar5") (= "=") (cast_expression "(int)pcVar1[2]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "pcVar1[2]" (identifier "pcVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (} "}")))) (labeled_statement "LAB_0001f078:\n    pcVar3 = pcVar4 + 1;" (statement_identifier "LAB_0001f078") (: ":") (expression_statement "pcVar3 = pcVar4 + 1;" (assignment_expression "pcVar3 = pcVar4 + 1" (identifier "pcVar3") (= "=") (binary_expression "pcVar4 + 1" (identifier "pcVar4") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "pcVar1 = pcVar4;" (assignment_expression "pcVar1 = pcVar4" (identifier "pcVar1") (= "=") (identifier "pcVar4")) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator 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)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_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: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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)))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) 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)))) (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)))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (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)))) (labeled_statement label: (statement_identifier) (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)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (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 (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) 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 (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))))))) (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal)))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (true))))))

char * MASKED(char *param_1)

{
  char *pcVar1;
  undefined *puVar2;
  char *pcVar3;
  char *pcVar4;
  int iVar5;
  char cVar6;
  undefined4 uVar7;
  undefined *puVar8;
  
  puVar2 = PTR_DAT_0004b178;
  iVar5 = (int)param_1[1];
  puVar8 = PTR_DAT_0004b1a0 + -0x7a9c;
  pcVar3 = param_1 + 1;
  pcVar1 = param_1;
  do {
    pcVar4 = pcVar3;
    if (iVar5 == 0) {
      return param_1;
    }
    if (iVar5 == 0x5b) {
      if (*(int *)(puVar2 + -0x4960) == 0) {
        iVar5 = (*(code *)PTR_getenv_0004b3f0)(puVar8);
        uVar7 = 0xffffffff;
        if (iVar5 != 0) {
          uVar7 = 1;
        }
        *(undefined4 *)(puVar2 + -0x4960) = uVar7;
      }
      cVar6 = pcVar1[2];
      pcVar4 = pcVar1 + 2;
      if ((cVar6 == '!') || ((*(int *)(puVar2 + -0x4960) < 0 && (cVar6 == '^')))) {
        cVar6 = pcVar1[3];
        pcVar4 = pcVar1 + 3;
        if (cVar6 == ']') {
          cVar6 = pcVar1[4];
          goto LAB_0001f0b4;
        }
      }
      else if (cVar6 == ']') {
        cVar6 = pcVar1[3];
LAB_0001f0b4:
        pcVar4 = pcVar4 + 1;
      }
      while (cVar6 != ']') {
        if (cVar6 == '\0') {
          return param_1;
        }
        cVar6 = pcVar4[1];
        pcVar4 = pcVar4 + 1;
      }
      iVar5 = (int)pcVar4[1];
    }
    else {
      if ((iVar5 - 0x21U & 0xff) < 0x20) {
        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {
          iVar5 = (int)pcVar1[2];
          if (iVar5 == 0x28) {
            pcVar4 = (char *)MASKED(pcVar1 + 2);
            iVar5 = (int)pcVar4[1];
          }
          goto LAB_0001f078;
        }
        if (iVar5 == 0x29) {
          return pcVar1 + 2;
        }
      }
      iVar5 = (int)pcVar1[2];
    }
LAB_0001f078:
    pcVar3 = pcVar4 + 1;
    pcVar1 = pcVar4;
  } while( true );
}

