
regoff_t re_search_stub(re_pattern_buffer *bufp,char *string,Idx length,Idx start,regoff_t range,
                       Idx stop,re_registers *regs,_Bool ret_len)

{
  byte bVar1;
  uint uVar2;
  regmatch_t *pmatch;
  reg_errcode_t rVar3;
  regmatch_t *prVar4;
  regmatch_t *prVar5;
  regoff_t *prVar6;
  regoff_t *prVar7;
  regoff_t rVar8;
  int iVar9;
  int last_start;
  uint uVar10;
  uint nmatch;
  
  iVar9 = start + range;
  if ((start < 0) || (length < start)) {
    return -1;
  }
  last_start = length;
  if (length < iVar9) {
LAB_000283fc:
    bVar1 = bufp->field_0x1c;
    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;
    if (((start < last_start) && (bufp->fastmap != (char *)0x0)) && ((bVar1 & 0x10) == 0)) {
      rpl_re_compile_fastmap(bufp);
    }
  }
  else {
    if (range < 0) {
      if (iVar9 < 0) {
        uVar2 = (uint)(byte)bufp->field_0x1c;
      }
      else {
        last_start = iVar9;
        if (iVar9 < start) goto LAB_000283fc;
        uVar2 = (uint)(byte)bufp->field_0x1c;
      }
    }
    else {
      if ((iVar9 < start) || (last_start = iVar9, -1 < iVar9)) goto LAB_000283fc;
      uVar2 = (uint)(byte)bufp->field_0x1c;
    }
    last_start = 0;
    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;
  }
  iVar9 = 8;
  if (*(int *)&bufp->field_0x1c << 4 < 0) {
LAB_000283b0:
    iVar9 = 8;
    nmatch = 1;
    regs = (re_registers *)0x0;
  }
  else {
    nmatch = 1;
    if (regs != (re_registers *)0x0) {
      if (((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub))
      {
        if ((int)nmatch < 1) goto LAB_000283b0;
      }
      else {
        nmatch = bufp->re_nsub + 1;
      }
      iVar9 = nmatch << 3;
    }
  }
  pmatch = (regmatch_t *)(*(code *)PTR_malloc_0003c2b4)(iVar9);
  if (pmatch == (regmatch_t *)0x0) {
    return -2;
  }
  rVar3 = re_search_internal(bufp,string,length,start,last_start,stop,nmatch,pmatch,uVar2);
  if (rVar3 == _REG_NOERROR) {
    if (regs != (re_registers *)0x0) {
      uVar2 = (uint)(*(int *)&bufp->field_0x1c << 1) >> 0x1e;
      uVar10 = nmatch + 1;
      if (uVar2 == 0) {
        prVar6 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);
        regs->start = prVar6;
        if (prVar6 != (regoff_t *)0x0) {
          prVar7 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);
          regs->end = prVar7;
          if (prVar7 != (regoff_t *)0x0) {
            regs->num_regs = uVar10;
            iVar9 = 1;
            goto LAB_000282dc;
          }
          (*(code *)PTR_free_0003c320)(prVar6);
        }
LAB_00028538:
        iVar9 = 0;
      }
      else {
        if (uVar2 == 1) {
          iVar9 = 1;
          if (regs->num_regs < uVar10) {
            prVar6 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->start,uVar10 * 4);
            if (prVar6 == (regoff_t *)0x0) goto LAB_00028538;
            prVar7 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->end,uVar10 * 4);
            if (prVar7 == (regoff_t *)0x0) {
              iVar9 = 0;
              (*(code *)PTR_free_0003c320)(prVar6);
              goto LAB_0002835c;
            }
            regs->start = prVar6;
            regs->end = prVar7;
            regs->num_regs = uVar10;
          }
        }
        else {
          if (uVar2 != 2) {
            rVar8 = (*(code *)PTR___assert_fail_0003c220)
                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,
                               PTR_DAT_0003c108 + -0x4a90);
            return rVar8;
          }
          iVar9 = 2;
          if (regs->num_regs < nmatch) {
            rVar8 = (*(code *)PTR___assert_fail_0003c220)
                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,
                               PTR_DAT_0003c108 + -0x4a90);
            return rVar8;
          }
        }
LAB_000282dc:
        if ((int)nmatch < 1) {
          nmatch = 0;
        }
        else {
          prVar4 = pmatch;
          prVar6 = regs->end;
          prVar7 = regs->start;
          do {
            prVar5 = prVar4 + 1;
            *prVar7 = prVar4->rm_so;
            *prVar6 = prVar4->rm_eo;
            prVar4 = prVar5;
            prVar6 = prVar6 + 1;
            prVar7 = prVar7 + 1;
          } while (prVar5 != pmatch + nmatch);
        }
        if (nmatch < regs->num_regs) {
          prVar7 = regs->end;
          prVar6 = regs->start;
          do {
            uVar2 = nmatch + 1;
            prVar7[nmatch] = -1;
            prVar6[nmatch] = -1;
            nmatch = uVar2;
          } while (uVar2 < regs->num_regs);
        }
      }
LAB_0002835c:
      bufp->field_0x1c = bufp->field_0x1c & 0x9f | (byte)(iVar9 << 5);
      if (iVar9 == 0) goto LAB_0002825c;
    }
    rVar8 = pmatch->rm_so;
    if (ret_len) {
      if (start != rVar8) {
        rVar8 = (*(code *)PTR___assert_fail_0003c220)
                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,
                           PTR_DAT_0003c108 + -0x4a80);
        return rVar8;
      }
      rVar8 = pmatch->rm_eo - rVar8;
    }
  }
  else {
    rVar8 = -1;
    if (rVar3 == _REG_NOMATCH) goto LAB_00028260;
LAB_0002825c:
    rVar8 = -2;
  }
LAB_00028260:
  (*(code *)PTR_free_0003c320)(pmatch);
  return rVar8;
}



int FUN_00028134(int param_1,undefined4 param_2,int param_3,int param_4,int param_5,
                undefined4 param_6,uint *param_7,char param_8)

{
  byte bVar1;
  uint uVar2;
  int *piVar3;
  uint uVar4;
  int *piVar5;
  int *piVar6;
  int *piVar7;
  int *piVar8;
  int iVar9;
  int iVar10;
  uint uVar11;
  uint uVar12;
  
  iVar9 = param_4 + param_5;
  if ((param_4 < 0) || (param_3 < param_4)) {
    return -1;
  }
  iVar10 = param_3;
  if (param_3 < iVar9) {
LAB_000283fc:
    bVar1 = *(byte *)(param_1 + 0x1c);
    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;
    if (((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)) {
      rpl_re_compile_fastmap(param_1);
    }
  }
  else {
    if (param_5 < 0) {
      if (iVar9 < 0) {
        uVar2 = (uint)*(byte *)(param_1 + 0x1c);
      }
      else {
        iVar10 = iVar9;
        if (iVar9 < param_4) goto LAB_000283fc;
        uVar2 = (uint)*(byte *)(param_1 + 0x1c);
      }
    }
    else {
      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;
      uVar2 = (uint)*(byte *)(param_1 + 0x1c);
    }
    iVar10 = 0;
    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;
  }
  iVar9 = 8;
  if (*(int *)(param_1 + 0x1c) << 4 < 0) {
LAB_000283b0:
    iVar9 = 8;
    uVar12 = 1;
    param_7 = (uint *)0x0;
  }
  else {
    uVar12 = 1;
    if (param_7 != (uint *)0x0) {
      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&
         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {
        if ((int)uVar12 < 1) goto LAB_000283b0;
      }
      else {
        uVar12 = *(uint *)(param_1 + 0x18) + 1;
      }
      iVar9 = uVar12 << 3;
    }
  }
  piVar3 = (int *)(*(code *)PTR_malloc_0003c2b4)(iVar9);
  if (piVar3 == (int *)0x0) {
    return -2;
  }
  iVar9 = FUN_00022768(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2);
  if (iVar9 == 0) {
    if (param_7 != (uint *)0x0) {
      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;
      uVar11 = uVar12 + 1;
      if (uVar2 == 0) {
        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);
        param_7[1] = uVar2;
        if (uVar2 != 0) {
          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);
          param_7[2] = uVar4;
          if (uVar4 != 0) {
            *param_7 = uVar11;
            iVar9 = 1;
            goto LAB_000282dc;
          }
          (*(code *)PTR_free_0003c320)(uVar2);
        }
LAB_00028538:
        iVar9 = 0;
      }
      else {
        if (uVar2 == 1) {
          iVar9 = 1;
          if (*param_7 < uVar11) {
            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);
            if (uVar2 == 0) goto LAB_00028538;
            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);
            if (uVar4 == 0) {
              iVar9 = 0;
              (*(code *)PTR_free_0003c320)(uVar2);
              goto LAB_0002835c;
            }
            param_7[1] = uVar2;
            param_7[2] = uVar4;
            *param_7 = uVar11;
          }
        }
        else {
          if (uVar2 != 2) {
            iVar9 = (*(code *)PTR___assert_fail_0003c220)
                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,
                               PTR_DAT_0003c108 + -0x4a90);
            return iVar9;
          }
          iVar9 = 2;
          if (*param_7 < uVar12) {
            iVar9 = (*(code *)PTR___assert_fail_0003c220)
                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,
                               PTR_DAT_0003c108 + -0x4a90);
            return iVar9;
          }
        }
LAB_000282dc:
        if ((int)uVar12 < 1) {
          uVar12 = 0;
        }
        else {
          piVar5 = piVar3;
          piVar7 = (int *)param_7[2];
          piVar8 = (int *)param_7[1];
          do {
            piVar6 = piVar5 + 2;
            *piVar8 = *piVar5;
            *piVar7 = piVar5[1];
            piVar5 = piVar6;
            piVar7 = piVar7 + 1;
            piVar8 = piVar8 + 1;
          } while (piVar6 != piVar3 + uVar12 * 2);
        }
        if (uVar12 < *param_7) {
          uVar11 = param_7[2];
          uVar2 = param_7[1];
          do {
            iVar10 = uVar12 * 4;
            uVar12 = uVar12 + 1;
            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;
            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;
          } while (uVar12 < *param_7);
        }
      }
LAB_0002835c:
      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);
      if (iVar9 == 0) goto LAB_0002825c;
    }
    iVar10 = *piVar3;
    if (param_8 != '\0') {
      if (param_4 != iVar10) {
        iVar9 = (*(code *)PTR___assert_fail_0003c220)
                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,
                           PTR_DAT_0003c108 + -0x4a80);
        return iVar9;
      }
      iVar10 = piVar3[1] - iVar10;
    }
  }
  else {
    iVar10 = -1;
    if (iVar9 == 1) goto LAB_00028260;
LAB_0002825c:
    iVar10 = -2;
  }
LAB_00028260:
  (*(code *)PTR_free_0003c320)(piVar3);
  return iVar10;
}


lui gp,0x2
addiu gp,gp,-0x4064
addu gp,gp,t9
addiu sp,sp,-0x60
lw v0,0x70(sp)
sw gp,0x28(sp)
sw s6,0x50(sp)
sw s5,0x4c(sp)
addu s6,a3,v0
sw s4,0x48(sp)
sw ra,0x5c(sp)
sw s8,0x58(sp)
sw s7,0x54(sp)
sw s3,0x44(sp)
sw s2,0x40(sp)
sw s1,0x3c(sp)
sw s0,0x38(sp)
lw s5,0x78(sp)
bltz a3,0x000283c0
_lbu s4,0x7f(sp)
slt v1,a2,a3
bne v1,zero,0x000283c0
_slt v1,a2,s6
or s0,a0,zero
bne v1,zero,0x000283f8
_or s2,a3,zero
bgez v0,0x00028450
_slt v0,s6,a3
bgez s6,0x00028468
_slt v0,s6,s2
lbu v0,0x1c(s0)
or s6,zero,zero
ext s7,v0,0x2,0x1
andi v0,v0,0x2
or s7,s7,v0
lw v0,0x1c(s0)
ext v0,v0,0x1b,0x1
bne v0,zero,0x000283b0
_li a0,0x8
beq s5,zero,0x0002838c
_li s8,0x1
lbu v0,0x1c(s0)
li a0,0x40
andi v0,v0,0x60
beq v0,a0,0x00028394
_lw v1,0x18(s0)
addiu s8,v1,0x1
or s1,s8,zero
sll a0,s8,0x3
lw t9,-0x7e1c(gp)
sw a2,0x34(sp)
jalr t9
_sw a1,0x30(sp)
lw gp,0x28(sp)
beq v0,zero,0x00028448
_or s3,v0,zero
lw t9,-0x7ee8(gp)
or a3,s2,zero
lw a2,0x34(sp)
or a0,s0,zero
lw a1,0x30(sp)
sw v0,0x1c(sp)
addiu t9,t9,0x2768
sw s7,0x20(sp)
sw s8,0x18(sp)
sw s6,0x10(sp)
lw v0,0x74(sp)
bal 0x00022768
_sw v0,0x14(sp)
beq v0,zero,0x000282a0
_lw gp,0x28(sp)
li v1,0x1
beq v0,v1,0x00028260
_li s0,-0x1
li s0,-0x2
lw t9,-0x7db0(gp)
jalr t9
_or a0,s3,zero
lw ra,0x5c(sp)
or v0,s0,zero
lw s8,0x58(sp)
lw s7,0x54(sp)
lw s6,0x50(sp)
lw s5,0x4c(sp)
lw s4,0x48(sp)
lw s3,0x44(sp)
lw s2,0x40(sp)
lw s1,0x3c(sp)
lw s0,0x38(sp)
jr ra
_addiu sp,sp,0x60
beq s5,zero,0x00028370
_nop
lw v0,0x1c(s0)
ext v0,v0,0x1d,0x2
beq v0,zero,0x00028478
_addiu s7,s1,0x1
li v1,0x1
beq v0,v1,0x000284bc
_li v1,0x2
bne v0,v1,0x00028598
_lw a3,-0x7fc8(gp)
lw v0,0x0(s5)
sltu s8,v0,s8
bne s8,zero,0x00028578
_li s6,0x2
blez s1,0x0002851c
_or v1,s3,zero
sll a3,s1,0x3
lw a1,0x4(s5)
lw a0,0x8(s5)
addu a3,a3,s3
or v0,s1,zero
lw a2,0x0(v1)
addiu a1,a1,0x4
addiu v1,v1,0x8
addiu a0,a0,0x4
sw a2,-0x4(a1)
lw a2,-0x4(v1)
bne v1,a3,0x000282f8
_sw a2,-0x4(a0)
lw v1,0x0(s5)
sltu v1,v0,v1
beq v1,zero,0x0002835c
_nop
lw a3,0x8(s5)
li a0,-0x1
lw a2,0x4(s5)
sll v0,v0,0x2
addiu s1,s1,0x1
addu v1,a2,v0
addu a1,a3,v0
sw a0,0x0(a1)
sw a0,0x0(v1)
lw v1,0x0(s5)
sltu v1,s1,v1
bne v1,zero,0x00028334
_or v0,s1,zero
lbu v0,0x1c(s0)
ins v0,s6,0x5,0x2
andi v1,v0,0x60
beq v1,zero,0x0002825c
_sb v0,0x1c(s0)
beq s4,zero,0x00028260
_lw s0,0x0(s3)
bne s2,s0,0x00028558
_lw a3,-0x7fc8(gp)
lw v0,0x4(s3)
b 0x00028260
_subu s0,v0,s0
b 0x000281f8
_li s1,0x1
lw s8,0x0(s5)
sltu v0,v1,s8
bne v0,zero,0x000281ec
_nop
bgtz s8,0x000281f4
_or s1,s8,zero
li a0,0x8
li s8,0x1
li s1,0x1
b 0x000281f8
_or s5,zero,zero
lw ra,0x5c(sp)
li s0,-0x1
lw s8,0x58(sp)
or v0,s0,zero
lw s7,0x54(sp)
lw s6,0x50(sp)
lw s5,0x4c(sp)
lw s4,0x48(sp)
lw s3,0x44(sp)
lw s2,0x40(sp)
lw s1,0x3c(sp)
lw s0,0x38(sp)
jr ra
_addiu sp,sp,0x60
or s6,a2,zero
lbu v0,0x1c(s0)
slt v1,s2,s6
ext s7,v0,0x2,0x1
andi a0,v0,0x2
beq v1,zero,0x000281c0
_or s7,s7,a0
lw v1,0x10(s0)
beq v1,zero,0x000281c0
_andi v0,v0,0x10
bne v0,zero,0x000281c0
_lw t9,-0x7ee0(gp)
or a0,s0,zero
sw a2,0x34(sp)
bal 0x00028028
_sw a1,0x30(sp)
lw gp,0x28(sp)
lw a2,0x34(sp)
b 0x000281c0
_lw a1,0x30(sp)
b 0x0002826c
_li s0,-0x2
bne v0,zero,0x000283f8
_nop
bgez s6,0x000283fc
_nop
b 0x000281b0
_lbu v0,0x1c(s0)
bne v0,zero,0x000283fc
_nop
b 0x000281b0
_lbu v0,0x1c(s0)
lw t9,-0x7e1c(gp)
sll s8,s7,0x2
jalr t9
_or a0,s8,zero
lw gp,0x28(sp)
or s6,v0,zero
beq v0,zero,0x00028538
_sw v0,0x4(s5)
lw t9,-0x7e1c(gp)
jalr t9
_or a0,s8,zero
lw gp,0x28(sp)
beq v0,zero,0x00028528
_sw v0,0x8(s5)
sw s7,0x0(s5)
b 0x000282dc
_li s6,0x1
lw v0,0x0(s5)
sltu v0,v0,s7
beq v0,zero,0x000282dc
_li s6,0x1
lw t9,-0x7e18(gp)
sll v1,s7,0x2
lw a0,0x4(s5)
or a1,v1,zero
jalr t9
_sw v1,0x30(sp)
lw gp,0x28(sp)
beq v0,zero,0x00028538
_or s8,v0,zero
lw v1,0x30(sp)
lw t9,-0x7e18(gp)
lw a0,0x8(s5)
jalr t9
_or a1,v1,zero
beq v0,zero,0x00028540
_lw gp,0x28(sp)
sw s8,0x4(s5)
sw v0,0x8(s5)
b 0x000282dc
_sw s7,0x0(s5)
or s1,zero,zero
b 0x00028318
_or v0,zero,zero
lw t9,-0x7db0(gp)
jalr t9
_or a0,s6,zero
lw gp,0x28(sp)
b 0x0002835c
_or s6,zero,zero
lw t9,-0x7db0(gp)
or a0,s8,zero
jalr t9
_or s6,zero,zero
b 0x0002835c
_lw gp,0x28(sp)
li a2,0x1bd
lw a1,-0x7fc8(gp)
lw a0,-0x7fc8(gp)
lw t9,-0x7eb0(gp)
addiu a3,a3,-0x4a80
addiu a1,a1,-0x4fec
jalr t9
_addiu a0,a0,-0x4f18
li a2,0x1fa
lw a1,-0x7fc8(gp)
lw a0,-0x7fc8(gp)
lw t9,-0x7eb0(gp)
addiu a3,a3,-0x4a90
addiu a1,a1,-0x4fec
jalr t9
_addiu a0,a0,-0x4f30
li a2,0x1f8
lw a1,-0x7fc8(gp)
lw a0,-0x7fc8(gp)
lw t9,-0x7eb0(gp)
addiu a3,a3,-0x4a90
addiu a1,a1,-0x4fec
jalr t9
_addiu a0,a0,-0x4f50
(translation_unit "int FUN_00028134(int param_1,undefined4 param_2,int param_3,int param_4,int param_5,\n                undefined4 param_6,uint *param_7,char param_8)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  int *piVar5;\n  int *piVar6;\n  int *piVar7;\n  int *piVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  \n  iVar9 = param_4 + param_5;\n  if ((param_4 < 0) || (param_3 < param_4)) {\n    return -1;\n  }\n  iVar10 = param_3;\n  if (param_3 < iVar9) {\nLAB_000283fc:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(param_1);\n    }\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    iVar10 = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }\n  iVar9 = 8;\n  if (*(int *)(param_1 + 0x1c) << 4 < 0) {\nLAB_000283b0:\n    iVar9 = 8;\n    uVar12 = 1;\n    param_7 = (uint *)0x0;\n  }\n  else {\n    uVar12 = 1;\n    if (param_7 != (uint *)0x0) {\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }\n  }\n  piVar3 = (int *)(*(code *)PTR_malloc_0003c2b4)(iVar9);\n  if (piVar3 == (int *)0x0) {\n    return -2;\n  }\n  iVar9 = FUN_00022768(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2);\n  if (iVar9 == 0) {\n    if (param_7 != (uint *)0x0) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n      uVar11 = uVar12 + 1;\n      if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }\nLAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }\n    iVar10 = *piVar3;\n    if (param_8 != '\0') {\n      if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }\n      iVar10 = piVar3[1] - iVar10;\n    }\n  }\n  else {\n    iVar10 = -1;\n    if (iVar9 == 1) goto LAB_00028260;\nLAB_0002825c:\n    iVar10 = -2;\n  }\nLAB_00028260:\n  (*(code *)PTR_free_0003c320)(piVar3);\n  return iVar10;\n}\n\n" (function_definition "int FUN_00028134(int param_1,undefined4 param_2,int param_3,int param_4,int param_5,\n                undefined4 param_6,uint *param_7,char param_8)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  int *piVar5;\n  int *piVar6;\n  int *piVar7;\n  int *piVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  \n  iVar9 = param_4 + param_5;\n  if ((param_4 < 0) || (param_3 < param_4)) {\n    return -1;\n  }\n  iVar10 = param_3;\n  if (param_3 < iVar9) {\nLAB_000283fc:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(param_1);\n    }\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    iVar10 = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }\n  iVar9 = 8;\n  if (*(int *)(param_1 + 0x1c) << 4 < 0) {\nLAB_000283b0:\n    iVar9 = 8;\n    uVar12 = 1;\n    param_7 = (uint *)0x0;\n  }\n  else {\n    uVar12 = 1;\n    if (param_7 != (uint *)0x0) {\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }\n  }\n  piVar3 = (int *)(*(code *)PTR_malloc_0003c2b4)(iVar9);\n  if (piVar3 == (int *)0x0) {\n    return -2;\n  }\n  iVar9 = FUN_00022768(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2);\n  if (iVar9 == 0) {\n    if (param_7 != (uint *)0x0) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n      uVar11 = uVar12 + 1;\n      if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }\nLAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }\n    iVar10 = *piVar3;\n    if (param_8 != '\0') {\n      if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }\n      iVar10 = piVar3[1] - iVar10;\n    }\n  }\n  else {\n    iVar10 = -1;\n    if (iVar9 == 1) goto LAB_00028260;\nLAB_0002825c:\n    iVar10 = -2;\n  }\nLAB_00028260:\n  (*(code *)PTR_free_0003c320)(piVar3);\n  return iVar10;\n}" primitive_type (function_declarator "FUN_00028134(int param_1,undefined4 param_2,int param_3,int param_4,int param_5,\n                undefined4 param_6,uint *param_7,char param_8)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,int param_4,int param_5,\n                undefined4 param_6,uint *param_7,char param_8)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "uint *param_7" type_identifier (pointer_declarator "*param_7" * identifier)) , (parameter_declaration "char param_8" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  int *piVar5;\n  int *piVar6;\n  int *piVar7;\n  int *piVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  \n  iVar9 = param_4 + param_5;\n  if ((param_4 < 0) || (param_3 < param_4)) {\n    return -1;\n  }\n  iVar10 = param_3;\n  if (param_3 < iVar9) {\nLAB_000283fc:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(param_1);\n    }\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    iVar10 = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }\n  iVar9 = 8;\n  if (*(int *)(param_1 + 0x1c) << 4 < 0) {\nLAB_000283b0:\n    iVar9 = 8;\n    uVar12 = 1;\n    param_7 = (uint *)0x0;\n  }\n  else {\n    uVar12 = 1;\n    if (param_7 != (uint *)0x0) {\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }\n  }\n  piVar3 = (int *)(*(code *)PTR_malloc_0003c2b4)(iVar9);\n  if (piVar3 == (int *)0x0) {\n    return -2;\n  }\n  iVar9 = FUN_00022768(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2);\n  if (iVar9 == 0) {\n    if (param_7 != (uint *)0x0) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n      uVar11 = uVar12 + 1;\n      if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }\nLAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }\n    iVar10 = *piVar3;\n    if (param_8 != '\0') {\n      if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }\n      iVar10 = piVar3[1] - iVar10;\n    }\n  }\n  else {\n    iVar10 = -1;\n    if (iVar9 == 1) goto LAB_00028260;\nLAB_0002825c:\n    iVar10 = -2;\n  }\nLAB_00028260:\n  (*(code *)PTR_free_0003c320)(piVar3);\n  return iVar10;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier 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 "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (expression_statement "iVar9 = param_4 + param_5;" (assignment_expression "iVar9 = param_4 + param_5" identifier = (binary_expression "param_4 + param_5" identifier + identifier)) ;) (if_statement "if ((param_4 < 0) || (param_3 < param_4)) {\n    return -1;\n  }" if (parenthesized_expression "((param_4 < 0) || (param_3 < param_4))" ( (binary_expression "(param_4 < 0) || (param_3 < param_4)" (parenthesized_expression "(param_4 < 0)" ( (binary_expression "param_4 < 0" identifier < number_literal) )) || (parenthesized_expression "(param_3 < param_4)" ( (binary_expression "param_3 < param_4" identifier < identifier) ))) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "iVar10 = param_3;" (assignment_expression "iVar10 = param_3" identifier = identifier) ;) (if_statement "if (param_3 < iVar9) {\nLAB_000283fc:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(param_1);\n    }\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    iVar10 = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }" if (parenthesized_expression "(param_3 < iVar9)" ( (binary_expression "param_3 < iVar9" identifier < identifier) )) (compound_statement "{\nLAB_000283fc:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(param_1);\n    }\n  }" { (labeled_statement "LAB_000283fc:\n    bVar1 = *(byte *)(param_1 + 0x1c);" statement_identifier : (expression_statement "bVar1 = *(byte *)(param_1 + 0x1c);" (assignment_expression "bVar1 = *(byte *)(param_1 + 0x1c)" identifier = (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;)) (expression_statement "uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;" (assignment_expression "uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2" identifier = (binary_expression "((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2" (binary_expression "((uint)bVar1 << 0x1d) >> 0x1f" (parenthesized_expression "((uint)bVar1 << 0x1d)" ( (binary_expression "(uint)bVar1 << 0x1d" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal) )) >> number_literal) | (binary_expression "bVar1 & 2" identifier & number_literal))) ;) (if_statement "if (((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(param_1);\n    }" if (parenthesized_expression "(((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0))" ( (binary_expression "((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)" (parenthesized_expression "((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0))" ( (binary_expression "(param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)" (parenthesized_expression "(param_4 < iVar10)" ( (binary_expression "param_4 < iVar10" identifier < identifier) )) && (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" ( (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal) ))) )) && (parenthesized_expression "((bVar1 & 0x10) == 0)" ( (binary_expression "(bVar1 & 0x10) == 0" (parenthesized_expression "(bVar1 & 0x10)" ( (binary_expression "bVar1 & 0x10" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      rpl_re_compile_fastmap(param_1);\n    }" { (expression_statement "rpl_re_compile_fastmap(param_1);" (call_expression "rpl_re_compile_fastmap(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) }) (else_clause "else {\n    if (param_5 < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    iVar10 = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }" else (compound_statement "{\n    if (param_5 < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    iVar10 = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }" { (if_statement "if (param_5 < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }" if (parenthesized_expression "(param_5 < 0)" ( (binary_expression "param_5 < 0" identifier < number_literal) )) (compound_statement "{\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }" { (if_statement "if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" if (parenthesized_expression "(iVar9 < 0)" ( (binary_expression "iVar9 < 0" identifier < number_literal) )) (compound_statement "{\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" { (expression_statement "uVar2 = (uint)*(byte *)(param_1 + 0x1c);" (assignment_expression "uVar2 = (uint)*(byte *)(param_1 + 0x1c)" identifier = (binary_expression "(uint)*(byte *)(param_1 + 0x1c)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" else (compound_statement "{\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" { (expression_statement "iVar10 = iVar9;" (assignment_expression "iVar10 = iVar9" identifier = identifier) ;) (if_statement "if (iVar9 < param_4) goto LAB_000283fc;" if (parenthesized_expression "(iVar9 < param_4)" ( (binary_expression "iVar9 < param_4" identifier < identifier) )) (goto_statement "goto LAB_000283fc;" goto statement_identifier ;)) (expression_statement "uVar2 = (uint)*(byte *)(param_1 + 0x1c);" (assignment_expression "uVar2 = (uint)*(byte *)(param_1 + 0x1c)" identifier = (binary_expression "(uint)*(byte *)(param_1 + 0x1c)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) }))) }) (else_clause "else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }" else (compound_statement "{\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }" { (if_statement "if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;" if (parenthesized_expression "((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9))" ( (binary_expression "(iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)" (parenthesized_expression "(iVar9 < param_4)" ( (binary_expression "iVar9 < param_4" identifier < identifier) )) || (parenthesized_expression "(iVar10 = iVar9, -1 < iVar9)" ( (comma_expression "iVar10 = iVar9, -1 < iVar9" (assignment_expression "iVar10 = iVar9" identifier = identifier) , (binary_expression "-1 < iVar9" number_literal < identifier)) ))) )) (goto_statement "goto LAB_000283fc;" goto statement_identifier ;)) (expression_statement "uVar2 = (uint)*(byte *)(param_1 + 0x1c);" (assignment_expression "uVar2 = (uint)*(byte *)(param_1 + 0x1c)" identifier = (binary_expression "(uint)*(byte *)(param_1 + 0x1c)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) }))) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;" (assignment_expression "uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2" identifier = (binary_expression "(uVar2 << 0x1d) >> 0x1f | uVar2 & 2" (binary_expression "(uVar2 << 0x1d) >> 0x1f" (parenthesized_expression "(uVar2 << 0x1d)" ( (binary_expression "uVar2 << 0x1d" identifier << number_literal) )) >> number_literal) | (binary_expression "uVar2 & 2" identifier & number_literal))) ;) }))) (expression_statement "iVar9 = 8;" (assignment_expression "iVar9 = 8" identifier = number_literal) ;) (if_statement "if (*(int *)(param_1 + 0x1c) << 4 < 0) {\nLAB_000283b0:\n    iVar9 = 8;\n    uVar12 = 1;\n    param_7 = (uint *)0x0;\n  }\n  else {\n    uVar12 = 1;\n    if (param_7 != (uint *)0x0) {\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x1c) << 4 < 0)" ( (binary_expression "*(int *)(param_1 + 0x1c) << 4 < 0" (binary_expression "*(int *)(param_1 + 0x1c) << 4" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) << number_literal) < number_literal) )) (compound_statement "{\nLAB_000283b0:\n    iVar9 = 8;\n    uVar12 = 1;\n    param_7 = (uint *)0x0;\n  }" { (labeled_statement "LAB_000283b0:\n    iVar9 = 8;" statement_identifier : (expression_statement "iVar9 = 8;" (assignment_expression "iVar9 = 8" identifier = number_literal) ;)) (expression_statement "uVar12 = 1;" (assignment_expression "uVar12 = 1" identifier = number_literal) ;) (expression_statement "param_7 = (uint *)0x0;" (assignment_expression "param_7 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    uVar12 = 1;\n    if (param_7 != (uint *)0x0) {\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }\n  }" else (compound_statement "{\n    uVar12 = 1;\n    if (param_7 != (uint *)0x0) {\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }\n  }" { (expression_statement "uVar12 = 1;" (assignment_expression "uVar12 = 1" identifier = number_literal) ;) (if_statement "if (param_7 != (uint *)0x0) {\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }" if (parenthesized_expression "(param_7 != (uint *)0x0)" ( (binary_expression "param_7 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }" { (if_statement "if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }" if (parenthesized_expression "(((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18)))" ( (binary_expression "((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))" (parenthesized_expression "((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40)" ( (binary_expression "(*(byte *)(param_1 + 0x1c) & 0x60) == 0x40" (parenthesized_expression "(*(byte *)(param_1 + 0x1c) & 0x60)" ( (binary_expression "*(byte *)(param_1 + 0x1c) & 0x60" (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "(uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))" ( (comma_expression "uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18)" (assignment_expression "uVar12 = *param_7" identifier = (pointer_expression "*param_7" * identifier)) , (binary_expression "uVar12 <= *(uint *)(param_1 + 0x18)" identifier <= (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))))) ))) )) (compound_statement "{\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }" { (if_statement "if ((int)uVar12 < 1) goto LAB_000283b0;" if (parenthesized_expression "((int)uVar12 < 1)" ( (binary_expression "(int)uVar12 < 1" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_000283b0;" goto statement_identifier ;)) }) (else_clause "else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }" else (compound_statement "{\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }" { (expression_statement "uVar12 = *(uint *)(param_1 + 0x18) + 1;" (assignment_expression "uVar12 = *(uint *)(param_1 + 0x18) + 1" identifier = (binary_expression "*(uint *)(param_1 + 0x18) + 1" (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal)) ;) }))) (expression_statement "iVar9 = uVar12 << 3;" (assignment_expression "iVar9 = uVar12 << 3" identifier = (binary_expression "uVar12 << 3" identifier << number_literal)) ;) })) }))) (expression_statement "piVar3 = (int *)(*(code *)PTR_malloc_0003c2b4)(iVar9);" (assignment_expression "piVar3 = (int *)(*(code *)PTR_malloc_0003c2b4)(iVar9)" identifier = (cast_expression "(int *)(*(code *)PTR_malloc_0003c2b4)(iVar9)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_0003c2b4)(iVar9)" (parenthesized_expression "(*(code *)PTR_malloc_0003c2b4)" ( (pointer_expression "*(code *)PTR_malloc_0003c2b4" * (cast_expression "(code *)PTR_malloc_0003c2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar9)" ( identifier ))))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n    return -2;\n  }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return -2;\n  }" { (return_statement "return -2;" return number_literal ;) })) (expression_statement "iVar9 = FUN_00022768(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2);" (assignment_expression "iVar9 = FUN_00022768(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2)" identifier = (call_expression "FUN_00022768(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2)" identifier (argument_list "(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar9 == 0) {\n    if (param_7 != (uint *)0x0) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n      uVar11 = uVar12 + 1;\n      if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }\nLAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }\n    iVar10 = *piVar3;\n    if (param_8 != '\0') {\n      if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }\n      iVar10 = piVar3[1] - iVar10;\n    }\n  }\n  else {\n    iVar10 = -1;\n    if (iVar9 == 1) goto LAB_00028260;\nLAB_0002825c:\n    iVar10 = -2;\n  }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_7 != (uint *)0x0) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n      uVar11 = uVar12 + 1;\n      if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }\nLAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }\n    iVar10 = *piVar3;\n    if (param_8 != '\0') {\n      if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }\n      iVar10 = piVar3[1] - iVar10;\n    }\n  }" { (if_statement "if (param_7 != (uint *)0x0) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n      uVar11 = uVar12 + 1;\n      if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }\nLAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }" if (parenthesized_expression "(param_7 != (uint *)0x0)" ( (binary_expression "param_7 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n      uVar11 = uVar12 + 1;\n      if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }\nLAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }" { (expression_statement "uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;" (assignment_expression "uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e" identifier = (binary_expression "(uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e" (call_expression "(uint)(*(int *)(param_1 + 0x1c) << 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 0x1c) << 1)" ( (binary_expression "*(int *)(param_1 + 0x1c) << 1" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) << number_literal) ))) >> number_literal)) ;) (expression_statement "uVar11 = uVar12 + 1;" (assignment_expression "uVar11 = uVar12 + 1" identifier = (binary_expression "uVar12 + 1" identifier + number_literal)) ;) (if_statement "if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }" { (expression_statement "uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);" (assignment_expression "uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4)" identifier = (call_expression "(*(code *)PTR_malloc_0003c2b4)(uVar11 * 4)" (parenthesized_expression "(*(code *)PTR_malloc_0003c2b4)" ( (pointer_expression "*(code *)PTR_malloc_0003c2b4" * (cast_expression "(code *)PTR_malloc_0003c2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar11 * 4)" ( (binary_expression "uVar11 * 4" identifier * number_literal) )))) ;) (expression_statement "param_7[1] = uVar2;" (assignment_expression "param_7[1] = uVar2" (subscript_expression "param_7[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }" { (expression_statement "uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);" (assignment_expression "uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4)" identifier = (call_expression "(*(code *)PTR_malloc_0003c2b4)(uVar11 * 4)" (parenthesized_expression "(*(code *)PTR_malloc_0003c2b4)" ( (pointer_expression "*(code *)PTR_malloc_0003c2b4" * (cast_expression "(code *)PTR_malloc_0003c2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar11 * 4)" ( (binary_expression "uVar11 * 4" identifier * number_literal) )))) ;) (expression_statement "param_7[2] = uVar4;" (assignment_expression "param_7[2] = uVar4" (subscript_expression "param_7[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }" if (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) (compound_statement "{\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }" { (expression_statement "*param_7 = uVar11;" (assignment_expression "*param_7 = uVar11" (pointer_expression "*param_7" * identifier) = identifier) ;) (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_000282dc;" goto statement_identifier ;) })) (expression_statement "(*(code *)PTR_free_0003c320)(uVar2);" (call_expression "(*(code *)PTR_free_0003c320)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_0003c320)" ( (pointer_expression "*(code *)PTR_free_0003c320" * (cast_expression "(code *)PTR_free_0003c320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) })) (labeled_statement "LAB_00028538:\n        iVar9 = 0;" statement_identifier : (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;)) }) (else_clause "else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }" else (compound_statement "{\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }" { (if_statement "if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }" if (parenthesized_expression "(uVar2 == 1)" ( (binary_expression "uVar2 == 1" identifier == number_literal) )) (compound_statement "{\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }" { (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;) (if_statement "if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }" if (parenthesized_expression "(*param_7 < uVar11)" ( (binary_expression "*param_7 < uVar11" (pointer_expression "*param_7" * identifier) < identifier) )) (compound_statement "{\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }" { (expression_statement "uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);" (assignment_expression "uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4)" identifier = (call_expression "(*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4)" (parenthesized_expression "(*(code *)PTR_realloc_0003c2b8)" ( (pointer_expression "*(code *)PTR_realloc_0003c2b8" * (cast_expression "(code *)PTR_realloc_0003c2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_7[1],uVar11 * 4)" ( (subscript_expression "param_7[1]" identifier [ number_literal ]) , (binary_expression "uVar11 * 4" identifier * number_literal) )))) ;) (if_statement "if (uVar2 == 0) goto LAB_00028538;" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00028538;" goto statement_identifier ;)) (expression_statement "uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);" (assignment_expression "uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4)" identifier = (call_expression "(*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4)" (parenthesized_expression "(*(code *)PTR_realloc_0003c2b8)" ( (pointer_expression "*(code *)PTR_realloc_0003c2b8" * (cast_expression "(code *)PTR_realloc_0003c2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_7[2],uVar11 * 4)" ( (subscript_expression "param_7[2]" identifier [ number_literal ]) , (binary_expression "uVar11 * 4" identifier * number_literal) )))) ;) (if_statement "if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_free_0003c320)(uVar2);" (call_expression "(*(code *)PTR_free_0003c320)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_0003c320)" ( (pointer_expression "*(code *)PTR_free_0003c320" * (cast_expression "(code *)PTR_free_0003c320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (goto_statement "goto LAB_0002835c;" goto statement_identifier ;) })) (expression_statement "param_7[1] = uVar2;" (assignment_expression "param_7[1] = uVar2" (subscript_expression "param_7[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_7[2] = uVar4;" (assignment_expression "param_7[2] = uVar4" (subscript_expression "param_7[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_7 = uVar11;" (assignment_expression "*param_7 = uVar11" (pointer_expression "*param_7" * identifier) = identifier) ;) })) }) (else_clause "else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }" else (compound_statement "{\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }" { (if_statement "if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }" if (parenthesized_expression "(uVar2 != 2)" ( (binary_expression "uVar2 != 2" identifier != number_literal) )) (compound_statement "{\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }" { (expression_statement "iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);" (assignment_expression "iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90)" identifier = (call_expression "(*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003c220)" ( (pointer_expression "*(code *)PTR___assert_fail_0003c220" * (cast_expression "(code *)PTR___assert_fail_0003c220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90)" ( (binary_expression "PTR_DAT_0003c108 + -0x4f50" identifier + number_literal) , (binary_expression "PTR_DAT_0003c108 + -0x4fec" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003c108 + -0x4a90" identifier + number_literal) )))) ;) (return_statement "return iVar9;" return identifier ;) })) (expression_statement "iVar9 = 2;" (assignment_expression "iVar9 = 2" identifier = number_literal) ;) (if_statement "if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }" if (parenthesized_expression "(*param_7 < uVar12)" ( (binary_expression "*param_7 < uVar12" (pointer_expression "*param_7" * identifier) < identifier) )) (compound_statement "{\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }" { (expression_statement "iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);" (assignment_expression "iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90)" identifier = (call_expression "(*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003c220)" ( (pointer_expression "*(code *)PTR___assert_fail_0003c220" * (cast_expression "(code *)PTR___assert_fail_0003c220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90)" ( (binary_expression "PTR_DAT_0003c108 + -0x4f30" identifier + number_literal) , (binary_expression "PTR_DAT_0003c108 + -0x4fec" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003c108 + -0x4a90" identifier + number_literal) )))) ;) (return_statement "return iVar9;" return identifier ;) })) }))) (labeled_statement "LAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }" statement_identifier : (if_statement "if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }" if (parenthesized_expression "((int)uVar12 < 1)" ( (binary_expression "(int)uVar12 < 1" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n          uVar12 = 0;\n        }" { (expression_statement "uVar12 = 0;" (assignment_expression "uVar12 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }" else (compound_statement "{\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }" { (expression_statement "piVar5 = piVar3;" (assignment_expression "piVar5 = piVar3" identifier = identifier) ;) (expression_statement "piVar7 = (int *)param_7[2];" (assignment_expression "piVar7 = (int *)param_7[2]" identifier = (cast_expression "(int *)param_7[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_7[2]" identifier [ number_literal ]))) ;) (expression_statement "piVar8 = (int *)param_7[1];" (assignment_expression "piVar8 = (int *)param_7[1]" identifier = (cast_expression "(int *)param_7[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_7[1]" identifier [ number_literal ]))) ;) (do_statement "do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);" do (compound_statement "{\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          }" { (expression_statement "piVar6 = piVar5 + 2;" (assignment_expression "piVar6 = piVar5 + 2" identifier = (binary_expression "piVar5 + 2" identifier + number_literal)) ;) (expression_statement "*piVar8 = *piVar5;" (assignment_expression "*piVar8 = *piVar5" (pointer_expression "*piVar8" * identifier) = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "*piVar7 = piVar5[1];" (assignment_expression "*piVar7 = piVar5[1]" (pointer_expression "*piVar7" * identifier) = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (expression_statement "piVar5 = piVar6;" (assignment_expression "piVar5 = piVar6" identifier = identifier) ;) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" identifier = (binary_expression "piVar7 + 1" identifier + number_literal)) ;) (expression_statement "piVar8 = piVar8 + 1;" (assignment_expression "piVar8 = piVar8 + 1" identifier = (binary_expression "piVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar6 != piVar3 + uVar12 * 2)" ( (binary_expression "piVar6 != piVar3 + uVar12 * 2" identifier != (binary_expression "piVar3 + uVar12 * 2" identifier + (binary_expression "uVar12 * 2" identifier * number_literal))) )) ;) })))) (if_statement "if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }" if (parenthesized_expression "(uVar12 < *param_7)" ( (binary_expression "uVar12 < *param_7" identifier < (pointer_expression "*param_7" * identifier)) )) (compound_statement "{\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }" { (expression_statement "uVar11 = param_7[2];" (assignment_expression "uVar11 = param_7[2]" identifier = (subscript_expression "param_7[2]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = param_7[1];" (assignment_expression "uVar2 = param_7[1]" identifier = (subscript_expression "param_7[1]" identifier [ number_literal ])) ;) (do_statement "do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);" do (compound_statement "{\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          }" { (expression_statement "iVar10 = uVar12 * 4;" (assignment_expression "iVar10 = uVar12 * 4" identifier = (binary_expression "uVar12 * 4" identifier * number_literal)) ;) (expression_statement "uVar12 = uVar12 + 1;" (assignment_expression "uVar12 = uVar12 + 1" identifier = (binary_expression "uVar12 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(uVar11 + iVar10) = 0xffffffff;" (assignment_expression "*(undefined4 *)(uVar11 + iVar10) = 0xffffffff" (pointer_expression "*(undefined4 *)(uVar11 + iVar10)" * (cast_expression "(undefined4 *)(uVar11 + iVar10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar11 + iVar10)" ( (binary_expression "uVar11 + iVar10" identifier + identifier) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(uVar2 + iVar10) = 0xffffffff;" (assignment_expression "*(undefined4 *)(uVar2 + iVar10) = 0xffffffff" (pointer_expression "*(undefined4 *)(uVar2 + iVar10)" * (cast_expression "(undefined4 *)(uVar2 + iVar10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + iVar10)" ( (binary_expression "uVar2 + iVar10" identifier + identifier) )))) = number_literal) ;) }) while (parenthesized_expression "(uVar12 < *param_7)" ( (binary_expression "uVar12 < *param_7" identifier < (pointer_expression "*param_7" * identifier)) )) ;) })) }))) (labeled_statement "LAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);" statement_identifier : (expression_statement "*(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);" (assignment_expression "*(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5)" (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5)" (binary_expression "*(byte *)(param_1 + 0x1c) & 0x9f" (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) & number_literal) | (call_expression "(byte)(iVar9 << 5)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(iVar9 << 5)" ( (binary_expression "iVar9 << 5" identifier << number_literal) ))))) ;)) (if_statement "if (iVar9 == 0) goto LAB_0002825c;" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0002825c;" goto statement_identifier ;)) })) (expression_statement "iVar10 = *piVar3;" (assignment_expression "iVar10 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (if_statement "if (param_8 != '\0') {\n      if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }\n      iVar10 = piVar3[1] - iVar10;\n    }" if (parenthesized_expression "(param_8 != '\0')" ( (binary_expression "param_8 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }\n      iVar10 = piVar3[1] - iVar10;\n    }" { (if_statement "if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }" if (parenthesized_expression "(param_4 != iVar10)" ( (binary_expression "param_4 != iVar10" identifier != identifier) )) (compound_statement "{\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }" { (expression_statement "iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);" (assignment_expression "iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80)" identifier = (call_expression "(*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003c220)" ( (pointer_expression "*(code *)PTR___assert_fail_0003c220" * (cast_expression "(code *)PTR___assert_fail_0003c220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80)" ( (binary_expression "PTR_DAT_0003c108 + -0x4f18" identifier + number_literal) , (binary_expression "PTR_DAT_0003c108 + -0x4fec" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003c108 + -0x4a80" identifier + number_literal) )))) ;) (return_statement "return iVar9;" return identifier ;) })) (expression_statement "iVar10 = piVar3[1] - iVar10;" (assignment_expression "iVar10 = piVar3[1] - iVar10" identifier = (binary_expression "piVar3[1] - iVar10" (subscript_expression "piVar3[1]" identifier [ number_literal ]) - identifier)) ;) })) }) (else_clause "else {\n    iVar10 = -1;\n    if (iVar9 == 1) goto LAB_00028260;\nLAB_0002825c:\n    iVar10 = -2;\n  }" else (compound_statement "{\n    iVar10 = -1;\n    if (iVar9 == 1) goto LAB_00028260;\nLAB_0002825c:\n    iVar10 = -2;\n  }" { (expression_statement "iVar10 = -1;" (assignment_expression "iVar10 = -1" identifier = number_literal) ;) (if_statement "if (iVar9 == 1) goto LAB_00028260;" if (parenthesized_expression "(iVar9 == 1)" ( (binary_expression "iVar9 == 1" identifier == number_literal) )) (goto_statement "goto LAB_00028260;" goto statement_identifier ;)) (labeled_statement "LAB_0002825c:\n    iVar10 = -2;" statement_identifier : (expression_statement "iVar10 = -2;" (assignment_expression "iVar10 = -2" identifier = number_literal) ;)) }))) (labeled_statement "LAB_00028260:\n  (*(code *)PTR_free_0003c320)(piVar3);" statement_identifier : (expression_statement "(*(code *)PTR_free_0003c320)(piVar3);" (call_expression "(*(code *)PTR_free_0003c320)(piVar3)" (parenthesized_expression "(*(code *)PTR_free_0003c320)" ( (pointer_expression "*(code *)PTR_free_0003c320" * (cast_expression "(code *)PTR_free_0003c320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar3)" ( identifier ))) ;)) (return_statement "return iVar10;" return identifier ;) })))
(translation_unit "regoff_t re_search_stub(re_pattern_buffer *bufp,char *string,Idx length,Idx start,regoff_t range,\n                       Idx stop,re_registers *regs,_Bool ret_len)\n\n{\n  byte bVar1;\n  uint uVar2;\n  regmatch_t *pmatch;\n  reg_errcode_t rVar3;\n  regmatch_t *prVar4;\n  regmatch_t *prVar5;\n  regoff_t *prVar6;\n  regoff_t *prVar7;\n  regoff_t rVar8;\n  int iVar9;\n  int last_start;\n  uint uVar10;\n  uint nmatch;\n  \n  iVar9 = start + range;\n  if ((start < 0) || (length < start)) {\n    return -1;\n  }\n  last_start = length;\n  if (length < iVar9) {\nLAB_000283fc:\n    bVar1 = bufp->field_0x1c;\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((start < last_start) && (bufp->fastmap != (char *)0x0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(bufp);\n    }\n  }\n  else {\n    if (range < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n      else {\n        last_start = iVar9;\n        if (iVar9 < start) goto LAB_000283fc;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n    }\n    else {\n      if ((iVar9 < start) || (last_start = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)(byte)bufp->field_0x1c;\n    }\n    last_start = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }\n  iVar9 = 8;\n  if (*(int *)&bufp->field_0x1c << 4 < 0) {\nLAB_000283b0:\n    iVar9 = 8;\n    nmatch = 1;\n    regs = (re_registers *)0x0;\n  }\n  else {\n    nmatch = 1;\n    if (regs != (re_registers *)0x0) {\n      if (((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub))\n      {\n        if ((int)nmatch < 1) goto LAB_000283b0;\n      }\n      else {\n        nmatch = bufp->re_nsub + 1;\n      }\n      iVar9 = nmatch << 3;\n    }\n  }\n  pmatch = (regmatch_t *)(*(code *)PTR_malloc_0003c2b4)(iVar9);\n  if (pmatch == (regmatch_t *)0x0) {\n    return -2;\n  }\n  rVar3 = re_search_internal(bufp,string,length,start,last_start,stop,nmatch,pmatch,uVar2);\n  if (rVar3 == _REG_NOERROR) {\n    if (regs != (re_registers *)0x0) {\n      uVar2 = (uint)(*(int *)&bufp->field_0x1c << 1) >> 0x1e;\n      uVar10 = nmatch + 1;\n      if (uVar2 == 0) {\n        prVar6 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);\n        regs->start = prVar6;\n        if (prVar6 != (regoff_t *)0x0) {\n          prVar7 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);\n          regs->end = prVar7;\n          if (prVar7 != (regoff_t *)0x0) {\n            regs->num_regs = uVar10;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(prVar6);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (regs->num_regs < uVar10) {\n            prVar6 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->start,uVar10 * 4);\n            if (prVar6 == (regoff_t *)0x0) goto LAB_00028538;\n            prVar7 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->end,uVar10 * 4);\n            if (prVar7 == (regoff_t *)0x0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(prVar6);\n              goto LAB_0002835c;\n            }\n            regs->start = prVar6;\n            regs->end = prVar7;\n            regs->num_regs = uVar10;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n          iVar9 = 2;\n          if (regs->num_regs < nmatch) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n        }\nLAB_000282dc:\n        if ((int)nmatch < 1) {\n          nmatch = 0;\n        }\n        else {\n          prVar4 = pmatch;\n          prVar6 = regs->end;\n          prVar7 = regs->start;\n          do {\n            prVar5 = prVar4 + 1;\n            *prVar7 = prVar4->rm_so;\n            *prVar6 = prVar4->rm_eo;\n            prVar4 = prVar5;\n            prVar6 = prVar6 + 1;\n            prVar7 = prVar7 + 1;\n          } while (prVar5 != pmatch + nmatch);\n        }\n        if (nmatch < regs->num_regs) {\n          prVar7 = regs->end;\n          prVar6 = regs->start;\n          do {\n            uVar2 = nmatch + 1;\n            prVar7[nmatch] = -1;\n            prVar6[nmatch] = -1;\n            nmatch = uVar2;\n          } while (uVar2 < regs->num_regs);\n        }\n      }\nLAB_0002835c:\n      bufp->field_0x1c = bufp->field_0x1c & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }\n    rVar8 = pmatch->rm_so;\n    if (ret_len) {\n      if (start != rVar8) {\n        rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return rVar8;\n      }\n      rVar8 = pmatch->rm_eo - rVar8;\n    }\n  }\n  else {\n    rVar8 = -1;\n    if (rVar3 == _REG_NOMATCH) goto LAB_00028260;\nLAB_0002825c:\n    rVar8 = -2;\n  }\nLAB_00028260:\n  (*(code *)PTR_free_0003c320)(pmatch);\n  return rVar8;\n}\n\n" (function_definition "regoff_t re_search_stub(re_pattern_buffer *bufp,char *string,Idx length,Idx start,regoff_t range,\n                       Idx stop,re_registers *regs,_Bool ret_len)\n\n{\n  byte bVar1;\n  uint uVar2;\n  regmatch_t *pmatch;\n  reg_errcode_t rVar3;\n  regmatch_t *prVar4;\n  regmatch_t *prVar5;\n  regoff_t *prVar6;\n  regoff_t *prVar7;\n  regoff_t rVar8;\n  int iVar9;\n  int last_start;\n  uint uVar10;\n  uint nmatch;\n  \n  iVar9 = start + range;\n  if ((start < 0) || (length < start)) {\n    return -1;\n  }\n  last_start = length;\n  if (length < iVar9) {\nLAB_000283fc:\n    bVar1 = bufp->field_0x1c;\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((start < last_start) && (bufp->fastmap != (char *)0x0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(bufp);\n    }\n  }\n  else {\n    if (range < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n      else {\n        last_start = iVar9;\n        if (iVar9 < start) goto LAB_000283fc;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n    }\n    else {\n      if ((iVar9 < start) || (last_start = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)(byte)bufp->field_0x1c;\n    }\n    last_start = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }\n  iVar9 = 8;\n  if (*(int *)&bufp->field_0x1c << 4 < 0) {\nLAB_000283b0:\n    iVar9 = 8;\n    nmatch = 1;\n    regs = (re_registers *)0x0;\n  }\n  else {\n    nmatch = 1;\n    if (regs != (re_registers *)0x0) {\n      if (((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub))\n      {\n        if ((int)nmatch < 1) goto LAB_000283b0;\n      }\n      else {\n        nmatch = bufp->re_nsub + 1;\n      }\n      iVar9 = nmatch << 3;\n    }\n  }\n  pmatch = (regmatch_t *)(*(code *)PTR_malloc_0003c2b4)(iVar9);\n  if (pmatch == (regmatch_t *)0x0) {\n    return -2;\n  }\n  rVar3 = re_search_internal(bufp,string,length,start,last_start,stop,nmatch,pmatch,uVar2);\n  if (rVar3 == _REG_NOERROR) {\n    if (regs != (re_registers *)0x0) {\n      uVar2 = (uint)(*(int *)&bufp->field_0x1c << 1) >> 0x1e;\n      uVar10 = nmatch + 1;\n      if (uVar2 == 0) {\n        prVar6 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);\n        regs->start = prVar6;\n        if (prVar6 != (regoff_t *)0x0) {\n          prVar7 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);\n          regs->end = prVar7;\n          if (prVar7 != (regoff_t *)0x0) {\n            regs->num_regs = uVar10;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(prVar6);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (regs->num_regs < uVar10) {\n            prVar6 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->start,uVar10 * 4);\n            if (prVar6 == (regoff_t *)0x0) goto LAB_00028538;\n            prVar7 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->end,uVar10 * 4);\n            if (prVar7 == (regoff_t *)0x0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(prVar6);\n              goto LAB_0002835c;\n            }\n            regs->start = prVar6;\n            regs->end = prVar7;\n            regs->num_regs = uVar10;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n          iVar9 = 2;\n          if (regs->num_regs < nmatch) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n        }\nLAB_000282dc:\n        if ((int)nmatch < 1) {\n          nmatch = 0;\n        }\n        else {\n          prVar4 = pmatch;\n          prVar6 = regs->end;\n          prVar7 = regs->start;\n          do {\n            prVar5 = prVar4 + 1;\n            *prVar7 = prVar4->rm_so;\n            *prVar6 = prVar4->rm_eo;\n            prVar4 = prVar5;\n            prVar6 = prVar6 + 1;\n            prVar7 = prVar7 + 1;\n          } while (prVar5 != pmatch + nmatch);\n        }\n        if (nmatch < regs->num_regs) {\n          prVar7 = regs->end;\n          prVar6 = regs->start;\n          do {\n            uVar2 = nmatch + 1;\n            prVar7[nmatch] = -1;\n            prVar6[nmatch] = -1;\n            nmatch = uVar2;\n          } while (uVar2 < regs->num_regs);\n        }\n      }\nLAB_0002835c:\n      bufp->field_0x1c = bufp->field_0x1c & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }\n    rVar8 = pmatch->rm_so;\n    if (ret_len) {\n      if (start != rVar8) {\n        rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return rVar8;\n      }\n      rVar8 = pmatch->rm_eo - rVar8;\n    }\n  }\n  else {\n    rVar8 = -1;\n    if (rVar3 == _REG_NOMATCH) goto LAB_00028260;\nLAB_0002825c:\n    rVar8 = -2;\n  }\nLAB_00028260:\n  (*(code *)PTR_free_0003c320)(pmatch);\n  return rVar8;\n}" type_identifier (function_declarator "re_search_stub(re_pattern_buffer *bufp,char *string,Idx length,Idx start,regoff_t range,\n                       Idx stop,re_registers *regs,_Bool ret_len)" identifier (parameter_list "(re_pattern_buffer *bufp,char *string,Idx length,Idx start,regoff_t range,\n                       Idx stop,re_registers *regs,_Bool ret_len)" ( (parameter_declaration "re_pattern_buffer *bufp" type_identifier (pointer_declarator "*bufp" * identifier)) , (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) , (parameter_declaration "Idx length" type_identifier identifier) , (parameter_declaration "Idx start" type_identifier identifier) , (parameter_declaration "regoff_t range" type_identifier identifier) , (parameter_declaration "Idx stop" type_identifier identifier) , (parameter_declaration "re_registers *regs" type_identifier (pointer_declarator "*regs" * identifier)) , (parameter_declaration "_Bool ret_len" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  regmatch_t *pmatch;\n  reg_errcode_t rVar3;\n  regmatch_t *prVar4;\n  regmatch_t *prVar5;\n  regoff_t *prVar6;\n  regoff_t *prVar7;\n  regoff_t rVar8;\n  int iVar9;\n  int last_start;\n  uint uVar10;\n  uint nmatch;\n  \n  iVar9 = start + range;\n  if ((start < 0) || (length < start)) {\n    return -1;\n  }\n  last_start = length;\n  if (length < iVar9) {\nLAB_000283fc:\n    bVar1 = bufp->field_0x1c;\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((start < last_start) && (bufp->fastmap != (char *)0x0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(bufp);\n    }\n  }\n  else {\n    if (range < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n      else {\n        last_start = iVar9;\n        if (iVar9 < start) goto LAB_000283fc;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n    }\n    else {\n      if ((iVar9 < start) || (last_start = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)(byte)bufp->field_0x1c;\n    }\n    last_start = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }\n  iVar9 = 8;\n  if (*(int *)&bufp->field_0x1c << 4 < 0) {\nLAB_000283b0:\n    iVar9 = 8;\n    nmatch = 1;\n    regs = (re_registers *)0x0;\n  }\n  else {\n    nmatch = 1;\n    if (regs != (re_registers *)0x0) {\n      if (((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub))\n      {\n        if ((int)nmatch < 1) goto LAB_000283b0;\n      }\n      else {\n        nmatch = bufp->re_nsub + 1;\n      }\n      iVar9 = nmatch << 3;\n    }\n  }\n  pmatch = (regmatch_t *)(*(code *)PTR_malloc_0003c2b4)(iVar9);\n  if (pmatch == (regmatch_t *)0x0) {\n    return -2;\n  }\n  rVar3 = re_search_internal(bufp,string,length,start,last_start,stop,nmatch,pmatch,uVar2);\n  if (rVar3 == _REG_NOERROR) {\n    if (regs != (re_registers *)0x0) {\n      uVar2 = (uint)(*(int *)&bufp->field_0x1c << 1) >> 0x1e;\n      uVar10 = nmatch + 1;\n      if (uVar2 == 0) {\n        prVar6 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);\n        regs->start = prVar6;\n        if (prVar6 != (regoff_t *)0x0) {\n          prVar7 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);\n          regs->end = prVar7;\n          if (prVar7 != (regoff_t *)0x0) {\n            regs->num_regs = uVar10;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(prVar6);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (regs->num_regs < uVar10) {\n            prVar6 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->start,uVar10 * 4);\n            if (prVar6 == (regoff_t *)0x0) goto LAB_00028538;\n            prVar7 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->end,uVar10 * 4);\n            if (prVar7 == (regoff_t *)0x0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(prVar6);\n              goto LAB_0002835c;\n            }\n            regs->start = prVar6;\n            regs->end = prVar7;\n            regs->num_regs = uVar10;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n          iVar9 = 2;\n          if (regs->num_regs < nmatch) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n        }\nLAB_000282dc:\n        if ((int)nmatch < 1) {\n          nmatch = 0;\n        }\n        else {\n          prVar4 = pmatch;\n          prVar6 = regs->end;\n          prVar7 = regs->start;\n          do {\n            prVar5 = prVar4 + 1;\n            *prVar7 = prVar4->rm_so;\n            *prVar6 = prVar4->rm_eo;\n            prVar4 = prVar5;\n            prVar6 = prVar6 + 1;\n            prVar7 = prVar7 + 1;\n          } while (prVar5 != pmatch + nmatch);\n        }\n        if (nmatch < regs->num_regs) {\n          prVar7 = regs->end;\n          prVar6 = regs->start;\n          do {\n            uVar2 = nmatch + 1;\n            prVar7[nmatch] = -1;\n            prVar6[nmatch] = -1;\n            nmatch = uVar2;\n          } while (uVar2 < regs->num_regs);\n        }\n      }\nLAB_0002835c:\n      bufp->field_0x1c = bufp->field_0x1c & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }\n    rVar8 = pmatch->rm_so;\n    if (ret_len) {\n      if (start != rVar8) {\n        rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return rVar8;\n      }\n      rVar8 = pmatch->rm_eo - rVar8;\n    }\n  }\n  else {\n    rVar8 = -1;\n    if (rVar3 == _REG_NOMATCH) goto LAB_00028260;\nLAB_0002825c:\n    rVar8 = -2;\n  }\nLAB_00028260:\n  (*(code *)PTR_free_0003c320)(pmatch);\n  return rVar8;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "regmatch_t *pmatch;" type_identifier (pointer_declarator "*pmatch" * identifier) ;) (declaration "reg_errcode_t rVar3;" type_identifier identifier ;) (declaration "regmatch_t *prVar4;" type_identifier (pointer_declarator "*prVar4" * identifier) ;) (declaration "regmatch_t *prVar5;" type_identifier (pointer_declarator "*prVar5" * identifier) ;) (declaration "regoff_t *prVar6;" type_identifier (pointer_declarator "*prVar6" * identifier) ;) (declaration "regoff_t *prVar7;" type_identifier (pointer_declarator "*prVar7" * identifier) ;) (declaration "regoff_t rVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int last_start;" primitive_type identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint nmatch;" type_identifier identifier ;) (expression_statement "iVar9 = start + range;" (assignment_expression "iVar9 = start + range" identifier = (binary_expression "start + range" identifier + identifier)) ;) (if_statement "if ((start < 0) || (length < start)) {\n    return -1;\n  }" if (parenthesized_expression "((start < 0) || (length < start))" ( (binary_expression "(start < 0) || (length < start)" (parenthesized_expression "(start < 0)" ( (binary_expression "start < 0" identifier < number_literal) )) || (parenthesized_expression "(length < start)" ( (binary_expression "length < start" identifier < identifier) ))) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "last_start = length;" (assignment_expression "last_start = length" identifier = identifier) ;) (if_statement "if (length < iVar9) {\nLAB_000283fc:\n    bVar1 = bufp->field_0x1c;\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((start < last_start) && (bufp->fastmap != (char *)0x0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(bufp);\n    }\n  }\n  else {\n    if (range < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n      else {\n        last_start = iVar9;\n        if (iVar9 < start) goto LAB_000283fc;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n    }\n    else {\n      if ((iVar9 < start) || (last_start = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)(byte)bufp->field_0x1c;\n    }\n    last_start = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }" if (parenthesized_expression "(length < iVar9)" ( (binary_expression "length < iVar9" identifier < identifier) )) (compound_statement "{\nLAB_000283fc:\n    bVar1 = bufp->field_0x1c;\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((start < last_start) && (bufp->fastmap != (char *)0x0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(bufp);\n    }\n  }" { (labeled_statement "LAB_000283fc:\n    bVar1 = bufp->field_0x1c;" statement_identifier : (expression_statement "bVar1 = bufp->field_0x1c;" (assignment_expression "bVar1 = bufp->field_0x1c" identifier = (field_expression "bufp->field_0x1c" identifier -> field_identifier)) ;)) (expression_statement "uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;" (assignment_expression "uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2" identifier = (binary_expression "((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2" (binary_expression "((uint)bVar1 << 0x1d) >> 0x1f" (parenthesized_expression "((uint)bVar1 << 0x1d)" ( (binary_expression "(uint)bVar1 << 0x1d" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal) )) >> number_literal) | (binary_expression "bVar1 & 2" identifier & number_literal))) ;) (if_statement "if (((start < last_start) && (bufp->fastmap != (char *)0x0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(bufp);\n    }" if (parenthesized_expression "(((start < last_start) && (bufp->fastmap != (char *)0x0)) && ((bVar1 & 0x10) == 0))" ( (binary_expression "((start < last_start) && (bufp->fastmap != (char *)0x0)) && ((bVar1 & 0x10) == 0)" (parenthesized_expression "((start < last_start) && (bufp->fastmap != (char *)0x0))" ( (binary_expression "(start < last_start) && (bufp->fastmap != (char *)0x0)" (parenthesized_expression "(start < last_start)" ( (binary_expression "start < last_start" identifier < identifier) )) && (parenthesized_expression "(bufp->fastmap != (char *)0x0)" ( (binary_expression "bufp->fastmap != (char *)0x0" (field_expression "bufp->fastmap" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "((bVar1 & 0x10) == 0)" ( (binary_expression "(bVar1 & 0x10) == 0" (parenthesized_expression "(bVar1 & 0x10)" ( (binary_expression "bVar1 & 0x10" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      rpl_re_compile_fastmap(bufp);\n    }" { (expression_statement "rpl_re_compile_fastmap(bufp);" (call_expression "rpl_re_compile_fastmap(bufp)" identifier (argument_list "(bufp)" ( identifier ))) ;) })) }) (else_clause "else {\n    if (range < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n      else {\n        last_start = iVar9;\n        if (iVar9 < start) goto LAB_000283fc;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n    }\n    else {\n      if ((iVar9 < start) || (last_start = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)(byte)bufp->field_0x1c;\n    }\n    last_start = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }" else (compound_statement "{\n    if (range < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n      else {\n        last_start = iVar9;\n        if (iVar9 < start) goto LAB_000283fc;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n    }\n    else {\n      if ((iVar9 < start) || (last_start = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)(byte)bufp->field_0x1c;\n    }\n    last_start = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }" { (if_statement "if (range < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n      else {\n        last_start = iVar9;\n        if (iVar9 < start) goto LAB_000283fc;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n    }\n    else {\n      if ((iVar9 < start) || (last_start = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)(byte)bufp->field_0x1c;\n    }" if (parenthesized_expression "(range < 0)" ( (binary_expression "range < 0" identifier < number_literal) )) (compound_statement "{\n      if (iVar9 < 0) {\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n      else {\n        last_start = iVar9;\n        if (iVar9 < start) goto LAB_000283fc;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n    }" { (if_statement "if (iVar9 < 0) {\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n      else {\n        last_start = iVar9;\n        if (iVar9 < start) goto LAB_000283fc;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }" if (parenthesized_expression "(iVar9 < 0)" ( (binary_expression "iVar9 < 0" identifier < number_literal) )) (compound_statement "{\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }" { (expression_statement "uVar2 = (uint)(byte)bufp->field_0x1c;" (assignment_expression "uVar2 = (uint)(byte)bufp->field_0x1c" identifier = (cast_expression "(uint)(byte)bufp->field_0x1c" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)bufp->field_0x1c" ( (type_descriptor "byte" type_identifier) ) (field_expression "bufp->field_0x1c" identifier -> field_identifier)))) ;) }) (else_clause "else {\n        last_start = iVar9;\n        if (iVar9 < start) goto LAB_000283fc;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }" else (compound_statement "{\n        last_start = iVar9;\n        if (iVar9 < start) goto LAB_000283fc;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }" { (expression_statement "last_start = iVar9;" (assignment_expression "last_start = iVar9" identifier = identifier) ;) (if_statement "if (iVar9 < start) goto LAB_000283fc;" if (parenthesized_expression "(iVar9 < start)" ( (binary_expression "iVar9 < start" identifier < identifier) )) (goto_statement "goto LAB_000283fc;" goto statement_identifier ;)) (expression_statement "uVar2 = (uint)(byte)bufp->field_0x1c;" (assignment_expression "uVar2 = (uint)(byte)bufp->field_0x1c" identifier = (cast_expression "(uint)(byte)bufp->field_0x1c" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)bufp->field_0x1c" ( (type_descriptor "byte" type_identifier) ) (field_expression "bufp->field_0x1c" identifier -> field_identifier)))) ;) }))) }) (else_clause "else {\n      if ((iVar9 < start) || (last_start = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)(byte)bufp->field_0x1c;\n    }" else (compound_statement "{\n      if ((iVar9 < start) || (last_start = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)(byte)bufp->field_0x1c;\n    }" { (if_statement "if ((iVar9 < start) || (last_start = iVar9, -1 < iVar9)) goto LAB_000283fc;" if (parenthesized_expression "((iVar9 < start) || (last_start = iVar9, -1 < iVar9))" ( (binary_expression "(iVar9 < start) || (last_start = iVar9, -1 < iVar9)" (parenthesized_expression "(iVar9 < start)" ( (binary_expression "iVar9 < start" identifier < identifier) )) || (parenthesized_expression "(last_start = iVar9, -1 < iVar9)" ( (comma_expression "last_start = iVar9, -1 < iVar9" (assignment_expression "last_start = iVar9" identifier = identifier) , (binary_expression "-1 < iVar9" number_literal < identifier)) ))) )) (goto_statement "goto LAB_000283fc;" goto statement_identifier ;)) (expression_statement "uVar2 = (uint)(byte)bufp->field_0x1c;" (assignment_expression "uVar2 = (uint)(byte)bufp->field_0x1c" identifier = (cast_expression "(uint)(byte)bufp->field_0x1c" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)bufp->field_0x1c" ( (type_descriptor "byte" type_identifier) ) (field_expression "bufp->field_0x1c" identifier -> field_identifier)))) ;) }))) (expression_statement "last_start = 0;" (assignment_expression "last_start = 0" identifier = number_literal) ;) (expression_statement "uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;" (assignment_expression "uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2" identifier = (binary_expression "(uVar2 << 0x1d) >> 0x1f | uVar2 & 2" (binary_expression "(uVar2 << 0x1d) >> 0x1f" (parenthesized_expression "(uVar2 << 0x1d)" ( (binary_expression "uVar2 << 0x1d" identifier << number_literal) )) >> number_literal) | (binary_expression "uVar2 & 2" identifier & number_literal))) ;) }))) (expression_statement "iVar9 = 8;" (assignment_expression "iVar9 = 8" identifier = number_literal) ;) (if_statement "if (*(int *)&bufp->field_0x1c << 4 < 0) {\nLAB_000283b0:\n    iVar9 = 8;\n    nmatch = 1;\n    regs = (re_registers *)0x0;\n  }\n  else {\n    nmatch = 1;\n    if (regs != (re_registers *)0x0) {\n      if (((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub))\n      {\n        if ((int)nmatch < 1) goto LAB_000283b0;\n      }\n      else {\n        nmatch = bufp->re_nsub + 1;\n      }\n      iVar9 = nmatch << 3;\n    }\n  }" if (parenthesized_expression "(*(int *)&bufp->field_0x1c << 4 < 0)" ( (binary_expression "*(int *)&bufp->field_0x1c << 4 < 0" (binary_expression "*(int *)&bufp->field_0x1c << 4" (pointer_expression "*(int *)&bufp->field_0x1c" * (cast_expression "(int *)&bufp->field_0x1c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&bufp->field_0x1c" & (field_expression "bufp->field_0x1c" identifier -> field_identifier)))) << number_literal) < number_literal) )) (compound_statement "{\nLAB_000283b0:\n    iVar9 = 8;\n    nmatch = 1;\n    regs = (re_registers *)0x0;\n  }" { (labeled_statement "LAB_000283b0:\n    iVar9 = 8;" statement_identifier : (expression_statement "iVar9 = 8;" (assignment_expression "iVar9 = 8" identifier = number_literal) ;)) (expression_statement "nmatch = 1;" (assignment_expression "nmatch = 1" identifier = number_literal) ;) (expression_statement "regs = (re_registers *)0x0;" (assignment_expression "regs = (re_registers *)0x0" identifier = (cast_expression "(re_registers *)0x0" ( (type_descriptor "re_registers *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    nmatch = 1;\n    if (regs != (re_registers *)0x0) {\n      if (((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub))\n      {\n        if ((int)nmatch < 1) goto LAB_000283b0;\n      }\n      else {\n        nmatch = bufp->re_nsub + 1;\n      }\n      iVar9 = nmatch << 3;\n    }\n  }" else (compound_statement "{\n    nmatch = 1;\n    if (regs != (re_registers *)0x0) {\n      if (((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub))\n      {\n        if ((int)nmatch < 1) goto LAB_000283b0;\n      }\n      else {\n        nmatch = bufp->re_nsub + 1;\n      }\n      iVar9 = nmatch << 3;\n    }\n  }" { (expression_statement "nmatch = 1;" (assignment_expression "nmatch = 1" identifier = number_literal) ;) (if_statement "if (regs != (re_registers *)0x0) {\n      if (((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub))\n      {\n        if ((int)nmatch < 1) goto LAB_000283b0;\n      }\n      else {\n        nmatch = bufp->re_nsub + 1;\n      }\n      iVar9 = nmatch << 3;\n    }" if (parenthesized_expression "(regs != (re_registers *)0x0)" ( (binary_expression "regs != (re_registers *)0x0" identifier != (cast_expression "(re_registers *)0x0" ( (type_descriptor "re_registers *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub))\n      {\n        if ((int)nmatch < 1) goto LAB_000283b0;\n      }\n      else {\n        nmatch = bufp->re_nsub + 1;\n      }\n      iVar9 = nmatch << 3;\n    }" { (if_statement "if (((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub))\n      {\n        if ((int)nmatch < 1) goto LAB_000283b0;\n      }\n      else {\n        nmatch = bufp->re_nsub + 1;\n      }" if (parenthesized_expression "(((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub))" ( (binary_expression "((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub)" (parenthesized_expression "((bufp->field_0x1c & 0x60) == 0x40)" ( (binary_expression "(bufp->field_0x1c & 0x60) == 0x40" (parenthesized_expression "(bufp->field_0x1c & 0x60)" ( (binary_expression "bufp->field_0x1c & 0x60" (field_expression "bufp->field_0x1c" identifier -> field_identifier) & number_literal) )) == number_literal) )) && (parenthesized_expression "(nmatch = regs->num_regs, nmatch <= bufp->re_nsub)" ( (comma_expression "nmatch = regs->num_regs, nmatch <= bufp->re_nsub" (assignment_expression "nmatch = regs->num_regs" identifier = (field_expression "regs->num_regs" identifier -> field_identifier)) , (binary_expression "nmatch <= bufp->re_nsub" identifier <= (field_expression "bufp->re_nsub" identifier -> field_identifier))) ))) )) (compound_statement "{\n        if ((int)nmatch < 1) goto LAB_000283b0;\n      }" { (if_statement "if ((int)nmatch < 1) goto LAB_000283b0;" if (parenthesized_expression "((int)nmatch < 1)" ( (binary_expression "(int)nmatch < 1" (cast_expression "(int)nmatch" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_000283b0;" goto statement_identifier ;)) }) (else_clause "else {\n        nmatch = bufp->re_nsub + 1;\n      }" else (compound_statement "{\n        nmatch = bufp->re_nsub + 1;\n      }" { (expression_statement "nmatch = bufp->re_nsub + 1;" (assignment_expression "nmatch = bufp->re_nsub + 1" identifier = (binary_expression "bufp->re_nsub + 1" (field_expression "bufp->re_nsub" identifier -> field_identifier) + number_literal)) ;) }))) (expression_statement "iVar9 = nmatch << 3;" (assignment_expression "iVar9 = nmatch << 3" identifier = (binary_expression "nmatch << 3" identifier << number_literal)) ;) })) }))) (expression_statement "pmatch = (regmatch_t *)(*(code *)PTR_malloc_0003c2b4)(iVar9);" (assignment_expression "pmatch = (regmatch_t *)(*(code *)PTR_malloc_0003c2b4)(iVar9)" identifier = (cast_expression "(regmatch_t *)(*(code *)PTR_malloc_0003c2b4)(iVar9)" ( (type_descriptor "regmatch_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_0003c2b4)(iVar9)" (parenthesized_expression "(*(code *)PTR_malloc_0003c2b4)" ( (pointer_expression "*(code *)PTR_malloc_0003c2b4" * (cast_expression "(code *)PTR_malloc_0003c2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar9)" ( identifier ))))) ;) (if_statement "if (pmatch == (regmatch_t *)0x0) {\n    return -2;\n  }" if (parenthesized_expression "(pmatch == (regmatch_t *)0x0)" ( (binary_expression "pmatch == (regmatch_t *)0x0" identifier == (cast_expression "(regmatch_t *)0x0" ( (type_descriptor "regmatch_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return -2;\n  }" { (return_statement "return -2;" return number_literal ;) })) (expression_statement "rVar3 = re_search_internal(bufp,string,length,start,last_start,stop,nmatch,pmatch,uVar2);" (assignment_expression "rVar3 = re_search_internal(bufp,string,length,start,last_start,stop,nmatch,pmatch,uVar2)" identifier = (call_expression "re_search_internal(bufp,string,length,start,last_start,stop,nmatch,pmatch,uVar2)" identifier (argument_list "(bufp,string,length,start,last_start,stop,nmatch,pmatch,uVar2)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (rVar3 == _REG_NOERROR) {\n    if (regs != (re_registers *)0x0) {\n      uVar2 = (uint)(*(int *)&bufp->field_0x1c << 1) >> 0x1e;\n      uVar10 = nmatch + 1;\n      if (uVar2 == 0) {\n        prVar6 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);\n        regs->start = prVar6;\n        if (prVar6 != (regoff_t *)0x0) {\n          prVar7 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);\n          regs->end = prVar7;\n          if (prVar7 != (regoff_t *)0x0) {\n            regs->num_regs = uVar10;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(prVar6);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (regs->num_regs < uVar10) {\n            prVar6 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->start,uVar10 * 4);\n            if (prVar6 == (regoff_t *)0x0) goto LAB_00028538;\n            prVar7 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->end,uVar10 * 4);\n            if (prVar7 == (regoff_t *)0x0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(prVar6);\n              goto LAB_0002835c;\n            }\n            regs->start = prVar6;\n            regs->end = prVar7;\n            regs->num_regs = uVar10;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n          iVar9 = 2;\n          if (regs->num_regs < nmatch) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n        }\nLAB_000282dc:\n        if ((int)nmatch < 1) {\n          nmatch = 0;\n        }\n        else {\n          prVar4 = pmatch;\n          prVar6 = regs->end;\n          prVar7 = regs->start;\n          do {\n            prVar5 = prVar4 + 1;\n            *prVar7 = prVar4->rm_so;\n            *prVar6 = prVar4->rm_eo;\n            prVar4 = prVar5;\n            prVar6 = prVar6 + 1;\n            prVar7 = prVar7 + 1;\n          } while (prVar5 != pmatch + nmatch);\n        }\n        if (nmatch < regs->num_regs) {\n          prVar7 = regs->end;\n          prVar6 = regs->start;\n          do {\n            uVar2 = nmatch + 1;\n            prVar7[nmatch] = -1;\n            prVar6[nmatch] = -1;\n            nmatch = uVar2;\n          } while (uVar2 < regs->num_regs);\n        }\n      }\nLAB_0002835c:\n      bufp->field_0x1c = bufp->field_0x1c & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }\n    rVar8 = pmatch->rm_so;\n    if (ret_len) {\n      if (start != rVar8) {\n        rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return rVar8;\n      }\n      rVar8 = pmatch->rm_eo - rVar8;\n    }\n  }\n  else {\n    rVar8 = -1;\n    if (rVar3 == _REG_NOMATCH) goto LAB_00028260;\nLAB_0002825c:\n    rVar8 = -2;\n  }" if (parenthesized_expression "(rVar3 == _REG_NOERROR)" ( (binary_expression "rVar3 == _REG_NOERROR" identifier == identifier) )) (compound_statement "{\n    if (regs != (re_registers *)0x0) {\n      uVar2 = (uint)(*(int *)&bufp->field_0x1c << 1) >> 0x1e;\n      uVar10 = nmatch + 1;\n      if (uVar2 == 0) {\n        prVar6 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);\n        regs->start = prVar6;\n        if (prVar6 != (regoff_t *)0x0) {\n          prVar7 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);\n          regs->end = prVar7;\n          if (prVar7 != (regoff_t *)0x0) {\n            regs->num_regs = uVar10;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(prVar6);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (regs->num_regs < uVar10) {\n            prVar6 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->start,uVar10 * 4);\n            if (prVar6 == (regoff_t *)0x0) goto LAB_00028538;\n            prVar7 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->end,uVar10 * 4);\n            if (prVar7 == (regoff_t *)0x0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(prVar6);\n              goto LAB_0002835c;\n            }\n            regs->start = prVar6;\n            regs->end = prVar7;\n            regs->num_regs = uVar10;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n          iVar9 = 2;\n          if (regs->num_regs < nmatch) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n        }\nLAB_000282dc:\n        if ((int)nmatch < 1) {\n          nmatch = 0;\n        }\n        else {\n          prVar4 = pmatch;\n          prVar6 = regs->end;\n          prVar7 = regs->start;\n          do {\n            prVar5 = prVar4 + 1;\n            *prVar7 = prVar4->rm_so;\n            *prVar6 = prVar4->rm_eo;\n            prVar4 = prVar5;\n            prVar6 = prVar6 + 1;\n            prVar7 = prVar7 + 1;\n          } while (prVar5 != pmatch + nmatch);\n        }\n        if (nmatch < regs->num_regs) {\n          prVar7 = regs->end;\n          prVar6 = regs->start;\n          do {\n            uVar2 = nmatch + 1;\n            prVar7[nmatch] = -1;\n            prVar6[nmatch] = -1;\n            nmatch = uVar2;\n          } while (uVar2 < regs->num_regs);\n        }\n      }\nLAB_0002835c:\n      bufp->field_0x1c = bufp->field_0x1c & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }\n    rVar8 = pmatch->rm_so;\n    if (ret_len) {\n      if (start != rVar8) {\n        rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return rVar8;\n      }\n      rVar8 = pmatch->rm_eo - rVar8;\n    }\n  }" { (if_statement "if (regs != (re_registers *)0x0) {\n      uVar2 = (uint)(*(int *)&bufp->field_0x1c << 1) >> 0x1e;\n      uVar10 = nmatch + 1;\n      if (uVar2 == 0) {\n        prVar6 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);\n        regs->start = prVar6;\n        if (prVar6 != (regoff_t *)0x0) {\n          prVar7 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);\n          regs->end = prVar7;\n          if (prVar7 != (regoff_t *)0x0) {\n            regs->num_regs = uVar10;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(prVar6);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (regs->num_regs < uVar10) {\n            prVar6 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->start,uVar10 * 4);\n            if (prVar6 == (regoff_t *)0x0) goto LAB_00028538;\n            prVar7 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->end,uVar10 * 4);\n            if (prVar7 == (regoff_t *)0x0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(prVar6);\n              goto LAB_0002835c;\n            }\n            regs->start = prVar6;\n            regs->end = prVar7;\n            regs->num_regs = uVar10;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n          iVar9 = 2;\n          if (regs->num_regs < nmatch) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n        }\nLAB_000282dc:\n        if ((int)nmatch < 1) {\n          nmatch = 0;\n        }\n        else {\n          prVar4 = pmatch;\n          prVar6 = regs->end;\n          prVar7 = regs->start;\n          do {\n            prVar5 = prVar4 + 1;\n            *prVar7 = prVar4->rm_so;\n            *prVar6 = prVar4->rm_eo;\n            prVar4 = prVar5;\n            prVar6 = prVar6 + 1;\n            prVar7 = prVar7 + 1;\n          } while (prVar5 != pmatch + nmatch);\n        }\n        if (nmatch < regs->num_regs) {\n          prVar7 = regs->end;\n          prVar6 = regs->start;\n          do {\n            uVar2 = nmatch + 1;\n            prVar7[nmatch] = -1;\n            prVar6[nmatch] = -1;\n            nmatch = uVar2;\n          } while (uVar2 < regs->num_regs);\n        }\n      }\nLAB_0002835c:\n      bufp->field_0x1c = bufp->field_0x1c & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }" if (parenthesized_expression "(regs != (re_registers *)0x0)" ( (binary_expression "regs != (re_registers *)0x0" identifier != (cast_expression "(re_registers *)0x0" ( (type_descriptor "re_registers *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar2 = (uint)(*(int *)&bufp->field_0x1c << 1) >> 0x1e;\n      uVar10 = nmatch + 1;\n      if (uVar2 == 0) {\n        prVar6 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);\n        regs->start = prVar6;\n        if (prVar6 != (regoff_t *)0x0) {\n          prVar7 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);\n          regs->end = prVar7;\n          if (prVar7 != (regoff_t *)0x0) {\n            regs->num_regs = uVar10;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(prVar6);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (regs->num_regs < uVar10) {\n            prVar6 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->start,uVar10 * 4);\n            if (prVar6 == (regoff_t *)0x0) goto LAB_00028538;\n            prVar7 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->end,uVar10 * 4);\n            if (prVar7 == (regoff_t *)0x0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(prVar6);\n              goto LAB_0002835c;\n            }\n            regs->start = prVar6;\n            regs->end = prVar7;\n            regs->num_regs = uVar10;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n          iVar9 = 2;\n          if (regs->num_regs < nmatch) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n        }\nLAB_000282dc:\n        if ((int)nmatch < 1) {\n          nmatch = 0;\n        }\n        else {\n          prVar4 = pmatch;\n          prVar6 = regs->end;\n          prVar7 = regs->start;\n          do {\n            prVar5 = prVar4 + 1;\n            *prVar7 = prVar4->rm_so;\n            *prVar6 = prVar4->rm_eo;\n            prVar4 = prVar5;\n            prVar6 = prVar6 + 1;\n            prVar7 = prVar7 + 1;\n          } while (prVar5 != pmatch + nmatch);\n        }\n        if (nmatch < regs->num_regs) {\n          prVar7 = regs->end;\n          prVar6 = regs->start;\n          do {\n            uVar2 = nmatch + 1;\n            prVar7[nmatch] = -1;\n            prVar6[nmatch] = -1;\n            nmatch = uVar2;\n          } while (uVar2 < regs->num_regs);\n        }\n      }\nLAB_0002835c:\n      bufp->field_0x1c = bufp->field_0x1c & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }" { (expression_statement "uVar2 = (uint)(*(int *)&bufp->field_0x1c << 1) >> 0x1e;" (assignment_expression "uVar2 = (uint)(*(int *)&bufp->field_0x1c << 1) >> 0x1e" identifier = (binary_expression "(uint)(*(int *)&bufp->field_0x1c << 1) >> 0x1e" (call_expression "(uint)(*(int *)&bufp->field_0x1c << 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)&bufp->field_0x1c << 1)" ( (binary_expression "*(int *)&bufp->field_0x1c << 1" (pointer_expression "*(int *)&bufp->field_0x1c" * (cast_expression "(int *)&bufp->field_0x1c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&bufp->field_0x1c" & (field_expression "bufp->field_0x1c" identifier -> field_identifier)))) << number_literal) ))) >> number_literal)) ;) (expression_statement "uVar10 = nmatch + 1;" (assignment_expression "uVar10 = nmatch + 1" identifier = (binary_expression "nmatch + 1" identifier + number_literal)) ;) (if_statement "if (uVar2 == 0) {\n        prVar6 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);\n        regs->start = prVar6;\n        if (prVar6 != (regoff_t *)0x0) {\n          prVar7 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);\n          regs->end = prVar7;\n          if (prVar7 != (regoff_t *)0x0) {\n            regs->num_regs = uVar10;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(prVar6);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (regs->num_regs < uVar10) {\n            prVar6 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->start,uVar10 * 4);\n            if (prVar6 == (regoff_t *)0x0) goto LAB_00028538;\n            prVar7 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->end,uVar10 * 4);\n            if (prVar7 == (regoff_t *)0x0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(prVar6);\n              goto LAB_0002835c;\n            }\n            regs->start = prVar6;\n            regs->end = prVar7;\n            regs->num_regs = uVar10;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n          iVar9 = 2;\n          if (regs->num_regs < nmatch) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n        }\nLAB_000282dc:\n        if ((int)nmatch < 1) {\n          nmatch = 0;\n        }\n        else {\n          prVar4 = pmatch;\n          prVar6 = regs->end;\n          prVar7 = regs->start;\n          do {\n            prVar5 = prVar4 + 1;\n            *prVar7 = prVar4->rm_so;\n            *prVar6 = prVar4->rm_eo;\n            prVar4 = prVar5;\n            prVar6 = prVar6 + 1;\n            prVar7 = prVar7 + 1;\n          } while (prVar5 != pmatch + nmatch);\n        }\n        if (nmatch < regs->num_regs) {\n          prVar7 = regs->end;\n          prVar6 = regs->start;\n          do {\n            uVar2 = nmatch + 1;\n            prVar7[nmatch] = -1;\n            prVar6[nmatch] = -1;\n            nmatch = uVar2;\n          } while (uVar2 < regs->num_regs);\n        }\n      }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        prVar6 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);\n        regs->start = prVar6;\n        if (prVar6 != (regoff_t *)0x0) {\n          prVar7 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);\n          regs->end = prVar7;\n          if (prVar7 != (regoff_t *)0x0) {\n            regs->num_regs = uVar10;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(prVar6);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }" { (expression_statement "prVar6 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);" (assignment_expression "prVar6 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4)" identifier = (cast_expression "(regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4)" ( (type_descriptor "regoff_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4)" (parenthesized_expression "(*(code *)PTR_malloc_0003c2b4)" ( (pointer_expression "*(code *)PTR_malloc_0003c2b4" * (cast_expression "(code *)PTR_malloc_0003c2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar10 * 4)" ( (binary_expression "uVar10 * 4" identifier * number_literal) ))))) ;) (expression_statement "regs->start = prVar6;" (assignment_expression "regs->start = prVar6" (field_expression "regs->start" identifier -> field_identifier) = identifier) ;) (if_statement "if (prVar6 != (regoff_t *)0x0) {\n          prVar7 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);\n          regs->end = prVar7;\n          if (prVar7 != (regoff_t *)0x0) {\n            regs->num_regs = uVar10;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(prVar6);\n        }" if (parenthesized_expression "(prVar6 != (regoff_t *)0x0)" ( (binary_expression "prVar6 != (regoff_t *)0x0" identifier != (cast_expression "(regoff_t *)0x0" ( (type_descriptor "regoff_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          prVar7 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);\n          regs->end = prVar7;\n          if (prVar7 != (regoff_t *)0x0) {\n            regs->num_regs = uVar10;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(prVar6);\n        }" { (expression_statement "prVar7 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4);" (assignment_expression "prVar7 = (regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4)" identifier = (cast_expression "(regoff_t *)(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4)" ( (type_descriptor "regoff_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_0003c2b4)(uVar10 * 4)" (parenthesized_expression "(*(code *)PTR_malloc_0003c2b4)" ( (pointer_expression "*(code *)PTR_malloc_0003c2b4" * (cast_expression "(code *)PTR_malloc_0003c2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar10 * 4)" ( (binary_expression "uVar10 * 4" identifier * number_literal) ))))) ;) (expression_statement "regs->end = prVar7;" (assignment_expression "regs->end = prVar7" (field_expression "regs->end" identifier -> field_identifier) = identifier) ;) (if_statement "if (prVar7 != (regoff_t *)0x0) {\n            regs->num_regs = uVar10;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }" if (parenthesized_expression "(prVar7 != (regoff_t *)0x0)" ( (binary_expression "prVar7 != (regoff_t *)0x0" identifier != (cast_expression "(regoff_t *)0x0" ( (type_descriptor "regoff_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            regs->num_regs = uVar10;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }" { (expression_statement "regs->num_regs = uVar10;" (assignment_expression "regs->num_regs = uVar10" (field_expression "regs->num_regs" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_000282dc;" goto statement_identifier ;) })) (expression_statement "(*(code *)PTR_free_0003c320)(prVar6);" (call_expression "(*(code *)PTR_free_0003c320)(prVar6)" (parenthesized_expression "(*(code *)PTR_free_0003c320)" ( (pointer_expression "*(code *)PTR_free_0003c320" * (cast_expression "(code *)PTR_free_0003c320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(prVar6)" ( identifier ))) ;) })) (labeled_statement "LAB_00028538:\n        iVar9 = 0;" statement_identifier : (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;)) }) (else_clause "else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (regs->num_regs < uVar10) {\n            prVar6 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->start,uVar10 * 4);\n            if (prVar6 == (regoff_t *)0x0) goto LAB_00028538;\n            prVar7 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->end,uVar10 * 4);\n            if (prVar7 == (regoff_t *)0x0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(prVar6);\n              goto LAB_0002835c;\n            }\n            regs->start = prVar6;\n            regs->end = prVar7;\n            regs->num_regs = uVar10;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n          iVar9 = 2;\n          if (regs->num_regs < nmatch) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n        }\nLAB_000282dc:\n        if ((int)nmatch < 1) {\n          nmatch = 0;\n        }\n        else {\n          prVar4 = pmatch;\n          prVar6 = regs->end;\n          prVar7 = regs->start;\n          do {\n            prVar5 = prVar4 + 1;\n            *prVar7 = prVar4->rm_so;\n            *prVar6 = prVar4->rm_eo;\n            prVar4 = prVar5;\n            prVar6 = prVar6 + 1;\n            prVar7 = prVar7 + 1;\n          } while (prVar5 != pmatch + nmatch);\n        }\n        if (nmatch < regs->num_regs) {\n          prVar7 = regs->end;\n          prVar6 = regs->start;\n          do {\n            uVar2 = nmatch + 1;\n            prVar7[nmatch] = -1;\n            prVar6[nmatch] = -1;\n            nmatch = uVar2;\n          } while (uVar2 < regs->num_regs);\n        }\n      }" else (compound_statement "{\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (regs->num_regs < uVar10) {\n            prVar6 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->start,uVar10 * 4);\n            if (prVar6 == (regoff_t *)0x0) goto LAB_00028538;\n            prVar7 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->end,uVar10 * 4);\n            if (prVar7 == (regoff_t *)0x0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(prVar6);\n              goto LAB_0002835c;\n            }\n            regs->start = prVar6;\n            regs->end = prVar7;\n            regs->num_regs = uVar10;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n          iVar9 = 2;\n          if (regs->num_regs < nmatch) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n        }\nLAB_000282dc:\n        if ((int)nmatch < 1) {\n          nmatch = 0;\n        }\n        else {\n          prVar4 = pmatch;\n          prVar6 = regs->end;\n          prVar7 = regs->start;\n          do {\n            prVar5 = prVar4 + 1;\n            *prVar7 = prVar4->rm_so;\n            *prVar6 = prVar4->rm_eo;\n            prVar4 = prVar5;\n            prVar6 = prVar6 + 1;\n            prVar7 = prVar7 + 1;\n          } while (prVar5 != pmatch + nmatch);\n        }\n        if (nmatch < regs->num_regs) {\n          prVar7 = regs->end;\n          prVar6 = regs->start;\n          do {\n            uVar2 = nmatch + 1;\n            prVar7[nmatch] = -1;\n            prVar6[nmatch] = -1;\n            nmatch = uVar2;\n          } while (uVar2 < regs->num_regs);\n        }\n      }" { (if_statement "if (uVar2 == 1) {\n          iVar9 = 1;\n          if (regs->num_regs < uVar10) {\n            prVar6 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->start,uVar10 * 4);\n            if (prVar6 == (regoff_t *)0x0) goto LAB_00028538;\n            prVar7 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->end,uVar10 * 4);\n            if (prVar7 == (regoff_t *)0x0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(prVar6);\n              goto LAB_0002835c;\n            }\n            regs->start = prVar6;\n            regs->end = prVar7;\n            regs->num_regs = uVar10;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n          iVar9 = 2;\n          if (regs->num_regs < nmatch) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n        }" if (parenthesized_expression "(uVar2 == 1)" ( (binary_expression "uVar2 == 1" identifier == number_literal) )) (compound_statement "{\n          iVar9 = 1;\n          if (regs->num_regs < uVar10) {\n            prVar6 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->start,uVar10 * 4);\n            if (prVar6 == (regoff_t *)0x0) goto LAB_00028538;\n            prVar7 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->end,uVar10 * 4);\n            if (prVar7 == (regoff_t *)0x0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(prVar6);\n              goto LAB_0002835c;\n            }\n            regs->start = prVar6;\n            regs->end = prVar7;\n            regs->num_regs = uVar10;\n          }\n        }" { (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;) (if_statement "if (regs->num_regs < uVar10) {\n            prVar6 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->start,uVar10 * 4);\n            if (prVar6 == (regoff_t *)0x0) goto LAB_00028538;\n            prVar7 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->end,uVar10 * 4);\n            if (prVar7 == (regoff_t *)0x0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(prVar6);\n              goto LAB_0002835c;\n            }\n            regs->start = prVar6;\n            regs->end = prVar7;\n            regs->num_regs = uVar10;\n          }" if (parenthesized_expression "(regs->num_regs < uVar10)" ( (binary_expression "regs->num_regs < uVar10" (field_expression "regs->num_regs" identifier -> field_identifier) < identifier) )) (compound_statement "{\n            prVar6 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->start,uVar10 * 4);\n            if (prVar6 == (regoff_t *)0x0) goto LAB_00028538;\n            prVar7 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->end,uVar10 * 4);\n            if (prVar7 == (regoff_t *)0x0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(prVar6);\n              goto LAB_0002835c;\n            }\n            regs->start = prVar6;\n            regs->end = prVar7;\n            regs->num_regs = uVar10;\n          }" { (expression_statement "prVar6 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->start,uVar10 * 4);" (assignment_expression "prVar6 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->start,uVar10 * 4)" identifier = (cast_expression "(regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->start,uVar10 * 4)" ( (type_descriptor "regoff_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_realloc_0003c2b8)(regs->start,uVar10 * 4)" (parenthesized_expression "(*(code *)PTR_realloc_0003c2b8)" ( (pointer_expression "*(code *)PTR_realloc_0003c2b8" * (cast_expression "(code *)PTR_realloc_0003c2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(regs->start,uVar10 * 4)" ( (field_expression "regs->start" identifier -> field_identifier) , (binary_expression "uVar10 * 4" identifier * number_literal) ))))) ;) (if_statement "if (prVar6 == (regoff_t *)0x0) goto LAB_00028538;" if (parenthesized_expression "(prVar6 == (regoff_t *)0x0)" ( (binary_expression "prVar6 == (regoff_t *)0x0" identifier == (cast_expression "(regoff_t *)0x0" ( (type_descriptor "regoff_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00028538;" goto statement_identifier ;)) (expression_statement "prVar7 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->end,uVar10 * 4);" (assignment_expression "prVar7 = (regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->end,uVar10 * 4)" identifier = (cast_expression "(regoff_t *)(*(code *)PTR_realloc_0003c2b8)(regs->end,uVar10 * 4)" ( (type_descriptor "regoff_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_realloc_0003c2b8)(regs->end,uVar10 * 4)" (parenthesized_expression "(*(code *)PTR_realloc_0003c2b8)" ( (pointer_expression "*(code *)PTR_realloc_0003c2b8" * (cast_expression "(code *)PTR_realloc_0003c2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(regs->end,uVar10 * 4)" ( (field_expression "regs->end" identifier -> field_identifier) , (binary_expression "uVar10 * 4" identifier * number_literal) ))))) ;) (if_statement "if (prVar7 == (regoff_t *)0x0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(prVar6);\n              goto LAB_0002835c;\n            }" if (parenthesized_expression "(prVar7 == (regoff_t *)0x0)" ( (binary_expression "prVar7 == (regoff_t *)0x0" identifier == (cast_expression "(regoff_t *)0x0" ( (type_descriptor "regoff_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(prVar6);\n              goto LAB_0002835c;\n            }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_free_0003c320)(prVar6);" (call_expression "(*(code *)PTR_free_0003c320)(prVar6)" (parenthesized_expression "(*(code *)PTR_free_0003c320)" ( (pointer_expression "*(code *)PTR_free_0003c320" * (cast_expression "(code *)PTR_free_0003c320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(prVar6)" ( identifier ))) ;) (goto_statement "goto LAB_0002835c;" goto statement_identifier ;) })) (expression_statement "regs->start = prVar6;" (assignment_expression "regs->start = prVar6" (field_expression "regs->start" identifier -> field_identifier) = identifier) ;) (expression_statement "regs->end = prVar7;" (assignment_expression "regs->end = prVar7" (field_expression "regs->end" identifier -> field_identifier) = identifier) ;) (expression_statement "regs->num_regs = uVar10;" (assignment_expression "regs->num_regs = uVar10" (field_expression "regs->num_regs" identifier -> field_identifier) = identifier) ;) })) }) (else_clause "else {\n          if (uVar2 != 2) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n          iVar9 = 2;\n          if (regs->num_regs < nmatch) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n        }" else (compound_statement "{\n          if (uVar2 != 2) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n          iVar9 = 2;\n          if (regs->num_regs < nmatch) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }\n        }" { (if_statement "if (uVar2 != 2) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }" if (parenthesized_expression "(uVar2 != 2)" ( (binary_expression "uVar2 != 2" identifier != number_literal) )) (compound_statement "{\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }" { (expression_statement "rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);" (assignment_expression "rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90)" identifier = (call_expression "(*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003c220)" ( (pointer_expression "*(code *)PTR___assert_fail_0003c220" * (cast_expression "(code *)PTR___assert_fail_0003c220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90)" ( (binary_expression "PTR_DAT_0003c108 + -0x4f50" identifier + number_literal) , (binary_expression "PTR_DAT_0003c108 + -0x4fec" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003c108 + -0x4a90" identifier + number_literal) )))) ;) (return_statement "return rVar8;" return identifier ;) })) (expression_statement "iVar9 = 2;" (assignment_expression "iVar9 = 2" identifier = number_literal) ;) (if_statement "if (regs->num_regs < nmatch) {\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }" if (parenthesized_expression "(regs->num_regs < nmatch)" ( (binary_expression "regs->num_regs < nmatch" (field_expression "regs->num_regs" identifier -> field_identifier) < identifier) )) (compound_statement "{\n            rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return rVar8;\n          }" { (expression_statement "rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);" (assignment_expression "rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90)" identifier = (call_expression "(*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003c220)" ( (pointer_expression "*(code *)PTR___assert_fail_0003c220" * (cast_expression "(code *)PTR___assert_fail_0003c220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90)" ( (binary_expression "PTR_DAT_0003c108 + -0x4f30" identifier + number_literal) , (binary_expression "PTR_DAT_0003c108 + -0x4fec" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003c108 + -0x4a90" identifier + number_literal) )))) ;) (return_statement "return rVar8;" return identifier ;) })) }))) (labeled_statement "LAB_000282dc:\n        if ((int)nmatch < 1) {\n          nmatch = 0;\n        }\n        else {\n          prVar4 = pmatch;\n          prVar6 = regs->end;\n          prVar7 = regs->start;\n          do {\n            prVar5 = prVar4 + 1;\n            *prVar7 = prVar4->rm_so;\n            *prVar6 = prVar4->rm_eo;\n            prVar4 = prVar5;\n            prVar6 = prVar6 + 1;\n            prVar7 = prVar7 + 1;\n          } while (prVar5 != pmatch + nmatch);\n        }" statement_identifier : (if_statement "if ((int)nmatch < 1) {\n          nmatch = 0;\n        }\n        else {\n          prVar4 = pmatch;\n          prVar6 = regs->end;\n          prVar7 = regs->start;\n          do {\n            prVar5 = prVar4 + 1;\n            *prVar7 = prVar4->rm_so;\n            *prVar6 = prVar4->rm_eo;\n            prVar4 = prVar5;\n            prVar6 = prVar6 + 1;\n            prVar7 = prVar7 + 1;\n          } while (prVar5 != pmatch + nmatch);\n        }" if (parenthesized_expression "((int)nmatch < 1)" ( (binary_expression "(int)nmatch < 1" (cast_expression "(int)nmatch" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n          nmatch = 0;\n        }" { (expression_statement "nmatch = 0;" (assignment_expression "nmatch = 0" identifier = number_literal) ;) }) (else_clause "else {\n          prVar4 = pmatch;\n          prVar6 = regs->end;\n          prVar7 = regs->start;\n          do {\n            prVar5 = prVar4 + 1;\n            *prVar7 = prVar4->rm_so;\n            *prVar6 = prVar4->rm_eo;\n            prVar4 = prVar5;\n            prVar6 = prVar6 + 1;\n            prVar7 = prVar7 + 1;\n          } while (prVar5 != pmatch + nmatch);\n        }" else (compound_statement "{\n          prVar4 = pmatch;\n          prVar6 = regs->end;\n          prVar7 = regs->start;\n          do {\n            prVar5 = prVar4 + 1;\n            *prVar7 = prVar4->rm_so;\n            *prVar6 = prVar4->rm_eo;\n            prVar4 = prVar5;\n            prVar6 = prVar6 + 1;\n            prVar7 = prVar7 + 1;\n          } while (prVar5 != pmatch + nmatch);\n        }" { (expression_statement "prVar4 = pmatch;" (assignment_expression "prVar4 = pmatch" identifier = identifier) ;) (expression_statement "prVar6 = regs->end;" (assignment_expression "prVar6 = regs->end" identifier = (field_expression "regs->end" identifier -> field_identifier)) ;) (expression_statement "prVar7 = regs->start;" (assignment_expression "prVar7 = regs->start" identifier = (field_expression "regs->start" identifier -> field_identifier)) ;) (do_statement "do {\n            prVar5 = prVar4 + 1;\n            *prVar7 = prVar4->rm_so;\n            *prVar6 = prVar4->rm_eo;\n            prVar4 = prVar5;\n            prVar6 = prVar6 + 1;\n            prVar7 = prVar7 + 1;\n          } while (prVar5 != pmatch + nmatch);" do (compound_statement "{\n            prVar5 = prVar4 + 1;\n            *prVar7 = prVar4->rm_so;\n            *prVar6 = prVar4->rm_eo;\n            prVar4 = prVar5;\n            prVar6 = prVar6 + 1;\n            prVar7 = prVar7 + 1;\n          }" { (expression_statement "prVar5 = prVar4 + 1;" (assignment_expression "prVar5 = prVar4 + 1" identifier = (binary_expression "prVar4 + 1" identifier + number_literal)) ;) (expression_statement "*prVar7 = prVar4->rm_so;" (assignment_expression "*prVar7 = prVar4->rm_so" (pointer_expression "*prVar7" * identifier) = (field_expression "prVar4->rm_so" identifier -> field_identifier)) ;) (expression_statement "*prVar6 = prVar4->rm_eo;" (assignment_expression "*prVar6 = prVar4->rm_eo" (pointer_expression "*prVar6" * identifier) = (field_expression "prVar4->rm_eo" identifier -> field_identifier)) ;) (expression_statement "prVar4 = prVar5;" (assignment_expression "prVar4 = prVar5" identifier = identifier) ;) (expression_statement "prVar6 = prVar6 + 1;" (assignment_expression "prVar6 = prVar6 + 1" identifier = (binary_expression "prVar6 + 1" identifier + number_literal)) ;) (expression_statement "prVar7 = prVar7 + 1;" (assignment_expression "prVar7 = prVar7 + 1" identifier = (binary_expression "prVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(prVar5 != pmatch + nmatch)" ( (binary_expression "prVar5 != pmatch + nmatch" identifier != (binary_expression "pmatch + nmatch" identifier + identifier)) )) ;) })))) (if_statement "if (nmatch < regs->num_regs) {\n          prVar7 = regs->end;\n          prVar6 = regs->start;\n          do {\n            uVar2 = nmatch + 1;\n            prVar7[nmatch] = -1;\n            prVar6[nmatch] = -1;\n            nmatch = uVar2;\n          } while (uVar2 < regs->num_regs);\n        }" if (parenthesized_expression "(nmatch < regs->num_regs)" ( (binary_expression "nmatch < regs->num_regs" identifier < (field_expression "regs->num_regs" identifier -> field_identifier)) )) (compound_statement "{\n          prVar7 = regs->end;\n          prVar6 = regs->start;\n          do {\n            uVar2 = nmatch + 1;\n            prVar7[nmatch] = -1;\n            prVar6[nmatch] = -1;\n            nmatch = uVar2;\n          } while (uVar2 < regs->num_regs);\n        }" { (expression_statement "prVar7 = regs->end;" (assignment_expression "prVar7 = regs->end" identifier = (field_expression "regs->end" identifier -> field_identifier)) ;) (expression_statement "prVar6 = regs->start;" (assignment_expression "prVar6 = regs->start" identifier = (field_expression "regs->start" identifier -> field_identifier)) ;) (do_statement "do {\n            uVar2 = nmatch + 1;\n            prVar7[nmatch] = -1;\n            prVar6[nmatch] = -1;\n            nmatch = uVar2;\n          } while (uVar2 < regs->num_regs);" do (compound_statement "{\n            uVar2 = nmatch + 1;\n            prVar7[nmatch] = -1;\n            prVar6[nmatch] = -1;\n            nmatch = uVar2;\n          }" { (expression_statement "uVar2 = nmatch + 1;" (assignment_expression "uVar2 = nmatch + 1" identifier = (binary_expression "nmatch + 1" identifier + number_literal)) ;) (expression_statement "prVar7[nmatch] = -1;" (assignment_expression "prVar7[nmatch] = -1" (subscript_expression "prVar7[nmatch]" identifier [ identifier ]) = number_literal) ;) (expression_statement "prVar6[nmatch] = -1;" (assignment_expression "prVar6[nmatch] = -1" (subscript_expression "prVar6[nmatch]" identifier [ identifier ]) = number_literal) ;) (expression_statement "nmatch = uVar2;" (assignment_expression "nmatch = uVar2" identifier = identifier) ;) }) while (parenthesized_expression "(uVar2 < regs->num_regs)" ( (binary_expression "uVar2 < regs->num_regs" identifier < (field_expression "regs->num_regs" identifier -> field_identifier)) )) ;) })) }))) (labeled_statement "LAB_0002835c:\n      bufp->field_0x1c = bufp->field_0x1c & 0x9f | (byte)(iVar9 << 5);" statement_identifier : (expression_statement "bufp->field_0x1c = bufp->field_0x1c & 0x9f | (byte)(iVar9 << 5);" (assignment_expression "bufp->field_0x1c = bufp->field_0x1c & 0x9f | (byte)(iVar9 << 5)" (field_expression "bufp->field_0x1c" identifier -> field_identifier) = (binary_expression "bufp->field_0x1c & 0x9f | (byte)(iVar9 << 5)" (binary_expression "bufp->field_0x1c & 0x9f" (field_expression "bufp->field_0x1c" identifier -> field_identifier) & number_literal) | (call_expression "(byte)(iVar9 << 5)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(iVar9 << 5)" ( (binary_expression "iVar9 << 5" identifier << number_literal) ))))) ;)) (if_statement "if (iVar9 == 0) goto LAB_0002825c;" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0002825c;" goto statement_identifier ;)) })) (expression_statement "rVar8 = pmatch->rm_so;" (assignment_expression "rVar8 = pmatch->rm_so" identifier = (field_expression "pmatch->rm_so" identifier -> field_identifier)) ;) (if_statement "if (ret_len) {\n      if (start != rVar8) {\n        rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return rVar8;\n      }\n      rVar8 = pmatch->rm_eo - rVar8;\n    }" if (parenthesized_expression "(ret_len)" ( identifier )) (compound_statement "{\n      if (start != rVar8) {\n        rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return rVar8;\n      }\n      rVar8 = pmatch->rm_eo - rVar8;\n    }" { (if_statement "if (start != rVar8) {\n        rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return rVar8;\n      }" if (parenthesized_expression "(start != rVar8)" ( (binary_expression "start != rVar8" identifier != identifier) )) (compound_statement "{\n        rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return rVar8;\n      }" { (expression_statement "rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);" (assignment_expression "rVar8 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80)" identifier = (call_expression "(*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003c220)" ( (pointer_expression "*(code *)PTR___assert_fail_0003c220" * (cast_expression "(code *)PTR___assert_fail_0003c220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80)" ( (binary_expression "PTR_DAT_0003c108 + -0x4f18" identifier + number_literal) , (binary_expression "PTR_DAT_0003c108 + -0x4fec" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003c108 + -0x4a80" identifier + number_literal) )))) ;) (return_statement "return rVar8;" return identifier ;) })) (expression_statement "rVar8 = pmatch->rm_eo - rVar8;" (assignment_expression "rVar8 = pmatch->rm_eo - rVar8" identifier = (binary_expression "pmatch->rm_eo - rVar8" (field_expression "pmatch->rm_eo" identifier -> field_identifier) - identifier)) ;) })) }) (else_clause "else {\n    rVar8 = -1;\n    if (rVar3 == _REG_NOMATCH) goto LAB_00028260;\nLAB_0002825c:\n    rVar8 = -2;\n  }" else (compound_statement "{\n    rVar8 = -1;\n    if (rVar3 == _REG_NOMATCH) goto LAB_00028260;\nLAB_0002825c:\n    rVar8 = -2;\n  }" { (expression_statement "rVar8 = -1;" (assignment_expression "rVar8 = -1" identifier = number_literal) ;) (if_statement "if (rVar3 == _REG_NOMATCH) goto LAB_00028260;" if (parenthesized_expression "(rVar3 == _REG_NOMATCH)" ( (binary_expression "rVar3 == _REG_NOMATCH" identifier == identifier) )) (goto_statement "goto LAB_00028260;" goto statement_identifier ;)) (labeled_statement "LAB_0002825c:\n    rVar8 = -2;" statement_identifier : (expression_statement "rVar8 = -2;" (assignment_expression "rVar8 = -2" identifier = number_literal) ;)) }))) (labeled_statement "LAB_00028260:\n  (*(code *)PTR_free_0003c320)(pmatch);" statement_identifier : (expression_statement "(*(code *)PTR_free_0003c320)(pmatch);" (call_expression "(*(code *)PTR_free_0003c320)(pmatch)" (parenthesized_expression "(*(code *)PTR_free_0003c320)" ( (pointer_expression "*(code *)PTR_free_0003c320" * (cast_expression "(code *)PTR_free_0003c320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pmatch)" ( identifier ))) ;)) (return_statement "return rVar8;" return identifier ;) })))
(translation_unit "int FUN_00028134(int param_1,undefined4 param_2,int param_3,int param_4,int param_5,\n                undefined4 param_6,uint *param_7,char param_8)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  int *piVar5;\n  int *piVar6;\n  int *piVar7;\n  int *piVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  \n  iVar9 = param_4 + param_5;\n  if ((param_4 < 0) || (param_3 < param_4)) {\n    return -1;\n  }\n  iVar10 = param_3;\n  if (param_3 < iVar9) {\nLAB_000283fc:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(param_1);\n    }\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    iVar10 = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }\n  iVar9 = 8;\n  if (*(int *)(param_1 + 0x1c) << 4 < 0) {\nLAB_000283b0:\n    iVar9 = 8;\n    uVar12 = 1;\n    param_7 = (uint *)0x0;\n  }\n  else {\n    uVar12 = 1;\n    if (param_7 != (uint *)0x0) {\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }\n  }\n  piVar3 = (int *)(*(code *)PTR_malloc_0003c2b4)(iVar9);\n  if (piVar3 == (int *)0x0) {\n    return -2;\n  }\n  iVar9 = FUN_00022768(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2);\n  if (iVar9 == 0) {\n    if (param_7 != (uint *)0x0) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n      uVar11 = uVar12 + 1;\n      if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }\nLAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }\n    iVar10 = *piVar3;\n    if (param_8 != '\0') {\n      if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }\n      iVar10 = piVar3[1] - iVar10;\n    }\n  }\n  else {\n    iVar10 = -1;\n    if (iVar9 == 1) goto LAB_00028260;\nLAB_0002825c:\n    iVar10 = -2;\n  }\nLAB_00028260:\n  (*(code *)PTR_free_0003c320)(piVar3);\n  return iVar10;\n}\n\n" (function_definition "int FUN_00028134(int param_1,undefined4 param_2,int param_3,int param_4,int param_5,\n                undefined4 param_6,uint *param_7,char param_8)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  int *piVar5;\n  int *piVar6;\n  int *piVar7;\n  int *piVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  \n  iVar9 = param_4 + param_5;\n  if ((param_4 < 0) || (param_3 < param_4)) {\n    return -1;\n  }\n  iVar10 = param_3;\n  if (param_3 < iVar9) {\nLAB_000283fc:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(param_1);\n    }\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    iVar10 = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }\n  iVar9 = 8;\n  if (*(int *)(param_1 + 0x1c) << 4 < 0) {\nLAB_000283b0:\n    iVar9 = 8;\n    uVar12 = 1;\n    param_7 = (uint *)0x0;\n  }\n  else {\n    uVar12 = 1;\n    if (param_7 != (uint *)0x0) {\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }\n  }\n  piVar3 = (int *)(*(code *)PTR_malloc_0003c2b4)(iVar9);\n  if (piVar3 == (int *)0x0) {\n    return -2;\n  }\n  iVar9 = FUN_00022768(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2);\n  if (iVar9 == 0) {\n    if (param_7 != (uint *)0x0) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n      uVar11 = uVar12 + 1;\n      if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }\nLAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }\n    iVar10 = *piVar3;\n    if (param_8 != '\0') {\n      if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }\n      iVar10 = piVar3[1] - iVar10;\n    }\n  }\n  else {\n    iVar10 = -1;\n    if (iVar9 == 1) goto LAB_00028260;\nLAB_0002825c:\n    iVar10 = -2;\n  }\nLAB_00028260:\n  (*(code *)PTR_free_0003c320)(piVar3);\n  return iVar10;\n}" primitive_type (function_declarator "FUN_00028134(int param_1,undefined4 param_2,int param_3,int param_4,int param_5,\n                undefined4 param_6,uint *param_7,char param_8)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,int param_4,int param_5,\n                undefined4 param_6,uint *param_7,char param_8)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "uint *param_7" type_identifier (pointer_declarator "*param_7" * identifier)) , (parameter_declaration "char param_8" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  int *piVar5;\n  int *piVar6;\n  int *piVar7;\n  int *piVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  \n  iVar9 = param_4 + param_5;\n  if ((param_4 < 0) || (param_3 < param_4)) {\n    return -1;\n  }\n  iVar10 = param_3;\n  if (param_3 < iVar9) {\nLAB_000283fc:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(param_1);\n    }\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    iVar10 = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }\n  iVar9 = 8;\n  if (*(int *)(param_1 + 0x1c) << 4 < 0) {\nLAB_000283b0:\n    iVar9 = 8;\n    uVar12 = 1;\n    param_7 = (uint *)0x0;\n  }\n  else {\n    uVar12 = 1;\n    if (param_7 != (uint *)0x0) {\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }\n  }\n  piVar3 = (int *)(*(code *)PTR_malloc_0003c2b4)(iVar9);\n  if (piVar3 == (int *)0x0) {\n    return -2;\n  }\n  iVar9 = FUN_00022768(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2);\n  if (iVar9 == 0) {\n    if (param_7 != (uint *)0x0) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n      uVar11 = uVar12 + 1;\n      if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }\nLAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }\n    iVar10 = *piVar3;\n    if (param_8 != '\0') {\n      if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }\n      iVar10 = piVar3[1] - iVar10;\n    }\n  }\n  else {\n    iVar10 = -1;\n    if (iVar9 == 1) goto LAB_00028260;\nLAB_0002825c:\n    iVar10 = -2;\n  }\nLAB_00028260:\n  (*(code *)PTR_free_0003c320)(piVar3);\n  return iVar10;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier 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 "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (expression_statement "iVar9 = param_4 + param_5;" (assignment_expression "iVar9 = param_4 + param_5" identifier = (binary_expression "param_4 + param_5" identifier + identifier)) ;) (if_statement "if ((param_4 < 0) || (param_3 < param_4)) {\n    return -1;\n  }" if (parenthesized_expression "((param_4 < 0) || (param_3 < param_4))" ( (binary_expression "(param_4 < 0) || (param_3 < param_4)" (parenthesized_expression "(param_4 < 0)" ( (binary_expression "param_4 < 0" identifier < number_literal) )) || (parenthesized_expression "(param_3 < param_4)" ( (binary_expression "param_3 < param_4" identifier < identifier) ))) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "iVar10 = param_3;" (assignment_expression "iVar10 = param_3" identifier = identifier) ;) (if_statement "if (param_3 < iVar9) {\nLAB_000283fc:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(param_1);\n    }\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    iVar10 = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }" if (parenthesized_expression "(param_3 < iVar9)" ( (binary_expression "param_3 < iVar9" identifier < identifier) )) (compound_statement "{\nLAB_000283fc:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(param_1);\n    }\n  }" { (labeled_statement "LAB_000283fc:\n    bVar1 = *(byte *)(param_1 + 0x1c);" statement_identifier : (expression_statement "bVar1 = *(byte *)(param_1 + 0x1c);" (assignment_expression "bVar1 = *(byte *)(param_1 + 0x1c)" identifier = (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;)) (expression_statement "uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;" (assignment_expression "uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2" identifier = (binary_expression "((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2" (binary_expression "((uint)bVar1 << 0x1d) >> 0x1f" (parenthesized_expression "((uint)bVar1 << 0x1d)" ( (binary_expression "(uint)bVar1 << 0x1d" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal) )) >> number_literal) | (binary_expression "bVar1 & 2" identifier & number_literal))) ;) (if_statement "if (((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(param_1);\n    }" if (parenthesized_expression "(((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0))" ( (binary_expression "((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)" (parenthesized_expression "((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0))" ( (binary_expression "(param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)" (parenthesized_expression "(param_4 < iVar10)" ( (binary_expression "param_4 < iVar10" identifier < identifier) )) && (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" ( (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal) ))) )) && (parenthesized_expression "((bVar1 & 0x10) == 0)" ( (binary_expression "(bVar1 & 0x10) == 0" (parenthesized_expression "(bVar1 & 0x10)" ( (binary_expression "bVar1 & 0x10" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      rpl_re_compile_fastmap(param_1);\n    }" { (expression_statement "rpl_re_compile_fastmap(param_1);" (call_expression "rpl_re_compile_fastmap(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) }) (else_clause "else {\n    if (param_5 < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    iVar10 = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }" else (compound_statement "{\n    if (param_5 < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    iVar10 = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }" { (if_statement "if (param_5 < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }" if (parenthesized_expression "(param_5 < 0)" ( (binary_expression "param_5 < 0" identifier < number_literal) )) (compound_statement "{\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }" { (if_statement "if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" if (parenthesized_expression "(iVar9 < 0)" ( (binary_expression "iVar9 < 0" identifier < number_literal) )) (compound_statement "{\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" { (expression_statement "uVar2 = (uint)*(byte *)(param_1 + 0x1c);" (assignment_expression "uVar2 = (uint)*(byte *)(param_1 + 0x1c)" identifier = (binary_expression "(uint)*(byte *)(param_1 + 0x1c)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" else (compound_statement "{\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" { (expression_statement "iVar10 = iVar9;" (assignment_expression "iVar10 = iVar9" identifier = identifier) ;) (if_statement "if (iVar9 < param_4) goto LAB_000283fc;" if (parenthesized_expression "(iVar9 < param_4)" ( (binary_expression "iVar9 < param_4" identifier < identifier) )) (goto_statement "goto LAB_000283fc;" goto statement_identifier ;)) (expression_statement "uVar2 = (uint)*(byte *)(param_1 + 0x1c);" (assignment_expression "uVar2 = (uint)*(byte *)(param_1 + 0x1c)" identifier = (binary_expression "(uint)*(byte *)(param_1 + 0x1c)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) }))) }) (else_clause "else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }" else (compound_statement "{\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }" { (if_statement "if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;" if (parenthesized_expression "((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9))" ( (binary_expression "(iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)" (parenthesized_expression "(iVar9 < param_4)" ( (binary_expression "iVar9 < param_4" identifier < identifier) )) || (parenthesized_expression "(iVar10 = iVar9, -1 < iVar9)" ( (comma_expression "iVar10 = iVar9, -1 < iVar9" (assignment_expression "iVar10 = iVar9" identifier = identifier) , (binary_expression "-1 < iVar9" number_literal < identifier)) ))) )) (goto_statement "goto LAB_000283fc;" goto statement_identifier ;)) (expression_statement "uVar2 = (uint)*(byte *)(param_1 + 0x1c);" (assignment_expression "uVar2 = (uint)*(byte *)(param_1 + 0x1c)" identifier = (binary_expression "(uint)*(byte *)(param_1 + 0x1c)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) }))) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;" (assignment_expression "uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2" identifier = (binary_expression "(uVar2 << 0x1d) >> 0x1f | uVar2 & 2" (binary_expression "(uVar2 << 0x1d) >> 0x1f" (parenthesized_expression "(uVar2 << 0x1d)" ( (binary_expression "uVar2 << 0x1d" identifier << number_literal) )) >> number_literal) | (binary_expression "uVar2 & 2" identifier & number_literal))) ;) }))) (expression_statement "iVar9 = 8;" (assignment_expression "iVar9 = 8" identifier = number_literal) ;) (if_statement "if (*(int *)(param_1 + 0x1c) << 4 < 0) {\nLAB_000283b0:\n    iVar9 = 8;\n    uVar12 = 1;\n    param_7 = (uint *)0x0;\n  }\n  else {\n    uVar12 = 1;\n    if (param_7 != (uint *)0x0) {\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x1c) << 4 < 0)" ( (binary_expression "*(int *)(param_1 + 0x1c) << 4 < 0" (binary_expression "*(int *)(param_1 + 0x1c) << 4" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) << number_literal) < number_literal) )) (compound_statement "{\nLAB_000283b0:\n    iVar9 = 8;\n    uVar12 = 1;\n    param_7 = (uint *)0x0;\n  }" { (labeled_statement "LAB_000283b0:\n    iVar9 = 8;" statement_identifier : (expression_statement "iVar9 = 8;" (assignment_expression "iVar9 = 8" identifier = number_literal) ;)) (expression_statement "uVar12 = 1;" (assignment_expression "uVar12 = 1" identifier = number_literal) ;) (expression_statement "param_7 = (uint *)0x0;" (assignment_expression "param_7 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    uVar12 = 1;\n    if (param_7 != (uint *)0x0) {\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }\n  }" else (compound_statement "{\n    uVar12 = 1;\n    if (param_7 != (uint *)0x0) {\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }\n  }" { (expression_statement "uVar12 = 1;" (assignment_expression "uVar12 = 1" identifier = number_literal) ;) (if_statement "if (param_7 != (uint *)0x0) {\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }" if (parenthesized_expression "(param_7 != (uint *)0x0)" ( (binary_expression "param_7 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }" { (if_statement "if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }" if (parenthesized_expression "(((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18)))" ( (binary_expression "((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))" (parenthesized_expression "((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40)" ( (binary_expression "(*(byte *)(param_1 + 0x1c) & 0x60) == 0x40" (parenthesized_expression "(*(byte *)(param_1 + 0x1c) & 0x60)" ( (binary_expression "*(byte *)(param_1 + 0x1c) & 0x60" (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "(uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))" ( (comma_expression "uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18)" (assignment_expression "uVar12 = *param_7" identifier = (pointer_expression "*param_7" * identifier)) , (binary_expression "uVar12 <= *(uint *)(param_1 + 0x18)" identifier <= (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))))) ))) )) (compound_statement "{\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }" { (if_statement "if ((int)uVar12 < 1) goto LAB_000283b0;" if (parenthesized_expression "((int)uVar12 < 1)" ( (binary_expression "(int)uVar12 < 1" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_000283b0;" goto statement_identifier ;)) }) (else_clause "else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }" else (compound_statement "{\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }" { (expression_statement "uVar12 = *(uint *)(param_1 + 0x18) + 1;" (assignment_expression "uVar12 = *(uint *)(param_1 + 0x18) + 1" identifier = (binary_expression "*(uint *)(param_1 + 0x18) + 1" (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal)) ;) }))) (expression_statement "iVar9 = uVar12 << 3;" (assignment_expression "iVar9 = uVar12 << 3" identifier = (binary_expression "uVar12 << 3" identifier << number_literal)) ;) })) }))) (expression_statement "piVar3 = (int *)(*(code *)PTR_malloc_0003c2b4)(iVar9);" (assignment_expression "piVar3 = (int *)(*(code *)PTR_malloc_0003c2b4)(iVar9)" identifier = (cast_expression "(int *)(*(code *)PTR_malloc_0003c2b4)(iVar9)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_0003c2b4)(iVar9)" (parenthesized_expression "(*(code *)PTR_malloc_0003c2b4)" ( (pointer_expression "*(code *)PTR_malloc_0003c2b4" * (cast_expression "(code *)PTR_malloc_0003c2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar9)" ( identifier ))))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n    return -2;\n  }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return -2;\n  }" { (return_statement "return -2;" return number_literal ;) })) (expression_statement "iVar9 = FUN_00022768(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2);" (assignment_expression "iVar9 = FUN_00022768(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2)" identifier = (call_expression "FUN_00022768(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2)" identifier (argument_list "(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar9 == 0) {\n    if (param_7 != (uint *)0x0) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n      uVar11 = uVar12 + 1;\n      if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }\nLAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }\n    iVar10 = *piVar3;\n    if (param_8 != '\0') {\n      if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }\n      iVar10 = piVar3[1] - iVar10;\n    }\n  }\n  else {\n    iVar10 = -1;\n    if (iVar9 == 1) goto LAB_00028260;\nLAB_0002825c:\n    iVar10 = -2;\n  }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_7 != (uint *)0x0) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n      uVar11 = uVar12 + 1;\n      if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }\nLAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }\n    iVar10 = *piVar3;\n    if (param_8 != '\0') {\n      if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }\n      iVar10 = piVar3[1] - iVar10;\n    }\n  }" { (if_statement "if (param_7 != (uint *)0x0) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n      uVar11 = uVar12 + 1;\n      if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }\nLAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }" if (parenthesized_expression "(param_7 != (uint *)0x0)" ( (binary_expression "param_7 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n      uVar11 = uVar12 + 1;\n      if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }\nLAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }" { (expression_statement "uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;" (assignment_expression "uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e" identifier = (binary_expression "(uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e" (call_expression "(uint)(*(int *)(param_1 + 0x1c) << 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 0x1c) << 1)" ( (binary_expression "*(int *)(param_1 + 0x1c) << 1" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) << number_literal) ))) >> number_literal)) ;) (expression_statement "uVar11 = uVar12 + 1;" (assignment_expression "uVar11 = uVar12 + 1" identifier = (binary_expression "uVar12 + 1" identifier + number_literal)) ;) (if_statement "if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }" { (expression_statement "uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);" (assignment_expression "uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4)" identifier = (call_expression "(*(code *)PTR_malloc_0003c2b4)(uVar11 * 4)" (parenthesized_expression "(*(code *)PTR_malloc_0003c2b4)" ( (pointer_expression "*(code *)PTR_malloc_0003c2b4" * (cast_expression "(code *)PTR_malloc_0003c2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar11 * 4)" ( (binary_expression "uVar11 * 4" identifier * number_literal) )))) ;) (expression_statement "param_7[1] = uVar2;" (assignment_expression "param_7[1] = uVar2" (subscript_expression "param_7[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }" { (expression_statement "uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);" (assignment_expression "uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4)" identifier = (call_expression "(*(code *)PTR_malloc_0003c2b4)(uVar11 * 4)" (parenthesized_expression "(*(code *)PTR_malloc_0003c2b4)" ( (pointer_expression "*(code *)PTR_malloc_0003c2b4" * (cast_expression "(code *)PTR_malloc_0003c2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar11 * 4)" ( (binary_expression "uVar11 * 4" identifier * number_literal) )))) ;) (expression_statement "param_7[2] = uVar4;" (assignment_expression "param_7[2] = uVar4" (subscript_expression "param_7[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }" if (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) (compound_statement "{\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }" { (expression_statement "*param_7 = uVar11;" (assignment_expression "*param_7 = uVar11" (pointer_expression "*param_7" * identifier) = identifier) ;) (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_000282dc;" goto statement_identifier ;) })) (expression_statement "(*(code *)PTR_free_0003c320)(uVar2);" (call_expression "(*(code *)PTR_free_0003c320)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_0003c320)" ( (pointer_expression "*(code *)PTR_free_0003c320" * (cast_expression "(code *)PTR_free_0003c320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) })) (labeled_statement "LAB_00028538:\n        iVar9 = 0;" statement_identifier : (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;)) }) (else_clause "else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }" else (compound_statement "{\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }" { (if_statement "if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }" if (parenthesized_expression "(uVar2 == 1)" ( (binary_expression "uVar2 == 1" identifier == number_literal) )) (compound_statement "{\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }" { (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;) (if_statement "if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }" if (parenthesized_expression "(*param_7 < uVar11)" ( (binary_expression "*param_7 < uVar11" (pointer_expression "*param_7" * identifier) < identifier) )) (compound_statement "{\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }" { (expression_statement "uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);" (assignment_expression "uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4)" identifier = (call_expression "(*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4)" (parenthesized_expression "(*(code *)PTR_realloc_0003c2b8)" ( (pointer_expression "*(code *)PTR_realloc_0003c2b8" * (cast_expression "(code *)PTR_realloc_0003c2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_7[1],uVar11 * 4)" ( (subscript_expression "param_7[1]" identifier [ number_literal ]) , (binary_expression "uVar11 * 4" identifier * number_literal) )))) ;) (if_statement "if (uVar2 == 0) goto LAB_00028538;" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00028538;" goto statement_identifier ;)) (expression_statement "uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);" (assignment_expression "uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4)" identifier = (call_expression "(*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4)" (parenthesized_expression "(*(code *)PTR_realloc_0003c2b8)" ( (pointer_expression "*(code *)PTR_realloc_0003c2b8" * (cast_expression "(code *)PTR_realloc_0003c2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_7[2],uVar11 * 4)" ( (subscript_expression "param_7[2]" identifier [ number_literal ]) , (binary_expression "uVar11 * 4" identifier * number_literal) )))) ;) (if_statement "if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_free_0003c320)(uVar2);" (call_expression "(*(code *)PTR_free_0003c320)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_0003c320)" ( (pointer_expression "*(code *)PTR_free_0003c320" * (cast_expression "(code *)PTR_free_0003c320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (goto_statement "goto LAB_0002835c;" goto statement_identifier ;) })) (expression_statement "param_7[1] = uVar2;" (assignment_expression "param_7[1] = uVar2" (subscript_expression "param_7[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_7[2] = uVar4;" (assignment_expression "param_7[2] = uVar4" (subscript_expression "param_7[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_7 = uVar11;" (assignment_expression "*param_7 = uVar11" (pointer_expression "*param_7" * identifier) = identifier) ;) })) }) (else_clause "else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }" else (compound_statement "{\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }" { (if_statement "if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }" if (parenthesized_expression "(uVar2 != 2)" ( (binary_expression "uVar2 != 2" identifier != number_literal) )) (compound_statement "{\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }" { (expression_statement "iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);" (assignment_expression "iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90)" identifier = (call_expression "(*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003c220)" ( (pointer_expression "*(code *)PTR___assert_fail_0003c220" * (cast_expression "(code *)PTR___assert_fail_0003c220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90)" ( (binary_expression "PTR_DAT_0003c108 + -0x4f50" identifier + number_literal) , (binary_expression "PTR_DAT_0003c108 + -0x4fec" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003c108 + -0x4a90" identifier + number_literal) )))) ;) (return_statement "return iVar9;" return identifier ;) })) (expression_statement "iVar9 = 2;" (assignment_expression "iVar9 = 2" identifier = number_literal) ;) (if_statement "if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }" if (parenthesized_expression "(*param_7 < uVar12)" ( (binary_expression "*param_7 < uVar12" (pointer_expression "*param_7" * identifier) < identifier) )) (compound_statement "{\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }" { (expression_statement "iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);" (assignment_expression "iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90)" identifier = (call_expression "(*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003c220)" ( (pointer_expression "*(code *)PTR___assert_fail_0003c220" * (cast_expression "(code *)PTR___assert_fail_0003c220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90)" ( (binary_expression "PTR_DAT_0003c108 + -0x4f30" identifier + number_literal) , (binary_expression "PTR_DAT_0003c108 + -0x4fec" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003c108 + -0x4a90" identifier + number_literal) )))) ;) (return_statement "return iVar9;" return identifier ;) })) }))) (labeled_statement "LAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }" statement_identifier : (if_statement "if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }" if (parenthesized_expression "((int)uVar12 < 1)" ( (binary_expression "(int)uVar12 < 1" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n          uVar12 = 0;\n        }" { (expression_statement "uVar12 = 0;" (assignment_expression "uVar12 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }" else (compound_statement "{\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }" { (expression_statement "piVar5 = piVar3;" (assignment_expression "piVar5 = piVar3" identifier = identifier) ;) (expression_statement "piVar7 = (int *)param_7[2];" (assignment_expression "piVar7 = (int *)param_7[2]" identifier = (cast_expression "(int *)param_7[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_7[2]" identifier [ number_literal ]))) ;) (expression_statement "piVar8 = (int *)param_7[1];" (assignment_expression "piVar8 = (int *)param_7[1]" identifier = (cast_expression "(int *)param_7[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_7[1]" identifier [ number_literal ]))) ;) (do_statement "do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);" do (compound_statement "{\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          }" { (expression_statement "piVar6 = piVar5 + 2;" (assignment_expression "piVar6 = piVar5 + 2" identifier = (binary_expression "piVar5 + 2" identifier + number_literal)) ;) (expression_statement "*piVar8 = *piVar5;" (assignment_expression "*piVar8 = *piVar5" (pointer_expression "*piVar8" * identifier) = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "*piVar7 = piVar5[1];" (assignment_expression "*piVar7 = piVar5[1]" (pointer_expression "*piVar7" * identifier) = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (expression_statement "piVar5 = piVar6;" (assignment_expression "piVar5 = piVar6" identifier = identifier) ;) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" identifier = (binary_expression "piVar7 + 1" identifier + number_literal)) ;) (expression_statement "piVar8 = piVar8 + 1;" (assignment_expression "piVar8 = piVar8 + 1" identifier = (binary_expression "piVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar6 != piVar3 + uVar12 * 2)" ( (binary_expression "piVar6 != piVar3 + uVar12 * 2" identifier != (binary_expression "piVar3 + uVar12 * 2" identifier + (binary_expression "uVar12 * 2" identifier * number_literal))) )) ;) })))) (if_statement "if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }" if (parenthesized_expression "(uVar12 < *param_7)" ( (binary_expression "uVar12 < *param_7" identifier < (pointer_expression "*param_7" * identifier)) )) (compound_statement "{\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }" { (expression_statement "uVar11 = param_7[2];" (assignment_expression "uVar11 = param_7[2]" identifier = (subscript_expression "param_7[2]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = param_7[1];" (assignment_expression "uVar2 = param_7[1]" identifier = (subscript_expression "param_7[1]" identifier [ number_literal ])) ;) (do_statement "do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);" do (compound_statement "{\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          }" { (expression_statement "iVar10 = uVar12 * 4;" (assignment_expression "iVar10 = uVar12 * 4" identifier = (binary_expression "uVar12 * 4" identifier * number_literal)) ;) (expression_statement "uVar12 = uVar12 + 1;" (assignment_expression "uVar12 = uVar12 + 1" identifier = (binary_expression "uVar12 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(uVar11 + iVar10) = 0xffffffff;" (assignment_expression "*(undefined4 *)(uVar11 + iVar10) = 0xffffffff" (pointer_expression "*(undefined4 *)(uVar11 + iVar10)" * (cast_expression "(undefined4 *)(uVar11 + iVar10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar11 + iVar10)" ( (binary_expression "uVar11 + iVar10" identifier + identifier) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(uVar2 + iVar10) = 0xffffffff;" (assignment_expression "*(undefined4 *)(uVar2 + iVar10) = 0xffffffff" (pointer_expression "*(undefined4 *)(uVar2 + iVar10)" * (cast_expression "(undefined4 *)(uVar2 + iVar10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + iVar10)" ( (binary_expression "uVar2 + iVar10" identifier + identifier) )))) = number_literal) ;) }) while (parenthesized_expression "(uVar12 < *param_7)" ( (binary_expression "uVar12 < *param_7" identifier < (pointer_expression "*param_7" * identifier)) )) ;) })) }))) (labeled_statement "LAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);" statement_identifier : (expression_statement "*(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);" (assignment_expression "*(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5)" (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5)" (binary_expression "*(byte *)(param_1 + 0x1c) & 0x9f" (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) & number_literal) | (call_expression "(byte)(iVar9 << 5)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(iVar9 << 5)" ( (binary_expression "iVar9 << 5" identifier << number_literal) ))))) ;)) (if_statement "if (iVar9 == 0) goto LAB_0002825c;" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0002825c;" goto statement_identifier ;)) })) (expression_statement "iVar10 = *piVar3;" (assignment_expression "iVar10 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (if_statement "if (param_8 != '\0') {\n      if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }\n      iVar10 = piVar3[1] - iVar10;\n    }" if (parenthesized_expression "(param_8 != '\0')" ( (binary_expression "param_8 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }\n      iVar10 = piVar3[1] - iVar10;\n    }" { (if_statement "if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }" if (parenthesized_expression "(param_4 != iVar10)" ( (binary_expression "param_4 != iVar10" identifier != identifier) )) (compound_statement "{\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }" { (expression_statement "iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);" (assignment_expression "iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80)" identifier = (call_expression "(*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003c220)" ( (pointer_expression "*(code *)PTR___assert_fail_0003c220" * (cast_expression "(code *)PTR___assert_fail_0003c220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80)" ( (binary_expression "PTR_DAT_0003c108 + -0x4f18" identifier + number_literal) , (binary_expression "PTR_DAT_0003c108 + -0x4fec" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003c108 + -0x4a80" identifier + number_literal) )))) ;) (return_statement "return iVar9;" return identifier ;) })) (expression_statement "iVar10 = piVar3[1] - iVar10;" (assignment_expression "iVar10 = piVar3[1] - iVar10" identifier = (binary_expression "piVar3[1] - iVar10" (subscript_expression "piVar3[1]" identifier [ number_literal ]) - identifier)) ;) })) }) (else_clause "else {\n    iVar10 = -1;\n    if (iVar9 == 1) goto LAB_00028260;\nLAB_0002825c:\n    iVar10 = -2;\n  }" else (compound_statement "{\n    iVar10 = -1;\n    if (iVar9 == 1) goto LAB_00028260;\nLAB_0002825c:\n    iVar10 = -2;\n  }" { (expression_statement "iVar10 = -1;" (assignment_expression "iVar10 = -1" identifier = number_literal) ;) (if_statement "if (iVar9 == 1) goto LAB_00028260;" if (parenthesized_expression "(iVar9 == 1)" ( (binary_expression "iVar9 == 1" identifier == number_literal) )) (goto_statement "goto LAB_00028260;" goto statement_identifier ;)) (labeled_statement "LAB_0002825c:\n    iVar10 = -2;" statement_identifier : (expression_statement "iVar10 = -2;" (assignment_expression "iVar10 = -2" identifier = number_literal) ;)) }))) (labeled_statement "LAB_00028260:\n  (*(code *)PTR_free_0003c320)(piVar3);" statement_identifier : (expression_statement "(*(code *)PTR_free_0003c320)(piVar3);" (call_expression "(*(code *)PTR_free_0003c320)(piVar3)" (parenthesized_expression "(*(code *)PTR_free_0003c320)" ( (pointer_expression "*(code *)PTR_free_0003c320" * (cast_expression "(code *)PTR_free_0003c320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar3)" ( identifier ))) ;)) (return_statement "return iVar10;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE 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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (labeled_statement statement_identifier : (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 = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) << LIT) )) >> LIT) | (binary_expression IDENT & LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression LIT < IDENT)) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT) | (binary_expression IDENT & LIT))) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) << LIT) < LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) })) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) << LIT) ))) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT * LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT * LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , (binary_expression IDENT * LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , (binary_expression IDENT * LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = 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 != (binary_expression IDENT + (binary_expression IDENT * LIT))) )) ;) })))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * IDENT)) )) ;) })) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) | (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT << LIT) ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - IDENT)) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }))) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;)) (return_statement return IDENT ;) })))
(function_definition "int FUN_00028134(int param_1,undefined4 param_2,int param_3,int param_4,int param_5,\n                undefined4 param_6,uint *param_7,char param_8)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  int *piVar5;\n  int *piVar6;\n  int *piVar7;\n  int *piVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  \n  iVar9 = param_4 + param_5;\n  if ((param_4 < 0) || (param_3 < param_4)) {\n    return -1;\n  }\n  iVar10 = param_3;\n  if (param_3 < iVar9) {\nLAB_000283fc:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(param_1);\n    }\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    iVar10 = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }\n  iVar9 = 8;\n  if (*(int *)(param_1 + 0x1c) << 4 < 0) {\nLAB_000283b0:\n    iVar9 = 8;\n    uVar12 = 1;\n    param_7 = (uint *)0x0;\n  }\n  else {\n    uVar12 = 1;\n    if (param_7 != (uint *)0x0) {\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }\n  }\n  piVar3 = (int *)(*(code *)PTR_malloc_0003c2b4)(iVar9);\n  if (piVar3 == (int *)0x0) {\n    return -2;\n  }\n  iVar9 = FUN_00022768(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2);\n  if (iVar9 == 0) {\n    if (param_7 != (uint *)0x0) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n      uVar11 = uVar12 + 1;\n      if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }\nLAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }\n    iVar10 = *piVar3;\n    if (param_8 != '\0') {\n      if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }\n      iVar10 = piVar3[1] - iVar10;\n    }\n  }\n  else {\n    iVar10 = -1;\n    if (iVar9 == 1) goto LAB_00028260;\nLAB_0002825c:\n    iVar10 = -2;\n  }\nLAB_00028260:\n  (*(code *)PTR_free_0003c320)(piVar3);\n  return iVar10;\n}" (primitive_type "int") (function_declarator "FUN_00028134(int param_1,undefined4 param_2,int param_3,int param_4,int param_5,\n                undefined4 param_6,uint *param_7,char param_8)" (identifier "FUN_00028134") (parameter_list "(int param_1,undefined4 param_2,int param_3,int param_4,int param_5,\n                undefined4 param_6,uint *param_7,char param_8)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "uint *param_7" (type_identifier "uint") (pointer_declarator "*param_7" (* "*") (identifier "param_7"))) (, ",") (parameter_declaration "char param_8" (primitive_type "char") (identifier "param_8")) () ")"))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  int *piVar5;\n  int *piVar6;\n  int *piVar7;\n  int *piVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  \n  iVar9 = param_4 + param_5;\n  if ((param_4 < 0) || (param_3 < param_4)) {\n    return -1;\n  }\n  iVar10 = param_3;\n  if (param_3 < iVar9) {\nLAB_000283fc:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(param_1);\n    }\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    iVar10 = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }\n  iVar9 = 8;\n  if (*(int *)(param_1 + 0x1c) << 4 < 0) {\nLAB_000283b0:\n    iVar9 = 8;\n    uVar12 = 1;\n    param_7 = (uint *)0x0;\n  }\n  else {\n    uVar12 = 1;\n    if (param_7 != (uint *)0x0) {\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }\n  }\n  piVar3 = (int *)(*(code *)PTR_malloc_0003c2b4)(iVar9);\n  if (piVar3 == (int *)0x0) {\n    return -2;\n  }\n  iVar9 = FUN_00022768(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2);\n  if (iVar9 == 0) {\n    if (param_7 != (uint *)0x0) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n      uVar11 = uVar12 + 1;\n      if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }\nLAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }\n    iVar10 = *piVar3;\n    if (param_8 != '\0') {\n      if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }\n      iVar10 = piVar3[1] - iVar10;\n    }\n  }\n  else {\n    iVar10 = -1;\n    if (iVar9 == 1) goto LAB_00028260;\nLAB_0002825c:\n    iVar10 = -2;\n  }\nLAB_00028260:\n  (*(code *)PTR_free_0003c320)(piVar3);\n  return iVar10;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (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 "int *piVar8;" (primitive_type "int") (pointer_declarator "*piVar8" (* "*") (identifier "piVar8")) (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "uint uVar12;" (type_identifier "uint") (identifier "uVar12") (; ";")) (expression_statement "iVar9 = param_4 + param_5;" (assignment_expression "iVar9 = param_4 + param_5" (identifier "iVar9") (= "=") (binary_expression "param_4 + param_5" (identifier "param_4") (+ "+") (identifier "param_5"))) (; ";")) (if_statement "if ((param_4 < 0) || (param_3 < param_4)) {\n    return -1;\n  }" (if "if") (parenthesized_expression "((param_4 < 0) || (param_3 < param_4))" (( "(") (binary_expression "(param_4 < 0) || (param_3 < param_4)" (parenthesized_expression "(param_4 < 0)" (( "(") (binary_expression "param_4 < 0" (identifier "param_4") (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_3 < param_4)" (( "(") (binary_expression "param_3 < param_4" (identifier "param_3") (< "<") (identifier "param_4")) () ")"))) () ")")) (compound_statement "{\n    return -1;\n  }" ({ "{") (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))) (expression_statement "iVar10 = param_3;" (assignment_expression "iVar10 = param_3" (identifier "iVar10") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (param_3 < iVar9) {\nLAB_000283fc:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(param_1);\n    }\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    iVar10 = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }" (if "if") (parenthesized_expression "(param_3 < iVar9)" (( "(") (binary_expression "param_3 < iVar9" (identifier "param_3") (< "<") (identifier "iVar9")) () ")")) (compound_statement "{\nLAB_000283fc:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(param_1);\n    }\n  }" ({ "{") (labeled_statement "LAB_000283fc:\n    bVar1 = *(byte *)(param_1 + 0x1c);" (statement_identifier "LAB_000283fc") (: ":") (expression_statement "bVar1 = *(byte *)(param_1 + 0x1c);" (assignment_expression "bVar1 = *(byte *)(param_1 + 0x1c)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)(param_1 + 0x1c)" (* "*") (cast_expression "(byte *)(param_1 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";"))) (expression_statement "uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;" (assignment_expression "uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2" (identifier "uVar2") (= "=") (binary_expression "((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2" (binary_expression "((uint)bVar1 << 0x1d) >> 0x1f" (parenthesized_expression "((uint)bVar1 << 0x1d)" (( "(") (binary_expression "(uint)bVar1 << 0x1d" (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) (<< "<<") (number_literal "0x1d")) () ")")) (>> ">>") (number_literal "0x1f")) (| "|") (binary_expression "bVar1 & 2" (identifier "bVar1") (& "&") (number_literal "2")))) (; ";")) (if_statement "if (((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)) {\n      rpl_re_compile_fastmap(param_1);\n    }" (if "if") (parenthesized_expression "(((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0))" (( "(") (binary_expression "((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)" (parenthesized_expression "((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0))" (( "(") (binary_expression "(param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)" (parenthesized_expression "(param_4 < iVar10)" (( "(") (binary_expression "param_4 < iVar10" (identifier "param_4") (< "<") (identifier "iVar10")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((bVar1 & 0x10) == 0)" (( "(") (binary_expression "(bVar1 & 0x10) == 0" (parenthesized_expression "(bVar1 & 0x10)" (( "(") (binary_expression "bVar1 & 0x10" (identifier "bVar1") (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      rpl_re_compile_fastmap(param_1);\n    }" ({ "{") (expression_statement "rpl_re_compile_fastmap(param_1);" (call_expression "rpl_re_compile_fastmap(param_1)" (identifier "rpl_re_compile_fastmap") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (param_5 < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    iVar10 = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }" (else "else") (compound_statement "{\n    if (param_5 < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    iVar10 = 0;\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n  }" ({ "{") (if_statement "if (param_5 < 0) {\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }" (if "if") (parenthesized_expression "(param_5 < 0)" (( "(") (binary_expression "param_5 < 0" (identifier "param_5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }" ({ "{") (if_statement "if (iVar9 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" (if "if") (parenthesized_expression "(iVar9 < 0)" (( "(") (binary_expression "iVar9 < 0" (identifier "iVar9") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" ({ "{") (expression_statement "uVar2 = (uint)*(byte *)(param_1 + 0x1c);" (assignment_expression "uVar2 = (uint)*(byte *)(param_1 + 0x1c)" (identifier "uVar2") (= "=") (binary_expression "(uint)*(byte *)(param_1 + 0x1c)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(param_1 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" (else "else") (compound_statement "{\n        iVar10 = iVar9;\n        if (iVar9 < param_4) goto LAB_000283fc;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" ({ "{") (expression_statement "iVar10 = iVar9;" (assignment_expression "iVar10 = iVar9" (identifier "iVar10") (= "=") (identifier "iVar9")) (; ";")) (if_statement "if (iVar9 < param_4) goto LAB_000283fc;" (if "if") (parenthesized_expression "(iVar9 < param_4)" (( "(") (binary_expression "iVar9 < param_4" (identifier "iVar9") (< "<") (identifier "param_4")) () ")")) (goto_statement "goto LAB_000283fc;" (goto "goto") (statement_identifier "LAB_000283fc") (; ";"))) (expression_statement "uVar2 = (uint)*(byte *)(param_1 + 0x1c);" (assignment_expression "uVar2 = (uint)*(byte *)(param_1 + 0x1c)" (identifier "uVar2") (= "=") (binary_expression "(uint)*(byte *)(param_1 + 0x1c)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(param_1 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }" (else "else") (compound_statement "{\n      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }" ({ "{") (if_statement "if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;" (if "if") (parenthesized_expression "((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9))" (( "(") (binary_expression "(iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)" (parenthesized_expression "(iVar9 < param_4)" (( "(") (binary_expression "iVar9 < param_4" (identifier "iVar9") (< "<") (identifier "param_4")) () ")")) (|| "||") (parenthesized_expression "(iVar10 = iVar9, -1 < iVar9)" (( "(") (comma_expression "iVar10 = iVar9, -1 < iVar9" (assignment_expression "iVar10 = iVar9" (identifier "iVar10") (= "=") (identifier "iVar9")) (, ",") (binary_expression "-1 < iVar9" (number_literal "-1") (< "<") (identifier "iVar9"))) () ")"))) () ")")) (goto_statement "goto LAB_000283fc;" (goto "goto") (statement_identifier "LAB_000283fc") (; ";"))) (expression_statement "uVar2 = (uint)*(byte *)(param_1 + 0x1c);" (assignment_expression "uVar2 = (uint)*(byte *)(param_1 + 0x1c)" (identifier "uVar2") (= "=") (binary_expression "(uint)*(byte *)(param_1 + 0x1c)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(param_1 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (} "}")))) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" (identifier "iVar10") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;" (assignment_expression "uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2" (identifier "uVar2") (= "=") (binary_expression "(uVar2 << 0x1d) >> 0x1f | uVar2 & 2" (binary_expression "(uVar2 << 0x1d) >> 0x1f" (parenthesized_expression "(uVar2 << 0x1d)" (( "(") (binary_expression "uVar2 << 0x1d" (identifier "uVar2") (<< "<<") (number_literal "0x1d")) () ")")) (>> ">>") (number_literal "0x1f")) (| "|") (binary_expression "uVar2 & 2" (identifier "uVar2") (& "&") (number_literal "2")))) (; ";")) (} "}")))) (expression_statement "iVar9 = 8;" (assignment_expression "iVar9 = 8" (identifier "iVar9") (= "=") (number_literal "8")) (; ";")) (if_statement "if (*(int *)(param_1 + 0x1c) << 4 < 0) {\nLAB_000283b0:\n    iVar9 = 8;\n    uVar12 = 1;\n    param_7 = (uint *)0x0;\n  }\n  else {\n    uVar12 = 1;\n    if (param_7 != (uint *)0x0) {\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1c) << 4 < 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1c) << 4 < 0" (binary_expression "*(int *)(param_1 + 0x1c) << 4" (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (<< "<<") (number_literal "4")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000283b0:\n    iVar9 = 8;\n    uVar12 = 1;\n    param_7 = (uint *)0x0;\n  }" ({ "{") (labeled_statement "LAB_000283b0:\n    iVar9 = 8;" (statement_identifier "LAB_000283b0") (: ":") (expression_statement "iVar9 = 8;" (assignment_expression "iVar9 = 8" (identifier "iVar9") (= "=") (number_literal "8")) (; ";"))) (expression_statement "uVar12 = 1;" (assignment_expression "uVar12 = 1" (identifier "uVar12") (= "=") (number_literal "1")) (; ";")) (expression_statement "param_7 = (uint *)0x0;" (assignment_expression "param_7 = (uint *)0x0" (identifier "param_7") (= "=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n    uVar12 = 1;\n    if (param_7 != (uint *)0x0) {\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }\n  }" (else "else") (compound_statement "{\n    uVar12 = 1;\n    if (param_7 != (uint *)0x0) {\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }\n  }" ({ "{") (expression_statement "uVar12 = 1;" (assignment_expression "uVar12 = 1" (identifier "uVar12") (= "=") (number_literal "1")) (; ";")) (if_statement "if (param_7 != (uint *)0x0) {\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }" (if "if") (parenthesized_expression "(param_7 != (uint *)0x0)" (( "(") (binary_expression "param_7 != (uint *)0x0" (identifier "param_7") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }\n      iVar9 = uVar12 << 3;\n    }" ({ "{") (if_statement "if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }\n      else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }" (if "if") (parenthesized_expression "(((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18)))" (( "(") (binary_expression "((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))" (parenthesized_expression "((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x1c) & 0x60) == 0x40" (parenthesized_expression "(*(byte *)(param_1 + 0x1c) & 0x60)" (( "(") (binary_expression "*(byte *)(param_1 + 0x1c) & 0x60" (pointer_expression "*(byte *)(param_1 + 0x1c)" (* "*") (cast_expression "(byte *)(param_1 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (& "&") (number_literal "0x60")) () ")")) (== "==") (number_literal "0x40")) () ")")) (&& "&&") (parenthesized_expression "(uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))" (( "(") (comma_expression "uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18)" (assignment_expression "uVar12 = *param_7" (identifier "uVar12") (= "=") (pointer_expression "*param_7" (* "*") (identifier "param_7"))) (, ",") (binary_expression "uVar12 <= *(uint *)(param_1 + 0x18)" (identifier "uVar12") (<= "<=") (pointer_expression "*(uint *)(param_1 + 0x18)" (* "*") (cast_expression "(uint *)(param_1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))))) () ")"))) () ")")) (compound_statement "{\n        if ((int)uVar12 < 1) goto LAB_000283b0;\n      }" ({ "{") (if_statement "if ((int)uVar12 < 1) goto LAB_000283b0;" (if "if") (parenthesized_expression "((int)uVar12 < 1)" (( "(") (binary_expression "(int)uVar12 < 1" (cast_expression "(int)uVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar12")) (< "<") (number_literal "1")) () ")")) (goto_statement "goto LAB_000283b0;" (goto "goto") (statement_identifier "LAB_000283b0") (; ";"))) (} "}")) (else_clause "else {\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }" (else "else") (compound_statement "{\n        uVar12 = *(uint *)(param_1 + 0x18) + 1;\n      }" ({ "{") (expression_statement "uVar12 = *(uint *)(param_1 + 0x18) + 1;" (assignment_expression "uVar12 = *(uint *)(param_1 + 0x18) + 1" (identifier "uVar12") (= "=") (binary_expression "*(uint *)(param_1 + 0x18) + 1" (pointer_expression "*(uint *)(param_1 + 0x18)" (* "*") (cast_expression "(uint *)(param_1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (expression_statement "iVar9 = uVar12 << 3;" (assignment_expression "iVar9 = uVar12 << 3" (identifier "iVar9") (= "=") (binary_expression "uVar12 << 3" (identifier "uVar12") (<< "<<") (number_literal "3"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "piVar3 = (int *)(*(code *)PTR_malloc_0003c2b4)(iVar9);" (assignment_expression "piVar3 = (int *)(*(code *)PTR_malloc_0003c2b4)(iVar9)" (identifier "piVar3") (= "=") (cast_expression "(int *)(*(code *)PTR_malloc_0003c2b4)(iVar9)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_malloc_0003c2b4)(iVar9)" (parenthesized_expression "(*(code *)PTR_malloc_0003c2b4)" (( "(") (pointer_expression "*(code *)PTR_malloc_0003c2b4" (* "*") (cast_expression "(code *)PTR_malloc_0003c2b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_0003c2b4"))) () ")")) (argument_list "(iVar9)" (( "(") (identifier "iVar9") () ")"))))) (; ";")) (if_statement "if (piVar3 == (int *)0x0) {\n    return -2;\n  }" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return -2;\n  }" ({ "{") (return_statement "return -2;" (return "return") (number_literal "-2") (; ";")) (} "}"))) (expression_statement "iVar9 = FUN_00022768(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2);" (assignment_expression "iVar9 = FUN_00022768(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2)" (identifier "iVar9") (= "=") (call_expression "FUN_00022768(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2)" (identifier "FUN_00022768") (argument_list "(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "iVar10") (, ",") (identifier "param_6") (, ",") (identifier "uVar12") (, ",") (identifier "piVar3") (, ",") (identifier "uVar2") () ")")))) (; ";")) (if_statement "if (iVar9 == 0) {\n    if (param_7 != (uint *)0x0) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n      uVar11 = uVar12 + 1;\n      if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }\nLAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }\n    iVar10 = *piVar3;\n    if (param_8 != '\0') {\n      if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }\n      iVar10 = piVar3[1] - iVar10;\n    }\n  }\n  else {\n    iVar10 = -1;\n    if (iVar9 == 1) goto LAB_00028260;\nLAB_0002825c:\n    iVar10 = -2;\n  }" (if "if") (parenthesized_expression "(iVar9 == 0)" (( "(") (binary_expression "iVar9 == 0" (identifier "iVar9") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_7 != (uint *)0x0) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n      uVar11 = uVar12 + 1;\n      if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }\nLAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }\n    iVar10 = *piVar3;\n    if (param_8 != '\0') {\n      if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }\n      iVar10 = piVar3[1] - iVar10;\n    }\n  }" ({ "{") (if_statement "if (param_7 != (uint *)0x0) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n      uVar11 = uVar12 + 1;\n      if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }\nLAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }" (if "if") (parenthesized_expression "(param_7 != (uint *)0x0)" (( "(") (binary_expression "param_7 != (uint *)0x0" (identifier "param_7") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n      uVar11 = uVar12 + 1;\n      if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }\nLAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);\n      if (iVar9 == 0) goto LAB_0002825c;\n    }" ({ "{") (expression_statement "uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;" (assignment_expression "uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e" (identifier "uVar2") (= "=") (binary_expression "(uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e" (call_expression "(uint)(*(int *)(param_1 + 0x1c) << 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_1 + 0x1c) << 1)" (( "(") (binary_expression "*(int *)(param_1 + 0x1c) << 1" (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (<< "<<") (number_literal "1")) () ")"))) (>> ">>") (number_literal "0x1e"))) (; ";")) (expression_statement "uVar11 = uVar12 + 1;" (assignment_expression "uVar11 = uVar12 + 1" (identifier "uVar11") (= "=") (binary_expression "uVar12 + 1" (identifier "uVar12") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar2 == 0) {\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }\n      else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n        param_7[1] = uVar2;\n        if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }\nLAB_00028538:\n        iVar9 = 0;\n      }" ({ "{") (expression_statement "uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);" (assignment_expression "uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_malloc_0003c2b4)(uVar11 * 4)" (parenthesized_expression "(*(code *)PTR_malloc_0003c2b4)" (( "(") (pointer_expression "*(code *)PTR_malloc_0003c2b4" (* "*") (cast_expression "(code *)PTR_malloc_0003c2b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_0003c2b4"))) () ")")) (argument_list "(uVar11 * 4)" (( "(") (binary_expression "uVar11 * 4" (identifier "uVar11") (* "*") (number_literal "4")) () ")")))) (; ";")) (expression_statement "param_7[1] = uVar2;" (assignment_expression "param_7[1] = uVar2" (subscript_expression "param_7[1]" (identifier "param_7") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (uVar2 != 0) {\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }" (if "if") (parenthesized_expression "(uVar2 != 0)" (( "(") (binary_expression "uVar2 != 0" (identifier "uVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);\n          param_7[2] = uVar4;\n          if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }\n          (*(code *)PTR_free_0003c320)(uVar2);\n        }" ({ "{") (expression_statement "uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);" (assignment_expression "uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_malloc_0003c2b4)(uVar11 * 4)" (parenthesized_expression "(*(code *)PTR_malloc_0003c2b4)" (( "(") (pointer_expression "*(code *)PTR_malloc_0003c2b4" (* "*") (cast_expression "(code *)PTR_malloc_0003c2b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_0003c2b4"))) () ")")) (argument_list "(uVar11 * 4)" (( "(") (binary_expression "uVar11 * 4" (identifier "uVar11") (* "*") (number_literal "4")) () ")")))) (; ";")) (expression_statement "param_7[2] = uVar4;" (assignment_expression "param_7[2] = uVar4" (subscript_expression "param_7[2]" (identifier "param_7") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (if_statement "if (uVar4 != 0) {\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }" (if "if") (parenthesized_expression "(uVar4 != 0)" (( "(") (binary_expression "uVar4 != 0" (identifier "uVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            *param_7 = uVar11;\n            iVar9 = 1;\n            goto LAB_000282dc;\n          }" ({ "{") (expression_statement "*param_7 = uVar11;" (assignment_expression "*param_7 = uVar11" (pointer_expression "*param_7" (* "*") (identifier "param_7")) (= "=") (identifier "uVar11")) (; ";")) (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" (identifier "iVar9") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_000282dc;" (goto "goto") (statement_identifier "LAB_000282dc") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_0003c320)(uVar2);" (call_expression "(*(code *)PTR_free_0003c320)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_0003c320)" (( "(") (pointer_expression "*(code *)PTR_free_0003c320" (* "*") (cast_expression "(code *)PTR_free_0003c320" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0003c320"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_00028538:\n        iVar9 = 0;" (statement_identifier "LAB_00028538") (: ":") (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";"))) (} "}")) (else_clause "else {\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }" (else "else") (compound_statement "{\n        if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }\nLAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }\n        if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }\n      }" ({ "{") (if_statement "if (uVar2 == 1) {\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }\n        else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }" (if "if") (parenthesized_expression "(uVar2 == 1)" (( "(") (binary_expression "uVar2 == 1" (identifier "uVar2") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n          iVar9 = 1;\n          if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }\n        }" ({ "{") (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" (identifier "iVar9") (= "=") (number_literal "1")) (; ";")) (if_statement "if (*param_7 < uVar11) {\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }" (if "if") (parenthesized_expression "(*param_7 < uVar11)" (( "(") (binary_expression "*param_7 < uVar11" (pointer_expression "*param_7" (* "*") (identifier "param_7")) (< "<") (identifier "uVar11")) () ")")) (compound_statement "{\n            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);\n            if (uVar2 == 0) goto LAB_00028538;\n            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);\n            if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }\n            param_7[1] = uVar2;\n            param_7[2] = uVar4;\n            *param_7 = uVar11;\n          }" ({ "{") (expression_statement "uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);" (assignment_expression "uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4)" (parenthesized_expression "(*(code *)PTR_realloc_0003c2b8)" (( "(") (pointer_expression "*(code *)PTR_realloc_0003c2b8" (* "*") (cast_expression "(code *)PTR_realloc_0003c2b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_realloc_0003c2b8"))) () ")")) (argument_list "(param_7[1],uVar11 * 4)" (( "(") (subscript_expression "param_7[1]" (identifier "param_7") ([ "[") (number_literal "1") (] "]")) (, ",") (binary_expression "uVar11 * 4" (identifier "uVar11") (* "*") (number_literal "4")) () ")")))) (; ";")) (if_statement "if (uVar2 == 0) goto LAB_00028538;" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00028538;" (goto "goto") (statement_identifier "LAB_00028538") (; ";"))) (expression_statement "uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);" (assignment_expression "uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4)" (parenthesized_expression "(*(code *)PTR_realloc_0003c2b8)" (( "(") (pointer_expression "*(code *)PTR_realloc_0003c2b8" (* "*") (cast_expression "(code *)PTR_realloc_0003c2b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_realloc_0003c2b8"))) () ")")) (argument_list "(param_7[2],uVar11 * 4)" (( "(") (subscript_expression "param_7[2]" (identifier "param_7") ([ "[") (number_literal "2") (] "]")) (, ",") (binary_expression "uVar11 * 4" (identifier "uVar11") (* "*") (number_literal "4")) () ")")))) (; ";")) (if_statement "if (uVar4 == 0) {\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }" (if "if") (parenthesized_expression "(uVar4 == 0)" (( "(") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              iVar9 = 0;\n              (*(code *)PTR_free_0003c320)(uVar2);\n              goto LAB_0002835c;\n            }" ({ "{") (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)PTR_free_0003c320)(uVar2);" (call_expression "(*(code *)PTR_free_0003c320)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_0003c320)" (( "(") (pointer_expression "*(code *)PTR_free_0003c320" (* "*") (cast_expression "(code *)PTR_free_0003c320" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0003c320"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (goto_statement "goto LAB_0002835c;" (goto "goto") (statement_identifier "LAB_0002835c") (; ";")) (} "}"))) (expression_statement "param_7[1] = uVar2;" (assignment_expression "param_7[1] = uVar2" (subscript_expression "param_7[1]" (identifier "param_7") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "param_7[2] = uVar4;" (assignment_expression "param_7[2] = uVar4" (subscript_expression "param_7[2]" (identifier "param_7") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "*param_7 = uVar11;" (assignment_expression "*param_7 = uVar11" (pointer_expression "*param_7" (* "*") (identifier "param_7")) (= "=") (identifier "uVar11")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }" (else "else") (compound_statement "{\n          if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n          iVar9 = 2;\n          if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }\n        }" ({ "{") (if_statement "if (uVar2 != 2) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }" (if "if") (parenthesized_expression "(uVar2 != 2)" (( "(") (binary_expression "uVar2 != 2" (identifier "uVar2") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }" ({ "{") (expression_statement "iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90);" (assignment_expression "iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90)" (identifier "iVar9") (= "=") (call_expression "(*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003c220)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_0003c220" (* "*") (cast_expression "(code *)PTR___assert_fail_0003c220" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_0003c220"))) () ")")) (argument_list "(PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,\n                               PTR_DAT_0003c108 + -0x4a90)" (( "(") (binary_expression "PTR_DAT_0003c108 + -0x4f50" (identifier "PTR_DAT_0003c108") (+ "+") (number_literal "-0x4f50")) (, ",") (binary_expression "PTR_DAT_0003c108 + -0x4fec" (identifier "PTR_DAT_0003c108") (+ "+") (number_literal "-0x4fec")) (, ",") (number_literal "0x1f8") (, ",") (binary_expression "PTR_DAT_0003c108 + -0x4a90" (identifier "PTR_DAT_0003c108") (+ "+") (number_literal "-0x4a90")) () ")")))) (; ";")) (return_statement "return iVar9;" (return "return") (identifier "iVar9") (; ";")) (} "}"))) (expression_statement "iVar9 = 2;" (assignment_expression "iVar9 = 2" (identifier "iVar9") (= "=") (number_literal "2")) (; ";")) (if_statement "if (*param_7 < uVar12) {\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }" (if "if") (parenthesized_expression "(*param_7 < uVar12)" (( "(") (binary_expression "*param_7 < uVar12" (pointer_expression "*param_7" (* "*") (identifier "param_7")) (< "<") (identifier "uVar12")) () ")")) (compound_statement "{\n            iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);\n            return iVar9;\n          }" ({ "{") (expression_statement "iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90);" (assignment_expression "iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90)" (identifier "iVar9") (= "=") (call_expression "(*(code *)PTR___assert_fail_0003c220)\n                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003c220)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_0003c220" (* "*") (cast_expression "(code *)PTR___assert_fail_0003c220" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_0003c220"))) () ")")) (argument_list "(PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,\n                               PTR_DAT_0003c108 + -0x4a90)" (( "(") (binary_expression "PTR_DAT_0003c108 + -0x4f30" (identifier "PTR_DAT_0003c108") (+ "+") (number_literal "-0x4f30")) (, ",") (binary_expression "PTR_DAT_0003c108 + -0x4fec" (identifier "PTR_DAT_0003c108") (+ "+") (number_literal "-0x4fec")) (, ",") (number_literal "0x1fa") (, ",") (binary_expression "PTR_DAT_0003c108 + -0x4a90" (identifier "PTR_DAT_0003c108") (+ "+") (number_literal "-0x4a90")) () ")")))) (; ";")) (return_statement "return iVar9;" (return "return") (identifier "iVar9") (; ";")) (} "}"))) (} "}")))) (labeled_statement "LAB_000282dc:\n        if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }" (statement_identifier "LAB_000282dc") (: ":") (if_statement "if ((int)uVar12 < 1) {\n          uVar12 = 0;\n        }\n        else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }" (if "if") (parenthesized_expression "((int)uVar12 < 1)" (( "(") (binary_expression "(int)uVar12 < 1" (cast_expression "(int)uVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar12")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n          uVar12 = 0;\n        }" ({ "{") (expression_statement "uVar12 = 0;" (assignment_expression "uVar12 = 0" (identifier "uVar12") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }" (else "else") (compound_statement "{\n          piVar5 = piVar3;\n          piVar7 = (int *)param_7[2];\n          piVar8 = (int *)param_7[1];\n          do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);\n        }" ({ "{") (expression_statement "piVar5 = piVar3;" (assignment_expression "piVar5 = piVar3" (identifier "piVar5") (= "=") (identifier "piVar3")) (; ";")) (expression_statement "piVar7 = (int *)param_7[2];" (assignment_expression "piVar7 = (int *)param_7[2]" (identifier "piVar7") (= "=") (cast_expression "(int *)param_7[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_7[2]" (identifier "param_7") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "piVar8 = (int *)param_7[1];" (assignment_expression "piVar8 = (int *)param_7[1]" (identifier "piVar8") (= "=") (cast_expression "(int *)param_7[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_7[1]" (identifier "param_7") ([ "[") (number_literal "1") (] "]")))) (; ";")) (do_statement "do {\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          } while (piVar6 != piVar3 + uVar12 * 2);" (do "do") (compound_statement "{\n            piVar6 = piVar5 + 2;\n            *piVar8 = *piVar5;\n            *piVar7 = piVar5[1];\n            piVar5 = piVar6;\n            piVar7 = piVar7 + 1;\n            piVar8 = piVar8 + 1;\n          }" ({ "{") (expression_statement "piVar6 = piVar5 + 2;" (assignment_expression "piVar6 = piVar5 + 2" (identifier "piVar6") (= "=") (binary_expression "piVar5 + 2" (identifier "piVar5") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "*piVar8 = *piVar5;" (assignment_expression "*piVar8 = *piVar5" (pointer_expression "*piVar8" (* "*") (identifier "piVar8")) (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (expression_statement "*piVar7 = piVar5[1];" (assignment_expression "*piVar7 = piVar5[1]" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (= "=") (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar5 = piVar6;" (assignment_expression "piVar5 = piVar6" (identifier "piVar5") (= "=") (identifier "piVar6")) (; ";")) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" (identifier "piVar7") (= "=") (binary_expression "piVar7 + 1" (identifier "piVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar8 = piVar8 + 1;" (assignment_expression "piVar8 = piVar8 + 1" (identifier "piVar8") (= "=") (binary_expression "piVar8 + 1" (identifier "piVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar6 != piVar3 + uVar12 * 2)" (( "(") (binary_expression "piVar6 != piVar3 + uVar12 * 2" (identifier "piVar6") (!= "!=") (binary_expression "piVar3 + uVar12 * 2" (identifier "piVar3") (+ "+") (binary_expression "uVar12 * 2" (identifier "uVar12") (* "*") (number_literal "2")))) () ")")) (; ";")) (} "}"))))) (if_statement "if (uVar12 < *param_7) {\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }" (if "if") (parenthesized_expression "(uVar12 < *param_7)" (( "(") (binary_expression "uVar12 < *param_7" (identifier "uVar12") (< "<") (pointer_expression "*param_7" (* "*") (identifier "param_7"))) () ")")) (compound_statement "{\n          uVar11 = param_7[2];\n          uVar2 = param_7[1];\n          do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);\n        }" ({ "{") (expression_statement "uVar11 = param_7[2];" (assignment_expression "uVar11 = param_7[2]" (identifier "uVar11") (= "=") (subscript_expression "param_7[2]" (identifier "param_7") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar2 = param_7[1];" (assignment_expression "uVar2 = param_7[1]" (identifier "uVar2") (= "=") (subscript_expression "param_7[1]" (identifier "param_7") ([ "[") (number_literal "1") (] "]"))) (; ";")) (do_statement "do {\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          } while (uVar12 < *param_7);" (do "do") (compound_statement "{\n            iVar10 = uVar12 * 4;\n            uVar12 = uVar12 + 1;\n            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;\n            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;\n          }" ({ "{") (expression_statement "iVar10 = uVar12 * 4;" (assignment_expression "iVar10 = uVar12 * 4" (identifier "iVar10") (= "=") (binary_expression "uVar12 * 4" (identifier "uVar12") (* "*") (number_literal "4"))) (; ";")) (expression_statement "uVar12 = uVar12 + 1;" (assignment_expression "uVar12 = uVar12 + 1" (identifier "uVar12") (= "=") (binary_expression "uVar12 + 1" (identifier "uVar12") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined4 *)(uVar11 + iVar10) = 0xffffffff;" (assignment_expression "*(undefined4 *)(uVar11 + iVar10) = 0xffffffff" (pointer_expression "*(undefined4 *)(uVar11 + iVar10)" (* "*") (cast_expression "(undefined4 *)(uVar11 + iVar10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar11 + iVar10)" (( "(") (binary_expression "uVar11 + iVar10" (identifier "uVar11") (+ "+") (identifier "iVar10")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*(undefined4 *)(uVar2 + iVar10) = 0xffffffff;" (assignment_expression "*(undefined4 *)(uVar2 + iVar10) = 0xffffffff" (pointer_expression "*(undefined4 *)(uVar2 + iVar10)" (* "*") (cast_expression "(undefined4 *)(uVar2 + iVar10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar2 + iVar10)" (( "(") (binary_expression "uVar2 + iVar10" (identifier "uVar2") (+ "+") (identifier "iVar10")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar12 < *param_7)" (( "(") (binary_expression "uVar12 < *param_7" (identifier "uVar12") (< "<") (pointer_expression "*param_7" (* "*") (identifier "param_7"))) () ")")) (; ";")) (} "}"))) (} "}")))) (labeled_statement "LAB_0002835c:\n      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);" (statement_identifier "LAB_0002835c") (: ":") (expression_statement "*(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);" (assignment_expression "*(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5)" (pointer_expression "*(byte *)(param_1 + 0x1c)" (* "*") (cast_expression "(byte *)(param_1 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "*(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5)" (binary_expression "*(byte *)(param_1 + 0x1c) & 0x9f" (pointer_expression "*(byte *)(param_1 + 0x1c)" (* "*") (cast_expression "(byte *)(param_1 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (& "&") (number_literal "0x9f")) (| "|") (call_expression "(byte)(iVar9 << 5)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(iVar9 << 5)" (( "(") (binary_expression "iVar9 << 5" (identifier "iVar9") (<< "<<") (number_literal "5")) () ")"))))) (; ";"))) (if_statement "if (iVar9 == 0) goto LAB_0002825c;" (if "if") (parenthesized_expression "(iVar9 == 0)" (( "(") (binary_expression "iVar9 == 0" (identifier "iVar9") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0002825c;" (goto "goto") (statement_identifier "LAB_0002825c") (; ";"))) (} "}"))) (expression_statement "iVar10 = *piVar3;" (assignment_expression "iVar10 = *piVar3" (identifier "iVar10") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (if_statement "if (param_8 != '\0') {\n      if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }\n      iVar10 = piVar3[1] - iVar10;\n    }" (if "if") (parenthesized_expression "(param_8 != '\0')" (( "(") (binary_expression "param_8 != '\0'" (identifier "param_8") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }\n      iVar10 = piVar3[1] - iVar10;\n    }" ({ "{") (if_statement "if (param_4 != iVar10) {\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }" (if "if") (parenthesized_expression "(param_4 != iVar10)" (( "(") (binary_expression "param_4 != iVar10" (identifier "param_4") (!= "!=") (identifier "iVar10")) () ")")) (compound_statement "{\n        iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);\n        return iVar9;\n      }" ({ "{") (expression_statement "iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80);" (assignment_expression "iVar9 = (*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80)" (identifier "iVar9") (= "=") (call_expression "(*(code *)PTR___assert_fail_0003c220)\n                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003c220)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_0003c220" (* "*") (cast_expression "(code *)PTR___assert_fail_0003c220" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_0003c220"))) () ")")) (argument_list "(PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,\n                           PTR_DAT_0003c108 + -0x4a80)" (( "(") (binary_expression "PTR_DAT_0003c108 + -0x4f18" (identifier "PTR_DAT_0003c108") (+ "+") (number_literal "-0x4f18")) (, ",") (binary_expression "PTR_DAT_0003c108 + -0x4fec" (identifier "PTR_DAT_0003c108") (+ "+") (number_literal "-0x4fec")) (, ",") (number_literal "0x1bd") (, ",") (binary_expression "PTR_DAT_0003c108 + -0x4a80" (identifier "PTR_DAT_0003c108") (+ "+") (number_literal "-0x4a80")) () ")")))) (; ";")) (return_statement "return iVar9;" (return "return") (identifier "iVar9") (; ";")) (} "}"))) (expression_statement "iVar10 = piVar3[1] - iVar10;" (assignment_expression "iVar10 = piVar3[1] - iVar10" (identifier "iVar10") (= "=") (binary_expression "piVar3[1] - iVar10" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (- "-") (identifier "iVar10"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar10 = -1;\n    if (iVar9 == 1) goto LAB_00028260;\nLAB_0002825c:\n    iVar10 = -2;\n  }" (else "else") (compound_statement "{\n    iVar10 = -1;\n    if (iVar9 == 1) goto LAB_00028260;\nLAB_0002825c:\n    iVar10 = -2;\n  }" ({ "{") (expression_statement "iVar10 = -1;" (assignment_expression "iVar10 = -1" (identifier "iVar10") (= "=") (number_literal "-1")) (; ";")) (if_statement "if (iVar9 == 1) goto LAB_00028260;" (if "if") (parenthesized_expression "(iVar9 == 1)" (( "(") (binary_expression "iVar9 == 1" (identifier "iVar9") (== "==") (number_literal "1")) () ")")) (goto_statement "goto LAB_00028260;" (goto "goto") (statement_identifier "LAB_00028260") (; ";"))) (labeled_statement "LAB_0002825c:\n    iVar10 = -2;" (statement_identifier "LAB_0002825c") (: ":") (expression_statement "iVar10 = -2;" (assignment_expression "iVar10 = -2" (identifier "iVar10") (= "=") (number_literal "-2")) (; ";"))) (} "}")))) (labeled_statement "LAB_00028260:\n  (*(code *)PTR_free_0003c320)(piVar3);" (statement_identifier "LAB_00028260") (: ":") (expression_statement "(*(code *)PTR_free_0003c320)(piVar3);" (call_expression "(*(code *)PTR_free_0003c320)(piVar3)" (parenthesized_expression "(*(code *)PTR_free_0003c320)" (( "(") (pointer_expression "*(code *)PTR_free_0003c320" (* "*") (cast_expression "(code *)PTR_free_0003c320" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0003c320"))) () ")")) (argument_list "(piVar3)" (( "(") (identifier "piVar3") () ")"))) (; ";"))) (return_statement "return iVar10;" (return "return") (identifier "iVar10") (; ";")) (} "}")))

type_1 function_1(type_2 *bufp,char *string,type_3 var_3,type_3 var_1,type_1 var_2,
                       type_3 stop,type_4 *var_9,type_5 ret_len)

{
  type_6 var_5;
  type_7 var_8;
  type_8 *var_11;
  type_9 var_13;
  type_8 *var_19;
  type_8 *var_20;
  type_1 *var_16;
  type_1 *var_17;
  type_1 var_21;
  int var_4;
  int var_6;
  type_7 var_15;
  type_7 var_10;
  
  var_4 = var_1 + var_2;
  if ((var_1 < 0) || (var_3 < var_1)) {
    return -1;
  }
  var_6 = var_3;
  if (var_3 < var_4) {
LAB_000283fc:
    var_5 = bufp->field_0x1c;
    var_8 = ((type_7)var_5 << 0x1d) >> 0x1f | var_5 & 2;
    if (((var_1 < var_6) && (bufp->fastmap != (char *)0x0)) && ((var_5 & 0x10) == 0)) {
      var_7(bufp);
    }
  }
  else {
    if (var_2 < 0) {
      if (var_4 < 0) {
        var_8 = (type_7)(type_6)bufp->field_0x1c;
      }
      else {
        var_6 = var_4;
        if (var_4 < var_1) goto LAB_000283fc;
        var_8 = (type_7)(type_6)bufp->field_0x1c;
      }
    }
    else {
      if ((var_4 < var_1) || (var_6 = var_4, -1 < var_4)) goto LAB_000283fc;
      var_8 = (type_7)(type_6)bufp->field_0x1c;
    }
    var_6 = 0;
    var_8 = (var_8 << 0x1d) >> 0x1f | var_8 & 2;
  }
  var_4 = 8;
  if (*(int *)&bufp->field_0x1c << 4 < 0) {
LAB_000283b0:
    var_4 = 8;
    var_10 = 1;
    var_9 = (type_4 *)0x0;
  }
  else {
    var_10 = 1;
    if (var_9 != (type_4 *)0x0) {
      if (((bufp->field_0x1c & 0x60) == 0x40) && (var_10 = var_9->num_regs, var_10 <= bufp->re_nsub))
      {
        if ((int)var_10 < 1) goto LAB_000283b0;
      }
      else {
        var_10 = bufp->re_nsub + 1;
      }
      var_4 = var_10 << 3;
    }
  }
  var_11 = (type_8 *)(*(type_10 *)PTR_malloc_0003c2b4)(var_4);
  if (var_11 == (type_8 *)0x0) {
    return -2;
  }
  var_13 = var_12(bufp,string,var_3,var_1,var_6,stop,var_10,var_11,var_8);
  if (var_13 == var_14) {
    if (var_9 != (type_4 *)0x0) {
      var_8 = (type_7)(*(int *)&bufp->field_0x1c << 1) >> 0x1e;
      var_15 = var_10 + 1;
      if (var_8 == 0) {
        var_16 = (type_1 *)(*(type_10 *)PTR_malloc_0003c2b4)(var_15 * 4);
        var_9->var_1 = var_16;
        if (var_16 != (type_1 *)0x0) {
          var_17 = (type_1 *)(*(type_10 *)PTR_malloc_0003c2b4)(var_15 * 4);
          var_9->end = var_17;
          if (var_17 != (type_1 *)0x0) {
            var_9->num_regs = var_15;
            var_4 = 1;
            goto LAB_000282dc;
          }
          (*(type_10 *)PTR_free_0003c320)(var_16);
        }
LAB_00028538:
        var_4 = 0;
      }
      else {
        if (var_8 == 1) {
          var_4 = 1;
          if (var_9->num_regs < var_15) {
            var_16 = (type_1 *)(*(type_10 *)PTR_realloc_0003c2b8)(var_9->var_1,var_15 * 4);
            if (var_16 == (type_1 *)0x0) goto LAB_00028538;
            var_17 = (type_1 *)(*(type_10 *)PTR_realloc_0003c2b8)(var_9->end,var_15 * 4);
            if (var_17 == (type_1 *)0x0) {
              var_4 = 0;
              (*(type_10 *)PTR_free_0003c320)(var_16);
              goto LAB_0002835c;
            }
            var_9->var_1 = var_16;
            var_9->end = var_17;
            var_9->num_regs = var_15;
          }
        }
        else {
          if (var_8 != 2) {
            var_21 = (*(type_10 *)PTR___assert_fail_0003c220)
                              (var_18 + -0x4f50,var_18 + -0x4fec,0x1f8,
                               var_18 + -0x4a90);
            return var_21;
          }
          var_4 = 2;
          if (var_9->num_regs < var_10) {
            var_21 = (*(type_10 *)PTR___assert_fail_0003c220)
                              (var_18 + -0x4f30,var_18 + -0x4fec,0x1fa,
                               var_18 + -0x4a90);
            return var_21;
          }
        }
LAB_000282dc:
        if ((int)var_10 < 1) {
          var_10 = 0;
        }
        else {
          var_19 = var_11;
          var_16 = var_9->end;
          var_17 = var_9->var_1;
          do {
            var_20 = var_19 + 1;
            *var_17 = var_19->rm_so;
            *var_16 = var_19->rm_eo;
            var_19 = var_20;
            var_16 = var_16 + 1;
            var_17 = var_17 + 1;
          } while (var_20 != var_11 + var_10);
        }
        if (var_10 < var_9->num_regs) {
          var_17 = var_9->end;
          var_16 = var_9->var_1;
          do {
            var_8 = var_10 + 1;
            var_17[var_10] = -1;
            var_16[var_10] = -1;
            var_10 = var_8;
          } while (var_8 < var_9->num_regs);
        }
      }
LAB_0002835c:
      bufp->field_0x1c = bufp->field_0x1c & 0x9f | (type_6)(var_4 << 5);
      if (var_4 == 0) goto LAB_0002825c;
    }
    var_21 = var_11->rm_so;
    if (ret_len) {
      if (var_1 != var_21) {
        var_21 = (*(type_10 *)PTR___assert_fail_0003c220)
                          (var_18 + -0x4f18,var_18 + -0x4fec,0x1bd,
                           var_18 + -0x4a80);
        return var_21;
      }
      var_21 = var_11->rm_eo - var_21;
    }
  }
  else {
    var_21 = -1;
    if (var_13 == var_22) goto LAB_00028260;
LAB_0002825c:
    var_21 = -2;
  }
LAB_00028260:
  (*(type_10 *)PTR_free_0003c320)(var_11);
  return var_21;
}


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

int MASKED(int param_1,undefined4 param_2,int param_3,int param_4,int param_5,
                undefined4 param_6,uint *param_7,char param_8)

{
  byte bVar1;
  uint uVar2;
  int *piVar3;
  uint uVar4;
  int *piVar5;
  int *piVar6;
  int *piVar7;
  int *piVar8;
  int iVar9;
  int iVar10;
  uint uVar11;
  uint uVar12;
  
  iVar9 = param_4 + param_5;
  if ((param_4 < 0) || (param_3 < param_4)) {
    return -1;
  }
  iVar10 = param_3;
  if (param_3 < iVar9) {
LAB_000283fc:
    bVar1 = *(byte *)(param_1 + 0x1c);
    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;
    if (((param_4 < iVar10) && (*(int *)(param_1 + 0x10) != 0)) && ((bVar1 & 0x10) == 0)) {
      rpl_re_compile_fastmap(param_1);
    }
  }
  else {
    if (param_5 < 0) {
      if (iVar9 < 0) {
        uVar2 = (uint)*(byte *)(param_1 + 0x1c);
      }
      else {
        iVar10 = iVar9;
        if (iVar9 < param_4) goto LAB_000283fc;
        uVar2 = (uint)*(byte *)(param_1 + 0x1c);
      }
    }
    else {
      if ((iVar9 < param_4) || (iVar10 = iVar9, -1 < iVar9)) goto LAB_000283fc;
      uVar2 = (uint)*(byte *)(param_1 + 0x1c);
    }
    iVar10 = 0;
    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;
  }
  iVar9 = 8;
  if (*(int *)(param_1 + 0x1c) << 4 < 0) {
LAB_000283b0:
    iVar9 = 8;
    uVar12 = 1;
    param_7 = (uint *)0x0;
  }
  else {
    uVar12 = 1;
    if (param_7 != (uint *)0x0) {
      if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&
         (uVar12 = *param_7, uVar12 <= *(uint *)(param_1 + 0x18))) {
        if ((int)uVar12 < 1) goto LAB_000283b0;
      }
      else {
        uVar12 = *(uint *)(param_1 + 0x18) + 1;
      }
      iVar9 = uVar12 << 3;
    }
  }
  piVar3 = (int *)(*(code *)PTR_malloc_0003c2b4)(iVar9);
  if (piVar3 == (int *)0x0) {
    return -2;
  }
  iVar9 = FUN_00022768(param_1,param_2,param_3,param_4,iVar10,param_6,uVar12,piVar3,uVar2);
  if (iVar9 == 0) {
    if (param_7 != (uint *)0x0) {
      uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;
      uVar11 = uVar12 + 1;
      if (uVar2 == 0) {
        uVar2 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);
        param_7[1] = uVar2;
        if (uVar2 != 0) {
          uVar4 = (*(code *)PTR_malloc_0003c2b4)(uVar11 * 4);
          param_7[2] = uVar4;
          if (uVar4 != 0) {
            *param_7 = uVar11;
            iVar9 = 1;
            goto LAB_000282dc;
          }
          (*(code *)PTR_free_0003c320)(uVar2);
        }
LAB_00028538:
        iVar9 = 0;
      }
      else {
        if (uVar2 == 1) {
          iVar9 = 1;
          if (*param_7 < uVar11) {
            uVar2 = (*(code *)PTR_realloc_0003c2b8)(param_7[1],uVar11 * 4);
            if (uVar2 == 0) goto LAB_00028538;
            uVar4 = (*(code *)PTR_realloc_0003c2b8)(param_7[2],uVar11 * 4);
            if (uVar4 == 0) {
              iVar9 = 0;
              (*(code *)PTR_free_0003c320)(uVar2);
              goto LAB_0002835c;
            }
            param_7[1] = uVar2;
            param_7[2] = uVar4;
            *param_7 = uVar11;
          }
        }
        else {
          if (uVar2 != 2) {
            iVar9 = (*(code *)PTR___assert_fail_0003c220)
                              (PTR_DAT_0003c108 + -0x4f50,PTR_DAT_0003c108 + -0x4fec,0x1f8,
                               PTR_DAT_0003c108 + -0x4a90);
            return iVar9;
          }
          iVar9 = 2;
          if (*param_7 < uVar12) {
            iVar9 = (*(code *)PTR___assert_fail_0003c220)
                              (PTR_DAT_0003c108 + -0x4f30,PTR_DAT_0003c108 + -0x4fec,0x1fa,
                               PTR_DAT_0003c108 + -0x4a90);
            return iVar9;
          }
        }
LAB_000282dc:
        if ((int)uVar12 < 1) {
          uVar12 = 0;
        }
        else {
          piVar5 = piVar3;
          piVar7 = (int *)param_7[2];
          piVar8 = (int *)param_7[1];
          do {
            piVar6 = piVar5 + 2;
            *piVar8 = *piVar5;
            *piVar7 = piVar5[1];
            piVar5 = piVar6;
            piVar7 = piVar7 + 1;
            piVar8 = piVar8 + 1;
          } while (piVar6 != piVar3 + uVar12 * 2);
        }
        if (uVar12 < *param_7) {
          uVar11 = param_7[2];
          uVar2 = param_7[1];
          do {
            iVar10 = uVar12 * 4;
            uVar12 = uVar12 + 1;
            *(undefined4 *)(uVar11 + iVar10) = 0xffffffff;
            *(undefined4 *)(uVar2 + iVar10) = 0xffffffff;
          } while (uVar12 < *param_7);
        }
      }
LAB_0002835c:
      *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(iVar9 << 5);
      if (iVar9 == 0) goto LAB_0002825c;
    }
    iVar10 = *piVar3;
    if (param_8 != '\0') {
      if (param_4 != iVar10) {
        iVar9 = (*(code *)PTR___assert_fail_0003c220)
                          (PTR_DAT_0003c108 + -0x4f18,PTR_DAT_0003c108 + -0x4fec,0x1bd,
                           PTR_DAT_0003c108 + -0x4a80);
        return iVar9;
      }
      iVar10 = piVar3[1] - iVar10;
    }
  }
  else {
    iVar10 = -1;
    if (iVar9 == 1) goto LAB_00028260;
LAB_0002825c:
    iVar10 = -2;
  }
LAB_00028260:
  (*(code *)PTR_free_0003c320)(piVar3);
  return iVar10;
}

