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

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  uint uVar4;
  bin_tree_t *root;
  int iVar5;
  re_token_t *token_00;
  bin_tree_t *token_01;
  int *extraout_EDX;
  int unaff_EDI;
  int in_GS_OFFSET;
  reg_syntax_t in_stack_ffffffb0;
  reg_syntax_t syntax_00;
  Idx in_stack_ffffffb4;
  reg_errcode_t *in_stack_ffffffb8;
  re_string_t *err_00;
  re_token_t t;
  
  __x86_get_pc_thunk_di();
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = *extraout_EDX;
  uVar3 = *(undefined4 *)(iVar2 + 0x54);
  root = parse_branch((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,in_stack_ffffffb0,
                      in_stack_ffffffb4,in_stack_ffffffb8);
  if ((*(int *)syntax == 0) || (root != (bin_tree_t *)0x0)) {
    do {
      if (token_00->field_0x4 != '\n') goto LAB_0002dae0;
      syntax_00 = 0x2daaf;
      err_00 = regexp;
      iVar5 = peek_token(token_00,regexp,(uint)preg | 0x800000);
      regexp->cur_idx = regexp->cur_idx + iVar5;
      if (((token_00->field_0x4 & 0xf7) == 2) ||
         ((token_00->field_0x4 == 9 && (token != (re_token_t *)0x0)))) {
        token_01 = (bin_tree_t *)0x0;
      }
      else {
        uVar4 = *(uint *)(iVar2 + 0x54);
        *(undefined4 *)(iVar2 + 0x54) = uVar3;
        token_01 = parse_branch((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,syntax_00,
                                in_stack_ffffffb4,(reg_errcode_t *)err_00);
        if ((*(int *)syntax != 0) && (token_01 == (bin_tree_t *)0x0)) {
          if (root != (bin_tree_t *)0x0) {
            postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb249),
                      (void *)0x0);
          }
          goto LAB_0002dadd;
        }
        *(uint *)(iVar2 + 0x54) = *(uint *)(iVar2 + 0x54) | uVar4;
      }
      t._4_1_ = 10;
      root = create_token_tree((re_dfa_t *)(iVar2 + 0x38),(bin_tree_t *)(iVar2 + 0x40),root,
                               (re_token_t *)token_01,(re_dfa_t *)&t);
      regexp = err_00;
    } while (root != (bin_tree_t *)0x0);
    *(undefined4 *)syntax = 0xc;
  }
  else {
LAB_0002dadd:
    root = (bin_tree_t *)0x0;
  }
LAB_0002dae0:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return root;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



int __regparm1 FUN_0002d9a0(int param_1,undefined4 param_2,int param_3,int *param_4)

{
  int iVar1;
  undefined4 uVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  int extraout_ECX;
  int *extraout_EDX;
  int in_GS_OFFSET;
  undefined1 local_28 [4];
  undefined1 local_24;
  int local_20;
  
  FUN_0001a85e();
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = *extraout_EDX;
  uVar2 = *(undefined4 *)(iVar1 + 0x54);
  iVar4 = FUN_0002d830(param_2,param_3,param_4);
  if ((*param_4 == 0) || (iVar4 != 0)) {
    do {
      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;
      iVar5 = FUN_0002bba0();
      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;
      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||
         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {
        iVar5 = 0;
      }
      else {
        uVar3 = *(uint *)(iVar1 + 0x54);
        *(undefined4 *)(iVar1 + 0x54) = uVar2;
        iVar5 = FUN_0002d830(param_2,param_3,param_4);
        if ((*param_4 != 0) && (iVar5 == 0)) {
          if (iVar4 != 0) {
            FUN_00021500();
          }
          goto LAB_0002dadd;
        }
        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;
      }
      local_24 = 10;
      iVar4 = FUN_00023dd0(iVar5,local_28);
    } while (iVar4 != 0);
    *param_4 = 0xc;
  }
  else {
LAB_0002dadd:
    iVar4 = 0;
  }
LAB_0002dae0:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00031620();
  }
  return iVar4;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
CALL 0x0001a85e
ADD EDI,0x1045b
PUSH ESI
MOV ESI,ECX
PUSH EBX
SUB ESP,0x40
MOV dword ptr [ESP + 0x1c],EDX
MOV EAX,dword ptr [ESP + 0x5c]
MOV dword ptr [ESP + 0x20],EDI
MOV EBX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x30],EBX
XOR EBX,EBX
MOV EBX,dword ptr [EDX]
MOV dword ptr [ESP + 0x10],EAX
MOV EDI,dword ptr [EBX + 0x54]
MOV dword ptr [ESP + 0x18],EDI
PUSH EAX
MOV EAX,EBP
PUSH dword ptr [ESP + 0x5c]
PUSH dword ptr [ESP + 0x5c]
CALL 0x0002d830
ADD ESP,0x10
MOV EDI,EAX
MOV EAX,dword ptr [ESP + 0xc]
MOV ECX,dword ptr [EAX]
TEST ECX,ECX
JZ 0x0002da03
TEST EDI,EDI
JZ 0x0002dadd
MOV EAX,dword ptr [ESP + 0x50]
MOV dword ptr [ESP + 0x4],EBP
OR EAX,0x800000
MOV dword ptr [ESP + 0x8],EAX
JMP 0x0002da98
CMP AL,0x9
JNZ 0x0002da30
MOV EDX,dword ptr [ESP + 0x54]
TEST EDX,EDX
JNZ 0x0002dac4
MOV EAX,dword ptr [EBX + 0x54]
SUB ESP,0x4
MOV ECX,ESI
MOV dword ptr [ESP + 0x14],EAX
MOV EAX,dword ptr [ESP + 0x18]
MOV EBP,dword ptr [ESP + 0x10]
MOV dword ptr [EBX + 0x54],EAX
PUSH EBP
PUSH dword ptr [ESP + 0x5c]
PUSH dword ptr [ESP + 0x5c]
MOV EDX,dword ptr [ESP + 0x28]
MOV EAX,dword ptr [ESP + 0x14]
CALL 0x0002d830
ADD ESP,0x10
MOV ECX,EAX
MOV EAX,dword ptr [EBP]
TEST EAX,EAX
JZ 0x0002da6d
TEST ECX,ECX
JZ 0x0002dac8
MOV EAX,dword ptr [ESP + 0x10]
OR dword ptr [EBX + 0x54],EAX
MOV byte ptr [ESP + 0x28],0xa
SUB ESP,0x8
LEA EDX,[EBX + 0x40]
LEA EAX,[EBX + 0x38]
LEA EBP,[ESP + 0x2c]
PUSH EBP
PUSH ECX
MOV ECX,EDI
CALL 0x00023dd0
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x0002db00
CMP byte ptr [ESI + 0x4],0xa
JNZ 0x0002dae0
MOV EBP,dword ptr [ESP + 0x4]
MOV ECX,dword ptr [ESP + 0x8]
MOV EAX,ESI
MOV EDX,EBP
CALL 0x0002bba0
ADD dword ptr [EBP + 0x28],EAX
MOVZX EAX,byte ptr [ESI + 0x4]
MOV EDX,EAX
AND EDX,0xfffffff7
CMP DL,0x2
JNZ 0x0002da20
XOR ECX,ECX
JMP 0x0002da74
TEST EDI,EDI
JZ 0x0002dadd
MOV EAX,dword ptr [ESP + 0x1c]
LEA EDX,[EAX + 0xfffe495c]
MOV EAX,EDI
CALL 0x00021500
XOR EDI,EDI
NOP
MOV ESI,dword ptr [ESP + 0x2c]
XOR ESI,dword ptr GS:[0x14]
MOV EAX,EDI
JNZ 0x0002db0c
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX],0xc
JMP 0x0002dae0
CALL 0x00031620
(translation_unit "int __regparm1 FUN_0002d9a0(int param_1,undefined4 param_2,int param_3,int *param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int extraout_ECX;\n  int *extraout_EDX;\n  int in_GS_OFFSET;\n  undefined1 local_28 [4];\n  undefined1 local_24;\n  int local_20;\n  \n  FUN_0001a85e();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = *extraout_EDX;\n  uVar2 = *(undefined4 *)(iVar1 + 0x54);\n  iVar4 = FUN_0002d830(param_2,param_3,param_4);\n  if ((*param_4 == 0) || (iVar4 != 0)) {\n    do {\n      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;\n      iVar5 = FUN_0002bba0();\n      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;\n      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }\n      local_24 = 10;\n      iVar4 = FUN_00023dd0(iVar5,local_28);\n    } while (iVar4 != 0);\n    *param_4 = 0xc;\n  }\n  else {\nLAB_0002dadd:\n    iVar4 = 0;\n  }\nLAB_0002dae0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00031620();\n  }\n  return iVar4;\n}\n\n" (function_definition "int __regparm1 FUN_0002d9a0(int param_1,undefined4 param_2,int param_3,int *param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int extraout_ECX;\n  int *extraout_EDX;\n  int in_GS_OFFSET;\n  undefined1 local_28 [4];\n  undefined1 local_24;\n  int local_20;\n  \n  FUN_0001a85e();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = *extraout_EDX;\n  uVar2 = *(undefined4 *)(iVar1 + 0x54);\n  iVar4 = FUN_0002d830(param_2,param_3,param_4);\n  if ((*param_4 == 0) || (iVar4 != 0)) {\n    do {\n      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;\n      iVar5 = FUN_0002bba0();\n      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;\n      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }\n      local_24 = 10;\n      iVar4 = FUN_00023dd0(iVar5,local_28);\n    } while (iVar4 != 0);\n    *param_4 = 0xc;\n  }\n  else {\nLAB_0002dadd:\n    iVar4 = 0;\n  }\nLAB_0002dae0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00031620();\n  }\n  return iVar4;\n}" primitive_type (ERROR "__regparm1" identifier) (function_declarator "FUN_0002d9a0(int param_1,undefined4 param_2,int param_3,int *param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,int *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int extraout_ECX;\n  int *extraout_EDX;\n  int in_GS_OFFSET;\n  undefined1 local_28 [4];\n  undefined1 local_24;\n  int local_20;\n  \n  FUN_0001a85e();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = *extraout_EDX;\n  uVar2 = *(undefined4 *)(iVar1 + 0x54);\n  iVar4 = FUN_0002d830(param_2,param_3,param_4);\n  if ((*param_4 == 0) || (iVar4 != 0)) {\n    do {\n      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;\n      iVar5 = FUN_0002bba0();\n      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;\n      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }\n      local_24 = 10;\n      iVar4 = FUN_00023dd0(iVar5,local_28);\n    } while (iVar4 != 0);\n    *param_4 = 0xc;\n  }\n  else {\nLAB_0002dadd:\n    iVar4 = 0;\n  }\nLAB_0002dae0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00031620();\n  }\n  return iVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "int *extraout_EDX;" primitive_type (pointer_declarator "*extraout_EDX" * 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_0001a85e();" (call_expression "FUN_0001a85e()" 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 "iVar1 = *extraout_EDX;" (assignment_expression "iVar1 = *extraout_EDX" identifier = (pointer_expression "*extraout_EDX" * identifier)) ;) (expression_statement "uVar2 = *(undefined4 *)(iVar1 + 0x54);" (assignment_expression "uVar2 = *(undefined4 *)(iVar1 + 0x54)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + 0x54)" * (cast_expression "(undefined4 *)(iVar1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x54)" ( (binary_expression "iVar1 + 0x54" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = FUN_0002d830(param_2,param_3,param_4);" (assignment_expression "iVar4 = FUN_0002d830(param_2,param_3,param_4)" identifier = (call_expression "FUN_0002d830(param_2,param_3,param_4)" identifier (argument_list "(param_2,param_3,param_4)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((*param_4 == 0) || (iVar4 != 0)) {\n    do {\n      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;\n      iVar5 = FUN_0002bba0();\n      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;\n      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }\n      local_24 = 10;\n      iVar4 = FUN_00023dd0(iVar5,local_28);\n    } while (iVar4 != 0);\n    *param_4 = 0xc;\n  }\n  else {\nLAB_0002dadd:\n    iVar4 = 0;\n  }" if (parenthesized_expression "((*param_4 == 0) || (iVar4 != 0))" ( (binary_expression "(*param_4 == 0) || (iVar4 != 0)" (parenthesized_expression "(*param_4 == 0)" ( (binary_expression "*param_4 == 0" (pointer_expression "*param_4" * identifier) == number_literal) )) || (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    do {\n      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;\n      iVar5 = FUN_0002bba0();\n      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;\n      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }\n      local_24 = 10;\n      iVar4 = FUN_00023dd0(iVar5,local_28);\n    } while (iVar4 != 0);\n    *param_4 = 0xc;\n  }" { (do_statement "do {\n      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;\n      iVar5 = FUN_0002bba0();\n      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;\n      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }\n      local_24 = 10;\n      iVar4 = FUN_00023dd0(iVar5,local_28);\n    } while (iVar4 != 0);" do (compound_statement "{\n      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;\n      iVar5 = FUN_0002bba0();\n      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;\n      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }\n      local_24 = 10;\n      iVar4 = FUN_00023dd0(iVar5,local_28);\n    }" { (if_statement "if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;" if (parenthesized_expression "(*(char *)(extraout_ECX + 4) != '\n')" ( (binary_expression "*(char *)(extraout_ECX + 4) != '\n'" (pointer_expression "*(char *)(extraout_ECX + 4)" * (cast_expression "(char *)(extraout_ECX + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX + 4)" ( (binary_expression "extraout_ECX + 4" identifier + number_literal) )))) != (char_literal "'\n'" ' escape_sequence ')) )) (goto_statement "goto LAB_0002dae0;" goto statement_identifier ;)) (expression_statement "iVar5 = FUN_0002bba0();" (assignment_expression "iVar5 = FUN_0002bba0()" identifier = (call_expression "FUN_0002bba0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;" (assignment_expression "*(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5" (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x28) + iVar5" (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) + identifier)) ;) (if_statement "if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }" if (parenthesized_expression "(((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0))))" ( (binary_expression "((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))" (parenthesized_expression "((*(byte *)(extraout_ECX + 4) & 0xf7) == 2)" ( (binary_expression "(*(byte *)(extraout_ECX + 4) & 0xf7) == 2" (parenthesized_expression "(*(byte *)(extraout_ECX + 4) & 0xf7)" ( (binary_expression "*(byte *)(extraout_ECX + 4) & 0xf7" (pointer_expression "*(byte *)(extraout_ECX + 4)" * (cast_expression "(byte *)(extraout_ECX + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX + 4)" ( (binary_expression "extraout_ECX + 4" identifier + number_literal) )))) & number_literal) )) == number_literal) )) || (parenthesized_expression "((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))" ( (parenthesized_expression "(*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0))" ( (binary_expression "*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)" (binary_expression "*(byte *)(extraout_ECX + 4) == 9" (pointer_expression "*(byte *)(extraout_ECX + 4)" * (cast_expression "(byte *)(extraout_ECX + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX + 4)" ( (binary_expression "extraout_ECX + 4" identifier + number_literal) )))) == number_literal) && (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) ))) )) ))) )) (compound_statement "{\n        iVar5 = 0;\n      }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }" else (compound_statement "{\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }" { (expression_statement "uVar3 = *(uint *)(iVar1 + 0x54);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x54)" identifier = (pointer_expression "*(uint *)(iVar1 + 0x54)" * (cast_expression "(uint *)(iVar1 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x54)" ( (binary_expression "iVar1 + 0x54" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x54) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x54) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x54)" * (cast_expression "(undefined4 *)(iVar1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x54)" ( (binary_expression "iVar1 + 0x54" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = FUN_0002d830(param_2,param_3,param_4);" (assignment_expression "iVar5 = FUN_0002d830(param_2,param_3,param_4)" identifier = (call_expression "FUN_0002d830(param_2,param_3,param_4)" identifier (argument_list "(param_2,param_3,param_4)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }" if (parenthesized_expression "((*param_4 != 0) && (iVar5 == 0))" ( (binary_expression "(*param_4 != 0) && (iVar5 == 0)" (parenthesized_expression "(*param_4 != 0)" ( (binary_expression "*param_4 != 0" (pointer_expression "*param_4" * identifier) != number_literal) )) && (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) ))) )) (compound_statement "{\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }" { (if_statement "if (iVar4 != 0) {\n            FUN_00021500();\n          }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n            FUN_00021500();\n          }" { (expression_statement "FUN_00021500();" (call_expression "FUN_00021500()" identifier (argument_list "()" ( ))) ;) })) (goto_statement "goto LAB_0002dadd;" goto statement_identifier ;) })) (expression_statement "*(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;" (assignment_expression "*(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3" (pointer_expression "*(uint *)(iVar1 + 0x54)" * (cast_expression "(uint *)(iVar1 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x54)" ( (binary_expression "iVar1 + 0x54" identifier + number_literal) )))) = (binary_expression "*(uint *)(iVar1 + 0x54) | uVar3" (pointer_expression "*(uint *)(iVar1 + 0x54)" * (cast_expression "(uint *)(iVar1 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x54)" ( (binary_expression "iVar1 + 0x54" identifier + number_literal) )))) | identifier)) ;) }))) (expression_statement "local_24 = 10;" (assignment_expression "local_24 = 10" identifier = number_literal) ;) (expression_statement "iVar4 = FUN_00023dd0(iVar5,local_28);" (assignment_expression "iVar4 = FUN_00023dd0(iVar5,local_28)" identifier = (call_expression "FUN_00023dd0(iVar5,local_28)" identifier (argument_list "(iVar5,local_28)" ( identifier , identifier )))) ;) }) while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) ;) (expression_statement "*param_4 = 0xc;" (assignment_expression "*param_4 = 0xc" (pointer_expression "*param_4" * identifier) = number_literal) ;) }) (else_clause "else {\nLAB_0002dadd:\n    iVar4 = 0;\n  }" else (compound_statement "{\nLAB_0002dadd:\n    iVar4 = 0;\n  }" { (labeled_statement "LAB_0002dadd:\n    iVar4 = 0;" statement_identifier : (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;)) }))) (labeled_statement "LAB_0002dae0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00031620();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00031620();\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_00031620();\n  }" { comment (expression_statement "FUN_00031620();" (call_expression "FUN_00031620()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "bin_tree_t * __regparm1\nparse_reg_exp(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  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  bin_tree_t *root;\n  int iVar5;\n  re_token_t *token_00;\n  bin_tree_t *token_01;\n  int *extraout_EDX;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  reg_syntax_t in_stack_ffffffb0;\n  reg_syntax_t syntax_00;\n  Idx in_stack_ffffffb4;\n  reg_errcode_t *in_stack_ffffffb8;\n  re_string_t *err_00;\n  re_token_t t;\n  \n  __x86_get_pc_thunk_di();\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = *extraout_EDX;\n  uVar3 = *(undefined4 *)(iVar2 + 0x54);\n  root = parse_branch((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,in_stack_ffffffb0,\n                      in_stack_ffffffb4,in_stack_ffffffb8);\n  if ((*(int *)syntax == 0) || (root != (bin_tree_t *)0x0)) {\n    do {\n      if (token_00->field_0x4 != '\n') goto LAB_0002dae0;\n      syntax_00 = 0x2daaf;\n      err_00 = regexp;\n      iVar5 = peek_token(token_00,regexp,(uint)preg | 0x800000);\n      regexp->cur_idx = regexp->cur_idx + iVar5;\n      if (((token_00->field_0x4 & 0xf7) == 2) ||\n         ((token_00->field_0x4 == 9 && (token != (re_token_t *)0x0)))) {\n        token_01 = (bin_tree_t *)0x0;\n      }\n      else {\n        uVar4 = *(uint *)(iVar2 + 0x54);\n        *(undefined4 *)(iVar2 + 0x54) = uVar3;\n        token_01 = parse_branch((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,syntax_00,\n                                in_stack_ffffffb4,(reg_errcode_t *)err_00);\n        if ((*(int *)syntax != 0) && (token_01 == (bin_tree_t *)0x0)) {\n          if (root != (bin_tree_t *)0x0) {\n            postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb249),\n                      (void *)0x0);\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar2 + 0x54) = *(uint *)(iVar2 + 0x54) | uVar4;\n      }\n      t._4_1_ = 10;\n      root = create_token_tree((re_dfa_t *)(iVar2 + 0x38),(bin_tree_t *)(iVar2 + 0x40),root,\n                               (re_token_t *)token_01,(re_dfa_t *)&t);\n      regexp = err_00;\n    } while (root != (bin_tree_t *)0x0);\n    *(undefined4 *)syntax = 0xc;\n  }\n  else {\nLAB_0002dadd:\n    root = (bin_tree_t *)0x0;\n  }\nLAB_0002dae0:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return root;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" (ERROR "bin_tree_t * __regparm1\nparse_reg_exp(re_string_t *regexp,regex_t *preg,re_token_t *token,reg_syntax_t syntax,Idx nest,\n             reg_errcode_t *err)" (binary_expression "bin_tree_t * __regparm1\nparse_reg_exp(re_string_t *regexp,regex_t *preg,re_token_t *token,reg_syntax_t syntax,Idx nest,\n             reg_errcode_t *err)" identifier * (ERROR "__regparm1" identifier) (call_expression "parse_reg_exp(re_string_t *regexp,regex_t *preg,re_token_t *token,reg_syntax_t syntax,Idx nest,\n             reg_errcode_t *err)" identifier (argument_list "(re_string_t *regexp,regex_t *preg,re_token_t *token,reg_syntax_t syntax,Idx nest,\n             reg_errcode_t *err)" ( (binary_expression "re_string_t *regexp" identifier * identifier) , (binary_expression "regex_t *preg" identifier * identifier) , (binary_expression "re_token_t *token" identifier * identifier) , identifier (ERROR "syntax" identifier) , (ERROR "Idx" identifier) identifier , (binary_expression "reg_errcode_t *err" identifier * identifier) ))))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  bin_tree_t *root;\n  int iVar5;\n  re_token_t *token_00;\n  bin_tree_t *token_01;\n  int *extraout_EDX;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  reg_syntax_t in_stack_ffffffb0;\n  reg_syntax_t syntax_00;\n  Idx in_stack_ffffffb4;\n  reg_errcode_t *in_stack_ffffffb8;\n  re_string_t *err_00;\n  re_token_t t;\n  \n  __x86_get_pc_thunk_di();\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = *extraout_EDX;\n  uVar3 = *(undefined4 *)(iVar2 + 0x54);\n  root = parse_branch((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,in_stack_ffffffb0,\n                      in_stack_ffffffb4,in_stack_ffffffb8);\n  if ((*(int *)syntax == 0) || (root != (bin_tree_t *)0x0)) {\n    do {\n      if (token_00->field_0x4 != '\n') goto LAB_0002dae0;\n      syntax_00 = 0x2daaf;\n      err_00 = regexp;\n      iVar5 = peek_token(token_00,regexp,(uint)preg | 0x800000);\n      regexp->cur_idx = regexp->cur_idx + iVar5;\n      if (((token_00->field_0x4 & 0xf7) == 2) ||\n         ((token_00->field_0x4 == 9 && (token != (re_token_t *)0x0)))) {\n        token_01 = (bin_tree_t *)0x0;\n      }\n      else {\n        uVar4 = *(uint *)(iVar2 + 0x54);\n        *(undefined4 *)(iVar2 + 0x54) = uVar3;\n        token_01 = parse_branch((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,syntax_00,\n                                in_stack_ffffffb4,(reg_errcode_t *)err_00);\n        if ((*(int *)syntax != 0) && (token_01 == (bin_tree_t *)0x0)) {\n          if (root != (bin_tree_t *)0x0) {\n            postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb249),\n                      (void *)0x0);\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar2 + 0x54) = *(uint *)(iVar2 + 0x54) | uVar4;\n      }\n      t._4_1_ = 10;\n      root = create_token_tree((re_dfa_t *)(iVar2 + 0x38),(bin_tree_t *)(iVar2 + 0x40),root,\n                               (re_token_t *)token_01,(re_dfa_t *)&t);\n      regexp = err_00;\n    } while (root != (bin_tree_t *)0x0);\n    *(undefined4 *)syntax = 0xc;\n  }\n  else {\nLAB_0002dadd:\n    root = (bin_tree_t *)0x0;\n  }\nLAB_0002dae0:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return root;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "bin_tree_t *root;" type_identifier (pointer_declarator "*root" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "re_token_t *token_00;" type_identifier (pointer_declarator "*token_00" * identifier) ;) (declaration "bin_tree_t *token_01;" type_identifier (pointer_declarator "*token_01" * identifier) ;) (declaration "int *extraout_EDX;" primitive_type (pointer_declarator "*extraout_EDX" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "reg_syntax_t in_stack_ffffffb0;" type_identifier identifier ;) (declaration "reg_syntax_t syntax_00;" type_identifier identifier ;) (declaration "Idx in_stack_ffffffb4;" type_identifier identifier ;) (declaration "reg_errcode_t *in_stack_ffffffb8;" type_identifier (pointer_declarator "*in_stack_ffffffb8" * identifier) ;) (declaration "re_string_t *err_00;" type_identifier (pointer_declarator "*err_00" * identifier) ;) (declaration "re_token_t t;" type_identifier identifier ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(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 = *extraout_EDX;" (assignment_expression "iVar2 = *extraout_EDX" identifier = (pointer_expression "*extraout_EDX" * identifier)) ;) (expression_statement "uVar3 = *(undefined4 *)(iVar2 + 0x54);" (assignment_expression "uVar3 = *(undefined4 *)(iVar2 + 0x54)" identifier = (pointer_expression "*(undefined4 *)(iVar2 + 0x54)" * (cast_expression "(undefined4 *)(iVar2 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x54)" ( (binary_expression "iVar2 + 0x54" identifier + number_literal) ))))) ;) (expression_statement "root = parse_branch((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,in_stack_ffffffb0,\n                      in_stack_ffffffb4,in_stack_ffffffb8);" (assignment_expression "root = parse_branch((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,in_stack_ffffffb0,\n                      in_stack_ffffffb4,in_stack_ffffffb8)" identifier = (call_expression "parse_branch((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,in_stack_ffffffb0,\n                      in_stack_ffffffb4,in_stack_ffffffb8)" identifier (argument_list "((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,in_stack_ffffffb0,\n                      in_stack_ffffffb4,in_stack_ffffffb8)" ( (cast_expression "(re_string_t *)preg" ( (type_descriptor "re_string_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(regex_t *)token" ( (type_descriptor "regex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(re_token_t *)syntax" ( (type_descriptor "re_token_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier , identifier )))) ;) (if_statement "if ((*(int *)syntax == 0) || (root != (bin_tree_t *)0x0)) {\n    do {\n      if (token_00->field_0x4 != '\n') goto LAB_0002dae0;\n      syntax_00 = 0x2daaf;\n      err_00 = regexp;\n      iVar5 = peek_token(token_00,regexp,(uint)preg | 0x800000);\n      regexp->cur_idx = regexp->cur_idx + iVar5;\n      if (((token_00->field_0x4 & 0xf7) == 2) ||\n         ((token_00->field_0x4 == 9 && (token != (re_token_t *)0x0)))) {\n        token_01 = (bin_tree_t *)0x0;\n      }\n      else {\n        uVar4 = *(uint *)(iVar2 + 0x54);\n        *(undefined4 *)(iVar2 + 0x54) = uVar3;\n        token_01 = parse_branch((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,syntax_00,\n                                in_stack_ffffffb4,(reg_errcode_t *)err_00);\n        if ((*(int *)syntax != 0) && (token_01 == (bin_tree_t *)0x0)) {\n          if (root != (bin_tree_t *)0x0) {\n            postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb249),\n                      (void *)0x0);\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar2 + 0x54) = *(uint *)(iVar2 + 0x54) | uVar4;\n      }\n      t._4_1_ = 10;\n      root = create_token_tree((re_dfa_t *)(iVar2 + 0x38),(bin_tree_t *)(iVar2 + 0x40),root,\n                               (re_token_t *)token_01,(re_dfa_t *)&t);\n      regexp = err_00;\n    } while (root != (bin_tree_t *)0x0);\n    *(undefined4 *)syntax = 0xc;\n  }\n  else {\nLAB_0002dadd:\n    root = (bin_tree_t *)0x0;\n  }" if (parenthesized_expression "((*(int *)syntax == 0) || (root != (bin_tree_t *)0x0))" ( (binary_expression "(*(int *)syntax == 0) || (root != (bin_tree_t *)0x0)" (parenthesized_expression "(*(int *)syntax == 0)" ( (binary_expression "*(int *)syntax == 0" (pointer_expression "*(int *)syntax" * (cast_expression "(int *)syntax" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) 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    do {\n      if (token_00->field_0x4 != '\n') goto LAB_0002dae0;\n      syntax_00 = 0x2daaf;\n      err_00 = regexp;\n      iVar5 = peek_token(token_00,regexp,(uint)preg | 0x800000);\n      regexp->cur_idx = regexp->cur_idx + iVar5;\n      if (((token_00->field_0x4 & 0xf7) == 2) ||\n         ((token_00->field_0x4 == 9 && (token != (re_token_t *)0x0)))) {\n        token_01 = (bin_tree_t *)0x0;\n      }\n      else {\n        uVar4 = *(uint *)(iVar2 + 0x54);\n        *(undefined4 *)(iVar2 + 0x54) = uVar3;\n        token_01 = parse_branch((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,syntax_00,\n                                in_stack_ffffffb4,(reg_errcode_t *)err_00);\n        if ((*(int *)syntax != 0) && (token_01 == (bin_tree_t *)0x0)) {\n          if (root != (bin_tree_t *)0x0) {\n            postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb249),\n                      (void *)0x0);\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar2 + 0x54) = *(uint *)(iVar2 + 0x54) | uVar4;\n      }\n      t._4_1_ = 10;\n      root = create_token_tree((re_dfa_t *)(iVar2 + 0x38),(bin_tree_t *)(iVar2 + 0x40),root,\n                               (re_token_t *)token_01,(re_dfa_t *)&t);\n      regexp = err_00;\n    } while (root != (bin_tree_t *)0x0);\n    *(undefined4 *)syntax = 0xc;\n  }" { (do_statement "do {\n      if (token_00->field_0x4 != '\n') goto LAB_0002dae0;\n      syntax_00 = 0x2daaf;\n      err_00 = regexp;\n      iVar5 = peek_token(token_00,regexp,(uint)preg | 0x800000);\n      regexp->cur_idx = regexp->cur_idx + iVar5;\n      if (((token_00->field_0x4 & 0xf7) == 2) ||\n         ((token_00->field_0x4 == 9 && (token != (re_token_t *)0x0)))) {\n        token_01 = (bin_tree_t *)0x0;\n      }\n      else {\n        uVar4 = *(uint *)(iVar2 + 0x54);\n        *(undefined4 *)(iVar2 + 0x54) = uVar3;\n        token_01 = parse_branch((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,syntax_00,\n                                in_stack_ffffffb4,(reg_errcode_t *)err_00);\n        if ((*(int *)syntax != 0) && (token_01 == (bin_tree_t *)0x0)) {\n          if (root != (bin_tree_t *)0x0) {\n            postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb249),\n                      (void *)0x0);\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar2 + 0x54) = *(uint *)(iVar2 + 0x54) | uVar4;\n      }\n      t._4_1_ = 10;\n      root = create_token_tree((re_dfa_t *)(iVar2 + 0x38),(bin_tree_t *)(iVar2 + 0x40),root,\n                               (re_token_t *)token_01,(re_dfa_t *)&t);\n      regexp = err_00;\n    } while (root != (bin_tree_t *)0x0);" do (compound_statement "{\n      if (token_00->field_0x4 != '\n') goto LAB_0002dae0;\n      syntax_00 = 0x2daaf;\n      err_00 = regexp;\n      iVar5 = peek_token(token_00,regexp,(uint)preg | 0x800000);\n      regexp->cur_idx = regexp->cur_idx + iVar5;\n      if (((token_00->field_0x4 & 0xf7) == 2) ||\n         ((token_00->field_0x4 == 9 && (token != (re_token_t *)0x0)))) {\n        token_01 = (bin_tree_t *)0x0;\n      }\n      else {\n        uVar4 = *(uint *)(iVar2 + 0x54);\n        *(undefined4 *)(iVar2 + 0x54) = uVar3;\n        token_01 = parse_branch((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,syntax_00,\n                                in_stack_ffffffb4,(reg_errcode_t *)err_00);\n        if ((*(int *)syntax != 0) && (token_01 == (bin_tree_t *)0x0)) {\n          if (root != (bin_tree_t *)0x0) {\n            postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb249),\n                      (void *)0x0);\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar2 + 0x54) = *(uint *)(iVar2 + 0x54) | uVar4;\n      }\n      t._4_1_ = 10;\n      root = create_token_tree((re_dfa_t *)(iVar2 + 0x38),(bin_tree_t *)(iVar2 + 0x40),root,\n                               (re_token_t *)token_01,(re_dfa_t *)&t);\n      regexp = err_00;\n    }" { (if_statement "if (token_00->field_0x4 != '\n') goto LAB_0002dae0;" if (parenthesized_expression "(token_00->field_0x4 != '\n')" ( (binary_expression "token_00->field_0x4 != '\n'" (field_expression "token_00->field_0x4" identifier -> field_identifier) != (char_literal "'\n'" ' escape_sequence ')) )) (goto_statement "goto LAB_0002dae0;" goto statement_identifier ;)) (expression_statement "syntax_00 = 0x2daaf;" (assignment_expression "syntax_00 = 0x2daaf" identifier = number_literal) ;) (expression_statement "err_00 = regexp;" (assignment_expression "err_00 = regexp" identifier = identifier) ;) (expression_statement "iVar5 = peek_token(token_00,regexp,(uint)preg | 0x800000);" (assignment_expression "iVar5 = peek_token(token_00,regexp,(uint)preg | 0x800000)" identifier = (call_expression "peek_token(token_00,regexp,(uint)preg | 0x800000)" identifier (argument_list "(token_00,regexp,(uint)preg | 0x800000)" ( identifier , identifier , (binary_expression "(uint)preg | 0x800000" (cast_expression "(uint)preg" ( (type_descriptor "uint" type_identifier) ) identifier) | number_literal) )))) ;) (expression_statement "regexp->cur_idx = regexp->cur_idx + iVar5;" (assignment_expression "regexp->cur_idx = regexp->cur_idx + iVar5" (field_expression "regexp->cur_idx" identifier -> field_identifier) = (binary_expression "regexp->cur_idx + iVar5" (field_expression "regexp->cur_idx" identifier -> field_identifier) + identifier)) ;) (if_statement "if (((token_00->field_0x4 & 0xf7) == 2) ||\n         ((token_00->field_0x4 == 9 && (token != (re_token_t *)0x0)))) {\n        token_01 = (bin_tree_t *)0x0;\n      }\n      else {\n        uVar4 = *(uint *)(iVar2 + 0x54);\n        *(undefined4 *)(iVar2 + 0x54) = uVar3;\n        token_01 = parse_branch((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,syntax_00,\n                                in_stack_ffffffb4,(reg_errcode_t *)err_00);\n        if ((*(int *)syntax != 0) && (token_01 == (bin_tree_t *)0x0)) {\n          if (root != (bin_tree_t *)0x0) {\n            postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb249),\n                      (void *)0x0);\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar2 + 0x54) = *(uint *)(iVar2 + 0x54) | uVar4;\n      }" if (parenthesized_expression "(((token_00->field_0x4 & 0xf7) == 2) ||\n         ((token_00->field_0x4 == 9 && (token != (re_token_t *)0x0))))" ( (binary_expression "((token_00->field_0x4 & 0xf7) == 2) ||\n         ((token_00->field_0x4 == 9 && (token != (re_token_t *)0x0)))" (parenthesized_expression "((token_00->field_0x4 & 0xf7) == 2)" ( (binary_expression "(token_00->field_0x4 & 0xf7) == 2" (parenthesized_expression "(token_00->field_0x4 & 0xf7)" ( (binary_expression "token_00->field_0x4 & 0xf7" (field_expression "token_00->field_0x4" identifier -> field_identifier) & number_literal) )) == number_literal) )) || (parenthesized_expression "((token_00->field_0x4 == 9 && (token != (re_token_t *)0x0)))" ( (parenthesized_expression "(token_00->field_0x4 == 9 && (token != (re_token_t *)0x0))" ( (binary_expression "token_00->field_0x4 == 9 && (token != (re_token_t *)0x0)" (binary_expression "token_00->field_0x4 == 9" (field_expression "token_00->field_0x4" identifier -> field_identifier) == number_literal) && (parenthesized_expression "(token != (re_token_t *)0x0)" ( (binary_expression "token != (re_token_t *)0x0" identifier != (cast_expression "(re_token_t *)0x0" ( (type_descriptor "re_token_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) ))) )) (compound_statement "{\n        token_01 = (bin_tree_t *)0x0;\n      }" { (expression_statement "token_01 = (bin_tree_t *)0x0;" (assignment_expression "token_01 = (bin_tree_t *)0x0" identifier = (cast_expression "(bin_tree_t *)0x0" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n        uVar4 = *(uint *)(iVar2 + 0x54);\n        *(undefined4 *)(iVar2 + 0x54) = uVar3;\n        token_01 = parse_branch((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,syntax_00,\n                                in_stack_ffffffb4,(reg_errcode_t *)err_00);\n        if ((*(int *)syntax != 0) && (token_01 == (bin_tree_t *)0x0)) {\n          if (root != (bin_tree_t *)0x0) {\n            postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb249),\n                      (void *)0x0);\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar2 + 0x54) = *(uint *)(iVar2 + 0x54) | uVar4;\n      }" else (compound_statement "{\n        uVar4 = *(uint *)(iVar2 + 0x54);\n        *(undefined4 *)(iVar2 + 0x54) = uVar3;\n        token_01 = parse_branch((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,syntax_00,\n                                in_stack_ffffffb4,(reg_errcode_t *)err_00);\n        if ((*(int *)syntax != 0) && (token_01 == (bin_tree_t *)0x0)) {\n          if (root != (bin_tree_t *)0x0) {\n            postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb249),\n                      (void *)0x0);\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar2 + 0x54) = *(uint *)(iVar2 + 0x54) | uVar4;\n      }" { (expression_statement "uVar4 = *(uint *)(iVar2 + 0x54);" (assignment_expression "uVar4 = *(uint *)(iVar2 + 0x54)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x54)" * (cast_expression "(uint *)(iVar2 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x54)" ( (binary_expression "iVar2 + 0x54" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x54) = uVar3;" (assignment_expression "*(undefined4 *)(iVar2 + 0x54) = uVar3" (pointer_expression "*(undefined4 *)(iVar2 + 0x54)" * (cast_expression "(undefined4 *)(iVar2 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x54)" ( (binary_expression "iVar2 + 0x54" identifier + number_literal) )))) = identifier) ;) (expression_statement "token_01 = parse_branch((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,syntax_00,\n                                in_stack_ffffffb4,(reg_errcode_t *)err_00);" (assignment_expression "token_01 = parse_branch((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,syntax_00,\n                                in_stack_ffffffb4,(reg_errcode_t *)err_00)" identifier = (call_expression "parse_branch((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,syntax_00,\n                                in_stack_ffffffb4,(reg_errcode_t *)err_00)" identifier (argument_list "((re_string_t *)preg,(regex_t *)token,(re_token_t *)syntax,syntax_00,\n                                in_stack_ffffffb4,(reg_errcode_t *)err_00)" ( (cast_expression "(re_string_t *)preg" ( (type_descriptor "re_string_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(regex_t *)token" ( (type_descriptor "regex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(re_token_t *)syntax" ( (type_descriptor "re_token_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier , (cast_expression "(reg_errcode_t *)err_00" ( (type_descriptor "reg_errcode_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if ((*(int *)syntax != 0) && (token_01 == (bin_tree_t *)0x0)) {\n          if (root != (bin_tree_t *)0x0) {\n            postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb249),\n                      (void *)0x0);\n          }\n          goto LAB_0002dadd;\n        }" if (parenthesized_expression "((*(int *)syntax != 0) && (token_01 == (bin_tree_t *)0x0))" ( (binary_expression "(*(int *)syntax != 0) && (token_01 == (bin_tree_t *)0x0)" (parenthesized_expression "(*(int *)syntax != 0)" ( (binary_expression "*(int *)syntax != 0" (pointer_expression "*(int *)syntax" * (cast_expression "(int *)syntax" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) && (parenthesized_expression "(token_01 == (bin_tree_t *)0x0)" ( (binary_expression "token_01 == (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) {\n            postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb249),\n                      (void *)0x0);\n          }\n          goto LAB_0002dadd;\n        }" { (if_statement "if (root != (bin_tree_t *)0x0) {\n            postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb249),\n                      (void *)0x0);\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            postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb249),\n                      (void *)0x0);\n          }" { (expression_statement "postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb249),\n                      (void *)0x0);" (call_expression "postorder(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb249),\n                      (void *)0x0)" identifier (argument_list "(root,(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb249),\n                      (void *)0x0)" ( identifier , (cast_expression "(_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *)(unaff_EDI + -0xb249)" ( (type_descriptor "_func_reg_errcode_t_void_ptr_bin_tree_t_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + -0xb249)" ( (binary_expression "unaff_EDI + -0xb249" identifier + number_literal) ))) , (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })) (goto_statement "goto LAB_0002dadd;" goto statement_identifier ;) })) (expression_statement "*(uint *)(iVar2 + 0x54) = *(uint *)(iVar2 + 0x54) | uVar4;" (assignment_expression "*(uint *)(iVar2 + 0x54) = *(uint *)(iVar2 + 0x54) | uVar4" (pointer_expression "*(uint *)(iVar2 + 0x54)" * (cast_expression "(uint *)(iVar2 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x54)" ( (binary_expression "iVar2 + 0x54" identifier + number_literal) )))) = (binary_expression "*(uint *)(iVar2 + 0x54) | uVar4" (pointer_expression "*(uint *)(iVar2 + 0x54)" * (cast_expression "(uint *)(iVar2 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x54)" ( (binary_expression "iVar2 + 0x54" identifier + number_literal) )))) | identifier)) ;) }))) (expression_statement "t._4_1_ = 10;" (assignment_expression "t._4_1_ = 10" (field_expression "t._4_1_" identifier . field_identifier) = number_literal) ;) (expression_statement "root = create_token_tree((re_dfa_t *)(iVar2 + 0x38),(bin_tree_t *)(iVar2 + 0x40),root,\n                               (re_token_t *)token_01,(re_dfa_t *)&t);" (assignment_expression "root = create_token_tree((re_dfa_t *)(iVar2 + 0x38),(bin_tree_t *)(iVar2 + 0x40),root,\n                               (re_token_t *)token_01,(re_dfa_t *)&t)" identifier = (call_expression "create_token_tree((re_dfa_t *)(iVar2 + 0x38),(bin_tree_t *)(iVar2 + 0x40),root,\n                               (re_token_t *)token_01,(re_dfa_t *)&t)" identifier (argument_list "((re_dfa_t *)(iVar2 + 0x38),(bin_tree_t *)(iVar2 + 0x40),root,\n                               (re_token_t *)token_01,(re_dfa_t *)&t)" ( (cast_expression "(re_dfa_t *)(iVar2 + 0x38)" ( (type_descriptor "re_dfa_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x38)" ( (binary_expression "iVar2 + 0x38" identifier + number_literal) ))) , (cast_expression "(bin_tree_t *)(iVar2 + 0x40)" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x40)" ( (binary_expression "iVar2 + 0x40" identifier + number_literal) ))) , identifier , (cast_expression "(re_token_t *)token_01" ( (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)) )))) ;) (expression_statement "regexp = err_00;" (assignment_expression "regexp = err_00" identifier = identifier) ;) }) while (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)) )) ;) (expression_statement "*(undefined4 *)syntax = 0xc;" (assignment_expression "*(undefined4 *)syntax = 0xc" (pointer_expression "*(undefined4 *)syntax" * (cast_expression "(undefined4 *)syntax" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) }) (else_clause "else {\nLAB_0002dadd:\n    root = (bin_tree_t *)0x0;\n  }" else (compound_statement "{\nLAB_0002dadd:\n    root = (bin_tree_t *)0x0;\n  }" { (labeled_statement "LAB_0002dadd:\n    root = (bin_tree_t *)0x0;" statement_identifier : (expression_statement "root = (bin_tree_t *)0x0;" (assignment_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)) ;)) }))) (labeled_statement "LAB_0002dae0:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return root;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return root;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(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    return root;\n  }" { (return_statement "return root;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))
(translation_unit "int __regparm1 FUN_0002d9a0(int param_1,undefined4 param_2,int param_3,int *param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int extraout_ECX;\n  int *extraout_EDX;\n  int in_GS_OFFSET;\n  undefined1 local_28 [4];\n  undefined1 local_24;\n  int local_20;\n  \n  FUN_0001a85e();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = *extraout_EDX;\n  uVar2 = *(undefined4 *)(iVar1 + 0x54);\n  iVar4 = FUN_0002d830(param_2,param_3,param_4);\n  if ((*param_4 == 0) || (iVar4 != 0)) {\n    do {\n      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;\n      iVar5 = FUN_0002bba0();\n      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;\n      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }\n      local_24 = 10;\n      iVar4 = FUN_00023dd0(iVar5,local_28);\n    } while (iVar4 != 0);\n    *param_4 = 0xc;\n  }\n  else {\nLAB_0002dadd:\n    iVar4 = 0;\n  }\nLAB_0002dae0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00031620();\n  }\n  return iVar4;\n}\n\n" (function_definition "int __regparm1 FUN_0002d9a0(int param_1,undefined4 param_2,int param_3,int *param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int extraout_ECX;\n  int *extraout_EDX;\n  int in_GS_OFFSET;\n  undefined1 local_28 [4];\n  undefined1 local_24;\n  int local_20;\n  \n  FUN_0001a85e();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = *extraout_EDX;\n  uVar2 = *(undefined4 *)(iVar1 + 0x54);\n  iVar4 = FUN_0002d830(param_2,param_3,param_4);\n  if ((*param_4 == 0) || (iVar4 != 0)) {\n    do {\n      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;\n      iVar5 = FUN_0002bba0();\n      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;\n      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }\n      local_24 = 10;\n      iVar4 = FUN_00023dd0(iVar5,local_28);\n    } while (iVar4 != 0);\n    *param_4 = 0xc;\n  }\n  else {\nLAB_0002dadd:\n    iVar4 = 0;\n  }\nLAB_0002dae0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00031620();\n  }\n  return iVar4;\n}" primitive_type (ERROR "__regparm1" identifier) (function_declarator "FUN_0002d9a0(int param_1,undefined4 param_2,int param_3,int *param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,int *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int extraout_ECX;\n  int *extraout_EDX;\n  int in_GS_OFFSET;\n  undefined1 local_28 [4];\n  undefined1 local_24;\n  int local_20;\n  \n  FUN_0001a85e();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = *extraout_EDX;\n  uVar2 = *(undefined4 *)(iVar1 + 0x54);\n  iVar4 = FUN_0002d830(param_2,param_3,param_4);\n  if ((*param_4 == 0) || (iVar4 != 0)) {\n    do {\n      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;\n      iVar5 = FUN_0002bba0();\n      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;\n      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }\n      local_24 = 10;\n      iVar4 = FUN_00023dd0(iVar5,local_28);\n    } while (iVar4 != 0);\n    *param_4 = 0xc;\n  }\n  else {\nLAB_0002dadd:\n    iVar4 = 0;\n  }\nLAB_0002dae0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00031620();\n  }\n  return iVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "int *extraout_EDX;" primitive_type (pointer_declarator "*extraout_EDX" * 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_0001a85e();" (call_expression "FUN_0001a85e()" 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 "iVar1 = *extraout_EDX;" (assignment_expression "iVar1 = *extraout_EDX" identifier = (pointer_expression "*extraout_EDX" * identifier)) ;) (expression_statement "uVar2 = *(undefined4 *)(iVar1 + 0x54);" (assignment_expression "uVar2 = *(undefined4 *)(iVar1 + 0x54)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + 0x54)" * (cast_expression "(undefined4 *)(iVar1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x54)" ( (binary_expression "iVar1 + 0x54" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = FUN_0002d830(param_2,param_3,param_4);" (assignment_expression "iVar4 = FUN_0002d830(param_2,param_3,param_4)" identifier = (call_expression "FUN_0002d830(param_2,param_3,param_4)" identifier (argument_list "(param_2,param_3,param_4)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((*param_4 == 0) || (iVar4 != 0)) {\n    do {\n      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;\n      iVar5 = FUN_0002bba0();\n      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;\n      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }\n      local_24 = 10;\n      iVar4 = FUN_00023dd0(iVar5,local_28);\n    } while (iVar4 != 0);\n    *param_4 = 0xc;\n  }\n  else {\nLAB_0002dadd:\n    iVar4 = 0;\n  }" if (parenthesized_expression "((*param_4 == 0) || (iVar4 != 0))" ( (binary_expression "(*param_4 == 0) || (iVar4 != 0)" (parenthesized_expression "(*param_4 == 0)" ( (binary_expression "*param_4 == 0" (pointer_expression "*param_4" * identifier) == number_literal) )) || (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    do {\n      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;\n      iVar5 = FUN_0002bba0();\n      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;\n      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }\n      local_24 = 10;\n      iVar4 = FUN_00023dd0(iVar5,local_28);\n    } while (iVar4 != 0);\n    *param_4 = 0xc;\n  }" { (do_statement "do {\n      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;\n      iVar5 = FUN_0002bba0();\n      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;\n      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }\n      local_24 = 10;\n      iVar4 = FUN_00023dd0(iVar5,local_28);\n    } while (iVar4 != 0);" do (compound_statement "{\n      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;\n      iVar5 = FUN_0002bba0();\n      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;\n      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }\n      local_24 = 10;\n      iVar4 = FUN_00023dd0(iVar5,local_28);\n    }" { (if_statement "if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;" if (parenthesized_expression "(*(char *)(extraout_ECX + 4) != '\n')" ( (binary_expression "*(char *)(extraout_ECX + 4) != '\n'" (pointer_expression "*(char *)(extraout_ECX + 4)" * (cast_expression "(char *)(extraout_ECX + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX + 4)" ( (binary_expression "extraout_ECX + 4" identifier + number_literal) )))) != (char_literal "'\n'" ' escape_sequence ')) )) (goto_statement "goto LAB_0002dae0;" goto statement_identifier ;)) (expression_statement "iVar5 = FUN_0002bba0();" (assignment_expression "iVar5 = FUN_0002bba0()" identifier = (call_expression "FUN_0002bba0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;" (assignment_expression "*(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5" (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x28) + iVar5" (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) + identifier)) ;) (if_statement "if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }" if (parenthesized_expression "(((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0))))" ( (binary_expression "((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))" (parenthesized_expression "((*(byte *)(extraout_ECX + 4) & 0xf7) == 2)" ( (binary_expression "(*(byte *)(extraout_ECX + 4) & 0xf7) == 2" (parenthesized_expression "(*(byte *)(extraout_ECX + 4) & 0xf7)" ( (binary_expression "*(byte *)(extraout_ECX + 4) & 0xf7" (pointer_expression "*(byte *)(extraout_ECX + 4)" * (cast_expression "(byte *)(extraout_ECX + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX + 4)" ( (binary_expression "extraout_ECX + 4" identifier + number_literal) )))) & number_literal) )) == number_literal) )) || (parenthesized_expression "((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))" ( (parenthesized_expression "(*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0))" ( (binary_expression "*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)" (binary_expression "*(byte *)(extraout_ECX + 4) == 9" (pointer_expression "*(byte *)(extraout_ECX + 4)" * (cast_expression "(byte *)(extraout_ECX + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX + 4)" ( (binary_expression "extraout_ECX + 4" identifier + number_literal) )))) == number_literal) && (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) ))) )) ))) )) (compound_statement "{\n        iVar5 = 0;\n      }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }" else (compound_statement "{\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }" { (expression_statement "uVar3 = *(uint *)(iVar1 + 0x54);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x54)" identifier = (pointer_expression "*(uint *)(iVar1 + 0x54)" * (cast_expression "(uint *)(iVar1 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x54)" ( (binary_expression "iVar1 + 0x54" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x54) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x54) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x54)" * (cast_expression "(undefined4 *)(iVar1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x54)" ( (binary_expression "iVar1 + 0x54" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = FUN_0002d830(param_2,param_3,param_4);" (assignment_expression "iVar5 = FUN_0002d830(param_2,param_3,param_4)" identifier = (call_expression "FUN_0002d830(param_2,param_3,param_4)" identifier (argument_list "(param_2,param_3,param_4)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }" if (parenthesized_expression "((*param_4 != 0) && (iVar5 == 0))" ( (binary_expression "(*param_4 != 0) && (iVar5 == 0)" (parenthesized_expression "(*param_4 != 0)" ( (binary_expression "*param_4 != 0" (pointer_expression "*param_4" * identifier) != number_literal) )) && (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) ))) )) (compound_statement "{\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }" { (if_statement "if (iVar4 != 0) {\n            FUN_00021500();\n          }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n            FUN_00021500();\n          }" { (expression_statement "FUN_00021500();" (call_expression "FUN_00021500()" identifier (argument_list "()" ( ))) ;) })) (goto_statement "goto LAB_0002dadd;" goto statement_identifier ;) })) (expression_statement "*(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;" (assignment_expression "*(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3" (pointer_expression "*(uint *)(iVar1 + 0x54)" * (cast_expression "(uint *)(iVar1 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x54)" ( (binary_expression "iVar1 + 0x54" identifier + number_literal) )))) = (binary_expression "*(uint *)(iVar1 + 0x54) | uVar3" (pointer_expression "*(uint *)(iVar1 + 0x54)" * (cast_expression "(uint *)(iVar1 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x54)" ( (binary_expression "iVar1 + 0x54" identifier + number_literal) )))) | identifier)) ;) }))) (expression_statement "local_24 = 10;" (assignment_expression "local_24 = 10" identifier = number_literal) ;) (expression_statement "iVar4 = FUN_00023dd0(iVar5,local_28);" (assignment_expression "iVar4 = FUN_00023dd0(iVar5,local_28)" identifier = (call_expression "FUN_00023dd0(iVar5,local_28)" identifier (argument_list "(iVar5,local_28)" ( identifier , identifier )))) ;) }) while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) ;) (expression_statement "*param_4 = 0xc;" (assignment_expression "*param_4 = 0xc" (pointer_expression "*param_4" * identifier) = number_literal) ;) }) (else_clause "else {\nLAB_0002dadd:\n    iVar4 = 0;\n  }" else (compound_statement "{\nLAB_0002dadd:\n    iVar4 = 0;\n  }" { (labeled_statement "LAB_0002dadd:\n    iVar4 = 0;" statement_identifier : (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;)) }))) (labeled_statement "LAB_0002dae0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00031620();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00031620();\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_00031620();\n  }" { (expression_statement "FUN_00031620();" (call_expression "FUN_00031620()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (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 IDENT ;) (declaration TYPE (pointer_declarator * 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 = (pointer_expression * IDENT)) ;) (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 { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (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) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (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 __regparm1 FUN_0002d9a0(int param_1,undefined4 param_2,int param_3,int *param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int extraout_ECX;\n  int *extraout_EDX;\n  int in_GS_OFFSET;\n  undefined1 local_28 [4];\n  undefined1 local_24;\n  int local_20;\n  \n  FUN_0001a85e();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = *extraout_EDX;\n  uVar2 = *(undefined4 *)(iVar1 + 0x54);\n  iVar4 = FUN_0002d830(param_2,param_3,param_4);\n  if ((*param_4 == 0) || (iVar4 != 0)) {\n    do {\n      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;\n      iVar5 = FUN_0002bba0();\n      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;\n      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }\n      local_24 = 10;\n      iVar4 = FUN_00023dd0(iVar5,local_28);\n    } while (iVar4 != 0);\n    *param_4 = 0xc;\n  }\n  else {\nLAB_0002dadd:\n    iVar4 = 0;\n  }\nLAB_0002dae0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00031620();\n  }\n  return iVar4;\n}" (primitive_type "int") (ERROR "__regparm1" (identifier "__regparm1")) (function_declarator "FUN_0002d9a0(int param_1,undefined4 param_2,int param_3,int *param_4)" (identifier "FUN_0002d9a0") (parameter_list "(int param_1,undefined4 param_2,int param_3,int *param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int extraout_ECX;\n  int *extraout_EDX;\n  int in_GS_OFFSET;\n  undefined1 local_28 [4];\n  undefined1 local_24;\n  int local_20;\n  \n  FUN_0001a85e();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = *extraout_EDX;\n  uVar2 = *(undefined4 *)(iVar1 + 0x54);\n  iVar4 = FUN_0002d830(param_2,param_3,param_4);\n  if ((*param_4 == 0) || (iVar4 != 0)) {\n    do {\n      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;\n      iVar5 = FUN_0002bba0();\n      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;\n      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }\n      local_24 = 10;\n      iVar4 = FUN_00023dd0(iVar5,local_28);\n    } while (iVar4 != 0);\n    *param_4 = 0xc;\n  }\n  else {\nLAB_0002dadd:\n    iVar4 = 0;\n  }\nLAB_0002dae0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00031620();\n  }\n  return iVar4;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int extraout_ECX;" (primitive_type "int") (identifier "extraout_ECX") (; ";")) (declaration "int *extraout_EDX;" (primitive_type "int") (pointer_declarator "*extraout_EDX" (* "*") (identifier "extraout_EDX")) (; ";")) (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_0001a85e();" (call_expression "FUN_0001a85e()" (identifier "FUN_0001a85e") (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 "iVar1 = *extraout_EDX;" (assignment_expression "iVar1 = *extraout_EDX" (identifier "iVar1") (= "=") (pointer_expression "*extraout_EDX" (* "*") (identifier "extraout_EDX"))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(iVar1 + 0x54);" (assignment_expression "uVar2 = *(undefined4 *)(iVar1 + 0x54)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(iVar1 + 0x54)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x54)" (( "(") (binary_expression "iVar1 + 0x54" (identifier "iVar1") (+ "+") (number_literal "0x54")) () ")"))))) (; ";")) (expression_statement "iVar4 = FUN_0002d830(param_2,param_3,param_4);" (assignment_expression "iVar4 = FUN_0002d830(param_2,param_3,param_4)" (identifier "iVar4") (= "=") (call_expression "FUN_0002d830(param_2,param_3,param_4)" (identifier "FUN_0002d830") (argument_list "(param_2,param_3,param_4)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if ((*param_4 == 0) || (iVar4 != 0)) {\n    do {\n      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;\n      iVar5 = FUN_0002bba0();\n      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;\n      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }\n      local_24 = 10;\n      iVar4 = FUN_00023dd0(iVar5,local_28);\n    } while (iVar4 != 0);\n    *param_4 = 0xc;\n  }\n  else {\nLAB_0002dadd:\n    iVar4 = 0;\n  }" (if "if") (parenthesized_expression "((*param_4 == 0) || (iVar4 != 0))" (( "(") (binary_expression "(*param_4 == 0) || (iVar4 != 0)" (parenthesized_expression "(*param_4 == 0)" (( "(") (binary_expression "*param_4 == 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    do {\n      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;\n      iVar5 = FUN_0002bba0();\n      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;\n      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }\n      local_24 = 10;\n      iVar4 = FUN_00023dd0(iVar5,local_28);\n    } while (iVar4 != 0);\n    *param_4 = 0xc;\n  }" ({ "{") (do_statement "do {\n      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;\n      iVar5 = FUN_0002bba0();\n      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;\n      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }\n      local_24 = 10;\n      iVar4 = FUN_00023dd0(iVar5,local_28);\n    } while (iVar4 != 0);" (do "do") (compound_statement "{\n      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;\n      iVar5 = FUN_0002bba0();\n      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;\n      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }\n      local_24 = 10;\n      iVar4 = FUN_00023dd0(iVar5,local_28);\n    }" ({ "{") (if_statement "if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;" (if "if") (parenthesized_expression "(*(char *)(extraout_ECX + 4) != '\n')" (( "(") (binary_expression "*(char *)(extraout_ECX + 4) != '\n'" (pointer_expression "*(char *)(extraout_ECX + 4)" (* "*") (cast_expression "(char *)(extraout_ECX + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(extraout_ECX + 4)" (( "(") (binary_expression "extraout_ECX + 4" (identifier "extraout_ECX") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")")) (goto_statement "goto LAB_0002dae0;" (goto "goto") (statement_identifier "LAB_0002dae0") (; ";"))) (expression_statement "iVar5 = FUN_0002bba0();" (assignment_expression "iVar5 = FUN_0002bba0()" (identifier "iVar5") (= "=") (call_expression "FUN_0002bba0()" (identifier "FUN_0002bba0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;" (assignment_expression "*(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5" (pointer_expression "*(int *)(param_1 + 0x28)" (* "*") (cast_expression "(int *)(param_1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x28) + iVar5" (pointer_expression "*(int *)(param_1 + 0x28)" (* "*") (cast_expression "(int *)(param_1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (+ "+") (identifier "iVar5"))) (; ";")) (if_statement "if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {\n        iVar5 = 0;\n      }\n      else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }" (if "if") (parenthesized_expression "(((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0))))" (( "(") (binary_expression "((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||\n         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))" (parenthesized_expression "((*(byte *)(extraout_ECX + 4) & 0xf7) == 2)" (( "(") (binary_expression "(*(byte *)(extraout_ECX + 4) & 0xf7) == 2" (parenthesized_expression "(*(byte *)(extraout_ECX + 4) & 0xf7)" (( "(") (binary_expression "*(byte *)(extraout_ECX + 4) & 0xf7" (pointer_expression "*(byte *)(extraout_ECX + 4)" (* "*") (cast_expression "(byte *)(extraout_ECX + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(extraout_ECX + 4)" (( "(") (binary_expression "extraout_ECX + 4" (identifier "extraout_ECX") (+ "+") (number_literal "4")) () ")")))) (& "&") (number_literal "0xf7")) () ")")) (== "==") (number_literal "2")) () ")")) (|| "||") (parenthesized_expression "((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))" (( "(") (parenthesized_expression "(*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0))" (( "(") (binary_expression "*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)" (binary_expression "*(byte *)(extraout_ECX + 4) == 9" (pointer_expression "*(byte *)(extraout_ECX + 4)" (* "*") (cast_expression "(byte *)(extraout_ECX + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(extraout_ECX + 4)" (( "(") (binary_expression "extraout_ECX + 4" (identifier "extraout_ECX") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "9")) (&& "&&") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n        iVar5 = 0;\n      }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }" (else "else") (compound_statement "{\n        uVar3 = *(uint *)(iVar1 + 0x54);\n        *(undefined4 *)(iVar1 + 0x54) = uVar2;\n        iVar5 = FUN_0002d830(param_2,param_3,param_4);\n        if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }\n        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;\n      }" ({ "{") (expression_statement "uVar3 = *(uint *)(iVar1 + 0x54);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x54)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(iVar1 + 0x54)" (* "*") (cast_expression "(uint *)(iVar1 + 0x54)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x54)" (( "(") (binary_expression "iVar1 + 0x54" (identifier "iVar1") (+ "+") (number_literal "0x54")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x54) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x54) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x54)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x54)" (( "(") (binary_expression "iVar1 + 0x54" (identifier "iVar1") (+ "+") (number_literal "0x54")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "iVar5 = FUN_0002d830(param_2,param_3,param_4);" (assignment_expression "iVar5 = FUN_0002d830(param_2,param_3,param_4)" (identifier "iVar5") (= "=") (call_expression "FUN_0002d830(param_2,param_3,param_4)" (identifier "FUN_0002d830") (argument_list "(param_2,param_3,param_4)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if ((*param_4 != 0) && (iVar5 == 0)) {\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }" (if "if") (parenthesized_expression "((*param_4 != 0) && (iVar5 == 0))" (( "(") (binary_expression "(*param_4 != 0) && (iVar5 == 0)" (parenthesized_expression "(*param_4 != 0)" (( "(") (binary_expression "*param_4 != 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n          if (iVar4 != 0) {\n            FUN_00021500();\n          }\n          goto LAB_0002dadd;\n        }" ({ "{") (if_statement "if (iVar4 != 0) {\n            FUN_00021500();\n          }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            FUN_00021500();\n          }" ({ "{") (expression_statement "FUN_00021500();" (call_expression "FUN_00021500()" (identifier "FUN_00021500") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (goto_statement "goto LAB_0002dadd;" (goto "goto") (statement_identifier "LAB_0002dadd") (; ";")) (} "}"))) (expression_statement "*(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;" (assignment_expression "*(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3" (pointer_expression "*(uint *)(iVar1 + 0x54)" (* "*") (cast_expression "(uint *)(iVar1 + 0x54)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x54)" (( "(") (binary_expression "iVar1 + 0x54" (identifier "iVar1") (+ "+") (number_literal "0x54")) () ")")))) (= "=") (binary_expression "*(uint *)(iVar1 + 0x54) | uVar3" (pointer_expression "*(uint *)(iVar1 + 0x54)" (* "*") (cast_expression "(uint *)(iVar1 + 0x54)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x54)" (( "(") (binary_expression "iVar1 + 0x54" (identifier "iVar1") (+ "+") (number_literal "0x54")) () ")")))) (| "|") (identifier "uVar3"))) (; ";")) (} "}")))) (expression_statement "local_24 = 10;" (assignment_expression "local_24 = 10" (identifier "local_24") (= "=") (number_literal "10")) (; ";")) (expression_statement "iVar4 = FUN_00023dd0(iVar5,local_28);" (assignment_expression "iVar4 = FUN_00023dd0(iVar5,local_28)" (identifier "iVar4") (= "=") (call_expression "FUN_00023dd0(iVar5,local_28)" (identifier "FUN_00023dd0") (argument_list "(iVar5,local_28)" (( "(") (identifier "iVar5") (, ",") (identifier "local_28") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "*param_4 = 0xc;" (assignment_expression "*param_4 = 0xc" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0xc")) (; ";")) (} "}")) (else_clause "else {\nLAB_0002dadd:\n    iVar4 = 0;\n  }" (else "else") (compound_statement "{\nLAB_0002dadd:\n    iVar4 = 0;\n  }" ({ "{") (labeled_statement "LAB_0002dadd:\n    iVar4 = 0;" (statement_identifier "LAB_0002dadd") (: ":") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";"))) (} "}")))) (labeled_statement "LAB_0002dae0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00031620();\n  }" (statement_identifier "LAB_0002dae0") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00031620();\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_00031620();\n  }" ({ "{") (expression_statement "FUN_00031620();" (call_expression "FUN_00031620()" (identifier "FUN_00031620") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))

type_3 * __regparm1
parse_reg_exp(type_8 *regexp,type_9 *preg,type_4 *var_8,type_5 syntax,type_6 nest,
             type_7 *err)

{
  int var_14;
  int var_3;
  type_1 uVar3;
  type_2 var_12;
  type_3 *var_5;
  int var_7;
  type_4 *token_00;
  type_3 *var_9;
  int *extraout_EDX;
  int var_11;
  int var_2;
  type_5 in_stack_ffffffb0;
  type_5 syntax_00;
  type_6 in_stack_ffffffb4;
  type_7 *in_stack_ffffffb8;
  type_8 *err_00;
  type_4 t;
  
  var_1();
  var_14 = *(int *)(var_2 + 0x14);
  var_3 = *extraout_EDX;
  uVar3 = *(type_1 *)(var_3 + 0x54);
  var_5 = var_4((type_8 *)preg,(type_9 *)var_8,(type_4 *)syntax,in_stack_ffffffb0,
                      in_stack_ffffffb4,in_stack_ffffffb8);
  if ((*(int *)syntax == 0) || (var_5 != (type_3 *)0x0)) {
    do {
      if (token_00->field_0x4 != '\n') goto LAB_0002dae0;
      syntax_00 = 0x2daaf;
      err_00 = regexp;
      var_7 = var_6(token_00,regexp,(type_2)preg | 0x800000);
      regexp->cur_idx = regexp->cur_idx + var_7;
      if (((token_00->field_0x4 & 0xf7) == 2) ||
         ((token_00->field_0x4 == 9 && (var_8 != (type_4 *)0x0)))) {
        var_9 = (type_3 *)0x0;
      }
      else {
        var_12 = *(type_2 *)(var_3 + 0x54);
        *(type_1 *)(var_3 + 0x54) = uVar3;
        var_9 = var_4((type_8 *)preg,(type_9 *)var_8,(type_4 *)syntax,syntax_00,
                                in_stack_ffffffb4,(type_7 *)err_00);
        if ((*(int *)syntax != 0) && (var_9 == (type_3 *)0x0)) {
          if (var_5 != (type_3 *)0x0) {
            var_10(var_5,(type_10 *)(var_11 + -0xb249),
                      (void *)0x0);
          }
          goto LAB_0002dadd;
        }
        *(type_2 *)(var_3 + 0x54) = *(type_2 *)(var_3 + 0x54) | var_12;
      }
      t._4_1_ = 10;
      var_5 = var_13((type_11 *)(var_3 + 0x38),(type_3 *)(var_3 + 0x40),var_5,
                               (type_4 *)var_9,(type_11 *)&t);
      regexp = err_00;
    } while (var_5 != (type_3 *)0x0);
    *(type_1 *)syntax = 0xc;
  }
  else {
LAB_0002dadd:
    var_5 = (type_3 *)0x0;
  }
LAB_0002dae0:
  if (var_14 == *(int *)(var_2 + 0x14)) {
    return var_5;
  }
                    /* WARNING: Subroutine does not return */
  var_15();
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (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: (pointer_declarator 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: (pointer_expression argument: (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))))))) (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 (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (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))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) 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 __regparm1 MASKED(int param_1,undefined4 param_2,int param_3,int *param_4)

{
  int iVar1;
  undefined4 uVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  int extraout_ECX;
  int *extraout_EDX;
  int in_GS_OFFSET;
  undefined1 local_28 [4];
  undefined1 local_24;
  int local_20;
  
  FUN_0001a85e();
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = *extraout_EDX;
  uVar2 = *(undefined4 *)(iVar1 + 0x54);
  iVar4 = FUN_0002d830(param_2,param_3,param_4);
  if ((*param_4 == 0) || (iVar4 != 0)) {
    do {
      if (*(char *)(extraout_ECX + 4) != '\n') goto LAB_0002dae0;
      iVar5 = FUN_0002bba0();
      *(int *)(param_1 + 0x28) = *(int *)(param_1 + 0x28) + iVar5;
      if (((*(byte *)(extraout_ECX + 4) & 0xf7) == 2) ||
         ((*(byte *)(extraout_ECX + 4) == 9 && (param_3 != 0)))) {
        iVar5 = 0;
      }
      else {
        uVar3 = *(uint *)(iVar1 + 0x54);
        *(undefined4 *)(iVar1 + 0x54) = uVar2;
        iVar5 = FUN_0002d830(param_2,param_3,param_4);
        if ((*param_4 != 0) && (iVar5 == 0)) {
          if (iVar4 != 0) {
            FUN_00021500();
          }
          goto LAB_0002dadd;
        }
        *(uint *)(iVar1 + 0x54) = *(uint *)(iVar1 + 0x54) | uVar3;
      }
      local_24 = 10;
      iVar4 = FUN_00023dd0(iVar5,local_28);
    } while (iVar4 != 0);
    *param_4 = 0xc;
  }
  else {
LAB_0002dadd:
    iVar4 = 0;
  }
LAB_0002dae0:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00031620();
  }
  return iVar4;
}

