
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

reg_errcode_t __regparm3
sub_epsilon_src_nodes(re_dfa_t *dfa,Idx node,re_node_set *dest_nodes,re_node_set *candidates)

{
  Idx **elem;
  int iVar1;
  re_node_set *prVar2;
  int iVar3;
  re_node_set *prVar4;
  Idx *pIVar5;
  Idx IVar6;
  int iVar7;
  re_node_set *prVar8;
  reg_errcode_t rVar9;
  re_node_set *set_1;
  re_node_set *set_1_00;
  int iVar10;
  int in_GS_OFFSET;
  re_node_set *local_54;
  re_node_set except_nodes;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  prVar2 = dfa->inveclosures;
  except_nodes.alloc = 0;
  except_nodes.nelem = 0;
  except_nodes.elems = (Idx *)0x0;
  local_54 = (re_node_set *)prVar2[node].nelem;
  if (0 < (int)local_54) {
    iVar10 = 0;
    elem = &dest_nodes->elems;
    do {
      iVar3 = prVar2[node].elems[iVar10];
      if ((node != iVar3) && ((dfa->nodes[iVar3].field_0x4 & 8) != 0)) {
        prVar4 = dfa->edests;
        pIVar5 = prVar4[iVar3].elems;
        prVar8 = (re_node_set *)*pIVar5;
        IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar8);
        if (prVar4[iVar3].nelem < 2) {
          if (IVar6 == 0) {
            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8);
joined_r0x000207e8:
            if (iVar7 != 0) goto LAB_00020704;
          }
        }
        else if ((IVar6 == 0) &&
                (IVar6 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8),
                IVar6 != 0)) {
LAB_00020704:
          rVar9 = re_node_set_add_intersect(&except_nodes,candidates,dfa->inveclosures + iVar3);
          if (rVar9 != _REG_NOERROR) {
            free(except_nodes.elems);
            goto LAB_0002088b;
          }
          local_54 = (re_node_set *)prVar2[node].nelem;
        }
        else {
          prVar4 = (re_node_set *)pIVar5[1];
          if ((0 < (int)prVar4) &&
             (IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4), IVar6 == 0)) {
            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1);
            goto joined_r0x000207e8;
          }
        }
      }
      iVar10 = iVar10 + 1;
    } while (iVar10 < (int)local_54);
    iVar10 = 0;
    if (0 < (int)local_54) {
      do {
        IVar6 = re_node_set_contains
                          ((re_node_set *)except_nodes.nelem,(Idx)&except_nodes.elems,
                           (re_node_set *)prVar2[node].elems[iVar10]);
        if (IVar6 == 0) {
          prVar4 = (re_node_set *)dest_nodes->nelem;
          IVar6 = re_node_set_contains(prVar4,(Idx)&dest_nodes->elems,set_1_00);
          prVar8 = (re_node_set *)(IVar6 + -1);
          if ((-1 < (int)prVar8) && ((int)prVar8 < (int)prVar4)) {
            dest_nodes->nelem = (Idx)((int)&prVar4[-1].elems + 3);
            re_node_set_remove_at((re_node_set *)&dest_nodes->nelem,(Idx)&dest_nodes->elems,prVar8);
          }
        }
        iVar10 = iVar10 + 1;
      } while (iVar10 < prVar2[node].nelem);
    }
  }
  free(except_nodes.elems);
  rVar9 = _REG_NOERROR;
LAB_0002088b:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return rVar9;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

int __regparm3 FUN_00020660(int *param_1,int param_2,int param_3,undefined4 param_4)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int in_GS_OFFSET;
  int local_54;
  undefined4 local_2c;
  undefined4 local_28;
  void *local_24;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_2c = 0;
  local_28 = 0;
  iVar1 = param_1[7] + param_2 * 0xc;
  local_24 = (void *)0x0;
  local_54 = *(int *)(iVar1 + 4);
  if (0 < local_54) {
    iVar6 = 0;
    do {
      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);
      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {
        iVar5 = param_1[5] + iVar4 * 0xc;
        iVar3 = *(int *)(iVar5 + 8);
        iVar2 = FUN_0001dd20();
        if (*(int *)(iVar5 + 4) < 2) {
          if (iVar2 == 0) {
            iVar3 = FUN_0001dd20();
joined_r0x000207e8:
            if (iVar3 != 0) goto LAB_00020704;
          }
        }
        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {
LAB_00020704:
          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);
          if (iVar4 != 0) {
            free(local_24);
            goto LAB_0002088b;
          }
          local_54 = *(int *)(iVar1 + 4);
        }
        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {
          iVar3 = FUN_0001dd20();
          goto joined_r0x000207e8;
        }
      }
      iVar6 = iVar6 + 1;
    } while (iVar6 < local_54);
    iVar6 = 0;
    if (0 < local_54) {
      do {
        iVar4 = FUN_0001dd20();
        if (iVar4 == 0) {
          iVar4 = *(int *)(param_3 + 4);
          iVar3 = FUN_0001dd20();
          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {
            *(int *)(param_3 + 4) = iVar4 + -1;
            FUN_0001de70();
          }
        }
        iVar6 = iVar6 + 1;
      } while (iVar6 < *(int *)(iVar1 + 4));
    }
  }
  free(local_24);
  iVar4 = 0;
LAB_0002088b:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002ca00();
}


PUSH EBP
PUSH EDI
PUSH ESI
CALL 0x0002a03e
ADD ESI,0x17998
PUSH EBX
SUB ESP,0x4c
MOV dword ptr [ESP + 0xc],EDX
LEA EDX,[EDX + EDX*0x2]
MOV dword ptr [ESP + 0x10],ECX
MOV dword ptr [ESP + 0x2c],ESI
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0x60]
MOV dword ptr [ESP + 0x28],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x3c],EAX
XOR EAX,EAX
MOV EAX,dword ptr [ESI + 0x1c]
MOV dword ptr [ESP + 0x30],0x0
MOV dword ptr [ESP + 0x34],0x0
LEA EBP,[EAX + EDX*0x4]
MOV dword ptr [ESP + 0x38],0x0
MOV EAX,dword ptr [EBP + 0x4]
MOV dword ptr [ESP + 0x8],EAX
TEST EAX,EAX
JLE 0x000208bd
LEA EAX,[EBP + 0x8]
XOR EDI,EDI
MOV dword ptr [ESP + 0x14],EAX
LEA EAX,[ECX + 0x8]
MOV dword ptr [ESP + 0x24],EAX
MOV EAX,ESI
MOV ESI,EBP
MOV EBP,EAX
JMP 0x0002073d
TEST EAX,EAX
JNZ 0x000207b0
MOV EDX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [EDX + 0x4]
MOV EDX,dword ptr [ESP + 0x24]
CALL 0x0001dd20
TEST EAX,EAX
JZ 0x000207b0
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x24]
ADD EAX,dword ptr [EBP + 0x1c]
PUSH EAX
PUSH dword ptr [ESP + 0x30]
LEA EAX,[ESP + 0x3c]
PUSH EAX
CALL 0x0001e810
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000208a0
MOV EAX,dword ptr [ESI + 0x4]
MOV dword ptr [ESP + 0x8],EAX
NOP
ADD EDI,0x1
CMP dword ptr [ESP + 0x8],EDI
JLE 0x000207f8
MOV EAX,dword ptr [ESI + 0x8]
MOV EAX,dword ptr [EAX + EDI*0x4]
CMP dword ptr [ESP + 0xc],EAX
JZ 0x00020730
MOV EDX,dword ptr [EBP]
TEST byte ptr [EDX + EAX*0x8 + 0x4],0x8
JZ 0x00020730
LEA EAX,[EAX + EAX*0x2]
MOV EBX,dword ptr [EBP + 0x14]
MOV EDX,dword ptr [ESP + 0x14]
SHL EAX,0x2
ADD EBX,EAX
MOV dword ptr [ESP + 0x20],EAX
MOV EAX,dword ptr [EBX + 0x8]
MOV dword ptr [ESP + 0x1c],EAX
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x18],EAX
MOV ECX,EAX
MOV EAX,dword ptr [ESP + 0x8]
CALL 0x0001dd20
CMP dword ptr [EBX + 0x4],0x1
JG 0x000206e0
TEST EAX,EAX
JNZ 0x00020730
MOV EAX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [EAX + 0x4]
CALL 0x0001dd20
TEST EAX,EAX
JNZ 0x00020704
JMP 0x00020730
MOV EAX,dword ptr [ESP + 0x1c]
MOV EBX,dword ptr [EAX + 0x4]
TEST EBX,EBX
JLE 0x00020730
MOV EDX,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [ESP + 0x8]
MOV ECX,EBX
CALL 0x0001dd20
TEST EAX,EAX
JNZ 0x00020730
MOV EAX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [EAX + 0x4]
CALL 0x0001dd20
TEST EAX,EAX
JZ 0x00020730
JMP 0x00020704
LEA EAX,[ESP + 0x38]
MOV EBP,ESI
XOR EBX,EBX
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x10]
LEA ESI,[EAX + 0x8]
ADD EAX,0x4
MOV dword ptr [ESP + 0x18],EAX
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0x14],ESI
TEST EAX,EAX
JLE 0x00020875
NOP
MOV EAX,dword ptr [EBP + 0x8]
MOV EDX,dword ptr [ESP + 0xc]
MOV ESI,dword ptr [EAX + EBX*0x4]
MOV EAX,dword ptr [ESP + 0x34]
MOV ECX,ESI
CALL 0x0001dd20
TEST EAX,EAX
JNZ 0x0002086d
MOV EAX,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [ESP + 0x14]
MOV EDI,dword ptr [EAX + 0x4]
MOV EDX,ESI
MOV EAX,EDI
CALL 0x0001dd20
SUB EAX,0x1
MOV ECX,EAX
JS 0x0002086d
CMP EAX,EDI
JGE 0x0002086d
MOV EAX,dword ptr [ESP + 0x10]
SUB EDI,0x1
MOV EDX,ESI
MOV dword ptr [EAX + 0x4],EDI
MOV EAX,dword ptr [ESP + 0x18]
CALL 0x0001de70
ADD EBX,0x1
CMP dword ptr [EBP + 0x4],EBX
JG 0x00020820
MOV EAX,dword ptr [ESP + 0x38]
SUB ESP,0xc
PUSH EAX
MOV EBX,dword ptr [ESP + 0x3c]
CALL 0x000120e0
ADD ESP,0x10
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x3c]
XOR ESI,dword ptr GS:[0x14]
JNZ 0x000208c1
ADD ESP,0x4c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x8],EAX
SUB ESP,0xc
PUSH dword ptr [ESP + 0x44]
MOV EBX,dword ptr [ESP + 0x3c]
CALL 0x000120e0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
JMP 0x0002088b
XOR EAX,EAX
JMP 0x00020879
CALL 0x0002ca00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nint __regparm3 FUN_00020660(int *param_1,int param_2,int param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  int local_54;\n  undefined4 local_2c;\n  undefined4 local_28;\n  void *local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_2c = 0;\n  local_28 = 0;\n  iVar1 = param_1[7] + param_2 * 0xc;\n  local_24 = (void *)0x0;\n  local_54 = *(int *)(iVar1 + 4);\n  if (0 < local_54) {\n    iVar6 = 0;\n    do {\n      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);\n      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < local_54);\n    iVar6 = 0;\n    if (0 < local_54) {\n      do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));\n    }\n  }\n  free(local_24);\n  iVar4 = 0;\nLAB_0002088b:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002ca00();\n}\n\n" comment (function_definition "int __regparm3 FUN_00020660(int *param_1,int param_2,int param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  int local_54;\n  undefined4 local_2c;\n  undefined4 local_28;\n  void *local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_2c = 0;\n  local_28 = 0;\n  iVar1 = param_1[7] + param_2 * 0xc;\n  local_24 = (void *)0x0;\n  local_54 = *(int *)(iVar1 + 4);\n  if (0 < local_54) {\n    iVar6 = 0;\n    do {\n      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);\n      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < local_54);\n    iVar6 = 0;\n    if (0 < local_54) {\n      do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));\n    }\n  }\n  free(local_24);\n  iVar4 = 0;\nLAB_0002088b:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002ca00();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00020660(int *param_1,int param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,int param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  int local_54;\n  undefined4 local_2c;\n  undefined4 local_28;\n  void *local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_2c = 0;\n  local_28 = 0;\n  iVar1 = param_1[7] + param_2 * 0xc;\n  local_24 = (void *)0x0;\n  local_54 = *(int *)(iVar1 + 4);\n  if (0 < local_54) {\n    iVar6 = 0;\n    do {\n      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);\n      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < local_54);\n    iVar6 = 0;\n    if (0 < local_54) {\n      do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));\n    }\n  }\n  free(local_24);\n  iVar4 = 0;\nLAB_0002088b:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002ca00();\n}" { (declaration "int iVar1;" primitive_type 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 iVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_54;" primitive_type identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "void *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = param_1[7] + param_2 * 0xc;" (assignment_expression "iVar1 = param_1[7] + param_2 * 0xc" identifier = (binary_expression "param_1[7] + param_2 * 0xc" (subscript_expression "param_1[7]" identifier [ number_literal ]) + (binary_expression "param_2 * 0xc" identifier * number_literal))) ;) (expression_statement "local_24 = (void *)0x0;" (assignment_expression "local_24 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_54 = *(int *)(iVar1 + 4);" (assignment_expression "local_54 = *(int *)(iVar1 + 4)" identifier = (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (0 < local_54) {\n    iVar6 = 0;\n    do {\n      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);\n      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < local_54);\n    iVar6 = 0;\n    if (0 < local_54) {\n      do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));\n    }\n  }" if (parenthesized_expression "(0 < local_54)" ( (binary_expression "0 < local_54" number_literal < identifier) )) (compound_statement "{\n    iVar6 = 0;\n    do {\n      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);\n      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < local_54);\n    iVar6 = 0;\n    if (0 < local_54) {\n      do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));\n    }\n  }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);\n      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < local_54);" do (compound_statement "{\n      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);\n      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }\n      iVar6 = iVar6 + 1;\n    }" { (expression_statement "iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);" (assignment_expression "iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(iVar1 + 8) + iVar6 * 4)" * (cast_expression "(int *)(*(int *)(iVar1 + 8) + iVar6 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 8) + iVar6 * 4)" ( (binary_expression "*(int *)(iVar1 + 8) + iVar6 * 4" (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) + (binary_expression "iVar6 * 4" identifier * number_literal)) ))))) ;) (if_statement "if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }" if (parenthesized_expression "((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0))" ( (binary_expression "(param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)" (parenthesized_expression "(param_2 != iVar4)" ( (binary_expression "param_2 != iVar4" identifier != identifier) )) && (parenthesized_expression "((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)" ( (binary_expression "(*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0" (parenthesized_expression "(*(byte *)(*param_1 + 4 + iVar4 * 8) & 8)" ( (binary_expression "*(byte *)(*param_1 + 4 + iVar4 * 8) & 8" (pointer_expression "*(byte *)(*param_1 + 4 + iVar4 * 8)" * (cast_expression "(byte *)(*param_1 + 4 + iVar4 * 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 4 + iVar4 * 8)" ( (binary_expression "*param_1 + 4 + iVar4 * 8" (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) + (binary_expression "iVar4 * 8" identifier * number_literal)) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }" { (expression_statement "iVar5 = param_1[5] + iVar4 * 0xc;" (assignment_expression "iVar5 = param_1[5] + iVar4 * 0xc" identifier = (binary_expression "param_1[5] + iVar4 * 0xc" (subscript_expression "param_1[5]" identifier [ number_literal ]) + (binary_expression "iVar4 * 0xc" identifier * number_literal))) ;) (expression_statement "iVar3 = *(int *)(iVar5 + 8);" (assignment_expression "iVar3 = *(int *)(iVar5 + 8)" identifier = (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) ))))) ;) (expression_statement "iVar2 = FUN_0001dd20();" (assignment_expression "iVar2 = FUN_0001dd20()" identifier = (call_expression "FUN_0001dd20()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }" if (parenthesized_expression "(*(int *)(iVar5 + 4) < 2)" ( (binary_expression "*(int *)(iVar5 + 4) < 2" (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) )))) < number_literal) )) (compound_statement "{\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }" { (if_statement "if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }" { (expression_statement "iVar3 = FUN_0001dd20();" (assignment_expression "iVar3 = FUN_0001dd20()" identifier = (call_expression "FUN_0001dd20()" identifier (argument_list "()" ( )))) ;) (labeled_statement "joined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;" statement_identifier : (if_statement "if (iVar3 != 0) goto LAB_00020704;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00020704;" goto statement_identifier ;))) })) }) (else_clause "else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }" else (if_statement "if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }" if (parenthesized_expression "((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0))" ( (binary_expression "(iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar2 = FUN_0001dd20(), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_0001dd20(), iVar2 != 0" (assignment_expression "iVar2 = FUN_0001dd20()" identifier = (call_expression "FUN_0001dd20()" identifier (argument_list "()" ( )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }" { (labeled_statement "LAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);" statement_identifier : (expression_statement "iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);" (assignment_expression "iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7])" identifier = (call_expression "FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7])" identifier (argument_list "(&local_2c,param_4,iVar4 * 0xc + param_1[7])" ( (pointer_expression "&local_2c" & identifier) , identifier , (binary_expression "iVar4 * 0xc + param_1[7]" (binary_expression "iVar4 * 0xc" identifier * number_literal) + (subscript_expression "param_1[7]" identifier [ number_literal ])) )))) ;)) (if_statement "if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n            free(local_24);\n            goto LAB_0002088b;\n          }" { (expression_statement "free(local_24);" (call_expression "free(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (goto_statement "goto LAB_0002088b;" goto statement_identifier ;) })) (expression_statement "local_54 = *(int *)(iVar1 + 4);" (assignment_expression "local_54 = *(int *)(iVar1 + 4)" identifier = (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) }) (else_clause "else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }" else (if_statement "if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }" if (parenthesized_expression "((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0))" ( (binary_expression "(0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)" (parenthesized_expression "(0 < *(int *)(iVar3 + 4))" ( (binary_expression "0 < *(int *)(iVar3 + 4)" number_literal < (pointer_expression "*(int *)(iVar3 + 4)" * (cast_expression "(int *)(iVar3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) )) && (parenthesized_expression "(iVar3 = FUN_0001dd20(), iVar3 == 0)" ( (comma_expression "iVar3 = FUN_0001dd20(), iVar3 == 0" (assignment_expression "iVar3 = FUN_0001dd20()" identifier = (call_expression "FUN_0001dd20()" identifier (argument_list "()" ( )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }" { (expression_statement "iVar3 = FUN_0001dd20();" (assignment_expression "iVar3 = FUN_0001dd20()" identifier = (call_expression "FUN_0001dd20()" identifier (argument_list "()" ( )))) ;) (goto_statement "goto joined_r0x000207e8;" goto statement_identifier ;) })))))) })) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 < local_54)" ( (binary_expression "iVar6 < local_54" identifier < identifier) )) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (if_statement "if (0 < local_54) {\n      do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));\n    }" if (parenthesized_expression "(0 < local_54)" ( (binary_expression "0 < local_54" number_literal < identifier) )) (compound_statement "{\n      do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));\n    }" { (do_statement "do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));" do (compound_statement "{\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      }" { (expression_statement "iVar4 = FUN_0001dd20();" (assignment_expression "iVar4 = FUN_0001dd20()" identifier = (call_expression "FUN_0001dd20()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }" { (expression_statement "iVar4 = *(int *)(param_3 + 4);" (assignment_expression "iVar4 = *(int *)(param_3 + 4)" identifier = (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = FUN_0001dd20();" (assignment_expression "iVar3 = FUN_0001dd20()" identifier = (call_expression "FUN_0001dd20()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }" if (parenthesized_expression "((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4))" ( (binary_expression "(-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)" (parenthesized_expression "(-1 < iVar3 + -1)" ( (binary_expression "-1 < iVar3 + -1" number_literal < (binary_expression "iVar3 + -1" identifier + number_literal)) )) && (parenthesized_expression "(iVar3 + -1 < iVar4)" ( (binary_expression "iVar3 + -1 < iVar4" (binary_expression "iVar3 + -1" identifier + number_literal) < identifier) ))) )) (compound_statement "{\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }" { (expression_statement "*(int *)(param_3 + 4) = iVar4 + -1;" (assignment_expression "*(int *)(param_3 + 4) = iVar4 + -1" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "FUN_0001de70();" (call_expression "FUN_0001de70()" identifier (argument_list "()" ( ))) ;) })) })) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 < *(int *)(iVar1 + 4))" ( (binary_expression "iVar6 < *(int *)(iVar1 + 4)" identifier < (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) )) ;) })) })) (expression_statement "free(local_24);" (call_expression "free(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0002088b:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\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 iVar4;\n  }" { (return_statement "return iVar4;" return identifier ;) }))) comment (expression_statement "FUN_0002ca00();" (call_expression "FUN_0002ca00()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nreg_errcode_t __regparm3\nsub_epsilon_src_nodes(re_dfa_t *dfa,Idx node,re_node_set *dest_nodes,re_node_set *candidates)\n\n{\n  Idx **elem;\n  int iVar1;\n  re_node_set *prVar2;\n  int iVar3;\n  re_node_set *prVar4;\n  Idx *pIVar5;\n  Idx IVar6;\n  int iVar7;\n  re_node_set *prVar8;\n  reg_errcode_t rVar9;\n  re_node_set *set_1;\n  re_node_set *set_1_00;\n  int iVar10;\n  int in_GS_OFFSET;\n  re_node_set *local_54;\n  re_node_set except_nodes;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  prVar2 = dfa->inveclosures;\n  except_nodes.alloc = 0;\n  except_nodes.nelem = 0;\n  except_nodes.elems = (Idx *)0x0;\n  local_54 = (re_node_set *)prVar2[node].nelem;\n  if (0 < (int)local_54) {\n    iVar10 = 0;\n    elem = &dest_nodes->elems;\n    do {\n      iVar3 = prVar2[node].elems[iVar10];\n      if ((node != iVar3) && ((dfa->nodes[iVar3].field_0x4 & 8) != 0)) {\n        prVar4 = dfa->edests;\n        pIVar5 = prVar4[iVar3].elems;\n        prVar8 = (re_node_set *)*pIVar5;\n        IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar8);\n        if (prVar4[iVar3].nelem < 2) {\n          if (IVar6 == 0) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8);\njoined_r0x000207e8:\n            if (iVar7 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((IVar6 == 0) &&\n                (IVar6 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8),\n                IVar6 != 0)) {\nLAB_00020704:\n          rVar9 = re_node_set_add_intersect(&except_nodes,candidates,dfa->inveclosures + iVar3);\n          if (rVar9 != _REG_NOERROR) {\n            free(except_nodes.elems);\n            goto LAB_0002088b;\n          }\n          local_54 = (re_node_set *)prVar2[node].nelem;\n        }\n        else {\n          prVar4 = (re_node_set *)pIVar5[1];\n          if ((0 < (int)prVar4) &&\n             (IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4), IVar6 == 0)) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1);\n            goto joined_r0x000207e8;\n          }\n        }\n      }\n      iVar10 = iVar10 + 1;\n    } while (iVar10 < (int)local_54);\n    iVar10 = 0;\n    if (0 < (int)local_54) {\n      do {\n        IVar6 = re_node_set_contains\n                          ((re_node_set *)except_nodes.nelem,(Idx)&except_nodes.elems,\n                           (re_node_set *)prVar2[node].elems[iVar10]);\n        if (IVar6 == 0) {\n          prVar4 = (re_node_set *)dest_nodes->nelem;\n          IVar6 = re_node_set_contains(prVar4,(Idx)&dest_nodes->elems,set_1_00);\n          prVar8 = (re_node_set *)(IVar6 + -1);\n          if ((-1 < (int)prVar8) && ((int)prVar8 < (int)prVar4)) {\n            dest_nodes->nelem = (Idx)((int)&prVar4[-1].elems + 3);\n            re_node_set_remove_at((re_node_set *)&dest_nodes->nelem,(Idx)&dest_nodes->elems,prVar8);\n          }\n        }\n        iVar10 = iVar10 + 1;\n      } while (iVar10 < prVar2[node].nelem);\n    }\n  }\n  free(except_nodes.elems);\n  rVar9 = _REG_NOERROR;\nLAB_0002088b:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return rVar9;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "reg_errcode_t __regparm3\nsub_epsilon_src_nodes(re_dfa_t *dfa,Idx node,re_node_set *dest_nodes,re_node_set *candidates)\n\n{\n  Idx **elem;\n  int iVar1;\n  re_node_set *prVar2;\n  int iVar3;\n  re_node_set *prVar4;\n  Idx *pIVar5;\n  Idx IVar6;\n  int iVar7;\n  re_node_set *prVar8;\n  reg_errcode_t rVar9;\n  re_node_set *set_1;\n  re_node_set *set_1_00;\n  int iVar10;\n  int in_GS_OFFSET;\n  re_node_set *local_54;\n  re_node_set except_nodes;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  prVar2 = dfa->inveclosures;\n  except_nodes.alloc = 0;\n  except_nodes.nelem = 0;\n  except_nodes.elems = (Idx *)0x0;\n  local_54 = (re_node_set *)prVar2[node].nelem;\n  if (0 < (int)local_54) {\n    iVar10 = 0;\n    elem = &dest_nodes->elems;\n    do {\n      iVar3 = prVar2[node].elems[iVar10];\n      if ((node != iVar3) && ((dfa->nodes[iVar3].field_0x4 & 8) != 0)) {\n        prVar4 = dfa->edests;\n        pIVar5 = prVar4[iVar3].elems;\n        prVar8 = (re_node_set *)*pIVar5;\n        IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar8);\n        if (prVar4[iVar3].nelem < 2) {\n          if (IVar6 == 0) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8);\njoined_r0x000207e8:\n            if (iVar7 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((IVar6 == 0) &&\n                (IVar6 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8),\n                IVar6 != 0)) {\nLAB_00020704:\n          rVar9 = re_node_set_add_intersect(&except_nodes,candidates,dfa->inveclosures + iVar3);\n          if (rVar9 != _REG_NOERROR) {\n            free(except_nodes.elems);\n            goto LAB_0002088b;\n          }\n          local_54 = (re_node_set *)prVar2[node].nelem;\n        }\n        else {\n          prVar4 = (re_node_set *)pIVar5[1];\n          if ((0 < (int)prVar4) &&\n             (IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4), IVar6 == 0)) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1);\n            goto joined_r0x000207e8;\n          }\n        }\n      }\n      iVar10 = iVar10 + 1;\n    } while (iVar10 < (int)local_54);\n    iVar10 = 0;\n    if (0 < (int)local_54) {\n      do {\n        IVar6 = re_node_set_contains\n                          ((re_node_set *)except_nodes.nelem,(Idx)&except_nodes.elems,\n                           (re_node_set *)prVar2[node].elems[iVar10]);\n        if (IVar6 == 0) {\n          prVar4 = (re_node_set *)dest_nodes->nelem;\n          IVar6 = re_node_set_contains(prVar4,(Idx)&dest_nodes->elems,set_1_00);\n          prVar8 = (re_node_set *)(IVar6 + -1);\n          if ((-1 < (int)prVar8) && ((int)prVar8 < (int)prVar4)) {\n            dest_nodes->nelem = (Idx)((int)&prVar4[-1].elems + 3);\n            re_node_set_remove_at((re_node_set *)&dest_nodes->nelem,(Idx)&dest_nodes->elems,prVar8);\n          }\n        }\n        iVar10 = iVar10 + 1;\n      } while (iVar10 < prVar2[node].nelem);\n    }\n  }\n  free(except_nodes.elems);\n  rVar9 = _REG_NOERROR;\nLAB_0002088b:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return rVar9;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "sub_epsilon_src_nodes(re_dfa_t *dfa,Idx node,re_node_set *dest_nodes,re_node_set *candidates)" identifier (parameter_list "(re_dfa_t *dfa,Idx node,re_node_set *dest_nodes,re_node_set *candidates)" ( (parameter_declaration "re_dfa_t *dfa" type_identifier (pointer_declarator "*dfa" * identifier)) , (parameter_declaration "Idx node" type_identifier identifier) , (parameter_declaration "re_node_set *dest_nodes" type_identifier (pointer_declarator "*dest_nodes" * identifier)) , (parameter_declaration "re_node_set *candidates" type_identifier (pointer_declarator "*candidates" * identifier)) ))) (compound_statement "{\n  Idx **elem;\n  int iVar1;\n  re_node_set *prVar2;\n  int iVar3;\n  re_node_set *prVar4;\n  Idx *pIVar5;\n  Idx IVar6;\n  int iVar7;\n  re_node_set *prVar8;\n  reg_errcode_t rVar9;\n  re_node_set *set_1;\n  re_node_set *set_1_00;\n  int iVar10;\n  int in_GS_OFFSET;\n  re_node_set *local_54;\n  re_node_set except_nodes;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  prVar2 = dfa->inveclosures;\n  except_nodes.alloc = 0;\n  except_nodes.nelem = 0;\n  except_nodes.elems = (Idx *)0x0;\n  local_54 = (re_node_set *)prVar2[node].nelem;\n  if (0 < (int)local_54) {\n    iVar10 = 0;\n    elem = &dest_nodes->elems;\n    do {\n      iVar3 = prVar2[node].elems[iVar10];\n      if ((node != iVar3) && ((dfa->nodes[iVar3].field_0x4 & 8) != 0)) {\n        prVar4 = dfa->edests;\n        pIVar5 = prVar4[iVar3].elems;\n        prVar8 = (re_node_set *)*pIVar5;\n        IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar8);\n        if (prVar4[iVar3].nelem < 2) {\n          if (IVar6 == 0) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8);\njoined_r0x000207e8:\n            if (iVar7 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((IVar6 == 0) &&\n                (IVar6 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8),\n                IVar6 != 0)) {\nLAB_00020704:\n          rVar9 = re_node_set_add_intersect(&except_nodes,candidates,dfa->inveclosures + iVar3);\n          if (rVar9 != _REG_NOERROR) {\n            free(except_nodes.elems);\n            goto LAB_0002088b;\n          }\n          local_54 = (re_node_set *)prVar2[node].nelem;\n        }\n        else {\n          prVar4 = (re_node_set *)pIVar5[1];\n          if ((0 < (int)prVar4) &&\n             (IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4), IVar6 == 0)) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1);\n            goto joined_r0x000207e8;\n          }\n        }\n      }\n      iVar10 = iVar10 + 1;\n    } while (iVar10 < (int)local_54);\n    iVar10 = 0;\n    if (0 < (int)local_54) {\n      do {\n        IVar6 = re_node_set_contains\n                          ((re_node_set *)except_nodes.nelem,(Idx)&except_nodes.elems,\n                           (re_node_set *)prVar2[node].elems[iVar10]);\n        if (IVar6 == 0) {\n          prVar4 = (re_node_set *)dest_nodes->nelem;\n          IVar6 = re_node_set_contains(prVar4,(Idx)&dest_nodes->elems,set_1_00);\n          prVar8 = (re_node_set *)(IVar6 + -1);\n          if ((-1 < (int)prVar8) && ((int)prVar8 < (int)prVar4)) {\n            dest_nodes->nelem = (Idx)((int)&prVar4[-1].elems + 3);\n            re_node_set_remove_at((re_node_set *)&dest_nodes->nelem,(Idx)&dest_nodes->elems,prVar8);\n          }\n        }\n        iVar10 = iVar10 + 1;\n      } while (iVar10 < prVar2[node].nelem);\n    }\n  }\n  free(except_nodes.elems);\n  rVar9 = _REG_NOERROR;\nLAB_0002088b:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return rVar9;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "Idx **elem;" type_identifier (pointer_declarator "**elem" * (pointer_declarator "*elem" * identifier)) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "re_node_set *prVar2;" type_identifier (pointer_declarator "*prVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "re_node_set *prVar4;" type_identifier (pointer_declarator "*prVar4" * identifier) ;) (declaration "Idx *pIVar5;" type_identifier (pointer_declarator "*pIVar5" * identifier) ;) (declaration "Idx IVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "re_node_set *prVar8;" type_identifier (pointer_declarator "*prVar8" * identifier) ;) (declaration "reg_errcode_t rVar9;" type_identifier identifier ;) (declaration "re_node_set *set_1;" type_identifier (pointer_declarator "*set_1" * identifier) ;) (declaration "re_node_set *set_1_00;" type_identifier (pointer_declarator "*set_1_00" * identifier) ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "re_node_set *local_54;" type_identifier (pointer_declarator "*local_54" * identifier) ;) (declaration "re_node_set except_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 "prVar2 = dfa->inveclosures;" (assignment_expression "prVar2 = dfa->inveclosures" identifier = (field_expression "dfa->inveclosures" identifier -> field_identifier)) ;) (expression_statement "except_nodes.alloc = 0;" (assignment_expression "except_nodes.alloc = 0" (field_expression "except_nodes.alloc" identifier . field_identifier) = number_literal) ;) (expression_statement "except_nodes.nelem = 0;" (assignment_expression "except_nodes.nelem = 0" (field_expression "except_nodes.nelem" identifier . field_identifier) = number_literal) ;) (expression_statement "except_nodes.elems = (Idx *)0x0;" (assignment_expression "except_nodes.elems = (Idx *)0x0" (field_expression "except_nodes.elems" identifier . field_identifier) = (cast_expression "(Idx *)0x0" ( (type_descriptor "Idx *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_54 = (re_node_set *)prVar2[node].nelem;" (assignment_expression "local_54 = (re_node_set *)prVar2[node].nelem" identifier = (cast_expression "(re_node_set *)prVar2[node].nelem" ( (type_descriptor "re_node_set *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "prVar2[node].nelem" (subscript_expression "prVar2[node]" identifier [ identifier ]) . field_identifier))) ;) (if_statement "if (0 < (int)local_54) {\n    iVar10 = 0;\n    elem = &dest_nodes->elems;\n    do {\n      iVar3 = prVar2[node].elems[iVar10];\n      if ((node != iVar3) && ((dfa->nodes[iVar3].field_0x4 & 8) != 0)) {\n        prVar4 = dfa->edests;\n        pIVar5 = prVar4[iVar3].elems;\n        prVar8 = (re_node_set *)*pIVar5;\n        IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar8);\n        if (prVar4[iVar3].nelem < 2) {\n          if (IVar6 == 0) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8);\njoined_r0x000207e8:\n            if (iVar7 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((IVar6 == 0) &&\n                (IVar6 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8),\n                IVar6 != 0)) {\nLAB_00020704:\n          rVar9 = re_node_set_add_intersect(&except_nodes,candidates,dfa->inveclosures + iVar3);\n          if (rVar9 != _REG_NOERROR) {\n            free(except_nodes.elems);\n            goto LAB_0002088b;\n          }\n          local_54 = (re_node_set *)prVar2[node].nelem;\n        }\n        else {\n          prVar4 = (re_node_set *)pIVar5[1];\n          if ((0 < (int)prVar4) &&\n             (IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4), IVar6 == 0)) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1);\n            goto joined_r0x000207e8;\n          }\n        }\n      }\n      iVar10 = iVar10 + 1;\n    } while (iVar10 < (int)local_54);\n    iVar10 = 0;\n    if (0 < (int)local_54) {\n      do {\n        IVar6 = re_node_set_contains\n                          ((re_node_set *)except_nodes.nelem,(Idx)&except_nodes.elems,\n                           (re_node_set *)prVar2[node].elems[iVar10]);\n        if (IVar6 == 0) {\n          prVar4 = (re_node_set *)dest_nodes->nelem;\n          IVar6 = re_node_set_contains(prVar4,(Idx)&dest_nodes->elems,set_1_00);\n          prVar8 = (re_node_set *)(IVar6 + -1);\n          if ((-1 < (int)prVar8) && ((int)prVar8 < (int)prVar4)) {\n            dest_nodes->nelem = (Idx)((int)&prVar4[-1].elems + 3);\n            re_node_set_remove_at((re_node_set *)&dest_nodes->nelem,(Idx)&dest_nodes->elems,prVar8);\n          }\n        }\n        iVar10 = iVar10 + 1;\n      } while (iVar10 < prVar2[node].nelem);\n    }\n  }" if (parenthesized_expression "(0 < (int)local_54)" ( (binary_expression "0 < (int)local_54" number_literal < (cast_expression "(int)local_54" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    iVar10 = 0;\n    elem = &dest_nodes->elems;\n    do {\n      iVar3 = prVar2[node].elems[iVar10];\n      if ((node != iVar3) && ((dfa->nodes[iVar3].field_0x4 & 8) != 0)) {\n        prVar4 = dfa->edests;\n        pIVar5 = prVar4[iVar3].elems;\n        prVar8 = (re_node_set *)*pIVar5;\n        IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar8);\n        if (prVar4[iVar3].nelem < 2) {\n          if (IVar6 == 0) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8);\njoined_r0x000207e8:\n            if (iVar7 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((IVar6 == 0) &&\n                (IVar6 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8),\n                IVar6 != 0)) {\nLAB_00020704:\n          rVar9 = re_node_set_add_intersect(&except_nodes,candidates,dfa->inveclosures + iVar3);\n          if (rVar9 != _REG_NOERROR) {\n            free(except_nodes.elems);\n            goto LAB_0002088b;\n          }\n          local_54 = (re_node_set *)prVar2[node].nelem;\n        }\n        else {\n          prVar4 = (re_node_set *)pIVar5[1];\n          if ((0 < (int)prVar4) &&\n             (IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4), IVar6 == 0)) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1);\n            goto joined_r0x000207e8;\n          }\n        }\n      }\n      iVar10 = iVar10 + 1;\n    } while (iVar10 < (int)local_54);\n    iVar10 = 0;\n    if (0 < (int)local_54) {\n      do {\n        IVar6 = re_node_set_contains\n                          ((re_node_set *)except_nodes.nelem,(Idx)&except_nodes.elems,\n                           (re_node_set *)prVar2[node].elems[iVar10]);\n        if (IVar6 == 0) {\n          prVar4 = (re_node_set *)dest_nodes->nelem;\n          IVar6 = re_node_set_contains(prVar4,(Idx)&dest_nodes->elems,set_1_00);\n          prVar8 = (re_node_set *)(IVar6 + -1);\n          if ((-1 < (int)prVar8) && ((int)prVar8 < (int)prVar4)) {\n            dest_nodes->nelem = (Idx)((int)&prVar4[-1].elems + 3);\n            re_node_set_remove_at((re_node_set *)&dest_nodes->nelem,(Idx)&dest_nodes->elems,prVar8);\n          }\n        }\n        iVar10 = iVar10 + 1;\n      } while (iVar10 < prVar2[node].nelem);\n    }\n  }" { (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "elem = &dest_nodes->elems;" (assignment_expression "elem = &dest_nodes->elems" identifier = (pointer_expression "&dest_nodes->elems" & (field_expression "dest_nodes->elems" identifier -> field_identifier))) ;) (do_statement "do {\n      iVar3 = prVar2[node].elems[iVar10];\n      if ((node != iVar3) && ((dfa->nodes[iVar3].field_0x4 & 8) != 0)) {\n        prVar4 = dfa->edests;\n        pIVar5 = prVar4[iVar3].elems;\n        prVar8 = (re_node_set *)*pIVar5;\n        IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar8);\n        if (prVar4[iVar3].nelem < 2) {\n          if (IVar6 == 0) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8);\njoined_r0x000207e8:\n            if (iVar7 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((IVar6 == 0) &&\n                (IVar6 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8),\n                IVar6 != 0)) {\nLAB_00020704:\n          rVar9 = re_node_set_add_intersect(&except_nodes,candidates,dfa->inveclosures + iVar3);\n          if (rVar9 != _REG_NOERROR) {\n            free(except_nodes.elems);\n            goto LAB_0002088b;\n          }\n          local_54 = (re_node_set *)prVar2[node].nelem;\n        }\n        else {\n          prVar4 = (re_node_set *)pIVar5[1];\n          if ((0 < (int)prVar4) &&\n             (IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4), IVar6 == 0)) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1);\n            goto joined_r0x000207e8;\n          }\n        }\n      }\n      iVar10 = iVar10 + 1;\n    } while (iVar10 < (int)local_54);" do (compound_statement "{\n      iVar3 = prVar2[node].elems[iVar10];\n      if ((node != iVar3) && ((dfa->nodes[iVar3].field_0x4 & 8) != 0)) {\n        prVar4 = dfa->edests;\n        pIVar5 = prVar4[iVar3].elems;\n        prVar8 = (re_node_set *)*pIVar5;\n        IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar8);\n        if (prVar4[iVar3].nelem < 2) {\n          if (IVar6 == 0) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8);\njoined_r0x000207e8:\n            if (iVar7 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((IVar6 == 0) &&\n                (IVar6 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8),\n                IVar6 != 0)) {\nLAB_00020704:\n          rVar9 = re_node_set_add_intersect(&except_nodes,candidates,dfa->inveclosures + iVar3);\n          if (rVar9 != _REG_NOERROR) {\n            free(except_nodes.elems);\n            goto LAB_0002088b;\n          }\n          local_54 = (re_node_set *)prVar2[node].nelem;\n        }\n        else {\n          prVar4 = (re_node_set *)pIVar5[1];\n          if ((0 < (int)prVar4) &&\n             (IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4), IVar6 == 0)) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1);\n            goto joined_r0x000207e8;\n          }\n        }\n      }\n      iVar10 = iVar10 + 1;\n    }" { (expression_statement "iVar3 = prVar2[node].elems[iVar10];" (assignment_expression "iVar3 = prVar2[node].elems[iVar10]" identifier = (subscript_expression "prVar2[node].elems[iVar10]" (field_expression "prVar2[node].elems" (subscript_expression "prVar2[node]" identifier [ identifier ]) . field_identifier) [ identifier ])) ;) (if_statement "if ((node != iVar3) && ((dfa->nodes[iVar3].field_0x4 & 8) != 0)) {\n        prVar4 = dfa->edests;\n        pIVar5 = prVar4[iVar3].elems;\n        prVar8 = (re_node_set *)*pIVar5;\n        IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar8);\n        if (prVar4[iVar3].nelem < 2) {\n          if (IVar6 == 0) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8);\njoined_r0x000207e8:\n            if (iVar7 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((IVar6 == 0) &&\n                (IVar6 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8),\n                IVar6 != 0)) {\nLAB_00020704:\n          rVar9 = re_node_set_add_intersect(&except_nodes,candidates,dfa->inveclosures + iVar3);\n          if (rVar9 != _REG_NOERROR) {\n            free(except_nodes.elems);\n            goto LAB_0002088b;\n          }\n          local_54 = (re_node_set *)prVar2[node].nelem;\n        }\n        else {\n          prVar4 = (re_node_set *)pIVar5[1];\n          if ((0 < (int)prVar4) &&\n             (IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4), IVar6 == 0)) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1);\n            goto joined_r0x000207e8;\n          }\n        }\n      }" if (parenthesized_expression "((node != iVar3) && ((dfa->nodes[iVar3].field_0x4 & 8) != 0))" ( (binary_expression "(node != iVar3) && ((dfa->nodes[iVar3].field_0x4 & 8) != 0)" (parenthesized_expression "(node != iVar3)" ( (binary_expression "node != iVar3" identifier != identifier) )) && (parenthesized_expression "((dfa->nodes[iVar3].field_0x4 & 8) != 0)" ( (binary_expression "(dfa->nodes[iVar3].field_0x4 & 8) != 0" (parenthesized_expression "(dfa->nodes[iVar3].field_0x4 & 8)" ( (binary_expression "dfa->nodes[iVar3].field_0x4 & 8" (field_expression "dfa->nodes[iVar3].field_0x4" (subscript_expression "dfa->nodes[iVar3]" (field_expression "dfa->nodes" identifier -> field_identifier) [ identifier ]) . field_identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        prVar4 = dfa->edests;\n        pIVar5 = prVar4[iVar3].elems;\n        prVar8 = (re_node_set *)*pIVar5;\n        IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar8);\n        if (prVar4[iVar3].nelem < 2) {\n          if (IVar6 == 0) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8);\njoined_r0x000207e8:\n            if (iVar7 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((IVar6 == 0) &&\n                (IVar6 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8),\n                IVar6 != 0)) {\nLAB_00020704:\n          rVar9 = re_node_set_add_intersect(&except_nodes,candidates,dfa->inveclosures + iVar3);\n          if (rVar9 != _REG_NOERROR) {\n            free(except_nodes.elems);\n            goto LAB_0002088b;\n          }\n          local_54 = (re_node_set *)prVar2[node].nelem;\n        }\n        else {\n          prVar4 = (re_node_set *)pIVar5[1];\n          if ((0 < (int)prVar4) &&\n             (IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4), IVar6 == 0)) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1);\n            goto joined_r0x000207e8;\n          }\n        }\n      }" { (expression_statement "prVar4 = dfa->edests;" (assignment_expression "prVar4 = dfa->edests" identifier = (field_expression "dfa->edests" identifier -> field_identifier)) ;) (expression_statement "pIVar5 = prVar4[iVar3].elems;" (assignment_expression "pIVar5 = prVar4[iVar3].elems" identifier = (field_expression "prVar4[iVar3].elems" (subscript_expression "prVar4[iVar3]" identifier [ identifier ]) . field_identifier)) ;) (expression_statement "prVar8 = (re_node_set *)*pIVar5;" (assignment_expression "prVar8 = (re_node_set *)*pIVar5" identifier = (cast_expression "(re_node_set *)*pIVar5" ( (type_descriptor "re_node_set *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pIVar5" * identifier))) ;) (expression_statement "IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar8);" (assignment_expression "IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar8)" identifier = (call_expression "re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar8)" identifier (argument_list "(local_54,(Idx)&prVar2[node].elems,prVar8)" ( identifier , (binary_expression "(Idx)&prVar2[node].elems" (parenthesized_expression "(Idx)" ( identifier )) & (field_expression "prVar2[node].elems" (subscript_expression "prVar2[node]" identifier [ identifier ]) . field_identifier)) , identifier )))) ;) (if_statement "if (prVar4[iVar3].nelem < 2) {\n          if (IVar6 == 0) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8);\njoined_r0x000207e8:\n            if (iVar7 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((IVar6 == 0) &&\n                (IVar6 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8),\n                IVar6 != 0)) {\nLAB_00020704:\n          rVar9 = re_node_set_add_intersect(&except_nodes,candidates,dfa->inveclosures + iVar3);\n          if (rVar9 != _REG_NOERROR) {\n            free(except_nodes.elems);\n            goto LAB_0002088b;\n          }\n          local_54 = (re_node_set *)prVar2[node].nelem;\n        }\n        else {\n          prVar4 = (re_node_set *)pIVar5[1];\n          if ((0 < (int)prVar4) &&\n             (IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4), IVar6 == 0)) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1);\n            goto joined_r0x000207e8;\n          }\n        }" if (parenthesized_expression "(prVar4[iVar3].nelem < 2)" ( (binary_expression "prVar4[iVar3].nelem < 2" (field_expression "prVar4[iVar3].nelem" (subscript_expression "prVar4[iVar3]" identifier [ identifier ]) . field_identifier) < number_literal) )) (compound_statement "{\n          if (IVar6 == 0) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8);\njoined_r0x000207e8:\n            if (iVar7 != 0) goto LAB_00020704;\n          }\n        }" { (if_statement "if (IVar6 == 0) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8);\njoined_r0x000207e8:\n            if (iVar7 != 0) goto LAB_00020704;\n          }" if (parenthesized_expression "(IVar6 == 0)" ( (binary_expression "IVar6 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8);\njoined_r0x000207e8:\n            if (iVar7 != 0) goto LAB_00020704;\n          }" { (expression_statement "iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8);" (assignment_expression "iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8)" identifier = (call_expression "re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8)" identifier (argument_list "((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8)" ( (cast_expression "(re_node_set *)dest_nodes->nelem" ( (type_descriptor "re_node_set *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "dest_nodes->nelem" identifier -> field_identifier)) , (cast_expression "(Idx)elem" ( (type_descriptor "Idx" type_identifier) ) identifier) , identifier )))) ;) (labeled_statement "joined_r0x000207e8:\n            if (iVar7 != 0) goto LAB_00020704;" statement_identifier : (if_statement "if (iVar7 != 0) goto LAB_00020704;" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00020704;" goto statement_identifier ;))) })) }) (else_clause "else if ((IVar6 == 0) &&\n                (IVar6 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8),\n                IVar6 != 0)) {\nLAB_00020704:\n          rVar9 = re_node_set_add_intersect(&except_nodes,candidates,dfa->inveclosures + iVar3);\n          if (rVar9 != _REG_NOERROR) {\n            free(except_nodes.elems);\n            goto LAB_0002088b;\n          }\n          local_54 = (re_node_set *)prVar2[node].nelem;\n        }\n        else {\n          prVar4 = (re_node_set *)pIVar5[1];\n          if ((0 < (int)prVar4) &&\n             (IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4), IVar6 == 0)) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1);\n            goto joined_r0x000207e8;\n          }\n        }" else (if_statement "if ((IVar6 == 0) &&\n                (IVar6 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8),\n                IVar6 != 0)) {\nLAB_00020704:\n          rVar9 = re_node_set_add_intersect(&except_nodes,candidates,dfa->inveclosures + iVar3);\n          if (rVar9 != _REG_NOERROR) {\n            free(except_nodes.elems);\n            goto LAB_0002088b;\n          }\n          local_54 = (re_node_set *)prVar2[node].nelem;\n        }\n        else {\n          prVar4 = (re_node_set *)pIVar5[1];\n          if ((0 < (int)prVar4) &&\n             (IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4), IVar6 == 0)) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1);\n            goto joined_r0x000207e8;\n          }\n        }" if (parenthesized_expression "((IVar6 == 0) &&\n                (IVar6 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8),\n                IVar6 != 0))" ( (binary_expression "(IVar6 == 0) &&\n                (IVar6 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8),\n                IVar6 != 0)" (parenthesized_expression "(IVar6 == 0)" ( (binary_expression "IVar6 == 0" identifier == number_literal) )) && (parenthesized_expression "(IVar6 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8),\n                IVar6 != 0)" ( (comma_expression "IVar6 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8),\n                IVar6 != 0" (assignment_expression "IVar6 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8)" identifier = (call_expression "re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8)" identifier (argument_list "((re_node_set *)dest_nodes->nelem,(Idx)elem,prVar8)" ( (cast_expression "(re_node_set *)dest_nodes->nelem" ( (type_descriptor "re_node_set *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "dest_nodes->nelem" identifier -> field_identifier)) , (cast_expression "(Idx)elem" ( (type_descriptor "Idx" type_identifier) ) identifier) , identifier )))) , (binary_expression "IVar6 != 0" identifier != number_literal)) ))) )) (compound_statement "{\nLAB_00020704:\n          rVar9 = re_node_set_add_intersect(&except_nodes,candidates,dfa->inveclosures + iVar3);\n          if (rVar9 != _REG_NOERROR) {\n            free(except_nodes.elems);\n            goto LAB_0002088b;\n          }\n          local_54 = (re_node_set *)prVar2[node].nelem;\n        }" { (labeled_statement "LAB_00020704:\n          rVar9 = re_node_set_add_intersect(&except_nodes,candidates,dfa->inveclosures + iVar3);" statement_identifier : (expression_statement "rVar9 = re_node_set_add_intersect(&except_nodes,candidates,dfa->inveclosures + iVar3);" (assignment_expression "rVar9 = re_node_set_add_intersect(&except_nodes,candidates,dfa->inveclosures + iVar3)" identifier = (call_expression "re_node_set_add_intersect(&except_nodes,candidates,dfa->inveclosures + iVar3)" identifier (argument_list "(&except_nodes,candidates,dfa->inveclosures + iVar3)" ( (pointer_expression "&except_nodes" & identifier) , identifier , (binary_expression "dfa->inveclosures + iVar3" (field_expression "dfa->inveclosures" identifier -> field_identifier) + identifier) )))) ;)) (if_statement "if (rVar9 != _REG_NOERROR) {\n            free(except_nodes.elems);\n            goto LAB_0002088b;\n          }" if (parenthesized_expression "(rVar9 != _REG_NOERROR)" ( (binary_expression "rVar9 != _REG_NOERROR" identifier != identifier) )) (compound_statement "{\n            free(except_nodes.elems);\n            goto LAB_0002088b;\n          }" { (expression_statement "free(except_nodes.elems);" (call_expression "free(except_nodes.elems)" identifier (argument_list "(except_nodes.elems)" ( (field_expression "except_nodes.elems" identifier . field_identifier) ))) ;) (goto_statement "goto LAB_0002088b;" goto statement_identifier ;) })) (expression_statement "local_54 = (re_node_set *)prVar2[node].nelem;" (assignment_expression "local_54 = (re_node_set *)prVar2[node].nelem" identifier = (cast_expression "(re_node_set *)prVar2[node].nelem" ( (type_descriptor "re_node_set *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "prVar2[node].nelem" (subscript_expression "prVar2[node]" identifier [ identifier ]) . field_identifier))) ;) }) (else_clause "else {\n          prVar4 = (re_node_set *)pIVar5[1];\n          if ((0 < (int)prVar4) &&\n             (IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4), IVar6 == 0)) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1);\n            goto joined_r0x000207e8;\n          }\n        }" else (compound_statement "{\n          prVar4 = (re_node_set *)pIVar5[1];\n          if ((0 < (int)prVar4) &&\n             (IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4), IVar6 == 0)) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1);\n            goto joined_r0x000207e8;\n          }\n        }" { (expression_statement "prVar4 = (re_node_set *)pIVar5[1];" (assignment_expression "prVar4 = (re_node_set *)pIVar5[1]" identifier = (cast_expression "(re_node_set *)pIVar5[1]" ( (type_descriptor "re_node_set *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "pIVar5[1]" identifier [ number_literal ]))) ;) (if_statement "if ((0 < (int)prVar4) &&\n             (IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4), IVar6 == 0)) {\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1);\n            goto joined_r0x000207e8;\n          }" if (parenthesized_expression "((0 < (int)prVar4) &&\n             (IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4), IVar6 == 0))" ( (binary_expression "(0 < (int)prVar4) &&\n             (IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4), IVar6 == 0)" (parenthesized_expression "(0 < (int)prVar4)" ( (binary_expression "0 < (int)prVar4" number_literal < (cast_expression "(int)prVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4), IVar6 == 0)" ( (comma_expression "IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4), IVar6 == 0" (assignment_expression "IVar6 = re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4)" identifier = (call_expression "re_node_set_contains(local_54,(Idx)&prVar2[node].elems,prVar4)" identifier (argument_list "(local_54,(Idx)&prVar2[node].elems,prVar4)" ( identifier , (binary_expression "(Idx)&prVar2[node].elems" (parenthesized_expression "(Idx)" ( identifier )) & (field_expression "prVar2[node].elems" (subscript_expression "prVar2[node]" identifier [ identifier ]) . field_identifier)) , identifier )))) , (binary_expression "IVar6 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n            iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1);\n            goto joined_r0x000207e8;\n          }" { (expression_statement "iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1);" (assignment_expression "iVar7 = re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1)" identifier = (call_expression "re_node_set_contains((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1)" identifier (argument_list "((re_node_set *)dest_nodes->nelem,(Idx)elem,set_1)" ( (cast_expression "(re_node_set *)dest_nodes->nelem" ( (type_descriptor "re_node_set *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "dest_nodes->nelem" identifier -> field_identifier)) , (cast_expression "(Idx)elem" ( (type_descriptor "Idx" type_identifier) ) identifier) , identifier )))) ;) (goto_statement "goto joined_r0x000207e8;" goto statement_identifier ;) })) }))))) })) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar10 < (int)local_54)" ( (binary_expression "iVar10 < (int)local_54" identifier < (cast_expression "(int)local_54" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (if_statement "if (0 < (int)local_54) {\n      do {\n        IVar6 = re_node_set_contains\n                          ((re_node_set *)except_nodes.nelem,(Idx)&except_nodes.elems,\n                           (re_node_set *)prVar2[node].elems[iVar10]);\n        if (IVar6 == 0) {\n          prVar4 = (re_node_set *)dest_nodes->nelem;\n          IVar6 = re_node_set_contains(prVar4,(Idx)&dest_nodes->elems,set_1_00);\n          prVar8 = (re_node_set *)(IVar6 + -1);\n          if ((-1 < (int)prVar8) && ((int)prVar8 < (int)prVar4)) {\n            dest_nodes->nelem = (Idx)((int)&prVar4[-1].elems + 3);\n            re_node_set_remove_at((re_node_set *)&dest_nodes->nelem,(Idx)&dest_nodes->elems,prVar8);\n          }\n        }\n        iVar10 = iVar10 + 1;\n      } while (iVar10 < prVar2[node].nelem);\n    }" if (parenthesized_expression "(0 < (int)local_54)" ( (binary_expression "0 < (int)local_54" number_literal < (cast_expression "(int)local_54" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      do {\n        IVar6 = re_node_set_contains\n                          ((re_node_set *)except_nodes.nelem,(Idx)&except_nodes.elems,\n                           (re_node_set *)prVar2[node].elems[iVar10]);\n        if (IVar6 == 0) {\n          prVar4 = (re_node_set *)dest_nodes->nelem;\n          IVar6 = re_node_set_contains(prVar4,(Idx)&dest_nodes->elems,set_1_00);\n          prVar8 = (re_node_set *)(IVar6 + -1);\n          if ((-1 < (int)prVar8) && ((int)prVar8 < (int)prVar4)) {\n            dest_nodes->nelem = (Idx)((int)&prVar4[-1].elems + 3);\n            re_node_set_remove_at((re_node_set *)&dest_nodes->nelem,(Idx)&dest_nodes->elems,prVar8);\n          }\n        }\n        iVar10 = iVar10 + 1;\n      } while (iVar10 < prVar2[node].nelem);\n    }" { (do_statement "do {\n        IVar6 = re_node_set_contains\n                          ((re_node_set *)except_nodes.nelem,(Idx)&except_nodes.elems,\n                           (re_node_set *)prVar2[node].elems[iVar10]);\n        if (IVar6 == 0) {\n          prVar4 = (re_node_set *)dest_nodes->nelem;\n          IVar6 = re_node_set_contains(prVar4,(Idx)&dest_nodes->elems,set_1_00);\n          prVar8 = (re_node_set *)(IVar6 + -1);\n          if ((-1 < (int)prVar8) && ((int)prVar8 < (int)prVar4)) {\n            dest_nodes->nelem = (Idx)((int)&prVar4[-1].elems + 3);\n            re_node_set_remove_at((re_node_set *)&dest_nodes->nelem,(Idx)&dest_nodes->elems,prVar8);\n          }\n        }\n        iVar10 = iVar10 + 1;\n      } while (iVar10 < prVar2[node].nelem);" do (compound_statement "{\n        IVar6 = re_node_set_contains\n                          ((re_node_set *)except_nodes.nelem,(Idx)&except_nodes.elems,\n                           (re_node_set *)prVar2[node].elems[iVar10]);\n        if (IVar6 == 0) {\n          prVar4 = (re_node_set *)dest_nodes->nelem;\n          IVar6 = re_node_set_contains(prVar4,(Idx)&dest_nodes->elems,set_1_00);\n          prVar8 = (re_node_set *)(IVar6 + -1);\n          if ((-1 < (int)prVar8) && ((int)prVar8 < (int)prVar4)) {\n            dest_nodes->nelem = (Idx)((int)&prVar4[-1].elems + 3);\n            re_node_set_remove_at((re_node_set *)&dest_nodes->nelem,(Idx)&dest_nodes->elems,prVar8);\n          }\n        }\n        iVar10 = iVar10 + 1;\n      }" { (expression_statement "IVar6 = re_node_set_contains\n                          ((re_node_set *)except_nodes.nelem,(Idx)&except_nodes.elems,\n                           (re_node_set *)prVar2[node].elems[iVar10]);" (assignment_expression "IVar6 = re_node_set_contains\n                          ((re_node_set *)except_nodes.nelem,(Idx)&except_nodes.elems,\n                           (re_node_set *)prVar2[node].elems[iVar10])" identifier = (call_expression "re_node_set_contains\n                          ((re_node_set *)except_nodes.nelem,(Idx)&except_nodes.elems,\n                           (re_node_set *)prVar2[node].elems[iVar10])" identifier (argument_list "((re_node_set *)except_nodes.nelem,(Idx)&except_nodes.elems,\n                           (re_node_set *)prVar2[node].elems[iVar10])" ( (cast_expression "(re_node_set *)except_nodes.nelem" ( (type_descriptor "re_node_set *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "except_nodes.nelem" identifier . field_identifier)) , (binary_expression "(Idx)&except_nodes.elems" (parenthesized_expression "(Idx)" ( identifier )) & (field_expression "except_nodes.elems" identifier . field_identifier)) , (cast_expression "(re_node_set *)prVar2[node].elems[iVar10]" ( (type_descriptor "re_node_set *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "prVar2[node].elems[iVar10]" (field_expression "prVar2[node].elems" (subscript_expression "prVar2[node]" identifier [ identifier ]) . field_identifier) [ identifier ])) )))) ;) (if_statement "if (IVar6 == 0) {\n          prVar4 = (re_node_set *)dest_nodes->nelem;\n          IVar6 = re_node_set_contains(prVar4,(Idx)&dest_nodes->elems,set_1_00);\n          prVar8 = (re_node_set *)(IVar6 + -1);\n          if ((-1 < (int)prVar8) && ((int)prVar8 < (int)prVar4)) {\n            dest_nodes->nelem = (Idx)((int)&prVar4[-1].elems + 3);\n            re_node_set_remove_at((re_node_set *)&dest_nodes->nelem,(Idx)&dest_nodes->elems,prVar8);\n          }\n        }" if (parenthesized_expression "(IVar6 == 0)" ( (binary_expression "IVar6 == 0" identifier == number_literal) )) (compound_statement "{\n          prVar4 = (re_node_set *)dest_nodes->nelem;\n          IVar6 = re_node_set_contains(prVar4,(Idx)&dest_nodes->elems,set_1_00);\n          prVar8 = (re_node_set *)(IVar6 + -1);\n          if ((-1 < (int)prVar8) && ((int)prVar8 < (int)prVar4)) {\n            dest_nodes->nelem = (Idx)((int)&prVar4[-1].elems + 3);\n            re_node_set_remove_at((re_node_set *)&dest_nodes->nelem,(Idx)&dest_nodes->elems,prVar8);\n          }\n        }" { (expression_statement "prVar4 = (re_node_set *)dest_nodes->nelem;" (assignment_expression "prVar4 = (re_node_set *)dest_nodes->nelem" identifier = (cast_expression "(re_node_set *)dest_nodes->nelem" ( (type_descriptor "re_node_set *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "dest_nodes->nelem" identifier -> field_identifier))) ;) (expression_statement "IVar6 = re_node_set_contains(prVar4,(Idx)&dest_nodes->elems,set_1_00);" (assignment_expression "IVar6 = re_node_set_contains(prVar4,(Idx)&dest_nodes->elems,set_1_00)" identifier = (call_expression "re_node_set_contains(prVar4,(Idx)&dest_nodes->elems,set_1_00)" identifier (argument_list "(prVar4,(Idx)&dest_nodes->elems,set_1_00)" ( identifier , (binary_expression "(Idx)&dest_nodes->elems" (parenthesized_expression "(Idx)" ( identifier )) & (field_expression "dest_nodes->elems" identifier -> field_identifier)) , identifier )))) ;) (expression_statement "prVar8 = (re_node_set *)(IVar6 + -1);" (assignment_expression "prVar8 = (re_node_set *)(IVar6 + -1)" identifier = (cast_expression "(re_node_set *)(IVar6 + -1)" ( (type_descriptor "re_node_set *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(IVar6 + -1)" ( (binary_expression "IVar6 + -1" identifier + number_literal) )))) ;) (if_statement "if ((-1 < (int)prVar8) && ((int)prVar8 < (int)prVar4)) {\n            dest_nodes->nelem = (Idx)((int)&prVar4[-1].elems + 3);\n            re_node_set_remove_at((re_node_set *)&dest_nodes->nelem,(Idx)&dest_nodes->elems,prVar8);\n          }" if (parenthesized_expression "((-1 < (int)prVar8) && ((int)prVar8 < (int)prVar4))" ( (binary_expression "(-1 < (int)prVar8) && ((int)prVar8 < (int)prVar4)" (parenthesized_expression "(-1 < (int)prVar8)" ( (binary_expression "-1 < (int)prVar8" number_literal < (cast_expression "(int)prVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "((int)prVar8 < (int)prVar4)" ( (binary_expression "(int)prVar8 < (int)prVar4" (cast_expression "(int)prVar8" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)prVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )) (compound_statement "{\n            dest_nodes->nelem = (Idx)((int)&prVar4[-1].elems + 3);\n            re_node_set_remove_at((re_node_set *)&dest_nodes->nelem,(Idx)&dest_nodes->elems,prVar8);\n          }" { (expression_statement "dest_nodes->nelem = (Idx)((int)&prVar4[-1].elems + 3);" (assignment_expression "dest_nodes->nelem = (Idx)((int)&prVar4[-1].elems + 3)" (field_expression "dest_nodes->nelem" identifier -> field_identifier) = (call_expression "(Idx)((int)&prVar4[-1].elems + 3)" (parenthesized_expression "(Idx)" ( identifier )) (argument_list "((int)&prVar4[-1].elems + 3)" ( (binary_expression "(int)&prVar4[-1].elems + 3" (cast_expression "(int)&prVar4[-1].elems" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&prVar4[-1].elems" & (field_expression "prVar4[-1].elems" (subscript_expression "prVar4[-1]" identifier [ number_literal ]) . field_identifier))) + number_literal) )))) ;) (expression_statement "re_node_set_remove_at((re_node_set *)&dest_nodes->nelem,(Idx)&dest_nodes->elems,prVar8);" (call_expression "re_node_set_remove_at((re_node_set *)&dest_nodes->nelem,(Idx)&dest_nodes->elems,prVar8)" identifier (argument_list "((re_node_set *)&dest_nodes->nelem,(Idx)&dest_nodes->elems,prVar8)" ( (cast_expression "(re_node_set *)&dest_nodes->nelem" ( (type_descriptor "re_node_set *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&dest_nodes->nelem" & (field_expression "dest_nodes->nelem" identifier -> field_identifier))) , (binary_expression "(Idx)&dest_nodes->elems" (parenthesized_expression "(Idx)" ( identifier )) & (field_expression "dest_nodes->elems" identifier -> field_identifier)) , identifier ))) ;) })) })) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar10 < prVar2[node].nelem)" ( (binary_expression "iVar10 < prVar2[node].nelem" identifier < (field_expression "prVar2[node].nelem" (subscript_expression "prVar2[node]" identifier [ identifier ]) . field_identifier)) )) ;) })) })) (expression_statement "free(except_nodes.elems);" (call_expression "free(except_nodes.elems)" identifier (argument_list "(except_nodes.elems)" ( (field_expression "except_nodes.elems" identifier . field_identifier) ))) ;) (expression_statement "rVar9 = _REG_NOERROR;" (assignment_expression "rVar9 = _REG_NOERROR" identifier = identifier) ;) (labeled_statement "LAB_0002088b:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return rVar9;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return rVar9;\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 rVar9;\n  }" { (return_statement "return rVar9;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int __regparm3 FUN_00020660(int *param_1,int param_2,int param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  int local_54;\n  undefined4 local_2c;\n  undefined4 local_28;\n  void *local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_2c = 0;\n  local_28 = 0;\n  iVar1 = param_1[7] + param_2 * 0xc;\n  local_24 = (void *)0x0;\n  local_54 = *(int *)(iVar1 + 4);\n  if (0 < local_54) {\n    iVar6 = 0;\n    do {\n      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);\n      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < local_54);\n    iVar6 = 0;\n    if (0 < local_54) {\n      do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));\n    }\n  }\n  free(local_24);\n  iVar4 = 0;\nLAB_0002088b:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    \n  FUN_0002ca00();\n}\n\n" (function_definition "int __regparm3 FUN_00020660(int *param_1,int param_2,int param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  int local_54;\n  undefined4 local_2c;\n  undefined4 local_28;\n  void *local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_2c = 0;\n  local_28 = 0;\n  iVar1 = param_1[7] + param_2 * 0xc;\n  local_24 = (void *)0x0;\n  local_54 = *(int *)(iVar1 + 4);\n  if (0 < local_54) {\n    iVar6 = 0;\n    do {\n      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);\n      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < local_54);\n    iVar6 = 0;\n    if (0 < local_54) {\n      do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));\n    }\n  }\n  free(local_24);\n  iVar4 = 0;\nLAB_0002088b:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    \n  FUN_0002ca00();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00020660(int *param_1,int param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,int param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  int local_54;\n  undefined4 local_2c;\n  undefined4 local_28;\n  void *local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_2c = 0;\n  local_28 = 0;\n  iVar1 = param_1[7] + param_2 * 0xc;\n  local_24 = (void *)0x0;\n  local_54 = *(int *)(iVar1 + 4);\n  if (0 < local_54) {\n    iVar6 = 0;\n    do {\n      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);\n      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < local_54);\n    iVar6 = 0;\n    if (0 < local_54) {\n      do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));\n    }\n  }\n  free(local_24);\n  iVar4 = 0;\nLAB_0002088b:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    \n  FUN_0002ca00();\n}" { (declaration "int iVar1;" primitive_type 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 iVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_54;" primitive_type identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "void *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = param_1[7] + param_2 * 0xc;" (assignment_expression "iVar1 = param_1[7] + param_2 * 0xc" identifier = (binary_expression "param_1[7] + param_2 * 0xc" (subscript_expression "param_1[7]" identifier [ number_literal ]) + (binary_expression "param_2 * 0xc" identifier * number_literal))) ;) (expression_statement "local_24 = (void *)0x0;" (assignment_expression "local_24 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_54 = *(int *)(iVar1 + 4);" (assignment_expression "local_54 = *(int *)(iVar1 + 4)" identifier = (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (0 < local_54) {\n    iVar6 = 0;\n    do {\n      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);\n      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < local_54);\n    iVar6 = 0;\n    if (0 < local_54) {\n      do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));\n    }\n  }" if (parenthesized_expression "(0 < local_54)" ( (binary_expression "0 < local_54" number_literal < identifier) )) (compound_statement "{\n    iVar6 = 0;\n    do {\n      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);\n      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < local_54);\n    iVar6 = 0;\n    if (0 < local_54) {\n      do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));\n    }\n  }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);\n      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < local_54);" do (compound_statement "{\n      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);\n      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }\n      iVar6 = iVar6 + 1;\n    }" { (expression_statement "iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);" (assignment_expression "iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(iVar1 + 8) + iVar6 * 4)" * (cast_expression "(int *)(*(int *)(iVar1 + 8) + iVar6 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 8) + iVar6 * 4)" ( (binary_expression "*(int *)(iVar1 + 8) + iVar6 * 4" (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) + (binary_expression "iVar6 * 4" identifier * number_literal)) ))))) ;) (if_statement "if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }" if (parenthesized_expression "((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0))" ( (binary_expression "(param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)" (parenthesized_expression "(param_2 != iVar4)" ( (binary_expression "param_2 != iVar4" identifier != identifier) )) && (parenthesized_expression "((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)" ( (binary_expression "(*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0" (parenthesized_expression "(*(byte *)(*param_1 + 4 + iVar4 * 8) & 8)" ( (binary_expression "*(byte *)(*param_1 + 4 + iVar4 * 8) & 8" (pointer_expression "*(byte *)(*param_1 + 4 + iVar4 * 8)" * (cast_expression "(byte *)(*param_1 + 4 + iVar4 * 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 4 + iVar4 * 8)" ( (binary_expression "*param_1 + 4 + iVar4 * 8" (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) + (binary_expression "iVar4 * 8" identifier * number_literal)) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }" { (expression_statement "iVar5 = param_1[5] + iVar4 * 0xc;" (assignment_expression "iVar5 = param_1[5] + iVar4 * 0xc" identifier = (binary_expression "param_1[5] + iVar4 * 0xc" (subscript_expression "param_1[5]" identifier [ number_literal ]) + (binary_expression "iVar4 * 0xc" identifier * number_literal))) ;) (expression_statement "iVar3 = *(int *)(iVar5 + 8);" (assignment_expression "iVar3 = *(int *)(iVar5 + 8)" identifier = (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) ))))) ;) (expression_statement "iVar2 = FUN_0001dd20();" (assignment_expression "iVar2 = FUN_0001dd20()" identifier = (call_expression "FUN_0001dd20()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }" if (parenthesized_expression "(*(int *)(iVar5 + 4) < 2)" ( (binary_expression "*(int *)(iVar5 + 4) < 2" (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) )))) < number_literal) )) (compound_statement "{\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }" { (if_statement "if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }" { (expression_statement "iVar3 = FUN_0001dd20();" (assignment_expression "iVar3 = FUN_0001dd20()" identifier = (call_expression "FUN_0001dd20()" identifier (argument_list "()" ( )))) ;) (labeled_statement "joined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;" statement_identifier : (if_statement "if (iVar3 != 0) goto LAB_00020704;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00020704;" goto statement_identifier ;))) })) }) (else_clause "else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }" else (if_statement "if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }" if (parenthesized_expression "((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0))" ( (binary_expression "(iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar2 = FUN_0001dd20(), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_0001dd20(), iVar2 != 0" (assignment_expression "iVar2 = FUN_0001dd20()" identifier = (call_expression "FUN_0001dd20()" identifier (argument_list "()" ( )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }" { (labeled_statement "LAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);" statement_identifier : (expression_statement "iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);" (assignment_expression "iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7])" identifier = (call_expression "FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7])" identifier (argument_list "(&local_2c,param_4,iVar4 * 0xc + param_1[7])" ( (pointer_expression "&local_2c" & identifier) , identifier , (binary_expression "iVar4 * 0xc + param_1[7]" (binary_expression "iVar4 * 0xc" identifier * number_literal) + (subscript_expression "param_1[7]" identifier [ number_literal ])) )))) ;)) (if_statement "if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n            free(local_24);\n            goto LAB_0002088b;\n          }" { (expression_statement "free(local_24);" (call_expression "free(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (goto_statement "goto LAB_0002088b;" goto statement_identifier ;) })) (expression_statement "local_54 = *(int *)(iVar1 + 4);" (assignment_expression "local_54 = *(int *)(iVar1 + 4)" identifier = (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) }) (else_clause "else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }" else (if_statement "if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }" if (parenthesized_expression "((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0))" ( (binary_expression "(0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)" (parenthesized_expression "(0 < *(int *)(iVar3 + 4))" ( (binary_expression "0 < *(int *)(iVar3 + 4)" number_literal < (pointer_expression "*(int *)(iVar3 + 4)" * (cast_expression "(int *)(iVar3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) )) && (parenthesized_expression "(iVar3 = FUN_0001dd20(), iVar3 == 0)" ( (comma_expression "iVar3 = FUN_0001dd20(), iVar3 == 0" (assignment_expression "iVar3 = FUN_0001dd20()" identifier = (call_expression "FUN_0001dd20()" identifier (argument_list "()" ( )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }" { (expression_statement "iVar3 = FUN_0001dd20();" (assignment_expression "iVar3 = FUN_0001dd20()" identifier = (call_expression "FUN_0001dd20()" identifier (argument_list "()" ( )))) ;) (goto_statement "goto joined_r0x000207e8;" goto statement_identifier ;) })))))) })) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 < local_54)" ( (binary_expression "iVar6 < local_54" identifier < identifier) )) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (if_statement "if (0 < local_54) {\n      do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));\n    }" if (parenthesized_expression "(0 < local_54)" ( (binary_expression "0 < local_54" number_literal < identifier) )) (compound_statement "{\n      do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));\n    }" { (do_statement "do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));" do (compound_statement "{\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      }" { (expression_statement "iVar4 = FUN_0001dd20();" (assignment_expression "iVar4 = FUN_0001dd20()" identifier = (call_expression "FUN_0001dd20()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }" { (expression_statement "iVar4 = *(int *)(param_3 + 4);" (assignment_expression "iVar4 = *(int *)(param_3 + 4)" identifier = (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = FUN_0001dd20();" (assignment_expression "iVar3 = FUN_0001dd20()" identifier = (call_expression "FUN_0001dd20()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }" if (parenthesized_expression "((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4))" ( (binary_expression "(-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)" (parenthesized_expression "(-1 < iVar3 + -1)" ( (binary_expression "-1 < iVar3 + -1" number_literal < (binary_expression "iVar3 + -1" identifier + number_literal)) )) && (parenthesized_expression "(iVar3 + -1 < iVar4)" ( (binary_expression "iVar3 + -1 < iVar4" (binary_expression "iVar3 + -1" identifier + number_literal) < identifier) ))) )) (compound_statement "{\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }" { (expression_statement "*(int *)(param_3 + 4) = iVar4 + -1;" (assignment_expression "*(int *)(param_3 + 4) = iVar4 + -1" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "FUN_0001de70();" (call_expression "FUN_0001de70()" identifier (argument_list "()" ( ))) ;) })) })) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 < *(int *)(iVar1 + 4))" ( (binary_expression "iVar6 < *(int *)(iVar1 + 4)" identifier < (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) )) ;) })) })) (expression_statement "free(local_24);" (call_expression "free(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0002088b:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\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 iVar4;\n  }" { (return_statement "return iVar4;" 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 IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != IDENT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) + (binary_expression IDENT * LIT)) )))) & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_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 = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;))) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , (binary_expression (binary_expression IDENT * LIT) + (subscript_expression IDENT [ LIT ])) )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (goto_statement goto statement_identifier ;) })))))) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT + LIT)) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( 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_00020660(int *param_1,int param_2,int param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  int local_54;\n  undefined4 local_2c;\n  undefined4 local_28;\n  void *local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_2c = 0;\n  local_28 = 0;\n  iVar1 = param_1[7] + param_2 * 0xc;\n  local_24 = (void *)0x0;\n  local_54 = *(int *)(iVar1 + 4);\n  if (0 < local_54) {\n    iVar6 = 0;\n    do {\n      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);\n      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < local_54);\n    iVar6 = 0;\n    if (0 < local_54) {\n      do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));\n    }\n  }\n  free(local_24);\n  iVar4 = 0;\nLAB_0002088b:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    \n  FUN_0002ca00();\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00020660(int *param_1,int param_2,int param_3,undefined4 param_4)" (identifier "FUN_00020660") (parameter_list "(int *param_1,int param_2,int param_3,undefined4 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") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  int local_54;\n  undefined4 local_2c;\n  undefined4 local_28;\n  void *local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_2c = 0;\n  local_28 = 0;\n  iVar1 = param_1[7] + param_2 * 0xc;\n  local_24 = (void *)0x0;\n  local_54 = *(int *)(iVar1 + 4);\n  if (0 < local_54) {\n    iVar6 = 0;\n    do {\n      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);\n      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < local_54);\n    iVar6 = 0;\n    if (0 < local_54) {\n      do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));\n    }\n  }\n  free(local_24);\n  iVar4 = 0;\nLAB_0002088b:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    \n  FUN_0002ca00();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (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 iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_54;" (primitive_type "int") (identifier "local_54") (; ";")) (declaration "undefined4 local_2c;" (type_identifier "undefined4") (identifier "local_2c") (; ";")) (declaration "undefined4 local_28;" (type_identifier "undefined4") (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") (; ";")) (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 "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = param_1[7] + param_2 * 0xc;" (assignment_expression "iVar1 = param_1[7] + param_2 * 0xc" (identifier "iVar1") (= "=") (binary_expression "param_1[7] + param_2 * 0xc" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (+ "+") (binary_expression "param_2 * 0xc" (identifier "param_2") (* "*") (number_literal "0xc")))) (; ";")) (expression_statement "local_24 = (void *)0x0;" (assignment_expression "local_24 = (void *)0x0" (identifier "local_24") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "local_54 = *(int *)(iVar1 + 4);" (assignment_expression "local_54 = *(int *)(iVar1 + 4)" (identifier "local_54") (= "=") (pointer_expression "*(int *)(iVar1 + 4)" (* "*") (cast_expression "(int *)(iVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (0 < local_54) {\n    iVar6 = 0;\n    do {\n      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);\n      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < local_54);\n    iVar6 = 0;\n    if (0 < local_54) {\n      do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));\n    }\n  }" (if "if") (parenthesized_expression "(0 < local_54)" (( "(") (binary_expression "0 < local_54" (number_literal "0") (< "<") (identifier "local_54")) () ")")) (compound_statement "{\n    iVar6 = 0;\n    do {\n      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);\n      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < local_54);\n    iVar6 = 0;\n    if (0 < local_54) {\n      do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));\n    }\n  }" ({ "{") (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);\n      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < local_54);" (do "do") (compound_statement "{\n      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);\n      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }\n      iVar6 = iVar6 + 1;\n    }" ({ "{") (expression_statement "iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);" (assignment_expression "iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(*(int *)(iVar1 + 8) + iVar6 * 4)" (* "*") (cast_expression "(int *)(*(int *)(iVar1 + 8) + iVar6 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar1 + 8) + iVar6 * 4)" (( "(") (binary_expression "*(int *)(iVar1 + 8) + iVar6 * 4" (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (binary_expression "iVar6 * 4" (identifier "iVar6") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }" (if "if") (parenthesized_expression "((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0))" (( "(") (binary_expression "(param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)" (parenthesized_expression "(param_2 != iVar4)" (( "(") (binary_expression "param_2 != iVar4" (identifier "param_2") (!= "!=") (identifier "iVar4")) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)" (( "(") (binary_expression "(*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0" (parenthesized_expression "(*(byte *)(*param_1 + 4 + iVar4 * 8) & 8)" (( "(") (binary_expression "*(byte *)(*param_1 + 4 + iVar4 * 8) & 8" (pointer_expression "*(byte *)(*param_1 + 4 + iVar4 * 8)" (* "*") (cast_expression "(byte *)(*param_1 + 4 + iVar4 * 8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 4 + iVar4 * 8)" (( "(") (binary_expression "*param_1 + 4 + iVar4 * 8" (binary_expression "*param_1 + 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "4")) (+ "+") (binary_expression "iVar4 * 8" (identifier "iVar4") (* "*") (number_literal "8"))) () ")")))) (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        iVar5 = param_1[5] + iVar4 * 0xc;\n        iVar3 = *(int *)(iVar5 + 8);\n        iVar2 = FUN_0001dd20();\n        if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }\n      }" ({ "{") (expression_statement "iVar5 = param_1[5] + iVar4 * 0xc;" (assignment_expression "iVar5 = param_1[5] + iVar4 * 0xc" (identifier "iVar5") (= "=") (binary_expression "param_1[5] + iVar4 * 0xc" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (+ "+") (binary_expression "iVar4 * 0xc" (identifier "iVar4") (* "*") (number_literal "0xc")))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar5 + 8);" (assignment_expression "iVar3 = *(int *)(iVar5 + 8)" (identifier "iVar3") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "iVar2 = FUN_0001dd20();" (assignment_expression "iVar2 = FUN_0001dd20()" (identifier "iVar2") (= "=") (call_expression "FUN_0001dd20()" (identifier "FUN_0001dd20") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (*(int *)(iVar5 + 4) < 2) {\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }\n        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }" (if "if") (parenthesized_expression "(*(int *)(iVar5 + 4) < 2)" (( "(") (binary_expression "*(int *)(iVar5 + 4) < 2" (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")) () ")")))) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n          if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }\n        }" ({ "{") (if_statement "if (iVar2 == 0) {\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            iVar3 = FUN_0001dd20();\njoined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;\n          }" ({ "{") (expression_statement "iVar3 = FUN_0001dd20();" (assignment_expression "iVar3 = FUN_0001dd20()" (identifier "iVar3") (= "=") (call_expression "FUN_0001dd20()" (identifier "FUN_0001dd20") (argument_list "()" (( "(") () ")")))) (; ";")) (labeled_statement "joined_r0x000207e8:\n            if (iVar3 != 0) goto LAB_00020704;" (statement_identifier "joined_r0x000207e8") (: ":") (if_statement "if (iVar3 != 0) goto LAB_00020704;" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00020704;" (goto "goto") (statement_identifier "LAB_00020704") (; ";")))) (} "}"))) (} "}")) (else_clause "else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }" (else "else") (if_statement "if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }\n        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }" (if "if") (parenthesized_expression "((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0))" (( "(") (binary_expression "(iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)" (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = FUN_0001dd20(), iVar2 != 0)" (( "(") (comma_expression "iVar2 = FUN_0001dd20(), iVar2 != 0" (assignment_expression "iVar2 = FUN_0001dd20()" (identifier "iVar2") (= "=") (call_expression "FUN_0001dd20()" (identifier "FUN_0001dd20") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\nLAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);\n          if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }\n          local_54 = *(int *)(iVar1 + 4);\n        }" ({ "{") (labeled_statement "LAB_00020704:\n          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);" (statement_identifier "LAB_00020704") (: ":") (expression_statement "iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);" (assignment_expression "iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7])" (identifier "iVar4") (= "=") (call_expression "FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7])" (identifier "FUN_0001e810") (argument_list "(&local_2c,param_4,iVar4 * 0xc + param_1[7])" (( "(") (pointer_expression "&local_2c" (& "&") (identifier "local_2c")) (, ",") (identifier "param_4") (, ",") (binary_expression "iVar4 * 0xc + param_1[7]" (binary_expression "iVar4 * 0xc" (identifier "iVar4") (* "*") (number_literal "0xc")) (+ "+") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]"))) () ")")))) (; ";"))) (if_statement "if (iVar4 != 0) {\n            free(local_24);\n            goto LAB_0002088b;\n          }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            free(local_24);\n            goto LAB_0002088b;\n          }" ({ "{") (expression_statement "free(local_24);" (call_expression "free(local_24)" (identifier "free") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";")) (goto_statement "goto LAB_0002088b;" (goto "goto") (statement_identifier "LAB_0002088b") (; ";")) (} "}"))) (expression_statement "local_54 = *(int *)(iVar1 + 4);" (assignment_expression "local_54 = *(int *)(iVar1 + 4)" (identifier "local_54") (= "=") (pointer_expression "*(int *)(iVar1 + 4)" (* "*") (cast_expression "(int *)(iVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}")) (else_clause "else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }" (else "else") (if_statement "if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }" (if "if") (parenthesized_expression "((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0))" (( "(") (binary_expression "(0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)" (parenthesized_expression "(0 < *(int *)(iVar3 + 4))" (( "(") (binary_expression "0 < *(int *)(iVar3 + 4)" (number_literal "0") (< "<") (pointer_expression "*(int *)(iVar3 + 4)" (* "*") (cast_expression "(int *)(iVar3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")"))))) () ")")) (&& "&&") (parenthesized_expression "(iVar3 = FUN_0001dd20(), iVar3 == 0)" (( "(") (comma_expression "iVar3 = FUN_0001dd20(), iVar3 == 0" (assignment_expression "iVar3 = FUN_0001dd20()" (identifier "iVar3") (= "=") (call_expression "FUN_0001dd20()" (identifier "FUN_0001dd20") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n          iVar3 = FUN_0001dd20();\n          goto joined_r0x000207e8;\n        }" ({ "{") (expression_statement "iVar3 = FUN_0001dd20();" (assignment_expression "iVar3 = FUN_0001dd20()" (identifier "iVar3") (= "=") (call_expression "FUN_0001dd20()" (identifier "FUN_0001dd20") (argument_list "()" (( "(") () ")")))) (; ";")) (goto_statement "goto joined_r0x000207e8;" (goto "goto") (statement_identifier "joined_r0x000207e8") (; ";")) (} "}"))))))) (} "}"))) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar6 < local_54)" (( "(") (binary_expression "iVar6 < local_54" (identifier "iVar6") (< "<") (identifier "local_54")) () ")")) (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < local_54) {\n      do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));\n    }" (if "if") (parenthesized_expression "(0 < local_54)" (( "(") (binary_expression "0 < local_54" (number_literal "0") (< "<") (identifier "local_54")) () ")")) (compound_statement "{\n      do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));\n    }" ({ "{") (do_statement "do {\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      } while (iVar6 < *(int *)(iVar1 + 4));" (do "do") (compound_statement "{\n        iVar4 = FUN_0001dd20();\n        if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }\n        iVar6 = iVar6 + 1;\n      }" ({ "{") (expression_statement "iVar4 = FUN_0001dd20();" (assignment_expression "iVar4 = FUN_0001dd20()" (identifier "iVar4") (= "=") (call_expression "FUN_0001dd20()" (identifier "FUN_0001dd20") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          iVar4 = *(int *)(param_3 + 4);\n          iVar3 = FUN_0001dd20();\n          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }\n        }" ({ "{") (expression_statement "iVar4 = *(int *)(param_3 + 4);" (assignment_expression "iVar4 = *(int *)(param_3 + 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar3 = FUN_0001dd20();" (assignment_expression "iVar3 = FUN_0001dd20()" (identifier "iVar3") (= "=") (call_expression "FUN_0001dd20()" (identifier "FUN_0001dd20") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }" (if "if") (parenthesized_expression "((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4))" (( "(") (binary_expression "(-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)" (parenthesized_expression "(-1 < iVar3 + -1)" (( "(") (binary_expression "-1 < iVar3 + -1" (number_literal "-1") (< "<") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) () ")")) (&& "&&") (parenthesized_expression "(iVar3 + -1 < iVar4)" (( "(") (binary_expression "iVar3 + -1 < iVar4" (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1")) (< "<") (identifier "iVar4")) () ")"))) () ")")) (compound_statement "{\n            *(int *)(param_3 + 4) = iVar4 + -1;\n            FUN_0001de70();\n          }" ({ "{") (expression_statement "*(int *)(param_3 + 4) = iVar4 + -1;" (assignment_expression "*(int *)(param_3 + 4) = iVar4 + -1" (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "FUN_0001de70();" (call_expression "FUN_0001de70()" (identifier "FUN_0001de70") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar6 < *(int *)(iVar1 + 4))" (( "(") (binary_expression "iVar6 < *(int *)(iVar1 + 4)" (identifier "iVar6") (< "<") (pointer_expression "*(int *)(iVar1 + 4)" (* "*") (cast_expression "(int *)(iVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")"))))) () ")")) (; ";")) (} "}"))) (} "}"))) (expression_statement "free(local_24);" (call_expression "free(local_24)" (identifier "free") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0002088b:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }" (statement_identifier "LAB_0002088b") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\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 iVar4;\n  }" ({ "{") (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))) (expression_statement "FUN_0002ca00();" (call_expression "FUN_0002ca00()" (identifier "FUN_0002ca00") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

type_1 __regparm3
function_1(type_2 *dfa,type_3 var_2,type_4 *dest_nodes,type_4 *candidates)

{
  type_3 **elem;
  int var_13;
  type_4 *prVar2;
  int var_3;
  type_4 *prVar4;
  type_3 *pIVar5;
  type_3 var_5;
  int var_6;
  type_4 *prVar8;
  type_1 var_8;
  type_4 *set_1;
  type_4 *set_1_00;
  int var_11;
  int var_1;
  type_4 *local_54;
  type_4 except_nodes;
  
  var_13 = *(int *)(var_1 + 0x14);
  prVar2 = dfa->inveclosures;
  except_nodes.alloc = 0;
  except_nodes.nelem = 0;
  except_nodes.elems = (type_3 *)0x0;
  local_54 = (type_4 *)prVar2[var_2].nelem;
  if (0 < (int)local_54) {
    var_11 = 0;
    elem = &dest_nodes->elems;
    do {
      var_3 = prVar2[var_2].elems[var_11];
      if ((var_2 != var_3) && ((dfa->nodes[var_3].field_0x4 & 8) != 0)) {
        prVar4 = dfa->edests;
        pIVar5 = prVar4[var_3].elems;
        prVar8 = (type_4 *)*pIVar5;
        var_5 = var_4(local_54,(type_3)&prVar2[var_2].elems,prVar8);
        if (prVar4[var_3].nelem < 2) {
          if (var_5 == 0) {
            var_6 = var_4((type_4 *)dest_nodes->nelem,(type_3)elem,prVar8);
joined_r0x000207e8:
            if (var_6 != 0) goto LAB_00020704;
          }
        }
        else if ((var_5 == 0) &&
                (var_5 = var_4((type_4 *)dest_nodes->nelem,(type_3)elem,prVar8),
                var_5 != 0)) {
LAB_00020704:
          var_8 = var_7(&except_nodes,candidates,dfa->inveclosures + var_3);
          if (var_8 != var_9) {
            var_10(except_nodes.elems);
            goto LAB_0002088b;
          }
          local_54 = (type_4 *)prVar2[var_2].nelem;
        }
        else {
          prVar4 = (type_4 *)pIVar5[1];
          if ((0 < (int)prVar4) &&
             (var_5 = var_4(local_54,(type_3)&prVar2[var_2].elems,prVar4), var_5 == 0)) {
            var_6 = var_4((type_4 *)dest_nodes->nelem,(type_3)elem,set_1);
            goto joined_r0x000207e8;
          }
        }
      }
      var_11 = var_11 + 1;
    } while (var_11 < (int)local_54);
    var_11 = 0;
    if (0 < (int)local_54) {
      do {
        var_5 = var_4
                          ((type_4 *)except_nodes.nelem,(type_3)&except_nodes.elems,
                           (type_4 *)prVar2[var_2].elems[var_11]);
        if (var_5 == 0) {
          prVar4 = (type_4 *)dest_nodes->nelem;
          var_5 = var_4(prVar4,(type_3)&dest_nodes->elems,set_1_00);
          prVar8 = (type_4 *)(var_5 + -1);
          if ((-1 < (int)prVar8) && ((int)prVar8 < (int)prVar4)) {
            dest_nodes->nelem = (type_3)((int)&prVar4[-1].elems + 3);
            var_12((type_4 *)&dest_nodes->nelem,(type_3)&dest_nodes->elems,prVar8);
          }
        }
        var_11 = var_11 + 1;
      } while (var_11 < prVar2[var_2].nelem);
    }
  }
  var_10(except_nodes.elems);
  var_8 = var_9;
LAB_0002088b:
  if (var_13 == *(int *)(var_1 + 0x14)) {
    return var_8;
  }
                    /* WARNING: Subroutine does not return */
  var_14();
}


(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: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_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))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (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: (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)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))) right: (number_literal))))) consequence: (compound_statement (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))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) 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)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (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))))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (goto_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: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (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: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (binary_expression left: (identifier) right: (number_literal)))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) 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)))))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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.si replaced with injection: get_pc_thunk_si */

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

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int in_GS_OFFSET;
  int local_54;
  undefined4 local_2c;
  undefined4 local_28;
  void *local_24;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_2c = 0;
  local_28 = 0;
  iVar1 = param_1[7] + param_2 * 0xc;
  local_24 = (void *)0x0;
  local_54 = *(int *)(iVar1 + 4);
  if (0 < local_54) {
    iVar6 = 0;
    do {
      iVar4 = *(int *)(*(int *)(iVar1 + 8) + iVar6 * 4);
      if ((param_2 != iVar4) && ((*(byte *)(*param_1 + 4 + iVar4 * 8) & 8) != 0)) {
        iVar5 = param_1[5] + iVar4 * 0xc;
        iVar3 = *(int *)(iVar5 + 8);
        iVar2 = FUN_0001dd20();
        if (*(int *)(iVar5 + 4) < 2) {
          if (iVar2 == 0) {
            iVar3 = FUN_0001dd20();
joined_r0x000207e8:
            if (iVar3 != 0) goto LAB_00020704;
          }
        }
        else if ((iVar2 == 0) && (iVar2 = FUN_0001dd20(), iVar2 != 0)) {
LAB_00020704:
          iVar4 = FUN_0001e810(&local_2c,param_4,iVar4 * 0xc + param_1[7]);
          if (iVar4 != 0) {
            free(local_24);
            goto LAB_0002088b;
          }
          local_54 = *(int *)(iVar1 + 4);
        }
        else if ((0 < *(int *)(iVar3 + 4)) && (iVar3 = FUN_0001dd20(), iVar3 == 0)) {
          iVar3 = FUN_0001dd20();
          goto joined_r0x000207e8;
        }
      }
      iVar6 = iVar6 + 1;
    } while (iVar6 < local_54);
    iVar6 = 0;
    if (0 < local_54) {
      do {
        iVar4 = FUN_0001dd20();
        if (iVar4 == 0) {
          iVar4 = *(int *)(param_3 + 4);
          iVar3 = FUN_0001dd20();
          if ((-1 < iVar3 + -1) && (iVar3 + -1 < iVar4)) {
            *(int *)(param_3 + 4) = iVar4 + -1;
            FUN_0001de70();
          }
        }
        iVar6 = iVar6 + 1;
      } while (iVar6 < *(int *)(iVar1 + 4));
    }
  }
  free(local_24);
  iVar4 = 0;
LAB_0002088b:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002ca00();
}

