
wchar_t * end_wpattern(wchar_t *pattern)

{
  wchar_t *pwVar1;
  undefined *puVar2;
  wchar_t *pwVar3;
  wchar_t *pwVar4;
  int iVar5;
  undefined4 uVar6;
  undefined *puVar7;
  
  puVar2 = PTR_DAT_000755a8;
  iVar5 = pattern[1];
  puVar7 = PTR_s_directory_000755b8 + -0x27f4;
  pwVar3 = pattern + 1;
  pwVar1 = pattern;
  do {
    pwVar4 = pwVar3;
    if (iVar5 == 0) {
      return pattern;
    }
    if (iVar5 == 0x5b) {
      if (*(int *)(puVar2 + 0x65b0) == 0) {
        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);
        uVar6 = 0xffffffff;
        if (iVar5 != 0) {
          uVar6 = 1;
        }
        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;
      }
      iVar5 = pwVar1[2];
      pwVar4 = pwVar1 + 2;
      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {
        iVar5 = pwVar1[3];
        pwVar4 = pwVar1 + 3;
        if (iVar5 == 0x5d) {
          iVar5 = pwVar1[4];
          goto LAB_0003bcd0;
        }
      }
      else if (iVar5 == 0x5d) {
        iVar5 = pwVar1[3];
LAB_0003bcd0:
        pwVar4 = pwVar4 + 1;
      }
      while (iVar5 != 0x5d) {
        if (iVar5 == 0) {
          return pattern;
        }
        iVar5 = pwVar4[1];
        pwVar4 = pwVar4 + 1;
      }
      iVar5 = pwVar4[1];
    }
    else {
      if (iVar5 - 0x21U < 0x20) {
        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {
          iVar5 = pwVar1[2];
          if (iVar5 == 0x28) {
            pwVar4 = end_wpattern(pwVar1 + 2);
            iVar5 = pwVar4[1];
          }
          goto LAB_0003bc94;
        }
        if (iVar5 == 0x29) {
          return pwVar1 + 2;
        }
      }
      iVar5 = pwVar1[2];
    }
LAB_0003bc94:
    pwVar3 = pwVar4 + 1;
    pwVar1 = pwVar4;
  } while( true );
}



int * FUN_0003bb90(int *param_1)

{
  int *piVar1;
  undefined *puVar2;
  int *piVar3;
  int *piVar4;
  int iVar5;
  undefined4 uVar6;
  undefined *puVar7;
  
  puVar2 = PTR_DAT_000755a8;
  iVar5 = param_1[1];
  puVar7 = PTR_s_directory_000755b8 + -0x27f4;
  piVar3 = param_1 + 1;
  piVar1 = param_1;
  do {
    piVar4 = piVar3;
    if (iVar5 == 0) {
      return param_1;
    }
    if (iVar5 == 0x5b) {
      if (*(int *)(puVar2 + 0x65b0) == 0) {
        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);
        uVar6 = 0xffffffff;
        if (iVar5 != 0) {
          uVar6 = 1;
        }
        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;
      }
      iVar5 = piVar1[2];
      piVar4 = piVar1 + 2;
      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {
        iVar5 = piVar1[3];
        piVar4 = piVar1 + 3;
        if (iVar5 == 0x5d) {
          iVar5 = piVar1[4];
          goto LAB_0003bcd0;
        }
      }
      else if (iVar5 == 0x5d) {
        iVar5 = piVar1[3];
LAB_0003bcd0:
        piVar4 = piVar4 + 1;
      }
      while (iVar5 != 0x5d) {
        if (iVar5 == 0) {
          return param_1;
        }
        iVar5 = piVar4[1];
        piVar4 = piVar4 + 1;
      }
      iVar5 = piVar4[1];
    }
    else {
      if (iVar5 - 0x21U < 0x20) {
        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {
          iVar5 = piVar1[2];
          if (iVar5 == 0x28) {
            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);
            iVar5 = piVar4[1];
          }
          goto LAB_0003bc94;
        }
        if (iVar5 == 0x29) {
          return piVar1 + 2;
        }
      }
      iVar5 = piVar1[2];
    }
LAB_0003bc94:
    piVar3 = piVar4 + 1;
    piVar1 = piVar4;
  } while( true );
}


lui gp,0x4
addiu gp,gp,0x19f0
addu gp,gp,t9
addiu sp,sp,-0x30
lw v1,0x4(a0)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
or s0,a0,zero
sw gp,0x10(sp)
addiu v0,s0,0x4
sw s4,0x28(sp)
sw s3,0x24(sp)
or s3,a0,zero
sw ra,0x2c(sp)
lw s1,-0x7c60(gp)
lw s2,-0x7fc8(gp)
lw s4,-0x7fd8(gp)
addiu s1,s1,-0x4470
beq v1,zero,0x0003bc9c
_addiu s2,s2,-0x27f4
li a0,0x5b
beq v1,a0,0x0003bc3c
_addiu a0,v1,-0x21
sltiu a1,a0,0x20
beq a1,zero,0x0003bcc0
_nop
lui a1,0xc000
addiu a1,a1,0x601
srlv a0,a1,a0
ext a0,a0,0x0,0x1
bne a0,zero,0x0003bcf8
_li a0,0x29
bne v1,a0,0x0003bcc0
_lw ra,0x2c(sp)
addiu v0,s0,0x8
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,0x65b0(s4)
beq v0,zero,0x0003bd20
_lw t9,-0x7a48(gp)
lw v1,0x8(s0)
li a0,0x21
beq v1,a0,0x0003bce0
_addiu v0,s0,0x8
lw a0,0x65b0(s4)
bltz a0,0x0003bcd8
_li a0,0x5e
li a0,0x5d
beq v1,a0,0x0003bccc
_nop
b 0x0003bc84
_li a1,0x5d
beq v1,zero,0x0003bc9c
_or v0,a0,zero
lw v1,0x0(a0)
bne v1,a1,0x0003bc78
_addiu a0,v0,0x4
lw v1,0x4(v0)
or s0,v0,zero
bne v1,zero,0x0003bbe4
_addiu v0,s0,0x4
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
lw v1,0x8(s0)
b 0x0003bc94
_or s0,v0,zero
lw v1,0x4(v0)
b 0x0003bc70
_addiu v0,v0,0x4
bne v1,a0,0x0003bc68
_li a0,0x5d
lw v1,0xc(s0)
li a0,0x5d
bne v1,a0,0x0003bc70
_addiu v0,s0,0xc
b 0x0003bcd0
_lw v1,0x4(v0)
lw v1,0x8(s0)
li a0,0x28
bne v1,a0,0x0003bc90
_or t9,s1,zero
bal 0x0003bb90
_addiu a0,s0,0x8
lw gp,0x10(sp)
or s0,v0,zero
b 0x0003bc94
_lw v1,0x4(v0)
jalr t9
_or a0,s2,zero
li v1,0x1
li a0,-0x1
lw gp,0x10(sp)
movn a0,v1,v0
b 0x0003bc48
_sw a0,0x65b0(s4)
(translation_unit "int * FUN_0003bb90(int *param_1)\n\n{\n  int *piVar1;\n  undefined *puVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  \n  puVar2 = PTR_DAT_000755a8;\n  iVar5 = param_1[1];\n  puVar7 = PTR_s_directory_000755b8 + -0x27f4;\n  piVar3 = param_1 + 1;\n  piVar1 = param_1;\n  do {\n    piVar4 = piVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = piVar1[2];\n      piVar4 = piVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }\n      iVar5 = piVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }\nLAB_0003bc94:\n    piVar3 = piVar4 + 1;\n    piVar1 = piVar4;\n  } while( true );\n}\n\n" (function_definition "int * FUN_0003bb90(int *param_1)\n\n{\n  int *piVar1;\n  undefined *puVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  \n  puVar2 = PTR_DAT_000755a8;\n  iVar5 = param_1[1];\n  puVar7 = PTR_s_directory_000755b8 + -0x27f4;\n  piVar3 = param_1 + 1;\n  piVar1 = param_1;\n  do {\n    piVar4 = piVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = piVar1[2];\n      piVar4 = piVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }\n      iVar5 = piVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }\nLAB_0003bc94:\n    piVar3 = piVar4 + 1;\n    piVar1 = piVar4;\n  } while( true );\n}" primitive_type (pointer_declarator "* FUN_0003bb90(int *param_1)" * (function_declarator "FUN_0003bb90(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  undefined *puVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  \n  puVar2 = PTR_DAT_000755a8;\n  iVar5 = param_1[1];\n  puVar7 = PTR_s_directory_000755b8 + -0x27f4;\n  piVar3 = param_1 + 1;\n  piVar1 = param_1;\n  do {\n    piVar4 = piVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = piVar1[2];\n      piVar4 = piVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }\n      iVar5 = piVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }\nLAB_0003bc94:\n    piVar3 = piVar4 + 1;\n    piVar1 = piVar4;\n  } while( true );\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (expression_statement "puVar2 = PTR_DAT_000755a8;" (assignment_expression "puVar2 = PTR_DAT_000755a8" identifier = identifier) ;) (expression_statement "iVar5 = param_1[1];" (assignment_expression "iVar5 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "puVar7 = PTR_s_directory_000755b8 + -0x27f4;" (assignment_expression "puVar7 = PTR_s_directory_000755b8 + -0x27f4" identifier = (binary_expression "PTR_s_directory_000755b8 + -0x27f4" identifier + number_literal)) ;) (expression_statement "piVar3 = param_1 + 1;" (assignment_expression "piVar3 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "piVar1 = param_1;" (assignment_expression "piVar1 = param_1" identifier = identifier) ;) (do_statement "do {\n    piVar4 = piVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = piVar1[2];\n      piVar4 = piVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }\n      iVar5 = piVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }\nLAB_0003bc94:\n    piVar3 = piVar4 + 1;\n    piVar1 = piVar4;\n  } while( true );" do (compound_statement "{\n    piVar4 = piVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = piVar1[2];\n      piVar4 = piVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }\n      iVar5 = piVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }\nLAB_0003bc94:\n    piVar3 = piVar4 + 1;\n    piVar1 = piVar4;\n  }" { (expression_statement "piVar4 = piVar3;" (assignment_expression "piVar4 = piVar3" 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 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = piVar1[2];\n      piVar4 = piVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }\n      iVar5 = piVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }" if (parenthesized_expression "(iVar5 == 0x5b)" ( (binary_expression "iVar5 == 0x5b" identifier == number_literal) )) (compound_statement "{\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = piVar1[2];\n      piVar4 = piVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }\n      iVar5 = piVar4[1];\n    }" { (if_statement "if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }" if (parenthesized_expression "(*(int *)(puVar2 + 0x65b0) == 0)" ( (binary_expression "*(int *)(puVar2 + 0x65b0) == 0" (pointer_expression "*(int *)(puVar2 + 0x65b0)" * (cast_expression "(int *)(puVar2 + 0x65b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x65b0)" ( (binary_expression "puVar2 + 0x65b0" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }" { (expression_statement "iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);" (assignment_expression "iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7)" identifier = (call_expression "(*(code *)PTR_getenv_00075b38)(puVar7)" (parenthesized_expression "(*(code *)PTR_getenv_00075b38)" ( (pointer_expression "*(code *)PTR_getenv_00075b38" * (cast_expression "(code *)PTR_getenv_00075b38" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar7)" ( identifier )))) ;) (expression_statement "uVar6 = 0xffffffff;" (assignment_expression "uVar6 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (iVar5 != 0) {\n          uVar6 = 1;\n        }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar6 = 1;\n        }" { (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) })) (expression_statement "*(undefined4 *)(puVar2 + 0x65b0) = uVar6;" (assignment_expression "*(undefined4 *)(puVar2 + 0x65b0) = uVar6" (pointer_expression "*(undefined4 *)(puVar2 + 0x65b0)" * (cast_expression "(undefined4 *)(puVar2 + 0x65b0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x65b0)" ( (binary_expression "puVar2 + 0x65b0" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar5 = piVar1[2];" (assignment_expression "iVar5 = piVar1[2]" identifier = (subscript_expression "piVar1[2]" identifier [ number_literal ])) ;) (expression_statement "piVar4 = piVar1 + 2;" (assignment_expression "piVar4 = piVar1 + 2" identifier = (binary_expression "piVar1 + 2" identifier + number_literal)) ;) (if_statement "if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }" if (parenthesized_expression "((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e))))" ( (binary_expression "(iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))" (parenthesized_expression "(iVar5 == 0x21)" ( (binary_expression "iVar5 == 0x21" identifier == number_literal) )) || (parenthesized_expression "((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))" ( (parenthesized_expression "(*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e))" ( (binary_expression "*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)" (binary_expression "*(int *)(puVar2 + 0x65b0) < 0" (pointer_expression "*(int *)(puVar2 + 0x65b0)" * (cast_expression "(int *)(puVar2 + 0x65b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x65b0)" ( (binary_expression "puVar2 + 0x65b0" identifier + number_literal) )))) < number_literal) && (parenthesized_expression "(iVar5 == 0x5e)" ( (binary_expression "iVar5 == 0x5e" identifier == number_literal) ))) )) ))) )) (compound_statement "{\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }" { (expression_statement "iVar5 = piVar1[3];" (assignment_expression "iVar5 = piVar1[3]" identifier = (subscript_expression "piVar1[3]" identifier [ number_literal ])) ;) (expression_statement "piVar4 = piVar1 + 3;" (assignment_expression "piVar4 = piVar1 + 3" identifier = (binary_expression "piVar1 + 3" identifier + number_literal)) ;) (if_statement "if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }" if (parenthesized_expression "(iVar5 == 0x5d)" ( (binary_expression "iVar5 == 0x5d" identifier == number_literal) )) (compound_statement "{\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }" { (expression_statement "iVar5 = piVar1[4];" (assignment_expression "iVar5 = piVar1[4]" identifier = (subscript_expression "piVar1[4]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_0003bcd0;" goto statement_identifier ;) })) }) (else_clause "else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }" else (if_statement "if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }" if (parenthesized_expression "(iVar5 == 0x5d)" ( (binary_expression "iVar5 == 0x5d" identifier == number_literal) )) (compound_statement "{\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }" { (expression_statement "iVar5 = piVar1[3];" (assignment_expression "iVar5 = piVar1[3]" identifier = (subscript_expression "piVar1[3]" identifier [ number_literal ])) ;) (labeled_statement "LAB_0003bcd0:\n        piVar4 = piVar4 + 1;" statement_identifier : (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;)) })))) (while_statement "while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }" while (parenthesized_expression "(iVar5 != 0x5d)" ( (binary_expression "iVar5 != 0x5d" identifier != number_literal) )) (compound_statement "{\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }" { (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 ;) })) (expression_statement "iVar5 = piVar4[1];" (assignment_expression "iVar5 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar5 = piVar4[1];" (assignment_expression "iVar5 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }" else (compound_statement "{\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }" { (if_statement "if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }" if (parenthesized_expression "(iVar5 - 0x21U < 0x20)" ( (binary_expression "iVar5 - 0x21U < 0x20" (binary_expression "iVar5 - 0x21U" identifier - number_literal) < number_literal) )) (compound_statement "{\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }" { (if_statement "if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\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 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }" { (expression_statement "iVar5 = piVar1[2];" (assignment_expression "iVar5 = piVar1[2]" identifier = (subscript_expression "piVar1[2]" identifier [ number_literal ])) ;) (if_statement "if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }" if (parenthesized_expression "(iVar5 == 0x28)" ( (binary_expression "iVar5 == 0x28" identifier == number_literal) )) (compound_statement "{\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }" { (expression_statement "piVar4 = (int *)FUN_0003bb90(piVar1 + 2);" (assignment_expression "piVar4 = (int *)FUN_0003bb90(piVar1 + 2)" identifier = (cast_expression "(int *)FUN_0003bb90(piVar1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003bb90(piVar1 + 2)" identifier (argument_list "(piVar1 + 2)" ( (binary_expression "piVar1 + 2" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = piVar4[1];" (assignment_expression "iVar5 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ;) })) (goto_statement "goto LAB_0003bc94;" goto statement_identifier ;) })) (if_statement "if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }" if (parenthesized_expression "(iVar5 == 0x29)" ( (binary_expression "iVar5 == 0x29" identifier == number_literal) )) (compound_statement "{\n          return piVar1 + 2;\n        }" { (return_statement "return piVar1 + 2;" return (binary_expression "piVar1 + 2" identifier + number_literal) ;) })) })) (expression_statement "iVar5 = piVar1[2];" (assignment_expression "iVar5 = piVar1[2]" identifier = (subscript_expression "piVar1[2]" identifier [ number_literal ])) ;) }))) (labeled_statement "LAB_0003bc94:\n    piVar3 = piVar4 + 1;" statement_identifier : (expression_statement "piVar3 = piVar4 + 1;" (assignment_expression "piVar3 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;)) (expression_statement "piVar1 = piVar4;" (assignment_expression "piVar1 = piVar4" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "wchar_t * end_wpattern(wchar_t *pattern)\n\n{\n  wchar_t *pwVar1;\n  undefined *puVar2;\n  wchar_t *pwVar3;\n  wchar_t *pwVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  \n  puVar2 = PTR_DAT_000755a8;\n  iVar5 = pattern[1];\n  puVar7 = PTR_s_directory_000755b8 + -0x27f4;\n  pwVar3 = pattern + 1;\n  pwVar1 = pattern;\n  do {\n    pwVar4 = pwVar3;\n    if (iVar5 == 0) {\n      return pattern;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = pwVar1[2];\n      pwVar4 = pwVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = pwVar1[3];\n        pwVar4 = pwVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = pwVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = pwVar1[3];\nLAB_0003bcd0:\n        pwVar4 = pwVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return pattern;\n        }\n        iVar5 = pwVar4[1];\n        pwVar4 = pwVar4 + 1;\n      }\n      iVar5 = pwVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = pwVar1[2];\n          if (iVar5 == 0x28) {\n            pwVar4 = end_wpattern(pwVar1 + 2);\n            iVar5 = pwVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return pwVar1 + 2;\n        }\n      }\n      iVar5 = pwVar1[2];\n    }\nLAB_0003bc94:\n    pwVar3 = pwVar4 + 1;\n    pwVar1 = pwVar4;\n  } while( true );\n}\n\n" (function_definition "wchar_t * end_wpattern(wchar_t *pattern)\n\n{\n  wchar_t *pwVar1;\n  undefined *puVar2;\n  wchar_t *pwVar3;\n  wchar_t *pwVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  \n  puVar2 = PTR_DAT_000755a8;\n  iVar5 = pattern[1];\n  puVar7 = PTR_s_directory_000755b8 + -0x27f4;\n  pwVar3 = pattern + 1;\n  pwVar1 = pattern;\n  do {\n    pwVar4 = pwVar3;\n    if (iVar5 == 0) {\n      return pattern;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = pwVar1[2];\n      pwVar4 = pwVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = pwVar1[3];\n        pwVar4 = pwVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = pwVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = pwVar1[3];\nLAB_0003bcd0:\n        pwVar4 = pwVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return pattern;\n        }\n        iVar5 = pwVar4[1];\n        pwVar4 = pwVar4 + 1;\n      }\n      iVar5 = pwVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = pwVar1[2];\n          if (iVar5 == 0x28) {\n            pwVar4 = end_wpattern(pwVar1 + 2);\n            iVar5 = pwVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return pwVar1 + 2;\n        }\n      }\n      iVar5 = pwVar1[2];\n    }\nLAB_0003bc94:\n    pwVar3 = pwVar4 + 1;\n    pwVar1 = pwVar4;\n  } while( true );\n}" type_identifier (pointer_declarator "* end_wpattern(wchar_t *pattern)" * (function_declarator "end_wpattern(wchar_t *pattern)" identifier (parameter_list "(wchar_t *pattern)" ( (parameter_declaration "wchar_t *pattern" type_identifier (pointer_declarator "*pattern" * identifier)) )))) (compound_statement "{\n  wchar_t *pwVar1;\n  undefined *puVar2;\n  wchar_t *pwVar3;\n  wchar_t *pwVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  \n  puVar2 = PTR_DAT_000755a8;\n  iVar5 = pattern[1];\n  puVar7 = PTR_s_directory_000755b8 + -0x27f4;\n  pwVar3 = pattern + 1;\n  pwVar1 = pattern;\n  do {\n    pwVar4 = pwVar3;\n    if (iVar5 == 0) {\n      return pattern;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = pwVar1[2];\n      pwVar4 = pwVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = pwVar1[3];\n        pwVar4 = pwVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = pwVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = pwVar1[3];\nLAB_0003bcd0:\n        pwVar4 = pwVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return pattern;\n        }\n        iVar5 = pwVar4[1];\n        pwVar4 = pwVar4 + 1;\n      }\n      iVar5 = pwVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = pwVar1[2];\n          if (iVar5 == 0x28) {\n            pwVar4 = end_wpattern(pwVar1 + 2);\n            iVar5 = pwVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return pwVar1 + 2;\n        }\n      }\n      iVar5 = pwVar1[2];\n    }\nLAB_0003bc94:\n    pwVar3 = pwVar4 + 1;\n    pwVar1 = pwVar4;\n  } while( true );\n}" { (declaration "wchar_t *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "wchar_t *pwVar3;" type_identifier (pointer_declarator "*pwVar3" * identifier) ;) (declaration "wchar_t *pwVar4;" type_identifier (pointer_declarator "*pwVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (expression_statement "puVar2 = PTR_DAT_000755a8;" (assignment_expression "puVar2 = PTR_DAT_000755a8" identifier = identifier) ;) (expression_statement "iVar5 = pattern[1];" (assignment_expression "iVar5 = pattern[1]" identifier = (subscript_expression "pattern[1]" identifier [ number_literal ])) ;) (expression_statement "puVar7 = PTR_s_directory_000755b8 + -0x27f4;" (assignment_expression "puVar7 = PTR_s_directory_000755b8 + -0x27f4" identifier = (binary_expression "PTR_s_directory_000755b8 + -0x27f4" identifier + number_literal)) ;) (expression_statement "pwVar3 = pattern + 1;" (assignment_expression "pwVar3 = pattern + 1" identifier = (binary_expression "pattern + 1" identifier + number_literal)) ;) (expression_statement "pwVar1 = pattern;" (assignment_expression "pwVar1 = pattern" identifier = identifier) ;) (do_statement "do {\n    pwVar4 = pwVar3;\n    if (iVar5 == 0) {\n      return pattern;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = pwVar1[2];\n      pwVar4 = pwVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = pwVar1[3];\n        pwVar4 = pwVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = pwVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = pwVar1[3];\nLAB_0003bcd0:\n        pwVar4 = pwVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return pattern;\n        }\n        iVar5 = pwVar4[1];\n        pwVar4 = pwVar4 + 1;\n      }\n      iVar5 = pwVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = pwVar1[2];\n          if (iVar5 == 0x28) {\n            pwVar4 = end_wpattern(pwVar1 + 2);\n            iVar5 = pwVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return pwVar1 + 2;\n        }\n      }\n      iVar5 = pwVar1[2];\n    }\nLAB_0003bc94:\n    pwVar3 = pwVar4 + 1;\n    pwVar1 = pwVar4;\n  } while( true );" do (compound_statement "{\n    pwVar4 = pwVar3;\n    if (iVar5 == 0) {\n      return pattern;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = pwVar1[2];\n      pwVar4 = pwVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = pwVar1[3];\n        pwVar4 = pwVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = pwVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = pwVar1[3];\nLAB_0003bcd0:\n        pwVar4 = pwVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return pattern;\n        }\n        iVar5 = pwVar4[1];\n        pwVar4 = pwVar4 + 1;\n      }\n      iVar5 = pwVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = pwVar1[2];\n          if (iVar5 == 0x28) {\n            pwVar4 = end_wpattern(pwVar1 + 2);\n            iVar5 = pwVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return pwVar1 + 2;\n        }\n      }\n      iVar5 = pwVar1[2];\n    }\nLAB_0003bc94:\n    pwVar3 = pwVar4 + 1;\n    pwVar1 = pwVar4;\n  }" { (expression_statement "pwVar4 = pwVar3;" (assignment_expression "pwVar4 = pwVar3" 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 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = pwVar1[2];\n      pwVar4 = pwVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = pwVar1[3];\n        pwVar4 = pwVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = pwVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = pwVar1[3];\nLAB_0003bcd0:\n        pwVar4 = pwVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return pattern;\n        }\n        iVar5 = pwVar4[1];\n        pwVar4 = pwVar4 + 1;\n      }\n      iVar5 = pwVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = pwVar1[2];\n          if (iVar5 == 0x28) {\n            pwVar4 = end_wpattern(pwVar1 + 2);\n            iVar5 = pwVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return pwVar1 + 2;\n        }\n      }\n      iVar5 = pwVar1[2];\n    }" if (parenthesized_expression "(iVar5 == 0x5b)" ( (binary_expression "iVar5 == 0x5b" identifier == number_literal) )) (compound_statement "{\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = pwVar1[2];\n      pwVar4 = pwVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = pwVar1[3];\n        pwVar4 = pwVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = pwVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = pwVar1[3];\nLAB_0003bcd0:\n        pwVar4 = pwVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return pattern;\n        }\n        iVar5 = pwVar4[1];\n        pwVar4 = pwVar4 + 1;\n      }\n      iVar5 = pwVar4[1];\n    }" { (if_statement "if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }" if (parenthesized_expression "(*(int *)(puVar2 + 0x65b0) == 0)" ( (binary_expression "*(int *)(puVar2 + 0x65b0) == 0" (pointer_expression "*(int *)(puVar2 + 0x65b0)" * (cast_expression "(int *)(puVar2 + 0x65b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x65b0)" ( (binary_expression "puVar2 + 0x65b0" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }" { (expression_statement "iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);" (assignment_expression "iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7)" identifier = (call_expression "(*(code *)PTR_getenv_00075b38)(puVar7)" (parenthesized_expression "(*(code *)PTR_getenv_00075b38)" ( (pointer_expression "*(code *)PTR_getenv_00075b38" * (cast_expression "(code *)PTR_getenv_00075b38" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar7)" ( identifier )))) ;) (expression_statement "uVar6 = 0xffffffff;" (assignment_expression "uVar6 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (iVar5 != 0) {\n          uVar6 = 1;\n        }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar6 = 1;\n        }" { (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) })) (expression_statement "*(undefined4 *)(puVar2 + 0x65b0) = uVar6;" (assignment_expression "*(undefined4 *)(puVar2 + 0x65b0) = uVar6" (pointer_expression "*(undefined4 *)(puVar2 + 0x65b0)" * (cast_expression "(undefined4 *)(puVar2 + 0x65b0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x65b0)" ( (binary_expression "puVar2 + 0x65b0" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar5 = pwVar1[2];" (assignment_expression "iVar5 = pwVar1[2]" identifier = (subscript_expression "pwVar1[2]" identifier [ number_literal ])) ;) (expression_statement "pwVar4 = pwVar1 + 2;" (assignment_expression "pwVar4 = pwVar1 + 2" identifier = (binary_expression "pwVar1 + 2" identifier + number_literal)) ;) (if_statement "if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = pwVar1[3];\n        pwVar4 = pwVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = pwVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = pwVar1[3];\nLAB_0003bcd0:\n        pwVar4 = pwVar4 + 1;\n      }" if (parenthesized_expression "((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e))))" ( (binary_expression "(iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))" (parenthesized_expression "(iVar5 == 0x21)" ( (binary_expression "iVar5 == 0x21" identifier == number_literal) )) || (parenthesized_expression "((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))" ( (parenthesized_expression "(*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e))" ( (binary_expression "*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)" (binary_expression "*(int *)(puVar2 + 0x65b0) < 0" (pointer_expression "*(int *)(puVar2 + 0x65b0)" * (cast_expression "(int *)(puVar2 + 0x65b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x65b0)" ( (binary_expression "puVar2 + 0x65b0" identifier + number_literal) )))) < number_literal) && (parenthesized_expression "(iVar5 == 0x5e)" ( (binary_expression "iVar5 == 0x5e" identifier == number_literal) ))) )) ))) )) (compound_statement "{\n        iVar5 = pwVar1[3];\n        pwVar4 = pwVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = pwVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }" { (expression_statement "iVar5 = pwVar1[3];" (assignment_expression "iVar5 = pwVar1[3]" identifier = (subscript_expression "pwVar1[3]" identifier [ number_literal ])) ;) (expression_statement "pwVar4 = pwVar1 + 3;" (assignment_expression "pwVar4 = pwVar1 + 3" identifier = (binary_expression "pwVar1 + 3" identifier + number_literal)) ;) (if_statement "if (iVar5 == 0x5d) {\n          iVar5 = pwVar1[4];\n          goto LAB_0003bcd0;\n        }" if (parenthesized_expression "(iVar5 == 0x5d)" ( (binary_expression "iVar5 == 0x5d" identifier == number_literal) )) (compound_statement "{\n          iVar5 = pwVar1[4];\n          goto LAB_0003bcd0;\n        }" { (expression_statement "iVar5 = pwVar1[4];" (assignment_expression "iVar5 = pwVar1[4]" identifier = (subscript_expression "pwVar1[4]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_0003bcd0;" goto statement_identifier ;) })) }) (else_clause "else if (iVar5 == 0x5d) {\n        iVar5 = pwVar1[3];\nLAB_0003bcd0:\n        pwVar4 = pwVar4 + 1;\n      }" else (if_statement "if (iVar5 == 0x5d) {\n        iVar5 = pwVar1[3];\nLAB_0003bcd0:\n        pwVar4 = pwVar4 + 1;\n      }" if (parenthesized_expression "(iVar5 == 0x5d)" ( (binary_expression "iVar5 == 0x5d" identifier == number_literal) )) (compound_statement "{\n        iVar5 = pwVar1[3];\nLAB_0003bcd0:\n        pwVar4 = pwVar4 + 1;\n      }" { (expression_statement "iVar5 = pwVar1[3];" (assignment_expression "iVar5 = pwVar1[3]" identifier = (subscript_expression "pwVar1[3]" identifier [ number_literal ])) ;) (labeled_statement "LAB_0003bcd0:\n        pwVar4 = pwVar4 + 1;" statement_identifier : (expression_statement "pwVar4 = pwVar4 + 1;" (assignment_expression "pwVar4 = pwVar4 + 1" identifier = (binary_expression "pwVar4 + 1" identifier + number_literal)) ;)) })))) (while_statement "while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return pattern;\n        }\n        iVar5 = pwVar4[1];\n        pwVar4 = pwVar4 + 1;\n      }" while (parenthesized_expression "(iVar5 != 0x5d)" ( (binary_expression "iVar5 != 0x5d" identifier != number_literal) )) (compound_statement "{\n        if (iVar5 == 0) {\n          return pattern;\n        }\n        iVar5 = pwVar4[1];\n        pwVar4 = pwVar4 + 1;\n      }" { (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 ;) })) (expression_statement "iVar5 = pwVar4[1];" (assignment_expression "iVar5 = pwVar4[1]" identifier = (subscript_expression "pwVar4[1]" identifier [ number_literal ])) ;) (expression_statement "pwVar4 = pwVar4 + 1;" (assignment_expression "pwVar4 = pwVar4 + 1" identifier = (binary_expression "pwVar4 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar5 = pwVar4[1];" (assignment_expression "iVar5 = pwVar4[1]" identifier = (subscript_expression "pwVar4[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = pwVar1[2];\n          if (iVar5 == 0x28) {\n            pwVar4 = end_wpattern(pwVar1 + 2);\n            iVar5 = pwVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return pwVar1 + 2;\n        }\n      }\n      iVar5 = pwVar1[2];\n    }" else (compound_statement "{\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = pwVar1[2];\n          if (iVar5 == 0x28) {\n            pwVar4 = end_wpattern(pwVar1 + 2);\n            iVar5 = pwVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return pwVar1 + 2;\n        }\n      }\n      iVar5 = pwVar1[2];\n    }" { (if_statement "if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = pwVar1[2];\n          if (iVar5 == 0x28) {\n            pwVar4 = end_wpattern(pwVar1 + 2);\n            iVar5 = pwVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return pwVar1 + 2;\n        }\n      }" if (parenthesized_expression "(iVar5 - 0x21U < 0x20)" ( (binary_expression "iVar5 - 0x21U < 0x20" (binary_expression "iVar5 - 0x21U" identifier - number_literal) < number_literal) )) (compound_statement "{\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = pwVar1[2];\n          if (iVar5 == 0x28) {\n            pwVar4 = end_wpattern(pwVar1 + 2);\n            iVar5 = pwVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return pwVar1 + 2;\n        }\n      }" { (if_statement "if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = pwVar1[2];\n          if (iVar5 == 0x28) {\n            pwVar4 = end_wpattern(pwVar1 + 2);\n            iVar5 = pwVar4[1];\n          }\n          goto LAB_0003bc94;\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 = pwVar1[2];\n          if (iVar5 == 0x28) {\n            pwVar4 = end_wpattern(pwVar1 + 2);\n            iVar5 = pwVar4[1];\n          }\n          goto LAB_0003bc94;\n        }" { (expression_statement "iVar5 = pwVar1[2];" (assignment_expression "iVar5 = pwVar1[2]" identifier = (subscript_expression "pwVar1[2]" identifier [ number_literal ])) ;) (if_statement "if (iVar5 == 0x28) {\n            pwVar4 = end_wpattern(pwVar1 + 2);\n            iVar5 = pwVar4[1];\n          }" if (parenthesized_expression "(iVar5 == 0x28)" ( (binary_expression "iVar5 == 0x28" identifier == number_literal) )) (compound_statement "{\n            pwVar4 = end_wpattern(pwVar1 + 2);\n            iVar5 = pwVar4[1];\n          }" { (expression_statement "pwVar4 = end_wpattern(pwVar1 + 2);" (assignment_expression "pwVar4 = end_wpattern(pwVar1 + 2)" identifier = (call_expression "end_wpattern(pwVar1 + 2)" identifier (argument_list "(pwVar1 + 2)" ( (binary_expression "pwVar1 + 2" identifier + number_literal) )))) ;) (expression_statement "iVar5 = pwVar4[1];" (assignment_expression "iVar5 = pwVar4[1]" identifier = (subscript_expression "pwVar4[1]" identifier [ number_literal ])) ;) })) (goto_statement "goto LAB_0003bc94;" goto statement_identifier ;) })) (if_statement "if (iVar5 == 0x29) {\n          return pwVar1 + 2;\n        }" if (parenthesized_expression "(iVar5 == 0x29)" ( (binary_expression "iVar5 == 0x29" identifier == number_literal) )) (compound_statement "{\n          return pwVar1 + 2;\n        }" { (return_statement "return pwVar1 + 2;" return (binary_expression "pwVar1 + 2" identifier + number_literal) ;) })) })) (expression_statement "iVar5 = pwVar1[2];" (assignment_expression "iVar5 = pwVar1[2]" identifier = (subscript_expression "pwVar1[2]" identifier [ number_literal ])) ;) }))) (labeled_statement "LAB_0003bc94:\n    pwVar3 = pwVar4 + 1;" statement_identifier : (expression_statement "pwVar3 = pwVar4 + 1;" (assignment_expression "pwVar3 = pwVar4 + 1" identifier = (binary_expression "pwVar4 + 1" identifier + number_literal)) ;)) (expression_statement "pwVar1 = pwVar4;" (assignment_expression "pwVar1 = pwVar4" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int * FUN_0003bb90(int *param_1)\n\n{\n  int *piVar1;\n  undefined *puVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  \n  puVar2 = PTR_DAT_000755a8;\n  iVar5 = param_1[1];\n  puVar7 = PTR_s_directory_000755b8 + -0x27f4;\n  piVar3 = param_1 + 1;\n  piVar1 = param_1;\n  do {\n    piVar4 = piVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = piVar1[2];\n      piVar4 = piVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }\n      iVar5 = piVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }\nLAB_0003bc94:\n    piVar3 = piVar4 + 1;\n    piVar1 = piVar4;\n  } while( true );\n}\n\n" (function_definition "int * FUN_0003bb90(int *param_1)\n\n{\n  int *piVar1;\n  undefined *puVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  \n  puVar2 = PTR_DAT_000755a8;\n  iVar5 = param_1[1];\n  puVar7 = PTR_s_directory_000755b8 + -0x27f4;\n  piVar3 = param_1 + 1;\n  piVar1 = param_1;\n  do {\n    piVar4 = piVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = piVar1[2];\n      piVar4 = piVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }\n      iVar5 = piVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }\nLAB_0003bc94:\n    piVar3 = piVar4 + 1;\n    piVar1 = piVar4;\n  } while( true );\n}" primitive_type (pointer_declarator "* FUN_0003bb90(int *param_1)" * (function_declarator "FUN_0003bb90(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  undefined *puVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  \n  puVar2 = PTR_DAT_000755a8;\n  iVar5 = param_1[1];\n  puVar7 = PTR_s_directory_000755b8 + -0x27f4;\n  piVar3 = param_1 + 1;\n  piVar1 = param_1;\n  do {\n    piVar4 = piVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = piVar1[2];\n      piVar4 = piVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }\n      iVar5 = piVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }\nLAB_0003bc94:\n    piVar3 = piVar4 + 1;\n    piVar1 = piVar4;\n  } while( true );\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (expression_statement "puVar2 = PTR_DAT_000755a8;" (assignment_expression "puVar2 = PTR_DAT_000755a8" identifier = identifier) ;) (expression_statement "iVar5 = param_1[1];" (assignment_expression "iVar5 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "puVar7 = PTR_s_directory_000755b8 + -0x27f4;" (assignment_expression "puVar7 = PTR_s_directory_000755b8 + -0x27f4" identifier = (binary_expression "PTR_s_directory_000755b8 + -0x27f4" identifier + number_literal)) ;) (expression_statement "piVar3 = param_1 + 1;" (assignment_expression "piVar3 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "piVar1 = param_1;" (assignment_expression "piVar1 = param_1" identifier = identifier) ;) (do_statement "do {\n    piVar4 = piVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = piVar1[2];\n      piVar4 = piVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }\n      iVar5 = piVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }\nLAB_0003bc94:\n    piVar3 = piVar4 + 1;\n    piVar1 = piVar4;\n  } while( true );" do (compound_statement "{\n    piVar4 = piVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = piVar1[2];\n      piVar4 = piVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }\n      iVar5 = piVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }\nLAB_0003bc94:\n    piVar3 = piVar4 + 1;\n    piVar1 = piVar4;\n  }" { (expression_statement "piVar4 = piVar3;" (assignment_expression "piVar4 = piVar3" 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 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = piVar1[2];\n      piVar4 = piVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }\n      iVar5 = piVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }" if (parenthesized_expression "(iVar5 == 0x5b)" ( (binary_expression "iVar5 == 0x5b" identifier == number_literal) )) (compound_statement "{\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = piVar1[2];\n      piVar4 = piVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }\n      iVar5 = piVar4[1];\n    }" { (if_statement "if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }" if (parenthesized_expression "(*(int *)(puVar2 + 0x65b0) == 0)" ( (binary_expression "*(int *)(puVar2 + 0x65b0) == 0" (pointer_expression "*(int *)(puVar2 + 0x65b0)" * (cast_expression "(int *)(puVar2 + 0x65b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x65b0)" ( (binary_expression "puVar2 + 0x65b0" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }" { (expression_statement "iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);" (assignment_expression "iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7)" identifier = (call_expression "(*(code *)PTR_getenv_00075b38)(puVar7)" (parenthesized_expression "(*(code *)PTR_getenv_00075b38)" ( (pointer_expression "*(code *)PTR_getenv_00075b38" * (cast_expression "(code *)PTR_getenv_00075b38" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar7)" ( identifier )))) ;) (expression_statement "uVar6 = 0xffffffff;" (assignment_expression "uVar6 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (iVar5 != 0) {\n          uVar6 = 1;\n        }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar6 = 1;\n        }" { (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) })) (expression_statement "*(undefined4 *)(puVar2 + 0x65b0) = uVar6;" (assignment_expression "*(undefined4 *)(puVar2 + 0x65b0) = uVar6" (pointer_expression "*(undefined4 *)(puVar2 + 0x65b0)" * (cast_expression "(undefined4 *)(puVar2 + 0x65b0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x65b0)" ( (binary_expression "puVar2 + 0x65b0" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar5 = piVar1[2];" (assignment_expression "iVar5 = piVar1[2]" identifier = (subscript_expression "piVar1[2]" identifier [ number_literal ])) ;) (expression_statement "piVar4 = piVar1 + 2;" (assignment_expression "piVar4 = piVar1 + 2" identifier = (binary_expression "piVar1 + 2" identifier + number_literal)) ;) (if_statement "if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }" if (parenthesized_expression "((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e))))" ( (binary_expression "(iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))" (parenthesized_expression "(iVar5 == 0x21)" ( (binary_expression "iVar5 == 0x21" identifier == number_literal) )) || (parenthesized_expression "((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))" ( (parenthesized_expression "(*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e))" ( (binary_expression "*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)" (binary_expression "*(int *)(puVar2 + 0x65b0) < 0" (pointer_expression "*(int *)(puVar2 + 0x65b0)" * (cast_expression "(int *)(puVar2 + 0x65b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x65b0)" ( (binary_expression "puVar2 + 0x65b0" identifier + number_literal) )))) < number_literal) && (parenthesized_expression "(iVar5 == 0x5e)" ( (binary_expression "iVar5 == 0x5e" identifier == number_literal) ))) )) ))) )) (compound_statement "{\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }" { (expression_statement "iVar5 = piVar1[3];" (assignment_expression "iVar5 = piVar1[3]" identifier = (subscript_expression "piVar1[3]" identifier [ number_literal ])) ;) (expression_statement "piVar4 = piVar1 + 3;" (assignment_expression "piVar4 = piVar1 + 3" identifier = (binary_expression "piVar1 + 3" identifier + number_literal)) ;) (if_statement "if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }" if (parenthesized_expression "(iVar5 == 0x5d)" ( (binary_expression "iVar5 == 0x5d" identifier == number_literal) )) (compound_statement "{\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }" { (expression_statement "iVar5 = piVar1[4];" (assignment_expression "iVar5 = piVar1[4]" identifier = (subscript_expression "piVar1[4]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_0003bcd0;" goto statement_identifier ;) })) }) (else_clause "else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }" else (if_statement "if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }" if (parenthesized_expression "(iVar5 == 0x5d)" ( (binary_expression "iVar5 == 0x5d" identifier == number_literal) )) (compound_statement "{\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }" { (expression_statement "iVar5 = piVar1[3];" (assignment_expression "iVar5 = piVar1[3]" identifier = (subscript_expression "piVar1[3]" identifier [ number_literal ])) ;) (labeled_statement "LAB_0003bcd0:\n        piVar4 = piVar4 + 1;" statement_identifier : (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;)) })))) (while_statement "while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }" while (parenthesized_expression "(iVar5 != 0x5d)" ( (binary_expression "iVar5 != 0x5d" identifier != number_literal) )) (compound_statement "{\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }" { (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 ;) })) (expression_statement "iVar5 = piVar4[1];" (assignment_expression "iVar5 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar5 = piVar4[1];" (assignment_expression "iVar5 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }" else (compound_statement "{\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }" { (if_statement "if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }" if (parenthesized_expression "(iVar5 - 0x21U < 0x20)" ( (binary_expression "iVar5 - 0x21U < 0x20" (binary_expression "iVar5 - 0x21U" identifier - number_literal) < number_literal) )) (compound_statement "{\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }" { (if_statement "if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\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 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }" { (expression_statement "iVar5 = piVar1[2];" (assignment_expression "iVar5 = piVar1[2]" identifier = (subscript_expression "piVar1[2]" identifier [ number_literal ])) ;) (if_statement "if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }" if (parenthesized_expression "(iVar5 == 0x28)" ( (binary_expression "iVar5 == 0x28" identifier == number_literal) )) (compound_statement "{\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }" { (expression_statement "piVar4 = (int *)FUN_0003bb90(piVar1 + 2);" (assignment_expression "piVar4 = (int *)FUN_0003bb90(piVar1 + 2)" identifier = (cast_expression "(int *)FUN_0003bb90(piVar1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003bb90(piVar1 + 2)" identifier (argument_list "(piVar1 + 2)" ( (binary_expression "piVar1 + 2" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = piVar4[1];" (assignment_expression "iVar5 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ;) })) (goto_statement "goto LAB_0003bc94;" goto statement_identifier ;) })) (if_statement "if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }" if (parenthesized_expression "(iVar5 == 0x29)" ( (binary_expression "iVar5 == 0x29" identifier == number_literal) )) (compound_statement "{\n          return piVar1 + 2;\n        }" { (return_statement "return piVar1 + 2;" return (binary_expression "piVar1 + 2" identifier + number_literal) ;) })) })) (expression_statement "iVar5 = piVar1[2];" (assignment_expression "iVar5 = piVar1[2]" identifier = (subscript_expression "piVar1[2]" identifier [ number_literal ])) ;) }))) (labeled_statement "LAB_0003bc94:\n    piVar3 = piVar4 + 1;" statement_identifier : (expression_statement "piVar3 = piVar4 + 1;" (assignment_expression "piVar3 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;)) (expression_statement "piVar1 = piVar4;" (assignment_expression "piVar1 = piVar4" 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 (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (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 == LIT) )) || (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 == LIT) ))) )) ))) )) (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 == LIT) )) (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 == LIT) )) (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 != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (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 = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - 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 = (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 = (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 = (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 "int * FUN_0003bb90(int *param_1)\n\n{\n  int *piVar1;\n  undefined *puVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  \n  puVar2 = PTR_DAT_000755a8;\n  iVar5 = param_1[1];\n  puVar7 = PTR_s_directory_000755b8 + -0x27f4;\n  piVar3 = param_1 + 1;\n  piVar1 = param_1;\n  do {\n    piVar4 = piVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = piVar1[2];\n      piVar4 = piVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }\n      iVar5 = piVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }\nLAB_0003bc94:\n    piVar3 = piVar4 + 1;\n    piVar1 = piVar4;\n  } while( true );\n}" (primitive_type "int") (pointer_declarator "* FUN_0003bb90(int *param_1)" (* "*") (function_declarator "FUN_0003bb90(int *param_1)" (identifier "FUN_0003bb90") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  int *piVar1;\n  undefined *puVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  \n  puVar2 = PTR_DAT_000755a8;\n  iVar5 = param_1[1];\n  puVar7 = PTR_s_directory_000755b8 + -0x27f4;\n  piVar3 = param_1 + 1;\n  piVar1 = param_1;\n  do {\n    piVar4 = piVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = piVar1[2];\n      piVar4 = piVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }\n      iVar5 = piVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }\nLAB_0003bc94:\n    piVar3 = piVar4 + 1;\n    piVar1 = piVar4;\n  } while( true );\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined *puVar7;" (type_identifier "undefined") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (expression_statement "puVar2 = PTR_DAT_000755a8;" (assignment_expression "puVar2 = PTR_DAT_000755a8" (identifier "puVar2") (= "=") (identifier "PTR_DAT_000755a8")) (; ";")) (expression_statement "iVar5 = param_1[1];" (assignment_expression "iVar5 = param_1[1]" (identifier "iVar5") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar7 = PTR_s_directory_000755b8 + -0x27f4;" (assignment_expression "puVar7 = PTR_s_directory_000755b8 + -0x27f4" (identifier "puVar7") (= "=") (binary_expression "PTR_s_directory_000755b8 + -0x27f4" (identifier "PTR_s_directory_000755b8") (+ "+") (number_literal "-0x27f4"))) (; ";")) (expression_statement "piVar3 = param_1 + 1;" (assignment_expression "piVar3 = param_1 + 1" (identifier "piVar3") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar1 = param_1;" (assignment_expression "piVar1 = param_1" (identifier "piVar1") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n    piVar4 = piVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = piVar1[2];\n      piVar4 = piVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }\n      iVar5 = piVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }\nLAB_0003bc94:\n    piVar3 = piVar4 + 1;\n    piVar1 = piVar4;\n  } while( true );" (do "do") (compound_statement "{\n    piVar4 = piVar3;\n    if (iVar5 == 0) {\n      return param_1;\n    }\n    if (iVar5 == 0x5b) {\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = piVar1[2];\n      piVar4 = piVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }\n      iVar5 = piVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }\nLAB_0003bc94:\n    piVar3 = piVar4 + 1;\n    piVar1 = piVar4;\n  }" ({ "{") (expression_statement "piVar4 = piVar3;" (assignment_expression "piVar4 = piVar3" (identifier "piVar4") (= "=") (identifier "piVar3")) (; ";")) (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 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = piVar1[2];\n      piVar4 = piVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }\n      iVar5 = piVar4[1];\n    }\n    else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }" (if "if") (parenthesized_expression "(iVar5 == 0x5b)" (( "(") (binary_expression "iVar5 == 0x5b" (identifier "iVar5") (== "==") (number_literal "0x5b")) () ")")) (compound_statement "{\n      if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }\n      iVar5 = piVar1[2];\n      piVar4 = piVar1 + 2;\n      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }\n      while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }\n      iVar5 = piVar4[1];\n    }" ({ "{") (if_statement "if (*(int *)(puVar2 + 0x65b0) == 0) {\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }" (if "if") (parenthesized_expression "(*(int *)(puVar2 + 0x65b0) == 0)" (( "(") (binary_expression "*(int *)(puVar2 + 0x65b0) == 0" (pointer_expression "*(int *)(puVar2 + 0x65b0)" (* "*") (cast_expression "(int *)(puVar2 + 0x65b0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x65b0)" (( "(") (binary_expression "puVar2 + 0x65b0" (identifier "puVar2") (+ "+") (number_literal "0x65b0")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);\n        uVar6 = 0xffffffff;\n        if (iVar5 != 0) {\n          uVar6 = 1;\n        }\n        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;\n      }" ({ "{") (expression_statement "iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);" (assignment_expression "iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_getenv_00075b38)(puVar7)" (parenthesized_expression "(*(code *)PTR_getenv_00075b38)" (( "(") (pointer_expression "*(code *)PTR_getenv_00075b38" (* "*") (cast_expression "(code *)PTR_getenv_00075b38" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getenv_00075b38"))) () ")")) (argument_list "(puVar7)" (( "(") (identifier "puVar7") () ")")))) (; ";")) (expression_statement "uVar6 = 0xffffffff;" (assignment_expression "uVar6 = 0xffffffff" (identifier "uVar6") (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if (iVar5 != 0) {\n          uVar6 = 1;\n        }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar6 = 1;\n        }" ({ "{") (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" (identifier "uVar6") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(puVar2 + 0x65b0) = uVar6;" (assignment_expression "*(undefined4 *)(puVar2 + 0x65b0) = uVar6" (pointer_expression "*(undefined4 *)(puVar2 + 0x65b0)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 0x65b0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x65b0)" (( "(") (binary_expression "puVar2 + 0x65b0" (identifier "puVar2") (+ "+") (number_literal "0x65b0")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (} "}"))) (expression_statement "iVar5 = piVar1[2];" (assignment_expression "iVar5 = piVar1[2]" (identifier "iVar5") (= "=") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "piVar4 = piVar1 + 2;" (assignment_expression "piVar4 = piVar1 + 2" (identifier "piVar4") (= "=") (binary_expression "piVar1 + 2" (identifier "piVar1") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }\n      else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }" (if "if") (parenthesized_expression "((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e))))" (( "(") (binary_expression "(iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))" (parenthesized_expression "(iVar5 == 0x21)" (( "(") (binary_expression "iVar5 == 0x21" (identifier "iVar5") (== "==") (number_literal "0x21")) () ")")) (|| "||") (parenthesized_expression "((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))" (( "(") (parenthesized_expression "(*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e))" (( "(") (binary_expression "*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)" (binary_expression "*(int *)(puVar2 + 0x65b0) < 0" (pointer_expression "*(int *)(puVar2 + 0x65b0)" (* "*") (cast_expression "(int *)(puVar2 + 0x65b0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x65b0)" (( "(") (binary_expression "puVar2 + 0x65b0" (identifier "puVar2") (+ "+") (number_literal "0x65b0")) () ")")))) (< "<") (number_literal "0")) (&& "&&") (parenthesized_expression "(iVar5 == 0x5e)" (( "(") (binary_expression "iVar5 == 0x5e" (identifier "iVar5") (== "==") (number_literal "0x5e")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n        iVar5 = piVar1[3];\n        piVar4 = piVar1 + 3;\n        if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }\n      }" ({ "{") (expression_statement "iVar5 = piVar1[3];" (assignment_expression "iVar5 = piVar1[3]" (identifier "iVar5") (= "=") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "piVar4 = piVar1 + 3;" (assignment_expression "piVar4 = piVar1 + 3" (identifier "piVar4") (= "=") (binary_expression "piVar1 + 3" (identifier "piVar1") (+ "+") (number_literal "3"))) (; ";")) (if_statement "if (iVar5 == 0x5d) {\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }" (if "if") (parenthesized_expression "(iVar5 == 0x5d)" (( "(") (binary_expression "iVar5 == 0x5d" (identifier "iVar5") (== "==") (number_literal "0x5d")) () ")")) (compound_statement "{\n          iVar5 = piVar1[4];\n          goto LAB_0003bcd0;\n        }" ({ "{") (expression_statement "iVar5 = piVar1[4];" (assignment_expression "iVar5 = piVar1[4]" (identifier "iVar5") (= "=") (subscript_expression "piVar1[4]" (identifier "piVar1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (goto_statement "goto LAB_0003bcd0;" (goto "goto") (statement_identifier "LAB_0003bcd0") (; ";")) (} "}"))) (} "}")) (else_clause "else if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }" (else "else") (if_statement "if (iVar5 == 0x5d) {\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }" (if "if") (parenthesized_expression "(iVar5 == 0x5d)" (( "(") (binary_expression "iVar5 == 0x5d" (identifier "iVar5") (== "==") (number_literal "0x5d")) () ")")) (compound_statement "{\n        iVar5 = piVar1[3];\nLAB_0003bcd0:\n        piVar4 = piVar4 + 1;\n      }" ({ "{") (expression_statement "iVar5 = piVar1[3];" (assignment_expression "iVar5 = piVar1[3]" (identifier "iVar5") (= "=") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (labeled_statement "LAB_0003bcd0:\n        piVar4 = piVar4 + 1;" (statement_identifier "LAB_0003bcd0") (: ":") (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 1" (identifier "piVar4") (+ "+") (number_literal "1"))) (; ";"))) (} "}"))))) (while_statement "while (iVar5 != 0x5d) {\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }" (while "while") (parenthesized_expression "(iVar5 != 0x5d)" (( "(") (binary_expression "iVar5 != 0x5d" (identifier "iVar5") (!= "!=") (number_literal "0x5d")) () ")")) (compound_statement "{\n        if (iVar5 == 0) {\n          return param_1;\n        }\n        iVar5 = piVar4[1];\n        piVar4 = piVar4 + 1;\n      }" ({ "{") (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") (; ";")) (} "}"))) (expression_statement "iVar5 = piVar4[1];" (assignment_expression "iVar5 = piVar4[1]" (identifier "iVar5") (= "=") (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 1" (identifier "piVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "iVar5 = piVar4[1];" (assignment_expression "iVar5 = piVar4[1]" (identifier "iVar5") (= "=") (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }" (else "else") (compound_statement "{\n      if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }\n      iVar5 = piVar1[2];\n    }" ({ "{") (if_statement "if (iVar5 - 0x21U < 0x20) {\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }" (if "if") (parenthesized_expression "(iVar5 - 0x21U < 0x20)" (( "(") (binary_expression "iVar5 - 0x21U < 0x20" (binary_expression "iVar5 - 0x21U" (identifier "iVar5") (- "-") (number_literal "0x21U")) (< "<") (number_literal "0x20")) () ")")) (compound_statement "{\n        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }\n        if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }\n      }" ({ "{") (if_statement "if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {\n          iVar5 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\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 = piVar1[2];\n          if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }\n          goto LAB_0003bc94;\n        }" ({ "{") (expression_statement "iVar5 = piVar1[2];" (assignment_expression "iVar5 = piVar1[2]" (identifier "iVar5") (= "=") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (iVar5 == 0x28) {\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }" (if "if") (parenthesized_expression "(iVar5 == 0x28)" (( "(") (binary_expression "iVar5 == 0x28" (identifier "iVar5") (== "==") (number_literal "0x28")) () ")")) (compound_statement "{\n            piVar4 = (int *)FUN_0003bb90(piVar1 + 2);\n            iVar5 = piVar4[1];\n          }" ({ "{") (expression_statement "piVar4 = (int *)FUN_0003bb90(piVar1 + 2);" (assignment_expression "piVar4 = (int *)FUN_0003bb90(piVar1 + 2)" (identifier "piVar4") (= "=") (cast_expression "(int *)FUN_0003bb90(piVar1 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003bb90(piVar1 + 2)" (identifier "FUN_0003bb90") (argument_list "(piVar1 + 2)" (( "(") (binary_expression "piVar1 + 2" (identifier "piVar1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "iVar5 = piVar4[1];" (assignment_expression "iVar5 = piVar4[1]" (identifier "iVar5") (= "=") (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (goto_statement "goto LAB_0003bc94;" (goto "goto") (statement_identifier "LAB_0003bc94") (; ";")) (} "}"))) (if_statement "if (iVar5 == 0x29) {\n          return piVar1 + 2;\n        }" (if "if") (parenthesized_expression "(iVar5 == 0x29)" (( "(") (binary_expression "iVar5 == 0x29" (identifier "iVar5") (== "==") (number_literal "0x29")) () ")")) (compound_statement "{\n          return piVar1 + 2;\n        }" ({ "{") (return_statement "return piVar1 + 2;" (return "return") (binary_expression "piVar1 + 2" (identifier "piVar1") (+ "+") (number_literal "2")) (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar5 = piVar1[2];" (assignment_expression "iVar5 = piVar1[2]" (identifier "iVar5") (= "=") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")))) (labeled_statement "LAB_0003bc94:\n    piVar3 = piVar4 + 1;" (statement_identifier "LAB_0003bc94") (: ":") (expression_statement "piVar3 = piVar4 + 1;" (assignment_expression "piVar3 = piVar4 + 1" (identifier "piVar3") (= "=") (binary_expression "piVar4 + 1" (identifier "piVar4") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "piVar1 = piVar4;" (assignment_expression "piVar1 = piVar4" (identifier "piVar1") (= "=") (identifier "piVar4")) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

type_1 * function_1(type_1 *var_2)

{
  type_1 *var_5;
  type_2 *var_4;
  type_1 *pwVar3;
  type_1 *var_6;
  int var_3;
  type_3 uVar6;
  type_2 *puVar7;
  
  var_4 = PTR_DAT_000755a8;
  var_3 = var_2[1];
  puVar7 = var_1 + -0x27f4;
  pwVar3 = var_2 + 1;
  var_5 = var_2;
  do {
    var_6 = pwVar3;
    if (var_3 == 0) {
      return var_2;
    }
    if (var_3 == 0x5b) {
      if (*(int *)(var_4 + 0x65b0) == 0) {
        var_3 = (*(type_4 *)PTR_getenv_00075b38)(puVar7);
        uVar6 = 0xffffffff;
        if (var_3 != 0) {
          uVar6 = 1;
        }
        *(type_3 *)(var_4 + 0x65b0) = uVar6;
      }
      var_3 = var_5[2];
      var_6 = var_5 + 2;
      if ((var_3 == 0x21) || ((*(int *)(var_4 + 0x65b0) < 0 && (var_3 == 0x5e)))) {
        var_3 = var_5[3];
        var_6 = var_5 + 3;
        if (var_3 == 0x5d) {
          var_3 = var_5[4];
          goto LAB_0003bcd0;
        }
      }
      else if (var_3 == 0x5d) {
        var_3 = var_5[3];
LAB_0003bcd0:
        var_6 = var_6 + 1;
      }
      while (var_3 != 0x5d) {
        if (var_3 == 0) {
          return var_2;
        }
        var_3 = var_6[1];
        var_6 = var_6 + 1;
      }
      var_3 = var_6[1];
    }
    else {
      if (var_3 - 0x21U < 0x20) {
        if ((int)((0xc0000601U >> (var_3 - 0x21U & 0x1f)) << 0x1f) < 0) {
          var_3 = var_5[2];
          if (var_3 == 0x28) {
            var_6 = function_1(var_5 + 2);
            var_3 = var_6[1];
          }
          goto LAB_0003bc94;
        }
        if (var_3 == 0x29) {
          return var_5 + 2;
        }
      }
      var_3 = var_5[2];
    }
LAB_0003bc94:
    pwVar3 = var_6 + 1;
    var_5 = var_6;
  } while( 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: (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: (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: (number_literal))) 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: (number_literal)))))))) 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: (number_literal))) 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: (number_literal))) 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: (number_literal))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) 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: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) 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: (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: (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: (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))))))

int * MASKED(int *param_1)

{
  int *piVar1;
  undefined *puVar2;
  int *piVar3;
  int *piVar4;
  int iVar5;
  undefined4 uVar6;
  undefined *puVar7;
  
  puVar2 = PTR_DAT_000755a8;
  iVar5 = param_1[1];
  puVar7 = PTR_s_directory_000755b8 + -0x27f4;
  piVar3 = param_1 + 1;
  piVar1 = param_1;
  do {
    piVar4 = piVar3;
    if (iVar5 == 0) {
      return param_1;
    }
    if (iVar5 == 0x5b) {
      if (*(int *)(puVar2 + 0x65b0) == 0) {
        iVar5 = (*(code *)PTR_getenv_00075b38)(puVar7);
        uVar6 = 0xffffffff;
        if (iVar5 != 0) {
          uVar6 = 1;
        }
        *(undefined4 *)(puVar2 + 0x65b0) = uVar6;
      }
      iVar5 = piVar1[2];
      piVar4 = piVar1 + 2;
      if ((iVar5 == 0x21) || ((*(int *)(puVar2 + 0x65b0) < 0 && (iVar5 == 0x5e)))) {
        iVar5 = piVar1[3];
        piVar4 = piVar1 + 3;
        if (iVar5 == 0x5d) {
          iVar5 = piVar1[4];
          goto LAB_0003bcd0;
        }
      }
      else if (iVar5 == 0x5d) {
        iVar5 = piVar1[3];
LAB_0003bcd0:
        piVar4 = piVar4 + 1;
      }
      while (iVar5 != 0x5d) {
        if (iVar5 == 0) {
          return param_1;
        }
        iVar5 = piVar4[1];
        piVar4 = piVar4 + 1;
      }
      iVar5 = piVar4[1];
    }
    else {
      if (iVar5 - 0x21U < 0x20) {
        if ((int)((0xc0000601U >> (iVar5 - 0x21U & 0x1f)) << 0x1f) < 0) {
          iVar5 = piVar1[2];
          if (iVar5 == 0x28) {
            piVar4 = (int *)MASKED(piVar1 + 2);
            iVar5 = piVar4[1];
          }
          goto LAB_0003bc94;
        }
        if (iVar5 == 0x29) {
          return piVar1 + 2;
        }
      }
      iVar5 = piVar1[2];
    }
LAB_0003bc94:
    piVar3 = piVar4 + 1;
    piVar1 = piVar4;
  } while( true );
}

