
/* WARNING: Unknown calling convention */

state_num state_index(dfa *d,position_set *s,int context)

{
  dfa_state *pdVar1;
  position *ppVar2;
  dfa_state *pdVar3;
  int iVar4;
  size_t *psVar5;
  position *ppVar6;
  position *ppVar7;
  position *ppVar8;
  idx_t size;
  int iVar9;
  int iVar10;
  uint uVar11;
  state_num sVar12;
  uint uVar13;
  int iVar14;
  uint uVar15;
  undefined2 uVar16;
  token_conflict tVar17;
  
  size = s->nelem;
  iVar9 = d->sindex;
  pdVar1 = d->states;
  if (size < 1) {
    uVar16 = 0;
    if (iVar9 < 1) {
      iVar14 = 0;
      uVar13 = 0;
      sVar12 = 0;
      tVar17 = 0;
      goto LAB_00478408;
    }
    uVar13 = 0;
LAB_00478278:
    sVar12 = 0;
    pdVar3 = pdVar1;
    do {
      if (((pdVar3->hash == uVar13) && (iVar14 = (pdVar3->elems).nelem, iVar14 == size)) &&
         ((uint)pdVar3->context == context)) {
        iVar10 = 0;
        if (0 < size) {
          ppVar7 = s->elems;
          ppVar6 = (pdVar3->elems).elems;
          if ((ppVar7->constraint != ppVar6->constraint) || (ppVar6->index != ppVar7->index))
          goto LAB_00478288;
          iVar10 = 0;
          do {
            ppVar8 = ppVar7 + 1;
            ppVar2 = ppVar6 + 1;
            iVar10 = iVar10 + 1;
            if (iVar14 == iVar10) {
              return sVar12;
            }
          } while ((ppVar7[1].constraint == ppVar6[1].constraint) &&
                  (ppVar6 = ppVar2, ppVar7 = ppVar8, ppVar8->index == ppVar2->index));
        }
        if (iVar14 == iVar10) {
          return sVar12;
        }
      }
LAB_00478288:
      sVar12 = sVar12 + 1;
      pdVar3 = pdVar3 + 1;
    } while (sVar12 < iVar9);
    iVar14 = sVar12 * 0x28;
    if (size < 1) {
      uVar16 = 0;
      tVar17 = 0;
      goto LAB_00478408;
    }
    ppVar7 = s->elems;
  }
  else {
    ppVar7 = s->elems;
    uVar13 = 0;
    ppVar6 = ppVar7;
    do {
      ppVar2 = ppVar6 + 1;
      uVar13 = uVar13 ^ ppVar6->constraint + ppVar6->index;
      ppVar6 = ppVar2;
    } while (ppVar7 + size != ppVar2);
    iVar14 = 0;
    if (0 < iVar9) goto LAB_00478278;
    sVar12 = 0;
  }
  iVar10 = 0;
  tVar17 = 0;
  uVar15 = 0;
  do {
    while( true ) {
      iVar4 = ppVar7->index;
      uVar11 = d->constraints[iVar4];
      if (uVar11 != 0) break;
      iVar10 = iVar10 + 1;
      if (d->tokens[iVar4] == 0x112) {
        uVar15 = 0x1ff;
      }
      uVar16 = (undefined2)uVar15;
      ppVar7 = ppVar7 + 1;
      if (size <= iVar10) goto LAB_00478408;
    }
    if ((((int)uVar11 >> 3 | (int)uVar11 >> 6 | uVar11) & context & 7U) != 0) {
      uVar15 = uVar15 | uVar11;
    }
    uVar16 = (undefined2)uVar15;
    if (tVar17 == 0) {
      tVar17 = d->tokens[iVar4];
    }
    iVar10 = iVar10 + 1;
    ppVar7 = ppVar7 + 1;
  } while (iVar10 < size);
LAB_00478408:
  if (d->salloc <= iVar9) {
    pdVar1 = (dfa_state *)xpalloc(pdVar1,&d->salloc,1,-1,0x28);
    size = s->nelem;
  }
  psVar5 = (size_t *)((int)&pdVar1->hash + iVar14);
  d->states = pdVar1;
  *psVar5 = uVar13;
  alloc_position_set((position_set *)(psVar5 + 1),size);
  copy((EVP_PKEY_CTX *)s,(EVP_PKEY_CTX *)&s->nelem);
  pdVar1 = d->states;
  (&pdVar1->context)[iVar14] = (uchar)context;
  iVar9 = d->sindex;
  *(undefined2 *)((int)&pdVar1->constraint + iVar14) = uVar16;
  *(token_conflict *)((int)&pdVar1->first_end + iVar14) = tVar17;
  *(undefined4 *)((int)&(pdVar1->mbps).nelem + iVar14) = 0;
  *(undefined4 *)((int)&(pdVar1->mbps).elems + iVar14) = 0;
  *(undefined4 *)((int)&pdVar1->mb_trindex + iVar14) = 0xffffffff;
  d->sindex = iVar9 + 1;
  return sVar12;
}



int FUN_0047820c(int param_1,int *param_2,uint param_3)

{
  uint *puVar1;
  int *piVar2;
  uint *puVar3;
  int iVar4;
  int *piVar5;
  int *piVar6;
  int *piVar7;
  uint uVar8;
  int iVar9;
  uint uVar10;
  uint uVar11;
  int iVar12;
  int iVar13;
  uint uVar14;
  int iVar15;
  undefined2 uVar16;
  int iVar17;
  
  uVar8 = param_2[1];
  iVar9 = *(int *)(param_1 + 0xa0);
  puVar1 = *(uint **)(param_1 + 0x9c);
  if ((int)uVar8 < 1) {
    uVar16 = 0;
    if (iVar9 < 1) {
      iVar15 = 0;
      uVar14 = 0;
      iVar13 = 0;
      iVar17 = 0;
      goto LAB_00478408;
    }
    uVar14 = 0;
LAB_00478278:
    iVar13 = 0;
    puVar3 = puVar1;
    do {
      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&
         (*(byte *)(puVar3 + 4) == param_3)) {
        uVar10 = 0;
        if (0 < (int)uVar8) {
          piVar6 = (int *)*param_2;
          piVar5 = (int *)puVar3[1];
          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;
          uVar10 = 0;
          do {
            piVar7 = piVar6 + 2;
            piVar2 = piVar5 + 2;
            uVar10 = uVar10 + 1;
            if (uVar11 == uVar10) {
              return iVar13;
            }
          } while ((piVar6[3] == piVar5[3]) &&
                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));
        }
        if (uVar11 == uVar10) {
          return iVar13;
        }
      }
LAB_00478288:
      iVar13 = iVar13 + 1;
      puVar3 = puVar3 + 10;
    } while (iVar13 < iVar9);
    iVar15 = iVar13 * 0x28;
    if ((int)uVar8 < 1) {
      uVar16 = 0;
      iVar17 = 0;
      goto LAB_00478408;
    }
    piVar6 = (int *)*param_2;
  }
  else {
    piVar6 = (int *)*param_2;
    uVar14 = 0;
    piVar5 = piVar6;
    do {
      piVar2 = piVar5 + 2;
      uVar14 = uVar14 ^ piVar5[1] + *piVar5;
      piVar5 = piVar2;
    } while (piVar6 + uVar8 * 2 != piVar2);
    iVar15 = 0;
    if (0 < iVar9) goto LAB_00478278;
    iVar13 = 0;
  }
  iVar12 = 0;
  iVar17 = 0;
  uVar11 = 0;
  do {
    while( true ) {
      iVar4 = *piVar6 * 4;
      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);
      if (uVar10 != 0) break;
      iVar12 = iVar12 + 1;
      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {
        uVar11 = 0x1ff;
      }
      uVar16 = (undefined2)uVar11;
      piVar6 = piVar6 + 2;
      if ((int)uVar8 <= iVar12) goto LAB_00478408;
    }
    if ((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0) {
      uVar11 = uVar11 | uVar10;
    }
    uVar16 = (undefined2)uVar11;
    if (iVar17 == 0) {
      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);
    }
    iVar12 = iVar12 + 1;
    piVar6 = piVar6 + 2;
  } while (iVar12 < (int)uVar8);
LAB_00478408:
  if (*(int *)(param_1 + 0xa4) <= iVar9) {
    puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);
    uVar8 = param_2[1];
  }
  *(uint **)(param_1 + 0x9c) = puVar1;
  *(uint *)((int)puVar1 + iVar15) = uVar14;
  FUN_004781bc((uint *)((int)puVar1 + iVar15) + 1,uVar8);
  FUN_00475cdc(param_2,param_2 + 1,*(int *)(param_1 + 0x9c) + iVar15 + 4);
  iVar15 = *(int *)(param_1 + 0x9c) + iVar15;
  *(char *)(iVar15 + 0x10) = (char)param_3;
  iVar9 = *(int *)(param_1 + 0xa0);
  *(undefined2 *)(iVar15 + 0x12) = uVar16;
  *(int *)(iVar15 + 0x14) = iVar17;
  *(undefined4 *)(iVar15 + 0x1c) = 0;
  *(undefined4 *)(iVar15 + 0x18) = 0;
  *(undefined4 *)(iVar15 + 0x24) = 0xffffffff;
  *(int *)(param_1 + 0xa0) = iVar9 + 1;
  return iVar13;
}


addiu sp,sp,-0x48
lw t1,0x4(a1)
lw t2,0xa0(a0)
lw v0,0x9c(a0)
sw ra,0x44(sp)
sw s7,0x40(sp)
sw s6,0x3c(sp)
sw s5,0x38(sp)
sw s4,0x34(sp)
sw s3,0x30(sp)
sw s2,0x2c(sp)
sw s1,0x28(sp)
blez t1,0x004784e8
_sw s0,0x24(sp)
lw t0,0x0(a1)
sll t4,t1,0x3
or s1,zero,zero
addu t4,t4,t0
or v1,t0,zero
lw a3,0x4(v1)
addiu v1,v1,0x8
lw t3,-0x8(v1)
addu a3,a3,t3
bne t4,v1,0x00478258
_xor s1,s1,a3
blez t2,0x00478518
_or s2,zero,zero
or s0,zero,zero
b 0x00478294
_or v1,v0,zero
addiu s0,s0,0x1
slt a3,s0,t2
beq a3,zero,0x00478358
_addiu v1,v1,0x28
lw a3,0x0(v1)
bne a3,s1,0x00478284
_nop
lw t4,0x8(v1)
bne t4,t1,0x00478284
_nop
lbu a3,0x10(v1)
bne a3,a2,0x00478284
_nop
blez t1,0x004784b0
_or t3,zero,zero
lw t0,0x0(a1)
lw a3,0x4(v1)
lw t5,0x4(t0)
lw t3,0x4(a3)
bne t5,t3,0x00478284
_nop
lw t5,0x0(a3)
lw t3,0x0(t0)
bne t5,t3,0x00478284
_addiu t0,t0,0x8
addiu a3,a3,0x8
b 0x0047831c
_or t3,zero,zero
lw t7,0x4(t0)
or t8,a3,zero
lw t6,0x4(a3)
addiu t0,t0,0x8
bne t7,t6,0x004784b0
_addiu a3,a3,0x8
lw t6,0x0(t5)
lw t5,0x0(t8)
bne t6,t5,0x004784b0
_nop
addiu t3,t3,0x1
bne t4,t3,0x004782f4
_or t5,t0,zero
lw ra,0x44(sp)
or v0,s0,zero
lw s7,0x40(sp)
lw s6,0x3c(sp)
lw s5,0x38(sp)
lw s4,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x48
sll s2,s0,0x2
addu s2,s2,s0
blez t1,0x0047850c
_sll s2,s2,0x3
lw t0,0x0(a1)
lw t5,0xb0(a0)
or t4,zero,zero
or s5,zero,zero
or s3,zero,zero
li t6,0x1ff
b 0x004783c8
_andi t7,a2,0x7
sra t8,t3,0x6
or a3,a3,t8
or a3,a3,t3
and a3,a3,t7
beq a3,zero,0x004783a4
_nop
or s3,s3,t3
bne s5,zero,0x004783b8
_nop
lw a3,0x4c(a0)
addu v1,a3,v1
lw s5,0x0(v1)
addiu t4,t4,0x1
slt v1,t4,t1
beq v1,zero,0x00478404
_addiu t0,t0,0x8
lw v1,0x0(t0)
sll v1,v1,0x2
addu a3,t5,v1
lw t3,0x0(a3)
bne t3,zero,0x00478388
_sra a3,t3,0x3
lw a3,0x4c(a0)
addiu t4,t4,0x1
addu v1,a3,v1
lw v1,0x0(v1)
xori v1,v1,0x112
movz s3,t6,v1
slt v1,t4,t1
bne v1,zero,0x004783c8
_addiu t0,t0,0x8
andi s3,s3,0xffff
lw v1,0xa4(a0)
or s4,a2,zero
or s6,a0,zero
slt t2,t2,v1
beq t2,zero,0x004784c4
_or s7,a1,zero
addu v1,v0,s2
sw v0,0x9c(s6)
or a1,t1,zero
addiu a0,v1,0x4
jal 0x004781bc
_sw s1,0x0(v1)
addiu a1,s7,0x4
lw a2,0x9c(s6)
or a0,s7,zero
addu a2,a2,s2
jal 0x00475cdc
_addiu a2,a2,0x4
li v1,-0x1
lw v0,0x9c(s6)
addu s2,v0,s2
sb s4,0x10(s2)
lw v0,0xa0(s6)
lw ra,0x44(sp)
lw s7,0x40(sp)
addiu v0,v0,0x1
lw s4,0x34(sp)
lw s1,0x28(sp)
sh s3,0x12(s2)
sw s5,0x14(s2)
sw zero,0x1c(s2)
sw zero,0x18(s2)
sw v1,0x24(s2)
sw v0,0xa0(s6)
or v0,s0,zero
lw s6,0x3c(sp)
lw s5,0x38(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x48
bne t4,t3,0x00478288
_addiu s0,s0,0x1
addiu s0,s0,-0x1
b 0x0047832c
_lw ra,0x44(sp)
li v1,0x28
addiu a1,a0,0xa4
li a3,-0x1
sw v1,0x10(sp)
li a2,0x1
jal 0x00475b8c
_or a0,v0,zero
b 0x00478420
_lw t1,0x4(s7)
bgtz t2,0x00478504
_or s3,zero,zero
or s2,zero,zero
or s1,zero,zero
or s0,zero,zero
b 0x00478408
_or s5,zero,zero
b 0x00478278
_or s1,zero,zero
or s3,zero,zero
b 0x00478408
_or s5,zero,zero
b 0x0047836c
_or s0,zero,zero
(translation_unit "int FUN_0047820c(int param_1,int *param_2,uint param_3)\n\n{\n  uint *puVar1;\n  int *piVar2;\n  uint *puVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int *piVar7;\n  uint uVar8;\n  int iVar9;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  uint uVar14;\n  int iVar15;\n  undefined2 uVar16;\n  int iVar17;\n  \n  uVar8 = param_2[1];\n  iVar9 = *(int *)(param_1 + 0xa0);\n  puVar1 = *(uint **)(param_1 + 0x9c);\n  if ((int)uVar8 < 1) {\n    uVar16 = 0;\n    if (iVar9 < 1) {\n      iVar15 = 0;\n      uVar14 = 0;\n      iVar13 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    uVar14 = 0;\nLAB_00478278:\n    iVar13 = 0;\n    puVar3 = puVar1;\n    do {\n      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }\nLAB_00478288:\n      iVar13 = iVar13 + 1;\n      puVar3 = puVar3 + 10;\n    } while (iVar13 < iVar9);\n    iVar15 = iVar13 * 0x28;\n    if ((int)uVar8 < 1) {\n      uVar16 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    piVar6 = (int *)*param_2;\n  }\n  else {\n    piVar6 = (int *)*param_2;\n    uVar14 = 0;\n    piVar5 = piVar6;\n    do {\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    } while (piVar6 + uVar8 * 2 != piVar2);\n    iVar15 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    iVar13 = 0;\n  }\n  iVar12 = 0;\n  iVar17 = 0;\n  uVar11 = 0;\n  do {\n    while( true ) {\n      iVar4 = *piVar6 * 4;\n      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);\n      if (uVar10 != 0) break;\n      iVar12 = iVar12 + 1;\n      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar11;\n      piVar6 = piVar6 + 2;\n      if ((int)uVar8 <= iVar12) goto LAB_00478408;\n    }\n    if ((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0) {\n      uVar11 = uVar11 | uVar10;\n    }\n    uVar16 = (undefined2)uVar11;\n    if (iVar17 == 0) {\n      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);\n    }\n    iVar12 = iVar12 + 1;\n    piVar6 = piVar6 + 2;\n  } while (iVar12 < (int)uVar8);\nLAB_00478408:\n  if (*(int *)(param_1 + 0xa4) <= iVar9) {\n    puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);\n    uVar8 = param_2[1];\n  }\n  *(uint **)(param_1 + 0x9c) = puVar1;\n  *(uint *)((int)puVar1 + iVar15) = uVar14;\n  FUN_004781bc((uint *)((int)puVar1 + iVar15) + 1,uVar8);\n  FUN_00475cdc(param_2,param_2 + 1,*(int *)(param_1 + 0x9c) + iVar15 + 4);\n  iVar15 = *(int *)(param_1 + 0x9c) + iVar15;\n  *(char *)(iVar15 + 0x10) = (char)param_3;\n  iVar9 = *(int *)(param_1 + 0xa0);\n  *(undefined2 *)(iVar15 + 0x12) = uVar16;\n  *(int *)(iVar15 + 0x14) = iVar17;\n  *(undefined4 *)(iVar15 + 0x1c) = 0;\n  *(undefined4 *)(iVar15 + 0x18) = 0;\n  *(undefined4 *)(iVar15 + 0x24) = 0xffffffff;\n  *(int *)(param_1 + 0xa0) = iVar9 + 1;\n  return iVar13;\n}\n\n" (function_definition "int FUN_0047820c(int param_1,int *param_2,uint param_3)\n\n{\n  uint *puVar1;\n  int *piVar2;\n  uint *puVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int *piVar7;\n  uint uVar8;\n  int iVar9;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  uint uVar14;\n  int iVar15;\n  undefined2 uVar16;\n  int iVar17;\n  \n  uVar8 = param_2[1];\n  iVar9 = *(int *)(param_1 + 0xa0);\n  puVar1 = *(uint **)(param_1 + 0x9c);\n  if ((int)uVar8 < 1) {\n    uVar16 = 0;\n    if (iVar9 < 1) {\n      iVar15 = 0;\n      uVar14 = 0;\n      iVar13 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    uVar14 = 0;\nLAB_00478278:\n    iVar13 = 0;\n    puVar3 = puVar1;\n    do {\n      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }\nLAB_00478288:\n      iVar13 = iVar13 + 1;\n      puVar3 = puVar3 + 10;\n    } while (iVar13 < iVar9);\n    iVar15 = iVar13 * 0x28;\n    if ((int)uVar8 < 1) {\n      uVar16 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    piVar6 = (int *)*param_2;\n  }\n  else {\n    piVar6 = (int *)*param_2;\n    uVar14 = 0;\n    piVar5 = piVar6;\n    do {\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    } while (piVar6 + uVar8 * 2 != piVar2);\n    iVar15 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    iVar13 = 0;\n  }\n  iVar12 = 0;\n  iVar17 = 0;\n  uVar11 = 0;\n  do {\n    while( true ) {\n      iVar4 = *piVar6 * 4;\n      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);\n      if (uVar10 != 0) break;\n      iVar12 = iVar12 + 1;\n      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar11;\n      piVar6 = piVar6 + 2;\n      if ((int)uVar8 <= iVar12) goto LAB_00478408;\n    }\n    if ((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0) {\n      uVar11 = uVar11 | uVar10;\n    }\n    uVar16 = (undefined2)uVar11;\n    if (iVar17 == 0) {\n      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);\n    }\n    iVar12 = iVar12 + 1;\n    piVar6 = piVar6 + 2;\n  } while (iVar12 < (int)uVar8);\nLAB_00478408:\n  if (*(int *)(param_1 + 0xa4) <= iVar9) {\n    puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);\n    uVar8 = param_2[1];\n  }\n  *(uint **)(param_1 + 0x9c) = puVar1;\n  *(uint *)((int)puVar1 + iVar15) = uVar14;\n  FUN_004781bc((uint *)((int)puVar1 + iVar15) + 1,uVar8);\n  FUN_00475cdc(param_2,param_2 + 1,*(int *)(param_1 + 0x9c) + iVar15 + 4);\n  iVar15 = *(int *)(param_1 + 0x9c) + iVar15;\n  *(char *)(iVar15 + 0x10) = (char)param_3;\n  iVar9 = *(int *)(param_1 + 0xa0);\n  *(undefined2 *)(iVar15 + 0x12) = uVar16;\n  *(int *)(iVar15 + 0x14) = iVar17;\n  *(undefined4 *)(iVar15 + 0x1c) = 0;\n  *(undefined4 *)(iVar15 + 0x18) = 0;\n  *(undefined4 *)(iVar15 + 0x24) = 0xffffffff;\n  *(int *)(param_1 + 0xa0) = iVar9 + 1;\n  return iVar13;\n}" primitive_type (function_declarator "FUN_0047820c(int param_1,int *param_2,uint param_3)" identifier (parameter_list "(int param_1,int *param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  uint *puVar1;\n  int *piVar2;\n  uint *puVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int *piVar7;\n  uint uVar8;\n  int iVar9;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  uint uVar14;\n  int iVar15;\n  undefined2 uVar16;\n  int iVar17;\n  \n  uVar8 = param_2[1];\n  iVar9 = *(int *)(param_1 + 0xa0);\n  puVar1 = *(uint **)(param_1 + 0x9c);\n  if ((int)uVar8 < 1) {\n    uVar16 = 0;\n    if (iVar9 < 1) {\n      iVar15 = 0;\n      uVar14 = 0;\n      iVar13 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    uVar14 = 0;\nLAB_00478278:\n    iVar13 = 0;\n    puVar3 = puVar1;\n    do {\n      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }\nLAB_00478288:\n      iVar13 = iVar13 + 1;\n      puVar3 = puVar3 + 10;\n    } while (iVar13 < iVar9);\n    iVar15 = iVar13 * 0x28;\n    if ((int)uVar8 < 1) {\n      uVar16 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    piVar6 = (int *)*param_2;\n  }\n  else {\n    piVar6 = (int *)*param_2;\n    uVar14 = 0;\n    piVar5 = piVar6;\n    do {\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    } while (piVar6 + uVar8 * 2 != piVar2);\n    iVar15 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    iVar13 = 0;\n  }\n  iVar12 = 0;\n  iVar17 = 0;\n  uVar11 = 0;\n  do {\n    while( true ) {\n      iVar4 = *piVar6 * 4;\n      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);\n      if (uVar10 != 0) break;\n      iVar12 = iVar12 + 1;\n      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar11;\n      piVar6 = piVar6 + 2;\n      if ((int)uVar8 <= iVar12) goto LAB_00478408;\n    }\n    if ((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0) {\n      uVar11 = uVar11 | uVar10;\n    }\n    uVar16 = (undefined2)uVar11;\n    if (iVar17 == 0) {\n      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);\n    }\n    iVar12 = iVar12 + 1;\n    piVar6 = piVar6 + 2;\n  } while (iVar12 < (int)uVar8);\nLAB_00478408:\n  if (*(int *)(param_1 + 0xa4) <= iVar9) {\n    puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);\n    uVar8 = param_2[1];\n  }\n  *(uint **)(param_1 + 0x9c) = puVar1;\n  *(uint *)((int)puVar1 + iVar15) = uVar14;\n  FUN_004781bc((uint *)((int)puVar1 + iVar15) + 1,uVar8);\n  FUN_00475cdc(param_2,param_2 + 1,*(int *)(param_1 + 0x9c) + iVar15 + 4);\n  iVar15 = *(int *)(param_1 + 0x9c) + iVar15;\n  *(char *)(iVar15 + 0x10) = (char)param_3;\n  iVar9 = *(int *)(param_1 + 0xa0);\n  *(undefined2 *)(iVar15 + 0x12) = uVar16;\n  *(int *)(iVar15 + 0x14) = iVar17;\n  *(undefined4 *)(iVar15 + 0x1c) = 0;\n  *(undefined4 *)(iVar15 + 0x18) = 0;\n  *(undefined4 *)(iVar15 + 0x24) = 0xffffffff;\n  *(int *)(param_1 + 0xa0) = iVar9 + 1;\n  return iVar13;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "uint uVar14;" type_identifier identifier ;) (declaration "int iVar15;" primitive_type identifier ;) (declaration "undefined2 uVar16;" type_identifier identifier ;) (declaration "int iVar17;" primitive_type identifier ;) (expression_statement "uVar8 = param_2[1];" (assignment_expression "uVar8 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "iVar9 = *(int *)(param_1 + 0xa0);" (assignment_expression "iVar9 = *(int *)(param_1 + 0xa0)" identifier = (pointer_expression "*(int *)(param_1 + 0xa0)" * (cast_expression "(int *)(param_1 + 0xa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) ))))) ;) (expression_statement "puVar1 = *(uint **)(param_1 + 0x9c);" (assignment_expression "puVar1 = *(uint **)(param_1 + 0x9c)" identifier = (pointer_expression "*(uint **)(param_1 + 0x9c)" * (cast_expression "(uint **)(param_1 + 0x9c)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x9c)" ( (binary_expression "param_1 + 0x9c" identifier + number_literal) ))))) ;) (if_statement "if ((int)uVar8 < 1) {\n    uVar16 = 0;\n    if (iVar9 < 1) {\n      iVar15 = 0;\n      uVar14 = 0;\n      iVar13 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    uVar14 = 0;\nLAB_00478278:\n    iVar13 = 0;\n    puVar3 = puVar1;\n    do {\n      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }\nLAB_00478288:\n      iVar13 = iVar13 + 1;\n      puVar3 = puVar3 + 10;\n    } while (iVar13 < iVar9);\n    iVar15 = iVar13 * 0x28;\n    if ((int)uVar8 < 1) {\n      uVar16 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    piVar6 = (int *)*param_2;\n  }\n  else {\n    piVar6 = (int *)*param_2;\n    uVar14 = 0;\n    piVar5 = piVar6;\n    do {\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    } while (piVar6 + uVar8 * 2 != piVar2);\n    iVar15 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    iVar13 = 0;\n  }" if (parenthesized_expression "((int)uVar8 < 1)" ( (binary_expression "(int)uVar8 < 1" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    uVar16 = 0;\n    if (iVar9 < 1) {\n      iVar15 = 0;\n      uVar14 = 0;\n      iVar13 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    uVar14 = 0;\nLAB_00478278:\n    iVar13 = 0;\n    puVar3 = puVar1;\n    do {\n      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }\nLAB_00478288:\n      iVar13 = iVar13 + 1;\n      puVar3 = puVar3 + 10;\n    } while (iVar13 < iVar9);\n    iVar15 = iVar13 * 0x28;\n    if ((int)uVar8 < 1) {\n      uVar16 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    piVar6 = (int *)*param_2;\n  }" { (expression_statement "uVar16 = 0;" (assignment_expression "uVar16 = 0" identifier = number_literal) ;) (if_statement "if (iVar9 < 1) {\n      iVar15 = 0;\n      uVar14 = 0;\n      iVar13 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }" if (parenthesized_expression "(iVar9 < 1)" ( (binary_expression "iVar9 < 1" identifier < number_literal) )) (compound_statement "{\n      iVar15 = 0;\n      uVar14 = 0;\n      iVar13 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }" { (expression_statement "iVar15 = 0;" (assignment_expression "iVar15 = 0" identifier = number_literal) ;) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" identifier = number_literal) ;) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (expression_statement "iVar17 = 0;" (assignment_expression "iVar17 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00478408;" goto statement_identifier ;) })) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00478278:\n    iVar13 = 0;" statement_identifier : (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;)) (expression_statement "puVar3 = puVar1;" (assignment_expression "puVar3 = puVar1" identifier = identifier) ;) (do_statement "do {\n      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }\nLAB_00478288:\n      iVar13 = iVar13 + 1;\n      puVar3 = puVar3 + 10;\n    } while (iVar13 < iVar9);" do (compound_statement "{\n      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }\nLAB_00478288:\n      iVar13 = iVar13 + 1;\n      puVar3 = puVar3 + 10;\n    }" { (if_statement "if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }" if (parenthesized_expression "(((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3))" ( (binary_expression "((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)" (parenthesized_expression "((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8))" ( (binary_expression "(*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)" (parenthesized_expression "(*puVar3 == uVar14)" ( (binary_expression "*puVar3 == uVar14" (pointer_expression "*puVar3" * identifier) == identifier) )) && (parenthesized_expression "(uVar11 = puVar3[2], uVar11 == uVar8)" ( (comma_expression "uVar11 = puVar3[2], uVar11 == uVar8" (assignment_expression "uVar11 = puVar3[2]" identifier = (subscript_expression "puVar3[2]" identifier [ number_literal ])) , (binary_expression "uVar11 == uVar8" identifier == identifier)) ))) )) && (parenthesized_expression "(*(byte *)(puVar3 + 4) == param_3)" ( (binary_expression "*(byte *)(puVar3 + 4) == param_3" (pointer_expression "*(byte *)(puVar3 + 4)" * (cast_expression "(byte *)(puVar3 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) == identifier) ))) )) (compound_statement "{\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }" { (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (if_statement "if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }" if (parenthesized_expression "(0 < (int)uVar8)" ( (binary_expression "0 < (int)uVar8" number_literal < (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }" { (expression_statement "piVar6 = (int *)*param_2;" (assignment_expression "piVar6 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "piVar5 = (int *)puVar3[1];" (assignment_expression "piVar5 = (int *)puVar3[1]" identifier = (cast_expression "(int *)puVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[1]" identifier [ number_literal ]))) ;) (if_statement "if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;" if (parenthesized_expression "((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6))" ( (binary_expression "(piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)" (parenthesized_expression "(piVar6[1] != piVar5[1])" ( (binary_expression "piVar6[1] != piVar5[1]" (subscript_expression "piVar6[1]" identifier [ number_literal ]) != (subscript_expression "piVar5[1]" identifier [ number_literal ])) )) || (parenthesized_expression "(*piVar5 != *piVar6)" ( (binary_expression "*piVar5 != *piVar6" (pointer_expression "*piVar5" * identifier) != (pointer_expression "*piVar6" * identifier)) ))) )) (goto_statement "goto LAB_00478288;" goto statement_identifier ;)) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (do_statement "do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));" do (compound_statement "{\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          }" { (expression_statement "piVar7 = piVar6 + 2;" (assignment_expression "piVar7 = piVar6 + 2" identifier = (binary_expression "piVar6 + 2" identifier + number_literal)) ;) (expression_statement "piVar2 = piVar5 + 2;" (assignment_expression "piVar2 = piVar5 + 2" identifier = (binary_expression "piVar5 + 2" identifier + number_literal)) ;) (expression_statement "uVar10 = uVar10 + 1;" (assignment_expression "uVar10 = uVar10 + 1" identifier = (binary_expression "uVar10 + 1" identifier + number_literal)) ;) (if_statement "if (uVar11 == uVar10) {\n              return iVar13;\n            }" if (parenthesized_expression "(uVar11 == uVar10)" ( (binary_expression "uVar11 == uVar10" identifier == identifier) )) (compound_statement "{\n              return iVar13;\n            }" { (return_statement "return iVar13;" return identifier ;) })) }) while (parenthesized_expression "((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2))" ( (binary_expression "(piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2)" (parenthesized_expression "(piVar6[3] == piVar5[3])" ( (binary_expression "piVar6[3] == piVar5[3]" (subscript_expression "piVar6[3]" identifier [ number_literal ]) == (subscript_expression "piVar5[3]" identifier [ number_literal ])) )) && (parenthesized_expression "(piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2)" ( (comma_expression "piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2" (assignment_expression "piVar5 = piVar2" identifier = identifier) , (comma_expression "piVar6 = piVar7, *piVar7 == *piVar2" (assignment_expression "piVar6 = piVar7" identifier = identifier) , (binary_expression "*piVar7 == *piVar2" (pointer_expression "*piVar7" * identifier) == (pointer_expression "*piVar2" * identifier)))) ))) )) ;) })) (if_statement "if (uVar11 == uVar10) {\n          return iVar13;\n        }" if (parenthesized_expression "(uVar11 == uVar10)" ( (binary_expression "uVar11 == uVar10" identifier == identifier) )) (compound_statement "{\n          return iVar13;\n        }" { (return_statement "return iVar13;" return identifier ;) })) })) (labeled_statement "LAB_00478288:\n      iVar13 = iVar13 + 1;" statement_identifier : (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" identifier = (binary_expression "iVar13 + 1" identifier + number_literal)) ;)) (expression_statement "puVar3 = puVar3 + 10;" (assignment_expression "puVar3 = puVar3 + 10" identifier = (binary_expression "puVar3 + 10" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar13 < iVar9)" ( (binary_expression "iVar13 < iVar9" identifier < identifier) )) ;) (expression_statement "iVar15 = iVar13 * 0x28;" (assignment_expression "iVar15 = iVar13 * 0x28" identifier = (binary_expression "iVar13 * 0x28" identifier * number_literal)) ;) (if_statement "if ((int)uVar8 < 1) {\n      uVar16 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }" if (parenthesized_expression "((int)uVar8 < 1)" ( (binary_expression "(int)uVar8 < 1" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      uVar16 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }" { (expression_statement "uVar16 = 0;" (assignment_expression "uVar16 = 0" identifier = number_literal) ;) (expression_statement "iVar17 = 0;" (assignment_expression "iVar17 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00478408;" goto statement_identifier ;) })) (expression_statement "piVar6 = (int *)*param_2;" (assignment_expression "piVar6 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) }) (else_clause "else {\n    piVar6 = (int *)*param_2;\n    uVar14 = 0;\n    piVar5 = piVar6;\n    do {\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    } while (piVar6 + uVar8 * 2 != piVar2);\n    iVar15 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    iVar13 = 0;\n  }" else (compound_statement "{\n    piVar6 = (int *)*param_2;\n    uVar14 = 0;\n    piVar5 = piVar6;\n    do {\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    } while (piVar6 + uVar8 * 2 != piVar2);\n    iVar15 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    iVar13 = 0;\n  }" { (expression_statement "piVar6 = (int *)*param_2;" (assignment_expression "piVar6 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" identifier = number_literal) ;) (expression_statement "piVar5 = piVar6;" (assignment_expression "piVar5 = piVar6" identifier = identifier) ;) (do_statement "do {\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    } while (piVar6 + uVar8 * 2 != piVar2);" do (compound_statement "{\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    }" { (expression_statement "piVar2 = piVar5 + 2;" (assignment_expression "piVar2 = piVar5 + 2" identifier = (binary_expression "piVar5 + 2" identifier + number_literal)) ;) (expression_statement "uVar14 = uVar14 ^ piVar5[1] + *piVar5;" (assignment_expression "uVar14 = uVar14 ^ piVar5[1] + *piVar5" identifier = (binary_expression "uVar14 ^ piVar5[1] + *piVar5" identifier ^ (binary_expression "piVar5[1] + *piVar5" (subscript_expression "piVar5[1]" identifier [ number_literal ]) + (pointer_expression "*piVar5" * identifier)))) ;) (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" identifier = identifier) ;) }) while (parenthesized_expression "(piVar6 + uVar8 * 2 != piVar2)" ( (binary_expression "piVar6 + uVar8 * 2 != piVar2" (binary_expression "piVar6 + uVar8 * 2" identifier + (binary_expression "uVar8 * 2" identifier * number_literal)) != identifier) )) ;) (expression_statement "iVar15 = 0;" (assignment_expression "iVar15 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar9) goto LAB_00478278;" if (parenthesized_expression "(0 < iVar9)" ( (binary_expression "0 < iVar9" number_literal < identifier) )) (goto_statement "goto LAB_00478278;" goto statement_identifier ;)) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) }))) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (expression_statement "iVar17 = 0;" (assignment_expression "iVar17 = 0" identifier = number_literal) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (do_statement "do {\n    while( true ) {\n      iVar4 = *piVar6 * 4;\n      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);\n      if (uVar10 != 0) break;\n      iVar12 = iVar12 + 1;\n      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar11;\n      piVar6 = piVar6 + 2;\n      if ((int)uVar8 <= iVar12) goto LAB_00478408;\n    }\n    if ((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0) {\n      uVar11 = uVar11 | uVar10;\n    }\n    uVar16 = (undefined2)uVar11;\n    if (iVar17 == 0) {\n      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);\n    }\n    iVar12 = iVar12 + 1;\n    piVar6 = piVar6 + 2;\n  } while (iVar12 < (int)uVar8);" do (compound_statement "{\n    while( true ) {\n      iVar4 = *piVar6 * 4;\n      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);\n      if (uVar10 != 0) break;\n      iVar12 = iVar12 + 1;\n      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar11;\n      piVar6 = piVar6 + 2;\n      if ((int)uVar8 <= iVar12) goto LAB_00478408;\n    }\n    if ((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0) {\n      uVar11 = uVar11 | uVar10;\n    }\n    uVar16 = (undefined2)uVar11;\n    if (iVar17 == 0) {\n      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);\n    }\n    iVar12 = iVar12 + 1;\n    piVar6 = piVar6 + 2;\n  }" { (while_statement "while( true ) {\n      iVar4 = *piVar6 * 4;\n      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);\n      if (uVar10 != 0) break;\n      iVar12 = iVar12 + 1;\n      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar11;\n      piVar6 = piVar6 + 2;\n      if ((int)uVar8 <= iVar12) goto LAB_00478408;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar4 = *piVar6 * 4;\n      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);\n      if (uVar10 != 0) break;\n      iVar12 = iVar12 + 1;\n      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar11;\n      piVar6 = piVar6 + 2;\n      if ((int)uVar8 <= iVar12) goto LAB_00478408;\n    }" { (expression_statement "iVar4 = *piVar6 * 4;" (assignment_expression "iVar4 = *piVar6 * 4" identifier = (binary_expression "*piVar6 * 4" (pointer_expression "*piVar6" * identifier) * number_literal)) ;) (expression_statement "uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);" (assignment_expression "uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4)" identifier = (pointer_expression "*(uint *)(*(int *)(param_1 + 0xb0) + iVar4)" * (cast_expression "(uint *)(*(int *)(param_1 + 0xb0) + iVar4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0xb0) + iVar4)" ( (binary_expression "*(int *)(param_1 + 0xb0) + iVar4" (pointer_expression "*(int *)(param_1 + 0xb0)" * (cast_expression "(int *)(param_1 + 0xb0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb0)" ( (binary_expression "param_1 + 0xb0" identifier + number_literal) )))) + identifier) ))))) ;) (if_statement "if (uVar10 != 0) break;" if (parenthesized_expression "(uVar10 != 0)" ( (binary_expression "uVar10 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (if_statement "if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }" if (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112" (pointer_expression "*(int *)(*(int *)(param_1 + 0x4c) + iVar4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x4c) + iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x4c) + iVar4)" ( (binary_expression "*(int *)(param_1 + 0x4c) + iVar4" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) + identifier) )))) == number_literal) )) (compound_statement "{\n        uVar11 = 0x1ff;\n      }" { (expression_statement "uVar11 = 0x1ff;" (assignment_expression "uVar11 = 0x1ff" identifier = number_literal) ;) })) (expression_statement "uVar16 = (undefined2)uVar11;" (assignment_expression "uVar16 = (undefined2)uVar11" identifier = (cast_expression "(undefined2)uVar11" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" identifier = (binary_expression "piVar6 + 2" identifier + number_literal)) ;) (if_statement "if ((int)uVar8 <= iVar12) goto LAB_00478408;" if (parenthesized_expression "((int)uVar8 <= iVar12)" ( (binary_expression "(int)uVar8 <= iVar12" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) (goto_statement "goto LAB_00478408;" goto statement_identifier ;)) })) (if_statement "if ((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0) {\n      uVar11 = uVar11 | uVar10;\n    }" if (parenthesized_expression "((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0)" ( (binary_expression "(((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0" (parenthesized_expression "(((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7)" ( (binary_expression "((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7" (binary_expression "((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3" (parenthesized_expression "((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10)" ( (binary_expression "(int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10" (binary_expression "(int)uVar10 >> 3 | (int)uVar10 >> 6" (binary_expression "(int)uVar10 >> 3" (cast_expression "(int)uVar10" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) | (binary_expression "(int)uVar10 >> 6" (cast_expression "(int)uVar10" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) | identifier) )) & identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      uVar11 = uVar11 | uVar10;\n    }" { (expression_statement "uVar11 = uVar11 | uVar10;" (assignment_expression "uVar11 = uVar11 | uVar10" identifier = (binary_expression "uVar11 | uVar10" identifier | identifier)) ;) })) (expression_statement "uVar16 = (undefined2)uVar11;" (assignment_expression "uVar16 = (undefined2)uVar11" identifier = (cast_expression "(undefined2)uVar11" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;) (if_statement "if (iVar17 == 0) {\n      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);\n    }" if (parenthesized_expression "(iVar17 == 0)" ( (binary_expression "iVar17 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);\n    }" { (expression_statement "iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);" (assignment_expression "iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x4c) + iVar4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x4c) + iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x4c) + iVar4)" ( (binary_expression "*(int *)(param_1 + 0x4c) + iVar4" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) + identifier) ))))) ;) })) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" identifier = (binary_expression "piVar6 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar12 < (int)uVar8)" ( (binary_expression "iVar12 < (int)uVar8" identifier < (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) (labeled_statement "LAB_00478408:\n  if (*(int *)(param_1 + 0xa4) <= iVar9) {\n    puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);\n    uVar8 = param_2[1];\n  }" statement_identifier : (if_statement "if (*(int *)(param_1 + 0xa4) <= iVar9) {\n    puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);\n    uVar8 = param_2[1];\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xa4) <= iVar9)" ( (binary_expression "*(int *)(param_1 + 0xa4) <= iVar9" (pointer_expression "*(int *)(param_1 + 0xa4)" * (cast_expression "(int *)(param_1 + 0xa4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa4)" ( (binary_expression "param_1 + 0xa4" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);\n    uVar8 = param_2[1];\n  }" { (expression_statement "puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);" (assignment_expression "puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28)" identifier = (cast_expression "(uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28)" identifier (argument_list "(puVar1,param_1 + 0xa4,1,0xffffffff,0x28)" ( identifier , (binary_expression "param_1 + 0xa4" identifier + number_literal) , number_literal , number_literal , number_literal ))))) ;) (expression_statement "uVar8 = param_2[1];" (assignment_expression "uVar8 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) }))) (expression_statement "*(uint **)(param_1 + 0x9c) = puVar1;" (assignment_expression "*(uint **)(param_1 + 0x9c) = puVar1" (pointer_expression "*(uint **)(param_1 + 0x9c)" * (cast_expression "(uint **)(param_1 + 0x9c)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x9c)" ( (binary_expression "param_1 + 0x9c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)((int)puVar1 + iVar15) = uVar14;" (assignment_expression "*(uint *)((int)puVar1 + iVar15) = uVar14" (pointer_expression "*(uint *)((int)puVar1 + iVar15)" * (cast_expression "(uint *)((int)puVar1 + iVar15)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + iVar15)" ( (binary_expression "(int)puVar1 + iVar15" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = identifier) ;) (expression_statement "FUN_004781bc((uint *)((int)puVar1 + iVar15) + 1,uVar8);" (call_expression "FUN_004781bc((uint *)((int)puVar1 + iVar15) + 1,uVar8)" identifier (argument_list "((uint *)((int)puVar1 + iVar15) + 1,uVar8)" ( (binary_expression "(uint *)((int)puVar1 + iVar15) + 1" (cast_expression "(uint *)((int)puVar1 + iVar15)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + iVar15)" ( (binary_expression "(int)puVar1 + iVar15" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) + number_literal) , identifier ))) ;) (expression_statement "FUN_00475cdc(param_2,param_2 + 1,*(int *)(param_1 + 0x9c) + iVar15 + 4);" (call_expression "FUN_00475cdc(param_2,param_2 + 1,*(int *)(param_1 + 0x9c) + iVar15 + 4)" identifier (argument_list "(param_2,param_2 + 1,*(int *)(param_1 + 0x9c) + iVar15 + 4)" ( identifier , (binary_expression "param_2 + 1" identifier + number_literal) , (binary_expression "*(int *)(param_1 + 0x9c) + iVar15 + 4" (binary_expression "*(int *)(param_1 + 0x9c) + iVar15" (pointer_expression "*(int *)(param_1 + 0x9c)" * (cast_expression "(int *)(param_1 + 0x9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x9c)" ( (binary_expression "param_1 + 0x9c" identifier + number_literal) )))) + identifier) + number_literal) ))) ;) (expression_statement "iVar15 = *(int *)(param_1 + 0x9c) + iVar15;" (assignment_expression "iVar15 = *(int *)(param_1 + 0x9c) + iVar15" identifier = (binary_expression "*(int *)(param_1 + 0x9c) + iVar15" (pointer_expression "*(int *)(param_1 + 0x9c)" * (cast_expression "(int *)(param_1 + 0x9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x9c)" ( (binary_expression "param_1 + 0x9c" identifier + number_literal) )))) + identifier)) ;) (expression_statement "*(char *)(iVar15 + 0x10) = (char)param_3;" (assignment_expression "*(char *)(iVar15 + 0x10) = (char)param_3" (pointer_expression "*(char *)(iVar15 + 0x10)" * (cast_expression "(char *)(iVar15 + 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar15 + 0x10)" ( (binary_expression "iVar15 + 0x10" identifier + number_literal) )))) = (cast_expression "(char)param_3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "iVar9 = *(int *)(param_1 + 0xa0);" (assignment_expression "iVar9 = *(int *)(param_1 + 0xa0)" identifier = (pointer_expression "*(int *)(param_1 + 0xa0)" * (cast_expression "(int *)(param_1 + 0xa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) ))))) ;) (expression_statement "*(undefined2 *)(iVar15 + 0x12) = uVar16;" (assignment_expression "*(undefined2 *)(iVar15 + 0x12) = uVar16" (pointer_expression "*(undefined2 *)(iVar15 + 0x12)" * (cast_expression "(undefined2 *)(iVar15 + 0x12)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar15 + 0x12)" ( (binary_expression "iVar15 + 0x12" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar15 + 0x14) = iVar17;" (assignment_expression "*(int *)(iVar15 + 0x14) = iVar17" (pointer_expression "*(int *)(iVar15 + 0x14)" * (cast_expression "(int *)(iVar15 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar15 + 0x14)" ( (binary_expression "iVar15 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar15 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(iVar15 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(iVar15 + 0x1c)" * (cast_expression "(undefined4 *)(iVar15 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar15 + 0x1c)" ( (binary_expression "iVar15 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar15 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(iVar15 + 0x18) = 0" (pointer_expression "*(undefined4 *)(iVar15 + 0x18)" * (cast_expression "(undefined4 *)(iVar15 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar15 + 0x18)" ( (binary_expression "iVar15 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar15 + 0x24) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar15 + 0x24) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar15 + 0x24)" * (cast_expression "(undefined4 *)(iVar15 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar15 + 0x24)" ( (binary_expression "iVar15 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0xa0) = iVar9 + 1;" (assignment_expression "*(int *)(param_1 + 0xa0) = iVar9 + 1" (pointer_expression "*(int *)(param_1 + 0xa0)" * (cast_expression "(int *)(param_1 + 0xa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (return_statement "return iVar13;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nstate_num state_index(dfa *d,position_set *s,int context)\n\n{\n  dfa_state *pdVar1;\n  position *ppVar2;\n  dfa_state *pdVar3;\n  int iVar4;\n  size_t *psVar5;\n  position *ppVar6;\n  position *ppVar7;\n  position *ppVar8;\n  idx_t size;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  state_num sVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  undefined2 uVar16;\n  token_conflict tVar17;\n  \n  size = s->nelem;\n  iVar9 = d->sindex;\n  pdVar1 = d->states;\n  if (size < 1) {\n    uVar16 = 0;\n    if (iVar9 < 1) {\n      iVar14 = 0;\n      uVar13 = 0;\n      sVar12 = 0;\n      tVar17 = 0;\n      goto LAB_00478408;\n    }\n    uVar13 = 0;\nLAB_00478278:\n    sVar12 = 0;\n    pdVar3 = pdVar1;\n    do {\n      if (((pdVar3->hash == uVar13) && (iVar14 = (pdVar3->elems).nelem, iVar14 == size)) &&\n         ((uint)pdVar3->context == context)) {\n        iVar10 = 0;\n        if (0 < size) {\n          ppVar7 = s->elems;\n          ppVar6 = (pdVar3->elems).elems;\n          if ((ppVar7->constraint != ppVar6->constraint) || (ppVar6->index != ppVar7->index))\n          goto LAB_00478288;\n          iVar10 = 0;\n          do {\n            ppVar8 = ppVar7 + 1;\n            ppVar2 = ppVar6 + 1;\n            iVar10 = iVar10 + 1;\n            if (iVar14 == iVar10) {\n              return sVar12;\n            }\n          } while ((ppVar7[1].constraint == ppVar6[1].constraint) &&\n                  (ppVar6 = ppVar2, ppVar7 = ppVar8, ppVar8->index == ppVar2->index));\n        }\n        if (iVar14 == iVar10) {\n          return sVar12;\n        }\n      }\nLAB_00478288:\n      sVar12 = sVar12 + 1;\n      pdVar3 = pdVar3 + 1;\n    } while (sVar12 < iVar9);\n    iVar14 = sVar12 * 0x28;\n    if (size < 1) {\n      uVar16 = 0;\n      tVar17 = 0;\n      goto LAB_00478408;\n    }\n    ppVar7 = s->elems;\n  }\n  else {\n    ppVar7 = s->elems;\n    uVar13 = 0;\n    ppVar6 = ppVar7;\n    do {\n      ppVar2 = ppVar6 + 1;\n      uVar13 = uVar13 ^ ppVar6->constraint + ppVar6->index;\n      ppVar6 = ppVar2;\n    } while (ppVar7 + size != ppVar2);\n    iVar14 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    sVar12 = 0;\n  }\n  iVar10 = 0;\n  tVar17 = 0;\n  uVar15 = 0;\n  do {\n    while( true ) {\n      iVar4 = ppVar7->index;\n      uVar11 = d->constraints[iVar4];\n      if (uVar11 != 0) break;\n      iVar10 = iVar10 + 1;\n      if (d->tokens[iVar4] == 0x112) {\n        uVar15 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar15;\n      ppVar7 = ppVar7 + 1;\n      if (size <= iVar10) goto LAB_00478408;\n    }\n    if ((((int)uVar11 >> 3 | (int)uVar11 >> 6 | uVar11) & context & 7U) != 0) {\n      uVar15 = uVar15 | uVar11;\n    }\n    uVar16 = (undefined2)uVar15;\n    if (tVar17 == 0) {\n      tVar17 = d->tokens[iVar4];\n    }\n    iVar10 = iVar10 + 1;\n    ppVar7 = ppVar7 + 1;\n  } while (iVar10 < size);\nLAB_00478408:\n  if (d->salloc <= iVar9) {\n    pdVar1 = (dfa_state *)xpalloc(pdVar1,&d->salloc,1,-1,0x28);\n    size = s->nelem;\n  }\n  psVar5 = (size_t *)((int)&pdVar1->hash + iVar14);\n  d->states = pdVar1;\n  *psVar5 = uVar13;\n  alloc_position_set((position_set *)(psVar5 + 1),size);\n  copy((EVP_PKEY_CTX *)s,(EVP_PKEY_CTX *)&s->nelem);\n  pdVar1 = d->states;\n  (&pdVar1->context)[iVar14] = (uchar)context;\n  iVar9 = d->sindex;\n  *(undefined2 *)((int)&pdVar1->constraint + iVar14) = uVar16;\n  *(token_conflict *)((int)&pdVar1->first_end + iVar14) = tVar17;\n  *(undefined4 *)((int)&(pdVar1->mbps).nelem + iVar14) = 0;\n  *(undefined4 *)((int)&(pdVar1->mbps).elems + iVar14) = 0;\n  *(undefined4 *)((int)&pdVar1->mb_trindex + iVar14) = 0xffffffff;\n  d->sindex = iVar9 + 1;\n  return sVar12;\n}\n\n" comment (function_definition "state_num state_index(dfa *d,position_set *s,int context)\n\n{\n  dfa_state *pdVar1;\n  position *ppVar2;\n  dfa_state *pdVar3;\n  int iVar4;\n  size_t *psVar5;\n  position *ppVar6;\n  position *ppVar7;\n  position *ppVar8;\n  idx_t size;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  state_num sVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  undefined2 uVar16;\n  token_conflict tVar17;\n  \n  size = s->nelem;\n  iVar9 = d->sindex;\n  pdVar1 = d->states;\n  if (size < 1) {\n    uVar16 = 0;\n    if (iVar9 < 1) {\n      iVar14 = 0;\n      uVar13 = 0;\n      sVar12 = 0;\n      tVar17 = 0;\n      goto LAB_00478408;\n    }\n    uVar13 = 0;\nLAB_00478278:\n    sVar12 = 0;\n    pdVar3 = pdVar1;\n    do {\n      if (((pdVar3->hash == uVar13) && (iVar14 = (pdVar3->elems).nelem, iVar14 == size)) &&\n         ((uint)pdVar3->context == context)) {\n        iVar10 = 0;\n        if (0 < size) {\n          ppVar7 = s->elems;\n          ppVar6 = (pdVar3->elems).elems;\n          if ((ppVar7->constraint != ppVar6->constraint) || (ppVar6->index != ppVar7->index))\n          goto LAB_00478288;\n          iVar10 = 0;\n          do {\n            ppVar8 = ppVar7 + 1;\n            ppVar2 = ppVar6 + 1;\n            iVar10 = iVar10 + 1;\n            if (iVar14 == iVar10) {\n              return sVar12;\n            }\n          } while ((ppVar7[1].constraint == ppVar6[1].constraint) &&\n                  (ppVar6 = ppVar2, ppVar7 = ppVar8, ppVar8->index == ppVar2->index));\n        }\n        if (iVar14 == iVar10) {\n          return sVar12;\n        }\n      }\nLAB_00478288:\n      sVar12 = sVar12 + 1;\n      pdVar3 = pdVar3 + 1;\n    } while (sVar12 < iVar9);\n    iVar14 = sVar12 * 0x28;\n    if (size < 1) {\n      uVar16 = 0;\n      tVar17 = 0;\n      goto LAB_00478408;\n    }\n    ppVar7 = s->elems;\n  }\n  else {\n    ppVar7 = s->elems;\n    uVar13 = 0;\n    ppVar6 = ppVar7;\n    do {\n      ppVar2 = ppVar6 + 1;\n      uVar13 = uVar13 ^ ppVar6->constraint + ppVar6->index;\n      ppVar6 = ppVar2;\n    } while (ppVar7 + size != ppVar2);\n    iVar14 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    sVar12 = 0;\n  }\n  iVar10 = 0;\n  tVar17 = 0;\n  uVar15 = 0;\n  do {\n    while( true ) {\n      iVar4 = ppVar7->index;\n      uVar11 = d->constraints[iVar4];\n      if (uVar11 != 0) break;\n      iVar10 = iVar10 + 1;\n      if (d->tokens[iVar4] == 0x112) {\n        uVar15 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar15;\n      ppVar7 = ppVar7 + 1;\n      if (size <= iVar10) goto LAB_00478408;\n    }\n    if ((((int)uVar11 >> 3 | (int)uVar11 >> 6 | uVar11) & context & 7U) != 0) {\n      uVar15 = uVar15 | uVar11;\n    }\n    uVar16 = (undefined2)uVar15;\n    if (tVar17 == 0) {\n      tVar17 = d->tokens[iVar4];\n    }\n    iVar10 = iVar10 + 1;\n    ppVar7 = ppVar7 + 1;\n  } while (iVar10 < size);\nLAB_00478408:\n  if (d->salloc <= iVar9) {\n    pdVar1 = (dfa_state *)xpalloc(pdVar1,&d->salloc,1,-1,0x28);\n    size = s->nelem;\n  }\n  psVar5 = (size_t *)((int)&pdVar1->hash + iVar14);\n  d->states = pdVar1;\n  *psVar5 = uVar13;\n  alloc_position_set((position_set *)(psVar5 + 1),size);\n  copy((EVP_PKEY_CTX *)s,(EVP_PKEY_CTX *)&s->nelem);\n  pdVar1 = d->states;\n  (&pdVar1->context)[iVar14] = (uchar)context;\n  iVar9 = d->sindex;\n  *(undefined2 *)((int)&pdVar1->constraint + iVar14) = uVar16;\n  *(token_conflict *)((int)&pdVar1->first_end + iVar14) = tVar17;\n  *(undefined4 *)((int)&(pdVar1->mbps).nelem + iVar14) = 0;\n  *(undefined4 *)((int)&(pdVar1->mbps).elems + iVar14) = 0;\n  *(undefined4 *)((int)&pdVar1->mb_trindex + iVar14) = 0xffffffff;\n  d->sindex = iVar9 + 1;\n  return sVar12;\n}" type_identifier (function_declarator "state_index(dfa *d,position_set *s,int context)" identifier (parameter_list "(dfa *d,position_set *s,int context)" ( (parameter_declaration "dfa *d" type_identifier (pointer_declarator "*d" * identifier)) , (parameter_declaration "position_set *s" type_identifier (pointer_declarator "*s" * identifier)) , (parameter_declaration "int context" primitive_type identifier) ))) (compound_statement "{\n  dfa_state *pdVar1;\n  position *ppVar2;\n  dfa_state *pdVar3;\n  int iVar4;\n  size_t *psVar5;\n  position *ppVar6;\n  position *ppVar7;\n  position *ppVar8;\n  idx_t size;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  state_num sVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  undefined2 uVar16;\n  token_conflict tVar17;\n  \n  size = s->nelem;\n  iVar9 = d->sindex;\n  pdVar1 = d->states;\n  if (size < 1) {\n    uVar16 = 0;\n    if (iVar9 < 1) {\n      iVar14 = 0;\n      uVar13 = 0;\n      sVar12 = 0;\n      tVar17 = 0;\n      goto LAB_00478408;\n    }\n    uVar13 = 0;\nLAB_00478278:\n    sVar12 = 0;\n    pdVar3 = pdVar1;\n    do {\n      if (((pdVar3->hash == uVar13) && (iVar14 = (pdVar3->elems).nelem, iVar14 == size)) &&\n         ((uint)pdVar3->context == context)) {\n        iVar10 = 0;\n        if (0 < size) {\n          ppVar7 = s->elems;\n          ppVar6 = (pdVar3->elems).elems;\n          if ((ppVar7->constraint != ppVar6->constraint) || (ppVar6->index != ppVar7->index))\n          goto LAB_00478288;\n          iVar10 = 0;\n          do {\n            ppVar8 = ppVar7 + 1;\n            ppVar2 = ppVar6 + 1;\n            iVar10 = iVar10 + 1;\n            if (iVar14 == iVar10) {\n              return sVar12;\n            }\n          } while ((ppVar7[1].constraint == ppVar6[1].constraint) &&\n                  (ppVar6 = ppVar2, ppVar7 = ppVar8, ppVar8->index == ppVar2->index));\n        }\n        if (iVar14 == iVar10) {\n          return sVar12;\n        }\n      }\nLAB_00478288:\n      sVar12 = sVar12 + 1;\n      pdVar3 = pdVar3 + 1;\n    } while (sVar12 < iVar9);\n    iVar14 = sVar12 * 0x28;\n    if (size < 1) {\n      uVar16 = 0;\n      tVar17 = 0;\n      goto LAB_00478408;\n    }\n    ppVar7 = s->elems;\n  }\n  else {\n    ppVar7 = s->elems;\n    uVar13 = 0;\n    ppVar6 = ppVar7;\n    do {\n      ppVar2 = ppVar6 + 1;\n      uVar13 = uVar13 ^ ppVar6->constraint + ppVar6->index;\n      ppVar6 = ppVar2;\n    } while (ppVar7 + size != ppVar2);\n    iVar14 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    sVar12 = 0;\n  }\n  iVar10 = 0;\n  tVar17 = 0;\n  uVar15 = 0;\n  do {\n    while( true ) {\n      iVar4 = ppVar7->index;\n      uVar11 = d->constraints[iVar4];\n      if (uVar11 != 0) break;\n      iVar10 = iVar10 + 1;\n      if (d->tokens[iVar4] == 0x112) {\n        uVar15 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar15;\n      ppVar7 = ppVar7 + 1;\n      if (size <= iVar10) goto LAB_00478408;\n    }\n    if ((((int)uVar11 >> 3 | (int)uVar11 >> 6 | uVar11) & context & 7U) != 0) {\n      uVar15 = uVar15 | uVar11;\n    }\n    uVar16 = (undefined2)uVar15;\n    if (tVar17 == 0) {\n      tVar17 = d->tokens[iVar4];\n    }\n    iVar10 = iVar10 + 1;\n    ppVar7 = ppVar7 + 1;\n  } while (iVar10 < size);\nLAB_00478408:\n  if (d->salloc <= iVar9) {\n    pdVar1 = (dfa_state *)xpalloc(pdVar1,&d->salloc,1,-1,0x28);\n    size = s->nelem;\n  }\n  psVar5 = (size_t *)((int)&pdVar1->hash + iVar14);\n  d->states = pdVar1;\n  *psVar5 = uVar13;\n  alloc_position_set((position_set *)(psVar5 + 1),size);\n  copy((EVP_PKEY_CTX *)s,(EVP_PKEY_CTX *)&s->nelem);\n  pdVar1 = d->states;\n  (&pdVar1->context)[iVar14] = (uchar)context;\n  iVar9 = d->sindex;\n  *(undefined2 *)((int)&pdVar1->constraint + iVar14) = uVar16;\n  *(token_conflict *)((int)&pdVar1->first_end + iVar14) = tVar17;\n  *(undefined4 *)((int)&(pdVar1->mbps).nelem + iVar14) = 0;\n  *(undefined4 *)((int)&(pdVar1->mbps).elems + iVar14) = 0;\n  *(undefined4 *)((int)&pdVar1->mb_trindex + iVar14) = 0xffffffff;\n  d->sindex = iVar9 + 1;\n  return sVar12;\n}" { (declaration "dfa_state *pdVar1;" type_identifier (pointer_declarator "*pdVar1" * identifier) ;) (declaration "position *ppVar2;" type_identifier (pointer_declarator "*ppVar2" * identifier) ;) (declaration "dfa_state *pdVar3;" type_identifier (pointer_declarator "*pdVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "size_t *psVar5;" primitive_type (pointer_declarator "*psVar5" * identifier) ;) (declaration "position *ppVar6;" type_identifier (pointer_declarator "*ppVar6" * identifier) ;) (declaration "position *ppVar7;" type_identifier (pointer_declarator "*ppVar7" * identifier) ;) (declaration "position *ppVar8;" type_identifier (pointer_declarator "*ppVar8" * identifier) ;) (declaration "idx_t size;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "state_num sVar12;" type_identifier identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "uint uVar15;" type_identifier identifier ;) (declaration "undefined2 uVar16;" type_identifier identifier ;) (declaration "token_conflict tVar17;" type_identifier identifier ;) (expression_statement "size = s->nelem;" (assignment_expression "size = s->nelem" identifier = (field_expression "s->nelem" identifier -> field_identifier)) ;) (expression_statement "iVar9 = d->sindex;" (assignment_expression "iVar9 = d->sindex" identifier = (field_expression "d->sindex" identifier -> field_identifier)) ;) (expression_statement "pdVar1 = d->states;" (assignment_expression "pdVar1 = d->states" identifier = (field_expression "d->states" identifier -> field_identifier)) ;) (if_statement "if (size < 1) {\n    uVar16 = 0;\n    if (iVar9 < 1) {\n      iVar14 = 0;\n      uVar13 = 0;\n      sVar12 = 0;\n      tVar17 = 0;\n      goto LAB_00478408;\n    }\n    uVar13 = 0;\nLAB_00478278:\n    sVar12 = 0;\n    pdVar3 = pdVar1;\n    do {\n      if (((pdVar3->hash == uVar13) && (iVar14 = (pdVar3->elems).nelem, iVar14 == size)) &&\n         ((uint)pdVar3->context == context)) {\n        iVar10 = 0;\n        if (0 < size) {\n          ppVar7 = s->elems;\n          ppVar6 = (pdVar3->elems).elems;\n          if ((ppVar7->constraint != ppVar6->constraint) || (ppVar6->index != ppVar7->index))\n          goto LAB_00478288;\n          iVar10 = 0;\n          do {\n            ppVar8 = ppVar7 + 1;\n            ppVar2 = ppVar6 + 1;\n            iVar10 = iVar10 + 1;\n            if (iVar14 == iVar10) {\n              return sVar12;\n            }\n          } while ((ppVar7[1].constraint == ppVar6[1].constraint) &&\n                  (ppVar6 = ppVar2, ppVar7 = ppVar8, ppVar8->index == ppVar2->index));\n        }\n        if (iVar14 == iVar10) {\n          return sVar12;\n        }\n      }\nLAB_00478288:\n      sVar12 = sVar12 + 1;\n      pdVar3 = pdVar3 + 1;\n    } while (sVar12 < iVar9);\n    iVar14 = sVar12 * 0x28;\n    if (size < 1) {\n      uVar16 = 0;\n      tVar17 = 0;\n      goto LAB_00478408;\n    }\n    ppVar7 = s->elems;\n  }\n  else {\n    ppVar7 = s->elems;\n    uVar13 = 0;\n    ppVar6 = ppVar7;\n    do {\n      ppVar2 = ppVar6 + 1;\n      uVar13 = uVar13 ^ ppVar6->constraint + ppVar6->index;\n      ppVar6 = ppVar2;\n    } while (ppVar7 + size != ppVar2);\n    iVar14 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    sVar12 = 0;\n  }" if (parenthesized_expression "(size < 1)" ( (binary_expression "size < 1" identifier < number_literal) )) (compound_statement "{\n    uVar16 = 0;\n    if (iVar9 < 1) {\n      iVar14 = 0;\n      uVar13 = 0;\n      sVar12 = 0;\n      tVar17 = 0;\n      goto LAB_00478408;\n    }\n    uVar13 = 0;\nLAB_00478278:\n    sVar12 = 0;\n    pdVar3 = pdVar1;\n    do {\n      if (((pdVar3->hash == uVar13) && (iVar14 = (pdVar3->elems).nelem, iVar14 == size)) &&\n         ((uint)pdVar3->context == context)) {\n        iVar10 = 0;\n        if (0 < size) {\n          ppVar7 = s->elems;\n          ppVar6 = (pdVar3->elems).elems;\n          if ((ppVar7->constraint != ppVar6->constraint) || (ppVar6->index != ppVar7->index))\n          goto LAB_00478288;\n          iVar10 = 0;\n          do {\n            ppVar8 = ppVar7 + 1;\n            ppVar2 = ppVar6 + 1;\n            iVar10 = iVar10 + 1;\n            if (iVar14 == iVar10) {\n              return sVar12;\n            }\n          } while ((ppVar7[1].constraint == ppVar6[1].constraint) &&\n                  (ppVar6 = ppVar2, ppVar7 = ppVar8, ppVar8->index == ppVar2->index));\n        }\n        if (iVar14 == iVar10) {\n          return sVar12;\n        }\n      }\nLAB_00478288:\n      sVar12 = sVar12 + 1;\n      pdVar3 = pdVar3 + 1;\n    } while (sVar12 < iVar9);\n    iVar14 = sVar12 * 0x28;\n    if (size < 1) {\n      uVar16 = 0;\n      tVar17 = 0;\n      goto LAB_00478408;\n    }\n    ppVar7 = s->elems;\n  }" { (expression_statement "uVar16 = 0;" (assignment_expression "uVar16 = 0" identifier = number_literal) ;) (if_statement "if (iVar9 < 1) {\n      iVar14 = 0;\n      uVar13 = 0;\n      sVar12 = 0;\n      tVar17 = 0;\n      goto LAB_00478408;\n    }" if (parenthesized_expression "(iVar9 < 1)" ( (binary_expression "iVar9 < 1" identifier < number_literal) )) (compound_statement "{\n      iVar14 = 0;\n      uVar13 = 0;\n      sVar12 = 0;\n      tVar17 = 0;\n      goto LAB_00478408;\n    }" { (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" identifier = number_literal) ;) (expression_statement "sVar12 = 0;" (assignment_expression "sVar12 = 0" identifier = number_literal) ;) (expression_statement "tVar17 = 0;" (assignment_expression "tVar17 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00478408;" goto statement_identifier ;) })) (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00478278:\n    sVar12 = 0;" statement_identifier : (expression_statement "sVar12 = 0;" (assignment_expression "sVar12 = 0" identifier = number_literal) ;)) (expression_statement "pdVar3 = pdVar1;" (assignment_expression "pdVar3 = pdVar1" identifier = identifier) ;) (do_statement "do {\n      if (((pdVar3->hash == uVar13) && (iVar14 = (pdVar3->elems).nelem, iVar14 == size)) &&\n         ((uint)pdVar3->context == context)) {\n        iVar10 = 0;\n        if (0 < size) {\n          ppVar7 = s->elems;\n          ppVar6 = (pdVar3->elems).elems;\n          if ((ppVar7->constraint != ppVar6->constraint) || (ppVar6->index != ppVar7->index))\n          goto LAB_00478288;\n          iVar10 = 0;\n          do {\n            ppVar8 = ppVar7 + 1;\n            ppVar2 = ppVar6 + 1;\n            iVar10 = iVar10 + 1;\n            if (iVar14 == iVar10) {\n              return sVar12;\n            }\n          } while ((ppVar7[1].constraint == ppVar6[1].constraint) &&\n                  (ppVar6 = ppVar2, ppVar7 = ppVar8, ppVar8->index == ppVar2->index));\n        }\n        if (iVar14 == iVar10) {\n          return sVar12;\n        }\n      }\nLAB_00478288:\n      sVar12 = sVar12 + 1;\n      pdVar3 = pdVar3 + 1;\n    } while (sVar12 < iVar9);" do (compound_statement "{\n      if (((pdVar3->hash == uVar13) && (iVar14 = (pdVar3->elems).nelem, iVar14 == size)) &&\n         ((uint)pdVar3->context == context)) {\n        iVar10 = 0;\n        if (0 < size) {\n          ppVar7 = s->elems;\n          ppVar6 = (pdVar3->elems).elems;\n          if ((ppVar7->constraint != ppVar6->constraint) || (ppVar6->index != ppVar7->index))\n          goto LAB_00478288;\n          iVar10 = 0;\n          do {\n            ppVar8 = ppVar7 + 1;\n            ppVar2 = ppVar6 + 1;\n            iVar10 = iVar10 + 1;\n            if (iVar14 == iVar10) {\n              return sVar12;\n            }\n          } while ((ppVar7[1].constraint == ppVar6[1].constraint) &&\n                  (ppVar6 = ppVar2, ppVar7 = ppVar8, ppVar8->index == ppVar2->index));\n        }\n        if (iVar14 == iVar10) {\n          return sVar12;\n        }\n      }\nLAB_00478288:\n      sVar12 = sVar12 + 1;\n      pdVar3 = pdVar3 + 1;\n    }" { (if_statement "if (((pdVar3->hash == uVar13) && (iVar14 = (pdVar3->elems).nelem, iVar14 == size)) &&\n         ((uint)pdVar3->context == context)) {\n        iVar10 = 0;\n        if (0 < size) {\n          ppVar7 = s->elems;\n          ppVar6 = (pdVar3->elems).elems;\n          if ((ppVar7->constraint != ppVar6->constraint) || (ppVar6->index != ppVar7->index))\n          goto LAB_00478288;\n          iVar10 = 0;\n          do {\n            ppVar8 = ppVar7 + 1;\n            ppVar2 = ppVar6 + 1;\n            iVar10 = iVar10 + 1;\n            if (iVar14 == iVar10) {\n              return sVar12;\n            }\n          } while ((ppVar7[1].constraint == ppVar6[1].constraint) &&\n                  (ppVar6 = ppVar2, ppVar7 = ppVar8, ppVar8->index == ppVar2->index));\n        }\n        if (iVar14 == iVar10) {\n          return sVar12;\n        }\n      }" if (parenthesized_expression "(((pdVar3->hash == uVar13) && (iVar14 = (pdVar3->elems).nelem, iVar14 == size)) &&\n         ((uint)pdVar3->context == context))" ( (binary_expression "((pdVar3->hash == uVar13) && (iVar14 = (pdVar3->elems).nelem, iVar14 == size)) &&\n         ((uint)pdVar3->context == context)" (parenthesized_expression "((pdVar3->hash == uVar13) && (iVar14 = (pdVar3->elems).nelem, iVar14 == size))" ( (binary_expression "(pdVar3->hash == uVar13) && (iVar14 = (pdVar3->elems).nelem, iVar14 == size)" (parenthesized_expression "(pdVar3->hash == uVar13)" ( (binary_expression "pdVar3->hash == uVar13" (field_expression "pdVar3->hash" identifier -> field_identifier) == identifier) )) && (parenthesized_expression "(iVar14 = (pdVar3->elems).nelem, iVar14 == size)" ( (comma_expression "iVar14 = (pdVar3->elems).nelem, iVar14 == size" (assignment_expression "iVar14 = (pdVar3->elems).nelem" identifier = (field_expression "(pdVar3->elems).nelem" (parenthesized_expression "(pdVar3->elems)" ( (field_expression "pdVar3->elems" identifier -> field_identifier) )) . field_identifier)) , (binary_expression "iVar14 == size" identifier == identifier)) ))) )) && (parenthesized_expression "((uint)pdVar3->context == context)" ( (binary_expression "(uint)pdVar3->context == context" (cast_expression "(uint)pdVar3->context" ( (type_descriptor "uint" type_identifier) ) (field_expression "pdVar3->context" identifier -> field_identifier)) == identifier) ))) )) (compound_statement "{\n        iVar10 = 0;\n        if (0 < size) {\n          ppVar7 = s->elems;\n          ppVar6 = (pdVar3->elems).elems;\n          if ((ppVar7->constraint != ppVar6->constraint) || (ppVar6->index != ppVar7->index))\n          goto LAB_00478288;\n          iVar10 = 0;\n          do {\n            ppVar8 = ppVar7 + 1;\n            ppVar2 = ppVar6 + 1;\n            iVar10 = iVar10 + 1;\n            if (iVar14 == iVar10) {\n              return sVar12;\n            }\n          } while ((ppVar7[1].constraint == ppVar6[1].constraint) &&\n                  (ppVar6 = ppVar2, ppVar7 = ppVar8, ppVar8->index == ppVar2->index));\n        }\n        if (iVar14 == iVar10) {\n          return sVar12;\n        }\n      }" { (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (if_statement "if (0 < size) {\n          ppVar7 = s->elems;\n          ppVar6 = (pdVar3->elems).elems;\n          if ((ppVar7->constraint != ppVar6->constraint) || (ppVar6->index != ppVar7->index))\n          goto LAB_00478288;\n          iVar10 = 0;\n          do {\n            ppVar8 = ppVar7 + 1;\n            ppVar2 = ppVar6 + 1;\n            iVar10 = iVar10 + 1;\n            if (iVar14 == iVar10) {\n              return sVar12;\n            }\n          } while ((ppVar7[1].constraint == ppVar6[1].constraint) &&\n                  (ppVar6 = ppVar2, ppVar7 = ppVar8, ppVar8->index == ppVar2->index));\n        }" if (parenthesized_expression "(0 < size)" ( (binary_expression "0 < size" number_literal < identifier) )) (compound_statement "{\n          ppVar7 = s->elems;\n          ppVar6 = (pdVar3->elems).elems;\n          if ((ppVar7->constraint != ppVar6->constraint) || (ppVar6->index != ppVar7->index))\n          goto LAB_00478288;\n          iVar10 = 0;\n          do {\n            ppVar8 = ppVar7 + 1;\n            ppVar2 = ppVar6 + 1;\n            iVar10 = iVar10 + 1;\n            if (iVar14 == iVar10) {\n              return sVar12;\n            }\n          } while ((ppVar7[1].constraint == ppVar6[1].constraint) &&\n                  (ppVar6 = ppVar2, ppVar7 = ppVar8, ppVar8->index == ppVar2->index));\n        }" { (expression_statement "ppVar7 = s->elems;" (assignment_expression "ppVar7 = s->elems" identifier = (field_expression "s->elems" identifier -> field_identifier)) ;) (expression_statement "ppVar6 = (pdVar3->elems).elems;" (assignment_expression "ppVar6 = (pdVar3->elems).elems" identifier = (field_expression "(pdVar3->elems).elems" (parenthesized_expression "(pdVar3->elems)" ( (field_expression "pdVar3->elems" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if ((ppVar7->constraint != ppVar6->constraint) || (ppVar6->index != ppVar7->index))\n          goto LAB_00478288;" if (parenthesized_expression "((ppVar7->constraint != ppVar6->constraint) || (ppVar6->index != ppVar7->index))" ( (binary_expression "(ppVar7->constraint != ppVar6->constraint) || (ppVar6->index != ppVar7->index)" (parenthesized_expression "(ppVar7->constraint != ppVar6->constraint)" ( (binary_expression "ppVar7->constraint != ppVar6->constraint" (field_expression "ppVar7->constraint" identifier -> field_identifier) != (field_expression "ppVar6->constraint" identifier -> field_identifier)) )) || (parenthesized_expression "(ppVar6->index != ppVar7->index)" ( (binary_expression "ppVar6->index != ppVar7->index" (field_expression "ppVar6->index" identifier -> field_identifier) != (field_expression "ppVar7->index" identifier -> field_identifier)) ))) )) (goto_statement "goto LAB_00478288;" goto statement_identifier ;)) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (do_statement "do {\n            ppVar8 = ppVar7 + 1;\n            ppVar2 = ppVar6 + 1;\n            iVar10 = iVar10 + 1;\n            if (iVar14 == iVar10) {\n              return sVar12;\n            }\n          } while ((ppVar7[1].constraint == ppVar6[1].constraint) &&\n                  (ppVar6 = ppVar2, ppVar7 = ppVar8, ppVar8->index == ppVar2->index));" do (compound_statement "{\n            ppVar8 = ppVar7 + 1;\n            ppVar2 = ppVar6 + 1;\n            iVar10 = iVar10 + 1;\n            if (iVar14 == iVar10) {\n              return sVar12;\n            }\n          }" { (expression_statement "ppVar8 = ppVar7 + 1;" (assignment_expression "ppVar8 = ppVar7 + 1" identifier = (binary_expression "ppVar7 + 1" identifier + number_literal)) ;) (expression_statement "ppVar2 = ppVar6 + 1;" (assignment_expression "ppVar2 = ppVar6 + 1" identifier = (binary_expression "ppVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (if_statement "if (iVar14 == iVar10) {\n              return sVar12;\n            }" if (parenthesized_expression "(iVar14 == iVar10)" ( (binary_expression "iVar14 == iVar10" identifier == identifier) )) (compound_statement "{\n              return sVar12;\n            }" { (return_statement "return sVar12;" return identifier ;) })) }) while (parenthesized_expression "((ppVar7[1].constraint == ppVar6[1].constraint) &&\n                  (ppVar6 = ppVar2, ppVar7 = ppVar8, ppVar8->index == ppVar2->index))" ( (binary_expression "(ppVar7[1].constraint == ppVar6[1].constraint) &&\n                  (ppVar6 = ppVar2, ppVar7 = ppVar8, ppVar8->index == ppVar2->index)" (parenthesized_expression "(ppVar7[1].constraint == ppVar6[1].constraint)" ( (binary_expression "ppVar7[1].constraint == ppVar6[1].constraint" (field_expression "ppVar7[1].constraint" (subscript_expression "ppVar7[1]" identifier [ number_literal ]) . field_identifier) == (field_expression "ppVar6[1].constraint" (subscript_expression "ppVar6[1]" identifier [ number_literal ]) . field_identifier)) )) && (parenthesized_expression "(ppVar6 = ppVar2, ppVar7 = ppVar8, ppVar8->index == ppVar2->index)" ( (comma_expression "ppVar6 = ppVar2, ppVar7 = ppVar8, ppVar8->index == ppVar2->index" (assignment_expression "ppVar6 = ppVar2" identifier = identifier) , (comma_expression "ppVar7 = ppVar8, ppVar8->index == ppVar2->index" (assignment_expression "ppVar7 = ppVar8" identifier = identifier) , (binary_expression "ppVar8->index == ppVar2->index" (field_expression "ppVar8->index" identifier -> field_identifier) == (field_expression "ppVar2->index" identifier -> field_identifier)))) ))) )) ;) })) (if_statement "if (iVar14 == iVar10) {\n          return sVar12;\n        }" if (parenthesized_expression "(iVar14 == iVar10)" ( (binary_expression "iVar14 == iVar10" identifier == identifier) )) (compound_statement "{\n          return sVar12;\n        }" { (return_statement "return sVar12;" return identifier ;) })) })) (labeled_statement "LAB_00478288:\n      sVar12 = sVar12 + 1;" statement_identifier : (expression_statement "sVar12 = sVar12 + 1;" (assignment_expression "sVar12 = sVar12 + 1" identifier = (binary_expression "sVar12 + 1" identifier + number_literal)) ;)) (expression_statement "pdVar3 = pdVar3 + 1;" (assignment_expression "pdVar3 = pdVar3 + 1" identifier = (binary_expression "pdVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(sVar12 < iVar9)" ( (binary_expression "sVar12 < iVar9" identifier < identifier) )) ;) (expression_statement "iVar14 = sVar12 * 0x28;" (assignment_expression "iVar14 = sVar12 * 0x28" identifier = (binary_expression "sVar12 * 0x28" identifier * number_literal)) ;) (if_statement "if (size < 1) {\n      uVar16 = 0;\n      tVar17 = 0;\n      goto LAB_00478408;\n    }" if (parenthesized_expression "(size < 1)" ( (binary_expression "size < 1" identifier < number_literal) )) (compound_statement "{\n      uVar16 = 0;\n      tVar17 = 0;\n      goto LAB_00478408;\n    }" { (expression_statement "uVar16 = 0;" (assignment_expression "uVar16 = 0" identifier = number_literal) ;) (expression_statement "tVar17 = 0;" (assignment_expression "tVar17 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00478408;" goto statement_identifier ;) })) (expression_statement "ppVar7 = s->elems;" (assignment_expression "ppVar7 = s->elems" identifier = (field_expression "s->elems" identifier -> field_identifier)) ;) }) (else_clause "else {\n    ppVar7 = s->elems;\n    uVar13 = 0;\n    ppVar6 = ppVar7;\n    do {\n      ppVar2 = ppVar6 + 1;\n      uVar13 = uVar13 ^ ppVar6->constraint + ppVar6->index;\n      ppVar6 = ppVar2;\n    } while (ppVar7 + size != ppVar2);\n    iVar14 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    sVar12 = 0;\n  }" else (compound_statement "{\n    ppVar7 = s->elems;\n    uVar13 = 0;\n    ppVar6 = ppVar7;\n    do {\n      ppVar2 = ppVar6 + 1;\n      uVar13 = uVar13 ^ ppVar6->constraint + ppVar6->index;\n      ppVar6 = ppVar2;\n    } while (ppVar7 + size != ppVar2);\n    iVar14 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    sVar12 = 0;\n  }" { (expression_statement "ppVar7 = s->elems;" (assignment_expression "ppVar7 = s->elems" identifier = (field_expression "s->elems" identifier -> field_identifier)) ;) (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" identifier = number_literal) ;) (expression_statement "ppVar6 = ppVar7;" (assignment_expression "ppVar6 = ppVar7" identifier = identifier) ;) (do_statement "do {\n      ppVar2 = ppVar6 + 1;\n      uVar13 = uVar13 ^ ppVar6->constraint + ppVar6->index;\n      ppVar6 = ppVar2;\n    } while (ppVar7 + size != ppVar2);" do (compound_statement "{\n      ppVar2 = ppVar6 + 1;\n      uVar13 = uVar13 ^ ppVar6->constraint + ppVar6->index;\n      ppVar6 = ppVar2;\n    }" { (expression_statement "ppVar2 = ppVar6 + 1;" (assignment_expression "ppVar2 = ppVar6 + 1" identifier = (binary_expression "ppVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar13 = uVar13 ^ ppVar6->constraint + ppVar6->index;" (assignment_expression "uVar13 = uVar13 ^ ppVar6->constraint + ppVar6->index" identifier = (binary_expression "uVar13 ^ ppVar6->constraint + ppVar6->index" identifier ^ (binary_expression "ppVar6->constraint + ppVar6->index" (field_expression "ppVar6->constraint" identifier -> field_identifier) + (field_expression "ppVar6->index" identifier -> field_identifier)))) ;) (expression_statement "ppVar6 = ppVar2;" (assignment_expression "ppVar6 = ppVar2" identifier = identifier) ;) }) while (parenthesized_expression "(ppVar7 + size != ppVar2)" ( (binary_expression "ppVar7 + size != ppVar2" (binary_expression "ppVar7 + size" identifier + identifier) != identifier) )) ;) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar9) goto LAB_00478278;" if (parenthesized_expression "(0 < iVar9)" ( (binary_expression "0 < iVar9" number_literal < identifier) )) (goto_statement "goto LAB_00478278;" goto statement_identifier ;)) (expression_statement "sVar12 = 0;" (assignment_expression "sVar12 = 0" identifier = number_literal) ;) }))) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "tVar17 = 0;" (assignment_expression "tVar17 = 0" identifier = number_literal) ;) (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" identifier = number_literal) ;) (do_statement "do {\n    while( true ) {\n      iVar4 = ppVar7->index;\n      uVar11 = d->constraints[iVar4];\n      if (uVar11 != 0) break;\n      iVar10 = iVar10 + 1;\n      if (d->tokens[iVar4] == 0x112) {\n        uVar15 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar15;\n      ppVar7 = ppVar7 + 1;\n      if (size <= iVar10) goto LAB_00478408;\n    }\n    if ((((int)uVar11 >> 3 | (int)uVar11 >> 6 | uVar11) & context & 7U) != 0) {\n      uVar15 = uVar15 | uVar11;\n    }\n    uVar16 = (undefined2)uVar15;\n    if (tVar17 == 0) {\n      tVar17 = d->tokens[iVar4];\n    }\n    iVar10 = iVar10 + 1;\n    ppVar7 = ppVar7 + 1;\n  } while (iVar10 < size);" do (compound_statement "{\n    while( true ) {\n      iVar4 = ppVar7->index;\n      uVar11 = d->constraints[iVar4];\n      if (uVar11 != 0) break;\n      iVar10 = iVar10 + 1;\n      if (d->tokens[iVar4] == 0x112) {\n        uVar15 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar15;\n      ppVar7 = ppVar7 + 1;\n      if (size <= iVar10) goto LAB_00478408;\n    }\n    if ((((int)uVar11 >> 3 | (int)uVar11 >> 6 | uVar11) & context & 7U) != 0) {\n      uVar15 = uVar15 | uVar11;\n    }\n    uVar16 = (undefined2)uVar15;\n    if (tVar17 == 0) {\n      tVar17 = d->tokens[iVar4];\n    }\n    iVar10 = iVar10 + 1;\n    ppVar7 = ppVar7 + 1;\n  }" { (while_statement "while( true ) {\n      iVar4 = ppVar7->index;\n      uVar11 = d->constraints[iVar4];\n      if (uVar11 != 0) break;\n      iVar10 = iVar10 + 1;\n      if (d->tokens[iVar4] == 0x112) {\n        uVar15 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar15;\n      ppVar7 = ppVar7 + 1;\n      if (size <= iVar10) goto LAB_00478408;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar4 = ppVar7->index;\n      uVar11 = d->constraints[iVar4];\n      if (uVar11 != 0) break;\n      iVar10 = iVar10 + 1;\n      if (d->tokens[iVar4] == 0x112) {\n        uVar15 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar15;\n      ppVar7 = ppVar7 + 1;\n      if (size <= iVar10) goto LAB_00478408;\n    }" { (expression_statement "iVar4 = ppVar7->index;" (assignment_expression "iVar4 = ppVar7->index" identifier = (field_expression "ppVar7->index" identifier -> field_identifier)) ;) (expression_statement "uVar11 = d->constraints[iVar4];" (assignment_expression "uVar11 = d->constraints[iVar4]" identifier = (subscript_expression "d->constraints[iVar4]" (field_expression "d->constraints" identifier -> field_identifier) [ identifier ])) ;) (if_statement "if (uVar11 != 0) break;" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (if_statement "if (d->tokens[iVar4] == 0x112) {\n        uVar15 = 0x1ff;\n      }" if (parenthesized_expression "(d->tokens[iVar4] == 0x112)" ( (binary_expression "d->tokens[iVar4] == 0x112" (subscript_expression "d->tokens[iVar4]" (field_expression "d->tokens" identifier -> field_identifier) [ identifier ]) == number_literal) )) (compound_statement "{\n        uVar15 = 0x1ff;\n      }" { (expression_statement "uVar15 = 0x1ff;" (assignment_expression "uVar15 = 0x1ff" identifier = number_literal) ;) })) (expression_statement "uVar16 = (undefined2)uVar15;" (assignment_expression "uVar16 = (undefined2)uVar15" identifier = (cast_expression "(undefined2)uVar15" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;) (expression_statement "ppVar7 = ppVar7 + 1;" (assignment_expression "ppVar7 = ppVar7 + 1" identifier = (binary_expression "ppVar7 + 1" identifier + number_literal)) ;) (if_statement "if (size <= iVar10) goto LAB_00478408;" if (parenthesized_expression "(size <= iVar10)" ( (binary_expression "size <= iVar10" identifier <= identifier) )) (goto_statement "goto LAB_00478408;" goto statement_identifier ;)) })) (if_statement "if ((((int)uVar11 >> 3 | (int)uVar11 >> 6 | uVar11) & context & 7U) != 0) {\n      uVar15 = uVar15 | uVar11;\n    }" if (parenthesized_expression "((((int)uVar11 >> 3 | (int)uVar11 >> 6 | uVar11) & context & 7U) != 0)" ( (binary_expression "(((int)uVar11 >> 3 | (int)uVar11 >> 6 | uVar11) & context & 7U) != 0" (parenthesized_expression "(((int)uVar11 >> 3 | (int)uVar11 >> 6 | uVar11) & context & 7U)" ( (binary_expression "((int)uVar11 >> 3 | (int)uVar11 >> 6 | uVar11) & context & 7U" (binary_expression "((int)uVar11 >> 3 | (int)uVar11 >> 6 | uVar11) & context" (parenthesized_expression "((int)uVar11 >> 3 | (int)uVar11 >> 6 | uVar11)" ( (binary_expression "(int)uVar11 >> 3 | (int)uVar11 >> 6 | uVar11" (binary_expression "(int)uVar11 >> 3 | (int)uVar11 >> 6" (binary_expression "(int)uVar11 >> 3" (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) | (binary_expression "(int)uVar11 >> 6" (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) | identifier) )) & identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      uVar15 = uVar15 | uVar11;\n    }" { (expression_statement "uVar15 = uVar15 | uVar11;" (assignment_expression "uVar15 = uVar15 | uVar11" identifier = (binary_expression "uVar15 | uVar11" identifier | identifier)) ;) })) (expression_statement "uVar16 = (undefined2)uVar15;" (assignment_expression "uVar16 = (undefined2)uVar15" identifier = (cast_expression "(undefined2)uVar15" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;) (if_statement "if (tVar17 == 0) {\n      tVar17 = d->tokens[iVar4];\n    }" if (parenthesized_expression "(tVar17 == 0)" ( (binary_expression "tVar17 == 0" identifier == number_literal) )) (compound_statement "{\n      tVar17 = d->tokens[iVar4];\n    }" { (expression_statement "tVar17 = d->tokens[iVar4];" (assignment_expression "tVar17 = d->tokens[iVar4]" identifier = (subscript_expression "d->tokens[iVar4]" (field_expression "d->tokens" identifier -> field_identifier) [ identifier ])) ;) })) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "ppVar7 = ppVar7 + 1;" (assignment_expression "ppVar7 = ppVar7 + 1" identifier = (binary_expression "ppVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar10 < size)" ( (binary_expression "iVar10 < size" identifier < identifier) )) ;) (labeled_statement "LAB_00478408:\n  if (d->salloc <= iVar9) {\n    pdVar1 = (dfa_state *)xpalloc(pdVar1,&d->salloc,1,-1,0x28);\n    size = s->nelem;\n  }" statement_identifier : (if_statement "if (d->salloc <= iVar9) {\n    pdVar1 = (dfa_state *)xpalloc(pdVar1,&d->salloc,1,-1,0x28);\n    size = s->nelem;\n  }" if (parenthesized_expression "(d->salloc <= iVar9)" ( (binary_expression "d->salloc <= iVar9" (field_expression "d->salloc" identifier -> field_identifier) <= identifier) )) (compound_statement "{\n    pdVar1 = (dfa_state *)xpalloc(pdVar1,&d->salloc,1,-1,0x28);\n    size = s->nelem;\n  }" { (expression_statement "pdVar1 = (dfa_state *)xpalloc(pdVar1,&d->salloc,1,-1,0x28);" (assignment_expression "pdVar1 = (dfa_state *)xpalloc(pdVar1,&d->salloc,1,-1,0x28)" identifier = (cast_expression "(dfa_state *)xpalloc(pdVar1,&d->salloc,1,-1,0x28)" ( (type_descriptor "dfa_state *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xpalloc(pdVar1,&d->salloc,1,-1,0x28)" identifier (argument_list "(pdVar1,&d->salloc,1,-1,0x28)" ( identifier , (pointer_expression "&d->salloc" & (field_expression "d->salloc" identifier -> field_identifier)) , number_literal , number_literal , number_literal ))))) ;) (expression_statement "size = s->nelem;" (assignment_expression "size = s->nelem" identifier = (field_expression "s->nelem" identifier -> field_identifier)) ;) }))) (expression_statement "psVar5 = (size_t *)((int)&pdVar1->hash + iVar14);" (assignment_expression "psVar5 = (size_t *)((int)&pdVar1->hash + iVar14)" identifier = (cast_expression "(size_t *)((int)&pdVar1->hash + iVar14)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pdVar1->hash + iVar14)" ( (binary_expression "(int)&pdVar1->hash + iVar14" (cast_expression "(int)&pdVar1->hash" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pdVar1->hash" & (field_expression "pdVar1->hash" identifier -> field_identifier))) + identifier) )))) ;) (expression_statement "d->states = pdVar1;" (assignment_expression "d->states = pdVar1" (field_expression "d->states" identifier -> field_identifier) = identifier) ;) (expression_statement "*psVar5 = uVar13;" (assignment_expression "*psVar5 = uVar13" (pointer_expression "*psVar5" * identifier) = identifier) ;) (expression_statement "alloc_position_set((position_set *)(psVar5 + 1),size);" (call_expression "alloc_position_set((position_set *)(psVar5 + 1),size)" identifier (argument_list "((position_set *)(psVar5 + 1),size)" ( (cast_expression "(position_set *)(psVar5 + 1)" ( (type_descriptor "position_set *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar5 + 1)" ( (binary_expression "psVar5 + 1" identifier + number_literal) ))) , identifier ))) ;) (expression_statement "copy((EVP_PKEY_CTX *)s,(EVP_PKEY_CTX *)&s->nelem);" (call_expression "copy((EVP_PKEY_CTX *)s,(EVP_PKEY_CTX *)&s->nelem)" identifier (argument_list "((EVP_PKEY_CTX *)s,(EVP_PKEY_CTX *)&s->nelem)" ( (cast_expression "(EVP_PKEY_CTX *)s" ( (type_descriptor "EVP_PKEY_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(EVP_PKEY_CTX *)&s->nelem" ( (type_descriptor "EVP_PKEY_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&s->nelem" & (field_expression "s->nelem" identifier -> field_identifier))) ))) ;) (expression_statement "pdVar1 = d->states;" (assignment_expression "pdVar1 = d->states" identifier = (field_expression "d->states" identifier -> field_identifier)) ;) (expression_statement "(&pdVar1->context)[iVar14] = (uchar)context;" (assignment_expression "(&pdVar1->context)[iVar14] = (uchar)context" (subscript_expression "(&pdVar1->context)[iVar14]" (parenthesized_expression "(&pdVar1->context)" ( (pointer_expression "&pdVar1->context" & (field_expression "pdVar1->context" identifier -> field_identifier)) )) [ identifier ]) = (cast_expression "(uchar)context" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "iVar9 = d->sindex;" (assignment_expression "iVar9 = d->sindex" identifier = (field_expression "d->sindex" identifier -> field_identifier)) ;) (expression_statement "*(undefined2 *)((int)&pdVar1->constraint + iVar14) = uVar16;" (assignment_expression "*(undefined2 *)((int)&pdVar1->constraint + iVar14) = uVar16" (pointer_expression "*(undefined2 *)((int)&pdVar1->constraint + iVar14)" * (cast_expression "(undefined2 *)((int)&pdVar1->constraint + iVar14)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pdVar1->constraint + iVar14)" ( (binary_expression "(int)&pdVar1->constraint + iVar14" (cast_expression "(int)&pdVar1->constraint" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pdVar1->constraint" & (field_expression "pdVar1->constraint" identifier -> field_identifier))) + identifier) )))) = identifier) ;) (expression_statement "*(token_conflict *)((int)&pdVar1->first_end + iVar14) = tVar17;" (assignment_expression "*(token_conflict *)((int)&pdVar1->first_end + iVar14) = tVar17" (pointer_expression "*(token_conflict *)((int)&pdVar1->first_end + iVar14)" * (cast_expression "(token_conflict *)((int)&pdVar1->first_end + iVar14)" ( (type_descriptor "token_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pdVar1->first_end + iVar14)" ( (binary_expression "(int)&pdVar1->first_end + iVar14" (cast_expression "(int)&pdVar1->first_end" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pdVar1->first_end" & (field_expression "pdVar1->first_end" identifier -> field_identifier))) + identifier) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&(pdVar1->mbps).nelem + iVar14) = 0;" (assignment_expression "*(undefined4 *)((int)&(pdVar1->mbps).nelem + iVar14) = 0" (pointer_expression "*(undefined4 *)((int)&(pdVar1->mbps).nelem + iVar14)" * (cast_expression "(undefined4 *)((int)&(pdVar1->mbps).nelem + iVar14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(pdVar1->mbps).nelem + iVar14)" ( (binary_expression "(int)&(pdVar1->mbps).nelem + iVar14" (cast_expression "(int)&(pdVar1->mbps).nelem" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(pdVar1->mbps).nelem" & (field_expression "(pdVar1->mbps).nelem" (parenthesized_expression "(pdVar1->mbps)" ( (field_expression "pdVar1->mbps" identifier -> field_identifier) )) . field_identifier))) + identifier) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&(pdVar1->mbps).elems + iVar14) = 0;" (assignment_expression "*(undefined4 *)((int)&(pdVar1->mbps).elems + iVar14) = 0" (pointer_expression "*(undefined4 *)((int)&(pdVar1->mbps).elems + iVar14)" * (cast_expression "(undefined4 *)((int)&(pdVar1->mbps).elems + iVar14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(pdVar1->mbps).elems + iVar14)" ( (binary_expression "(int)&(pdVar1->mbps).elems + iVar14" (cast_expression "(int)&(pdVar1->mbps).elems" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(pdVar1->mbps).elems" & (field_expression "(pdVar1->mbps).elems" (parenthesized_expression "(pdVar1->mbps)" ( (field_expression "pdVar1->mbps" identifier -> field_identifier) )) . field_identifier))) + identifier) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&pdVar1->mb_trindex + iVar14) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)&pdVar1->mb_trindex + iVar14) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)&pdVar1->mb_trindex + iVar14)" * (cast_expression "(undefined4 *)((int)&pdVar1->mb_trindex + iVar14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pdVar1->mb_trindex + iVar14)" ( (binary_expression "(int)&pdVar1->mb_trindex + iVar14" (cast_expression "(int)&pdVar1->mb_trindex" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pdVar1->mb_trindex" & (field_expression "pdVar1->mb_trindex" identifier -> field_identifier))) + identifier) )))) = number_literal) ;) (expression_statement "d->sindex = iVar9 + 1;" (assignment_expression "d->sindex = iVar9 + 1" (field_expression "d->sindex" identifier -> field_identifier) = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (return_statement "return sVar12;" return identifier ;) })))
(translation_unit "int FUN_0047820c(int param_1,int *param_2,uint param_3)\n\n{\n  uint *puVar1;\n  int *piVar2;\n  uint *puVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int *piVar7;\n  uint uVar8;\n  int iVar9;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  uint uVar14;\n  int iVar15;\n  undefined2 uVar16;\n  int iVar17;\n  \n  uVar8 = param_2[1];\n  iVar9 = *(int *)(param_1 + 0xa0);\n  puVar1 = *(uint **)(param_1 + 0x9c);\n  if ((int)uVar8 < 1) {\n    uVar16 = 0;\n    if (iVar9 < 1) {\n      iVar15 = 0;\n      uVar14 = 0;\n      iVar13 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    uVar14 = 0;\nLAB_00478278:\n    iVar13 = 0;\n    puVar3 = puVar1;\n    do {\n      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }\nLAB_00478288:\n      iVar13 = iVar13 + 1;\n      puVar3 = puVar3 + 10;\n    } while (iVar13 < iVar9);\n    iVar15 = iVar13 * 0x28;\n    if ((int)uVar8 < 1) {\n      uVar16 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    piVar6 = (int *)*param_2;\n  }\n  else {\n    piVar6 = (int *)*param_2;\n    uVar14 = 0;\n    piVar5 = piVar6;\n    do {\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    } while (piVar6 + uVar8 * 2 != piVar2);\n    iVar15 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    iVar13 = 0;\n  }\n  iVar12 = 0;\n  iVar17 = 0;\n  uVar11 = 0;\n  do {\n    while( true ) {\n      iVar4 = *piVar6 * 4;\n      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);\n      if (uVar10 != 0) break;\n      iVar12 = iVar12 + 1;\n      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar11;\n      piVar6 = piVar6 + 2;\n      if ((int)uVar8 <= iVar12) goto LAB_00478408;\n    }\n    if ((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0) {\n      uVar11 = uVar11 | uVar10;\n    }\n    uVar16 = (undefined2)uVar11;\n    if (iVar17 == 0) {\n      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);\n    }\n    iVar12 = iVar12 + 1;\n    piVar6 = piVar6 + 2;\n  } while (iVar12 < (int)uVar8);\nLAB_00478408:\n  if (*(int *)(param_1 + 0xa4) <= iVar9) {\n    puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);\n    uVar8 = param_2[1];\n  }\n  *(uint **)(param_1 + 0x9c) = puVar1;\n  *(uint *)((int)puVar1 + iVar15) = uVar14;\n  FUN_004781bc((uint *)((int)puVar1 + iVar15) + 1,uVar8);\n  FUN_00475cdc(param_2,param_2 + 1,*(int *)(param_1 + 0x9c) + iVar15 + 4);\n  iVar15 = *(int *)(param_1 + 0x9c) + iVar15;\n  *(char *)(iVar15 + 0x10) = (char)param_3;\n  iVar9 = *(int *)(param_1 + 0xa0);\n  *(undefined2 *)(iVar15 + 0x12) = uVar16;\n  *(int *)(iVar15 + 0x14) = iVar17;\n  *(undefined4 *)(iVar15 + 0x1c) = 0;\n  *(undefined4 *)(iVar15 + 0x18) = 0;\n  *(undefined4 *)(iVar15 + 0x24) = 0xffffffff;\n  *(int *)(param_1 + 0xa0) = iVar9 + 1;\n  return iVar13;\n}\n\n" (function_definition "int FUN_0047820c(int param_1,int *param_2,uint param_3)\n\n{\n  uint *puVar1;\n  int *piVar2;\n  uint *puVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int *piVar7;\n  uint uVar8;\n  int iVar9;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  uint uVar14;\n  int iVar15;\n  undefined2 uVar16;\n  int iVar17;\n  \n  uVar8 = param_2[1];\n  iVar9 = *(int *)(param_1 + 0xa0);\n  puVar1 = *(uint **)(param_1 + 0x9c);\n  if ((int)uVar8 < 1) {\n    uVar16 = 0;\n    if (iVar9 < 1) {\n      iVar15 = 0;\n      uVar14 = 0;\n      iVar13 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    uVar14 = 0;\nLAB_00478278:\n    iVar13 = 0;\n    puVar3 = puVar1;\n    do {\n      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }\nLAB_00478288:\n      iVar13 = iVar13 + 1;\n      puVar3 = puVar3 + 10;\n    } while (iVar13 < iVar9);\n    iVar15 = iVar13 * 0x28;\n    if ((int)uVar8 < 1) {\n      uVar16 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    piVar6 = (int *)*param_2;\n  }\n  else {\n    piVar6 = (int *)*param_2;\n    uVar14 = 0;\n    piVar5 = piVar6;\n    do {\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    } while (piVar6 + uVar8 * 2 != piVar2);\n    iVar15 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    iVar13 = 0;\n  }\n  iVar12 = 0;\n  iVar17 = 0;\n  uVar11 = 0;\n  do {\n    while( true ) {\n      iVar4 = *piVar6 * 4;\n      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);\n      if (uVar10 != 0) break;\n      iVar12 = iVar12 + 1;\n      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar11;\n      piVar6 = piVar6 + 2;\n      if ((int)uVar8 <= iVar12) goto LAB_00478408;\n    }\n    if ((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0) {\n      uVar11 = uVar11 | uVar10;\n    }\n    uVar16 = (undefined2)uVar11;\n    if (iVar17 == 0) {\n      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);\n    }\n    iVar12 = iVar12 + 1;\n    piVar6 = piVar6 + 2;\n  } while (iVar12 < (int)uVar8);\nLAB_00478408:\n  if (*(int *)(param_1 + 0xa4) <= iVar9) {\n    puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);\n    uVar8 = param_2[1];\n  }\n  *(uint **)(param_1 + 0x9c) = puVar1;\n  *(uint *)((int)puVar1 + iVar15) = uVar14;\n  FUN_004781bc((uint *)((int)puVar1 + iVar15) + 1,uVar8);\n  FUN_00475cdc(param_2,param_2 + 1,*(int *)(param_1 + 0x9c) + iVar15 + 4);\n  iVar15 = *(int *)(param_1 + 0x9c) + iVar15;\n  *(char *)(iVar15 + 0x10) = (char)param_3;\n  iVar9 = *(int *)(param_1 + 0xa0);\n  *(undefined2 *)(iVar15 + 0x12) = uVar16;\n  *(int *)(iVar15 + 0x14) = iVar17;\n  *(undefined4 *)(iVar15 + 0x1c) = 0;\n  *(undefined4 *)(iVar15 + 0x18) = 0;\n  *(undefined4 *)(iVar15 + 0x24) = 0xffffffff;\n  *(int *)(param_1 + 0xa0) = iVar9 + 1;\n  return iVar13;\n}" primitive_type (function_declarator "FUN_0047820c(int param_1,int *param_2,uint param_3)" identifier (parameter_list "(int param_1,int *param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  uint *puVar1;\n  int *piVar2;\n  uint *puVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int *piVar7;\n  uint uVar8;\n  int iVar9;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  uint uVar14;\n  int iVar15;\n  undefined2 uVar16;\n  int iVar17;\n  \n  uVar8 = param_2[1];\n  iVar9 = *(int *)(param_1 + 0xa0);\n  puVar1 = *(uint **)(param_1 + 0x9c);\n  if ((int)uVar8 < 1) {\n    uVar16 = 0;\n    if (iVar9 < 1) {\n      iVar15 = 0;\n      uVar14 = 0;\n      iVar13 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    uVar14 = 0;\nLAB_00478278:\n    iVar13 = 0;\n    puVar3 = puVar1;\n    do {\n      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }\nLAB_00478288:\n      iVar13 = iVar13 + 1;\n      puVar3 = puVar3 + 10;\n    } while (iVar13 < iVar9);\n    iVar15 = iVar13 * 0x28;\n    if ((int)uVar8 < 1) {\n      uVar16 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    piVar6 = (int *)*param_2;\n  }\n  else {\n    piVar6 = (int *)*param_2;\n    uVar14 = 0;\n    piVar5 = piVar6;\n    do {\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    } while (piVar6 + uVar8 * 2 != piVar2);\n    iVar15 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    iVar13 = 0;\n  }\n  iVar12 = 0;\n  iVar17 = 0;\n  uVar11 = 0;\n  do {\n    while( true ) {\n      iVar4 = *piVar6 * 4;\n      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);\n      if (uVar10 != 0) break;\n      iVar12 = iVar12 + 1;\n      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar11;\n      piVar6 = piVar6 + 2;\n      if ((int)uVar8 <= iVar12) goto LAB_00478408;\n    }\n    if ((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0) {\n      uVar11 = uVar11 | uVar10;\n    }\n    uVar16 = (undefined2)uVar11;\n    if (iVar17 == 0) {\n      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);\n    }\n    iVar12 = iVar12 + 1;\n    piVar6 = piVar6 + 2;\n  } while (iVar12 < (int)uVar8);\nLAB_00478408:\n  if (*(int *)(param_1 + 0xa4) <= iVar9) {\n    puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);\n    uVar8 = param_2[1];\n  }\n  *(uint **)(param_1 + 0x9c) = puVar1;\n  *(uint *)((int)puVar1 + iVar15) = uVar14;\n  FUN_004781bc((uint *)((int)puVar1 + iVar15) + 1,uVar8);\n  FUN_00475cdc(param_2,param_2 + 1,*(int *)(param_1 + 0x9c) + iVar15 + 4);\n  iVar15 = *(int *)(param_1 + 0x9c) + iVar15;\n  *(char *)(iVar15 + 0x10) = (char)param_3;\n  iVar9 = *(int *)(param_1 + 0xa0);\n  *(undefined2 *)(iVar15 + 0x12) = uVar16;\n  *(int *)(iVar15 + 0x14) = iVar17;\n  *(undefined4 *)(iVar15 + 0x1c) = 0;\n  *(undefined4 *)(iVar15 + 0x18) = 0;\n  *(undefined4 *)(iVar15 + 0x24) = 0xffffffff;\n  *(int *)(param_1 + 0xa0) = iVar9 + 1;\n  return iVar13;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "uint uVar14;" type_identifier identifier ;) (declaration "int iVar15;" primitive_type identifier ;) (declaration "undefined2 uVar16;" type_identifier identifier ;) (declaration "int iVar17;" primitive_type identifier ;) (expression_statement "uVar8 = param_2[1];" (assignment_expression "uVar8 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "iVar9 = *(int *)(param_1 + 0xa0);" (assignment_expression "iVar9 = *(int *)(param_1 + 0xa0)" identifier = (pointer_expression "*(int *)(param_1 + 0xa0)" * (cast_expression "(int *)(param_1 + 0xa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) ))))) ;) (expression_statement "puVar1 = *(uint **)(param_1 + 0x9c);" (assignment_expression "puVar1 = *(uint **)(param_1 + 0x9c)" identifier = (pointer_expression "*(uint **)(param_1 + 0x9c)" * (cast_expression "(uint **)(param_1 + 0x9c)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x9c)" ( (binary_expression "param_1 + 0x9c" identifier + number_literal) ))))) ;) (if_statement "if ((int)uVar8 < 1) {\n    uVar16 = 0;\n    if (iVar9 < 1) {\n      iVar15 = 0;\n      uVar14 = 0;\n      iVar13 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    uVar14 = 0;\nLAB_00478278:\n    iVar13 = 0;\n    puVar3 = puVar1;\n    do {\n      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }\nLAB_00478288:\n      iVar13 = iVar13 + 1;\n      puVar3 = puVar3 + 10;\n    } while (iVar13 < iVar9);\n    iVar15 = iVar13 * 0x28;\n    if ((int)uVar8 < 1) {\n      uVar16 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    piVar6 = (int *)*param_2;\n  }\n  else {\n    piVar6 = (int *)*param_2;\n    uVar14 = 0;\n    piVar5 = piVar6;\n    do {\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    } while (piVar6 + uVar8 * 2 != piVar2);\n    iVar15 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    iVar13 = 0;\n  }" if (parenthesized_expression "((int)uVar8 < 1)" ( (binary_expression "(int)uVar8 < 1" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    uVar16 = 0;\n    if (iVar9 < 1) {\n      iVar15 = 0;\n      uVar14 = 0;\n      iVar13 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    uVar14 = 0;\nLAB_00478278:\n    iVar13 = 0;\n    puVar3 = puVar1;\n    do {\n      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }\nLAB_00478288:\n      iVar13 = iVar13 + 1;\n      puVar3 = puVar3 + 10;\n    } while (iVar13 < iVar9);\n    iVar15 = iVar13 * 0x28;\n    if ((int)uVar8 < 1) {\n      uVar16 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    piVar6 = (int *)*param_2;\n  }" { (expression_statement "uVar16 = 0;" (assignment_expression "uVar16 = 0" identifier = number_literal) ;) (if_statement "if (iVar9 < 1) {\n      iVar15 = 0;\n      uVar14 = 0;\n      iVar13 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }" if (parenthesized_expression "(iVar9 < 1)" ( (binary_expression "iVar9 < 1" identifier < number_literal) )) (compound_statement "{\n      iVar15 = 0;\n      uVar14 = 0;\n      iVar13 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }" { (expression_statement "iVar15 = 0;" (assignment_expression "iVar15 = 0" identifier = number_literal) ;) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" identifier = number_literal) ;) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (expression_statement "iVar17 = 0;" (assignment_expression "iVar17 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00478408;" goto statement_identifier ;) })) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00478278:\n    iVar13 = 0;" statement_identifier : (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;)) (expression_statement "puVar3 = puVar1;" (assignment_expression "puVar3 = puVar1" identifier = identifier) ;) (do_statement "do {\n      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }\nLAB_00478288:\n      iVar13 = iVar13 + 1;\n      puVar3 = puVar3 + 10;\n    } while (iVar13 < iVar9);" do (compound_statement "{\n      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }\nLAB_00478288:\n      iVar13 = iVar13 + 1;\n      puVar3 = puVar3 + 10;\n    }" { (if_statement "if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }" if (parenthesized_expression "(((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3))" ( (binary_expression "((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)" (parenthesized_expression "((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8))" ( (binary_expression "(*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)" (parenthesized_expression "(*puVar3 == uVar14)" ( (binary_expression "*puVar3 == uVar14" (pointer_expression "*puVar3" * identifier) == identifier) )) && (parenthesized_expression "(uVar11 = puVar3[2], uVar11 == uVar8)" ( (comma_expression "uVar11 = puVar3[2], uVar11 == uVar8" (assignment_expression "uVar11 = puVar3[2]" identifier = (subscript_expression "puVar3[2]" identifier [ number_literal ])) , (binary_expression "uVar11 == uVar8" identifier == identifier)) ))) )) && (parenthesized_expression "(*(byte *)(puVar3 + 4) == param_3)" ( (binary_expression "*(byte *)(puVar3 + 4) == param_3" (pointer_expression "*(byte *)(puVar3 + 4)" * (cast_expression "(byte *)(puVar3 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) == identifier) ))) )) (compound_statement "{\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }" { (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (if_statement "if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }" if (parenthesized_expression "(0 < (int)uVar8)" ( (binary_expression "0 < (int)uVar8" number_literal < (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }" { (expression_statement "piVar6 = (int *)*param_2;" (assignment_expression "piVar6 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "piVar5 = (int *)puVar3[1];" (assignment_expression "piVar5 = (int *)puVar3[1]" identifier = (cast_expression "(int *)puVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[1]" identifier [ number_literal ]))) ;) (if_statement "if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;" if (parenthesized_expression "((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6))" ( (binary_expression "(piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)" (parenthesized_expression "(piVar6[1] != piVar5[1])" ( (binary_expression "piVar6[1] != piVar5[1]" (subscript_expression "piVar6[1]" identifier [ number_literal ]) != (subscript_expression "piVar5[1]" identifier [ number_literal ])) )) || (parenthesized_expression "(*piVar5 != *piVar6)" ( (binary_expression "*piVar5 != *piVar6" (pointer_expression "*piVar5" * identifier) != (pointer_expression "*piVar6" * identifier)) ))) )) (goto_statement "goto LAB_00478288;" goto statement_identifier ;)) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (do_statement "do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));" do (compound_statement "{\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          }" { (expression_statement "piVar7 = piVar6 + 2;" (assignment_expression "piVar7 = piVar6 + 2" identifier = (binary_expression "piVar6 + 2" identifier + number_literal)) ;) (expression_statement "piVar2 = piVar5 + 2;" (assignment_expression "piVar2 = piVar5 + 2" identifier = (binary_expression "piVar5 + 2" identifier + number_literal)) ;) (expression_statement "uVar10 = uVar10 + 1;" (assignment_expression "uVar10 = uVar10 + 1" identifier = (binary_expression "uVar10 + 1" identifier + number_literal)) ;) (if_statement "if (uVar11 == uVar10) {\n              return iVar13;\n            }" if (parenthesized_expression "(uVar11 == uVar10)" ( (binary_expression "uVar11 == uVar10" identifier == identifier) )) (compound_statement "{\n              return iVar13;\n            }" { (return_statement "return iVar13;" return identifier ;) })) }) while (parenthesized_expression "((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2))" ( (binary_expression "(piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2)" (parenthesized_expression "(piVar6[3] == piVar5[3])" ( (binary_expression "piVar6[3] == piVar5[3]" (subscript_expression "piVar6[3]" identifier [ number_literal ]) == (subscript_expression "piVar5[3]" identifier [ number_literal ])) )) && (parenthesized_expression "(piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2)" ( (comma_expression "piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2" (assignment_expression "piVar5 = piVar2" identifier = identifier) , (comma_expression "piVar6 = piVar7, *piVar7 == *piVar2" (assignment_expression "piVar6 = piVar7" identifier = identifier) , (binary_expression "*piVar7 == *piVar2" (pointer_expression "*piVar7" * identifier) == (pointer_expression "*piVar2" * identifier)))) ))) )) ;) })) (if_statement "if (uVar11 == uVar10) {\n          return iVar13;\n        }" if (parenthesized_expression "(uVar11 == uVar10)" ( (binary_expression "uVar11 == uVar10" identifier == identifier) )) (compound_statement "{\n          return iVar13;\n        }" { (return_statement "return iVar13;" return identifier ;) })) })) (labeled_statement "LAB_00478288:\n      iVar13 = iVar13 + 1;" statement_identifier : (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" identifier = (binary_expression "iVar13 + 1" identifier + number_literal)) ;)) (expression_statement "puVar3 = puVar3 + 10;" (assignment_expression "puVar3 = puVar3 + 10" identifier = (binary_expression "puVar3 + 10" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar13 < iVar9)" ( (binary_expression "iVar13 < iVar9" identifier < identifier) )) ;) (expression_statement "iVar15 = iVar13 * 0x28;" (assignment_expression "iVar15 = iVar13 * 0x28" identifier = (binary_expression "iVar13 * 0x28" identifier * number_literal)) ;) (if_statement "if ((int)uVar8 < 1) {\n      uVar16 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }" if (parenthesized_expression "((int)uVar8 < 1)" ( (binary_expression "(int)uVar8 < 1" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      uVar16 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }" { (expression_statement "uVar16 = 0;" (assignment_expression "uVar16 = 0" identifier = number_literal) ;) (expression_statement "iVar17 = 0;" (assignment_expression "iVar17 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00478408;" goto statement_identifier ;) })) (expression_statement "piVar6 = (int *)*param_2;" (assignment_expression "piVar6 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) }) (else_clause "else {\n    piVar6 = (int *)*param_2;\n    uVar14 = 0;\n    piVar5 = piVar6;\n    do {\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    } while (piVar6 + uVar8 * 2 != piVar2);\n    iVar15 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    iVar13 = 0;\n  }" else (compound_statement "{\n    piVar6 = (int *)*param_2;\n    uVar14 = 0;\n    piVar5 = piVar6;\n    do {\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    } while (piVar6 + uVar8 * 2 != piVar2);\n    iVar15 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    iVar13 = 0;\n  }" { (expression_statement "piVar6 = (int *)*param_2;" (assignment_expression "piVar6 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" identifier = number_literal) ;) (expression_statement "piVar5 = piVar6;" (assignment_expression "piVar5 = piVar6" identifier = identifier) ;) (do_statement "do {\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    } while (piVar6 + uVar8 * 2 != piVar2);" do (compound_statement "{\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    }" { (expression_statement "piVar2 = piVar5 + 2;" (assignment_expression "piVar2 = piVar5 + 2" identifier = (binary_expression "piVar5 + 2" identifier + number_literal)) ;) (expression_statement "uVar14 = uVar14 ^ piVar5[1] + *piVar5;" (assignment_expression "uVar14 = uVar14 ^ piVar5[1] + *piVar5" identifier = (binary_expression "uVar14 ^ piVar5[1] + *piVar5" identifier ^ (binary_expression "piVar5[1] + *piVar5" (subscript_expression "piVar5[1]" identifier [ number_literal ]) + (pointer_expression "*piVar5" * identifier)))) ;) (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" identifier = identifier) ;) }) while (parenthesized_expression "(piVar6 + uVar8 * 2 != piVar2)" ( (binary_expression "piVar6 + uVar8 * 2 != piVar2" (binary_expression "piVar6 + uVar8 * 2" identifier + (binary_expression "uVar8 * 2" identifier * number_literal)) != identifier) )) ;) (expression_statement "iVar15 = 0;" (assignment_expression "iVar15 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar9) goto LAB_00478278;" if (parenthesized_expression "(0 < iVar9)" ( (binary_expression "0 < iVar9" number_literal < identifier) )) (goto_statement "goto LAB_00478278;" goto statement_identifier ;)) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) }))) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (expression_statement "iVar17 = 0;" (assignment_expression "iVar17 = 0" identifier = number_literal) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (do_statement "do {\n    while( true ) {\n      iVar4 = *piVar6 * 4;\n      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);\n      if (uVar10 != 0) break;\n      iVar12 = iVar12 + 1;\n      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar11;\n      piVar6 = piVar6 + 2;\n      if ((int)uVar8 <= iVar12) goto LAB_00478408;\n    }\n    if ((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0) {\n      uVar11 = uVar11 | uVar10;\n    }\n    uVar16 = (undefined2)uVar11;\n    if (iVar17 == 0) {\n      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);\n    }\n    iVar12 = iVar12 + 1;\n    piVar6 = piVar6 + 2;\n  } while (iVar12 < (int)uVar8);" do (compound_statement "{\n    while( true ) {\n      iVar4 = *piVar6 * 4;\n      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);\n      if (uVar10 != 0) break;\n      iVar12 = iVar12 + 1;\n      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar11;\n      piVar6 = piVar6 + 2;\n      if ((int)uVar8 <= iVar12) goto LAB_00478408;\n    }\n    if ((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0) {\n      uVar11 = uVar11 | uVar10;\n    }\n    uVar16 = (undefined2)uVar11;\n    if (iVar17 == 0) {\n      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);\n    }\n    iVar12 = iVar12 + 1;\n    piVar6 = piVar6 + 2;\n  }" { (while_statement "while( true ) {\n      iVar4 = *piVar6 * 4;\n      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);\n      if (uVar10 != 0) break;\n      iVar12 = iVar12 + 1;\n      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar11;\n      piVar6 = piVar6 + 2;\n      if ((int)uVar8 <= iVar12) goto LAB_00478408;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar4 = *piVar6 * 4;\n      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);\n      if (uVar10 != 0) break;\n      iVar12 = iVar12 + 1;\n      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar11;\n      piVar6 = piVar6 + 2;\n      if ((int)uVar8 <= iVar12) goto LAB_00478408;\n    }" { (expression_statement "iVar4 = *piVar6 * 4;" (assignment_expression "iVar4 = *piVar6 * 4" identifier = (binary_expression "*piVar6 * 4" (pointer_expression "*piVar6" * identifier) * number_literal)) ;) (expression_statement "uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);" (assignment_expression "uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4)" identifier = (pointer_expression "*(uint *)(*(int *)(param_1 + 0xb0) + iVar4)" * (cast_expression "(uint *)(*(int *)(param_1 + 0xb0) + iVar4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0xb0) + iVar4)" ( (binary_expression "*(int *)(param_1 + 0xb0) + iVar4" (pointer_expression "*(int *)(param_1 + 0xb0)" * (cast_expression "(int *)(param_1 + 0xb0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb0)" ( (binary_expression "param_1 + 0xb0" identifier + number_literal) )))) + identifier) ))))) ;) (if_statement "if (uVar10 != 0) break;" if (parenthesized_expression "(uVar10 != 0)" ( (binary_expression "uVar10 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (if_statement "if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }" if (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112" (pointer_expression "*(int *)(*(int *)(param_1 + 0x4c) + iVar4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x4c) + iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x4c) + iVar4)" ( (binary_expression "*(int *)(param_1 + 0x4c) + iVar4" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) + identifier) )))) == number_literal) )) (compound_statement "{\n        uVar11 = 0x1ff;\n      }" { (expression_statement "uVar11 = 0x1ff;" (assignment_expression "uVar11 = 0x1ff" identifier = number_literal) ;) })) (expression_statement "uVar16 = (undefined2)uVar11;" (assignment_expression "uVar16 = (undefined2)uVar11" identifier = (cast_expression "(undefined2)uVar11" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" identifier = (binary_expression "piVar6 + 2" identifier + number_literal)) ;) (if_statement "if ((int)uVar8 <= iVar12) goto LAB_00478408;" if (parenthesized_expression "((int)uVar8 <= iVar12)" ( (binary_expression "(int)uVar8 <= iVar12" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) (goto_statement "goto LAB_00478408;" goto statement_identifier ;)) })) (if_statement "if ((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0) {\n      uVar11 = uVar11 | uVar10;\n    }" if (parenthesized_expression "((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0)" ( (binary_expression "(((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0" (parenthesized_expression "(((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7)" ( (binary_expression "((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7" (binary_expression "((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3" (parenthesized_expression "((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10)" ( (binary_expression "(int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10" (binary_expression "(int)uVar10 >> 3 | (int)uVar10 >> 6" (binary_expression "(int)uVar10 >> 3" (cast_expression "(int)uVar10" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) | (binary_expression "(int)uVar10 >> 6" (cast_expression "(int)uVar10" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) | identifier) )) & identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      uVar11 = uVar11 | uVar10;\n    }" { (expression_statement "uVar11 = uVar11 | uVar10;" (assignment_expression "uVar11 = uVar11 | uVar10" identifier = (binary_expression "uVar11 | uVar10" identifier | identifier)) ;) })) (expression_statement "uVar16 = (undefined2)uVar11;" (assignment_expression "uVar16 = (undefined2)uVar11" identifier = (cast_expression "(undefined2)uVar11" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;) (if_statement "if (iVar17 == 0) {\n      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);\n    }" if (parenthesized_expression "(iVar17 == 0)" ( (binary_expression "iVar17 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);\n    }" { (expression_statement "iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);" (assignment_expression "iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x4c) + iVar4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x4c) + iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x4c) + iVar4)" ( (binary_expression "*(int *)(param_1 + 0x4c) + iVar4" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) + identifier) ))))) ;) })) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" identifier = (binary_expression "piVar6 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar12 < (int)uVar8)" ( (binary_expression "iVar12 < (int)uVar8" identifier < (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) (labeled_statement "LAB_00478408:\n  if (*(int *)(param_1 + 0xa4) <= iVar9) {\n    puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);\n    uVar8 = param_2[1];\n  }" statement_identifier : (if_statement "if (*(int *)(param_1 + 0xa4) <= iVar9) {\n    puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);\n    uVar8 = param_2[1];\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xa4) <= iVar9)" ( (binary_expression "*(int *)(param_1 + 0xa4) <= iVar9" (pointer_expression "*(int *)(param_1 + 0xa4)" * (cast_expression "(int *)(param_1 + 0xa4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa4)" ( (binary_expression "param_1 + 0xa4" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);\n    uVar8 = param_2[1];\n  }" { (expression_statement "puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);" (assignment_expression "puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28)" identifier = (cast_expression "(uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28)" identifier (argument_list "(puVar1,param_1 + 0xa4,1,0xffffffff,0x28)" ( identifier , (binary_expression "param_1 + 0xa4" identifier + number_literal) , number_literal , number_literal , number_literal ))))) ;) (expression_statement "uVar8 = param_2[1];" (assignment_expression "uVar8 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) }))) (expression_statement "*(uint **)(param_1 + 0x9c) = puVar1;" (assignment_expression "*(uint **)(param_1 + 0x9c) = puVar1" (pointer_expression "*(uint **)(param_1 + 0x9c)" * (cast_expression "(uint **)(param_1 + 0x9c)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x9c)" ( (binary_expression "param_1 + 0x9c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)((int)puVar1 + iVar15) = uVar14;" (assignment_expression "*(uint *)((int)puVar1 + iVar15) = uVar14" (pointer_expression "*(uint *)((int)puVar1 + iVar15)" * (cast_expression "(uint *)((int)puVar1 + iVar15)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + iVar15)" ( (binary_expression "(int)puVar1 + iVar15" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = identifier) ;) (expression_statement "FUN_004781bc((uint *)((int)puVar1 + iVar15) + 1,uVar8);" (call_expression "FUN_004781bc((uint *)((int)puVar1 + iVar15) + 1,uVar8)" identifier (argument_list "((uint *)((int)puVar1 + iVar15) + 1,uVar8)" ( (binary_expression "(uint *)((int)puVar1 + iVar15) + 1" (cast_expression "(uint *)((int)puVar1 + iVar15)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + iVar15)" ( (binary_expression "(int)puVar1 + iVar15" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) + number_literal) , identifier ))) ;) (expression_statement "FUN_00475cdc(param_2,param_2 + 1,*(int *)(param_1 + 0x9c) + iVar15 + 4);" (call_expression "FUN_00475cdc(param_2,param_2 + 1,*(int *)(param_1 + 0x9c) + iVar15 + 4)" identifier (argument_list "(param_2,param_2 + 1,*(int *)(param_1 + 0x9c) + iVar15 + 4)" ( identifier , (binary_expression "param_2 + 1" identifier + number_literal) , (binary_expression "*(int *)(param_1 + 0x9c) + iVar15 + 4" (binary_expression "*(int *)(param_1 + 0x9c) + iVar15" (pointer_expression "*(int *)(param_1 + 0x9c)" * (cast_expression "(int *)(param_1 + 0x9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x9c)" ( (binary_expression "param_1 + 0x9c" identifier + number_literal) )))) + identifier) + number_literal) ))) ;) (expression_statement "iVar15 = *(int *)(param_1 + 0x9c) + iVar15;" (assignment_expression "iVar15 = *(int *)(param_1 + 0x9c) + iVar15" identifier = (binary_expression "*(int *)(param_1 + 0x9c) + iVar15" (pointer_expression "*(int *)(param_1 + 0x9c)" * (cast_expression "(int *)(param_1 + 0x9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x9c)" ( (binary_expression "param_1 + 0x9c" identifier + number_literal) )))) + identifier)) ;) (expression_statement "*(char *)(iVar15 + 0x10) = (char)param_3;" (assignment_expression "*(char *)(iVar15 + 0x10) = (char)param_3" (pointer_expression "*(char *)(iVar15 + 0x10)" * (cast_expression "(char *)(iVar15 + 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar15 + 0x10)" ( (binary_expression "iVar15 + 0x10" identifier + number_literal) )))) = (cast_expression "(char)param_3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "iVar9 = *(int *)(param_1 + 0xa0);" (assignment_expression "iVar9 = *(int *)(param_1 + 0xa0)" identifier = (pointer_expression "*(int *)(param_1 + 0xa0)" * (cast_expression "(int *)(param_1 + 0xa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) ))))) ;) (expression_statement "*(undefined2 *)(iVar15 + 0x12) = uVar16;" (assignment_expression "*(undefined2 *)(iVar15 + 0x12) = uVar16" (pointer_expression "*(undefined2 *)(iVar15 + 0x12)" * (cast_expression "(undefined2 *)(iVar15 + 0x12)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar15 + 0x12)" ( (binary_expression "iVar15 + 0x12" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar15 + 0x14) = iVar17;" (assignment_expression "*(int *)(iVar15 + 0x14) = iVar17" (pointer_expression "*(int *)(iVar15 + 0x14)" * (cast_expression "(int *)(iVar15 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar15 + 0x14)" ( (binary_expression "iVar15 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar15 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(iVar15 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(iVar15 + 0x1c)" * (cast_expression "(undefined4 *)(iVar15 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar15 + 0x1c)" ( (binary_expression "iVar15 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar15 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(iVar15 + 0x18) = 0" (pointer_expression "*(undefined4 *)(iVar15 + 0x18)" * (cast_expression "(undefined4 *)(iVar15 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar15 + 0x18)" ( (binary_expression "iVar15 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar15 + 0x24) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar15 + 0x24) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar15 + 0x24)" * (cast_expression "(undefined4 *)(iVar15 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar15 + 0x24)" ( (binary_expression "iVar15 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0xa0) = iVar9 + 1;" (assignment_expression "*(int *)(param_1 + 0xa0) = iVar9 + 1" (pointer_expression "*(int *)(param_1 + 0xa0)" * (cast_expression "(int *)(param_1 + 0xa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (return_statement "return iVar13;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) , (binary_expression IDENT == IDENT)) ))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (subscript_expression IDENT [ LIT ])) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (pointer_expression * IDENT)) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (subscript_expression IDENT [ LIT ])) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT)))) ))) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT ^ (binary_expression (subscript_expression IDENT [ LIT ]) + (pointer_expression * IDENT)))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) != IDENT) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) * LIT)) ;) (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) )))) + IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (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) )))) + IDENT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= IDENT) )) (goto_statement goto statement_identifier ;)) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT)) | IDENT) )) & IDENT) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT , LIT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) ))) + LIT) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_0047820c(int param_1,int *param_2,uint param_3)\n\n{\n  uint *puVar1;\n  int *piVar2;\n  uint *puVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int *piVar7;\n  uint uVar8;\n  int iVar9;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  uint uVar14;\n  int iVar15;\n  undefined2 uVar16;\n  int iVar17;\n  \n  uVar8 = param_2[1];\n  iVar9 = *(int *)(param_1 + 0xa0);\n  puVar1 = *(uint **)(param_1 + 0x9c);\n  if ((int)uVar8 < 1) {\n    uVar16 = 0;\n    if (iVar9 < 1) {\n      iVar15 = 0;\n      uVar14 = 0;\n      iVar13 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    uVar14 = 0;\nLAB_00478278:\n    iVar13 = 0;\n    puVar3 = puVar1;\n    do {\n      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }\nLAB_00478288:\n      iVar13 = iVar13 + 1;\n      puVar3 = puVar3 + 10;\n    } while (iVar13 < iVar9);\n    iVar15 = iVar13 * 0x28;\n    if ((int)uVar8 < 1) {\n      uVar16 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    piVar6 = (int *)*param_2;\n  }\n  else {\n    piVar6 = (int *)*param_2;\n    uVar14 = 0;\n    piVar5 = piVar6;\n    do {\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    } while (piVar6 + uVar8 * 2 != piVar2);\n    iVar15 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    iVar13 = 0;\n  }\n  iVar12 = 0;\n  iVar17 = 0;\n  uVar11 = 0;\n  do {\n    while( true ) {\n      iVar4 = *piVar6 * 4;\n      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);\n      if (uVar10 != 0) break;\n      iVar12 = iVar12 + 1;\n      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar11;\n      piVar6 = piVar6 + 2;\n      if ((int)uVar8 <= iVar12) goto LAB_00478408;\n    }\n    if ((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0) {\n      uVar11 = uVar11 | uVar10;\n    }\n    uVar16 = (undefined2)uVar11;\n    if (iVar17 == 0) {\n      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);\n    }\n    iVar12 = iVar12 + 1;\n    piVar6 = piVar6 + 2;\n  } while (iVar12 < (int)uVar8);\nLAB_00478408:\n  if (*(int *)(param_1 + 0xa4) <= iVar9) {\n    puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);\n    uVar8 = param_2[1];\n  }\n  *(uint **)(param_1 + 0x9c) = puVar1;\n  *(uint *)((int)puVar1 + iVar15) = uVar14;\n  FUN_004781bc((uint *)((int)puVar1 + iVar15) + 1,uVar8);\n  FUN_00475cdc(param_2,param_2 + 1,*(int *)(param_1 + 0x9c) + iVar15 + 4);\n  iVar15 = *(int *)(param_1 + 0x9c) + iVar15;\n  *(char *)(iVar15 + 0x10) = (char)param_3;\n  iVar9 = *(int *)(param_1 + 0xa0);\n  *(undefined2 *)(iVar15 + 0x12) = uVar16;\n  *(int *)(iVar15 + 0x14) = iVar17;\n  *(undefined4 *)(iVar15 + 0x1c) = 0;\n  *(undefined4 *)(iVar15 + 0x18) = 0;\n  *(undefined4 *)(iVar15 + 0x24) = 0xffffffff;\n  *(int *)(param_1 + 0xa0) = iVar9 + 1;\n  return iVar13;\n}" (primitive_type "int") (function_declarator "FUN_0047820c(int param_1,int *param_2,uint param_3)" (identifier "FUN_0047820c") (parameter_list "(int param_1,int *param_2,uint param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint *puVar1;\n  int *piVar2;\n  uint *puVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int *piVar7;\n  uint uVar8;\n  int iVar9;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  uint uVar14;\n  int iVar15;\n  undefined2 uVar16;\n  int iVar17;\n  \n  uVar8 = param_2[1];\n  iVar9 = *(int *)(param_1 + 0xa0);\n  puVar1 = *(uint **)(param_1 + 0x9c);\n  if ((int)uVar8 < 1) {\n    uVar16 = 0;\n    if (iVar9 < 1) {\n      iVar15 = 0;\n      uVar14 = 0;\n      iVar13 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    uVar14 = 0;\nLAB_00478278:\n    iVar13 = 0;\n    puVar3 = puVar1;\n    do {\n      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }\nLAB_00478288:\n      iVar13 = iVar13 + 1;\n      puVar3 = puVar3 + 10;\n    } while (iVar13 < iVar9);\n    iVar15 = iVar13 * 0x28;\n    if ((int)uVar8 < 1) {\n      uVar16 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    piVar6 = (int *)*param_2;\n  }\n  else {\n    piVar6 = (int *)*param_2;\n    uVar14 = 0;\n    piVar5 = piVar6;\n    do {\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    } while (piVar6 + uVar8 * 2 != piVar2);\n    iVar15 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    iVar13 = 0;\n  }\n  iVar12 = 0;\n  iVar17 = 0;\n  uVar11 = 0;\n  do {\n    while( true ) {\n      iVar4 = *piVar6 * 4;\n      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);\n      if (uVar10 != 0) break;\n      iVar12 = iVar12 + 1;\n      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar11;\n      piVar6 = piVar6 + 2;\n      if ((int)uVar8 <= iVar12) goto LAB_00478408;\n    }\n    if ((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0) {\n      uVar11 = uVar11 | uVar10;\n    }\n    uVar16 = (undefined2)uVar11;\n    if (iVar17 == 0) {\n      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);\n    }\n    iVar12 = iVar12 + 1;\n    piVar6 = piVar6 + 2;\n  } while (iVar12 < (int)uVar8);\nLAB_00478408:\n  if (*(int *)(param_1 + 0xa4) <= iVar9) {\n    puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);\n    uVar8 = param_2[1];\n  }\n  *(uint **)(param_1 + 0x9c) = puVar1;\n  *(uint *)((int)puVar1 + iVar15) = uVar14;\n  FUN_004781bc((uint *)((int)puVar1 + iVar15) + 1,uVar8);\n  FUN_00475cdc(param_2,param_2 + 1,*(int *)(param_1 + 0x9c) + iVar15 + 4);\n  iVar15 = *(int *)(param_1 + 0x9c) + iVar15;\n  *(char *)(iVar15 + 0x10) = (char)param_3;\n  iVar9 = *(int *)(param_1 + 0xa0);\n  *(undefined2 *)(iVar15 + 0x12) = uVar16;\n  *(int *)(iVar15 + 0x14) = iVar17;\n  *(undefined4 *)(iVar15 + 0x1c) = 0;\n  *(undefined4 *)(iVar15 + 0x18) = 0;\n  *(undefined4 *)(iVar15 + 0x24) = 0xffffffff;\n  *(int *)(param_1 + 0xa0) = iVar9 + 1;\n  return iVar13;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "uint *puVar3;" (type_identifier "uint") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "uint uVar14;" (type_identifier "uint") (identifier "uVar14") (; ";")) (declaration "int iVar15;" (primitive_type "int") (identifier "iVar15") (; ";")) (declaration "undefined2 uVar16;" (type_identifier "undefined2") (identifier "uVar16") (; ";")) (declaration "int iVar17;" (primitive_type "int") (identifier "iVar17") (; ";")) (expression_statement "uVar8 = param_2[1];" (assignment_expression "uVar8 = param_2[1]" (identifier "uVar8") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar9 = *(int *)(param_1 + 0xa0);" (assignment_expression "iVar9 = *(int *)(param_1 + 0xa0)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(param_1 + 0xa0)" (* "*") (cast_expression "(int *)(param_1 + 0xa0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa0)" (( "(") (binary_expression "param_1 + 0xa0" (identifier "param_1") (+ "+") (number_literal "0xa0")) () ")"))))) (; ";")) (expression_statement "puVar1 = *(uint **)(param_1 + 0x9c);" (assignment_expression "puVar1 = *(uint **)(param_1 + 0x9c)" (identifier "puVar1") (= "=") (pointer_expression "*(uint **)(param_1 + 0x9c)" (* "*") (cast_expression "(uint **)(param_1 + 0x9c)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x9c)" (( "(") (binary_expression "param_1 + 0x9c" (identifier "param_1") (+ "+") (number_literal "0x9c")) () ")"))))) (; ";")) (if_statement "if ((int)uVar8 < 1) {\n    uVar16 = 0;\n    if (iVar9 < 1) {\n      iVar15 = 0;\n      uVar14 = 0;\n      iVar13 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    uVar14 = 0;\nLAB_00478278:\n    iVar13 = 0;\n    puVar3 = puVar1;\n    do {\n      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }\nLAB_00478288:\n      iVar13 = iVar13 + 1;\n      puVar3 = puVar3 + 10;\n    } while (iVar13 < iVar9);\n    iVar15 = iVar13 * 0x28;\n    if ((int)uVar8 < 1) {\n      uVar16 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    piVar6 = (int *)*param_2;\n  }\n  else {\n    piVar6 = (int *)*param_2;\n    uVar14 = 0;\n    piVar5 = piVar6;\n    do {\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    } while (piVar6 + uVar8 * 2 != piVar2);\n    iVar15 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    iVar13 = 0;\n  }" (if "if") (parenthesized_expression "((int)uVar8 < 1)" (( "(") (binary_expression "(int)uVar8 < 1" (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    uVar16 = 0;\n    if (iVar9 < 1) {\n      iVar15 = 0;\n      uVar14 = 0;\n      iVar13 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    uVar14 = 0;\nLAB_00478278:\n    iVar13 = 0;\n    puVar3 = puVar1;\n    do {\n      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }\nLAB_00478288:\n      iVar13 = iVar13 + 1;\n      puVar3 = puVar3 + 10;\n    } while (iVar13 < iVar9);\n    iVar15 = iVar13 * 0x28;\n    if ((int)uVar8 < 1) {\n      uVar16 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }\n    piVar6 = (int *)*param_2;\n  }" ({ "{") (expression_statement "uVar16 = 0;" (assignment_expression "uVar16 = 0" (identifier "uVar16") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar9 < 1) {\n      iVar15 = 0;\n      uVar14 = 0;\n      iVar13 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }" (if "if") (parenthesized_expression "(iVar9 < 1)" (( "(") (binary_expression "iVar9 < 1" (identifier "iVar9") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      iVar15 = 0;\n      uVar14 = 0;\n      iVar13 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }" ({ "{") (expression_statement "iVar15 = 0;" (assignment_expression "iVar15 = 0" (identifier "iVar15") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" (identifier "uVar14") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" (identifier "iVar13") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar17 = 0;" (assignment_expression "iVar17 = 0" (identifier "iVar17") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00478408;" (goto "goto") (statement_identifier "LAB_00478408") (; ";")) (} "}"))) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" (identifier "uVar14") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00478278:\n    iVar13 = 0;" (statement_identifier "LAB_00478278") (: ":") (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" (identifier "iVar13") (= "=") (number_literal "0")) (; ";"))) (expression_statement "puVar3 = puVar1;" (assignment_expression "puVar3 = puVar1" (identifier "puVar3") (= "=") (identifier "puVar1")) (; ";")) (do_statement "do {\n      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }\nLAB_00478288:\n      iVar13 = iVar13 + 1;\n      puVar3 = puVar3 + 10;\n    } while (iVar13 < iVar9);" (do "do") (compound_statement "{\n      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }\nLAB_00478288:\n      iVar13 = iVar13 + 1;\n      puVar3 = puVar3 + 10;\n    }" ({ "{") (if_statement "if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)) {\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }" (if "if") (parenthesized_expression "(((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3))" (( "(") (binary_expression "((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&\n         (*(byte *)(puVar3 + 4) == param_3)" (parenthesized_expression "((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8))" (( "(") (binary_expression "(*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)" (parenthesized_expression "(*puVar3 == uVar14)" (( "(") (binary_expression "*puVar3 == uVar14" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (== "==") (identifier "uVar14")) () ")")) (&& "&&") (parenthesized_expression "(uVar11 = puVar3[2], uVar11 == uVar8)" (( "(") (comma_expression "uVar11 = puVar3[2], uVar11 == uVar8" (assignment_expression "uVar11 = puVar3[2]" (identifier "uVar11") (= "=") (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]"))) (, ",") (binary_expression "uVar11 == uVar8" (identifier "uVar11") (== "==") (identifier "uVar8"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(byte *)(puVar3 + 4) == param_3)" (( "(") (binary_expression "*(byte *)(puVar3 + 4) == param_3" (pointer_expression "*(byte *)(puVar3 + 4)" (* "*") (cast_expression "(byte *)(puVar3 + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 4)" (( "(") (binary_expression "puVar3 + 4" (identifier "puVar3") (+ "+") (number_literal "4")) () ")")))) (== "==") (identifier "param_3")) () ")"))) () ")")) (compound_statement "{\n        uVar10 = 0;\n        if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }\n        if (uVar11 == uVar10) {\n          return iVar13;\n        }\n      }" ({ "{") (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" (identifier "uVar10") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < (int)uVar8) {\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }" (if "if") (parenthesized_expression "(0 < (int)uVar8)" (( "(") (binary_expression "0 < (int)uVar8" (number_literal "0") (< "<") (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8"))) () ")")) (compound_statement "{\n          piVar6 = (int *)*param_2;\n          piVar5 = (int *)puVar3[1];\n          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;\n          uVar10 = 0;\n          do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));\n        }" ({ "{") (expression_statement "piVar6 = (int *)*param_2;" (assignment_expression "piVar6 = (int *)*param_2" (identifier "piVar6") (= "=") (cast_expression "(int *)*param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "piVar5 = (int *)puVar3[1];" (assignment_expression "piVar5 = (int *)puVar3[1]" (identifier "piVar5") (= "=") (cast_expression "(int *)puVar3[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;" (if "if") (parenthesized_expression "((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6))" (( "(") (binary_expression "(piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)" (parenthesized_expression "(piVar6[1] != piVar5[1])" (( "(") (binary_expression "piVar6[1] != piVar5[1]" (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")) (!= "!=") (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]"))) () ")")) (|| "||") (parenthesized_expression "(*piVar5 != *piVar6)" (( "(") (binary_expression "*piVar5 != *piVar6" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (!= "!=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) () ")"))) () ")")) (goto_statement "goto LAB_00478288;" (goto "goto") (statement_identifier "LAB_00478288") (; ";"))) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" (identifier "uVar10") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          } while ((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));" (do "do") (compound_statement "{\n            piVar7 = piVar6 + 2;\n            piVar2 = piVar5 + 2;\n            uVar10 = uVar10 + 1;\n            if (uVar11 == uVar10) {\n              return iVar13;\n            }\n          }" ({ "{") (expression_statement "piVar7 = piVar6 + 2;" (assignment_expression "piVar7 = piVar6 + 2" (identifier "piVar7") (= "=") (binary_expression "piVar6 + 2" (identifier "piVar6") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "piVar2 = piVar5 + 2;" (assignment_expression "piVar2 = piVar5 + 2" (identifier "piVar2") (= "=") (binary_expression "piVar5 + 2" (identifier "piVar5") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "uVar10 = uVar10 + 1;" (assignment_expression "uVar10 = uVar10 + 1" (identifier "uVar10") (= "=") (binary_expression "uVar10 + 1" (identifier "uVar10") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar11 == uVar10) {\n              return iVar13;\n            }" (if "if") (parenthesized_expression "(uVar11 == uVar10)" (( "(") (binary_expression "uVar11 == uVar10" (identifier "uVar11") (== "==") (identifier "uVar10")) () ")")) (compound_statement "{\n              return iVar13;\n            }" ({ "{") (return_statement "return iVar13;" (return "return") (identifier "iVar13") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "((piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2))" (( "(") (binary_expression "(piVar6[3] == piVar5[3]) &&\n                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2)" (parenthesized_expression "(piVar6[3] == piVar5[3])" (( "(") (binary_expression "piVar6[3] == piVar5[3]" (subscript_expression "piVar6[3]" (identifier "piVar6") ([ "[") (number_literal "3") (] "]")) (== "==") (subscript_expression "piVar5[3]" (identifier "piVar5") ([ "[") (number_literal "3") (] "]"))) () ")")) (&& "&&") (parenthesized_expression "(piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2)" (( "(") (comma_expression "piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2" (assignment_expression "piVar5 = piVar2" (identifier "piVar5") (= "=") (identifier "piVar2")) (, ",") (comma_expression "piVar6 = piVar7, *piVar7 == *piVar2" (assignment_expression "piVar6 = piVar7" (identifier "piVar6") (= "=") (identifier "piVar7")) (, ",") (binary_expression "*piVar7 == *piVar2" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (== "==") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))))) () ")"))) () ")")) (; ";")) (} "}"))) (if_statement "if (uVar11 == uVar10) {\n          return iVar13;\n        }" (if "if") (parenthesized_expression "(uVar11 == uVar10)" (( "(") (binary_expression "uVar11 == uVar10" (identifier "uVar11") (== "==") (identifier "uVar10")) () ")")) (compound_statement "{\n          return iVar13;\n        }" ({ "{") (return_statement "return iVar13;" (return "return") (identifier "iVar13") (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_00478288:\n      iVar13 = iVar13 + 1;" (statement_identifier "LAB_00478288") (: ":") (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" (identifier "iVar13") (= "=") (binary_expression "iVar13 + 1" (identifier "iVar13") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "puVar3 = puVar3 + 10;" (assignment_expression "puVar3 = puVar3 + 10" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 10" (identifier "puVar3") (+ "+") (number_literal "10"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar13 < iVar9)" (( "(") (binary_expression "iVar13 < iVar9" (identifier "iVar13") (< "<") (identifier "iVar9")) () ")")) (; ";")) (expression_statement "iVar15 = iVar13 * 0x28;" (assignment_expression "iVar15 = iVar13 * 0x28" (identifier "iVar15") (= "=") (binary_expression "iVar13 * 0x28" (identifier "iVar13") (* "*") (number_literal "0x28"))) (; ";")) (if_statement "if ((int)uVar8 < 1) {\n      uVar16 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }" (if "if") (parenthesized_expression "((int)uVar8 < 1)" (( "(") (binary_expression "(int)uVar8 < 1" (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      uVar16 = 0;\n      iVar17 = 0;\n      goto LAB_00478408;\n    }" ({ "{") (expression_statement "uVar16 = 0;" (assignment_expression "uVar16 = 0" (identifier "uVar16") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar17 = 0;" (assignment_expression "iVar17 = 0" (identifier "iVar17") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00478408;" (goto "goto") (statement_identifier "LAB_00478408") (; ";")) (} "}"))) (expression_statement "piVar6 = (int *)*param_2;" (assignment_expression "piVar6 = (int *)*param_2" (identifier "piVar6") (= "=") (cast_expression "(int *)*param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (} "}")) (else_clause "else {\n    piVar6 = (int *)*param_2;\n    uVar14 = 0;\n    piVar5 = piVar6;\n    do {\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    } while (piVar6 + uVar8 * 2 != piVar2);\n    iVar15 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    iVar13 = 0;\n  }" (else "else") (compound_statement "{\n    piVar6 = (int *)*param_2;\n    uVar14 = 0;\n    piVar5 = piVar6;\n    do {\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    } while (piVar6 + uVar8 * 2 != piVar2);\n    iVar15 = 0;\n    if (0 < iVar9) goto LAB_00478278;\n    iVar13 = 0;\n  }" ({ "{") (expression_statement "piVar6 = (int *)*param_2;" (assignment_expression "piVar6 = (int *)*param_2" (identifier "piVar6") (= "=") (cast_expression "(int *)*param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" (identifier "uVar14") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar5 = piVar6;" (assignment_expression "piVar5 = piVar6" (identifier "piVar5") (= "=") (identifier "piVar6")) (; ";")) (do_statement "do {\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    } while (piVar6 + uVar8 * 2 != piVar2);" (do "do") (compound_statement "{\n      piVar2 = piVar5 + 2;\n      uVar14 = uVar14 ^ piVar5[1] + *piVar5;\n      piVar5 = piVar2;\n    }" ({ "{") (expression_statement "piVar2 = piVar5 + 2;" (assignment_expression "piVar2 = piVar5 + 2" (identifier "piVar2") (= "=") (binary_expression "piVar5 + 2" (identifier "piVar5") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "uVar14 = uVar14 ^ piVar5[1] + *piVar5;" (assignment_expression "uVar14 = uVar14 ^ piVar5[1] + *piVar5" (identifier "uVar14") (= "=") (binary_expression "uVar14 ^ piVar5[1] + *piVar5" (identifier "uVar14") (^ "^") (binary_expression "piVar5[1] + *piVar5" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (+ "+") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))))) (; ";")) (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" (identifier "piVar5") (= "=") (identifier "piVar2")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar6 + uVar8 * 2 != piVar2)" (( "(") (binary_expression "piVar6 + uVar8 * 2 != piVar2" (binary_expression "piVar6 + uVar8 * 2" (identifier "piVar6") (+ "+") (binary_expression "uVar8 * 2" (identifier "uVar8") (* "*") (number_literal "2"))) (!= "!=") (identifier "piVar2")) () ")")) (; ";")) (expression_statement "iVar15 = 0;" (assignment_expression "iVar15 = 0" (identifier "iVar15") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < iVar9) goto LAB_00478278;" (if "if") (parenthesized_expression "(0 < iVar9)" (( "(") (binary_expression "0 < iVar9" (number_literal "0") (< "<") (identifier "iVar9")) () ")")) (goto_statement "goto LAB_00478278;" (goto "goto") (statement_identifier "LAB_00478278") (; ";"))) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" (identifier "iVar13") (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" (identifier "iVar12") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar17 = 0;" (assignment_expression "iVar17 = 0" (identifier "iVar17") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    while( true ) {\n      iVar4 = *piVar6 * 4;\n      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);\n      if (uVar10 != 0) break;\n      iVar12 = iVar12 + 1;\n      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar11;\n      piVar6 = piVar6 + 2;\n      if ((int)uVar8 <= iVar12) goto LAB_00478408;\n    }\n    if ((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0) {\n      uVar11 = uVar11 | uVar10;\n    }\n    uVar16 = (undefined2)uVar11;\n    if (iVar17 == 0) {\n      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);\n    }\n    iVar12 = iVar12 + 1;\n    piVar6 = piVar6 + 2;\n  } while (iVar12 < (int)uVar8);" (do "do") (compound_statement "{\n    while( true ) {\n      iVar4 = *piVar6 * 4;\n      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);\n      if (uVar10 != 0) break;\n      iVar12 = iVar12 + 1;\n      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar11;\n      piVar6 = piVar6 + 2;\n      if ((int)uVar8 <= iVar12) goto LAB_00478408;\n    }\n    if ((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0) {\n      uVar11 = uVar11 | uVar10;\n    }\n    uVar16 = (undefined2)uVar11;\n    if (iVar17 == 0) {\n      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);\n    }\n    iVar12 = iVar12 + 1;\n    piVar6 = piVar6 + 2;\n  }" ({ "{") (while_statement "while( true ) {\n      iVar4 = *piVar6 * 4;\n      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);\n      if (uVar10 != 0) break;\n      iVar12 = iVar12 + 1;\n      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar11;\n      piVar6 = piVar6 + 2;\n      if ((int)uVar8 <= iVar12) goto LAB_00478408;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar4 = *piVar6 * 4;\n      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);\n      if (uVar10 != 0) break;\n      iVar12 = iVar12 + 1;\n      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }\n      uVar16 = (undefined2)uVar11;\n      piVar6 = piVar6 + 2;\n      if ((int)uVar8 <= iVar12) goto LAB_00478408;\n    }" ({ "{") (expression_statement "iVar4 = *piVar6 * 4;" (assignment_expression "iVar4 = *piVar6 * 4" (identifier "iVar4") (= "=") (binary_expression "*piVar6 * 4" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (* "*") (number_literal "4"))) (; ";")) (expression_statement "uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);" (assignment_expression "uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4)" (identifier "uVar10") (= "=") (pointer_expression "*(uint *)(*(int *)(param_1 + 0xb0) + iVar4)" (* "*") (cast_expression "(uint *)(*(int *)(param_1 + 0xb0) + iVar4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0xb0) + iVar4)" (( "(") (binary_expression "*(int *)(param_1 + 0xb0) + iVar4" (pointer_expression "*(int *)(param_1 + 0xb0)" (* "*") (cast_expression "(int *)(param_1 + 0xb0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb0)" (( "(") (binary_expression "param_1 + 0xb0" (identifier "param_1") (+ "+") (number_literal "0xb0")) () ")")))) (+ "+") (identifier "iVar4")) () ")"))))) (; ";")) (if_statement "if (uVar10 != 0) break;" (if "if") (parenthesized_expression "(uVar10 != 0)" (( "(") (binary_expression "uVar10 != 0" (identifier "uVar10") (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" (identifier "iVar12") (= "=") (binary_expression "iVar12 + 1" (identifier "iVar12") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {\n        uVar11 = 0x1ff;\n      }" (if "if") (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112)" (( "(") (binary_expression "*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112" (pointer_expression "*(int *)(*(int *)(param_1 + 0x4c) + iVar4)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x4c) + iVar4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x4c) + iVar4)" (( "(") (binary_expression "*(int *)(param_1 + 0x4c) + iVar4" (pointer_expression "*(int *)(param_1 + 0x4c)" (* "*") (cast_expression "(int *)(param_1 + 0x4c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (+ "+") (identifier "iVar4")) () ")")))) (== "==") (number_literal "0x112")) () ")")) (compound_statement "{\n        uVar11 = 0x1ff;\n      }" ({ "{") (expression_statement "uVar11 = 0x1ff;" (assignment_expression "uVar11 = 0x1ff" (identifier "uVar11") (= "=") (number_literal "0x1ff")) (; ";")) (} "}"))) (expression_statement "uVar16 = (undefined2)uVar11;" (assignment_expression "uVar16 = (undefined2)uVar11" (identifier "uVar16") (= "=") (cast_expression "(undefined2)uVar11" (( "(") (type_descriptor "undefined2" (type_identifier "undefined2")) () ")") (identifier "uVar11"))) (; ";")) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" (identifier "piVar6") (= "=") (binary_expression "piVar6 + 2" (identifier "piVar6") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if ((int)uVar8 <= iVar12) goto LAB_00478408;" (if "if") (parenthesized_expression "((int)uVar8 <= iVar12)" (( "(") (binary_expression "(int)uVar8 <= iVar12" (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8")) (<= "<=") (identifier "iVar12")) () ")")) (goto_statement "goto LAB_00478408;" (goto "goto") (statement_identifier "LAB_00478408") (; ";"))) (} "}"))) (if_statement "if ((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0) {\n      uVar11 = uVar11 | uVar10;\n    }" (if "if") (parenthesized_expression "((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0)" (( "(") (binary_expression "(((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0" (parenthesized_expression "(((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7)" (( "(") (binary_expression "((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7" (binary_expression "((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3" (parenthesized_expression "((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10)" (( "(") (binary_expression "(int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10" (binary_expression "(int)uVar10 >> 3 | (int)uVar10 >> 6" (binary_expression "(int)uVar10 >> 3" (cast_expression "(int)uVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar10")) (>> ">>") (number_literal "3")) (| "|") (binary_expression "(int)uVar10 >> 6" (cast_expression "(int)uVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar10")) (>> ">>") (number_literal "6"))) (| "|") (identifier "uVar10")) () ")")) (& "&") (identifier "param_3")) (& "&") (number_literal "7")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar11 = uVar11 | uVar10;\n    }" ({ "{") (expression_statement "uVar11 = uVar11 | uVar10;" (assignment_expression "uVar11 = uVar11 | uVar10" (identifier "uVar11") (= "=") (binary_expression "uVar11 | uVar10" (identifier "uVar11") (| "|") (identifier "uVar10"))) (; ";")) (} "}"))) (expression_statement "uVar16 = (undefined2)uVar11;" (assignment_expression "uVar16 = (undefined2)uVar11" (identifier "uVar16") (= "=") (cast_expression "(undefined2)uVar11" (( "(") (type_descriptor "undefined2" (type_identifier "undefined2")) () ")") (identifier "uVar11"))) (; ";")) (if_statement "if (iVar17 == 0) {\n      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);\n    }" (if "if") (parenthesized_expression "(iVar17 == 0)" (( "(") (binary_expression "iVar17 == 0" (identifier "iVar17") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);\n    }" ({ "{") (expression_statement "iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);" (assignment_expression "iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4)" (identifier "iVar17") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x4c) + iVar4)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x4c) + iVar4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x4c) + iVar4)" (( "(") (binary_expression "*(int *)(param_1 + 0x4c) + iVar4" (pointer_expression "*(int *)(param_1 + 0x4c)" (* "*") (cast_expression "(int *)(param_1 + 0x4c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (+ "+") (identifier "iVar4")) () ")"))))) (; ";")) (} "}"))) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" (identifier "iVar12") (= "=") (binary_expression "iVar12 + 1" (identifier "iVar12") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" (identifier "piVar6") (= "=") (binary_expression "piVar6 + 2" (identifier "piVar6") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar12 < (int)uVar8)" (( "(") (binary_expression "iVar12 < (int)uVar8" (identifier "iVar12") (< "<") (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8"))) () ")")) (; ";")) (labeled_statement "LAB_00478408:\n  if (*(int *)(param_1 + 0xa4) <= iVar9) {\n    puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);\n    uVar8 = param_2[1];\n  }" (statement_identifier "LAB_00478408") (: ":") (if_statement "if (*(int *)(param_1 + 0xa4) <= iVar9) {\n    puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);\n    uVar8 = param_2[1];\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xa4) <= iVar9)" (( "(") (binary_expression "*(int *)(param_1 + 0xa4) <= iVar9" (pointer_expression "*(int *)(param_1 + 0xa4)" (* "*") (cast_expression "(int *)(param_1 + 0xa4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa4)" (( "(") (binary_expression "param_1 + 0xa4" (identifier "param_1") (+ "+") (number_literal "0xa4")) () ")")))) (<= "<=") (identifier "iVar9")) () ")")) (compound_statement "{\n    puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);\n    uVar8 = param_2[1];\n  }" ({ "{") (expression_statement "puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);" (assignment_expression "puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28)" (identifier "puVar1") (= "=") (cast_expression "(uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28)" (identifier "FUN_00475b8c") (argument_list "(puVar1,param_1 + 0xa4,1,0xffffffff,0x28)" (( "(") (identifier "puVar1") (, ",") (binary_expression "param_1 + 0xa4" (identifier "param_1") (+ "+") (number_literal "0xa4")) (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (number_literal "0x28") () ")"))))) (; ";")) (expression_statement "uVar8 = param_2[1];" (assignment_expression "uVar8 = param_2[1]" (identifier "uVar8") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")))) (expression_statement "*(uint **)(param_1 + 0x9c) = puVar1;" (assignment_expression "*(uint **)(param_1 + 0x9c) = puVar1" (pointer_expression "*(uint **)(param_1 + 0x9c)" (* "*") (cast_expression "(uint **)(param_1 + 0x9c)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x9c)" (( "(") (binary_expression "param_1 + 0x9c" (identifier "param_1") (+ "+") (number_literal "0x9c")) () ")")))) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "*(uint *)((int)puVar1 + iVar15) = uVar14;" (assignment_expression "*(uint *)((int)puVar1 + iVar15) = uVar14" (pointer_expression "*(uint *)((int)puVar1 + iVar15)" (* "*") (cast_expression "(uint *)((int)puVar1 + iVar15)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar1 + iVar15)" (( "(") (binary_expression "(int)puVar1 + iVar15" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (identifier "iVar15")) () ")")))) (= "=") (identifier "uVar14")) (; ";")) (expression_statement "FUN_004781bc((uint *)((int)puVar1 + iVar15) + 1,uVar8);" (call_expression "FUN_004781bc((uint *)((int)puVar1 + iVar15) + 1,uVar8)" (identifier "FUN_004781bc") (argument_list "((uint *)((int)puVar1 + iVar15) + 1,uVar8)" (( "(") (binary_expression "(uint *)((int)puVar1 + iVar15) + 1" (cast_expression "(uint *)((int)puVar1 + iVar15)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar1 + iVar15)" (( "(") (binary_expression "(int)puVar1 + iVar15" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (identifier "iVar15")) () ")"))) (+ "+") (number_literal "1")) (, ",") (identifier "uVar8") () ")"))) (; ";")) (expression_statement "FUN_00475cdc(param_2,param_2 + 1,*(int *)(param_1 + 0x9c) + iVar15 + 4);" (call_expression "FUN_00475cdc(param_2,param_2 + 1,*(int *)(param_1 + 0x9c) + iVar15 + 4)" (identifier "FUN_00475cdc") (argument_list "(param_2,param_2 + 1,*(int *)(param_1 + 0x9c) + iVar15 + 4)" (( "(") (identifier "param_2") (, ",") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) (, ",") (binary_expression "*(int *)(param_1 + 0x9c) + iVar15 + 4" (binary_expression "*(int *)(param_1 + 0x9c) + iVar15" (pointer_expression "*(int *)(param_1 + 0x9c)" (* "*") (cast_expression "(int *)(param_1 + 0x9c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x9c)" (( "(") (binary_expression "param_1 + 0x9c" (identifier "param_1") (+ "+") (number_literal "0x9c")) () ")")))) (+ "+") (identifier "iVar15")) (+ "+") (number_literal "4")) () ")"))) (; ";")) (expression_statement "iVar15 = *(int *)(param_1 + 0x9c) + iVar15;" (assignment_expression "iVar15 = *(int *)(param_1 + 0x9c) + iVar15" (identifier "iVar15") (= "=") (binary_expression "*(int *)(param_1 + 0x9c) + iVar15" (pointer_expression "*(int *)(param_1 + 0x9c)" (* "*") (cast_expression "(int *)(param_1 + 0x9c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x9c)" (( "(") (binary_expression "param_1 + 0x9c" (identifier "param_1") (+ "+") (number_literal "0x9c")) () ")")))) (+ "+") (identifier "iVar15"))) (; ";")) (expression_statement "*(char *)(iVar15 + 0x10) = (char)param_3;" (assignment_expression "*(char *)(iVar15 + 0x10) = (char)param_3" (pointer_expression "*(char *)(iVar15 + 0x10)" (* "*") (cast_expression "(char *)(iVar15 + 0x10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar15 + 0x10)" (( "(") (binary_expression "iVar15 + 0x10" (identifier "iVar15") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (cast_expression "(char)param_3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_3"))) (; ";")) (expression_statement "iVar9 = *(int *)(param_1 + 0xa0);" (assignment_expression "iVar9 = *(int *)(param_1 + 0xa0)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(param_1 + 0xa0)" (* "*") (cast_expression "(int *)(param_1 + 0xa0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa0)" (( "(") (binary_expression "param_1 + 0xa0" (identifier "param_1") (+ "+") (number_literal "0xa0")) () ")"))))) (; ";")) (expression_statement "*(undefined2 *)(iVar15 + 0x12) = uVar16;" (assignment_expression "*(undefined2 *)(iVar15 + 0x12) = uVar16" (pointer_expression "*(undefined2 *)(iVar15 + 0x12)" (* "*") (cast_expression "(undefined2 *)(iVar15 + 0x12)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar15 + 0x12)" (( "(") (binary_expression "iVar15 + 0x12" (identifier "iVar15") (+ "+") (number_literal "0x12")) () ")")))) (= "=") (identifier "uVar16")) (; ";")) (expression_statement "*(int *)(iVar15 + 0x14) = iVar17;" (assignment_expression "*(int *)(iVar15 + 0x14) = iVar17" (pointer_expression "*(int *)(iVar15 + 0x14)" (* "*") (cast_expression "(int *)(iVar15 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar15 + 0x14)" (( "(") (binary_expression "iVar15 + 0x14" (identifier "iVar15") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "iVar17")) (; ";")) (expression_statement "*(undefined4 *)(iVar15 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(iVar15 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(iVar15 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(iVar15 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar15 + 0x1c)" (( "(") (binary_expression "iVar15 + 0x1c" (identifier "iVar15") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar15 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(iVar15 + 0x18) = 0" (pointer_expression "*(undefined4 *)(iVar15 + 0x18)" (* "*") (cast_expression "(undefined4 *)(iVar15 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar15 + 0x18)" (( "(") (binary_expression "iVar15 + 0x18" (identifier "iVar15") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar15 + 0x24) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar15 + 0x24) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar15 + 0x24)" (* "*") (cast_expression "(undefined4 *)(iVar15 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar15 + 0x24)" (( "(") (binary_expression "iVar15 + 0x24" (identifier "iVar15") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*(int *)(param_1 + 0xa0) = iVar9 + 1;" (assignment_expression "*(int *)(param_1 + 0xa0) = iVar9 + 1" (pointer_expression "*(int *)(param_1 + 0xa0)" (* "*") (cast_expression "(int *)(param_1 + 0xa0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa0)" (( "(") (binary_expression "param_1 + 0xa0" (identifier "param_1") (+ "+") (number_literal "0xa0")) () ")")))) (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return iVar13;" (return "return") (identifier "iVar13") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 function_1(type_2 *d,type_3 *s,int var_5)

{
  type_4 *pdVar1;
  type_5 *var_11;
  type_4 *var_10;
  int iVar4;
  size_t *var_17;
  type_5 *var_7;
  type_5 *var_6;
  type_5 *ppVar8;
  type_6 var_1;
  int var_2;
  int var_8;
  type_7 var_12;
  type_1 var_9;
  type_7 var_3;
  int var_4;
  type_7 var_13;
  type_8 uVar16;
  type_9 var_14;
  
  var_1 = s->nelem;
  var_2 = d->sindex;
  pdVar1 = d->states;
  if (var_1 < 1) {
    uVar16 = 0;
    if (var_2 < 1) {
      var_4 = 0;
      var_3 = 0;
      var_9 = 0;
      var_14 = 0;
      goto LAB_00478408;
    }
    var_3 = 0;
LAB_00478278:
    var_9 = 0;
    var_10 = pdVar1;
    do {
      if (((var_10->hash == var_3) && (var_4 = (var_10->elems).nelem, var_4 == var_1)) &&
         ((type_7)var_10->var_5 == var_5)) {
        var_8 = 0;
        if (0 < var_1) {
          var_6 = s->elems;
          var_7 = (var_10->elems).elems;
          if ((var_6->constraint != var_7->constraint) || (var_7->index != var_6->index))
          goto LAB_00478288;
          var_8 = 0;
          do {
            ppVar8 = var_6 + 1;
            var_11 = var_7 + 1;
            var_8 = var_8 + 1;
            if (var_4 == var_8) {
              return var_9;
            }
          } while ((var_6[1].constraint == var_7[1].constraint) &&
                  (var_7 = var_11, var_6 = ppVar8, ppVar8->index == var_11->index));
        }
        if (var_4 == var_8) {
          return var_9;
        }
      }
LAB_00478288:
      var_9 = var_9 + 1;
      var_10 = var_10 + 1;
    } while (var_9 < var_2);
    var_4 = var_9 * 0x28;
    if (var_1 < 1) {
      uVar16 = 0;
      var_14 = 0;
      goto LAB_00478408;
    }
    var_6 = s->elems;
  }
  else {
    var_6 = s->elems;
    var_3 = 0;
    var_7 = var_6;
    do {
      var_11 = var_7 + 1;
      var_3 = var_3 ^ var_7->constraint + var_7->index;
      var_7 = var_11;
    } while (var_6 + var_1 != var_11);
    var_4 = 0;
    if (0 < var_2) goto LAB_00478278;
    var_9 = 0;
  }
  var_8 = 0;
  var_14 = 0;
  var_13 = 0;
  do {
    while( true ) {
      iVar4 = var_6->index;
      var_12 = d->constraints[iVar4];
      if (var_12 != 0) break;
      var_8 = var_8 + 1;
      if (d->tokens[iVar4] == 0x112) {
        var_13 = 0x1ff;
      }
      uVar16 = (type_8)var_13;
      var_6 = var_6 + 1;
      if (var_1 <= var_8) goto LAB_00478408;
    }
    if ((((int)var_12 >> 3 | (int)var_12 >> 6 | var_12) & var_5 & 7U) != 0) {
      var_13 = var_13 | var_12;
    }
    uVar16 = (type_8)var_13;
    if (var_14 == 0) {
      var_14 = d->tokens[iVar4];
    }
    var_8 = var_8 + 1;
    var_6 = var_6 + 1;
  } while (var_8 < var_1);
LAB_00478408:
  if (d->salloc <= var_2) {
    pdVar1 = (type_4 *)var_15(pdVar1,&d->salloc,1,-1,0x28);
    var_1 = s->nelem;
  }
  var_17 = (size_t *)((int)&pdVar1->hash + var_4);
  d->states = pdVar1;
  *var_17 = var_3;
  var_16((type_3 *)(var_17 + 1),var_1);
  var_18((type_10 *)s,(type_10 *)&s->nelem);
  pdVar1 = d->states;
  (&pdVar1->var_5)[var_4] = (type_11)var_5;
  var_2 = d->sindex;
  *(type_8 *)((int)&pdVar1->constraint + var_4) = uVar16;
  *(type_9 *)((int)&pdVar1->first_end + var_4) = var_14;
  *(type_12 *)((int)&(pdVar1->mbps).nelem + var_4) = 0;
  *(type_12 *)((int)&(pdVar1->mbps).elems + var_4) = 0;
  *(type_12 *)((int)&pdVar1->mb_trindex + var_4) = 0xffffffff;
  d->sindex = var_2 + 1;
  return var_9;
}


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

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

{
  uint *puVar1;
  int *piVar2;
  uint *puVar3;
  int iVar4;
  int *piVar5;
  int *piVar6;
  int *piVar7;
  uint uVar8;
  int iVar9;
  uint uVar10;
  uint uVar11;
  int iVar12;
  int iVar13;
  uint uVar14;
  int iVar15;
  undefined2 uVar16;
  int iVar17;
  
  uVar8 = param_2[1];
  iVar9 = *(int *)(param_1 + 0xa0);
  puVar1 = *(uint **)(param_1 + 0x9c);
  if ((int)uVar8 < 1) {
    uVar16 = 0;
    if (iVar9 < 1) {
      iVar15 = 0;
      uVar14 = 0;
      iVar13 = 0;
      iVar17 = 0;
      goto LAB_00478408;
    }
    uVar14 = 0;
LAB_00478278:
    iVar13 = 0;
    puVar3 = puVar1;
    do {
      if (((*puVar3 == uVar14) && (uVar11 = puVar3[2], uVar11 == uVar8)) &&
         (*(byte *)(puVar3 + 4) == param_3)) {
        uVar10 = 0;
        if (0 < (int)uVar8) {
          piVar6 = (int *)*param_2;
          piVar5 = (int *)puVar3[1];
          if ((piVar6[1] != piVar5[1]) || (*piVar5 != *piVar6)) goto LAB_00478288;
          uVar10 = 0;
          do {
            piVar7 = piVar6 + 2;
            piVar2 = piVar5 + 2;
            uVar10 = uVar10 + 1;
            if (uVar11 == uVar10) {
              return iVar13;
            }
          } while ((piVar6[3] == piVar5[3]) &&
                  (piVar5 = piVar2, piVar6 = piVar7, *piVar7 == *piVar2));
        }
        if (uVar11 == uVar10) {
          return iVar13;
        }
      }
LAB_00478288:
      iVar13 = iVar13 + 1;
      puVar3 = puVar3 + 10;
    } while (iVar13 < iVar9);
    iVar15 = iVar13 * 0x28;
    if ((int)uVar8 < 1) {
      uVar16 = 0;
      iVar17 = 0;
      goto LAB_00478408;
    }
    piVar6 = (int *)*param_2;
  }
  else {
    piVar6 = (int *)*param_2;
    uVar14 = 0;
    piVar5 = piVar6;
    do {
      piVar2 = piVar5 + 2;
      uVar14 = uVar14 ^ piVar5[1] + *piVar5;
      piVar5 = piVar2;
    } while (piVar6 + uVar8 * 2 != piVar2);
    iVar15 = 0;
    if (0 < iVar9) goto LAB_00478278;
    iVar13 = 0;
  }
  iVar12 = 0;
  iVar17 = 0;
  uVar11 = 0;
  do {
    while( true ) {
      iVar4 = *piVar6 * 4;
      uVar10 = *(uint *)(*(int *)(param_1 + 0xb0) + iVar4);
      if (uVar10 != 0) break;
      iVar12 = iVar12 + 1;
      if (*(int *)(*(int *)(param_1 + 0x4c) + iVar4) == 0x112) {
        uVar11 = 0x1ff;
      }
      uVar16 = (undefined2)uVar11;
      piVar6 = piVar6 + 2;
      if ((int)uVar8 <= iVar12) goto LAB_00478408;
    }
    if ((((int)uVar10 >> 3 | (int)uVar10 >> 6 | uVar10) & param_3 & 7) != 0) {
      uVar11 = uVar11 | uVar10;
    }
    uVar16 = (undefined2)uVar11;
    if (iVar17 == 0) {
      iVar17 = *(int *)(*(int *)(param_1 + 0x4c) + iVar4);
    }
    iVar12 = iVar12 + 1;
    piVar6 = piVar6 + 2;
  } while (iVar12 < (int)uVar8);
LAB_00478408:
  if (*(int *)(param_1 + 0xa4) <= iVar9) {
    puVar1 = (uint *)FUN_00475b8c(puVar1,param_1 + 0xa4,1,0xffffffff,0x28);
    uVar8 = param_2[1];
  }
  *(uint **)(param_1 + 0x9c) = puVar1;
  *(uint *)((int)puVar1 + iVar15) = uVar14;
  FUN_004781bc((uint *)((int)puVar1 + iVar15) + 1,uVar8);
  FUN_00475cdc(param_2,param_2 + 1,*(int *)(param_1 + 0x9c) + iVar15 + 4);
  iVar15 = *(int *)(param_1 + 0x9c) + iVar15;
  *(char *)(iVar15 + 0x10) = (char)param_3;
  iVar9 = *(int *)(param_1 + 0xa0);
  *(undefined2 *)(iVar15 + 0x12) = uVar16;
  *(int *)(iVar15 + 0x14) = iVar17;
  *(undefined4 *)(iVar15 + 0x1c) = 0;
  *(undefined4 *)(iVar15 + 0x18) = 0;
  *(undefined4 *)(iVar15 + 0x24) = 0xffffffff;
  *(int *)(param_1 + 0xa0) = iVar9 + 1;
  return iVar13;
}

