
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: bin_tree_t * create_token_tree(re_dfa_t * dfa, bin_tree_t * left,
   bin_tree_t * right, re_token_t * token, re_dfa_t * dfa) */

bin_tree_t * __regparm3
create_token_tree(re_dfa_t *dfa,bin_tree_t *left,bin_tree_t *right,re_token_t *token,re_dfa_t *dfa_1
                 )

{
  size_t sVar1;
  anon_union_4_5_a39f51ca_for_opr aVar2;
  int iVar3;
  re_token_t *prVar4;
  bin_tree_t *pbVar5;
  bin_tree_t *pbVar6;
  
  pbVar5 = left->parent;
  if (pbVar5 == (bin_tree_t *)0x1f) {
    prVar4 = (re_token_t *)malloc(0x3e4);
    if (prVar4 == (re_token_t *)0x0) {
      return (bin_tree_t *)0x0;
    }
    aVar2 = (anon_union_4_5_a39f51ca_for_opr)dfa->nodes;
    pbVar5 = (bin_tree_t *)0x0;
    dfa->nodes = prVar4;
    pbVar6 = (bin_tree_t *)0x1;
    prVar4->opr = aVar2;
    iVar3 = 4;
  }
  else {
    prVar4 = dfa->nodes;
    pbVar6 = (bin_tree_t *)((int)&pbVar5->parent + 1);
    iVar3 = (int)pbVar5 * 0x20 + 4;
  }
  left->parent = pbVar6;
  pbVar6 = (bin_tree_t *)((int)&prVar4->opr + iVar3);
  *(re_token_t **)&prVar4[(int)pbVar5 * 4 + 1].field_0x4 = token;
  *(undefined4 *)&prVar4[(int)pbVar5 * 4].field_0x4 = 0;
  prVar4[(int)pbVar5 * 4 + 1].opr.mbcset = (re_charset_t *)right;
  sVar1 = dfa_1->nodes_alloc;
  prVar4[(int)pbVar5 * 4 + 3].opr = (anon_union_4_5_a39f51ca_for_opr)dfa_1->nodes;
  *(size_t *)&prVar4[(int)pbVar5 * 4 + 3].field_0x4 = sVar1;
  prVar4[(int)pbVar5 * 4 + 3].field_0x6 = prVar4[(int)pbVar5 * 4 + 3].field_0x6 & 0xf3;
  prVar4[(int)pbVar5 * 4 + 2].opr.sbcset = (re_bitset_ptr_t)0x0;
  *(undefined4 *)&prVar4[(int)pbVar5 * 4 + 2].field_0x4 = 0;
  prVar4[(int)pbVar5 * 4 + 4].opr.idx = -1;
  if (right != (bin_tree_t *)0x0) {
    right->parent = pbVar6;
  }
  if (token != (re_token_t *)0x0) {
    (token->opr).sbcset = (re_bitset_ptr_t)pbVar6;
  }
  return pbVar6;
}



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

int __regparm3
FUN_0003f840(undefined4 *param_1,int *param_2,int *param_3,int *param_4,undefined4 *param_5)

{
  byte *pbVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 *puVar4;
  int iVar5;
  int iVar6;
  
  iVar5 = *param_2;
  if (iVar5 == 0x1f) {
    puVar4 = (undefined4 *)malloc(0x3e4);
    if (puVar4 == (undefined4 *)0x0) {
      return 0;
    }
    uVar2 = *param_1;
    iVar5 = 0;
    *param_1 = puVar4;
    iVar6 = 1;
    *puVar4 = uVar2;
    iVar3 = 4;
  }
  else {
    puVar4 = (undefined4 *)*param_1;
    iVar6 = iVar5 + 1;
    iVar3 = iVar5 * 0x20 + 4;
  }
  *param_2 = iVar6;
  iVar3 = iVar3 + (int)puVar4;
  puVar4[iVar5 * 8 + 3] = param_4;
  puVar4[iVar5 * 8 + 1] = 0;
  puVar4[iVar5 * 8 + 2] = param_3;
  uVar2 = param_5[1];
  puVar4[iVar5 * 8 + 6] = *param_5;
  puVar4[iVar5 * 8 + 7] = uVar2;
  pbVar1 = (byte *)((int)puVar4 + iVar5 * 0x20 + 0x1e);
  *pbVar1 = *pbVar1 & 0xf3;
  puVar4[iVar5 * 8 + 4] = 0;
  puVar4[iVar5 * 8 + 5] = 0;
  puVar4[iVar5 * 8 + 8] = 0xffffffff;
  if (param_3 != (int *)0x0) {
    *param_3 = iVar3;
  }
  if (param_4 != (int *)0x0) {
    *param_4 = iVar3;
  }
  return iVar3;
}


PUSH EBP
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x00014e20
ADD EBX,0x2b385
SUB ESP,0x1c
MOV EBP,dword ptr [EDX]
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0x4],EAX
CMP EBP,0x1f
JZ 0x0003f8d0
MOV EAX,EBP
MOV EBX,dword ptr [EDI]
LEA EDI,[EBP + 0x1]
SHL EAX,0x5
ADD EAX,0x4
MOV dword ptr [EDX],EDI
SHL EBP,0x5
MOV EDI,dword ptr [ESP + 0x4]
ADD EAX,EBX
LEA EDX,[EBX + EBP*0x1]
MOV dword ptr [EDX + 0xc],EDI
MOV EDI,dword ptr [ESP + 0x34]
MOV dword ptr [EDX + 0x4],0x0
MOV dword ptr [EDX + 0x8],ECX
MOV ESI,dword ptr [EDI]
MOV EDI,dword ptr [EDI + 0x4]
MOV dword ptr [EDX + 0x18],ESI
MOV dword ptr [EDX + 0x1c],EDI
AND byte ptr [EBX + EBP*0x1 + 0x1e],0xf3
MOV dword ptr [EDX + 0x10],0x0
MOV dword ptr [EDX + 0x14],0x0
MOV dword ptr [EDX + 0x20],0xffffffff
TEST ECX,ECX
JZ 0x0003f8ba
MOV dword ptr [ECX],EAX
MOV ESI,dword ptr [ESP + 0x4]
TEST ESI,ESI
JZ 0x0003f8c4
MOV dword ptr [ESI],EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0xc],ECX
SUB ESP,0xc
MOV dword ptr [ESP + 0x14],EDX
PUSH 0x3e4
CALL 0x00013550
ADD ESP,0x10
MOV EBX,EAX
TEST EAX,EAX
JZ 0x0003f90d
MOV EAX,dword ptr [EDI]
XOR EBP,EBP
MOV ECX,dword ptr [ESP + 0xc]
MOV dword ptr [EDI],EBX
MOV EDX,dword ptr [ESP + 0x8]
MOV EDI,0x1
MOV dword ptr [EBX],EAX
MOV EAX,0x4
JMP 0x0003f870
XOR EAX,EAX
JMP 0x0003f8c4
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3\nFUN_0003f840(undefined4 *param_1,int *param_2,int *param_3,int *param_4,undefined4 *param_5)\n\n{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = *param_2;\n  if (iVar5 == 0x1f) {\n    puVar4 = (undefined4 *)malloc(0x3e4);\n    if (puVar4 == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar2 = *param_1;\n    iVar5 = 0;\n    *param_1 = puVar4;\n    iVar6 = 1;\n    *puVar4 = uVar2;\n    iVar3 = 4;\n  }\n  else {\n    puVar4 = (undefined4 *)*param_1;\n    iVar6 = iVar5 + 1;\n    iVar3 = iVar5 * 0x20 + 4;\n  }\n  *param_2 = iVar6;\n  iVar3 = iVar3 + (int)puVar4;\n  puVar4[iVar5 * 8 + 3] = param_4;\n  puVar4[iVar5 * 8 + 1] = 0;\n  puVar4[iVar5 * 8 + 2] = param_3;\n  uVar2 = param_5[1];\n  puVar4[iVar5 * 8 + 6] = *param_5;\n  puVar4[iVar5 * 8 + 7] = uVar2;\n  pbVar1 = (byte *)((int)puVar4 + iVar5 * 0x20 + 0x1e);\n  *pbVar1 = *pbVar1 & 0xf3;\n  puVar4[iVar5 * 8 + 4] = 0;\n  puVar4[iVar5 * 8 + 5] = 0;\n  puVar4[iVar5 * 8 + 8] = 0xffffffff;\n  if (param_3 != (int *)0x0) {\n    *param_3 = iVar3;\n  }\n  if (param_4 != (int *)0x0) {\n    *param_4 = iVar3;\n  }\n  return iVar3;\n}\n\n" comment (function_definition "int __regparm3\nFUN_0003f840(undefined4 *param_1,int *param_2,int *param_3,int *param_4,undefined4 *param_5)\n\n{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = *param_2;\n  if (iVar5 == 0x1f) {\n    puVar4 = (undefined4 *)malloc(0x3e4);\n    if (puVar4 == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar2 = *param_1;\n    iVar5 = 0;\n    *param_1 = puVar4;\n    iVar6 = 1;\n    *puVar4 = uVar2;\n    iVar3 = 4;\n  }\n  else {\n    puVar4 = (undefined4 *)*param_1;\n    iVar6 = iVar5 + 1;\n    iVar3 = iVar5 * 0x20 + 4;\n  }\n  *param_2 = iVar6;\n  iVar3 = iVar3 + (int)puVar4;\n  puVar4[iVar5 * 8 + 3] = param_4;\n  puVar4[iVar5 * 8 + 1] = 0;\n  puVar4[iVar5 * 8 + 2] = param_3;\n  uVar2 = param_5[1];\n  puVar4[iVar5 * 8 + 6] = *param_5;\n  puVar4[iVar5 * 8 + 7] = uVar2;\n  pbVar1 = (byte *)((int)puVar4 + iVar5 * 0x20 + 0x1e);\n  *pbVar1 = *pbVar1 & 0xf3;\n  puVar4[iVar5 * 8 + 4] = 0;\n  puVar4[iVar5 * 8 + 5] = 0;\n  puVar4[iVar5 * 8 + 8] = 0xffffffff;\n  if (param_3 != (int *)0x0) {\n    *param_3 = iVar3;\n  }\n  if (param_4 != (int *)0x0) {\n    *param_4 = iVar3;\n  }\n  return iVar3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0003f840(undefined4 *param_1,int *param_2,int *param_3,int *param_4,undefined4 *param_5)" identifier (parameter_list "(undefined4 *param_1,int *param_2,int *param_3,int *param_4,undefined4 *param_5)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = *param_2;\n  if (iVar5 == 0x1f) {\n    puVar4 = (undefined4 *)malloc(0x3e4);\n    if (puVar4 == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar2 = *param_1;\n    iVar5 = 0;\n    *param_1 = puVar4;\n    iVar6 = 1;\n    *puVar4 = uVar2;\n    iVar3 = 4;\n  }\n  else {\n    puVar4 = (undefined4 *)*param_1;\n    iVar6 = iVar5 + 1;\n    iVar3 = iVar5 * 0x20 + 4;\n  }\n  *param_2 = iVar6;\n  iVar3 = iVar3 + (int)puVar4;\n  puVar4[iVar5 * 8 + 3] = param_4;\n  puVar4[iVar5 * 8 + 1] = 0;\n  puVar4[iVar5 * 8 + 2] = param_3;\n  uVar2 = param_5[1];\n  puVar4[iVar5 * 8 + 6] = *param_5;\n  puVar4[iVar5 * 8 + 7] = uVar2;\n  pbVar1 = (byte *)((int)puVar4 + iVar5 * 0x20 + 0x1e);\n  *pbVar1 = *pbVar1 & 0xf3;\n  puVar4[iVar5 * 8 + 4] = 0;\n  puVar4[iVar5 * 8 + 5] = 0;\n  puVar4[iVar5 * 8 + 8] = 0xffffffff;\n  if (param_3 != (int *)0x0) {\n    *param_3 = iVar3;\n  }\n  if (param_4 != (int *)0x0) {\n    *param_4 = iVar3;\n  }\n  return iVar3;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar5 = *param_2;" (assignment_expression "iVar5 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (iVar5 == 0x1f) {\n    puVar4 = (undefined4 *)malloc(0x3e4);\n    if (puVar4 == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar2 = *param_1;\n    iVar5 = 0;\n    *param_1 = puVar4;\n    iVar6 = 1;\n    *puVar4 = uVar2;\n    iVar3 = 4;\n  }\n  else {\n    puVar4 = (undefined4 *)*param_1;\n    iVar6 = iVar5 + 1;\n    iVar3 = iVar5 * 0x20 + 4;\n  }" if (parenthesized_expression "(iVar5 == 0x1f)" ( (binary_expression "iVar5 == 0x1f" identifier == number_literal) )) (compound_statement "{\n    puVar4 = (undefined4 *)malloc(0x3e4);\n    if (puVar4 == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar2 = *param_1;\n    iVar5 = 0;\n    *param_1 = puVar4;\n    iVar6 = 1;\n    *puVar4 = uVar2;\n    iVar3 = 4;\n  }" { (expression_statement "puVar4 = (undefined4 *)malloc(0x3e4);" (assignment_expression "puVar4 = (undefined4 *)malloc(0x3e4)" identifier = (cast_expression "(undefined4 *)malloc(0x3e4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x3e4)" identifier (argument_list "(0x3e4)" ( number_literal ))))) ;) (if_statement "if (puVar4 == (undefined4 *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(puVar4 == (undefined4 *)0x0)" ( (binary_expression "puVar4 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "*param_1 = puVar4;" (assignment_expression "*param_1 = puVar4" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (expression_statement "*puVar4 = uVar2;" (assignment_expression "*puVar4 = uVar2" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "iVar3 = 4;" (assignment_expression "iVar3 = 4" identifier = number_literal) ;) }) (else_clause "else {\n    puVar4 = (undefined4 *)*param_1;\n    iVar6 = iVar5 + 1;\n    iVar3 = iVar5 * 0x20 + 4;\n  }" else (compound_statement "{\n    puVar4 = (undefined4 *)*param_1;\n    iVar6 = iVar5 + 1;\n    iVar3 = iVar5 * 0x20 + 4;\n  }" { (expression_statement "puVar4 = (undefined4 *)*param_1;" (assignment_expression "puVar4 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "iVar6 = iVar5 + 1;" (assignment_expression "iVar6 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = iVar5 * 0x20 + 4;" (assignment_expression "iVar3 = iVar5 * 0x20 + 4" identifier = (binary_expression "iVar5 * 0x20 + 4" (binary_expression "iVar5 * 0x20" identifier * number_literal) + number_literal)) ;) }))) (expression_statement "*param_2 = iVar6;" (assignment_expression "*param_2 = iVar6" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "iVar3 = iVar3 + (int)puVar4;" (assignment_expression "iVar3 = iVar3 + (int)puVar4" identifier = (binary_expression "iVar3 + (int)puVar4" identifier + (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "puVar4[iVar5 * 8 + 3] = param_4;" (assignment_expression "puVar4[iVar5 * 8 + 3] = param_4" (subscript_expression "puVar4[iVar5 * 8 + 3]" identifier [ (binary_expression "iVar5 * 8 + 3" (binary_expression "iVar5 * 8" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "puVar4[iVar5 * 8 + 1] = 0;" (assignment_expression "puVar4[iVar5 * 8 + 1] = 0" (subscript_expression "puVar4[iVar5 * 8 + 1]" identifier [ (binary_expression "iVar5 * 8 + 1" (binary_expression "iVar5 * 8" identifier * number_literal) + number_literal) ]) = number_literal) ;) (expression_statement "puVar4[iVar5 * 8 + 2] = param_3;" (assignment_expression "puVar4[iVar5 * 8 + 2] = param_3" (subscript_expression "puVar4[iVar5 * 8 + 2]" identifier [ (binary_expression "iVar5 * 8 + 2" (binary_expression "iVar5 * 8" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "uVar2 = param_5[1];" (assignment_expression "uVar2 = param_5[1]" identifier = (subscript_expression "param_5[1]" identifier [ number_literal ])) ;) (expression_statement "puVar4[iVar5 * 8 + 6] = *param_5;" (assignment_expression "puVar4[iVar5 * 8 + 6] = *param_5" (subscript_expression "puVar4[iVar5 * 8 + 6]" identifier [ (binary_expression "iVar5 * 8 + 6" (binary_expression "iVar5 * 8" identifier * number_literal) + number_literal) ]) = (pointer_expression "*param_5" * identifier)) ;) (expression_statement "puVar4[iVar5 * 8 + 7] = uVar2;" (assignment_expression "puVar4[iVar5 * 8 + 7] = uVar2" (subscript_expression "puVar4[iVar5 * 8 + 7]" identifier [ (binary_expression "iVar5 * 8 + 7" (binary_expression "iVar5 * 8" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "pbVar1 = (byte *)((int)puVar4 + iVar5 * 0x20 + 0x1e);" (assignment_expression "pbVar1 = (byte *)((int)puVar4 + iVar5 * 0x20 + 0x1e)" identifier = (cast_expression "(byte *)((int)puVar4 + iVar5 * 0x20 + 0x1e)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + iVar5 * 0x20 + 0x1e)" ( (binary_expression "(int)puVar4 + iVar5 * 0x20 + 0x1e" (binary_expression "(int)puVar4 + iVar5 * 0x20" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar5 * 0x20" identifier * number_literal)) + number_literal) )))) ;) (expression_statement "*pbVar1 = *pbVar1 & 0xf3;" (assignment_expression "*pbVar1 = *pbVar1 & 0xf3" (pointer_expression "*pbVar1" * identifier) = (binary_expression "*pbVar1 & 0xf3" (pointer_expression "*pbVar1" * identifier) & number_literal)) ;) (expression_statement "puVar4[iVar5 * 8 + 4] = 0;" (assignment_expression "puVar4[iVar5 * 8 + 4] = 0" (subscript_expression "puVar4[iVar5 * 8 + 4]" identifier [ (binary_expression "iVar5 * 8 + 4" (binary_expression "iVar5 * 8" identifier * number_literal) + number_literal) ]) = number_literal) ;) (expression_statement "puVar4[iVar5 * 8 + 5] = 0;" (assignment_expression "puVar4[iVar5 * 8 + 5] = 0" (subscript_expression "puVar4[iVar5 * 8 + 5]" identifier [ (binary_expression "iVar5 * 8 + 5" (binary_expression "iVar5 * 8" identifier * number_literal) + number_literal) ]) = number_literal) ;) (expression_statement "puVar4[iVar5 * 8 + 8] = 0xffffffff;" (assignment_expression "puVar4[iVar5 * 8 + 8] = 0xffffffff" (subscript_expression "puVar4[iVar5 * 8 + 8]" identifier [ (binary_expression "iVar5 * 8 + 8" (binary_expression "iVar5 * 8" identifier * number_literal) + number_literal) ]) = number_literal) ;) (if_statement "if (param_3 != (int *)0x0) {\n    *param_3 = iVar3;\n  }" if (parenthesized_expression "(param_3 != (int *)0x0)" ( (binary_expression "param_3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_3 = iVar3;\n  }" { (expression_statement "*param_3 = iVar3;" (assignment_expression "*param_3 = iVar3" (pointer_expression "*param_3" * identifier) = identifier) ;) })) (if_statement "if (param_4 != (int *)0x0) {\n    *param_4 = iVar3;\n  }" if (parenthesized_expression "(param_4 != (int *)0x0)" ( (binary_expression "param_4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_4 = iVar3;\n  }" { (expression_statement "*param_4 = iVar3;" (assignment_expression "*param_4 = iVar3" (pointer_expression "*param_4" * identifier) = identifier) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: bin_tree_t * create_token_tree(re_dfa_t * dfa, bin_tree_t * left,\n   bin_tree_t * right, re_token_t * token, re_dfa_t * dfa) */\n\nbin_tree_t * __regparm3\ncreate_token_tree(re_dfa_t *dfa,bin_tree_t *left,bin_tree_t *right,re_token_t *token,re_dfa_t *dfa_1\n                 )\n\n{\n  size_t sVar1;\n  anon_union_4_5_a39f51ca_for_opr aVar2;\n  int iVar3;\n  re_token_t *prVar4;\n  bin_tree_t *pbVar5;\n  bin_tree_t *pbVar6;\n  \n  pbVar5 = left->parent;\n  if (pbVar5 == (bin_tree_t *)0x1f) {\n    prVar4 = (re_token_t *)malloc(0x3e4);\n    if (prVar4 == (re_token_t *)0x0) {\n      return (bin_tree_t *)0x0;\n    }\n    aVar2 = (anon_union_4_5_a39f51ca_for_opr)dfa->nodes;\n    pbVar5 = (bin_tree_t *)0x0;\n    dfa->nodes = prVar4;\n    pbVar6 = (bin_tree_t *)0x1;\n    prVar4->opr = aVar2;\n    iVar3 = 4;\n  }\n  else {\n    prVar4 = dfa->nodes;\n    pbVar6 = (bin_tree_t *)((int)&pbVar5->parent + 1);\n    iVar3 = (int)pbVar5 * 0x20 + 4;\n  }\n  left->parent = pbVar6;\n  pbVar6 = (bin_tree_t *)((int)&prVar4->opr + iVar3);\n  *(re_token_t **)&prVar4[(int)pbVar5 * 4 + 1].field_0x4 = token;\n  *(undefined4 *)&prVar4[(int)pbVar5 * 4].field_0x4 = 0;\n  prVar4[(int)pbVar5 * 4 + 1].opr.mbcset = (re_charset_t *)right;\n  sVar1 = dfa_1->nodes_alloc;\n  prVar4[(int)pbVar5 * 4 + 3].opr = (anon_union_4_5_a39f51ca_for_opr)dfa_1->nodes;\n  *(size_t *)&prVar4[(int)pbVar5 * 4 + 3].field_0x4 = sVar1;\n  prVar4[(int)pbVar5 * 4 + 3].field_0x6 = prVar4[(int)pbVar5 * 4 + 3].field_0x6 & 0xf3;\n  prVar4[(int)pbVar5 * 4 + 2].opr.sbcset = (re_bitset_ptr_t)0x0;\n  *(undefined4 *)&prVar4[(int)pbVar5 * 4 + 2].field_0x4 = 0;\n  prVar4[(int)pbVar5 * 4 + 4].opr.idx = -1;\n  if (right != (bin_tree_t *)0x0) {\n    right->parent = pbVar6;\n  }\n  if (token != (re_token_t *)0x0) {\n    (token->opr).sbcset = (re_bitset_ptr_t)pbVar6;\n  }\n  return pbVar6;\n}\n\n" comment comment (ERROR "bin_tree_t * __regparm3\ncreate_token_tree(re_dfa_t *dfa,bin_tree_t *left,bin_tree_t *right,re_token_t *token,re_dfa_t *dfa_1\n                 )" (binary_expression "bin_tree_t * __regparm3\ncreate_token_tree(re_dfa_t *dfa,bin_tree_t *left,bin_tree_t *right,re_token_t *token,re_dfa_t *dfa_1\n                 )" identifier * (ERROR "__regparm3" identifier) (call_expression "create_token_tree(re_dfa_t *dfa,bin_tree_t *left,bin_tree_t *right,re_token_t *token,re_dfa_t *dfa_1\n                 )" identifier (argument_list "(re_dfa_t *dfa,bin_tree_t *left,bin_tree_t *right,re_token_t *token,re_dfa_t *dfa_1\n                 )" ( (binary_expression "re_dfa_t *dfa" identifier * identifier) , (binary_expression "bin_tree_t *left" identifier * identifier) , (binary_expression "bin_tree_t *right" identifier * identifier) , (binary_expression "re_token_t *token" identifier * identifier) , (binary_expression "re_dfa_t *dfa_1" identifier * identifier) ))))) (compound_statement "{\n  size_t sVar1;\n  anon_union_4_5_a39f51ca_for_opr aVar2;\n  int iVar3;\n  re_token_t *prVar4;\n  bin_tree_t *pbVar5;\n  bin_tree_t *pbVar6;\n  \n  pbVar5 = left->parent;\n  if (pbVar5 == (bin_tree_t *)0x1f) {\n    prVar4 = (re_token_t *)malloc(0x3e4);\n    if (prVar4 == (re_token_t *)0x0) {\n      return (bin_tree_t *)0x0;\n    }\n    aVar2 = (anon_union_4_5_a39f51ca_for_opr)dfa->nodes;\n    pbVar5 = (bin_tree_t *)0x0;\n    dfa->nodes = prVar4;\n    pbVar6 = (bin_tree_t *)0x1;\n    prVar4->opr = aVar2;\n    iVar3 = 4;\n  }\n  else {\n    prVar4 = dfa->nodes;\n    pbVar6 = (bin_tree_t *)((int)&pbVar5->parent + 1);\n    iVar3 = (int)pbVar5 * 0x20 + 4;\n  }\n  left->parent = pbVar6;\n  pbVar6 = (bin_tree_t *)((int)&prVar4->opr + iVar3);\n  *(re_token_t **)&prVar4[(int)pbVar5 * 4 + 1].field_0x4 = token;\n  *(undefined4 *)&prVar4[(int)pbVar5 * 4].field_0x4 = 0;\n  prVar4[(int)pbVar5 * 4 + 1].opr.mbcset = (re_charset_t *)right;\n  sVar1 = dfa_1->nodes_alloc;\n  prVar4[(int)pbVar5 * 4 + 3].opr = (anon_union_4_5_a39f51ca_for_opr)dfa_1->nodes;\n  *(size_t *)&prVar4[(int)pbVar5 * 4 + 3].field_0x4 = sVar1;\n  prVar4[(int)pbVar5 * 4 + 3].field_0x6 = prVar4[(int)pbVar5 * 4 + 3].field_0x6 & 0xf3;\n  prVar4[(int)pbVar5 * 4 + 2].opr.sbcset = (re_bitset_ptr_t)0x0;\n  *(undefined4 *)&prVar4[(int)pbVar5 * 4 + 2].field_0x4 = 0;\n  prVar4[(int)pbVar5 * 4 + 4].opr.idx = -1;\n  if (right != (bin_tree_t *)0x0) {\n    right->parent = pbVar6;\n  }\n  if (token != (re_token_t *)0x0) {\n    (token->opr).sbcset = (re_bitset_ptr_t)pbVar6;\n  }\n  return pbVar6;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "anon_union_4_5_a39f51ca_for_opr aVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "re_token_t *prVar4;" type_identifier (pointer_declarator "*prVar4" * identifier) ;) (declaration "bin_tree_t *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "bin_tree_t *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (expression_statement "pbVar5 = left->parent;" (assignment_expression "pbVar5 = left->parent" identifier = (field_expression "left->parent" identifier -> field_identifier)) ;) (if_statement "if (pbVar5 == (bin_tree_t *)0x1f) {\n    prVar4 = (re_token_t *)malloc(0x3e4);\n    if (prVar4 == (re_token_t *)0x0) {\n      return (bin_tree_t *)0x0;\n    }\n    aVar2 = (anon_union_4_5_a39f51ca_for_opr)dfa->nodes;\n    pbVar5 = (bin_tree_t *)0x0;\n    dfa->nodes = prVar4;\n    pbVar6 = (bin_tree_t *)0x1;\n    prVar4->opr = aVar2;\n    iVar3 = 4;\n  }\n  else {\n    prVar4 = dfa->nodes;\n    pbVar6 = (bin_tree_t *)((int)&pbVar5->parent + 1);\n    iVar3 = (int)pbVar5 * 0x20 + 4;\n  }" if (parenthesized_expression "(pbVar5 == (bin_tree_t *)0x1f)" ( (binary_expression "pbVar5 == (bin_tree_t *)0x1f" identifier == (cast_expression "(bin_tree_t *)0x1f" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    prVar4 = (re_token_t *)malloc(0x3e4);\n    if (prVar4 == (re_token_t *)0x0) {\n      return (bin_tree_t *)0x0;\n    }\n    aVar2 = (anon_union_4_5_a39f51ca_for_opr)dfa->nodes;\n    pbVar5 = (bin_tree_t *)0x0;\n    dfa->nodes = prVar4;\n    pbVar6 = (bin_tree_t *)0x1;\n    prVar4->opr = aVar2;\n    iVar3 = 4;\n  }" { (expression_statement "prVar4 = (re_token_t *)malloc(0x3e4);" (assignment_expression "prVar4 = (re_token_t *)malloc(0x3e4)" identifier = (cast_expression "(re_token_t *)malloc(0x3e4)" ( (type_descriptor "re_token_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x3e4)" identifier (argument_list "(0x3e4)" ( number_literal ))))) ;) (if_statement "if (prVar4 == (re_token_t *)0x0) {\n      return (bin_tree_t *)0x0;\n    }" if (parenthesized_expression "(prVar4 == (re_token_t *)0x0)" ( (binary_expression "prVar4 == (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      return (bin_tree_t *)0x0;\n    }" { (return_statement "return (bin_tree_t *)0x0;" return (cast_expression "(bin_tree_t *)0x0" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "aVar2 = (anon_union_4_5_a39f51ca_for_opr)dfa->nodes;" (assignment_expression "aVar2 = (anon_union_4_5_a39f51ca_for_opr)dfa->nodes" identifier = (cast_expression "(anon_union_4_5_a39f51ca_for_opr)dfa->nodes" ( (type_descriptor "anon_union_4_5_a39f51ca_for_opr" type_identifier) ) (field_expression "dfa->nodes" identifier -> field_identifier))) ;) (expression_statement "pbVar5 = (bin_tree_t *)0x0;" (assignment_expression "pbVar5 = (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 "dfa->nodes = prVar4;" (assignment_expression "dfa->nodes = prVar4" (field_expression "dfa->nodes" identifier -> field_identifier) = identifier) ;) (expression_statement "pbVar6 = (bin_tree_t *)0x1;" (assignment_expression "pbVar6 = (bin_tree_t *)0x1" identifier = (cast_expression "(bin_tree_t *)0x1" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "prVar4->opr = aVar2;" (assignment_expression "prVar4->opr = aVar2" (field_expression "prVar4->opr" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar3 = 4;" (assignment_expression "iVar3 = 4" identifier = number_literal) ;) }) (else_clause "else {\n    prVar4 = dfa->nodes;\n    pbVar6 = (bin_tree_t *)((int)&pbVar5->parent + 1);\n    iVar3 = (int)pbVar5 * 0x20 + 4;\n  }" else (compound_statement "{\n    prVar4 = dfa->nodes;\n    pbVar6 = (bin_tree_t *)((int)&pbVar5->parent + 1);\n    iVar3 = (int)pbVar5 * 0x20 + 4;\n  }" { (expression_statement "prVar4 = dfa->nodes;" (assignment_expression "prVar4 = dfa->nodes" identifier = (field_expression "dfa->nodes" identifier -> field_identifier)) ;) (expression_statement "pbVar6 = (bin_tree_t *)((int)&pbVar5->parent + 1);" (assignment_expression "pbVar6 = (bin_tree_t *)((int)&pbVar5->parent + 1)" identifier = (cast_expression "(bin_tree_t *)((int)&pbVar5->parent + 1)" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pbVar5->parent + 1)" ( (binary_expression "(int)&pbVar5->parent + 1" (cast_expression "(int)&pbVar5->parent" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pbVar5->parent" & (field_expression "pbVar5->parent" identifier -> field_identifier))) + number_literal) )))) ;) (expression_statement "iVar3 = (int)pbVar5 * 0x20 + 4;" (assignment_expression "iVar3 = (int)pbVar5 * 0x20 + 4" identifier = (binary_expression "(int)pbVar5 * 0x20 + 4" (binary_expression "(int)pbVar5 * 0x20" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) + number_literal)) ;) }))) (expression_statement "left->parent = pbVar6;" (assignment_expression "left->parent = pbVar6" (field_expression "left->parent" identifier -> field_identifier) = identifier) ;) (expression_statement "pbVar6 = (bin_tree_t *)((int)&prVar4->opr + iVar3);" (assignment_expression "pbVar6 = (bin_tree_t *)((int)&prVar4->opr + iVar3)" identifier = (cast_expression "(bin_tree_t *)((int)&prVar4->opr + iVar3)" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&prVar4->opr + iVar3)" ( (binary_expression "(int)&prVar4->opr + iVar3" (cast_expression "(int)&prVar4->opr" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&prVar4->opr" & (field_expression "prVar4->opr" identifier -> field_identifier))) + identifier) )))) ;) (expression_statement "*(re_token_t **)&prVar4[(int)pbVar5 * 4 + 1].field_0x4 = token;" (assignment_expression "*(re_token_t **)&prVar4[(int)pbVar5 * 4 + 1].field_0x4 = token" (pointer_expression "*(re_token_t **)&prVar4[(int)pbVar5 * 4 + 1].field_0x4" * (cast_expression "(re_token_t **)&prVar4[(int)pbVar5 * 4 + 1].field_0x4" ( (type_descriptor "re_token_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&prVar4[(int)pbVar5 * 4 + 1].field_0x4" & (field_expression "prVar4[(int)pbVar5 * 4 + 1].field_0x4" (subscript_expression "prVar4[(int)pbVar5 * 4 + 1]" identifier [ (binary_expression "(int)pbVar5 * 4 + 1" (binary_expression "(int)pbVar5 * 4" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) + number_literal) ]) . field_identifier)))) = identifier) ;) (expression_statement "*(undefined4 *)&prVar4[(int)pbVar5 * 4].field_0x4 = 0;" (assignment_expression "*(undefined4 *)&prVar4[(int)pbVar5 * 4].field_0x4 = 0" (pointer_expression "*(undefined4 *)&prVar4[(int)pbVar5 * 4].field_0x4" * (cast_expression "(undefined4 *)&prVar4[(int)pbVar5 * 4].field_0x4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&prVar4[(int)pbVar5 * 4].field_0x4" & (field_expression "prVar4[(int)pbVar5 * 4].field_0x4" (subscript_expression "prVar4[(int)pbVar5 * 4]" identifier [ (binary_expression "(int)pbVar5 * 4" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) ]) . field_identifier)))) = number_literal) ;) (expression_statement "prVar4[(int)pbVar5 * 4 + 1].opr.mbcset = (re_charset_t *)right;" (assignment_expression "prVar4[(int)pbVar5 * 4 + 1].opr.mbcset = (re_charset_t *)right" (field_expression "prVar4[(int)pbVar5 * 4 + 1].opr.mbcset" (field_expression "prVar4[(int)pbVar5 * 4 + 1].opr" (subscript_expression "prVar4[(int)pbVar5 * 4 + 1]" identifier [ (binary_expression "(int)pbVar5 * 4 + 1" (binary_expression "(int)pbVar5 * 4" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) + number_literal) ]) . field_identifier) . field_identifier) = (cast_expression "(re_charset_t *)right" ( (type_descriptor "re_charset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "sVar1 = dfa_1->nodes_alloc;" (assignment_expression "sVar1 = dfa_1->nodes_alloc" identifier = (field_expression "dfa_1->nodes_alloc" identifier -> field_identifier)) ;) (expression_statement "prVar4[(int)pbVar5 * 4 + 3].opr = (anon_union_4_5_a39f51ca_for_opr)dfa_1->nodes;" (assignment_expression "prVar4[(int)pbVar5 * 4 + 3].opr = (anon_union_4_5_a39f51ca_for_opr)dfa_1->nodes" (field_expression "prVar4[(int)pbVar5 * 4 + 3].opr" (subscript_expression "prVar4[(int)pbVar5 * 4 + 3]" identifier [ (binary_expression "(int)pbVar5 * 4 + 3" (binary_expression "(int)pbVar5 * 4" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) + number_literal) ]) . field_identifier) = (cast_expression "(anon_union_4_5_a39f51ca_for_opr)dfa_1->nodes" ( (type_descriptor "anon_union_4_5_a39f51ca_for_opr" type_identifier) ) (field_expression "dfa_1->nodes" identifier -> field_identifier))) ;) (expression_statement "*(size_t *)&prVar4[(int)pbVar5 * 4 + 3].field_0x4 = sVar1;" (assignment_expression "*(size_t *)&prVar4[(int)pbVar5 * 4 + 3].field_0x4 = sVar1" (pointer_expression "*(size_t *)&prVar4[(int)pbVar5 * 4 + 3].field_0x4" * (cast_expression "(size_t *)&prVar4[(int)pbVar5 * 4 + 3].field_0x4" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&prVar4[(int)pbVar5 * 4 + 3].field_0x4" & (field_expression "prVar4[(int)pbVar5 * 4 + 3].field_0x4" (subscript_expression "prVar4[(int)pbVar5 * 4 + 3]" identifier [ (binary_expression "(int)pbVar5 * 4 + 3" (binary_expression "(int)pbVar5 * 4" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) + number_literal) ]) . field_identifier)))) = identifier) ;) (expression_statement "prVar4[(int)pbVar5 * 4 + 3].field_0x6 = prVar4[(int)pbVar5 * 4 + 3].field_0x6 & 0xf3;" (assignment_expression "prVar4[(int)pbVar5 * 4 + 3].field_0x6 = prVar4[(int)pbVar5 * 4 + 3].field_0x6 & 0xf3" (field_expression "prVar4[(int)pbVar5 * 4 + 3].field_0x6" (subscript_expression "prVar4[(int)pbVar5 * 4 + 3]" identifier [ (binary_expression "(int)pbVar5 * 4 + 3" (binary_expression "(int)pbVar5 * 4" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) + number_literal) ]) . field_identifier) = (binary_expression "prVar4[(int)pbVar5 * 4 + 3].field_0x6 & 0xf3" (field_expression "prVar4[(int)pbVar5 * 4 + 3].field_0x6" (subscript_expression "prVar4[(int)pbVar5 * 4 + 3]" identifier [ (binary_expression "(int)pbVar5 * 4 + 3" (binary_expression "(int)pbVar5 * 4" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) + number_literal) ]) . field_identifier) & number_literal)) ;) (expression_statement "prVar4[(int)pbVar5 * 4 + 2].opr.sbcset = (re_bitset_ptr_t)0x0;" (assignment_expression "prVar4[(int)pbVar5 * 4 + 2].opr.sbcset = (re_bitset_ptr_t)0x0" (field_expression "prVar4[(int)pbVar5 * 4 + 2].opr.sbcset" (field_expression "prVar4[(int)pbVar5 * 4 + 2].opr" (subscript_expression "prVar4[(int)pbVar5 * 4 + 2]" identifier [ (binary_expression "(int)pbVar5 * 4 + 2" (binary_expression "(int)pbVar5 * 4" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) + number_literal) ]) . field_identifier) . field_identifier) = (cast_expression "(re_bitset_ptr_t)0x0" ( (type_descriptor "re_bitset_ptr_t" type_identifier) ) number_literal)) ;) (expression_statement "*(undefined4 *)&prVar4[(int)pbVar5 * 4 + 2].field_0x4 = 0;" (assignment_expression "*(undefined4 *)&prVar4[(int)pbVar5 * 4 + 2].field_0x4 = 0" (pointer_expression "*(undefined4 *)&prVar4[(int)pbVar5 * 4 + 2].field_0x4" * (cast_expression "(undefined4 *)&prVar4[(int)pbVar5 * 4 + 2].field_0x4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&prVar4[(int)pbVar5 * 4 + 2].field_0x4" & (field_expression "prVar4[(int)pbVar5 * 4 + 2].field_0x4" (subscript_expression "prVar4[(int)pbVar5 * 4 + 2]" identifier [ (binary_expression "(int)pbVar5 * 4 + 2" (binary_expression "(int)pbVar5 * 4" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) + number_literal) ]) . field_identifier)))) = number_literal) ;) (expression_statement "prVar4[(int)pbVar5 * 4 + 4].opr.idx = -1;" (assignment_expression "prVar4[(int)pbVar5 * 4 + 4].opr.idx = -1" (field_expression "prVar4[(int)pbVar5 * 4 + 4].opr.idx" (field_expression "prVar4[(int)pbVar5 * 4 + 4].opr" (subscript_expression "prVar4[(int)pbVar5 * 4 + 4]" identifier [ (binary_expression "(int)pbVar5 * 4 + 4" (binary_expression "(int)pbVar5 * 4" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) + number_literal) ]) . field_identifier) . field_identifier) = number_literal) ;) (if_statement "if (right != (bin_tree_t *)0x0) {\n    right->parent = pbVar6;\n  }" if (parenthesized_expression "(right != (bin_tree_t *)0x0)" ( (binary_expression "right != (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    right->parent = pbVar6;\n  }" { (expression_statement "right->parent = pbVar6;" (assignment_expression "right->parent = pbVar6" (field_expression "right->parent" identifier -> field_identifier) = identifier) ;) })) (if_statement "if (token != (re_token_t *)0x0) {\n    (token->opr).sbcset = (re_bitset_ptr_t)pbVar6;\n  }" if (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->opr).sbcset = (re_bitset_ptr_t)pbVar6;\n  }" { (expression_statement "(token->opr).sbcset = (re_bitset_ptr_t)pbVar6;" (assignment_expression "(token->opr).sbcset = (re_bitset_ptr_t)pbVar6" (field_expression "(token->opr).sbcset" (parenthesized_expression "(token->opr)" ( (field_expression "token->opr" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(re_bitset_ptr_t)pbVar6" ( (type_descriptor "re_bitset_ptr_t" type_identifier) ) identifier)) ;) })) (return_statement "return pbVar6;" return identifier ;) }))
(translation_unit "int __regparm3\nFUN_0003f840(undefined4 *param_1,int *param_2,int *param_3,int *param_4,undefined4 *param_5)\n\n{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = *param_2;\n  if (iVar5 == 0x1f) {\n    puVar4 = (undefined4 *)malloc(0x3e4);\n    if (puVar4 == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar2 = *param_1;\n    iVar5 = 0;\n    *param_1 = puVar4;\n    iVar6 = 1;\n    *puVar4 = uVar2;\n    iVar3 = 4;\n  }\n  else {\n    puVar4 = (undefined4 *)*param_1;\n    iVar6 = iVar5 + 1;\n    iVar3 = iVar5 * 0x20 + 4;\n  }\n  *param_2 = iVar6;\n  iVar3 = iVar3 + (int)puVar4;\n  puVar4[iVar5 * 8 + 3] = param_4;\n  puVar4[iVar5 * 8 + 1] = 0;\n  puVar4[iVar5 * 8 + 2] = param_3;\n  uVar2 = param_5[1];\n  puVar4[iVar5 * 8 + 6] = *param_5;\n  puVar4[iVar5 * 8 + 7] = uVar2;\n  pbVar1 = (byte *)((int)puVar4 + iVar5 * 0x20 + 0x1e);\n  *pbVar1 = *pbVar1 & 0xf3;\n  puVar4[iVar5 * 8 + 4] = 0;\n  puVar4[iVar5 * 8 + 5] = 0;\n  puVar4[iVar5 * 8 + 8] = 0xffffffff;\n  if (param_3 != (int *)0x0) {\n    *param_3 = iVar3;\n  }\n  if (param_4 != (int *)0x0) {\n    *param_4 = iVar3;\n  }\n  return iVar3;\n}\n\n" (function_definition "int __regparm3\nFUN_0003f840(undefined4 *param_1,int *param_2,int *param_3,int *param_4,undefined4 *param_5)\n\n{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = *param_2;\n  if (iVar5 == 0x1f) {\n    puVar4 = (undefined4 *)malloc(0x3e4);\n    if (puVar4 == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar2 = *param_1;\n    iVar5 = 0;\n    *param_1 = puVar4;\n    iVar6 = 1;\n    *puVar4 = uVar2;\n    iVar3 = 4;\n  }\n  else {\n    puVar4 = (undefined4 *)*param_1;\n    iVar6 = iVar5 + 1;\n    iVar3 = iVar5 * 0x20 + 4;\n  }\n  *param_2 = iVar6;\n  iVar3 = iVar3 + (int)puVar4;\n  puVar4[iVar5 * 8 + 3] = param_4;\n  puVar4[iVar5 * 8 + 1] = 0;\n  puVar4[iVar5 * 8 + 2] = param_3;\n  uVar2 = param_5[1];\n  puVar4[iVar5 * 8 + 6] = *param_5;\n  puVar4[iVar5 * 8 + 7] = uVar2;\n  pbVar1 = (byte *)((int)puVar4 + iVar5 * 0x20 + 0x1e);\n  *pbVar1 = *pbVar1 & 0xf3;\n  puVar4[iVar5 * 8 + 4] = 0;\n  puVar4[iVar5 * 8 + 5] = 0;\n  puVar4[iVar5 * 8 + 8] = 0xffffffff;\n  if (param_3 != (int *)0x0) {\n    *param_3 = iVar3;\n  }\n  if (param_4 != (int *)0x0) {\n    *param_4 = iVar3;\n  }\n  return iVar3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0003f840(undefined4 *param_1,int *param_2,int *param_3,int *param_4,undefined4 *param_5)" identifier (parameter_list "(undefined4 *param_1,int *param_2,int *param_3,int *param_4,undefined4 *param_5)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = *param_2;\n  if (iVar5 == 0x1f) {\n    puVar4 = (undefined4 *)malloc(0x3e4);\n    if (puVar4 == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar2 = *param_1;\n    iVar5 = 0;\n    *param_1 = puVar4;\n    iVar6 = 1;\n    *puVar4 = uVar2;\n    iVar3 = 4;\n  }\n  else {\n    puVar4 = (undefined4 *)*param_1;\n    iVar6 = iVar5 + 1;\n    iVar3 = iVar5 * 0x20 + 4;\n  }\n  *param_2 = iVar6;\n  iVar3 = iVar3 + (int)puVar4;\n  puVar4[iVar5 * 8 + 3] = param_4;\n  puVar4[iVar5 * 8 + 1] = 0;\n  puVar4[iVar5 * 8 + 2] = param_3;\n  uVar2 = param_5[1];\n  puVar4[iVar5 * 8 + 6] = *param_5;\n  puVar4[iVar5 * 8 + 7] = uVar2;\n  pbVar1 = (byte *)((int)puVar4 + iVar5 * 0x20 + 0x1e);\n  *pbVar1 = *pbVar1 & 0xf3;\n  puVar4[iVar5 * 8 + 4] = 0;\n  puVar4[iVar5 * 8 + 5] = 0;\n  puVar4[iVar5 * 8 + 8] = 0xffffffff;\n  if (param_3 != (int *)0x0) {\n    *param_3 = iVar3;\n  }\n  if (param_4 != (int *)0x0) {\n    *param_4 = iVar3;\n  }\n  return iVar3;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar5 = *param_2;" (assignment_expression "iVar5 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (iVar5 == 0x1f) {\n    puVar4 = (undefined4 *)malloc(0x3e4);\n    if (puVar4 == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar2 = *param_1;\n    iVar5 = 0;\n    *param_1 = puVar4;\n    iVar6 = 1;\n    *puVar4 = uVar2;\n    iVar3 = 4;\n  }\n  else {\n    puVar4 = (undefined4 *)*param_1;\n    iVar6 = iVar5 + 1;\n    iVar3 = iVar5 * 0x20 + 4;\n  }" if (parenthesized_expression "(iVar5 == 0x1f)" ( (binary_expression "iVar5 == 0x1f" identifier == number_literal) )) (compound_statement "{\n    puVar4 = (undefined4 *)malloc(0x3e4);\n    if (puVar4 == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar2 = *param_1;\n    iVar5 = 0;\n    *param_1 = puVar4;\n    iVar6 = 1;\n    *puVar4 = uVar2;\n    iVar3 = 4;\n  }" { (expression_statement "puVar4 = (undefined4 *)malloc(0x3e4);" (assignment_expression "puVar4 = (undefined4 *)malloc(0x3e4)" identifier = (cast_expression "(undefined4 *)malloc(0x3e4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x3e4)" identifier (argument_list "(0x3e4)" ( number_literal ))))) ;) (if_statement "if (puVar4 == (undefined4 *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(puVar4 == (undefined4 *)0x0)" ( (binary_expression "puVar4 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "*param_1 = puVar4;" (assignment_expression "*param_1 = puVar4" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (expression_statement "*puVar4 = uVar2;" (assignment_expression "*puVar4 = uVar2" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "iVar3 = 4;" (assignment_expression "iVar3 = 4" identifier = number_literal) ;) }) (else_clause "else {\n    puVar4 = (undefined4 *)*param_1;\n    iVar6 = iVar5 + 1;\n    iVar3 = iVar5 * 0x20 + 4;\n  }" else (compound_statement "{\n    puVar4 = (undefined4 *)*param_1;\n    iVar6 = iVar5 + 1;\n    iVar3 = iVar5 * 0x20 + 4;\n  }" { (expression_statement "puVar4 = (undefined4 *)*param_1;" (assignment_expression "puVar4 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "iVar6 = iVar5 + 1;" (assignment_expression "iVar6 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = iVar5 * 0x20 + 4;" (assignment_expression "iVar3 = iVar5 * 0x20 + 4" identifier = (binary_expression "iVar5 * 0x20 + 4" (binary_expression "iVar5 * 0x20" identifier * number_literal) + number_literal)) ;) }))) (expression_statement "*param_2 = iVar6;" (assignment_expression "*param_2 = iVar6" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "iVar3 = iVar3 + (int)puVar4;" (assignment_expression "iVar3 = iVar3 + (int)puVar4" identifier = (binary_expression "iVar3 + (int)puVar4" identifier + (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "puVar4[iVar5 * 8 + 3] = param_4;" (assignment_expression "puVar4[iVar5 * 8 + 3] = param_4" (subscript_expression "puVar4[iVar5 * 8 + 3]" identifier [ (binary_expression "iVar5 * 8 + 3" (binary_expression "iVar5 * 8" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "puVar4[iVar5 * 8 + 1] = 0;" (assignment_expression "puVar4[iVar5 * 8 + 1] = 0" (subscript_expression "puVar4[iVar5 * 8 + 1]" identifier [ (binary_expression "iVar5 * 8 + 1" (binary_expression "iVar5 * 8" identifier * number_literal) + number_literal) ]) = number_literal) ;) (expression_statement "puVar4[iVar5 * 8 + 2] = param_3;" (assignment_expression "puVar4[iVar5 * 8 + 2] = param_3" (subscript_expression "puVar4[iVar5 * 8 + 2]" identifier [ (binary_expression "iVar5 * 8 + 2" (binary_expression "iVar5 * 8" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "uVar2 = param_5[1];" (assignment_expression "uVar2 = param_5[1]" identifier = (subscript_expression "param_5[1]" identifier [ number_literal ])) ;) (expression_statement "puVar4[iVar5 * 8 + 6] = *param_5;" (assignment_expression "puVar4[iVar5 * 8 + 6] = *param_5" (subscript_expression "puVar4[iVar5 * 8 + 6]" identifier [ (binary_expression "iVar5 * 8 + 6" (binary_expression "iVar5 * 8" identifier * number_literal) + number_literal) ]) = (pointer_expression "*param_5" * identifier)) ;) (expression_statement "puVar4[iVar5 * 8 + 7] = uVar2;" (assignment_expression "puVar4[iVar5 * 8 + 7] = uVar2" (subscript_expression "puVar4[iVar5 * 8 + 7]" identifier [ (binary_expression "iVar5 * 8 + 7" (binary_expression "iVar5 * 8" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "pbVar1 = (byte *)((int)puVar4 + iVar5 * 0x20 + 0x1e);" (assignment_expression "pbVar1 = (byte *)((int)puVar4 + iVar5 * 0x20 + 0x1e)" identifier = (cast_expression "(byte *)((int)puVar4 + iVar5 * 0x20 + 0x1e)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + iVar5 * 0x20 + 0x1e)" ( (binary_expression "(int)puVar4 + iVar5 * 0x20 + 0x1e" (binary_expression "(int)puVar4 + iVar5 * 0x20" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar5 * 0x20" identifier * number_literal)) + number_literal) )))) ;) (expression_statement "*pbVar1 = *pbVar1 & 0xf3;" (assignment_expression "*pbVar1 = *pbVar1 & 0xf3" (pointer_expression "*pbVar1" * identifier) = (binary_expression "*pbVar1 & 0xf3" (pointer_expression "*pbVar1" * identifier) & number_literal)) ;) (expression_statement "puVar4[iVar5 * 8 + 4] = 0;" (assignment_expression "puVar4[iVar5 * 8 + 4] = 0" (subscript_expression "puVar4[iVar5 * 8 + 4]" identifier [ (binary_expression "iVar5 * 8 + 4" (binary_expression "iVar5 * 8" identifier * number_literal) + number_literal) ]) = number_literal) ;) (expression_statement "puVar4[iVar5 * 8 + 5] = 0;" (assignment_expression "puVar4[iVar5 * 8 + 5] = 0" (subscript_expression "puVar4[iVar5 * 8 + 5]" identifier [ (binary_expression "iVar5 * 8 + 5" (binary_expression "iVar5 * 8" identifier * number_literal) + number_literal) ]) = number_literal) ;) (expression_statement "puVar4[iVar5 * 8 + 8] = 0xffffffff;" (assignment_expression "puVar4[iVar5 * 8 + 8] = 0xffffffff" (subscript_expression "puVar4[iVar5 * 8 + 8]" identifier [ (binary_expression "iVar5 * 8 + 8" (binary_expression "iVar5 * 8" identifier * number_literal) + number_literal) ]) = number_literal) ;) (if_statement "if (param_3 != (int *)0x0) {\n    *param_3 = iVar3;\n  }" if (parenthesized_expression "(param_3 != (int *)0x0)" ( (binary_expression "param_3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_3 = iVar3;\n  }" { (expression_statement "*param_3 = iVar3;" (assignment_expression "*param_3 = iVar3" (pointer_expression "*param_3" * identifier) = identifier) ;) })) (if_statement "if (param_4 != (int *)0x0) {\n    *param_4 = iVar3;\n  }" if (parenthesized_expression "(param_4 != (int *)0x0)" ( (binary_expression "param_4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_4 = iVar3;\n  }" { (expression_statement "*param_4 = iVar3;" (assignment_expression "*param_4 = iVar3" (pointer_expression "*param_4" * identifier) = identifier) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + LIT)) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) & LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int __regparm3\nFUN_0003f840(undefined4 *param_1,int *param_2,int *param_3,int *param_4,undefined4 *param_5)\n\n{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = *param_2;\n  if (iVar5 == 0x1f) {\n    puVar4 = (undefined4 *)malloc(0x3e4);\n    if (puVar4 == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar2 = *param_1;\n    iVar5 = 0;\n    *param_1 = puVar4;\n    iVar6 = 1;\n    *puVar4 = uVar2;\n    iVar3 = 4;\n  }\n  else {\n    puVar4 = (undefined4 *)*param_1;\n    iVar6 = iVar5 + 1;\n    iVar3 = iVar5 * 0x20 + 4;\n  }\n  *param_2 = iVar6;\n  iVar3 = iVar3 + (int)puVar4;\n  puVar4[iVar5 * 8 + 3] = param_4;\n  puVar4[iVar5 * 8 + 1] = 0;\n  puVar4[iVar5 * 8 + 2] = param_3;\n  uVar2 = param_5[1];\n  puVar4[iVar5 * 8 + 6] = *param_5;\n  puVar4[iVar5 * 8 + 7] = uVar2;\n  pbVar1 = (byte *)((int)puVar4 + iVar5 * 0x20 + 0x1e);\n  *pbVar1 = *pbVar1 & 0xf3;\n  puVar4[iVar5 * 8 + 4] = 0;\n  puVar4[iVar5 * 8 + 5] = 0;\n  puVar4[iVar5 * 8 + 8] = 0xffffffff;\n  if (param_3 != (int *)0x0) {\n    *param_3 = iVar3;\n  }\n  if (param_4 != (int *)0x0) {\n    *param_4 = iVar3;\n  }\n  return iVar3;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0003f840(undefined4 *param_1,int *param_2,int *param_3,int *param_4,undefined4 *param_5)" (identifier "FUN_0003f840") (parameter_list "(undefined4 *param_1,int *param_2,int *param_3,int *param_4,undefined4 *param_5)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "undefined4 *param_5" (type_identifier "undefined4") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = *param_2;\n  if (iVar5 == 0x1f) {\n    puVar4 = (undefined4 *)malloc(0x3e4);\n    if (puVar4 == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar2 = *param_1;\n    iVar5 = 0;\n    *param_1 = puVar4;\n    iVar6 = 1;\n    *puVar4 = uVar2;\n    iVar3 = 4;\n  }\n  else {\n    puVar4 = (undefined4 *)*param_1;\n    iVar6 = iVar5 + 1;\n    iVar3 = iVar5 * 0x20 + 4;\n  }\n  *param_2 = iVar6;\n  iVar3 = iVar3 + (int)puVar4;\n  puVar4[iVar5 * 8 + 3] = param_4;\n  puVar4[iVar5 * 8 + 1] = 0;\n  puVar4[iVar5 * 8 + 2] = param_3;\n  uVar2 = param_5[1];\n  puVar4[iVar5 * 8 + 6] = *param_5;\n  puVar4[iVar5 * 8 + 7] = uVar2;\n  pbVar1 = (byte *)((int)puVar4 + iVar5 * 0x20 + 0x1e);\n  *pbVar1 = *pbVar1 & 0xf3;\n  puVar4[iVar5 * 8 + 4] = 0;\n  puVar4[iVar5 * 8 + 5] = 0;\n  puVar4[iVar5 * 8 + 8] = 0xffffffff;\n  if (param_3 != (int *)0x0) {\n    *param_3 = iVar3;\n  }\n  if (param_4 != (int *)0x0) {\n    *param_4 = iVar3;\n  }\n  return iVar3;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "iVar5 = *param_2;" (assignment_expression "iVar5 = *param_2" (identifier "iVar5") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (iVar5 == 0x1f) {\n    puVar4 = (undefined4 *)malloc(0x3e4);\n    if (puVar4 == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar2 = *param_1;\n    iVar5 = 0;\n    *param_1 = puVar4;\n    iVar6 = 1;\n    *puVar4 = uVar2;\n    iVar3 = 4;\n  }\n  else {\n    puVar4 = (undefined4 *)*param_1;\n    iVar6 = iVar5 + 1;\n    iVar3 = iVar5 * 0x20 + 4;\n  }" (if "if") (parenthesized_expression "(iVar5 == 0x1f)" (( "(") (binary_expression "iVar5 == 0x1f" (identifier "iVar5") (== "==") (number_literal "0x1f")) () ")")) (compound_statement "{\n    puVar4 = (undefined4 *)malloc(0x3e4);\n    if (puVar4 == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar2 = *param_1;\n    iVar5 = 0;\n    *param_1 = puVar4;\n    iVar6 = 1;\n    *puVar4 = uVar2;\n    iVar3 = 4;\n  }" ({ "{") (expression_statement "puVar4 = (undefined4 *)malloc(0x3e4);" (assignment_expression "puVar4 = (undefined4 *)malloc(0x3e4)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)malloc(0x3e4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "malloc(0x3e4)" (identifier "malloc") (argument_list "(0x3e4)" (( "(") (number_literal "0x3e4") () ")"))))) (; ";")) (if_statement "if (puVar4 == (undefined4 *)0x0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(puVar4 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar4 == (undefined4 *)0x0" (identifier "puVar4") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" (identifier "uVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_1 = puVar4;" (assignment_expression "*param_1 = puVar4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "puVar4")) (; ";")) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" (identifier "iVar6") (= "=") (number_literal "1")) (; ";")) (expression_statement "*puVar4 = uVar2;" (assignment_expression "*puVar4 = uVar2" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "iVar3 = 4;" (assignment_expression "iVar3 = 4" (identifier "iVar3") (= "=") (number_literal "4")) (; ";")) (} "}")) (else_clause "else {\n    puVar4 = (undefined4 *)*param_1;\n    iVar6 = iVar5 + 1;\n    iVar3 = iVar5 * 0x20 + 4;\n  }" (else "else") (compound_statement "{\n    puVar4 = (undefined4 *)*param_1;\n    iVar6 = iVar5 + 1;\n    iVar3 = iVar5 * 0x20 + 4;\n  }" ({ "{") (expression_statement "puVar4 = (undefined4 *)*param_1;" (assignment_expression "puVar4 = (undefined4 *)*param_1" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "iVar6 = iVar5 + 1;" (assignment_expression "iVar6 = iVar5 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = iVar5 * 0x20 + 4;" (assignment_expression "iVar3 = iVar5 * 0x20 + 4" (identifier "iVar3") (= "=") (binary_expression "iVar5 * 0x20 + 4" (binary_expression "iVar5 * 0x20" (identifier "iVar5") (* "*") (number_literal "0x20")) (+ "+") (number_literal "4"))) (; ";")) (} "}")))) (expression_statement "*param_2 = iVar6;" (assignment_expression "*param_2 = iVar6" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar6")) (; ";")) (expression_statement "iVar3 = iVar3 + (int)puVar4;" (assignment_expression "iVar3 = iVar3 + (int)puVar4" (identifier "iVar3") (= "=") (binary_expression "iVar3 + (int)puVar4" (identifier "iVar3") (+ "+") (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")))) (; ";")) (expression_statement "puVar4[iVar5 * 8 + 3] = param_4;" (assignment_expression "puVar4[iVar5 * 8 + 3] = param_4" (subscript_expression "puVar4[iVar5 * 8 + 3]" (identifier "puVar4") ([ "[") (binary_expression "iVar5 * 8 + 3" (binary_expression "iVar5 * 8" (identifier "iVar5") (* "*") (number_literal "8")) (+ "+") (number_literal "3")) (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "puVar4[iVar5 * 8 + 1] = 0;" (assignment_expression "puVar4[iVar5 * 8 + 1] = 0" (subscript_expression "puVar4[iVar5 * 8 + 1]" (identifier "puVar4") ([ "[") (binary_expression "iVar5 * 8 + 1" (binary_expression "iVar5 * 8" (identifier "iVar5") (* "*") (number_literal "8")) (+ "+") (number_literal "1")) (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4[iVar5 * 8 + 2] = param_3;" (assignment_expression "puVar4[iVar5 * 8 + 2] = param_3" (subscript_expression "puVar4[iVar5 * 8 + 2]" (identifier "puVar4") ([ "[") (binary_expression "iVar5 * 8 + 2" (binary_expression "iVar5 * 8" (identifier "iVar5") (* "*") (number_literal "8")) (+ "+") (number_literal "2")) (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "uVar2 = param_5[1];" (assignment_expression "uVar2 = param_5[1]" (identifier "uVar2") (= "=") (subscript_expression "param_5[1]" (identifier "param_5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar4[iVar5 * 8 + 6] = *param_5;" (assignment_expression "puVar4[iVar5 * 8 + 6] = *param_5" (subscript_expression "puVar4[iVar5 * 8 + 6]" (identifier "puVar4") ([ "[") (binary_expression "iVar5 * 8 + 6" (binary_expression "iVar5 * 8" (identifier "iVar5") (* "*") (number_literal "8")) (+ "+") (number_literal "6")) (] "]")) (= "=") (pointer_expression "*param_5" (* "*") (identifier "param_5"))) (; ";")) (expression_statement "puVar4[iVar5 * 8 + 7] = uVar2;" (assignment_expression "puVar4[iVar5 * 8 + 7] = uVar2" (subscript_expression "puVar4[iVar5 * 8 + 7]" (identifier "puVar4") ([ "[") (binary_expression "iVar5 * 8 + 7" (binary_expression "iVar5 * 8" (identifier "iVar5") (* "*") (number_literal "8")) (+ "+") (number_literal "7")) (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "pbVar1 = (byte *)((int)puVar4 + iVar5 * 0x20 + 0x1e);" (assignment_expression "pbVar1 = (byte *)((int)puVar4 + iVar5 * 0x20 + 0x1e)" (identifier "pbVar1") (= "=") (cast_expression "(byte *)((int)puVar4 + iVar5 * 0x20 + 0x1e)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar4 + iVar5 * 0x20 + 0x1e)" (( "(") (binary_expression "(int)puVar4 + iVar5 * 0x20 + 0x1e" (binary_expression "(int)puVar4 + iVar5 * 0x20" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (+ "+") (binary_expression "iVar5 * 0x20" (identifier "iVar5") (* "*") (number_literal "0x20"))) (+ "+") (number_literal "0x1e")) () ")")))) (; ";")) (expression_statement "*pbVar1 = *pbVar1 & 0xf3;" (assignment_expression "*pbVar1 = *pbVar1 & 0xf3" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (= "=") (binary_expression "*pbVar1 & 0xf3" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (& "&") (number_literal "0xf3"))) (; ";")) (expression_statement "puVar4[iVar5 * 8 + 4] = 0;" (assignment_expression "puVar4[iVar5 * 8 + 4] = 0" (subscript_expression "puVar4[iVar5 * 8 + 4]" (identifier "puVar4") ([ "[") (binary_expression "iVar5 * 8 + 4" (binary_expression "iVar5 * 8" (identifier "iVar5") (* "*") (number_literal "8")) (+ "+") (number_literal "4")) (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4[iVar5 * 8 + 5] = 0;" (assignment_expression "puVar4[iVar5 * 8 + 5] = 0" (subscript_expression "puVar4[iVar5 * 8 + 5]" (identifier "puVar4") ([ "[") (binary_expression "iVar5 * 8 + 5" (binary_expression "iVar5 * 8" (identifier "iVar5") (* "*") (number_literal "8")) (+ "+") (number_literal "5")) (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4[iVar5 * 8 + 8] = 0xffffffff;" (assignment_expression "puVar4[iVar5 * 8 + 8] = 0xffffffff" (subscript_expression "puVar4[iVar5 * 8 + 8]" (identifier "puVar4") ([ "[") (binary_expression "iVar5 * 8 + 8" (binary_expression "iVar5 * 8" (identifier "iVar5") (* "*") (number_literal "8")) (+ "+") (number_literal "8")) (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if (param_3 != (int *)0x0) {\n    *param_3 = iVar3;\n  }" (if "if") (parenthesized_expression "(param_3 != (int *)0x0)" (( "(") (binary_expression "param_3 != (int *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *param_3 = iVar3;\n  }" ({ "{") (expression_statement "*param_3 = iVar3;" (assignment_expression "*param_3 = iVar3" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (if_statement "if (param_4 != (int *)0x0) {\n    *param_4 = iVar3;\n  }" (if "if") (parenthesized_expression "(param_4 != (int *)0x0)" (( "(") (binary_expression "param_4 != (int *)0x0" (identifier "param_4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *param_4 = iVar3;\n  }" ({ "{") (expression_statement "*param_4 = iVar3;" (assignment_expression "*param_4 = iVar3" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: bin_tree_t * create_token_tree(re_dfa_t * dfa, bin_tree_t * left,
   bin_tree_t * right, re_token_t * token, re_dfa_t * dfa) */

type_3 * __regparm3
create_token_tree(re_dfa_t *dfa,type_3 *left,type_3 *var_5,type_2 *var_6,re_dfa_t *dfa_1
                 )

{
  size_t sVar1;
  type_1 aVar2;
  int var_4;
  type_2 *var_3;
  type_3 *var_1;
  type_3 *pbVar6;
  
  var_1 = left->parent;
  if (var_1 == (type_3 *)0x1f) {
    var_3 = (type_2 *)var_2(0x3e4);
    if (var_3 == (type_2 *)0x0) {
      return (type_3 *)0x0;
    }
    aVar2 = (type_1)dfa->nodes;
    var_1 = (type_3 *)0x0;
    dfa->nodes = var_3;
    pbVar6 = (type_3 *)0x1;
    var_3->opr = aVar2;
    var_4 = 4;
  }
  else {
    var_3 = dfa->nodes;
    pbVar6 = (type_3 *)((int)&var_1->parent + 1);
    var_4 = (int)var_1 * 0x20 + 4;
  }
  left->parent = pbVar6;
  pbVar6 = (type_3 *)((int)&var_3->opr + var_4);
  *(type_2 **)&var_3[(int)var_1 * 4 + 1].field_0x4 = var_6;
  *(type_4 *)&var_3[(int)var_1 * 4].field_0x4 = 0;
  var_3[(int)var_1 * 4 + 1].opr.mbcset = (type_5 *)var_5;
  sVar1 = dfa_1->nodes_alloc;
  var_3[(int)var_1 * 4 + 3].opr = (type_1)dfa_1->nodes;
  *(size_t *)&var_3[(int)var_1 * 4 + 3].field_0x4 = sVar1;
  var_3[(int)var_1 * 4 + 3].field_0x6 = var_3[(int)var_1 * 4 + 3].field_0x6 & 0xf3;
  var_3[(int)var_1 * 4 + 2].opr.sbcset = (type_6)0x0;
  *(type_4 *)&var_3[(int)var_1 * 4 + 2].field_0x4 = 0;
  var_3[(int)var_1 * 4 + 4].opr.idx = -1;
  if (var_5 != (type_3 *)0x0) {
    var_5->parent = pbVar6;
  }
  if (var_6 != (type_2 *)0x0) {
    (var_6->opr).sbcset = (type_6)pbVar6;
  }
  return pbVar6;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (return_statement (identifier)))))

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

int __regparm3
MASKED(undefined4 *param_1,int *param_2,int *param_3,int *param_4,undefined4 *param_5)

{
  byte *pbVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 *puVar4;
  int iVar5;
  int iVar6;
  
  iVar5 = *param_2;
  if (iVar5 == 0x1f) {
    puVar4 = (undefined4 *)malloc(0x3e4);
    if (puVar4 == (undefined4 *)0x0) {
      return 0;
    }
    uVar2 = *param_1;
    iVar5 = 0;
    *param_1 = puVar4;
    iVar6 = 1;
    *puVar4 = uVar2;
    iVar3 = 4;
  }
  else {
    puVar4 = (undefined4 *)*param_1;
    iVar6 = iVar5 + 1;
    iVar3 = iVar5 * 0x20 + 4;
  }
  *param_2 = iVar6;
  iVar3 = iVar3 + (int)puVar4;
  puVar4[iVar5 * 8 + 3] = param_4;
  puVar4[iVar5 * 8 + 1] = 0;
  puVar4[iVar5 * 8 + 2] = param_3;
  uVar2 = param_5[1];
  puVar4[iVar5 * 8 + 6] = *param_5;
  puVar4[iVar5 * 8 + 7] = uVar2;
  pbVar1 = (byte *)((int)puVar4 + iVar5 * 0x20 + 0x1e);
  *pbVar1 = *pbVar1 & 0xf3;
  puVar4[iVar5 * 8 + 4] = 0;
  puVar4[iVar5 * 8 + 5] = 0;
  puVar4[iVar5 * 8 + 8] = 0xffffffff;
  if (param_3 != (int *)0x0) {
    *param_3 = iVar3;
  }
  if (param_4 != (int *)0x0) {
    *param_4 = iVar3;
  }
  return iVar3;
}

