
bin_tree_t *
parse_branch(re_string_t *regexp,regex_t *preg,re_token_t *token,reg_syntax_t syntax,Idx nest,
            reg_errcode_t *err)

{
  re_dfa_t *prVar1;
  int iVar2;
  byte bVar3;
  bin_tree_t *root;
  bin_tree_t *root_00;
  bin_tree_t *pbVar4;
  re_token_t *in_ECX;
  regex_t *preg_00;
  int unaff_EDI;
  int in_GS_OFFSET;
  undefined8 uVar5;
  re_token_t t;
  
  uVar5 = __x86_get_pc_thunk_di();
  preg_00 = (regex_t *)((ulonglong)uVar5 >> 0x20);
  prVar1 = preg_00->buffer;
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  root = parse_expression((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,(Idx)preg,
                          (reg_errcode_t *)token);
  if (((token->opr).sbcset == (re_bitset_ptr_t)0x0) || (root != (bin_tree_t *)0x0)) {
    while (bVar3 = in_ECX->field_0x4, pbVar4 = root, (bVar3 & 0xf7) != 2) {
      while( true ) {
        if ((bVar3 == 9) && (pbVar4 = root, preg != (regex_t *)0x0)) goto LAB_00046f00;
        root_00 = parse_expression((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,
                                   (Idx)preg,(reg_errcode_t *)token);
        if (((token->opr).sbcset != (re_bitset_ptr_t)0x0) && (root_00 == (bin_tree_t *)0x0)) {
          if (root == (bin_tree_t *)0x0) goto LAB_00046f52;
          pbVar4 = (bin_tree_t *)0x0;
          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),
                    (void *)0x0);
          goto LAB_00046f00;
        }
        if ((root == (bin_tree_t *)0x0) || (root_00 == (bin_tree_t *)0x0)) break;
        t._4_1_ = 0x10;
        pbVar4 = create_token_tree((re_dfa_t *)&prVar1->str_tree_storage,
                                   (bin_tree_t *)&prVar1->str_tree_storage_idx,root,
                                   (re_token_t *)root_00,(re_dfa_t *)&t);
        if (pbVar4 == (bin_tree_t *)0x0) {
          postorder(root_00,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),
                    (void *)0x0);
          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),
                    (void *)0x0);
          (token->opr).idx = 0xc;
          goto LAB_00046f52;
        }
        bVar3 = in_ECX->field_0x4;
        root = pbVar4;
        if ((bVar3 & 0xf7) == 2) goto LAB_00046f00;
      }
      if (root == (bin_tree_t *)0x0) {
        root = root_00;
      }
    }
  }
  else {
LAB_00046f52:
    pbVar4 = (bin_tree_t *)0x0;
  }
LAB_00046f00:
  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return pbVar4;
}



int FUN_00046e10(undefined4 param_1,int param_2,int *param_3)

{
  byte bVar1;
  int iVar2;
  int iVar3;
  int in_ECX;
  int in_GS_OFFSET;
  undefined1 local_28 [4];
  undefined1 local_24;
  int local_20;
  
  FUN_0001a21d();
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = FUN_00045920(param_1,param_2,param_3);
  if ((*param_3 == 0) || (iVar2 != 0)) {
    while (bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2) {
      while( true ) {
        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;
        iVar3 = FUN_00045920(param_1,param_2,param_3);
        if ((*param_3 != 0) && (iVar3 == 0)) {
          if (iVar2 == 0) goto LAB_00046f52;
          iVar2 = 0;
          FUN_0003aae0();
          goto LAB_00046f00;
        }
        if ((iVar2 == 0) || (iVar3 == 0)) break;
        local_24 = 0x10;
        iVar2 = FUN_0003d3b0(iVar3,local_28);
        if (iVar2 == 0) {
          FUN_0003aae0();
          FUN_0003aae0();
          *param_3 = 0xc;
          goto LAB_00046f52;
        }
        bVar1 = *(byte *)(in_ECX + 4);
        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;
      }
      if (iVar2 == 0) {
        iVar2 = iVar3;
      }
    }
  }
  else {
LAB_00046f52:
    iVar2 = 0;
  }
LAB_00046f00:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0004e0c0();
  }
  return iVar2;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
CALL 0x0001a21d
ADD EDI,0x23ecf
PUSH ESI
PUSH EBX
SUB ESP,0x40
MOV ESI,dword ptr [EDX]
MOV dword ptr [ESP + 0x10],EAX
MOV dword ptr [ESP + 0x20],EDI
MOV EDI,dword ptr [ESP + 0x5c]
MOV dword ptr [ESP + 0x14],EDX
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x30],ECX
XOR ECX,ECX
PUSH EDI
MOV ECX,EBP
PUSH dword ptr [ESP + 0x5c]
PUSH dword ptr [ESP + 0x5c]
CALL 0x00045920
MOV ECX,dword ptr [EDI]
ADD ESP,0x10
MOV EBX,EAX
TEST ECX,ECX
JZ 0x00046e66
TEST EAX,EAX
JZ 0x00046f52
LEA EAX,[ESI + 0x40]
MOV dword ptr [ESP + 0x14],EAX
LEA EAX,[ESI + 0x38]
MOV dword ptr [ESP + 0x18],EAX
LEA ESI,[ESI]
MOVZX EAX,byte ptr [EBP + 0x4]
MOV EDX,EAX
AND EDX,0xfffffff7
CMP DL,0x2
JZ 0x00046f00
CMP AL,0x9
JNZ 0x00046e92
MOV EAX,dword ptr [ESP + 0x54]
TEST EAX,EAX
JNZ 0x00046f00
SUB ESP,0x4
MOV ECX,EBP
PUSH EDI
PUSH dword ptr [ESP + 0x5c]
PUSH dword ptr [ESP + 0x5c]
MOV EDX,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [ESP + 0x1c]
CALL 0x00045920
MOV EDX,dword ptr [EDI]
ADD ESP,0x10
MOV ESI,EAX
TEST EDX,EDX
JZ 0x00046ec0
TEST EAX,EAX
JZ 0x00046f56
TEST EBX,EBX
JZ 0x00046f20
TEST ESI,ESI
JZ 0x00046f20
MOV byte ptr [ESP + 0x28],0x10
SUB ESP,0x8
MOV ECX,EBX
LEA EAX,[ESP + 0x2c]
PUSH EAX
PUSH ESI
MOV EDX,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [ESP + 0x28]
CALL 0x0003d3b0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00046f2a
MOV EBX,EAX
MOVZX EAX,byte ptr [EBP + 0x4]
MOV EDX,EAX
AND EDX,0xfffffff7
CMP DL,0x2
JNZ 0x00046e86
LEA ESI,[ESI]
MOV ECX,dword ptr [ESP + 0x2c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,EBX
JNZ 0x00046f71
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST EBX,EBX
CMOVZ EBX,ESI
JMP 0x00046e78
MOV EBP,dword ptr [ESP + 0x1c]
XOR ECX,ECX
MOV EAX,ESI
LEA EDX,[EBP + 0xfffd1058]
CALL 0x0003aae0
XOR ECX,ECX
LEA EDX,[EBP + 0xfffd1058]
MOV EAX,EBX
CALL 0x0003aae0
MOV dword ptr [EDI],0xc
XOR EBX,EBX
JMP 0x00046f00
TEST EBX,EBX
JZ 0x00046f52
MOV EAX,dword ptr [ESP + 0x1c]
XOR ECX,ECX
LEA EDX,[EAX + 0xfffd1058]
MOV EAX,EBX
XOR EBX,EBX
CALL 0x0003aae0
JMP 0x00046f00
CALL 0x0004e0c0
(translation_unit "int FUN_00046e10(undefined4 param_1,int param_2,int *param_3)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  int in_ECX;\n  int in_GS_OFFSET;\n  undefined1 local_28 [4];\n  undefined1 local_24;\n  int local_20;\n  \n  FUN_0001a21d();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00045920(param_1,param_2,param_3);\n  if ((*param_3 == 0) || (iVar2 != 0)) {\n    while (bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }\n    }\n  }\n  else {\nLAB_00046f52:\n    iVar2 = 0;\n  }\nLAB_00046f00:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0004e0c0();\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_00046e10(undefined4 param_1,int param_2,int *param_3)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  int in_ECX;\n  int in_GS_OFFSET;\n  undefined1 local_28 [4];\n  undefined1 local_24;\n  int local_20;\n  \n  FUN_0001a21d();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00045920(param_1,param_2,param_3);\n  if ((*param_3 == 0) || (iVar2 != 0)) {\n    while (bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }\n    }\n  }\n  else {\nLAB_00046f52:\n    iVar2 = 0;\n  }\nLAB_00046f00:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0004e0c0();\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_00046e10(undefined4 param_1,int param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  int in_ECX;\n  int in_GS_OFFSET;\n  undefined1 local_28 [4];\n  undefined1 local_24;\n  int local_20;\n  \n  FUN_0001a21d();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00045920(param_1,param_2,param_3);\n  if ((*param_3 == 0) || (iVar2 != 0)) {\n    while (bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }\n    }\n  }\n  else {\nLAB_00046f52:\n    iVar2 = 0;\n  }\nLAB_00046f00:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0004e0c0();\n  }\n  return iVar2;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_ECX;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_28 [4];" type_identifier (array_declarator "local_28 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "FUN_0001a21d();" (call_expression "FUN_0001a21d()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = FUN_00045920(param_1,param_2,param_3);" (assignment_expression "iVar2 = FUN_00045920(param_1,param_2,param_3)" identifier = (call_expression "FUN_00045920(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((*param_3 == 0) || (iVar2 != 0)) {\n    while (bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }\n    }\n  }\n  else {\nLAB_00046f52:\n    iVar2 = 0;\n  }" if (parenthesized_expression "((*param_3 == 0) || (iVar2 != 0))" ( (binary_expression "(*param_3 == 0) || (iVar2 != 0)" (parenthesized_expression "(*param_3 == 0)" ( (binary_expression "*param_3 == 0" (pointer_expression "*param_3" * identifier) == number_literal) )) || (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    while (bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }\n    }\n  }" { (while_statement "while (bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }\n    }" while (parenthesized_expression "(bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2)" ( (comma_expression "bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2" (assignment_expression "bVar1 = *(byte *)(in_ECX + 4)" identifier = (pointer_expression "*(byte *)(in_ECX + 4)" * (cast_expression "(byte *)(in_ECX + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_ECX + 4)" ( (binary_expression "in_ECX + 4" identifier + number_literal) ))))) , (binary_expression "(bVar1 & 0xf7) != 2" (parenthesized_expression "(bVar1 & 0xf7)" ( (binary_expression "bVar1 & 0xf7" identifier & number_literal) )) != number_literal)) )) (compound_statement "{\n      while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }\n    }" { (while_statement "while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }" { (if_statement "if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;" if (parenthesized_expression "((bVar1 == 9) && (param_2 != 0))" ( (binary_expression "(bVar1 == 9) && (param_2 != 0)" (parenthesized_expression "(bVar1 == 9)" ( (binary_expression "bVar1 == 9" identifier == number_literal) )) && (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) (goto_statement "goto LAB_00046f00;" goto statement_identifier ;)) (expression_statement "iVar3 = FUN_00045920(param_1,param_2,param_3);" (assignment_expression "iVar3 = FUN_00045920(param_1,param_2,param_3)" identifier = (call_expression "FUN_00045920(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }" if (parenthesized_expression "((*param_3 != 0) && (iVar3 == 0))" ( (binary_expression "(*param_3 != 0) && (iVar3 == 0)" (parenthesized_expression "(*param_3 != 0)" ( (binary_expression "*param_3 != 0" (pointer_expression "*param_3" * identifier) != number_literal) )) && (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) ))) )) (compound_statement "{\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }" { (if_statement "if (iVar2 == 0) goto LAB_00046f52;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00046f52;" goto statement_identifier ;)) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "FUN_0003aae0();" (call_expression "FUN_0003aae0()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_00046f00;" goto statement_identifier ;) })) (if_statement "if ((iVar2 == 0) || (iVar3 == 0)) break;" if (parenthesized_expression "((iVar2 == 0) || (iVar3 == 0))" ( (binary_expression "(iVar2 == 0) || (iVar3 == 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) ))) )) (break_statement "break;" break ;)) (expression_statement "local_24 = 0x10;" (assignment_expression "local_24 = 0x10" identifier = number_literal) ;) (expression_statement "iVar2 = FUN_0003d3b0(iVar3,local_28);" (assignment_expression "iVar2 = FUN_0003d3b0(iVar3,local_28)" identifier = (call_expression "FUN_0003d3b0(iVar3,local_28)" identifier (argument_list "(iVar3,local_28)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }" { (expression_statement "FUN_0003aae0();" (call_expression "FUN_0003aae0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0003aae0();" (call_expression "FUN_0003aae0()" identifier (argument_list "()" ( ))) ;) (expression_statement "*param_3 = 0xc;" (assignment_expression "*param_3 = 0xc" (pointer_expression "*param_3" * identifier) = number_literal) ;) (goto_statement "goto LAB_00046f52;" goto statement_identifier ;) })) (expression_statement "bVar1 = *(byte *)(in_ECX + 4);" (assignment_expression "bVar1 = *(byte *)(in_ECX + 4)" identifier = (pointer_expression "*(byte *)(in_ECX + 4)" * (cast_expression "(byte *)(in_ECX + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_ECX + 4)" ( (binary_expression "in_ECX + 4" identifier + number_literal) ))))) ;) (if_statement "if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;" if (parenthesized_expression "((bVar1 & 0xf7) == 2)" ( (binary_expression "(bVar1 & 0xf7) == 2" (parenthesized_expression "(bVar1 & 0xf7)" ( (binary_expression "bVar1 & 0xf7" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00046f00;" goto statement_identifier ;)) })) (if_statement "if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar2 = iVar3;\n      }" { (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) })) })) }) (else_clause "else {\nLAB_00046f52:\n    iVar2 = 0;\n  }" else (compound_statement "{\nLAB_00046f52:\n    iVar2 = 0;\n  }" { (labeled_statement "LAB_00046f52:\n    iVar2 = 0;" statement_identifier : (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;)) }))) (labeled_statement "LAB_00046f00:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0004e0c0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0004e0c0();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0004e0c0();\n  }" { comment (expression_statement "FUN_0004e0c0();" (call_expression "FUN_0004e0c0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "bin_tree_t *\nparse_branch(re_string_t *regexp,regex_t *preg,re_token_t *token,reg_syntax_t syntax,Idx nest,\n            reg_errcode_t *err)\n\n{\n  re_dfa_t *prVar1;\n  int iVar2;\n  byte bVar3;\n  bin_tree_t *root;\n  bin_tree_t *root_00;\n  bin_tree_t *pbVar4;\n  re_token_t *in_ECX;\n  regex_t *preg_00;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  undefined8 uVar5;\n  re_token_t t;\n  \n  uVar5 = __x86_get_pc_thunk_di();\n  preg_00 = (regex_t *)((ulonglong)uVar5 >> 0x20);\n  prVar1 = preg_00->buffer;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  root = parse_expression((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,(Idx)preg,\n                          (reg_errcode_t *)token);\n  if (((token->opr).sbcset == (re_bitset_ptr_t)0x0) || (root != (bin_tree_t *)0x0)) {\n    while (bVar3 = in_ECX->field_0x4, pbVar4 = root, (bVar3 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar3 == 9) && (pbVar4 = root, preg != (regex_t *)0x0)) goto LAB_00046f00;\n        root_00 = parse_expression((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,\n                                   (Idx)preg,(reg_errcode_t *)token);\n        if (((token->opr).sbcset != (re_bitset_ptr_t)0x0) && (root_00 == (bin_tree_t *)0x0)) {\n          if (root == (bin_tree_t *)0x0) goto LAB_00046f52;\n          pbVar4 = (bin_tree_t *)0x0;\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          goto LAB_00046f00;\n        }\n        if ((root == (bin_tree_t *)0x0) || (root_00 == (bin_tree_t *)0x0)) break;\n        t._4_1_ = 0x10;\n        pbVar4 = create_token_tree((re_dfa_t *)&prVar1->str_tree_storage,\n                                   (bin_tree_t *)&prVar1->str_tree_storage_idx,root,\n                                   (re_token_t *)root_00,(re_dfa_t *)&t);\n        if (pbVar4 == (bin_tree_t *)0x0) {\n          postorder(root_00,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          (token->opr).idx = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar3 = in_ECX->field_0x4;\n        root = pbVar4;\n        if ((bVar3 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (root == (bin_tree_t *)0x0) {\n        root = root_00;\n      }\n    }\n  }\n  else {\nLAB_00046f52:\n    pbVar4 = (bin_tree_t *)0x0;\n  }\nLAB_00046f00:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return pbVar4;\n}\n\n" (function_definition "bin_tree_t *\nparse_branch(re_string_t *regexp,regex_t *preg,re_token_t *token,reg_syntax_t syntax,Idx nest,\n            reg_errcode_t *err)\n\n{\n  re_dfa_t *prVar1;\n  int iVar2;\n  byte bVar3;\n  bin_tree_t *root;\n  bin_tree_t *root_00;\n  bin_tree_t *pbVar4;\n  re_token_t *in_ECX;\n  regex_t *preg_00;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  undefined8 uVar5;\n  re_token_t t;\n  \n  uVar5 = __x86_get_pc_thunk_di();\n  preg_00 = (regex_t *)((ulonglong)uVar5 >> 0x20);\n  prVar1 = preg_00->buffer;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  root = parse_expression((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,(Idx)preg,\n                          (reg_errcode_t *)token);\n  if (((token->opr).sbcset == (re_bitset_ptr_t)0x0) || (root != (bin_tree_t *)0x0)) {\n    while (bVar3 = in_ECX->field_0x4, pbVar4 = root, (bVar3 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar3 == 9) && (pbVar4 = root, preg != (regex_t *)0x0)) goto LAB_00046f00;\n        root_00 = parse_expression((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,\n                                   (Idx)preg,(reg_errcode_t *)token);\n        if (((token->opr).sbcset != (re_bitset_ptr_t)0x0) && (root_00 == (bin_tree_t *)0x0)) {\n          if (root == (bin_tree_t *)0x0) goto LAB_00046f52;\n          pbVar4 = (bin_tree_t *)0x0;\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          goto LAB_00046f00;\n        }\n        if ((root == (bin_tree_t *)0x0) || (root_00 == (bin_tree_t *)0x0)) break;\n        t._4_1_ = 0x10;\n        pbVar4 = create_token_tree((re_dfa_t *)&prVar1->str_tree_storage,\n                                   (bin_tree_t *)&prVar1->str_tree_storage_idx,root,\n                                   (re_token_t *)root_00,(re_dfa_t *)&t);\n        if (pbVar4 == (bin_tree_t *)0x0) {\n          postorder(root_00,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          (token->opr).idx = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar3 = in_ECX->field_0x4;\n        root = pbVar4;\n        if ((bVar3 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (root == (bin_tree_t *)0x0) {\n        root = root_00;\n      }\n    }\n  }\n  else {\nLAB_00046f52:\n    pbVar4 = (bin_tree_t *)0x0;\n  }\nLAB_00046f00:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return pbVar4;\n}" type_identifier (pointer_declarator "*\nparse_branch(re_string_t *regexp,regex_t *preg,re_token_t *token,reg_syntax_t syntax,Idx nest,\n            reg_errcode_t *err)" * (function_declarator "parse_branch(re_string_t *regexp,regex_t *preg,re_token_t *token,reg_syntax_t syntax,Idx nest,\n            reg_errcode_t *err)" identifier (parameter_list "(re_string_t *regexp,regex_t *preg,re_token_t *token,reg_syntax_t syntax,Idx nest,\n            reg_errcode_t *err)" ( (parameter_declaration "re_string_t *regexp" type_identifier (pointer_declarator "*regexp" * identifier)) , (parameter_declaration "regex_t *preg" type_identifier (pointer_declarator "*preg" * identifier)) , (parameter_declaration "re_token_t *token" type_identifier (pointer_declarator "*token" * identifier)) , (parameter_declaration "reg_syntax_t syntax" type_identifier identifier) , (parameter_declaration "Idx nest" type_identifier identifier) , (parameter_declaration "reg_errcode_t *err" type_identifier (pointer_declarator "*err" * identifier)) )))) (compound_statement "{\n  re_dfa_t *prVar1;\n  int iVar2;\n  byte bVar3;\n  bin_tree_t *root;\n  bin_tree_t *root_00;\n  bin_tree_t *pbVar4;\n  re_token_t *in_ECX;\n  regex_t *preg_00;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  undefined8 uVar5;\n  re_token_t t;\n  \n  uVar5 = __x86_get_pc_thunk_di();\n  preg_00 = (regex_t *)((ulonglong)uVar5 >> 0x20);\n  prVar1 = preg_00->buffer;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  root = parse_expression((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,(Idx)preg,\n                          (reg_errcode_t *)token);\n  if (((token->opr).sbcset == (re_bitset_ptr_t)0x0) || (root != (bin_tree_t *)0x0)) {\n    while (bVar3 = in_ECX->field_0x4, pbVar4 = root, (bVar3 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar3 == 9) && (pbVar4 = root, preg != (regex_t *)0x0)) goto LAB_00046f00;\n        root_00 = parse_expression((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,\n                                   (Idx)preg,(reg_errcode_t *)token);\n        if (((token->opr).sbcset != (re_bitset_ptr_t)0x0) && (root_00 == (bin_tree_t *)0x0)) {\n          if (root == (bin_tree_t *)0x0) goto LAB_00046f52;\n          pbVar4 = (bin_tree_t *)0x0;\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          goto LAB_00046f00;\n        }\n        if ((root == (bin_tree_t *)0x0) || (root_00 == (bin_tree_t *)0x0)) break;\n        t._4_1_ = 0x10;\n        pbVar4 = create_token_tree((re_dfa_t *)&prVar1->str_tree_storage,\n                                   (bin_tree_t *)&prVar1->str_tree_storage_idx,root,\n                                   (re_token_t *)root_00,(re_dfa_t *)&t);\n        if (pbVar4 == (bin_tree_t *)0x0) {\n          postorder(root_00,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          (token->opr).idx = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar3 = in_ECX->field_0x4;\n        root = pbVar4;\n        if ((bVar3 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (root == (bin_tree_t *)0x0) {\n        root = root_00;\n      }\n    }\n  }\n  else {\nLAB_00046f52:\n    pbVar4 = (bin_tree_t *)0x0;\n  }\nLAB_00046f00:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return pbVar4;\n}" { (declaration "re_dfa_t *prVar1;" type_identifier (pointer_declarator "*prVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "bin_tree_t *root;" type_identifier (pointer_declarator "*root" * identifier) ;) (declaration "bin_tree_t *root_00;" type_identifier (pointer_declarator "*root_00" * identifier) ;) (declaration "bin_tree_t *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "re_token_t *in_ECX;" type_identifier (pointer_declarator "*in_ECX" * identifier) ;) (declaration "regex_t *preg_00;" type_identifier (pointer_declarator "*preg_00" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (declaration "re_token_t t;" type_identifier identifier ;) (expression_statement "uVar5 = __x86_get_pc_thunk_di();" (assignment_expression "uVar5 = __x86_get_pc_thunk_di()" identifier = (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( )))) ;) (expression_statement "preg_00 = (regex_t *)((ulonglong)uVar5 >> 0x20);" (assignment_expression "preg_00 = (regex_t *)((ulonglong)uVar5 >> 0x20)" identifier = (cast_expression "(regex_t *)((ulonglong)uVar5 >> 0x20)" ( (type_descriptor "regex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulonglong)uVar5 >> 0x20)" ( (binary_expression "(ulonglong)uVar5 >> 0x20" (cast_expression "(ulonglong)uVar5" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "prVar1 = preg_00->buffer;" (assignment_expression "prVar1 = preg_00->buffer" identifier = (field_expression "preg_00->buffer" identifier -> field_identifier)) ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "root = parse_expression((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,(Idx)preg,\n                          (reg_errcode_t *)token);" (assignment_expression "root = parse_expression((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,(Idx)preg,\n                          (reg_errcode_t *)token)" identifier = (call_expression "parse_expression((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,(Idx)preg,\n                          (reg_errcode_t *)token)" identifier (argument_list "((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,(Idx)preg,\n                          (reg_errcode_t *)token)" ( (cast_expression "(re_string_t *)uVar5" ( (type_descriptor "re_string_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier , (cast_expression "(reg_syntax_t)regexp" ( (type_descriptor "reg_syntax_t" type_identifier) ) identifier) , (cast_expression "(Idx)preg" ( (type_descriptor "Idx" type_identifier) ) identifier) , (cast_expression "(reg_errcode_t *)token" ( (type_descriptor "reg_errcode_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (((token->opr).sbcset == (re_bitset_ptr_t)0x0) || (root != (bin_tree_t *)0x0)) {\n    while (bVar3 = in_ECX->field_0x4, pbVar4 = root, (bVar3 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar3 == 9) && (pbVar4 = root, preg != (regex_t *)0x0)) goto LAB_00046f00;\n        root_00 = parse_expression((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,\n                                   (Idx)preg,(reg_errcode_t *)token);\n        if (((token->opr).sbcset != (re_bitset_ptr_t)0x0) && (root_00 == (bin_tree_t *)0x0)) {\n          if (root == (bin_tree_t *)0x0) goto LAB_00046f52;\n          pbVar4 = (bin_tree_t *)0x0;\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          goto LAB_00046f00;\n        }\n        if ((root == (bin_tree_t *)0x0) || (root_00 == (bin_tree_t *)0x0)) break;\n        t._4_1_ = 0x10;\n        pbVar4 = create_token_tree((re_dfa_t *)&prVar1->str_tree_storage,\n                                   (bin_tree_t *)&prVar1->str_tree_storage_idx,root,\n                                   (re_token_t *)root_00,(re_dfa_t *)&t);\n        if (pbVar4 == (bin_tree_t *)0x0) {\n          postorder(root_00,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          (token->opr).idx = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar3 = in_ECX->field_0x4;\n        root = pbVar4;\n        if ((bVar3 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (root == (bin_tree_t *)0x0) {\n        root = root_00;\n      }\n    }\n  }\n  else {\nLAB_00046f52:\n    pbVar4 = (bin_tree_t *)0x0;\n  }" if (parenthesized_expression "(((token->opr).sbcset == (re_bitset_ptr_t)0x0) || (root != (bin_tree_t *)0x0))" ( (binary_expression "((token->opr).sbcset == (re_bitset_ptr_t)0x0) || (root != (bin_tree_t *)0x0)" (parenthesized_expression "((token->opr).sbcset == (re_bitset_ptr_t)0x0)" ( (binary_expression "(token->opr).sbcset == (re_bitset_ptr_t)0x0" (field_expression "(token->opr).sbcset" (parenthesized_expression "(token->opr)" ( (field_expression "token->opr" identifier -> field_identifier) )) . field_identifier) == (cast_expression "(re_bitset_ptr_t)0x0" ( (type_descriptor "re_bitset_ptr_t" type_identifier) ) number_literal)) )) || (parenthesized_expression "(root != (bin_tree_t *)0x0)" ( (binary_expression "root != (bin_tree_t *)0x0" identifier != (cast_expression "(bin_tree_t *)0x0" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    while (bVar3 = in_ECX->field_0x4, pbVar4 = root, (bVar3 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar3 == 9) && (pbVar4 = root, preg != (regex_t *)0x0)) goto LAB_00046f00;\n        root_00 = parse_expression((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,\n                                   (Idx)preg,(reg_errcode_t *)token);\n        if (((token->opr).sbcset != (re_bitset_ptr_t)0x0) && (root_00 == (bin_tree_t *)0x0)) {\n          if (root == (bin_tree_t *)0x0) goto LAB_00046f52;\n          pbVar4 = (bin_tree_t *)0x0;\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          goto LAB_00046f00;\n        }\n        if ((root == (bin_tree_t *)0x0) || (root_00 == (bin_tree_t *)0x0)) break;\n        t._4_1_ = 0x10;\n        pbVar4 = create_token_tree((re_dfa_t *)&prVar1->str_tree_storage,\n                                   (bin_tree_t *)&prVar1->str_tree_storage_idx,root,\n                                   (re_token_t *)root_00,(re_dfa_t *)&t);\n        if (pbVar4 == (bin_tree_t *)0x0) {\n          postorder(root_00,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          (token->opr).idx = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar3 = in_ECX->field_0x4;\n        root = pbVar4;\n        if ((bVar3 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (root == (bin_tree_t *)0x0) {\n        root = root_00;\n      }\n    }\n  }" { (while_statement "while (bVar3 = in_ECX->field_0x4, pbVar4 = root, (bVar3 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar3 == 9) && (pbVar4 = root, preg != (regex_t *)0x0)) goto LAB_00046f00;\n        root_00 = parse_expression((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,\n                                   (Idx)preg,(reg_errcode_t *)token);\n        if (((token->opr).sbcset != (re_bitset_ptr_t)0x0) && (root_00 == (bin_tree_t *)0x0)) {\n          if (root == (bin_tree_t *)0x0) goto LAB_00046f52;\n          pbVar4 = (bin_tree_t *)0x0;\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          goto LAB_00046f00;\n        }\n        if ((root == (bin_tree_t *)0x0) || (root_00 == (bin_tree_t *)0x0)) break;\n        t._4_1_ = 0x10;\n        pbVar4 = create_token_tree((re_dfa_t *)&prVar1->str_tree_storage,\n                                   (bin_tree_t *)&prVar1->str_tree_storage_idx,root,\n                                   (re_token_t *)root_00,(re_dfa_t *)&t);\n        if (pbVar4 == (bin_tree_t *)0x0) {\n          postorder(root_00,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          (token->opr).idx = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar3 = in_ECX->field_0x4;\n        root = pbVar4;\n        if ((bVar3 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (root == (bin_tree_t *)0x0) {\n        root = root_00;\n      }\n    }" while (parenthesized_expression "(bVar3 = in_ECX->field_0x4, pbVar4 = root, (bVar3 & 0xf7) != 2)" ( (comma_expression "bVar3 = in_ECX->field_0x4, pbVar4 = root, (bVar3 & 0xf7) != 2" (assignment_expression "bVar3 = in_ECX->field_0x4" identifier = (field_expression "in_ECX->field_0x4" identifier -> field_identifier)) , (comma_expression "pbVar4 = root, (bVar3 & 0xf7) != 2" (assignment_expression "pbVar4 = root" identifier = identifier) , (binary_expression "(bVar3 & 0xf7) != 2" (parenthesized_expression "(bVar3 & 0xf7)" ( (binary_expression "bVar3 & 0xf7" identifier & number_literal) )) != number_literal))) )) (compound_statement "{\n      while( true ) {\n        if ((bVar3 == 9) && (pbVar4 = root, preg != (regex_t *)0x0)) goto LAB_00046f00;\n        root_00 = parse_expression((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,\n                                   (Idx)preg,(reg_errcode_t *)token);\n        if (((token->opr).sbcset != (re_bitset_ptr_t)0x0) && (root_00 == (bin_tree_t *)0x0)) {\n          if (root == (bin_tree_t *)0x0) goto LAB_00046f52;\n          pbVar4 = (bin_tree_t *)0x0;\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          goto LAB_00046f00;\n        }\n        if ((root == (bin_tree_t *)0x0) || (root_00 == (bin_tree_t *)0x0)) break;\n        t._4_1_ = 0x10;\n        pbVar4 = create_token_tree((re_dfa_t *)&prVar1->str_tree_storage,\n                                   (bin_tree_t *)&prVar1->str_tree_storage_idx,root,\n                                   (re_token_t *)root_00,(re_dfa_t *)&t);\n        if (pbVar4 == (bin_tree_t *)0x0) {\n          postorder(root_00,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          (token->opr).idx = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar3 = in_ECX->field_0x4;\n        root = pbVar4;\n        if ((bVar3 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (root == (bin_tree_t *)0x0) {\n        root = root_00;\n      }\n    }" { (while_statement "while( true ) {\n        if ((bVar3 == 9) && (pbVar4 = root, preg != (regex_t *)0x0)) goto LAB_00046f00;\n        root_00 = parse_expression((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,\n                                   (Idx)preg,(reg_errcode_t *)token);\n        if (((token->opr).sbcset != (re_bitset_ptr_t)0x0) && (root_00 == (bin_tree_t *)0x0)) {\n          if (root == (bin_tree_t *)0x0) goto LAB_00046f52;\n          pbVar4 = (bin_tree_t *)0x0;\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          goto LAB_00046f00;\n        }\n        if ((root == (bin_tree_t *)0x0) || (root_00 == (bin_tree_t *)0x0)) break;\n        t._4_1_ = 0x10;\n        pbVar4 = create_token_tree((re_dfa_t *)&prVar1->str_tree_storage,\n                                   (bin_tree_t *)&prVar1->str_tree_storage_idx,root,\n                                   (re_token_t *)root_00,(re_dfa_t *)&t);\n        if (pbVar4 == (bin_tree_t *)0x0) {\n          postorder(root_00,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          (token->opr).idx = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar3 = in_ECX->field_0x4;\n        root = pbVar4;\n        if ((bVar3 & 0xf7) == 2) goto LAB_00046f00;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if ((bVar3 == 9) && (pbVar4 = root, preg != (regex_t *)0x0)) goto LAB_00046f00;\n        root_00 = parse_expression((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,\n                                   (Idx)preg,(reg_errcode_t *)token);\n        if (((token->opr).sbcset != (re_bitset_ptr_t)0x0) && (root_00 == (bin_tree_t *)0x0)) {\n          if (root == (bin_tree_t *)0x0) goto LAB_00046f52;\n          pbVar4 = (bin_tree_t *)0x0;\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          goto LAB_00046f00;\n        }\n        if ((root == (bin_tree_t *)0x0) || (root_00 == (bin_tree_t *)0x0)) break;\n        t._4_1_ = 0x10;\n        pbVar4 = create_token_tree((re_dfa_t *)&prVar1->str_tree_storage,\n                                   (bin_tree_t *)&prVar1->str_tree_storage_idx,root,\n                                   (re_token_t *)root_00,(re_dfa_t *)&t);\n        if (pbVar4 == (bin_tree_t *)0x0) {\n          postorder(root_00,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          (token->opr).idx = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar3 = in_ECX->field_0x4;\n        root = pbVar4;\n        if ((bVar3 & 0xf7) == 2) goto LAB_00046f00;\n      }" { (if_statement "if ((bVar3 == 9) && (pbVar4 = root, preg != (regex_t *)0x0)) goto LAB_00046f00;" if (parenthesized_expression "((bVar3 == 9) && (pbVar4 = root, preg != (regex_t *)0x0))" ( (binary_expression "(bVar3 == 9) && (pbVar4 = root, preg != (regex_t *)0x0)" (parenthesized_expression "(bVar3 == 9)" ( (binary_expression "bVar3 == 9" identifier == number_literal) )) && (parenthesized_expression "(pbVar4 = root, preg != (regex_t *)0x0)" ( (comma_expression "pbVar4 = root, preg != (regex_t *)0x0" (assignment_expression "pbVar4 = root" identifier = identifier) , (binary_expression "preg != (regex_t *)0x0" identifier != (cast_expression "(regex_t *)0x0" ( (type_descriptor "regex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_00046f00;" goto statement_identifier ;)) (expression_statement "root_00 = parse_expression((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,\n                                   (Idx)preg,(reg_errcode_t *)token);" (assignment_expression "root_00 = parse_expression((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,\n                                   (Idx)preg,(reg_errcode_t *)token)" identifier = (call_expression "parse_expression((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,\n                                   (Idx)preg,(reg_errcode_t *)token)" identifier (argument_list "((re_string_t *)uVar5,preg_00,in_ECX,(reg_syntax_t)regexp,\n                                   (Idx)preg,(reg_errcode_t *)token)" ( (cast_expression "(re_string_t *)uVar5" ( (type_descriptor "re_string_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier , (cast_expression "(reg_syntax_t)regexp" ( (type_descriptor "reg_syntax_t" type_identifier) ) identifier) , (cast_expression "(Idx)preg" ( (type_descriptor "Idx" type_identifier) ) identifier) , (cast_expression "(reg_errcode_t *)token" ( (type_descriptor "reg_errcode_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (((token->opr).sbcset != (re_bitset_ptr_t)0x0) && (root_00 == (bin_tree_t *)0x0)) {\n          if (root == (bin_tree_t *)0x0) goto LAB_00046f52;\n          pbVar4 = (bin_tree_t *)0x0;\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          goto LAB_00046f00;\n        }" if (parenthesized_expression "(((token->opr).sbcset != (re_bitset_ptr_t)0x0) && (root_00 == (bin_tree_t *)0x0))" ( (binary_expression "((token->opr).sbcset != (re_bitset_ptr_t)0x0) && (root_00 == (bin_tree_t *)0x0)" (parenthesized_expression "((token->opr).sbcset != (re_bitset_ptr_t)0x0)" ( (binary_expression "(token->opr).sbcset != (re_bitset_ptr_t)0x0" (field_expression "(token->opr).sbcset" (parenthesized_expression "(token->opr)" ( (field_expression "token->opr" identifier -> field_identifier) )) . field_identifier) != (cast_expression "(re_bitset_ptr_t)0x0" ( (type_descriptor "re_bitset_ptr_t" type_identifier) ) number_literal)) )) && (parenthesized_expression "(root_00 == (bin_tree_t *)0x0)" ( (binary_expression "root_00 == (bin_tree_t *)0x0" identifier == (cast_expression "(bin_tree_t *)0x0" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n          if (root == (bin_tree_t *)0x0) goto LAB_00046f52;\n          pbVar4 = (bin_tree_t *)0x0;\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          goto LAB_00046f00;\n        }" { (if_statement "if (root == (bin_tree_t *)0x0) goto LAB_00046f52;" if (parenthesized_expression "(root == (bin_tree_t *)0x0)" ( (binary_expression "root == (bin_tree_t *)0x0" identifier == (cast_expression "(bin_tree_t *)0x0" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00046f52;" goto statement_identifier ;)) (expression_statement "pbVar4 = (bin_tree_t *)0x0;" (assignment_expression "pbVar4 = (bin_tree_t *)0x0" identifier = (cast_expression "(bin_tree_t *)0x0" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);" (call_expression "postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0)" identifier (argument_list "(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0)" ( identifier , (cast_expression "(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9)" ( (type_descriptor "_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + -0xb0d9)" ( (binary_expression "unaff_EDI + -0xb0d9" identifier + number_literal) ))) , (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (goto_statement "goto LAB_00046f00;" goto statement_identifier ;) })) (if_statement "if ((root == (bin_tree_t *)0x0) || (root_00 == (bin_tree_t *)0x0)) break;" if (parenthesized_expression "((root == (bin_tree_t *)0x0) || (root_00 == (bin_tree_t *)0x0))" ( (binary_expression "(root == (bin_tree_t *)0x0) || (root_00 == (bin_tree_t *)0x0)" (parenthesized_expression "(root == (bin_tree_t *)0x0)" ( (binary_expression "root == (bin_tree_t *)0x0" identifier == (cast_expression "(bin_tree_t *)0x0" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(root_00 == (bin_tree_t *)0x0)" ( (binary_expression "root_00 == (bin_tree_t *)0x0" identifier == (cast_expression "(bin_tree_t *)0x0" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "t._4_1_ = 0x10;" (assignment_expression "t._4_1_ = 0x10" (field_expression "t._4_1_" identifier . field_identifier) = number_literal) ;) (expression_statement "pbVar4 = create_token_tree((re_dfa_t *)&prVar1->str_tree_storage,\n                                   (bin_tree_t *)&prVar1->str_tree_storage_idx,root,\n                                   (re_token_t *)root_00,(re_dfa_t *)&t);" (assignment_expression "pbVar4 = create_token_tree((re_dfa_t *)&prVar1->str_tree_storage,\n                                   (bin_tree_t *)&prVar1->str_tree_storage_idx,root,\n                                   (re_token_t *)root_00,(re_dfa_t *)&t)" identifier = (call_expression "create_token_tree((re_dfa_t *)&prVar1->str_tree_storage,\n                                   (bin_tree_t *)&prVar1->str_tree_storage_idx,root,\n                                   (re_token_t *)root_00,(re_dfa_t *)&t)" identifier (argument_list "((re_dfa_t *)&prVar1->str_tree_storage,\n                                   (bin_tree_t *)&prVar1->str_tree_storage_idx,root,\n                                   (re_token_t *)root_00,(re_dfa_t *)&t)" ( (cast_expression "(re_dfa_t *)&prVar1->str_tree_storage" ( (type_descriptor "re_dfa_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&prVar1->str_tree_storage" & (field_expression "prVar1->str_tree_storage" identifier -> field_identifier))) , (cast_expression "(bin_tree_t *)&prVar1->str_tree_storage_idx" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&prVar1->str_tree_storage_idx" & (field_expression "prVar1->str_tree_storage_idx" identifier -> field_identifier))) , identifier , (cast_expression "(re_token_t *)root_00" ( (type_descriptor "re_token_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(re_dfa_t *)&t" ( (type_descriptor "re_dfa_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&t" & identifier)) )))) ;) (if_statement "if (pbVar4 == (bin_tree_t *)0x0) {\n          postorder(root_00,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          (token->opr).idx = 0xc;\n          goto LAB_00046f52;\n        }" if (parenthesized_expression "(pbVar4 == (bin_tree_t *)0x0)" ( (binary_expression "pbVar4 == (bin_tree_t *)0x0" identifier == (cast_expression "(bin_tree_t *)0x0" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          postorder(root_00,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);\n          (token->opr).idx = 0xc;\n          goto LAB_00046f52;\n        }" { (expression_statement "postorder(root_00,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);" (call_expression "postorder(root_00,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0)" identifier (argument_list "(root_00,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0)" ( identifier , (cast_expression "(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9)" ( (type_descriptor "_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + -0xb0d9)" ( (binary_expression "unaff_EDI + -0xb0d9" identifier + number_literal) ))) , (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0);" (call_expression "postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0)" identifier (argument_list "(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9),\n                    (void *)0x0)" ( identifier , (cast_expression "(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb0d9)" ( (type_descriptor "_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + -0xb0d9)" ( (binary_expression "unaff_EDI + -0xb0d9" identifier + number_literal) ))) , (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "(token->opr).idx = 0xc;" (assignment_expression "(token->opr).idx = 0xc" (field_expression "(token->opr).idx" (parenthesized_expression "(token->opr)" ( (field_expression "token->opr" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (goto_statement "goto LAB_00046f52;" goto statement_identifier ;) })) (expression_statement "bVar3 = in_ECX->field_0x4;" (assignment_expression "bVar3 = in_ECX->field_0x4" identifier = (field_expression "in_ECX->field_0x4" identifier -> field_identifier)) ;) (expression_statement "root = pbVar4;" (assignment_expression "root = pbVar4" identifier = identifier) ;) (if_statement "if ((bVar3 & 0xf7) == 2) goto LAB_00046f00;" if (parenthesized_expression "((bVar3 & 0xf7) == 2)" ( (binary_expression "(bVar3 & 0xf7) == 2" (parenthesized_expression "(bVar3 & 0xf7)" ( (binary_expression "bVar3 & 0xf7" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00046f00;" goto statement_identifier ;)) })) (if_statement "if (root == (bin_tree_t *)0x0) {\n        root = root_00;\n      }" if (parenthesized_expression "(root == (bin_tree_t *)0x0)" ( (binary_expression "root == (bin_tree_t *)0x0" identifier == (cast_expression "(bin_tree_t *)0x0" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        root = root_00;\n      }" { (expression_statement "root = root_00;" (assignment_expression "root = root_00" identifier = identifier) ;) })) })) }) (else_clause "else {\nLAB_00046f52:\n    pbVar4 = (bin_tree_t *)0x0;\n  }" else (compound_statement "{\nLAB_00046f52:\n    pbVar4 = (bin_tree_t *)0x0;\n  }" { (labeled_statement "LAB_00046f52:\n    pbVar4 = (bin_tree_t *)0x0;" statement_identifier : (expression_statement "pbVar4 = (bin_tree_t *)0x0;" (assignment_expression "pbVar4 = (bin_tree_t *)0x0" identifier = (cast_expression "(bin_tree_t *)0x0" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) }))) (labeled_statement "LAB_00046f00:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar2 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return pbVar4;" return identifier ;) })))
(translation_unit "int FUN_00046e10(undefined4 param_1,int param_2,int *param_3)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  int in_ECX;\n  int in_GS_OFFSET;\n  undefined1 local_28 [4];\n  undefined1 local_24;\n  int local_20;\n  \n  FUN_0001a21d();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00045920(param_1,param_2,param_3);\n  if ((*param_3 == 0) || (iVar2 != 0)) {\n    while (bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }\n    }\n  }\n  else {\nLAB_00046f52:\n    iVar2 = 0;\n  }\nLAB_00046f00:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0004e0c0();\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_00046e10(undefined4 param_1,int param_2,int *param_3)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  int in_ECX;\n  int in_GS_OFFSET;\n  undefined1 local_28 [4];\n  undefined1 local_24;\n  int local_20;\n  \n  FUN_0001a21d();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00045920(param_1,param_2,param_3);\n  if ((*param_3 == 0) || (iVar2 != 0)) {\n    while (bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }\n    }\n  }\n  else {\nLAB_00046f52:\n    iVar2 = 0;\n  }\nLAB_00046f00:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0004e0c0();\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_00046e10(undefined4 param_1,int param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  int in_ECX;\n  int in_GS_OFFSET;\n  undefined1 local_28 [4];\n  undefined1 local_24;\n  int local_20;\n  \n  FUN_0001a21d();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00045920(param_1,param_2,param_3);\n  if ((*param_3 == 0) || (iVar2 != 0)) {\n    while (bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }\n    }\n  }\n  else {\nLAB_00046f52:\n    iVar2 = 0;\n  }\nLAB_00046f00:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0004e0c0();\n  }\n  return iVar2;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_ECX;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_28 [4];" type_identifier (array_declarator "local_28 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "FUN_0001a21d();" (call_expression "FUN_0001a21d()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = FUN_00045920(param_1,param_2,param_3);" (assignment_expression "iVar2 = FUN_00045920(param_1,param_2,param_3)" identifier = (call_expression "FUN_00045920(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((*param_3 == 0) || (iVar2 != 0)) {\n    while (bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }\n    }\n  }\n  else {\nLAB_00046f52:\n    iVar2 = 0;\n  }" if (parenthesized_expression "((*param_3 == 0) || (iVar2 != 0))" ( (binary_expression "(*param_3 == 0) || (iVar2 != 0)" (parenthesized_expression "(*param_3 == 0)" ( (binary_expression "*param_3 == 0" (pointer_expression "*param_3" * identifier) == number_literal) )) || (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    while (bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }\n    }\n  }" { (while_statement "while (bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }\n    }" while (parenthesized_expression "(bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2)" ( (comma_expression "bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2" (assignment_expression "bVar1 = *(byte *)(in_ECX + 4)" identifier = (pointer_expression "*(byte *)(in_ECX + 4)" * (cast_expression "(byte *)(in_ECX + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_ECX + 4)" ( (binary_expression "in_ECX + 4" identifier + number_literal) ))))) , (binary_expression "(bVar1 & 0xf7) != 2" (parenthesized_expression "(bVar1 & 0xf7)" ( (binary_expression "bVar1 & 0xf7" identifier & number_literal) )) != number_literal)) )) (compound_statement "{\n      while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }\n    }" { (while_statement "while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }" { (if_statement "if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;" if (parenthesized_expression "((bVar1 == 9) && (param_2 != 0))" ( (binary_expression "(bVar1 == 9) && (param_2 != 0)" (parenthesized_expression "(bVar1 == 9)" ( (binary_expression "bVar1 == 9" identifier == number_literal) )) && (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) (goto_statement "goto LAB_00046f00;" goto statement_identifier ;)) (expression_statement "iVar3 = FUN_00045920(param_1,param_2,param_3);" (assignment_expression "iVar3 = FUN_00045920(param_1,param_2,param_3)" identifier = (call_expression "FUN_00045920(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }" if (parenthesized_expression "((*param_3 != 0) && (iVar3 == 0))" ( (binary_expression "(*param_3 != 0) && (iVar3 == 0)" (parenthesized_expression "(*param_3 != 0)" ( (binary_expression "*param_3 != 0" (pointer_expression "*param_3" * identifier) != number_literal) )) && (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) ))) )) (compound_statement "{\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }" { (if_statement "if (iVar2 == 0) goto LAB_00046f52;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00046f52;" goto statement_identifier ;)) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "FUN_0003aae0();" (call_expression "FUN_0003aae0()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_00046f00;" goto statement_identifier ;) })) (if_statement "if ((iVar2 == 0) || (iVar3 == 0)) break;" if (parenthesized_expression "((iVar2 == 0) || (iVar3 == 0))" ( (binary_expression "(iVar2 == 0) || (iVar3 == 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) ))) )) (break_statement "break;" break ;)) (expression_statement "local_24 = 0x10;" (assignment_expression "local_24 = 0x10" identifier = number_literal) ;) (expression_statement "iVar2 = FUN_0003d3b0(iVar3,local_28);" (assignment_expression "iVar2 = FUN_0003d3b0(iVar3,local_28)" identifier = (call_expression "FUN_0003d3b0(iVar3,local_28)" identifier (argument_list "(iVar3,local_28)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }" { (expression_statement "FUN_0003aae0();" (call_expression "FUN_0003aae0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0003aae0();" (call_expression "FUN_0003aae0()" identifier (argument_list "()" ( ))) ;) (expression_statement "*param_3 = 0xc;" (assignment_expression "*param_3 = 0xc" (pointer_expression "*param_3" * identifier) = number_literal) ;) (goto_statement "goto LAB_00046f52;" goto statement_identifier ;) })) (expression_statement "bVar1 = *(byte *)(in_ECX + 4);" (assignment_expression "bVar1 = *(byte *)(in_ECX + 4)" identifier = (pointer_expression "*(byte *)(in_ECX + 4)" * (cast_expression "(byte *)(in_ECX + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_ECX + 4)" ( (binary_expression "in_ECX + 4" identifier + number_literal) ))))) ;) (if_statement "if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;" if (parenthesized_expression "((bVar1 & 0xf7) == 2)" ( (binary_expression "(bVar1 & 0xf7) == 2" (parenthesized_expression "(bVar1 & 0xf7)" ( (binary_expression "bVar1 & 0xf7" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00046f00;" goto statement_identifier ;)) })) (if_statement "if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar2 = iVar3;\n      }" { (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) })) })) }) (else_clause "else {\nLAB_00046f52:\n    iVar2 = 0;\n  }" else (compound_statement "{\nLAB_00046f52:\n    iVar2 = 0;\n  }" { (labeled_statement "LAB_00046f52:\n    iVar2 = 0;" statement_identifier : (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;)) }))) (labeled_statement "LAB_00046f00:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0004e0c0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0004e0c0();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_0004e0c0();\n  }" { (expression_statement "FUN_0004e0c0();" (call_expression "FUN_0004e0c0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) || (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT)) )) (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (goto_statement goto statement_identifier ;)) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_00046e10(undefined4 param_1,int param_2,int *param_3)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  int in_ECX;\n  int in_GS_OFFSET;\n  undefined1 local_28 [4];\n  undefined1 local_24;\n  int local_20;\n  \n  FUN_0001a21d();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00045920(param_1,param_2,param_3);\n  if ((*param_3 == 0) || (iVar2 != 0)) {\n    while (bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }\n    }\n  }\n  else {\nLAB_00046f52:\n    iVar2 = 0;\n  }\nLAB_00046f00:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0004e0c0();\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_00046e10(undefined4 param_1,int param_2,int *param_3)" (identifier "FUN_00046e10") (parameter_list "(undefined4 param_1,int param_2,int *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  int in_ECX;\n  int in_GS_OFFSET;\n  undefined1 local_28 [4];\n  undefined1 local_24;\n  int local_20;\n  \n  FUN_0001a21d();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00045920(param_1,param_2,param_3);\n  if ((*param_3 == 0) || (iVar2 != 0)) {\n    while (bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }\n    }\n  }\n  else {\nLAB_00046f52:\n    iVar2 = 0;\n  }\nLAB_00046f00:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0004e0c0();\n  }\n  return iVar2;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int in_ECX;" (primitive_type "int") (identifier "in_ECX") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined1 local_28 [4];" (type_identifier "undefined1") (array_declarator "local_28 [4]" (identifier "local_28") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined1 local_24;" (type_identifier "undefined1") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "FUN_0001a21d();" (call_expression "FUN_0001a21d()" (identifier "FUN_0001a21d") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar2 = FUN_00045920(param_1,param_2,param_3);" (assignment_expression "iVar2 = FUN_00045920(param_1,param_2,param_3)" (identifier "iVar2") (= "=") (call_expression "FUN_00045920(param_1,param_2,param_3)" (identifier "FUN_00045920") (argument_list "(param_1,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if ((*param_3 == 0) || (iVar2 != 0)) {\n    while (bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }\n    }\n  }\n  else {\nLAB_00046f52:\n    iVar2 = 0;\n  }" (if "if") (parenthesized_expression "((*param_3 == 0) || (iVar2 != 0))" (( "(") (binary_expression "(*param_3 == 0) || (iVar2 != 0)" (parenthesized_expression "(*param_3 == 0)" (( "(") (binary_expression "*param_3 == 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    while (bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }\n    }\n  }" ({ "{") (while_statement "while (bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2) {\n      while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }\n    }" (while "while") (parenthesized_expression "(bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2)" (( "(") (comma_expression "bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2" (assignment_expression "bVar1 = *(byte *)(in_ECX + 4)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)(in_ECX + 4)" (* "*") (cast_expression "(byte *)(in_ECX + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_ECX + 4)" (( "(") (binary_expression "in_ECX + 4" (identifier "in_ECX") (+ "+") (number_literal "4")) () ")"))))) (, ",") (binary_expression "(bVar1 & 0xf7) != 2" (parenthesized_expression "(bVar1 & 0xf7)" (( "(") (binary_expression "bVar1 & 0xf7" (identifier "bVar1") (& "&") (number_literal "0xf7")) () ")")) (!= "!=") (number_literal "2"))) () ")")) (compound_statement "{\n      while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }\n      if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }\n    }" ({ "{") (while_statement "while( true ) {\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;\n        iVar3 = FUN_00045920(param_1,param_2,param_3);\n        if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }\n        if ((iVar2 == 0) || (iVar3 == 0)) break;\n        local_24 = 0x10;\n        iVar2 = FUN_0003d3b0(iVar3,local_28);\n        if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }\n        bVar1 = *(byte *)(in_ECX + 4);\n        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;\n      }" ({ "{") (if_statement "if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;" (if "if") (parenthesized_expression "((bVar1 == 9) && (param_2 != 0))" (( "(") (binary_expression "(bVar1 == 9) && (param_2 != 0)" (parenthesized_expression "(bVar1 == 9)" (( "(") (binary_expression "bVar1 == 9" (identifier "bVar1") (== "==") (number_literal "9")) () ")")) (&& "&&") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_00046f00;" (goto "goto") (statement_identifier "LAB_00046f00") (; ";"))) (expression_statement "iVar3 = FUN_00045920(param_1,param_2,param_3);" (assignment_expression "iVar3 = FUN_00045920(param_1,param_2,param_3)" (identifier "iVar3") (= "=") (call_expression "FUN_00045920(param_1,param_2,param_3)" (identifier "FUN_00045920") (argument_list "(param_1,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if ((*param_3 != 0) && (iVar3 == 0)) {\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }" (if "if") (parenthesized_expression "((*param_3 != 0) && (iVar3 == 0))" (( "(") (binary_expression "(*param_3 != 0) && (iVar3 == 0)" (parenthesized_expression "(*param_3 != 0)" (( "(") (binary_expression "*param_3 != 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n          if (iVar2 == 0) goto LAB_00046f52;\n          iVar2 = 0;\n          FUN_0003aae0();\n          goto LAB_00046f00;\n        }" ({ "{") (if_statement "if (iVar2 == 0) goto LAB_00046f52;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00046f52;" (goto "goto") (statement_identifier "LAB_00046f52") (; ";"))) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0003aae0();" (call_expression "FUN_0003aae0()" (identifier "FUN_0003aae0") (argument_list "()" (( "(") () ")"))) (; ";")) (goto_statement "goto LAB_00046f00;" (goto "goto") (statement_identifier "LAB_00046f00") (; ";")) (} "}"))) (if_statement "if ((iVar2 == 0) || (iVar3 == 0)) break;" (if "if") (parenthesized_expression "((iVar2 == 0) || (iVar3 == 0))" (( "(") (binary_expression "(iVar2 == 0) || (iVar3 == 0)" (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "local_24 = 0x10;" (assignment_expression "local_24 = 0x10" (identifier "local_24") (= "=") (number_literal "0x10")) (; ";")) (expression_statement "iVar2 = FUN_0003d3b0(iVar3,local_28);" (assignment_expression "iVar2 = FUN_0003d3b0(iVar3,local_28)" (identifier "iVar2") (= "=") (call_expression "FUN_0003d3b0(iVar3,local_28)" (identifier "FUN_0003d3b0") (argument_list "(iVar3,local_28)" (( "(") (identifier "iVar3") (, ",") (identifier "local_28") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          FUN_0003aae0();\n          FUN_0003aae0();\n          *param_3 = 0xc;\n          goto LAB_00046f52;\n        }" ({ "{") (expression_statement "FUN_0003aae0();" (call_expression "FUN_0003aae0()" (identifier "FUN_0003aae0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0003aae0();" (call_expression "FUN_0003aae0()" (identifier "FUN_0003aae0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*param_3 = 0xc;" (assignment_expression "*param_3 = 0xc" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0xc")) (; ";")) (goto_statement "goto LAB_00046f52;" (goto "goto") (statement_identifier "LAB_00046f52") (; ";")) (} "}"))) (expression_statement "bVar1 = *(byte *)(in_ECX + 4);" (assignment_expression "bVar1 = *(byte *)(in_ECX + 4)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)(in_ECX + 4)" (* "*") (cast_expression "(byte *)(in_ECX + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_ECX + 4)" (( "(") (binary_expression "in_ECX + 4" (identifier "in_ECX") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;" (if "if") (parenthesized_expression "((bVar1 & 0xf7) == 2)" (( "(") (binary_expression "(bVar1 & 0xf7) == 2" (parenthesized_expression "(bVar1 & 0xf7)" (( "(") (binary_expression "bVar1 & 0xf7" (identifier "bVar1") (& "&") (number_literal "0xf7")) () ")")) (== "==") (number_literal "2")) () ")")) (goto_statement "goto LAB_00046f00;" (goto "goto") (statement_identifier "LAB_00046f00") (; ";"))) (} "}"))) (if_statement "if (iVar2 == 0) {\n        iVar2 = iVar3;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar2 = iVar3;\n      }" ({ "{") (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" (identifier "iVar2") (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (} "}"))) (} "}")) (else_clause "else {\nLAB_00046f52:\n    iVar2 = 0;\n  }" (else "else") (compound_statement "{\nLAB_00046f52:\n    iVar2 = 0;\n  }" ({ "{") (labeled_statement "LAB_00046f52:\n    iVar2 = 0;" (statement_identifier "LAB_00046f52") (: ":") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";"))) (} "}")))) (labeled_statement "LAB_00046f00:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0004e0c0();\n  }" (statement_identifier "LAB_00046f00") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0004e0c0();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_0004e0c0();\n  }" ({ "{") (expression_statement "FUN_0004e0c0();" (call_expression "FUN_0004e0c0()" (identifier "FUN_0004e0c0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

type_1 *
function_1(type_2 *regexp,type_3 *var_6,type_4 *token,type_5 syntax,type_6 nest,
            type_7 *err)

{
  type_8 *prVar1;
  int var_12;
  type_9 var_5;
  type_1 *var_4;
  type_1 *var_7;
  type_1 *var_11;
  type_4 *in_ECX;
  type_3 *preg_00;
  int var_9;
  int var_2;
  type_10 uVar5;
  type_4 t;
  
  uVar5 = var_1();
  preg_00 = (type_3 *)((type_11)uVar5 >> 0x20);
  prVar1 = preg_00->buffer;
  var_12 = *(int *)(var_2 + 0x14);
  var_4 = var_3((type_2 *)uVar5,preg_00,in_ECX,(type_5)regexp,(type_6)var_6,
                          (type_7 *)token);
  if (((token->opr).sbcset == (type_12)0x0) || (var_4 != (type_1 *)0x0)) {
    while (var_5 = in_ECX->field_0x4, var_11 = var_4, (var_5 & 0xf7) != 2) {
      while( true ) {
        if ((var_5 == 9) && (var_11 = var_4, var_6 != (type_3 *)0x0)) goto LAB_00046f00;
        var_7 = var_3((type_2 *)uVar5,preg_00,in_ECX,(type_5)regexp,
                                   (type_6)var_6,(type_7 *)token);
        if (((token->opr).sbcset != (type_12)0x0) && (var_7 == (type_1 *)0x0)) {
          if (var_4 == (type_1 *)0x0) goto LAB_00046f52;
          var_11 = (type_1 *)0x0;
          var_8(var_4,(type_13 *)(var_9 + -0xb0d9),
                    (void *)0x0);
          goto LAB_00046f00;
        }
        if ((var_4 == (type_1 *)0x0) || (var_7 == (type_1 *)0x0)) break;
        t._4_1_ = 0x10;
        var_11 = var_10((type_8 *)&prVar1->str_tree_storage,
                                   (type_1 *)&prVar1->str_tree_storage_idx,var_4,
                                   (type_4 *)var_7,(type_8 *)&t);
        if (var_11 == (type_1 *)0x0) {
          var_8(var_7,(type_13 *)(var_9 + -0xb0d9),
                    (void *)0x0);
          var_8(var_4,(type_13 *)(var_9 + -0xb0d9),
                    (void *)0x0);
          (token->opr).idx = 0xc;
          goto LAB_00046f52;
        }
        var_5 = in_ECX->field_0x4;
        var_4 = var_11;
        if ((var_5 & 0xf7) == 2) goto LAB_00046f00;
      }
      if (var_4 == (type_1 *)0x0) {
        var_4 = var_7;
      }
    }
  }
  else {
LAB_00046f52:
    var_11 = (type_1 *)0x0;
  }
LAB_00046f00:
  if (var_12 != *(int *)(var_2 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_13();
  }
  return var_11;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (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: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier)))))))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (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))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (return_statement (identifier)))))

int MASKED(undefined4 param_1,int param_2,int *param_3)

{
  byte bVar1;
  int iVar2;
  int iVar3;
  int in_ECX;
  int in_GS_OFFSET;
  undefined1 local_28 [4];
  undefined1 local_24;
  int local_20;
  
  FUN_0001a21d();
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = FUN_00045920(param_1,param_2,param_3);
  if ((*param_3 == 0) || (iVar2 != 0)) {
    while (bVar1 = *(byte *)(in_ECX + 4), (bVar1 & 0xf7) != 2) {
      while( true ) {
        if ((bVar1 == 9) && (param_2 != 0)) goto LAB_00046f00;
        iVar3 = FUN_00045920(param_1,param_2,param_3);
        if ((*param_3 != 0) && (iVar3 == 0)) {
          if (iVar2 == 0) goto LAB_00046f52;
          iVar2 = 0;
          FUN_0003aae0();
          goto LAB_00046f00;
        }
        if ((iVar2 == 0) || (iVar3 == 0)) break;
        local_24 = 0x10;
        iVar2 = FUN_0003d3b0(iVar3,local_28);
        if (iVar2 == 0) {
          FUN_0003aae0();
          FUN_0003aae0();
          *param_3 = 0xc;
          goto LAB_00046f52;
        }
        bVar1 = *(byte *)(in_ECX + 4);
        if ((bVar1 & 0xf7) == 2) goto LAB_00046f00;
      }
      if (iVar2 == 0) {
        iVar2 = iVar3;
      }
    }
  }
  else {
LAB_00046f52:
    iVar2 = 0;
  }
LAB_00046f00:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0004e0c0();
  }
  return iVar2;
}

