
bin_tree_t * __regparm3 duplicate_tree(bin_tree_t *root,re_dfa_t *dfa)

{
  undefined1 *puVar1;
  bin_tree_t *pbVar2;
  bin_tree_t *pbVar3;
  bin_tree_t *pbVar4;
  bin_tree_t *pbVar5;
  bin_tree_t **ppbVar6;
  int in_GS_OFFSET;
  bin_tree_t *dup_root;
  int local_20;
  
  pbVar5 = root->parent;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  ppbVar6 = &dup_root;
  while( true ) {
    pbVar2 = create_token_tree((re_dfa_t *)&dfa->str_tree_storage,
                               (bin_tree_t *)&dfa->str_tree_storage_idx,(bin_tree_t *)0x0,
                               (re_token_t *)0x0,(re_dfa_t *)&root->token);
    *ppbVar6 = pbVar2;
    if (pbVar2 == (bin_tree_t *)0x0) break;
    pbVar2->parent = pbVar5;
    pbVar5 = *ppbVar6;
    puVar1 = &(pbVar5->token).field_0x6;
    *puVar1 = *puVar1 | 4;
    if (root->left == (bin_tree_t *)0x0) {
      pbVar3 = (bin_tree_t *)0x0;
      pbVar4 = root;
      while ((root = pbVar4->right, root == (bin_tree_t *)0x0 || (root == pbVar3))) {
        ppbVar6 = &pbVar4->parent;
        pbVar5 = pbVar5->parent;
        pbVar2 = dup_root;
        pbVar3 = pbVar4;
        pbVar4 = *ppbVar6;
        if (*ppbVar6 == (bin_tree_t *)0x0) goto LAB_0007c4d3;
      }
      ppbVar6 = &pbVar5->right;
    }
    else {
      ppbVar6 = &pbVar5->left;
      root = root->left;
    }
  }
LAB_0007c4d3:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return pbVar2;
}



int * __regparm3 FUN_0007c450(int *param_1)

{
  int *piVar1;
  int *piVar2;
  int *piVar3;
  int *piVar4;
  int *piVar5;
  int **ppiVar6;
  int in_GS_OFFSET;
  int *local_24;
  int local_20;
  
  piVar5 = (int *)*param_1;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  ppiVar6 = &local_24;
  while( true ) {
    piVar2 = (int *)FUN_0007c380(0,param_1 + 5);
    *ppiVar6 = piVar2;
    if (piVar2 == (int *)0x0) break;
    *piVar2 = (int)piVar5;
    piVar5 = *ppiVar6;
    *(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4;
    if ((int *)param_1[1] == (int *)0x0) {
      piVar3 = (int *)0x0;
      piVar4 = param_1;
      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {
        piVar1 = (int *)*piVar4;
        piVar5 = (int *)*piVar5;
        piVar2 = local_24;
        piVar3 = piVar4;
        piVar4 = piVar1;
        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;
      }
      ppiVar6 = (int **)(piVar5 + 2);
    }
    else {
      ppiVar6 = (int **)(piVar5 + 1);
      param_1 = (int *)param_1[1];
    }
  }
LAB_0007c4d3:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00087be0();
  }
  return piVar2;
}


PUSH EBP
PUSH EDI
LEA EBP,[EDX + 0x38]
PUSH ESI
PUSH EBX
MOV EBX,EAX
SUB ESP,0x2c
MOV ESI,dword ptr [EBX]
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
LEA EAX,[EDX + 0x40]
LEA EDI,[ESP + 0x18]
MOV dword ptr [ESP + 0xc],EAX
LEA ESI,[ESI]
LEA EAX,[EBX + 0x14]
SUB ESP,0x8
XOR ECX,ECX
PUSH EAX
PUSH 0x0
MOV EAX,EBP
MOV EDX,dword ptr [ESP + 0x1c]
CALL 0x0007c380
ADD ESP,0x10
TEST EAX,EAX
MOV dword ptr [EDI],EAX
JZ 0x0007c4d3
MOV dword ptr [EAX],ESI
MOV ESI,dword ptr [EDI]
OR byte ptr [ESI + 0x1a],0x4
MOV EAX,dword ptr [EBX + 0x4]
TEST EAX,EAX
JZ 0x0007c4b0
LEA EDI,[ESI + 0x4]
MOV EBX,EAX
JMP 0x0007c478
XOR EDX,EDX
JMP 0x0007c4ba
MOV EBX,EAX
MOV EAX,dword ptr [EBX + 0x8]
TEST EAX,EAX
JZ 0x0007c4c5
CMP EAX,EDX
JNZ 0x0007c4f0
MOV EAX,dword ptr [EBX]
MOV ESI,dword ptr [ESI]
MOV EDX,EBX
TEST EAX,EAX
JNZ 0x0007c4b8
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [ESP + 0x1c]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x0007c4f7
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EDI,[ESI + 0x8]
MOV EBX,EAX
JMP 0x0007c478
CALL 0x00087be0
(translation_unit "int * __regparm3 FUN_0007c450(int *param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int *piVar5;\n  int **ppiVar6;\n  int in_GS_OFFSET;\n  int *local_24;\n  int local_20;\n  \n  piVar5 = (int *)*param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  ppiVar6 = &local_24;\n  while( true ) {\n    piVar2 = (int *)FUN_0007c380(0,param_1 + 5);\n    *ppiVar6 = piVar2;\n    if (piVar2 == (int *)0x0) break;\n    *piVar2 = (int)piVar5;\n    piVar5 = *ppiVar6;\n    *(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4;\n    if ((int *)param_1[1] == (int *)0x0) {\n      piVar3 = (int *)0x0;\n      piVar4 = param_1;\n      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }\n      ppiVar6 = (int **)(piVar5 + 2);\n    }\n    else {\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }\n  }\nLAB_0007c4d3:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00087be0();\n  }\n  return piVar2;\n}\n\n" (function_definition "int * __regparm3 FUN_0007c450(int *param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int *piVar5;\n  int **ppiVar6;\n  int in_GS_OFFSET;\n  int *local_24;\n  int local_20;\n  \n  piVar5 = (int *)*param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  ppiVar6 = &local_24;\n  while( true ) {\n    piVar2 = (int *)FUN_0007c380(0,param_1 + 5);\n    *ppiVar6 = piVar2;\n    if (piVar2 == (int *)0x0) break;\n    *piVar2 = (int)piVar5;\n    piVar5 = *ppiVar6;\n    *(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4;\n    if ((int *)param_1[1] == (int *)0x0) {\n      piVar3 = (int *)0x0;\n      piVar4 = param_1;\n      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }\n      ppiVar6 = (int **)(piVar5 + 2);\n    }\n    else {\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }\n  }\nLAB_0007c4d3:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00087be0();\n  }\n  return piVar2;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_0007c450(int *param_1)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_0007c450(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int *piVar5;\n  int **ppiVar6;\n  int in_GS_OFFSET;\n  int *local_24;\n  int local_20;\n  \n  piVar5 = (int *)*param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  ppiVar6 = &local_24;\n  while( true ) {\n    piVar2 = (int *)FUN_0007c380(0,param_1 + 5);\n    *ppiVar6 = piVar2;\n    if (piVar2 == (int *)0x0) break;\n    *piVar2 = (int)piVar5;\n    piVar5 = *ppiVar6;\n    *(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4;\n    if ((int *)param_1[1] == (int *)0x0) {\n      piVar3 = (int *)0x0;\n      piVar4 = param_1;\n      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }\n      ppiVar6 = (int **)(piVar5 + 2);\n    }\n    else {\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }\n  }\nLAB_0007c4d3:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00087be0();\n  }\n  return piVar2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int **ppiVar6;" primitive_type (pointer_declarator "**ppiVar6" * (pointer_declarator "*ppiVar6" * identifier)) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "piVar5 = (int *)*param_1;" (assignment_expression "piVar5 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (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 "ppiVar6 = &local_24;" (assignment_expression "ppiVar6 = &local_24" identifier = (pointer_expression "&local_24" & identifier)) ;) (while_statement "while( true ) {\n    piVar2 = (int *)FUN_0007c380(0,param_1 + 5);\n    *ppiVar6 = piVar2;\n    if (piVar2 == (int *)0x0) break;\n    *piVar2 = (int)piVar5;\n    piVar5 = *ppiVar6;\n    *(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4;\n    if ((int *)param_1[1] == (int *)0x0) {\n      piVar3 = (int *)0x0;\n      piVar4 = param_1;\n      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }\n      ppiVar6 = (int **)(piVar5 + 2);\n    }\n    else {\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    piVar2 = (int *)FUN_0007c380(0,param_1 + 5);\n    *ppiVar6 = piVar2;\n    if (piVar2 == (int *)0x0) break;\n    *piVar2 = (int)piVar5;\n    piVar5 = *ppiVar6;\n    *(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4;\n    if ((int *)param_1[1] == (int *)0x0) {\n      piVar3 = (int *)0x0;\n      piVar4 = param_1;\n      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }\n      ppiVar6 = (int **)(piVar5 + 2);\n    }\n    else {\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }\n  }" { (expression_statement "piVar2 = (int *)FUN_0007c380(0,param_1 + 5);" (assignment_expression "piVar2 = (int *)FUN_0007c380(0,param_1 + 5)" identifier = (cast_expression "(int *)FUN_0007c380(0,param_1 + 5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0007c380(0,param_1 + 5)" identifier (argument_list "(0,param_1 + 5)" ( number_literal , (binary_expression "param_1 + 5" identifier + number_literal) ))))) ;) (expression_statement "*ppiVar6 = piVar2;" (assignment_expression "*ppiVar6 = piVar2" (pointer_expression "*ppiVar6" * identifier) = identifier) ;) (if_statement "if (piVar2 == (int *)0x0) break;" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "*piVar2 = (int)piVar5;" (assignment_expression "*piVar2 = (int)piVar5" (pointer_expression "*piVar2" * identifier) = (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar5 = *ppiVar6;" (assignment_expression "piVar5 = *ppiVar6" identifier = (pointer_expression "*ppiVar6" * identifier)) ;) (expression_statement "*(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4;" (assignment_expression "*(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4" (pointer_expression "*(byte *)((int)piVar5 + 0x1a)" * (cast_expression "(byte *)((int)piVar5 + 0x1a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar5 + 0x1a)" ( (binary_expression "(int)piVar5 + 0x1a" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(byte *)((int)piVar5 + 0x1a) | 4" (pointer_expression "*(byte *)((int)piVar5 + 0x1a)" * (cast_expression "(byte *)((int)piVar5 + 0x1a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar5 + 0x1a)" ( (binary_expression "(int)piVar5 + 0x1a" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) | number_literal)) ;) (if_statement "if ((int *)param_1[1] == (int *)0x0) {\n      piVar3 = (int *)0x0;\n      piVar4 = param_1;\n      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }\n      ppiVar6 = (int **)(piVar5 + 2);\n    }\n    else {\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }" if (parenthesized_expression "((int *)param_1[1] == (int *)0x0)" ( (binary_expression "(int *)param_1[1] == (int *)0x0" (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      piVar3 = (int *)0x0;\n      piVar4 = param_1;\n      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }\n      ppiVar6 = (int **)(piVar5 + 2);\n    }" { (expression_statement "piVar3 = (int *)0x0;" (assignment_expression "piVar3 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "piVar4 = param_1;" (assignment_expression "piVar4 = param_1" identifier = identifier) ;) (while_statement "while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }" while (parenthesized_expression "((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3)))" ( (parenthesized_expression "(param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))" ( (comma_expression "param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3)" (assignment_expression "param_1 = (int *)piVar4[2]" identifier = (cast_expression "(int *)piVar4[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ]))) , (binary_expression "param_1 == (int *)0x0 || (param_1 == piVar3)" (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) || (parenthesized_expression "(param_1 == piVar3)" ( (binary_expression "param_1 == piVar3" identifier == identifier) )))) )) )) (compound_statement "{\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }" { (expression_statement "piVar1 = (int *)*piVar4;" (assignment_expression "piVar1 = (int *)*piVar4" identifier = (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) (expression_statement "piVar5 = (int *)*piVar5;" (assignment_expression "piVar5 = (int *)*piVar5" identifier = (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) ;) (expression_statement "piVar2 = local_24;" (assignment_expression "piVar2 = local_24" identifier = identifier) ;) (expression_statement "piVar3 = piVar4;" (assignment_expression "piVar3 = piVar4" identifier = identifier) ;) (expression_statement "piVar4 = piVar1;" (assignment_expression "piVar4 = piVar1" identifier = identifier) ;) (if_statement "if (piVar1 == (int *)0x0) goto LAB_0007c4d3;" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0007c4d3;" goto statement_identifier ;)) })) (expression_statement "ppiVar6 = (int **)(piVar5 + 2);" (assignment_expression "ppiVar6 = (int **)(piVar5 + 2)" identifier = (cast_expression "(int **)(piVar5 + 2)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar5 + 2)" ( (binary_expression "piVar5 + 2" identifier + number_literal) )))) ;) }) (else_clause "else {\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }" else (compound_statement "{\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }" { (expression_statement "ppiVar6 = (int **)(piVar5 + 1);" (assignment_expression "ppiVar6 = (int **)(piVar5 + 1)" identifier = (cast_expression "(int **)(piVar5 + 1)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar5 + 1)" ( (binary_expression "piVar5 + 1" identifier + number_literal) )))) ;) (expression_statement "param_1 = (int *)param_1[1];" (assignment_expression "param_1 = (int *)param_1[1]" identifier = (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) }))) })) (labeled_statement "LAB_0007c4d3:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00087be0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00087be0();\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_00087be0();\n  }" { comment (expression_statement "FUN_00087be0();" (call_expression "FUN_00087be0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return piVar2;" return identifier ;) })))
(translation_unit "bin_tree_t * __regparm3 duplicate_tree(bin_tree_t *root,re_dfa_t *dfa)\n\n{\n  undefined1 *puVar1;\n  bin_tree_t *pbVar2;\n  bin_tree_t *pbVar3;\n  bin_tree_t *pbVar4;\n  bin_tree_t *pbVar5;\n  bin_tree_t **ppbVar6;\n  int in_GS_OFFSET;\n  bin_tree_t *dup_root;\n  int local_20;\n  \n  pbVar5 = root->parent;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  ppbVar6 = &dup_root;\n  while( true ) {\n    pbVar2 = create_token_tree((re_dfa_t *)&dfa->str_tree_storage,\n                               (bin_tree_t *)&dfa->str_tree_storage_idx,(bin_tree_t *)0x0,\n                               (re_token_t *)0x0,(re_dfa_t *)&root->token);\n    *ppbVar6 = pbVar2;\n    if (pbVar2 == (bin_tree_t *)0x0) break;\n    pbVar2->parent = pbVar5;\n    pbVar5 = *ppbVar6;\n    puVar1 = &(pbVar5->token).field_0x6;\n    *puVar1 = *puVar1 | 4;\n    if (root->left == (bin_tree_t *)0x0) {\n      pbVar3 = (bin_tree_t *)0x0;\n      pbVar4 = root;\n      while ((root = pbVar4->right, root == (bin_tree_t *)0x0 || (root == pbVar3))) {\n        ppbVar6 = &pbVar4->parent;\n        pbVar5 = pbVar5->parent;\n        pbVar2 = dup_root;\n        pbVar3 = pbVar4;\n        pbVar4 = *ppbVar6;\n        if (*ppbVar6 == (bin_tree_t *)0x0) goto LAB_0007c4d3;\n      }\n      ppbVar6 = &pbVar5->right;\n    }\n    else {\n      ppbVar6 = &pbVar5->left;\n      root = root->left;\n    }\n  }\nLAB_0007c4d3:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return pbVar2;\n}\n\n" (ERROR "bin_tree_t * __regparm3 duplicate_tree(bin_tree_t *root,re_dfa_t *dfa)" (binary_expression "bin_tree_t * __regparm3 duplicate_tree(bin_tree_t *root,re_dfa_t *dfa)" identifier * (ERROR "__regparm3" identifier) (call_expression "duplicate_tree(bin_tree_t *root,re_dfa_t *dfa)" identifier (argument_list "(bin_tree_t *root,re_dfa_t *dfa)" ( (binary_expression "bin_tree_t *root" identifier * identifier) , (binary_expression "re_dfa_t *dfa" identifier * identifier) ))))) (compound_statement "{\n  undefined1 *puVar1;\n  bin_tree_t *pbVar2;\n  bin_tree_t *pbVar3;\n  bin_tree_t *pbVar4;\n  bin_tree_t *pbVar5;\n  bin_tree_t **ppbVar6;\n  int in_GS_OFFSET;\n  bin_tree_t *dup_root;\n  int local_20;\n  \n  pbVar5 = root->parent;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  ppbVar6 = &dup_root;\n  while( true ) {\n    pbVar2 = create_token_tree((re_dfa_t *)&dfa->str_tree_storage,\n                               (bin_tree_t *)&dfa->str_tree_storage_idx,(bin_tree_t *)0x0,\n                               (re_token_t *)0x0,(re_dfa_t *)&root->token);\n    *ppbVar6 = pbVar2;\n    if (pbVar2 == (bin_tree_t *)0x0) break;\n    pbVar2->parent = pbVar5;\n    pbVar5 = *ppbVar6;\n    puVar1 = &(pbVar5->token).field_0x6;\n    *puVar1 = *puVar1 | 4;\n    if (root->left == (bin_tree_t *)0x0) {\n      pbVar3 = (bin_tree_t *)0x0;\n      pbVar4 = root;\n      while ((root = pbVar4->right, root == (bin_tree_t *)0x0 || (root == pbVar3))) {\n        ppbVar6 = &pbVar4->parent;\n        pbVar5 = pbVar5->parent;\n        pbVar2 = dup_root;\n        pbVar3 = pbVar4;\n        pbVar4 = *ppbVar6;\n        if (*ppbVar6 == (bin_tree_t *)0x0) goto LAB_0007c4d3;\n      }\n      ppbVar6 = &pbVar5->right;\n    }\n    else {\n      ppbVar6 = &pbVar5->left;\n      root = root->left;\n    }\n  }\nLAB_0007c4d3:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return pbVar2;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "bin_tree_t *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "bin_tree_t *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "bin_tree_t *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "bin_tree_t *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "bin_tree_t **ppbVar6;" type_identifier (pointer_declarator "**ppbVar6" * (pointer_declarator "*ppbVar6" * identifier)) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bin_tree_t *dup_root;" type_identifier (pointer_declarator "*dup_root" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "pbVar5 = root->parent;" (assignment_expression "pbVar5 = root->parent" identifier = (field_expression "root->parent" identifier -> field_identifier)) ;) (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 "ppbVar6 = &dup_root;" (assignment_expression "ppbVar6 = &dup_root" identifier = (pointer_expression "&dup_root" & identifier)) ;) (while_statement "while( true ) {\n    pbVar2 = create_token_tree((re_dfa_t *)&dfa->str_tree_storage,\n                               (bin_tree_t *)&dfa->str_tree_storage_idx,(bin_tree_t *)0x0,\n                               (re_token_t *)0x0,(re_dfa_t *)&root->token);\n    *ppbVar6 = pbVar2;\n    if (pbVar2 == (bin_tree_t *)0x0) break;\n    pbVar2->parent = pbVar5;\n    pbVar5 = *ppbVar6;\n    puVar1 = &(pbVar5->token).field_0x6;\n    *puVar1 = *puVar1 | 4;\n    if (root->left == (bin_tree_t *)0x0) {\n      pbVar3 = (bin_tree_t *)0x0;\n      pbVar4 = root;\n      while ((root = pbVar4->right, root == (bin_tree_t *)0x0 || (root == pbVar3))) {\n        ppbVar6 = &pbVar4->parent;\n        pbVar5 = pbVar5->parent;\n        pbVar2 = dup_root;\n        pbVar3 = pbVar4;\n        pbVar4 = *ppbVar6;\n        if (*ppbVar6 == (bin_tree_t *)0x0) goto LAB_0007c4d3;\n      }\n      ppbVar6 = &pbVar5->right;\n    }\n    else {\n      ppbVar6 = &pbVar5->left;\n      root = root->left;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    pbVar2 = create_token_tree((re_dfa_t *)&dfa->str_tree_storage,\n                               (bin_tree_t *)&dfa->str_tree_storage_idx,(bin_tree_t *)0x0,\n                               (re_token_t *)0x0,(re_dfa_t *)&root->token);\n    *ppbVar6 = pbVar2;\n    if (pbVar2 == (bin_tree_t *)0x0) break;\n    pbVar2->parent = pbVar5;\n    pbVar5 = *ppbVar6;\n    puVar1 = &(pbVar5->token).field_0x6;\n    *puVar1 = *puVar1 | 4;\n    if (root->left == (bin_tree_t *)0x0) {\n      pbVar3 = (bin_tree_t *)0x0;\n      pbVar4 = root;\n      while ((root = pbVar4->right, root == (bin_tree_t *)0x0 || (root == pbVar3))) {\n        ppbVar6 = &pbVar4->parent;\n        pbVar5 = pbVar5->parent;\n        pbVar2 = dup_root;\n        pbVar3 = pbVar4;\n        pbVar4 = *ppbVar6;\n        if (*ppbVar6 == (bin_tree_t *)0x0) goto LAB_0007c4d3;\n      }\n      ppbVar6 = &pbVar5->right;\n    }\n    else {\n      ppbVar6 = &pbVar5->left;\n      root = root->left;\n    }\n  }" { (expression_statement "pbVar2 = create_token_tree((re_dfa_t *)&dfa->str_tree_storage,\n                               (bin_tree_t *)&dfa->str_tree_storage_idx,(bin_tree_t *)0x0,\n                               (re_token_t *)0x0,(re_dfa_t *)&root->token);" (assignment_expression "pbVar2 = create_token_tree((re_dfa_t *)&dfa->str_tree_storage,\n                               (bin_tree_t *)&dfa->str_tree_storage_idx,(bin_tree_t *)0x0,\n                               (re_token_t *)0x0,(re_dfa_t *)&root->token)" identifier = (call_expression "create_token_tree((re_dfa_t *)&dfa->str_tree_storage,\n                               (bin_tree_t *)&dfa->str_tree_storage_idx,(bin_tree_t *)0x0,\n                               (re_token_t *)0x0,(re_dfa_t *)&root->token)" identifier (argument_list "((re_dfa_t *)&dfa->str_tree_storage,\n                               (bin_tree_t *)&dfa->str_tree_storage_idx,(bin_tree_t *)0x0,\n                               (re_token_t *)0x0,(re_dfa_t *)&root->token)" ( (cast_expression "(re_dfa_t *)&dfa->str_tree_storage" ( (type_descriptor "re_dfa_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&dfa->str_tree_storage" & (field_expression "dfa->str_tree_storage" identifier -> field_identifier))) , (cast_expression "(bin_tree_t *)&dfa->str_tree_storage_idx" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&dfa->str_tree_storage_idx" & (field_expression "dfa->str_tree_storage_idx" identifier -> field_identifier))) , (cast_expression "(bin_tree_t *)0x0" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(re_token_t *)0x0" ( (type_descriptor "re_token_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(re_dfa_t *)&root->token" ( (type_descriptor "re_dfa_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&root->token" & (field_expression "root->token" identifier -> field_identifier))) )))) ;) (expression_statement "*ppbVar6 = pbVar2;" (assignment_expression "*ppbVar6 = pbVar2" (pointer_expression "*ppbVar6" * identifier) = identifier) ;) (if_statement "if (pbVar2 == (bin_tree_t *)0x0) break;" if (parenthesized_expression "(pbVar2 == (bin_tree_t *)0x0)" ( (binary_expression "pbVar2 == (bin_tree_t *)0x0" identifier == (cast_expression "(bin_tree_t *)0x0" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pbVar2->parent = pbVar5;" (assignment_expression "pbVar2->parent = pbVar5" (field_expression "pbVar2->parent" identifier -> field_identifier) = identifier) ;) (expression_statement "pbVar5 = *ppbVar6;" (assignment_expression "pbVar5 = *ppbVar6" identifier = (pointer_expression "*ppbVar6" * identifier)) ;) (expression_statement "puVar1 = &(pbVar5->token).field_0x6;" (assignment_expression "puVar1 = &(pbVar5->token).field_0x6" identifier = (pointer_expression "&(pbVar5->token).field_0x6" & (field_expression "(pbVar5->token).field_0x6" (parenthesized_expression "(pbVar5->token)" ( (field_expression "pbVar5->token" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "*puVar1 = *puVar1 | 4;" (assignment_expression "*puVar1 = *puVar1 | 4" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 4" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) (if_statement "if (root->left == (bin_tree_t *)0x0) {\n      pbVar3 = (bin_tree_t *)0x0;\n      pbVar4 = root;\n      while ((root = pbVar4->right, root == (bin_tree_t *)0x0 || (root == pbVar3))) {\n        ppbVar6 = &pbVar4->parent;\n        pbVar5 = pbVar5->parent;\n        pbVar2 = dup_root;\n        pbVar3 = pbVar4;\n        pbVar4 = *ppbVar6;\n        if (*ppbVar6 == (bin_tree_t *)0x0) goto LAB_0007c4d3;\n      }\n      ppbVar6 = &pbVar5->right;\n    }\n    else {\n      ppbVar6 = &pbVar5->left;\n      root = root->left;\n    }" if (parenthesized_expression "(root->left == (bin_tree_t *)0x0)" ( (binary_expression "root->left == (bin_tree_t *)0x0" (field_expression "root->left" identifier -> field_identifier) == (cast_expression "(bin_tree_t *)0x0" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pbVar3 = (bin_tree_t *)0x0;\n      pbVar4 = root;\n      while ((root = pbVar4->right, root == (bin_tree_t *)0x0 || (root == pbVar3))) {\n        ppbVar6 = &pbVar4->parent;\n        pbVar5 = pbVar5->parent;\n        pbVar2 = dup_root;\n        pbVar3 = pbVar4;\n        pbVar4 = *ppbVar6;\n        if (*ppbVar6 == (bin_tree_t *)0x0) goto LAB_0007c4d3;\n      }\n      ppbVar6 = &pbVar5->right;\n    }" { (expression_statement "pbVar3 = (bin_tree_t *)0x0;" (assignment_expression "pbVar3 = (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 "pbVar4 = root;" (assignment_expression "pbVar4 = root" identifier = identifier) ;) (while_statement "while ((root = pbVar4->right, root == (bin_tree_t *)0x0 || (root == pbVar3))) {\n        ppbVar6 = &pbVar4->parent;\n        pbVar5 = pbVar5->parent;\n        pbVar2 = dup_root;\n        pbVar3 = pbVar4;\n        pbVar4 = *ppbVar6;\n        if (*ppbVar6 == (bin_tree_t *)0x0) goto LAB_0007c4d3;\n      }" while (parenthesized_expression "((root = pbVar4->right, root == (bin_tree_t *)0x0 || (root == pbVar3)))" ( (parenthesized_expression "(root = pbVar4->right, root == (bin_tree_t *)0x0 || (root == pbVar3))" ( (comma_expression "root = pbVar4->right, root == (bin_tree_t *)0x0 || (root == pbVar3)" (assignment_expression "root = pbVar4->right" identifier = (field_expression "pbVar4->right" identifier -> field_identifier)) , (binary_expression "root == (bin_tree_t *)0x0 || (root == pbVar3)" (binary_expression "root == (bin_tree_t *)0x0" identifier == (cast_expression "(bin_tree_t *)0x0" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) || (parenthesized_expression "(root == pbVar3)" ( (binary_expression "root == pbVar3" identifier == identifier) )))) )) )) (compound_statement "{\n        ppbVar6 = &pbVar4->parent;\n        pbVar5 = pbVar5->parent;\n        pbVar2 = dup_root;\n        pbVar3 = pbVar4;\n        pbVar4 = *ppbVar6;\n        if (*ppbVar6 == (bin_tree_t *)0x0) goto LAB_0007c4d3;\n      }" { (expression_statement "ppbVar6 = &pbVar4->parent;" (assignment_expression "ppbVar6 = &pbVar4->parent" identifier = (pointer_expression "&pbVar4->parent" & (field_expression "pbVar4->parent" identifier -> field_identifier))) ;) (expression_statement "pbVar5 = pbVar5->parent;" (assignment_expression "pbVar5 = pbVar5->parent" identifier = (field_expression "pbVar5->parent" identifier -> field_identifier)) ;) (expression_statement "pbVar2 = dup_root;" (assignment_expression "pbVar2 = dup_root" identifier = identifier) ;) (expression_statement "pbVar3 = pbVar4;" (assignment_expression "pbVar3 = pbVar4" identifier = identifier) ;) (expression_statement "pbVar4 = *ppbVar6;" (assignment_expression "pbVar4 = *ppbVar6" identifier = (pointer_expression "*ppbVar6" * identifier)) ;) (if_statement "if (*ppbVar6 == (bin_tree_t *)0x0) goto LAB_0007c4d3;" if (parenthesized_expression "(*ppbVar6 == (bin_tree_t *)0x0)" ( (binary_expression "*ppbVar6 == (bin_tree_t *)0x0" (pointer_expression "*ppbVar6" * identifier) == (cast_expression "(bin_tree_t *)0x0" ( (type_descriptor "bin_tree_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0007c4d3;" goto statement_identifier ;)) })) (expression_statement "ppbVar6 = &pbVar5->right;" (assignment_expression "ppbVar6 = &pbVar5->right" identifier = (pointer_expression "&pbVar5->right" & (field_expression "pbVar5->right" identifier -> field_identifier))) ;) }) (else_clause "else {\n      ppbVar6 = &pbVar5->left;\n      root = root->left;\n    }" else (compound_statement "{\n      ppbVar6 = &pbVar5->left;\n      root = root->left;\n    }" { (expression_statement "ppbVar6 = &pbVar5->left;" (assignment_expression "ppbVar6 = &pbVar5->left" identifier = (pointer_expression "&pbVar5->left" & (field_expression "pbVar5->left" identifier -> field_identifier))) ;) (expression_statement "root = root->left;" (assignment_expression "root = root->left" identifier = (field_expression "root->left" identifier -> field_identifier)) ;) }))) })) (labeled_statement "LAB_0007c4d3:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\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    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return pbVar2;" return identifier ;) }))
(translation_unit "int * __regparm3 FUN_0007c450(int *param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int *piVar5;\n  int **ppiVar6;\n  int in_GS_OFFSET;\n  int *local_24;\n  int local_20;\n  \n  piVar5 = (int *)*param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  ppiVar6 = &local_24;\n  while( true ) {\n    piVar2 = (int *)FUN_0007c380(0,param_1 + 5);\n    *ppiVar6 = piVar2;\n    if (piVar2 == (int *)0x0) break;\n    *piVar2 = (int)piVar5;\n    piVar5 = *ppiVar6;\n    *(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4;\n    if ((int *)param_1[1] == (int *)0x0) {\n      piVar3 = (int *)0x0;\n      piVar4 = param_1;\n      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }\n      ppiVar6 = (int **)(piVar5 + 2);\n    }\n    else {\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }\n  }\nLAB_0007c4d3:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00087be0();\n  }\n  return piVar2;\n}\n\n" (function_definition "int * __regparm3 FUN_0007c450(int *param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int *piVar5;\n  int **ppiVar6;\n  int in_GS_OFFSET;\n  int *local_24;\n  int local_20;\n  \n  piVar5 = (int *)*param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  ppiVar6 = &local_24;\n  while( true ) {\n    piVar2 = (int *)FUN_0007c380(0,param_1 + 5);\n    *ppiVar6 = piVar2;\n    if (piVar2 == (int *)0x0) break;\n    *piVar2 = (int)piVar5;\n    piVar5 = *ppiVar6;\n    *(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4;\n    if ((int *)param_1[1] == (int *)0x0) {\n      piVar3 = (int *)0x0;\n      piVar4 = param_1;\n      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }\n      ppiVar6 = (int **)(piVar5 + 2);\n    }\n    else {\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }\n  }\nLAB_0007c4d3:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00087be0();\n  }\n  return piVar2;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_0007c450(int *param_1)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_0007c450(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int *piVar5;\n  int **ppiVar6;\n  int in_GS_OFFSET;\n  int *local_24;\n  int local_20;\n  \n  piVar5 = (int *)*param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  ppiVar6 = &local_24;\n  while( true ) {\n    piVar2 = (int *)FUN_0007c380(0,param_1 + 5);\n    *ppiVar6 = piVar2;\n    if (piVar2 == (int *)0x0) break;\n    *piVar2 = (int)piVar5;\n    piVar5 = *ppiVar6;\n    *(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4;\n    if ((int *)param_1[1] == (int *)0x0) {\n      piVar3 = (int *)0x0;\n      piVar4 = param_1;\n      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }\n      ppiVar6 = (int **)(piVar5 + 2);\n    }\n    else {\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }\n  }\nLAB_0007c4d3:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00087be0();\n  }\n  return piVar2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int **ppiVar6;" primitive_type (pointer_declarator "**ppiVar6" * (pointer_declarator "*ppiVar6" * identifier)) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "piVar5 = (int *)*param_1;" (assignment_expression "piVar5 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (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 "ppiVar6 = &local_24;" (assignment_expression "ppiVar6 = &local_24" identifier = (pointer_expression "&local_24" & identifier)) ;) (while_statement "while( true ) {\n    piVar2 = (int *)FUN_0007c380(0,param_1 + 5);\n    *ppiVar6 = piVar2;\n    if (piVar2 == (int *)0x0) break;\n    *piVar2 = (int)piVar5;\n    piVar5 = *ppiVar6;\n    *(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4;\n    if ((int *)param_1[1] == (int *)0x0) {\n      piVar3 = (int *)0x0;\n      piVar4 = param_1;\n      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }\n      ppiVar6 = (int **)(piVar5 + 2);\n    }\n    else {\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    piVar2 = (int *)FUN_0007c380(0,param_1 + 5);\n    *ppiVar6 = piVar2;\n    if (piVar2 == (int *)0x0) break;\n    *piVar2 = (int)piVar5;\n    piVar5 = *ppiVar6;\n    *(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4;\n    if ((int *)param_1[1] == (int *)0x0) {\n      piVar3 = (int *)0x0;\n      piVar4 = param_1;\n      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }\n      ppiVar6 = (int **)(piVar5 + 2);\n    }\n    else {\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }\n  }" { (expression_statement "piVar2 = (int *)FUN_0007c380(0,param_1 + 5);" (assignment_expression "piVar2 = (int *)FUN_0007c380(0,param_1 + 5)" identifier = (cast_expression "(int *)FUN_0007c380(0,param_1 + 5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0007c380(0,param_1 + 5)" identifier (argument_list "(0,param_1 + 5)" ( number_literal , (binary_expression "param_1 + 5" identifier + number_literal) ))))) ;) (expression_statement "*ppiVar6 = piVar2;" (assignment_expression "*ppiVar6 = piVar2" (pointer_expression "*ppiVar6" * identifier) = identifier) ;) (if_statement "if (piVar2 == (int *)0x0) break;" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "*piVar2 = (int)piVar5;" (assignment_expression "*piVar2 = (int)piVar5" (pointer_expression "*piVar2" * identifier) = (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar5 = *ppiVar6;" (assignment_expression "piVar5 = *ppiVar6" identifier = (pointer_expression "*ppiVar6" * identifier)) ;) (expression_statement "*(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4;" (assignment_expression "*(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4" (pointer_expression "*(byte *)((int)piVar5 + 0x1a)" * (cast_expression "(byte *)((int)piVar5 + 0x1a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar5 + 0x1a)" ( (binary_expression "(int)piVar5 + 0x1a" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(byte *)((int)piVar5 + 0x1a) | 4" (pointer_expression "*(byte *)((int)piVar5 + 0x1a)" * (cast_expression "(byte *)((int)piVar5 + 0x1a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar5 + 0x1a)" ( (binary_expression "(int)piVar5 + 0x1a" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) | number_literal)) ;) (if_statement "if ((int *)param_1[1] == (int *)0x0) {\n      piVar3 = (int *)0x0;\n      piVar4 = param_1;\n      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }\n      ppiVar6 = (int **)(piVar5 + 2);\n    }\n    else {\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }" if (parenthesized_expression "((int *)param_1[1] == (int *)0x0)" ( (binary_expression "(int *)param_1[1] == (int *)0x0" (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      piVar3 = (int *)0x0;\n      piVar4 = param_1;\n      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }\n      ppiVar6 = (int **)(piVar5 + 2);\n    }" { (expression_statement "piVar3 = (int *)0x0;" (assignment_expression "piVar3 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "piVar4 = param_1;" (assignment_expression "piVar4 = param_1" identifier = identifier) ;) (while_statement "while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }" while (parenthesized_expression "((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3)))" ( (parenthesized_expression "(param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))" ( (comma_expression "param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3)" (assignment_expression "param_1 = (int *)piVar4[2]" identifier = (cast_expression "(int *)piVar4[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ]))) , (binary_expression "param_1 == (int *)0x0 || (param_1 == piVar3)" (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) || (parenthesized_expression "(param_1 == piVar3)" ( (binary_expression "param_1 == piVar3" identifier == identifier) )))) )) )) (compound_statement "{\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }" { (expression_statement "piVar1 = (int *)*piVar4;" (assignment_expression "piVar1 = (int *)*piVar4" identifier = (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) (expression_statement "piVar5 = (int *)*piVar5;" (assignment_expression "piVar5 = (int *)*piVar5" identifier = (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) ;) (expression_statement "piVar2 = local_24;" (assignment_expression "piVar2 = local_24" identifier = identifier) ;) (expression_statement "piVar3 = piVar4;" (assignment_expression "piVar3 = piVar4" identifier = identifier) ;) (expression_statement "piVar4 = piVar1;" (assignment_expression "piVar4 = piVar1" identifier = identifier) ;) (if_statement "if (piVar1 == (int *)0x0) goto LAB_0007c4d3;" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0007c4d3;" goto statement_identifier ;)) })) (expression_statement "ppiVar6 = (int **)(piVar5 + 2);" (assignment_expression "ppiVar6 = (int **)(piVar5 + 2)" identifier = (cast_expression "(int **)(piVar5 + 2)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar5 + 2)" ( (binary_expression "piVar5 + 2" identifier + number_literal) )))) ;) }) (else_clause "else {\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }" else (compound_statement "{\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }" { (expression_statement "ppiVar6 = (int **)(piVar5 + 1);" (assignment_expression "ppiVar6 = (int **)(piVar5 + 1)" identifier = (cast_expression "(int **)(piVar5 + 1)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar5 + 1)" ( (binary_expression "piVar5 + 1" identifier + number_literal) )))) ;) (expression_statement "param_1 = (int *)param_1[1];" (assignment_expression "param_1 = (int *)param_1[1]" identifier = (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) }))) })) (labeled_statement "LAB_0007c4d3:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00087be0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00087be0();\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_00087be0();\n  }" { (expression_statement "FUN_00087be0();" (call_expression "FUN_00087be0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return piVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (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 = (pointer_expression & IDENT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (binary_expression IDENT + LIT) ))))) ;) (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)) )) (break_statement break ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) | LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) , (binary_expression (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) || (parenthesized_expression ( (binary_expression IDENT == IDENT) )))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_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 * __regparm3 FUN_0007c450(int *param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int *piVar5;\n  int **ppiVar6;\n  int in_GS_OFFSET;\n  int *local_24;\n  int local_20;\n  \n  piVar5 = (int *)*param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  ppiVar6 = &local_24;\n  while( true ) {\n    piVar2 = (int *)FUN_0007c380(0,param_1 + 5);\n    *ppiVar6 = piVar2;\n    if (piVar2 == (int *)0x0) break;\n    *piVar2 = (int)piVar5;\n    piVar5 = *ppiVar6;\n    *(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4;\n    if ((int *)param_1[1] == (int *)0x0) {\n      piVar3 = (int *)0x0;\n      piVar4 = param_1;\n      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }\n      ppiVar6 = (int **)(piVar5 + 2);\n    }\n    else {\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }\n  }\nLAB_0007c4d3:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00087be0();\n  }\n  return piVar2;\n}" (primitive_type "int") (pointer_declarator "* __regparm3 FUN_0007c450(int *param_1)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0007c450(int *param_1)" (identifier "FUN_0007c450") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int *piVar5;\n  int **ppiVar6;\n  int in_GS_OFFSET;\n  int *local_24;\n  int local_20;\n  \n  piVar5 = (int *)*param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  ppiVar6 = &local_24;\n  while( true ) {\n    piVar2 = (int *)FUN_0007c380(0,param_1 + 5);\n    *ppiVar6 = piVar2;\n    if (piVar2 == (int *)0x0) break;\n    *piVar2 = (int)piVar5;\n    piVar5 = *ppiVar6;\n    *(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4;\n    if ((int *)param_1[1] == (int *)0x0) {\n      piVar3 = (int *)0x0;\n      piVar4 = param_1;\n      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }\n      ppiVar6 = (int **)(piVar5 + 2);\n    }\n    else {\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }\n  }\nLAB_0007c4d3:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00087be0();\n  }\n  return piVar2;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int **ppiVar6;" (primitive_type "int") (pointer_declarator "**ppiVar6" (* "*") (pointer_declarator "*ppiVar6" (* "*") (identifier "ppiVar6"))) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int *local_24;" (primitive_type "int") (pointer_declarator "*local_24" (* "*") (identifier "local_24")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "piVar5 = (int *)*param_1;" (assignment_expression "piVar5 = (int *)*param_1" (identifier "piVar5") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (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 "ppiVar6 = &local_24;" (assignment_expression "ppiVar6 = &local_24" (identifier "ppiVar6") (= "=") (pointer_expression "&local_24" (& "&") (identifier "local_24"))) (; ";")) (while_statement "while( true ) {\n    piVar2 = (int *)FUN_0007c380(0,param_1 + 5);\n    *ppiVar6 = piVar2;\n    if (piVar2 == (int *)0x0) break;\n    *piVar2 = (int)piVar5;\n    piVar5 = *ppiVar6;\n    *(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4;\n    if ((int *)param_1[1] == (int *)0x0) {\n      piVar3 = (int *)0x0;\n      piVar4 = param_1;\n      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }\n      ppiVar6 = (int **)(piVar5 + 2);\n    }\n    else {\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    piVar2 = (int *)FUN_0007c380(0,param_1 + 5);\n    *ppiVar6 = piVar2;\n    if (piVar2 == (int *)0x0) break;\n    *piVar2 = (int)piVar5;\n    piVar5 = *ppiVar6;\n    *(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4;\n    if ((int *)param_1[1] == (int *)0x0) {\n      piVar3 = (int *)0x0;\n      piVar4 = param_1;\n      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }\n      ppiVar6 = (int **)(piVar5 + 2);\n    }\n    else {\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }\n  }" ({ "{") (expression_statement "piVar2 = (int *)FUN_0007c380(0,param_1 + 5);" (assignment_expression "piVar2 = (int *)FUN_0007c380(0,param_1 + 5)" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_0007c380(0,param_1 + 5)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0007c380(0,param_1 + 5)" (identifier "FUN_0007c380") (argument_list "(0,param_1 + 5)" (( "(") (number_literal "0") (, ",") (binary_expression "param_1 + 5" (identifier "param_1") (+ "+") (number_literal "5")) () ")"))))) (; ";")) (expression_statement "*ppiVar6 = piVar2;" (assignment_expression "*ppiVar6 = piVar2" (pointer_expression "*ppiVar6" (* "*") (identifier "ppiVar6")) (= "=") (identifier "piVar2")) (; ";")) (if_statement "if (piVar2 == (int *)0x0) break;" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "*piVar2 = (int)piVar5;" (assignment_expression "*piVar2 = (int)piVar5" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (cast_expression "(int)piVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar5"))) (; ";")) (expression_statement "piVar5 = *ppiVar6;" (assignment_expression "piVar5 = *ppiVar6" (identifier "piVar5") (= "=") (pointer_expression "*ppiVar6" (* "*") (identifier "ppiVar6"))) (; ";")) (expression_statement "*(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4;" (assignment_expression "*(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4" (pointer_expression "*(byte *)((int)piVar5 + 0x1a)" (* "*") (cast_expression "(byte *)((int)piVar5 + 0x1a)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar5 + 0x1a)" (( "(") (binary_expression "(int)piVar5 + 0x1a" (cast_expression "(int)piVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar5")) (+ "+") (number_literal "0x1a")) () ")")))) (= "=") (binary_expression "*(byte *)((int)piVar5 + 0x1a) | 4" (pointer_expression "*(byte *)((int)piVar5 + 0x1a)" (* "*") (cast_expression "(byte *)((int)piVar5 + 0x1a)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar5 + 0x1a)" (( "(") (binary_expression "(int)piVar5 + 0x1a" (cast_expression "(int)piVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar5")) (+ "+") (number_literal "0x1a")) () ")")))) (| "|") (number_literal "4"))) (; ";")) (if_statement "if ((int *)param_1[1] == (int *)0x0) {\n      piVar3 = (int *)0x0;\n      piVar4 = param_1;\n      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }\n      ppiVar6 = (int **)(piVar5 + 2);\n    }\n    else {\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }" (if "if") (parenthesized_expression "((int *)param_1[1] == (int *)0x0)" (( "(") (binary_expression "(int *)param_1[1] == (int *)0x0" (cast_expression "(int *)param_1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      piVar3 = (int *)0x0;\n      piVar4 = param_1;\n      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }\n      ppiVar6 = (int **)(piVar5 + 2);\n    }" ({ "{") (expression_statement "piVar3 = (int *)0x0;" (assignment_expression "piVar3 = (int *)0x0" (identifier "piVar3") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "piVar4 = param_1;" (assignment_expression "piVar4 = param_1" (identifier "piVar4") (= "=") (identifier "param_1")) (; ";")) (while_statement "while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }" (while "while") (parenthesized_expression "((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3)))" (( "(") (parenthesized_expression "(param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))" (( "(") (comma_expression "param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3)" (assignment_expression "param_1 = (int *)piVar4[2]" (identifier "param_1") (= "=") (cast_expression "(int *)piVar4[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]")))) (, ",") (binary_expression "param_1 == (int *)0x0 || (param_1 == piVar3)" (binary_expression "param_1 == (int *)0x0" (identifier "param_1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (|| "||") (parenthesized_expression "(param_1 == piVar3)" (( "(") (binary_expression "param_1 == piVar3" (identifier "param_1") (== "==") (identifier "piVar3")) () ")")))) () ")")) () ")")) (compound_statement "{\n        piVar1 = (int *)*piVar4;\n        piVar5 = (int *)*piVar5;\n        piVar2 = local_24;\n        piVar3 = piVar4;\n        piVar4 = piVar1;\n        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;\n      }" ({ "{") (expression_statement "piVar1 = (int *)*piVar4;" (assignment_expression "piVar1 = (int *)*piVar4" (identifier "piVar1") (= "=") (cast_expression "(int *)*piVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")))) (; ";")) (expression_statement "piVar5 = (int *)*piVar5;" (assignment_expression "piVar5 = (int *)*piVar5" (identifier "piVar5") (= "=") (cast_expression "(int *)*piVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar5" (* "*") (identifier "piVar5")))) (; ";")) (expression_statement "piVar2 = local_24;" (assignment_expression "piVar2 = local_24" (identifier "piVar2") (= "=") (identifier "local_24")) (; ";")) (expression_statement "piVar3 = piVar4;" (assignment_expression "piVar3 = piVar4" (identifier "piVar3") (= "=") (identifier "piVar4")) (; ";")) (expression_statement "piVar4 = piVar1;" (assignment_expression "piVar4 = piVar1" (identifier "piVar4") (= "=") (identifier "piVar1")) (; ";")) (if_statement "if (piVar1 == (int *)0x0) goto LAB_0007c4d3;" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0007c4d3;" (goto "goto") (statement_identifier "LAB_0007c4d3") (; ";"))) (} "}"))) (expression_statement "ppiVar6 = (int **)(piVar5 + 2);" (assignment_expression "ppiVar6 = (int **)(piVar5 + 2)" (identifier "ppiVar6") (= "=") (cast_expression "(int **)(piVar5 + 2)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(piVar5 + 2)" (( "(") (binary_expression "piVar5 + 2" (identifier "piVar5") (+ "+") (number_literal "2")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }" (else "else") (compound_statement "{\n      ppiVar6 = (int **)(piVar5 + 1);\n      param_1 = (int *)param_1[1];\n    }" ({ "{") (expression_statement "ppiVar6 = (int **)(piVar5 + 1);" (assignment_expression "ppiVar6 = (int **)(piVar5 + 1)" (identifier "ppiVar6") (= "=") (cast_expression "(int **)(piVar5 + 1)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(piVar5 + 1)" (( "(") (binary_expression "piVar5 + 1" (identifier "piVar5") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "param_1 = (int *)param_1[1];" (assignment_expression "param_1 = (int *)param_1[1]" (identifier "param_1") (= "=") (cast_expression "(int *)param_1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (} "}")))) (} "}"))) (labeled_statement "LAB_0007c4d3:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00087be0();\n  }" (statement_identifier "LAB_0007c4d3") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00087be0();\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_00087be0();\n  }" ({ "{") (expression_statement "FUN_00087be0();" (call_expression "FUN_00087be0()" (identifier "FUN_00087be0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}")))

type_2 * __regparm3 duplicate_tree(type_2 *var_4,type_3 *dfa)

{
  type_1 *puVar1;
  type_2 *var_3;
  type_2 *var_5;
  type_2 *pbVar4;
  type_2 *pbVar5;
  type_2 **ppbVar6;
  int var_1;
  type_2 *dup_root;
  int var_6;
  
  pbVar5 = var_4->parent;
  var_6 = *(int *)(var_1 + 0x14);
  ppbVar6 = &dup_root;
  while( true ) {
    var_3 = var_2((type_3 *)&dfa->str_tree_storage,
                               (type_2 *)&dfa->str_tree_storage_idx,(type_2 *)0x0,
                               (type_4 *)0x0,(type_3 *)&var_4->token);
    *ppbVar6 = var_3;
    if (var_3 == (type_2 *)0x0) break;
    var_3->parent = pbVar5;
    pbVar5 = *ppbVar6;
    puVar1 = &(pbVar5->token).field_0x6;
    *puVar1 = *puVar1 | 4;
    if (var_4->left == (type_2 *)0x0) {
      var_5 = (type_2 *)0x0;
      pbVar4 = var_4;
      while ((var_4 = pbVar4->right, var_4 == (type_2 *)0x0 || (var_4 == var_5))) {
        ppbVar6 = &pbVar4->parent;
        pbVar5 = pbVar5->parent;
        var_3 = dup_root;
        var_5 = pbVar4;
        pbVar4 = *ppbVar6;
        if (*ppbVar6 == (type_2 *)0x0) goto LAB_0007c4d3;
      }
      ppbVar6 = &pbVar5->right;
    }
    else {
      ppbVar6 = &pbVar5->left;
      var_4 = var_4->left;
    }
  }
LAB_0007c4d3:
  if (var_6 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_7();
  }
  return var_3;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (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)))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (binary_expression left: (identifier) right: (number_literal))))))) (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: (break_statement)) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (binary_expression left: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (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: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (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 * __regparm3 MASKED(int *param_1)

{
  int *piVar1;
  int *piVar2;
  int *piVar3;
  int *piVar4;
  int *piVar5;
  int **ppiVar6;
  int in_GS_OFFSET;
  int *local_24;
  int local_20;
  
  piVar5 = (int *)*param_1;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  ppiVar6 = &local_24;
  while( true ) {
    piVar2 = (int *)FUN_0007c380(0,param_1 + 5);
    *ppiVar6 = piVar2;
    if (piVar2 == (int *)0x0) break;
    *piVar2 = (int)piVar5;
    piVar5 = *ppiVar6;
    *(byte *)((int)piVar5 + 0x1a) = *(byte *)((int)piVar5 + 0x1a) | 4;
    if ((int *)param_1[1] == (int *)0x0) {
      piVar3 = (int *)0x0;
      piVar4 = param_1;
      while ((param_1 = (int *)piVar4[2], param_1 == (int *)0x0 || (param_1 == piVar3))) {
        piVar1 = (int *)*piVar4;
        piVar5 = (int *)*piVar5;
        piVar2 = local_24;
        piVar3 = piVar4;
        piVar4 = piVar1;
        if (piVar1 == (int *)0x0) goto LAB_0007c4d3;
      }
      ppiVar6 = (int **)(piVar5 + 2);
    }
    else {
      ppiVar6 = (int **)(piVar5 + 1);
      param_1 = (int *)param_1[1];
    }
  }
LAB_0007c4d3:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00087be0();
  }
  return piVar2;
}

