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

reg_errcode_t __regparm3
check_arrival_expand_ecl(re_dfa_t *dfa,re_node_set *cur_nodes,Idx ex_subexp,int type)

{
  re_node_set *src;
  int iVar1;
  int iVar2;
  reg_errcode_t rVar3;
  int in_GS_OFFSET;
  int local_48;
  re_node_set new_nodes;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = cur_nodes->nelem;
  new_nodes.nelem = 0;
  new_nodes.alloc = iVar2;
  new_nodes.elems = (Idx *)malloc(iVar2 * 4);
  if (new_nodes.elems == (Idx *)0x0) {
    rVar3 = _REG_ESPACE;
  }
  else {
    if (0 < iVar2) {
      local_48 = 0;
      do {
        src = dfa->eclosures + cur_nodes->elems[local_48];
        if (0 < src->nelem) {
          iVar2 = 0;
          do {
            if ((type == (uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4) &&
               ((re_bitset_ptr_t)ex_subexp == dfa->nodes[src->elems[iVar2]].opr.sbcset)) {
              if (src->elems[iVar2] != -1) {
                rVar3 = check_arrival_expand_ecl_sub
                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type);
                if (rVar3 == _REG_NOERROR) goto LAB_0001e76b;
                goto LAB_0001e7c7;
              }
              break;
            }
            iVar2 = iVar2 + 1;
          } while (src->nelem != iVar2);
        }
        rVar3 = re_node_set_merge(&new_nodes,src);
        if (rVar3 != _REG_NOERROR) {
LAB_0001e7c7:
          free(new_nodes.elems);
          goto LAB_0001e7e0;
        }
LAB_0001e76b:
        local_48 = local_48 + 1;
      } while (local_48 < cur_nodes->nelem);
    }
    free(cur_nodes->elems);
    cur_nodes->alloc = new_nodes.alloc;
    cur_nodes->nelem = new_nodes.nelem;
    cur_nodes->elems = new_nodes.elems;
    rVar3 = _REG_NOERROR;
  }
LAB_0001e7e0:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return rVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

int __regparm3 FUN_0001e670(int *param_1,int *param_2,int param_3,uint param_4)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int in_GS_OFFSET;
  int local_48;
  int local_2c;
  int local_28;
  void *local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1e679;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar5 = param_2[1];
  local_28 = 0;
  local_2c = iVar5;
  local_24 = malloc(iVar5 * 4);
  if (local_24 == (void *)0x0) {
    iVar5 = 0xc;
  }
  else {
    if (0 < iVar5) {
      local_48 = 0;
      do {
        iVar2 = *(int *)(param_2[2] + local_48 * 4);
        iVar5 = param_1[6] + iVar2 * 0xc;
        if (0 < *(int *)(iVar5 + 4)) {
          iVar4 = 0;
          do {
            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);
            piVar1 = (int *)(*param_1 + iVar3 * 8);
            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {
              if (iVar3 != -1) {
                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);
                if (iVar5 == 0) goto LAB_0001e76b;
                goto LAB_0001e7c7;
              }
              break;
            }
            iVar4 = iVar4 + 1;
          } while (*(int *)(iVar5 + 4) != iVar4);
        }
        iVar5 = FUN_0001e1f0(&local_2c,iVar5);
        if (iVar5 != 0) {
LAB_0001e7c7:
          free(local_24);
          goto LAB_0001e7e0;
        }
LAB_0001e76b:
        local_48 = local_48 + 1;
      } while (local_48 < param_2[1]);
    }
    free((void *)param_2[2]);
    *param_2 = local_2c;
    param_2[1] = local_28;
    param_2[2] = (int)local_24;
    iVar5 = 0;
  }
LAB_0001e7e0:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar5;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002ca00();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014b70
ADD EBX,0x19987
SUB ESP,0x48
MOV dword ptr [ESP + 0x18],EAX
MOV dword ptr [ESP + 0x14],EDX
MOV dword ptr [ESP + 0xc],ECX
MOV dword ptr [ESP + 0x28],EBX
MOV ESI,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x38],ESI
XOR ESI,ESI
MOV ESI,dword ptr [EDX + 0x4]
MOV dword ptr [ESP + 0x30],0x0
LEA EAX,[ESI*0x4 + 0x0]
MOV dword ptr [ESP + 0x2c],ESI
PUSH EAX
CALL 0x000122a0
MOV dword ptr [ESP + 0x38],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001e7f5
TEST ESI,ESI
JLE 0x0001e781
LEA EAX,[ESP + 0x20]
MOV dword ptr [ESP + 0x4],0x0
MOV dword ptr [ESP + 0x18],EAX
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0x8]
MOV ESI,dword ptr [ESP + 0x4]
MOV EDI,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [EAX + 0x8]
MOV EAX,dword ptr [EAX + ESI*0x4]
LEA EDX,[EAX + EAX*0x2]
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [EDI + 0x18]
LEA EAX,[EAX + EDX*0x4]
MOV ESI,dword ptr [EAX + 0x4]
MOV dword ptr [ESP + 0x14],EAX
TEST ESI,ESI
JLE 0x0001e7b0
MOV EBP,dword ptr [EAX + 0x8]
MOV EDI,dword ptr [EDI]
XOR EAX,EAX
JMP 0x0001e72b
ADD EAX,0x1
CMP ESI,EAX
JZ 0x0001e7b0
MOV ECX,dword ptr [EBP + EAX*0x4]
LEA EDX,[EDI + ECX*0x8]
MOVZX EBX,byte ptr [EDX + 0x4]
CMP dword ptr [ESP + 0x50],EBX
JNZ 0x0001e720
MOV EBX,dword ptr [ESP]
CMP EBX,dword ptr [EDX]
JNZ 0x0001e720
CMP ECX,-0x1
JZ 0x0001e7b0
SUB ESP,0xc
PUSH dword ptr [ESP + 0x5c]
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESP + 0x24]
PUSH dword ptr [ESP + 0x30]
PUSH dword ptr [ESP + 0x28]
CALL 0x0001dd90
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x0001e7c7
MOV ESI,dword ptr [ESP + 0x8]
ADD dword ptr [ESP + 0x4],0x1
MOV EAX,dword ptr [ESP + 0x4]
CMP dword ptr [ESI + 0x4],EAX
JG 0x0001e6e8
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x14]
PUSH dword ptr [ESI + 0x8]
MOV EBX,dword ptr [ESP + 0x2c]
CALL 0x000120e0
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [ESP + 0x34]
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [ESP + 0x38]
ADD ESP,0x10
MOV dword ptr [ESI + 0x8],EAX
XOR EAX,EAX
JMP 0x0001e7e0
SUB ESP,0x8
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0x24]
CALL 0x0001e1f0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001e76b
MOV dword ptr [ESP],EAX
SUB ESP,0xc
PUSH dword ptr [ESP + 0x34]
MOV EBX,dword ptr [ESP + 0x2c]
CALL 0x000120e0
ADD ESP,0x10
MOV EAX,dword ptr [ESP]
MOV ESI,dword ptr [ESP + 0x2c]
XOR ESI,dword ptr GS:[0x14]
JNZ 0x0001e7fc
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,0xc
JMP 0x0001e7e0
CALL 0x0002ca00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_0001e670(int *param_1,int *param_2,int param_3,uint param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_48;\n  int local_2c;\n  int local_28;\n  void *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e679;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar5 = param_2[1];\n  local_28 = 0;\n  local_2c = iVar5;\n  local_24 = malloc(iVar5 * 4);\n  if (local_24 == (void *)0x0) {\n    iVar5 = 0xc;\n  }\n  else {\n    if (0 < iVar5) {\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }\n    free((void *)param_2[2]);\n    *param_2 = local_2c;\n    param_2[1] = local_28;\n    param_2[2] = (int)local_24;\n    iVar5 = 0;\n  }\nLAB_0001e7e0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002ca00();\n}\n\n" comment (function_definition "int __regparm3 FUN_0001e670(int *param_1,int *param_2,int param_3,uint param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_48;\n  int local_2c;\n  int local_28;\n  void *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e679;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar5 = param_2[1];\n  local_28 = 0;\n  local_2c = iVar5;\n  local_24 = malloc(iVar5 * 4);\n  if (local_24 == (void *)0x0) {\n    iVar5 = 0xc;\n  }\n  else {\n    if (0 < iVar5) {\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }\n    free((void *)param_2[2]);\n    *param_2 = local_2c;\n    param_2[1] = local_28;\n    param_2[2] = (int)local_24;\n    iVar5 = 0;\n  }\nLAB_0001e7e0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002ca00();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001e670(int *param_1,int *param_2,int param_3,uint param_4)" identifier (parameter_list "(int *param_1,int *param_2,int param_3,uint param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_48;\n  int local_2c;\n  int local_28;\n  void *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e679;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar5 = param_2[1];\n  local_28 = 0;\n  local_2c = iVar5;\n  local_24 = malloc(iVar5 * 4);\n  if (local_24 == (void *)0x0) {\n    iVar5 = 0xc;\n  }\n  else {\n    if (0 < iVar5) {\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }\n    free((void *)param_2[2]);\n    *param_2 = local_2c;\n    param_2[1] = local_28;\n    param_2[2] = (int)local_24;\n    iVar5 = 0;\n  }\nLAB_0001e7e0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002ca00();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_48;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "void *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1e679;" (assignment_expression "uStack_14 = 0x1e679" identifier = number_literal) ;) (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 "iVar5 = param_2[1];" (assignment_expression "iVar5 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_2c = iVar5;" (assignment_expression "local_2c = iVar5" identifier = identifier) ;) (expression_statement "local_24 = malloc(iVar5 * 4);" (assignment_expression "local_24 = malloc(iVar5 * 4)" identifier = (call_expression "malloc(iVar5 * 4)" identifier (argument_list "(iVar5 * 4)" ( (binary_expression "iVar5 * 4" identifier * number_literal) )))) ;) (if_statement "if (local_24 == (void *)0x0) {\n    iVar5 = 0xc;\n  }\n  else {\n    if (0 < iVar5) {\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }\n    free((void *)param_2[2]);\n    *param_2 = local_2c;\n    param_2[1] = local_28;\n    param_2[2] = (int)local_24;\n    iVar5 = 0;\n  }" if (parenthesized_expression "(local_24 == (void *)0x0)" ( (binary_expression "local_24 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar5 = 0xc;\n  }" { (expression_statement "iVar5 = 0xc;" (assignment_expression "iVar5 = 0xc" identifier = number_literal) ;) }) (else_clause "else {\n    if (0 < iVar5) {\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }\n    free((void *)param_2[2]);\n    *param_2 = local_2c;\n    param_2[1] = local_28;\n    param_2[2] = (int)local_24;\n    iVar5 = 0;\n  }" else (compound_statement "{\n    if (0 < iVar5) {\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }\n    free((void *)param_2[2]);\n    *param_2 = local_2c;\n    param_2[1] = local_28;\n    param_2[2] = (int)local_24;\n    iVar5 = 0;\n  }" { (if_statement "if (0 < iVar5) {\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }" if (parenthesized_expression "(0 < iVar5)" ( (binary_expression "0 < iVar5" number_literal < identifier) )) (compound_statement "{\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }" { (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);" do (compound_statement "{\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      }" { (expression_statement "iVar2 = *(int *)(param_2[2] + local_48 * 4);" (assignment_expression "iVar2 = *(int *)(param_2[2] + local_48 * 4)" identifier = (pointer_expression "*(int *)(param_2[2] + local_48 * 4)" * (cast_expression "(int *)(param_2[2] + local_48 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[2] + local_48 * 4)" ( (binary_expression "param_2[2] + local_48 * 4" (subscript_expression "param_2[2]" identifier [ number_literal ]) + (binary_expression "local_48 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar5 = param_1[6] + iVar2 * 0xc;" (assignment_expression "iVar5 = param_1[6] + iVar2 * 0xc" identifier = (binary_expression "param_1[6] + iVar2 * 0xc" (subscript_expression "param_1[6]" identifier [ number_literal ]) + (binary_expression "iVar2 * 0xc" identifier * number_literal))) ;) (if_statement "if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }" if (parenthesized_expression "(0 < *(int *)(iVar5 + 4))" ( (binary_expression "0 < *(int *)(iVar5 + 4)" number_literal < (pointer_expression "*(int *)(iVar5 + 4)" * (cast_expression "(int *)(iVar5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);" do (compound_statement "{\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          }" { (expression_statement "iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);" (assignment_expression "iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(iVar5 + 8) + iVar4 * 4)" * (cast_expression "(int *)(*(int *)(iVar5 + 8) + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 8) + iVar4 * 4)" ( (binary_expression "*(int *)(iVar5 + 8) + iVar4 * 4" (pointer_expression "*(int *)(iVar5 + 8)" * (cast_expression "(int *)(iVar5 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) )))) + (binary_expression "iVar4 * 4" identifier * number_literal)) ))))) ;) (expression_statement "piVar1 = (int *)(*param_1 + iVar3 * 8);" (assignment_expression "piVar1 = (int *)(*param_1 + iVar3 * 8)" identifier = (cast_expression "(int *)(*param_1 + iVar3 * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar3 * 8)" ( (binary_expression "*param_1 + iVar3 * 8" (pointer_expression "*param_1" * identifier) + (binary_expression "iVar3 * 8" identifier * number_literal)) )))) ;) (if_statement "if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }" if (parenthesized_expression "((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1))" ( (binary_expression "(param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)" (parenthesized_expression "(param_4 == *(byte *)(piVar1 + 1))" ( (binary_expression "param_4 == *(byte *)(piVar1 + 1)" identifier == (pointer_expression "*(byte *)(piVar1 + 1)" * (cast_expression "(byte *)(piVar1 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) ))))) )) && (parenthesized_expression "(param_3 == *piVar1)" ( (binary_expression "param_3 == *piVar1" identifier == (pointer_expression "*piVar1" * identifier)) ))) )) (compound_statement "{\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }" { (if_statement "if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }" if (parenthesized_expression "(iVar3 != -1)" ( (binary_expression "iVar3 != -1" identifier != number_literal) )) (compound_statement "{\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }" { (expression_statement "iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);" (assignment_expression "iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4)" identifier = (call_expression "FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4)" identifier (argument_list "(param_1,&local_2c,iVar2,param_3,param_4)" ( identifier , (pointer_expression "&local_2c" & identifier) , identifier , identifier , identifier )))) ;) (if_statement "if (iVar5 == 0) goto LAB_0001e76b;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001e76b;" goto statement_identifier ;)) (goto_statement "goto LAB_0001e7c7;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(int *)(iVar5 + 4) != iVar4)" ( (binary_expression "*(int *)(iVar5 + 4) != iVar4" (pointer_expression "*(int *)(iVar5 + 4)" * (cast_expression "(int *)(iVar5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) )))) != identifier) )) ;) })) (expression_statement "iVar5 = FUN_0001e1f0(&local_2c,iVar5);" (assignment_expression "iVar5 = FUN_0001e1f0(&local_2c,iVar5)" identifier = (call_expression "FUN_0001e1f0(&local_2c,iVar5)" identifier (argument_list "(&local_2c,iVar5)" ( (pointer_expression "&local_2c" & identifier) , identifier )))) ;) (if_statement "if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }" { (labeled_statement "LAB_0001e7c7:\n          free(local_24);" statement_identifier : (expression_statement "free(local_24);" (call_expression "free(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;)) (goto_statement "goto LAB_0001e7e0;" goto statement_identifier ;) })) (labeled_statement "LAB_0001e76b:\n        local_48 = local_48 + 1;" statement_identifier : (expression_statement "local_48 = local_48 + 1;" (assignment_expression "local_48 = local_48 + 1" identifier = (binary_expression "local_48 + 1" identifier + number_literal)) ;)) }) while (parenthesized_expression "(local_48 < param_2[1])" ( (binary_expression "local_48 < param_2[1]" identifier < (subscript_expression "param_2[1]" identifier [ number_literal ])) )) ;) })) (expression_statement "free((void *)param_2[2]);" (call_expression "free((void *)param_2[2])" identifier (argument_list "((void *)param_2[2])" ( (cast_expression "(void *)param_2[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[2]" identifier [ number_literal ])) ))) ;) (expression_statement "*param_2 = local_2c;" (assignment_expression "*param_2 = local_2c" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = local_28;" (assignment_expression "param_2[1] = local_28" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[2] = (int)local_24;" (assignment_expression "param_2[2] = (int)local_24" (subscript_expression "param_2[2]" identifier [ number_literal ]) = (cast_expression "(int)local_24" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }))) (labeled_statement "LAB_0001e7e0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\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    return iVar5;\n  }" { (return_statement "return iVar5;" return identifier ;) }))) comment (expression_statement "FUN_0002ca00();" (call_expression "FUN_0002ca00()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nreg_errcode_t __regparm3\ncheck_arrival_expand_ecl(re_dfa_t *dfa,re_node_set *cur_nodes,Idx ex_subexp,int type)\n\n{\n  re_node_set *src;\n  int iVar1;\n  int iVar2;\n  reg_errcode_t rVar3;\n  int in_GS_OFFSET;\n  int local_48;\n  re_node_set new_nodes;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = cur_nodes->nelem;\n  new_nodes.nelem = 0;\n  new_nodes.alloc = iVar2;\n  new_nodes.elems = (Idx *)malloc(iVar2 * 4);\n  if (new_nodes.elems == (Idx *)0x0) {\n    rVar3 = _REG_ESPACE;\n  }\n  else {\n    if (0 < iVar2) {\n      local_48 = 0;\n      do {\n        src = dfa->eclosures + cur_nodes->elems[local_48];\n        if (0 < src->nelem) {\n          iVar2 = 0;\n          do {\n            if ((type == (uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4) &&\n               ((re_bitset_ptr_t)ex_subexp == dfa->nodes[src->elems[iVar2]].opr.sbcset)) {\n              if (src->elems[iVar2] != -1) {\n                rVar3 = check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type);\n                if (rVar3 == _REG_NOERROR) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar2 = iVar2 + 1;\n          } while (src->nelem != iVar2);\n        }\n        rVar3 = re_node_set_merge(&new_nodes,src);\n        if (rVar3 != _REG_NOERROR) {\nLAB_0001e7c7:\n          free(new_nodes.elems);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < cur_nodes->nelem);\n    }\n    free(cur_nodes->elems);\n    cur_nodes->alloc = new_nodes.alloc;\n    cur_nodes->nelem = new_nodes.nelem;\n    cur_nodes->elems = new_nodes.elems;\n    rVar3 = _REG_NOERROR;\n  }\nLAB_0001e7e0:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return rVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "reg_errcode_t __regparm3\ncheck_arrival_expand_ecl(re_dfa_t *dfa,re_node_set *cur_nodes,Idx ex_subexp,int type)\n\n{\n  re_node_set *src;\n  int iVar1;\n  int iVar2;\n  reg_errcode_t rVar3;\n  int in_GS_OFFSET;\n  int local_48;\n  re_node_set new_nodes;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = cur_nodes->nelem;\n  new_nodes.nelem = 0;\n  new_nodes.alloc = iVar2;\n  new_nodes.elems = (Idx *)malloc(iVar2 * 4);\n  if (new_nodes.elems == (Idx *)0x0) {\n    rVar3 = _REG_ESPACE;\n  }\n  else {\n    if (0 < iVar2) {\n      local_48 = 0;\n      do {\n        src = dfa->eclosures + cur_nodes->elems[local_48];\n        if (0 < src->nelem) {\n          iVar2 = 0;\n          do {\n            if ((type == (uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4) &&\n               ((re_bitset_ptr_t)ex_subexp == dfa->nodes[src->elems[iVar2]].opr.sbcset)) {\n              if (src->elems[iVar2] != -1) {\n                rVar3 = check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type);\n                if (rVar3 == _REG_NOERROR) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar2 = iVar2 + 1;\n          } while (src->nelem != iVar2);\n        }\n        rVar3 = re_node_set_merge(&new_nodes,src);\n        if (rVar3 != _REG_NOERROR) {\nLAB_0001e7c7:\n          free(new_nodes.elems);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < cur_nodes->nelem);\n    }\n    free(cur_nodes->elems);\n    cur_nodes->alloc = new_nodes.alloc;\n    cur_nodes->nelem = new_nodes.nelem;\n    cur_nodes->elems = new_nodes.elems;\n    rVar3 = _REG_NOERROR;\n  }\nLAB_0001e7e0:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return rVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "check_arrival_expand_ecl(re_dfa_t *dfa,re_node_set *cur_nodes,Idx ex_subexp,int type)" identifier (parameter_list "(re_dfa_t *dfa,re_node_set *cur_nodes,Idx ex_subexp,int type)" ( (parameter_declaration "re_dfa_t *dfa" type_identifier (pointer_declarator "*dfa" * identifier)) , (parameter_declaration "re_node_set *cur_nodes" type_identifier (pointer_declarator "*cur_nodes" * identifier)) , (parameter_declaration "Idx ex_subexp" type_identifier identifier) , (parameter_declaration "int type" primitive_type identifier) ))) (compound_statement "{\n  re_node_set *src;\n  int iVar1;\n  int iVar2;\n  reg_errcode_t rVar3;\n  int in_GS_OFFSET;\n  int local_48;\n  re_node_set new_nodes;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = cur_nodes->nelem;\n  new_nodes.nelem = 0;\n  new_nodes.alloc = iVar2;\n  new_nodes.elems = (Idx *)malloc(iVar2 * 4);\n  if (new_nodes.elems == (Idx *)0x0) {\n    rVar3 = _REG_ESPACE;\n  }\n  else {\n    if (0 < iVar2) {\n      local_48 = 0;\n      do {\n        src = dfa->eclosures + cur_nodes->elems[local_48];\n        if (0 < src->nelem) {\n          iVar2 = 0;\n          do {\n            if ((type == (uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4) &&\n               ((re_bitset_ptr_t)ex_subexp == dfa->nodes[src->elems[iVar2]].opr.sbcset)) {\n              if (src->elems[iVar2] != -1) {\n                rVar3 = check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type);\n                if (rVar3 == _REG_NOERROR) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar2 = iVar2 + 1;\n          } while (src->nelem != iVar2);\n        }\n        rVar3 = re_node_set_merge(&new_nodes,src);\n        if (rVar3 != _REG_NOERROR) {\nLAB_0001e7c7:\n          free(new_nodes.elems);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < cur_nodes->nelem);\n    }\n    free(cur_nodes->elems);\n    cur_nodes->alloc = new_nodes.alloc;\n    cur_nodes->nelem = new_nodes.nelem;\n    cur_nodes->elems = new_nodes.elems;\n    rVar3 = _REG_NOERROR;\n  }\nLAB_0001e7e0:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return rVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "re_node_set *src;" type_identifier (pointer_declarator "*src" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "reg_errcode_t rVar3;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_48;" primitive_type identifier ;) (declaration "re_node_set new_nodes;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = cur_nodes->nelem;" (assignment_expression "iVar2 = cur_nodes->nelem" identifier = (field_expression "cur_nodes->nelem" identifier -> field_identifier)) ;) (expression_statement "new_nodes.nelem = 0;" (assignment_expression "new_nodes.nelem = 0" (field_expression "new_nodes.nelem" identifier . field_identifier) = number_literal) ;) (expression_statement "new_nodes.alloc = iVar2;" (assignment_expression "new_nodes.alloc = iVar2" (field_expression "new_nodes.alloc" identifier . field_identifier) = identifier) ;) (expression_statement "new_nodes.elems = (Idx *)malloc(iVar2 * 4);" (assignment_expression "new_nodes.elems = (Idx *)malloc(iVar2 * 4)" (field_expression "new_nodes.elems" identifier . field_identifier) = (cast_expression "(Idx *)malloc(iVar2 * 4)" ( (type_descriptor "Idx *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(iVar2 * 4)" identifier (argument_list "(iVar2 * 4)" ( (binary_expression "iVar2 * 4" identifier * number_literal) ))))) ;) (if_statement "if (new_nodes.elems == (Idx *)0x0) {\n    rVar3 = _REG_ESPACE;\n  }\n  else {\n    if (0 < iVar2) {\n      local_48 = 0;\n      do {\n        src = dfa->eclosures + cur_nodes->elems[local_48];\n        if (0 < src->nelem) {\n          iVar2 = 0;\n          do {\n            if ((type == (uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4) &&\n               ((re_bitset_ptr_t)ex_subexp == dfa->nodes[src->elems[iVar2]].opr.sbcset)) {\n              if (src->elems[iVar2] != -1) {\n                rVar3 = check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type);\n                if (rVar3 == _REG_NOERROR) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar2 = iVar2 + 1;\n          } while (src->nelem != iVar2);\n        }\n        rVar3 = re_node_set_merge(&new_nodes,src);\n        if (rVar3 != _REG_NOERROR) {\nLAB_0001e7c7:\n          free(new_nodes.elems);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < cur_nodes->nelem);\n    }\n    free(cur_nodes->elems);\n    cur_nodes->alloc = new_nodes.alloc;\n    cur_nodes->nelem = new_nodes.nelem;\n    cur_nodes->elems = new_nodes.elems;\n    rVar3 = _REG_NOERROR;\n  }" if (parenthesized_expression "(new_nodes.elems == (Idx *)0x0)" ( (binary_expression "new_nodes.elems == (Idx *)0x0" (field_expression "new_nodes.elems" identifier . field_identifier) == (cast_expression "(Idx *)0x0" ( (type_descriptor "Idx *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    rVar3 = _REG_ESPACE;\n  }" { (expression_statement "rVar3 = _REG_ESPACE;" (assignment_expression "rVar3 = _REG_ESPACE" identifier = identifier) ;) }) (else_clause "else {\n    if (0 < iVar2) {\n      local_48 = 0;\n      do {\n        src = dfa->eclosures + cur_nodes->elems[local_48];\n        if (0 < src->nelem) {\n          iVar2 = 0;\n          do {\n            if ((type == (uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4) &&\n               ((re_bitset_ptr_t)ex_subexp == dfa->nodes[src->elems[iVar2]].opr.sbcset)) {\n              if (src->elems[iVar2] != -1) {\n                rVar3 = check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type);\n                if (rVar3 == _REG_NOERROR) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar2 = iVar2 + 1;\n          } while (src->nelem != iVar2);\n        }\n        rVar3 = re_node_set_merge(&new_nodes,src);\n        if (rVar3 != _REG_NOERROR) {\nLAB_0001e7c7:\n          free(new_nodes.elems);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < cur_nodes->nelem);\n    }\n    free(cur_nodes->elems);\n    cur_nodes->alloc = new_nodes.alloc;\n    cur_nodes->nelem = new_nodes.nelem;\n    cur_nodes->elems = new_nodes.elems;\n    rVar3 = _REG_NOERROR;\n  }" else (compound_statement "{\n    if (0 < iVar2) {\n      local_48 = 0;\n      do {\n        src = dfa->eclosures + cur_nodes->elems[local_48];\n        if (0 < src->nelem) {\n          iVar2 = 0;\n          do {\n            if ((type == (uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4) &&\n               ((re_bitset_ptr_t)ex_subexp == dfa->nodes[src->elems[iVar2]].opr.sbcset)) {\n              if (src->elems[iVar2] != -1) {\n                rVar3 = check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type);\n                if (rVar3 == _REG_NOERROR) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar2 = iVar2 + 1;\n          } while (src->nelem != iVar2);\n        }\n        rVar3 = re_node_set_merge(&new_nodes,src);\n        if (rVar3 != _REG_NOERROR) {\nLAB_0001e7c7:\n          free(new_nodes.elems);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < cur_nodes->nelem);\n    }\n    free(cur_nodes->elems);\n    cur_nodes->alloc = new_nodes.alloc;\n    cur_nodes->nelem = new_nodes.nelem;\n    cur_nodes->elems = new_nodes.elems;\n    rVar3 = _REG_NOERROR;\n  }" { (if_statement "if (0 < iVar2) {\n      local_48 = 0;\n      do {\n        src = dfa->eclosures + cur_nodes->elems[local_48];\n        if (0 < src->nelem) {\n          iVar2 = 0;\n          do {\n            if ((type == (uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4) &&\n               ((re_bitset_ptr_t)ex_subexp == dfa->nodes[src->elems[iVar2]].opr.sbcset)) {\n              if (src->elems[iVar2] != -1) {\n                rVar3 = check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type);\n                if (rVar3 == _REG_NOERROR) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar2 = iVar2 + 1;\n          } while (src->nelem != iVar2);\n        }\n        rVar3 = re_node_set_merge(&new_nodes,src);\n        if (rVar3 != _REG_NOERROR) {\nLAB_0001e7c7:\n          free(new_nodes.elems);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < cur_nodes->nelem);\n    }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n      local_48 = 0;\n      do {\n        src = dfa->eclosures + cur_nodes->elems[local_48];\n        if (0 < src->nelem) {\n          iVar2 = 0;\n          do {\n            if ((type == (uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4) &&\n               ((re_bitset_ptr_t)ex_subexp == dfa->nodes[src->elems[iVar2]].opr.sbcset)) {\n              if (src->elems[iVar2] != -1) {\n                rVar3 = check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type);\n                if (rVar3 == _REG_NOERROR) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar2 = iVar2 + 1;\n          } while (src->nelem != iVar2);\n        }\n        rVar3 = re_node_set_merge(&new_nodes,src);\n        if (rVar3 != _REG_NOERROR) {\nLAB_0001e7c7:\n          free(new_nodes.elems);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < cur_nodes->nelem);\n    }" { (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (do_statement "do {\n        src = dfa->eclosures + cur_nodes->elems[local_48];\n        if (0 < src->nelem) {\n          iVar2 = 0;\n          do {\n            if ((type == (uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4) &&\n               ((re_bitset_ptr_t)ex_subexp == dfa->nodes[src->elems[iVar2]].opr.sbcset)) {\n              if (src->elems[iVar2] != -1) {\n                rVar3 = check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type);\n                if (rVar3 == _REG_NOERROR) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar2 = iVar2 + 1;\n          } while (src->nelem != iVar2);\n        }\n        rVar3 = re_node_set_merge(&new_nodes,src);\n        if (rVar3 != _REG_NOERROR) {\nLAB_0001e7c7:\n          free(new_nodes.elems);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < cur_nodes->nelem);" do (compound_statement "{\n        src = dfa->eclosures + cur_nodes->elems[local_48];\n        if (0 < src->nelem) {\n          iVar2 = 0;\n          do {\n            if ((type == (uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4) &&\n               ((re_bitset_ptr_t)ex_subexp == dfa->nodes[src->elems[iVar2]].opr.sbcset)) {\n              if (src->elems[iVar2] != -1) {\n                rVar3 = check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type);\n                if (rVar3 == _REG_NOERROR) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar2 = iVar2 + 1;\n          } while (src->nelem != iVar2);\n        }\n        rVar3 = re_node_set_merge(&new_nodes,src);\n        if (rVar3 != _REG_NOERROR) {\nLAB_0001e7c7:\n          free(new_nodes.elems);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      }" { (expression_statement "src = dfa->eclosures + cur_nodes->elems[local_48];" (assignment_expression "src = dfa->eclosures + cur_nodes->elems[local_48]" identifier = (binary_expression "dfa->eclosures + cur_nodes->elems[local_48]" (field_expression "dfa->eclosures" identifier -> field_identifier) + (subscript_expression "cur_nodes->elems[local_48]" (field_expression "cur_nodes->elems" identifier -> field_identifier) [ identifier ]))) ;) (if_statement "if (0 < src->nelem) {\n          iVar2 = 0;\n          do {\n            if ((type == (uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4) &&\n               ((re_bitset_ptr_t)ex_subexp == dfa->nodes[src->elems[iVar2]].opr.sbcset)) {\n              if (src->elems[iVar2] != -1) {\n                rVar3 = check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type);\n                if (rVar3 == _REG_NOERROR) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar2 = iVar2 + 1;\n          } while (src->nelem != iVar2);\n        }" if (parenthesized_expression "(0 < src->nelem)" ( (binary_expression "0 < src->nelem" number_literal < (field_expression "src->nelem" identifier -> field_identifier)) )) (compound_statement "{\n          iVar2 = 0;\n          do {\n            if ((type == (uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4) &&\n               ((re_bitset_ptr_t)ex_subexp == dfa->nodes[src->elems[iVar2]].opr.sbcset)) {\n              if (src->elems[iVar2] != -1) {\n                rVar3 = check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type);\n                if (rVar3 == _REG_NOERROR) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar2 = iVar2 + 1;\n          } while (src->nelem != iVar2);\n        }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n            if ((type == (uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4) &&\n               ((re_bitset_ptr_t)ex_subexp == dfa->nodes[src->elems[iVar2]].opr.sbcset)) {\n              if (src->elems[iVar2] != -1) {\n                rVar3 = check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type);\n                if (rVar3 == _REG_NOERROR) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar2 = iVar2 + 1;\n          } while (src->nelem != iVar2);" do (compound_statement "{\n            if ((type == (uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4) &&\n               ((re_bitset_ptr_t)ex_subexp == dfa->nodes[src->elems[iVar2]].opr.sbcset)) {\n              if (src->elems[iVar2] != -1) {\n                rVar3 = check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type);\n                if (rVar3 == _REG_NOERROR) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar2 = iVar2 + 1;\n          }" { (if_statement "if ((type == (uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4) &&\n               ((re_bitset_ptr_t)ex_subexp == dfa->nodes[src->elems[iVar2]].opr.sbcset)) {\n              if (src->elems[iVar2] != -1) {\n                rVar3 = check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type);\n                if (rVar3 == _REG_NOERROR) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }" if (parenthesized_expression "((type == (uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4) &&\n               ((re_bitset_ptr_t)ex_subexp == dfa->nodes[src->elems[iVar2]].opr.sbcset))" ( (binary_expression "(type == (uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4) &&\n               ((re_bitset_ptr_t)ex_subexp == dfa->nodes[src->elems[iVar2]].opr.sbcset)" (parenthesized_expression "(type == (uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4)" ( (binary_expression "type == (uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4" identifier == (cast_expression "(uint)(byte)dfa->nodes[src->elems[iVar2]].field_0x4" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)dfa->nodes[src->elems[iVar2]].field_0x4" ( (type_descriptor "byte" type_identifier) ) (field_expression "dfa->nodes[src->elems[iVar2]].field_0x4" (subscript_expression "dfa->nodes[src->elems[iVar2]]" (field_expression "dfa->nodes" identifier -> field_identifier) [ (subscript_expression "src->elems[iVar2]" (field_expression "src->elems" identifier -> field_identifier) [ identifier ]) ]) . field_identifier)))) )) && (parenthesized_expression "((re_bitset_ptr_t)ex_subexp == dfa->nodes[src->elems[iVar2]].opr.sbcset)" ( (binary_expression "(re_bitset_ptr_t)ex_subexp == dfa->nodes[src->elems[iVar2]].opr.sbcset" (cast_expression "(re_bitset_ptr_t)ex_subexp" ( (type_descriptor "re_bitset_ptr_t" type_identifier) ) identifier) == (field_expression "dfa->nodes[src->elems[iVar2]].opr.sbcset" (field_expression "dfa->nodes[src->elems[iVar2]].opr" (subscript_expression "dfa->nodes[src->elems[iVar2]]" (field_expression "dfa->nodes" identifier -> field_identifier) [ (subscript_expression "src->elems[iVar2]" (field_expression "src->elems" identifier -> field_identifier) [ identifier ]) ]) . field_identifier) . field_identifier)) ))) )) (compound_statement "{\n              if (src->elems[iVar2] != -1) {\n                rVar3 = check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type);\n                if (rVar3 == _REG_NOERROR) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }" { (if_statement "if (src->elems[iVar2] != -1) {\n                rVar3 = check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type);\n                if (rVar3 == _REG_NOERROR) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }" if (parenthesized_expression "(src->elems[iVar2] != -1)" ( (binary_expression "src->elems[iVar2] != -1" (subscript_expression "src->elems[iVar2]" (field_expression "src->elems" identifier -> field_identifier) [ identifier ]) != number_literal) )) (compound_statement "{\n                rVar3 = check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type);\n                if (rVar3 == _REG_NOERROR) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }" { (expression_statement "rVar3 = check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type);" (assignment_expression "rVar3 = check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type)" identifier = (call_expression "check_arrival_expand_ecl_sub\n                                  (dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type)" identifier (argument_list "(dfa,&new_nodes,cur_nodes->elems[local_48],ex_subexp,type)" ( identifier , (pointer_expression "&new_nodes" & identifier) , (subscript_expression "cur_nodes->elems[local_48]" (field_expression "cur_nodes->elems" identifier -> field_identifier) [ identifier ]) , identifier , identifier )))) ;) (if_statement "if (rVar3 == _REG_NOERROR) goto LAB_0001e76b;" if (parenthesized_expression "(rVar3 == _REG_NOERROR)" ( (binary_expression "rVar3 == _REG_NOERROR" identifier == identifier) )) (goto_statement "goto LAB_0001e76b;" goto statement_identifier ;)) (goto_statement "goto LAB_0001e7c7;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(src->nelem != iVar2)" ( (binary_expression "src->nelem != iVar2" (field_expression "src->nelem" identifier -> field_identifier) != identifier) )) ;) })) (expression_statement "rVar3 = re_node_set_merge(&new_nodes,src);" (assignment_expression "rVar3 = re_node_set_merge(&new_nodes,src)" identifier = (call_expression "re_node_set_merge(&new_nodes,src)" identifier (argument_list "(&new_nodes,src)" ( (pointer_expression "&new_nodes" & identifier) , identifier )))) ;) (if_statement "if (rVar3 != _REG_NOERROR) {\nLAB_0001e7c7:\n          free(new_nodes.elems);\n          goto LAB_0001e7e0;\n        }" if (parenthesized_expression "(rVar3 != _REG_NOERROR)" ( (binary_expression "rVar3 != _REG_NOERROR" identifier != identifier) )) (compound_statement "{\nLAB_0001e7c7:\n          free(new_nodes.elems);\n          goto LAB_0001e7e0;\n        }" { (labeled_statement "LAB_0001e7c7:\n          free(new_nodes.elems);" statement_identifier : (expression_statement "free(new_nodes.elems);" (call_expression "free(new_nodes.elems)" identifier (argument_list "(new_nodes.elems)" ( (field_expression "new_nodes.elems" identifier . field_identifier) ))) ;)) (goto_statement "goto LAB_0001e7e0;" goto statement_identifier ;) })) (labeled_statement "LAB_0001e76b:\n        local_48 = local_48 + 1;" statement_identifier : (expression_statement "local_48 = local_48 + 1;" (assignment_expression "local_48 = local_48 + 1" identifier = (binary_expression "local_48 + 1" identifier + number_literal)) ;)) }) while (parenthesized_expression "(local_48 < cur_nodes->nelem)" ( (binary_expression "local_48 < cur_nodes->nelem" identifier < (field_expression "cur_nodes->nelem" identifier -> field_identifier)) )) ;) })) (expression_statement "free(cur_nodes->elems);" (call_expression "free(cur_nodes->elems)" identifier (argument_list "(cur_nodes->elems)" ( (field_expression "cur_nodes->elems" identifier -> field_identifier) ))) ;) (expression_statement "cur_nodes->alloc = new_nodes.alloc;" (assignment_expression "cur_nodes->alloc = new_nodes.alloc" (field_expression "cur_nodes->alloc" identifier -> field_identifier) = (field_expression "new_nodes.alloc" identifier . field_identifier)) ;) (expression_statement "cur_nodes->nelem = new_nodes.nelem;" (assignment_expression "cur_nodes->nelem = new_nodes.nelem" (field_expression "cur_nodes->nelem" identifier -> field_identifier) = (field_expression "new_nodes.nelem" identifier . field_identifier)) ;) (expression_statement "cur_nodes->elems = new_nodes.elems;" (assignment_expression "cur_nodes->elems = new_nodes.elems" (field_expression "cur_nodes->elems" identifier -> field_identifier) = (field_expression "new_nodes.elems" identifier . field_identifier)) ;) (expression_statement "rVar3 = _REG_NOERROR;" (assignment_expression "rVar3 = _REG_NOERROR" identifier = identifier) ;) }))) (labeled_statement "LAB_0001e7e0:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return rVar3;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return rVar3;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return rVar3;\n  }" { (return_statement "return rVar3;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int __regparm3 FUN_0001e670(int *param_1,int *param_2,int param_3,uint param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_48;\n  int local_2c;\n  int local_28;\n  void *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e679;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar5 = param_2[1];\n  local_28 = 0;\n  local_2c = iVar5;\n  local_24 = malloc(iVar5 * 4);\n  if (local_24 == (void *)0x0) {\n    iVar5 = 0xc;\n  }\n  else {\n    if (0 < iVar5) {\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }\n    free((void *)param_2[2]);\n    *param_2 = local_2c;\n    param_2[1] = local_28;\n    param_2[2] = (int)local_24;\n    iVar5 = 0;\n  }\nLAB_0001e7e0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    \n  FUN_0002ca00();\n}\n\n" (function_definition "int __regparm3 FUN_0001e670(int *param_1,int *param_2,int param_3,uint param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_48;\n  int local_2c;\n  int local_28;\n  void *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e679;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar5 = param_2[1];\n  local_28 = 0;\n  local_2c = iVar5;\n  local_24 = malloc(iVar5 * 4);\n  if (local_24 == (void *)0x0) {\n    iVar5 = 0xc;\n  }\n  else {\n    if (0 < iVar5) {\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }\n    free((void *)param_2[2]);\n    *param_2 = local_2c;\n    param_2[1] = local_28;\n    param_2[2] = (int)local_24;\n    iVar5 = 0;\n  }\nLAB_0001e7e0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    \n  FUN_0002ca00();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001e670(int *param_1,int *param_2,int param_3,uint param_4)" identifier (parameter_list "(int *param_1,int *param_2,int param_3,uint param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_48;\n  int local_2c;\n  int local_28;\n  void *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e679;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar5 = param_2[1];\n  local_28 = 0;\n  local_2c = iVar5;\n  local_24 = malloc(iVar5 * 4);\n  if (local_24 == (void *)0x0) {\n    iVar5 = 0xc;\n  }\n  else {\n    if (0 < iVar5) {\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }\n    free((void *)param_2[2]);\n    *param_2 = local_2c;\n    param_2[1] = local_28;\n    param_2[2] = (int)local_24;\n    iVar5 = 0;\n  }\nLAB_0001e7e0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    \n  FUN_0002ca00();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_48;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "void *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1e679;" (assignment_expression "uStack_14 = 0x1e679" identifier = number_literal) ;) (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 "iVar5 = param_2[1];" (assignment_expression "iVar5 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_2c = iVar5;" (assignment_expression "local_2c = iVar5" identifier = identifier) ;) (expression_statement "local_24 = malloc(iVar5 * 4);" (assignment_expression "local_24 = malloc(iVar5 * 4)" identifier = (call_expression "malloc(iVar5 * 4)" identifier (argument_list "(iVar5 * 4)" ( (binary_expression "iVar5 * 4" identifier * number_literal) )))) ;) (if_statement "if (local_24 == (void *)0x0) {\n    iVar5 = 0xc;\n  }\n  else {\n    if (0 < iVar5) {\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }\n    free((void *)param_2[2]);\n    *param_2 = local_2c;\n    param_2[1] = local_28;\n    param_2[2] = (int)local_24;\n    iVar5 = 0;\n  }" if (parenthesized_expression "(local_24 == (void *)0x0)" ( (binary_expression "local_24 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar5 = 0xc;\n  }" { (expression_statement "iVar5 = 0xc;" (assignment_expression "iVar5 = 0xc" identifier = number_literal) ;) }) (else_clause "else {\n    if (0 < iVar5) {\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }\n    free((void *)param_2[2]);\n    *param_2 = local_2c;\n    param_2[1] = local_28;\n    param_2[2] = (int)local_24;\n    iVar5 = 0;\n  }" else (compound_statement "{\n    if (0 < iVar5) {\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }\n    free((void *)param_2[2]);\n    *param_2 = local_2c;\n    param_2[1] = local_28;\n    param_2[2] = (int)local_24;\n    iVar5 = 0;\n  }" { (if_statement "if (0 < iVar5) {\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }" if (parenthesized_expression "(0 < iVar5)" ( (binary_expression "0 < iVar5" number_literal < identifier) )) (compound_statement "{\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }" { (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);" do (compound_statement "{\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      }" { (expression_statement "iVar2 = *(int *)(param_2[2] + local_48 * 4);" (assignment_expression "iVar2 = *(int *)(param_2[2] + local_48 * 4)" identifier = (pointer_expression "*(int *)(param_2[2] + local_48 * 4)" * (cast_expression "(int *)(param_2[2] + local_48 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[2] + local_48 * 4)" ( (binary_expression "param_2[2] + local_48 * 4" (subscript_expression "param_2[2]" identifier [ number_literal ]) + (binary_expression "local_48 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar5 = param_1[6] + iVar2 * 0xc;" (assignment_expression "iVar5 = param_1[6] + iVar2 * 0xc" identifier = (binary_expression "param_1[6] + iVar2 * 0xc" (subscript_expression "param_1[6]" identifier [ number_literal ]) + (binary_expression "iVar2 * 0xc" identifier * number_literal))) ;) (if_statement "if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }" if (parenthesized_expression "(0 < *(int *)(iVar5 + 4))" ( (binary_expression "0 < *(int *)(iVar5 + 4)" number_literal < (pointer_expression "*(int *)(iVar5 + 4)" * (cast_expression "(int *)(iVar5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);" do (compound_statement "{\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          }" { (expression_statement "iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);" (assignment_expression "iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(iVar5 + 8) + iVar4 * 4)" * (cast_expression "(int *)(*(int *)(iVar5 + 8) + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 8) + iVar4 * 4)" ( (binary_expression "*(int *)(iVar5 + 8) + iVar4 * 4" (pointer_expression "*(int *)(iVar5 + 8)" * (cast_expression "(int *)(iVar5 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) )))) + (binary_expression "iVar4 * 4" identifier * number_literal)) ))))) ;) (expression_statement "piVar1 = (int *)(*param_1 + iVar3 * 8);" (assignment_expression "piVar1 = (int *)(*param_1 + iVar3 * 8)" identifier = (cast_expression "(int *)(*param_1 + iVar3 * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar3 * 8)" ( (binary_expression "*param_1 + iVar3 * 8" (pointer_expression "*param_1" * identifier) + (binary_expression "iVar3 * 8" identifier * number_literal)) )))) ;) (if_statement "if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }" if (parenthesized_expression "((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1))" ( (binary_expression "(param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)" (parenthesized_expression "(param_4 == *(byte *)(piVar1 + 1))" ( (binary_expression "param_4 == *(byte *)(piVar1 + 1)" identifier == (pointer_expression "*(byte *)(piVar1 + 1)" * (cast_expression "(byte *)(piVar1 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) ))))) )) && (parenthesized_expression "(param_3 == *piVar1)" ( (binary_expression "param_3 == *piVar1" identifier == (pointer_expression "*piVar1" * identifier)) ))) )) (compound_statement "{\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }" { (if_statement "if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }" if (parenthesized_expression "(iVar3 != -1)" ( (binary_expression "iVar3 != -1" identifier != number_literal) )) (compound_statement "{\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }" { (expression_statement "iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);" (assignment_expression "iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4)" identifier = (call_expression "FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4)" identifier (argument_list "(param_1,&local_2c,iVar2,param_3,param_4)" ( identifier , (pointer_expression "&local_2c" & identifier) , identifier , identifier , identifier )))) ;) (if_statement "if (iVar5 == 0) goto LAB_0001e76b;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001e76b;" goto statement_identifier ;)) (goto_statement "goto LAB_0001e7c7;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(int *)(iVar5 + 4) != iVar4)" ( (binary_expression "*(int *)(iVar5 + 4) != iVar4" (pointer_expression "*(int *)(iVar5 + 4)" * (cast_expression "(int *)(iVar5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) )))) != identifier) )) ;) })) (expression_statement "iVar5 = FUN_0001e1f0(&local_2c,iVar5);" (assignment_expression "iVar5 = FUN_0001e1f0(&local_2c,iVar5)" identifier = (call_expression "FUN_0001e1f0(&local_2c,iVar5)" identifier (argument_list "(&local_2c,iVar5)" ( (pointer_expression "&local_2c" & identifier) , identifier )))) ;) (if_statement "if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }" { (labeled_statement "LAB_0001e7c7:\n          free(local_24);" statement_identifier : (expression_statement "free(local_24);" (call_expression "free(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;)) (goto_statement "goto LAB_0001e7e0;" goto statement_identifier ;) })) (labeled_statement "LAB_0001e76b:\n        local_48 = local_48 + 1;" statement_identifier : (expression_statement "local_48 = local_48 + 1;" (assignment_expression "local_48 = local_48 + 1" identifier = (binary_expression "local_48 + 1" identifier + number_literal)) ;)) }) while (parenthesized_expression "(local_48 < param_2[1])" ( (binary_expression "local_48 < param_2[1]" identifier < (subscript_expression "param_2[1]" identifier [ number_literal ])) )) ;) })) (expression_statement "free((void *)param_2[2]);" (call_expression "free((void *)param_2[2])" identifier (argument_list "((void *)param_2[2])" ( (cast_expression "(void *)param_2[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[2]" identifier [ number_literal ])) ))) ;) (expression_statement "*param_2 = local_2c;" (assignment_expression "*param_2 = local_2c" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = local_28;" (assignment_expression "param_2[1] = local_28" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[2] = (int)local_24;" (assignment_expression "param_2[2] = (int)local_24" (subscript_expression "param_2[2]" identifier [ number_literal ]) = (cast_expression "(int)local_24" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }))) (labeled_statement "LAB_0001e7e0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\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    return iVar5;\n  }" { (return_statement "return iVar5;" return identifier ;) }))) (expression_statement "FUN_0002ca00();" (call_expression "FUN_0002ca00()" identifier (argument_list "()" ( ))) ;) })))
(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 IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT * LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) && (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) }) while (parenthesized_expression ( (binary_expression IDENT < (subscript_expression IDENT [ LIT ])) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int __regparm3 FUN_0001e670(int *param_1,int *param_2,int param_3,uint param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_48;\n  int local_2c;\n  int local_28;\n  void *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e679;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar5 = param_2[1];\n  local_28 = 0;\n  local_2c = iVar5;\n  local_24 = malloc(iVar5 * 4);\n  if (local_24 == (void *)0x0) {\n    iVar5 = 0xc;\n  }\n  else {\n    if (0 < iVar5) {\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }\n    free((void *)param_2[2]);\n    *param_2 = local_2c;\n    param_2[1] = local_28;\n    param_2[2] = (int)local_24;\n    iVar5 = 0;\n  }\nLAB_0001e7e0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    \n  FUN_0002ca00();\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001e670(int *param_1,int *param_2,int param_3,uint param_4)" (identifier "FUN_0001e670") (parameter_list "(int *param_1,int *param_2,int param_3,uint param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (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") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_48;\n  int local_2c;\n  int local_28;\n  void *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e679;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar5 = param_2[1];\n  local_28 = 0;\n  local_2c = iVar5;\n  local_24 = malloc(iVar5 * 4);\n  if (local_24 == (void *)0x0) {\n    iVar5 = 0xc;\n  }\n  else {\n    if (0 < iVar5) {\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }\n    free((void *)param_2[2]);\n    *param_2 = local_2c;\n    param_2[1] = local_28;\n    param_2[2] = (int)local_24;\n    iVar5 = 0;\n  }\nLAB_0001e7e0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    \n  FUN_0002ca00();\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_48;" (primitive_type "int") (identifier "local_48") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "void *local_24;" (primitive_type "void") (pointer_declarator "*local_24" (* "*") (identifier "local_24")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1e679;" (assignment_expression "uStack_14 = 0x1e679" (identifier "uStack_14") (= "=") (number_literal "0x1e679")) (; ";")) (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 "iVar5 = param_2[1];" (assignment_expression "iVar5 = param_2[1]" (identifier "iVar5") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c = iVar5;" (assignment_expression "local_2c = iVar5" (identifier "local_2c") (= "=") (identifier "iVar5")) (; ";")) (expression_statement "local_24 = malloc(iVar5 * 4);" (assignment_expression "local_24 = malloc(iVar5 * 4)" (identifier "local_24") (= "=") (call_expression "malloc(iVar5 * 4)" (identifier "malloc") (argument_list "(iVar5 * 4)" (( "(") (binary_expression "iVar5 * 4" (identifier "iVar5") (* "*") (number_literal "4")) () ")")))) (; ";")) (if_statement "if (local_24 == (void *)0x0) {\n    iVar5 = 0xc;\n  }\n  else {\n    if (0 < iVar5) {\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }\n    free((void *)param_2[2]);\n    *param_2 = local_2c;\n    param_2[1] = local_28;\n    param_2[2] = (int)local_24;\n    iVar5 = 0;\n  }" (if "if") (parenthesized_expression "(local_24 == (void *)0x0)" (( "(") (binary_expression "local_24 == (void *)0x0" (identifier "local_24") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar5 = 0xc;\n  }" ({ "{") (expression_statement "iVar5 = 0xc;" (assignment_expression "iVar5 = 0xc" (identifier "iVar5") (= "=") (number_literal "0xc")) (; ";")) (} "}")) (else_clause "else {\n    if (0 < iVar5) {\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }\n    free((void *)param_2[2]);\n    *param_2 = local_2c;\n    param_2[1] = local_28;\n    param_2[2] = (int)local_24;\n    iVar5 = 0;\n  }" (else "else") (compound_statement "{\n    if (0 < iVar5) {\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }\n    free((void *)param_2[2]);\n    *param_2 = local_2c;\n    param_2[1] = local_28;\n    param_2[2] = (int)local_24;\n    iVar5 = 0;\n  }" ({ "{") (if_statement "if (0 < iVar5) {\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }" (if "if") (parenthesized_expression "(0 < iVar5)" (( "(") (binary_expression "0 < iVar5" (number_literal "0") (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\n      local_48 = 0;\n      do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);\n    }" ({ "{") (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" (identifier "local_48") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      } while (local_48 < param_2[1]);" (do "do") (compound_statement "{\n        iVar2 = *(int *)(param_2[2] + local_48 * 4);\n        iVar5 = param_1[6] + iVar2 * 0xc;\n        if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }\n        iVar5 = FUN_0001e1f0(&local_2c,iVar5);\n        if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }\nLAB_0001e76b:\n        local_48 = local_48 + 1;\n      }" ({ "{") (expression_statement "iVar2 = *(int *)(param_2[2] + local_48 * 4);" (assignment_expression "iVar2 = *(int *)(param_2[2] + local_48 * 4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_2[2] + local_48 * 4)" (* "*") (cast_expression "(int *)(param_2[2] + local_48 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[2] + local_48 * 4)" (( "(") (binary_expression "param_2[2] + local_48 * 4" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (+ "+") (binary_expression "local_48 * 4" (identifier "local_48") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "iVar5 = param_1[6] + iVar2 * 0xc;" (assignment_expression "iVar5 = param_1[6] + iVar2 * 0xc" (identifier "iVar5") (= "=") (binary_expression "param_1[6] + iVar2 * 0xc" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (+ "+") (binary_expression "iVar2 * 0xc" (identifier "iVar2") (* "*") (number_literal "0xc")))) (; ";")) (if_statement "if (0 < *(int *)(iVar5 + 4)) {\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }" (if "if") (parenthesized_expression "(0 < *(int *)(iVar5 + 4))" (( "(") (binary_expression "0 < *(int *)(iVar5 + 4)" (number_literal "0") (< "<") (pointer_expression "*(int *)(iVar5 + 4)" (* "*") (cast_expression "(int *)(iVar5 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 4)" (( "(") (binary_expression "iVar5 + 4" (identifier "iVar5") (+ "+") (number_literal "4")) () ")"))))) () ")")) (compound_statement "{\n          iVar4 = 0;\n          do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);\n        }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          } while (*(int *)(iVar5 + 4) != iVar4);" (do "do") (compound_statement "{\n            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);\n            piVar1 = (int *)(*param_1 + iVar3 * 8);\n            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }\n            iVar4 = iVar4 + 1;\n          }" ({ "{") (expression_statement "iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);" (assignment_expression "iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(*(int *)(iVar5 + 8) + iVar4 * 4)" (* "*") (cast_expression "(int *)(*(int *)(iVar5 + 8) + iVar4 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar5 + 8) + iVar4 * 4)" (( "(") (binary_expression "*(int *)(iVar5 + 8) + iVar4 * 4" (pointer_expression "*(int *)(iVar5 + 8)" (* "*") (cast_expression "(int *)(iVar5 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 8)" (( "(") (binary_expression "iVar5 + 8" (identifier "iVar5") (+ "+") (number_literal "8")) () ")")))) (+ "+") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "piVar1 = (int *)(*param_1 + iVar3 * 8);" (assignment_expression "piVar1 = (int *)(*param_1 + iVar3 * 8)" (identifier "piVar1") (= "=") (cast_expression "(int *)(*param_1 + iVar3 * 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + iVar3 * 8)" (( "(") (binary_expression "*param_1 + iVar3 * 8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (binary_expression "iVar3 * 8" (identifier "iVar3") (* "*") (number_literal "8"))) () ")")))) (; ";")) (if_statement "if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }" (if "if") (parenthesized_expression "((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1))" (( "(") (binary_expression "(param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)" (parenthesized_expression "(param_4 == *(byte *)(piVar1 + 1))" (( "(") (binary_expression "param_4 == *(byte *)(piVar1 + 1)" (identifier "param_4") (== "==") (pointer_expression "*(byte *)(piVar1 + 1)" (* "*") (cast_expression "(byte *)(piVar1 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 1)" (( "(") (binary_expression "piVar1 + 1" (identifier "piVar1") (+ "+") (number_literal "1")) () ")"))))) () ")")) (&& "&&") (parenthesized_expression "(param_3 == *piVar1)" (( "(") (binary_expression "param_3 == *piVar1" (identifier "param_3") (== "==") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) () ")"))) () ")")) (compound_statement "{\n              if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }\n              break;\n            }" ({ "{") (if_statement "if (iVar3 != -1) {\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }" (if "if") (parenthesized_expression "(iVar3 != -1)" (( "(") (binary_expression "iVar3 != -1" (identifier "iVar3") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);\n                if (iVar5 == 0) goto LAB_0001e76b;\n                goto LAB_0001e7c7;\n              }" ({ "{") (expression_statement "iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);" (assignment_expression "iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4)" (identifier "iVar5") (= "=") (call_expression "FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4)" (identifier "FUN_0001dd90") (argument_list "(param_1,&local_2c,iVar2,param_3,param_4)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_2c" (& "&") (identifier "local_2c")) (, ",") (identifier "iVar2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (iVar5 == 0) goto LAB_0001e76b;" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001e76b;" (goto "goto") (statement_identifier "LAB_0001e76b") (; ";"))) (goto_statement "goto LAB_0001e7c7;" (goto "goto") (statement_identifier "LAB_0001e7c7") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(int *)(iVar5 + 4) != iVar4)" (( "(") (binary_expression "*(int *)(iVar5 + 4) != iVar4" (pointer_expression "*(int *)(iVar5 + 4)" (* "*") (cast_expression "(int *)(iVar5 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 4)" (( "(") (binary_expression "iVar5 + 4" (identifier "iVar5") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (identifier "iVar4")) () ")")) (; ";")) (} "}"))) (expression_statement "iVar5 = FUN_0001e1f0(&local_2c,iVar5);" (assignment_expression "iVar5 = FUN_0001e1f0(&local_2c,iVar5)" (identifier "iVar5") (= "=") (call_expression "FUN_0001e1f0(&local_2c,iVar5)" (identifier "FUN_0001e1f0") (argument_list "(&local_2c,iVar5)" (( "(") (pointer_expression "&local_2c" (& "&") (identifier "local_2c")) (, ",") (identifier "iVar5") () ")")))) (; ";")) (if_statement "if (iVar5 != 0) {\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0001e7c7:\n          free(local_24);\n          goto LAB_0001e7e0;\n        }" ({ "{") (labeled_statement "LAB_0001e7c7:\n          free(local_24);" (statement_identifier "LAB_0001e7c7") (: ":") (expression_statement "free(local_24);" (call_expression "free(local_24)" (identifier "free") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";"))) (goto_statement "goto LAB_0001e7e0;" (goto "goto") (statement_identifier "LAB_0001e7e0") (; ";")) (} "}"))) (labeled_statement "LAB_0001e76b:\n        local_48 = local_48 + 1;" (statement_identifier "LAB_0001e76b") (: ":") (expression_statement "local_48 = local_48 + 1;" (assignment_expression "local_48 = local_48 + 1" (identifier "local_48") (= "=") (binary_expression "local_48 + 1" (identifier "local_48") (+ "+") (number_literal "1"))) (; ";"))) (} "}")) (while "while") (parenthesized_expression "(local_48 < param_2[1])" (( "(") (binary_expression "local_48 < param_2[1]" (identifier "local_48") (< "<") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) () ")")) (; ";")) (} "}"))) (expression_statement "free((void *)param_2[2]);" (call_expression "free((void *)param_2[2])" (identifier "free") (argument_list "((void *)param_2[2])" (( "(") (cast_expression "(void *)param_2[2]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) () ")"))) (; ";")) (expression_statement "*param_2 = local_2c;" (assignment_expression "*param_2 = local_2c" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "local_2c")) (; ";")) (expression_statement "param_2[1] = local_28;" (assignment_expression "param_2[1] = local_28" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_28")) (; ";")) (expression_statement "param_2[2] = (int)local_24;" (assignment_expression "param_2[2] = (int)local_24" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)local_24" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_24"))) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (} "}")))) (labeled_statement "LAB_0001e7e0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }" (statement_identifier "LAB_0001e7e0") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\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    return iVar5;\n  }" ({ "{") (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}")))) (expression_statement "FUN_0002ca00();" (call_expression "FUN_0002ca00()" (identifier "FUN_0002ca00") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

type_1 __regparm3
function_1(type_2 *dfa,type_3 *cur_nodes,type_4 ex_subexp,int var_4)

{
  type_3 *src;
  int var_11;
  int var_3;
  type_1 var_6;
  int var_1;
  int var_10;
  type_3 new_nodes;
  
  var_11 = *(int *)(var_1 + 0x14);
  var_3 = cur_nodes->nelem;
  new_nodes.nelem = 0;
  new_nodes.alloc = var_3;
  new_nodes.elems = (type_4 *)var_2(var_3 * 4);
  if (new_nodes.elems == (type_4 *)0x0) {
    var_6 = _REG_ESPACE;
  }
  else {
    if (0 < var_3) {
      var_10 = 0;
      do {
        src = dfa->eclosures + cur_nodes->elems[var_10];
        if (0 < src->nelem) {
          var_3 = 0;
          do {
            if ((var_4 == (type_5)(type_6)dfa->nodes[src->elems[var_3]].field_0x4) &&
               ((type_7)ex_subexp == dfa->nodes[src->elems[var_3]].opr.sbcset)) {
              if (src->elems[var_3] != -1) {
                var_6 = var_5
                                  (dfa,&new_nodes,cur_nodes->elems[var_10],ex_subexp,var_4);
                if (var_6 == var_7) goto LAB_0001e76b;
                goto LAB_0001e7c7;
              }
              break;
            }
            var_3 = var_3 + 1;
          } while (src->nelem != var_3);
        }
        var_6 = var_8(&new_nodes,src);
        if (var_6 != var_7) {
LAB_0001e7c7:
          var_9(new_nodes.elems);
          goto LAB_0001e7e0;
        }
LAB_0001e76b:
        var_10 = var_10 + 1;
      } while (var_10 < cur_nodes->nelem);
    }
    var_9(cur_nodes->elems);
    cur_nodes->alloc = new_nodes.alloc;
    cur_nodes->nelem = new_nodes.nelem;
    cur_nodes->elems = new_nodes.elems;
    var_6 = var_7;
  }
LAB_0001e7e0:
  if (var_11 == *(int *)(var_1 + 0x14)) {
    return var_6;
  }
                    /* WARNING: Subroutine does not return */
  var_12();
}


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

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

int __regparm3 MASKED(int *param_1,int *param_2,int param_3,uint param_4)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int in_GS_OFFSET;
  int local_48;
  int local_2c;
  int local_28;
  void *local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1e679;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar5 = param_2[1];
  local_28 = 0;
  local_2c = iVar5;
  local_24 = malloc(iVar5 * 4);
  if (local_24 == (void *)0x0) {
    iVar5 = 0xc;
  }
  else {
    if (0 < iVar5) {
      local_48 = 0;
      do {
        iVar2 = *(int *)(param_2[2] + local_48 * 4);
        iVar5 = param_1[6] + iVar2 * 0xc;
        if (0 < *(int *)(iVar5 + 4)) {
          iVar4 = 0;
          do {
            iVar3 = *(int *)(*(int *)(iVar5 + 8) + iVar4 * 4);
            piVar1 = (int *)(*param_1 + iVar3 * 8);
            if ((param_4 == *(byte *)(piVar1 + 1)) && (param_3 == *piVar1)) {
              if (iVar3 != -1) {
                iVar5 = FUN_0001dd90(param_1,&local_2c,iVar2,param_3,param_4);
                if (iVar5 == 0) goto LAB_0001e76b;
                goto LAB_0001e7c7;
              }
              break;
            }
            iVar4 = iVar4 + 1;
          } while (*(int *)(iVar5 + 4) != iVar4);
        }
        iVar5 = FUN_0001e1f0(&local_2c,iVar5);
        if (iVar5 != 0) {
LAB_0001e7c7:
          free(local_24);
          goto LAB_0001e7e0;
        }
LAB_0001e76b:
        local_48 = local_48 + 1;
      } while (local_48 < param_2[1]);
    }
    free((void *)param_2[2]);
    *param_2 = local_2c;
    param_2[1] = local_28;
    param_2[2] = (int)local_24;
    iVar5 = 0;
  }
LAB_0001e7e0:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar5;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002ca00();
}

