
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;
  regoff_t *prVar4;
  regoff_t *prVar5;
  uint nmatch;
  regoff_t rVar6;
  int iVar7;
  int last_start;
  uint uVar8;
  
  iVar7 = start + range;
  if (start < 0) {
    return -1;
  }
  if (length < start) {
    return -1;
  }
  last_start = length;
  if (length < iVar7) {
LAB_000297a0:
    bVar1 = bufp->field_0x1c;
    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;
    if (((last_start <= start) || (bufp->fastmap == (char *)0x0)) || ((bVar1 & 0x10) != 0))
    goto LAB_000297d0;
    rpl_re_compile_fastmap(bufp);
    iVar7 = *(int *)&bufp->field_0x1c;
  }
  else {
    if (range < 0) {
      if (iVar7 < 0) {
        uVar2 = (uint)(byte)bufp->field_0x1c;
      }
      else {
        last_start = iVar7;
        if (iVar7 < start) goto LAB_000297a0;
        uVar2 = (uint)(byte)bufp->field_0x1c;
      }
    }
    else {
      if ((iVar7 < start) || (last_start = iVar7, -1 < iVar7)) goto LAB_000297a0;
      uVar2 = (uint)(byte)bufp->field_0x1c;
    }
    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;
    last_start = 0;
LAB_000297d0:
    iVar7 = *(int *)&bufp->field_0x1c;
  }
  nmatch = 1;
  if (iVar7 << 4 < 0) {
    regs = (re_registers *)0x0;
  }
  else if (regs == (re_registers *)0x0) {
    nmatch = 1;
  }
  else if (((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub)
          ) {
    if ((int)nmatch < 1) {
      nmatch = 1;
      regs = (re_registers *)0x0;
    }
  }
  else {
    nmatch = bufp->re_nsub + 1;
  }
  pmatch = (regmatch_t *)(*(code *)PTR_malloc_0003e2b4)(nmatch << 3);
  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) {
    rVar6 = -2;
    if (rVar3 == _REG_NOMATCH) {
      rVar6 = -1;
    }
    goto LAB_00029878;
  }
  if (regs != (re_registers *)0x0) {
    uVar2 = (uint)(*(int *)&bufp->field_0x1c << 1) >> 0x1e;
    uVar8 = nmatch + 1;
    if (uVar2 == 0) {
      prVar4 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);
      regs->start = prVar4;
      if (prVar4 == (regoff_t *)0x0) {
        uVar2 = 0;
      }
      else {
        prVar5 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);
        regs->end = prVar5;
        if (prVar5 != (regoff_t *)0x0) {
          regs->num_regs = uVar8;
          uVar2 = 1;
          goto LAB_00029958;
        }
        (*(code *)PTR_free_0003e320)(prVar4);
        uVar2 = 0;
      }
      goto LAB_000299d8;
    }
    if (uVar2 == 1) {
      if (uVar8 <= regs->num_regs) goto LAB_00029958;
      prVar4 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->start,uVar8 * 4);
      if (prVar4 == (regoff_t *)0x0) {
        uVar2 = 0;
      }
      else {
        prVar5 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->end,uVar8 * 4);
        if (prVar5 != (regoff_t *)0x0) {
          regs->start = prVar4;
          regs->end = prVar5;
          regs->num_regs = uVar8;
          goto LAB_00029958;
        }
        (*(code *)PTR_free_0003e320)(prVar4);
        uVar2 = 0;
      }
    }
    else {
      if (uVar2 != 2) {
        rVar6 = (*(code *)PTR___assert_fail_0003e220)
                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,
                           PTR_DAT_0003e108 + -0x33f0);
        return rVar6;
      }
      if (regs->num_regs < nmatch) {
        rVar6 = (*(code *)PTR___assert_fail_0003e220)
                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,
                           PTR_DAT_0003e108 + -0x33f0);
        return rVar6;
      }
LAB_00029958:
      if ((int)nmatch < 1) {
        nmatch = 0;
      }
      else {
        prVar4 = &pmatch->rm_eo;
        iVar7 = 0;
        do {
          *(regoff_t *)((int)regs->start + iVar7) = ((regmatch_t *)(prVar4 + -1))->rm_so;
          *(regoff_t *)((int)regs->end + iVar7) = *prVar4;
          iVar7 = iVar7 + 4;
          prVar4 = prVar4 + 2;
        } while (iVar7 != nmatch << 2);
      }
      if (nmatch < regs->num_regs) {
        do {
          regs->end[nmatch] = -1;
          regs->start[nmatch] = -1;
          nmatch = nmatch + 1;
        } while (nmatch < regs->num_regs);
      }
    }
LAB_000299d8:
    bufp->field_0x1c = bufp->field_0x1c & 0x9f | (byte)(uVar2 << 5);
    if (uVar2 == 0) {
      rVar6 = -2;
      goto LAB_00029878;
    }
  }
  if (ret_len) {
    if (pmatch->rm_so != start) {
      rVar6 = (*(code *)PTR___assert_fail_0003e220)
                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,
                         PTR_DAT_0003e108 + -0x33e0);
      return rVar6;
    }
    rVar6 = pmatch->rm_eo - start;
  }
  else {
    rVar6 = pmatch->rm_so;
  }
LAB_00029878:
  (*(code *)PTR_free_0003e320)(pmatch);
  return rVar6;
}



int FUN_000296dc(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;
  uint uVar5;
  int *piVar6;
  uint uVar7;
  int iVar8;
  int iVar9;
  uint uVar10;
  
  iVar8 = param_4 + param_5;
  if (param_4 < 0) {
    return -1;
  }
  if (param_3 < param_4) {
    return -1;
  }
  iVar9 = param_3;
  if (param_3 < iVar8) {
LAB_000297a0:
    bVar1 = *(byte *)(param_1 + 0x1c);
    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;
    if (((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))
    goto LAB_000297d0;
    rpl_re_compile_fastmap(param_1);
    iVar8 = *(int *)(param_1 + 0x1c);
  }
  else {
    if (param_5 < 0) {
      if (iVar8 < 0) {
        uVar2 = (uint)*(byte *)(param_1 + 0x1c);
      }
      else {
        iVar9 = iVar8;
        if (iVar8 < param_4) goto LAB_000297a0;
        uVar2 = (uint)*(byte *)(param_1 + 0x1c);
      }
    }
    else {
      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;
      uVar2 = (uint)*(byte *)(param_1 + 0x1c);
    }
    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;
    iVar9 = 0;
LAB_000297d0:
    iVar8 = *(int *)(param_1 + 0x1c);
  }
  uVar7 = 1;
  if (iVar8 << 4 < 0) {
    param_7 = (uint *)0x0;
  }
  else if (param_7 == (uint *)0x0) {
    uVar7 = 1;
  }
  else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&
          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {
    if ((int)uVar7 < 1) {
      uVar7 = 1;
      param_7 = (uint *)0x0;
    }
  }
  else {
    uVar7 = *(int *)(param_1 + 0x18) + 1;
  }
  piVar3 = (int *)(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3);
  if (piVar3 == (int *)0x0) {
    return -2;
  }
  iVar8 = FUN_00027cb0(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2);
  if (iVar8 != 0) {
    param_4 = -2;
    if (iVar8 == 1) {
      param_4 = -1;
    }
    goto LAB_00029878;
  }
  if (param_7 != (uint *)0x0) {
    uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;
    uVar10 = uVar7 + 1;
    if (uVar2 == 0) {
      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);
      param_7[1] = uVar2;
      if (uVar2 == 0) {
        uVar2 = 0;
      }
      else {
        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);
        param_7[2] = uVar4;
        if (uVar4 != 0) {
          *param_7 = uVar10;
          uVar2 = 1;
          goto LAB_00029958;
        }
        (*(code *)PTR_free_0003e320)(uVar2);
        uVar2 = 0;
      }
      goto LAB_000299d8;
    }
    if (uVar2 == 1) {
      if (uVar10 <= *param_7) goto LAB_00029958;
      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);
      if (uVar4 == 0) {
        uVar2 = 0;
      }
      else {
        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);
        if (uVar5 != 0) {
          param_7[1] = uVar4;
          param_7[2] = uVar5;
          *param_7 = uVar10;
          goto LAB_00029958;
        }
        (*(code *)PTR_free_0003e320)(uVar4);
        uVar2 = 0;
      }
    }
    else {
      if (uVar2 != 2) {
        iVar8 = (*(code *)PTR___assert_fail_0003e220)
                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,
                           PTR_DAT_0003e108 + -0x33f0);
        return iVar8;
      }
      if (*param_7 < uVar7) {
        iVar8 = (*(code *)PTR___assert_fail_0003e220)
                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,
                           PTR_DAT_0003e108 + -0x33f0);
        return iVar8;
      }
LAB_00029958:
      if ((int)uVar7 < 1) {
        uVar7 = 0;
      }
      else {
        piVar6 = piVar3 + 1;
        iVar8 = 0;
        do {
          *(int *)(param_7[1] + iVar8) = piVar6[-1];
          *(int *)(param_7[2] + iVar8) = *piVar6;
          iVar8 = iVar8 + 4;
          piVar6 = piVar6 + 2;
        } while (iVar8 != uVar7 << 2);
      }
      if (uVar7 < *param_7) {
        do {
          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;
          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;
          uVar7 = uVar7 + 1;
        } while (uVar7 < *param_7);
      }
    }
LAB_000299d8:
    *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);
    if (uVar2 == 0) {
      param_4 = -2;
      goto LAB_00029878;
    }
  }
  if (param_8 == '\0') {
    param_4 = *piVar3;
  }
  else {
    if (*piVar3 != param_4) {
      iVar8 = (*(code *)PTR___assert_fail_0003e220)
                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,
                         PTR_DAT_0003e108 + -0x33e0);
      return iVar8;
    }
    param_4 = piVar3[1] - param_4;
  }
LAB_00029878:
  (*(code *)PTR_free_0003e320)(piVar3);
  return param_4;
}


lui gp,0x2
addiu gp,gp,-0x360c
addu gp,gp,t9
addiu sp,sp,-0x68
sw ra,0x64(sp)
sw s8,0x60(sp)
sw s7,0x5c(sp)
sw s6,0x58(sp)
sw s5,0x54(sp)
sw s4,0x50(sp)
sw s3,0x4c(sp)
sw s2,0x48(sp)
sw s1,0x44(sp)
sw s0,0x40(sp)
sw gp,0x28(sp)
lw v0,0x78(sp)
lw s2,0x80(sp)
lbu s8,0x87(sp)
bltz a3,0x00029b84
_addu s5,a3,v0
slt v1,a2,a3
bne v1,zero,0x00029b8c
_or s4,a2,zero
or s1,a3,zero
sw a1,0x34(sp)
slt v1,a2,s5
bne v1,zero,0x0002979c
_or s3,a0,zero
bgez v0,0x00029774
_slt v0,s5,a3
bgez s5,0x0002978c
_slt v0,s5,s1
lbu v0,0x1c(s3)
ext s7,v0,0x2,0x1
andi v0,v0,0x2
or s7,s7,v0
b 0x000297d0
_or s5,zero,zero
bne v0,zero,0x000298c0
_nop
bgez s5,0x000297a0
_nop
b 0x00029760
_lbu v0,0x1c(s3)
bne v0,zero,0x000297a0
_nop
b 0x00029760
_lbu v0,0x1c(s3)
or s5,a2,zero
lbu v0,0x1c(s3)
ext s7,v0,0x2,0x1
andi v1,v0,0x2
or s7,s7,v1
slt v1,s1,s5
beq v1,zero,0x000297d0
_nop
lw v1,0x10(s3)
beq v1,zero,0x000297d0
_andi v0,v0,0x10
beq v0,zero,0x000298c8
_or a0,s3,zero
lw v0,0x1c(s3)
ext v0,v0,0x1b,0x1
bne v0,zero,0x00029908
_li s0,0x1
beq s2,zero,0x00029910
_li v1,0x40
lbu v0,0x1c(s3)
andi v0,v0,0x60
beq v0,v1,0x000298e0
_nop
lw s0,0x18(s3)
addiu s0,s0,0x1
sw s0,0x38(sp)
sll a0,s0,0x3
lw t9,-0x7e1c(gp)
jalr t9
_nop
lw gp,0x28(sp)
beq v0,zero,0x00029b94
_or s6,v0,zero
sw s7,0x20(sp)
sw v0,0x1c(sp)
sw s0,0x18(sp)
lw v0,0x7c(sp)
sw v0,0x14(sp)
sw s5,0x10(sp)
or a3,s1,zero
or a2,s4,zero
lw a1,0x34(sp)
or a0,s3,zero
lw t9,-0x7ee8(gp)
addiu t9,t9,0x7cb0
bal 0x00027cb0
_nop
lw gp,0x28(sp)
beq v0,zero,0x00029918
_or s4,v0,zero
xori s1,v0,0x1
li a3,-0x1
li s4,-0x2
movz s4,a3,s1
or s1,s4,zero
or a0,s6,zero
lw t9,-0x7db0(gp)
jalr t9
_nop
lw gp,0x28(sp)
or v0,s1,zero
lw ra,0x64(sp)
lw s8,0x60(sp)
lw s7,0x5c(sp)
lw s6,0x58(sp)
lw s5,0x54(sp)
lw s4,0x50(sp)
lw s3,0x4c(sp)
lw s2,0x48(sp)
lw s1,0x44(sp)
lw s0,0x40(sp)
jr ra
_addiu sp,sp,0x68
b 0x000297a0
_or s5,a2,zero
lw t9,-0x7ee0(gp)
bal 0x000295cc
_nop
lw gp,0x28(sp)
b 0x000297d4
_lw v0,0x1c(s3)
lw s0,0x0(s2)
lw v0,0x18(s3)
sltu v0,v0,s0
bne v0,zero,0x000297f8
_nop
bgtz s0,0x00029800
_nop
li s0,0x1
b 0x00029800
_or s2,zero,zero
b 0x00029800
_or s2,zero,zero
b 0x00029800
_li s0,0x1
beq s2,zero,0x000299f0
_nop
lw s5,0x1c(s3)
ext s5,s5,0x1d,0x2
beq s5,zero,0x00029a00
_addiu s7,s0,0x1
li v0,0x1
beq s5,v0,0x00029a6c
_li v0,0x2
bne s5,v0,0x00029aec
_lw a3,-0x7fc8(gp)
lw v0,0x0(s2)
lw v1,0x38(sp)
sltu v0,v0,v1
bne v0,zero,0x00029b10
_addiu a3,a3,-0x33f0
blez s0,0x00029b30
_lw v0,0x38(sp)
addiu v1,s6,0x4
sll a1,v0,0x2
or v0,zero,zero
lw a2,-0x4(v1)
lw a0,0x4(s2)
addu a0,a0,v0
sw a2,0x0(a0)
lw a2,0x0(v1)
lw a0,0x8(s2)
addu a0,a0,v0
sw a2,0x0(a0)
addiu v0,v0,0x4
bne v0,a1,0x0002996c
_addiu v1,v1,0x8
lw v0,0x0(s2)
sltu v0,s0,v0
beq v0,zero,0x000299d8
_sll a0,s0,0x2
li a1,-0x1
lw v1,0x8(s2)
addu v1,v1,a0
sw a1,0x0(v1)
lw v0,0x4(s2)
addu v0,v0,a0
sw a1,0x0(v0)
addiu s0,s0,0x1
lw v0,0x0(s2)
sltu v0,s0,v0
bne v0,zero,0x000299ac
_sll a0,s0,0x2
lbu v0,0x1c(s3)
ins v0,s5,0x5,0x2
sb v0,0x1c(s3)
andi v0,v0,0x60
beq v0,zero,0x00029b9c
_nop
bne s8,zero,0x00029b48
_nop
b 0x00029878
_lw s1,0x0(s6)
sll v0,s7,0x2
sw v0,0x34(sp)
or a0,v0,zero
lw t9,-0x7e1c(gp)
jalr t9
_nop
lw gp,0x28(sp)
or s5,v0,zero
beq v0,zero,0x00029b38
_sw v0,0x4(s2)
lw a0,0x34(sp)
lw t9,-0x7e1c(gp)
jalr t9
_nop
lw gp,0x28(sp)
beq v0,zero,0x00029a50
_sw v0,0x8(s2)
sw s7,0x0(s2)
b 0x00029958
_li s5,0x1
or a0,s5,zero
lw t9,-0x7db0(gp)
jalr t9
_nop
lw gp,0x28(sp)
b 0x000299d8
_or s5,zero,zero
lw v0,0x0(s2)
sltu v0,v0,s7
beq v0,zero,0x00029958
_sll v0,s7,0x2
sw v0,0x34(sp)
or a1,v0,zero
lw a0,0x4(s2)
lw t9,-0x7e18(gp)
jalr t9
_nop
lw gp,0x28(sp)
beq v0,zero,0x00029b40
_sw v0,0x3c(sp)
lw a1,0x34(sp)
lw a0,0x8(s2)
lw t9,-0x7e18(gp)
jalr t9
_nop
lw gp,0x28(sp)
beq v0,zero,0x00029ad0
_lw v1,0x3c(sp)
sw v1,0x4(s2)
sw v0,0x8(s2)
b 0x00029958
_sw s7,0x0(s2)
lw a0,0x3c(sp)
lw t9,-0x7db0(gp)
jalr t9
_nop
lw gp,0x28(sp)
b 0x000299d8
_or s5,zero,zero
addiu a3,a3,-0x33f0
li a2,0x1f8
lw a1,-0x7fc8(gp)
addiu a1,a1,-0x3140
lw a0,-0x7fc8(gp)
addiu a0,a0,-0x30a4
lw t9,-0x7eb0(gp)
jalr t9
_nop
li a2,0x1fa
lw a1,-0x7fc8(gp)
addiu a1,a1,-0x3140
lw a0,-0x7fc8(gp)
addiu a0,a0,-0x3084
lw t9,-0x7eb0(gp)
jalr t9
_nop
b 0x00029998
_or s0,s4,zero
b 0x000299d8
_or s5,zero,zero
b 0x000299d8
_or s5,zero,zero
lw v0,0x0(s6)
bne v0,s1,0x00029b60
_lw a3,-0x7fc8(gp)
lw s4,0x4(s6)
b 0x00029878
_subu s1,s4,s1
addiu a3,a3,-0x33e0
li a2,0x1bd
lw a1,-0x7fc8(gp)
addiu a1,a1,-0x3140
lw a0,-0x7fc8(gp)
addiu a0,a0,-0x306c
lw t9,-0x7eb0(gp)
jalr t9
_nop
b 0x0002988c
_li s1,-0x1
b 0x0002988c
_li s1,-0x1
b 0x0002988c
_li s1,-0x2
b 0x00029878
_li s1,-0x2
(translation_unit "int FUN_000296dc(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  uint uVar5;\n  int *piVar6;\n  uint uVar7;\n  int iVar8;\n  int iVar9;\n  uint uVar10;\n  \n  iVar8 = param_4 + param_5;\n  if (param_4 < 0) {\n    return -1;\n  }\n  if (param_3 < param_4) {\n    return -1;\n  }\n  iVar9 = param_3;\n  if (param_3 < iVar8) {\nLAB_000297a0:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;\n    rpl_re_compile_fastmap(param_1);\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    iVar9 = 0;\nLAB_000297d0:\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }\n  uVar7 = 1;\n  if (iVar8 << 4 < 0) {\n    param_7 = (uint *)0x0;\n  }\n  else if (param_7 == (uint *)0x0) {\n    uVar7 = 1;\n  }\n  else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }\n  piVar3 = (int *)(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3);\n  if (piVar3 == (int *)0x0) {\n    return -2;\n  }\n  iVar8 = FUN_00027cb0(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2);\n  if (iVar8 != 0) {\n    param_4 = -2;\n    if (iVar8 == 1) {\n      param_4 = -1;\n    }\n    goto LAB_00029878;\n  }\n  if (param_7 != (uint *)0x0) {\n    uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n    uVar10 = uVar7 + 1;\n    if (uVar2 == 0) {\n      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n      param_7[1] = uVar2;\n      if (uVar2 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }\n    if (uVar2 == 1) {\n      if (uVar10 <= *param_7) goto LAB_00029958;\n      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);\n      if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }\nLAB_000299d8:\n    *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);\n    if (uVar2 == 0) {\n      param_4 = -2;\n      goto LAB_00029878;\n    }\n  }\n  if (param_8 == '\0') {\n    param_4 = *piVar3;\n  }\n  else {\n    if (*piVar3 != param_4) {\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }\n    param_4 = piVar3[1] - param_4;\n  }\nLAB_00029878:\n  (*(code *)PTR_free_0003e320)(piVar3);\n  return param_4;\n}\n\n" (function_definition "int FUN_000296dc(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  uint uVar5;\n  int *piVar6;\n  uint uVar7;\n  int iVar8;\n  int iVar9;\n  uint uVar10;\n  \n  iVar8 = param_4 + param_5;\n  if (param_4 < 0) {\n    return -1;\n  }\n  if (param_3 < param_4) {\n    return -1;\n  }\n  iVar9 = param_3;\n  if (param_3 < iVar8) {\nLAB_000297a0:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;\n    rpl_re_compile_fastmap(param_1);\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    iVar9 = 0;\nLAB_000297d0:\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }\n  uVar7 = 1;\n  if (iVar8 << 4 < 0) {\n    param_7 = (uint *)0x0;\n  }\n  else if (param_7 == (uint *)0x0) {\n    uVar7 = 1;\n  }\n  else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }\n  piVar3 = (int *)(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3);\n  if (piVar3 == (int *)0x0) {\n    return -2;\n  }\n  iVar8 = FUN_00027cb0(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2);\n  if (iVar8 != 0) {\n    param_4 = -2;\n    if (iVar8 == 1) {\n      param_4 = -1;\n    }\n    goto LAB_00029878;\n  }\n  if (param_7 != (uint *)0x0) {\n    uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n    uVar10 = uVar7 + 1;\n    if (uVar2 == 0) {\n      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n      param_7[1] = uVar2;\n      if (uVar2 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }\n    if (uVar2 == 1) {\n      if (uVar10 <= *param_7) goto LAB_00029958;\n      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);\n      if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }\nLAB_000299d8:\n    *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);\n    if (uVar2 == 0) {\n      param_4 = -2;\n      goto LAB_00029878;\n    }\n  }\n  if (param_8 == '\0') {\n    param_4 = *piVar3;\n  }\n  else {\n    if (*piVar3 != param_4) {\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }\n    param_4 = piVar3[1] - param_4;\n  }\nLAB_00029878:\n  (*(code *)PTR_free_0003e320)(piVar3);\n  return param_4;\n}" primitive_type (function_declarator "FUN_000296dc(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  uint uVar5;\n  int *piVar6;\n  uint uVar7;\n  int iVar8;\n  int iVar9;\n  uint uVar10;\n  \n  iVar8 = param_4 + param_5;\n  if (param_4 < 0) {\n    return -1;\n  }\n  if (param_3 < param_4) {\n    return -1;\n  }\n  iVar9 = param_3;\n  if (param_3 < iVar8) {\nLAB_000297a0:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;\n    rpl_re_compile_fastmap(param_1);\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    iVar9 = 0;\nLAB_000297d0:\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }\n  uVar7 = 1;\n  if (iVar8 << 4 < 0) {\n    param_7 = (uint *)0x0;\n  }\n  else if (param_7 == (uint *)0x0) {\n    uVar7 = 1;\n  }\n  else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }\n  piVar3 = (int *)(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3);\n  if (piVar3 == (int *)0x0) {\n    return -2;\n  }\n  iVar8 = FUN_00027cb0(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2);\n  if (iVar8 != 0) {\n    param_4 = -2;\n    if (iVar8 == 1) {\n      param_4 = -1;\n    }\n    goto LAB_00029878;\n  }\n  if (param_7 != (uint *)0x0) {\n    uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n    uVar10 = uVar7 + 1;\n    if (uVar2 == 0) {\n      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n      param_7[1] = uVar2;\n      if (uVar2 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }\n    if (uVar2 == 1) {\n      if (uVar10 <= *param_7) goto LAB_00029958;\n      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);\n      if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }\nLAB_000299d8:\n    *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);\n    if (uVar2 == 0) {\n      param_4 = -2;\n      goto LAB_00029878;\n    }\n  }\n  if (param_8 == '\0') {\n    param_4 = *piVar3;\n  }\n  else {\n    if (*piVar3 != param_4) {\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }\n    param_4 = piVar3[1] - param_4;\n  }\nLAB_00029878:\n  (*(code *)PTR_free_0003e320)(piVar3);\n  return param_4;\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 "uint uVar5;" type_identifier identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (expression_statement "iVar8 = param_4 + param_5;" (assignment_expression "iVar8 = param_4 + param_5" identifier = (binary_expression "param_4 + param_5" identifier + identifier)) ;) (if_statement "if (param_4 < 0) {\n    return -1;\n  }" if (parenthesized_expression "(param_4 < 0)" ( (binary_expression "param_4 < 0" identifier < number_literal) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })) (if_statement "if (param_3 < param_4) {\n    return -1;\n  }" if (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 "iVar9 = param_3;" (assignment_expression "iVar9 = param_3" identifier = identifier) ;) (if_statement "if (param_3 < iVar8) {\nLAB_000297a0:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;\n    rpl_re_compile_fastmap(param_1);\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    iVar9 = 0;\nLAB_000297d0:\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }" if (parenthesized_expression "(param_3 < iVar8)" ( (binary_expression "param_3 < iVar8" identifier < identifier) )) (compound_statement "{\nLAB_000297a0:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;\n    rpl_re_compile_fastmap(param_1);\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }" { (labeled_statement "LAB_000297a0:\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 (((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;" if (parenthesized_expression "(((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))" ( (binary_expression "((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0)" (parenthesized_expression "((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0))" ( (binary_expression "(iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)" (parenthesized_expression "(iVar9 <= param_4)" ( (binary_expression "iVar9 <= param_4" 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) ))) )) (goto_statement "goto LAB_000297d0;" goto statement_identifier ;)) (expression_statement "rpl_re_compile_fastmap(param_1);" (call_expression "rpl_re_compile_fastmap(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "iVar8 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar8 = *(int *)(param_1 + 0x1c)" identifier = (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) ))))) ;) }) (else_clause "else {\n    if (param_5 < 0) {\n      if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    iVar9 = 0;\nLAB_000297d0:\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }" else (compound_statement "{\n    if (param_5 < 0) {\n      if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    iVar9 = 0;\nLAB_000297d0:\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }" { (if_statement "if (param_5 < 0) {\n      if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\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 (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }" { (if_statement "if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" if (parenthesized_expression "(iVar8 < 0)" ( (binary_expression "iVar8 < 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        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" else (compound_statement "{\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" { (expression_statement "iVar9 = iVar8;" (assignment_expression "iVar9 = iVar8" identifier = identifier) ;) (if_statement "if (iVar8 < param_4) goto LAB_000297a0;" if (parenthesized_expression "(iVar8 < param_4)" ( (binary_expression "iVar8 < param_4" identifier < identifier) )) (goto_statement "goto LAB_000297a0;" 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 ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }" else (compound_statement "{\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }" { (if_statement "if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;" if (parenthesized_expression "((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8))" ( (binary_expression "(iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)" (parenthesized_expression "(iVar8 < param_4)" ( (binary_expression "iVar8 < param_4" identifier < identifier) )) || (parenthesized_expression "(iVar9 = iVar8, -1 < iVar8)" ( (comma_expression "iVar9 = iVar8, -1 < iVar8" (assignment_expression "iVar9 = iVar8" identifier = identifier) , (binary_expression "-1 < iVar8" number_literal < identifier)) ))) )) (goto_statement "goto LAB_000297a0;" 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 "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 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000297d0:\n    iVar8 = *(int *)(param_1 + 0x1c);" statement_identifier : (expression_statement "iVar8 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar8 = *(int *)(param_1 + 0x1c)" identifier = (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) ))))) ;)) }))) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) (if_statement "if (iVar8 << 4 < 0) {\n    param_7 = (uint *)0x0;\n  }\n  else if (param_7 == (uint *)0x0) {\n    uVar7 = 1;\n  }\n  else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }" if (parenthesized_expression "(iVar8 << 4 < 0)" ( (binary_expression "iVar8 << 4 < 0" (binary_expression "iVar8 << 4" identifier << number_literal) < number_literal) )) (compound_statement "{\n    param_7 = (uint *)0x0;\n  }" { (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 if (param_7 == (uint *)0x0) {\n    uVar7 = 1;\n  }\n  else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }" else (if_statement "if (param_7 == (uint *)0x0) {\n    uVar7 = 1;\n  }\n  else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\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    uVar7 = 1;\n  }" { (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) }) (else_clause "else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }" else (if_statement "if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }" if (parenthesized_expression "(((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18)))" ( (binary_expression "((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(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 "(uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))" ( (comma_expression "uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18)" (assignment_expression "uVar7 = *param_7" identifier = (pointer_expression "*param_7" * identifier)) , (binary_expression "uVar7 <= *(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)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }" { (if_statement "if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }" if (parenthesized_expression "((int)uVar7 < 1)" ( (binary_expression "(int)uVar7 < 1" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }" { (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 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    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }" else (compound_statement "{\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }" { (expression_statement "uVar7 = *(int *)(param_1 + 0x18) + 1;" (assignment_expression "uVar7 = *(int *)(param_1 + 0x18) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x18) + 1" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal)) ;) }))))))) (expression_statement "piVar3 = (int *)(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3);" (assignment_expression "piVar3 = (int *)(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3)" identifier = (cast_expression "(int *)(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3)" (parenthesized_expression "(*(code *)PTR_malloc_0003e2b4)" ( (pointer_expression "*(code *)PTR_malloc_0003e2b4" * (cast_expression "(code *)PTR_malloc_0003e2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar7 << 3)" ( (binary_expression "uVar7 << 3" identifier << number_literal) ))))) ;) (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 "iVar8 = FUN_00027cb0(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2);" (assignment_expression "iVar8 = FUN_00027cb0(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2)" identifier = (call_expression "FUN_00027cb0(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2)" identifier (argument_list "(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar8 != 0) {\n    param_4 = -2;\n    if (iVar8 == 1) {\n      param_4 = -1;\n    }\n    goto LAB_00029878;\n  }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n    param_4 = -2;\n    if (iVar8 == 1) {\n      param_4 = -1;\n    }\n    goto LAB_00029878;\n  }" { (expression_statement "param_4 = -2;" (assignment_expression "param_4 = -2" identifier = number_literal) ;) (if_statement "if (iVar8 == 1) {\n      param_4 = -1;\n    }" if (parenthesized_expression "(iVar8 == 1)" ( (binary_expression "iVar8 == 1" identifier == number_literal) )) (compound_statement "{\n      param_4 = -1;\n    }" { (expression_statement "param_4 = -1;" (assignment_expression "param_4 = -1" identifier = number_literal) ;) })) (goto_statement "goto LAB_00029878;" goto statement_identifier ;) })) (if_statement "if (param_7 != (uint *)0x0) {\n    uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n    uVar10 = uVar7 + 1;\n    if (uVar2 == 0) {\n      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n      param_7[1] = uVar2;\n      if (uVar2 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }\n    if (uVar2 == 1) {\n      if (uVar10 <= *param_7) goto LAB_00029958;\n      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);\n      if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }\nLAB_000299d8:\n    *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);\n    if (uVar2 == 0) {\n      param_4 = -2;\n      goto LAB_00029878;\n    }\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    uVar10 = uVar7 + 1;\n    if (uVar2 == 0) {\n      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n      param_7[1] = uVar2;\n      if (uVar2 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }\n    if (uVar2 == 1) {\n      if (uVar10 <= *param_7) goto LAB_00029958;\n      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);\n      if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }\nLAB_000299d8:\n    *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);\n    if (uVar2 == 0) {\n      param_4 = -2;\n      goto LAB_00029878;\n    }\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 "uVar10 = uVar7 + 1;" (assignment_expression "uVar10 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (if_statement "if (uVar2 == 0) {\n      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n      param_7[1] = uVar2;\n      if (uVar2 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n      param_7[1] = uVar2;\n      if (uVar2 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }" { (expression_statement "uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);" (assignment_expression "uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4)" identifier = (call_expression "(*(code *)PTR_malloc_0003e2b4)(uVar10 * 4)" (parenthesized_expression "(*(code *)PTR_malloc_0003e2b4)" ( (pointer_expression "*(code *)PTR_malloc_0003e2b4" * (cast_expression "(code *)PTR_malloc_0003e2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar10 * 4)" ( (binary_expression "uVar10 * 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        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar2 = 0;\n      }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }" else (compound_statement "{\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }" { (expression_statement "uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);" (assignment_expression "uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4)" identifier = (call_expression "(*(code *)PTR_malloc_0003e2b4)(uVar10 * 4)" (parenthesized_expression "(*(code *)PTR_malloc_0003e2b4)" ( (pointer_expression "*(code *)PTR_malloc_0003e2b4" * (cast_expression "(code *)PTR_malloc_0003e2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar10 * 4)" ( (binary_expression "uVar10 * 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 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }" if (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) (compound_statement "{\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }" { (expression_statement "*param_7 = uVar10;" (assignment_expression "*param_7 = uVar10" (pointer_expression "*param_7" * identifier) = identifier) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00029958;" goto statement_identifier ;) })) (expression_statement "(*(code *)PTR_free_0003e320)(uVar2);" (call_expression "(*(code *)PTR_free_0003e320)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_0003e320)" ( (pointer_expression "*(code *)PTR_free_0003e320" * (cast_expression "(code *)PTR_free_0003e320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) (goto_statement "goto LAB_000299d8;" goto statement_identifier ;) })) (if_statement "if (uVar2 == 1) {\n      if (uVar10 <= *param_7) goto LAB_00029958;\n      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);\n      if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }" if (parenthesized_expression "(uVar2 == 1)" ( (binary_expression "uVar2 == 1" identifier == number_literal) )) (compound_statement "{\n      if (uVar10 <= *param_7) goto LAB_00029958;\n      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);\n      if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }\n    }" { (if_statement "if (uVar10 <= *param_7) goto LAB_00029958;" if (parenthesized_expression "(uVar10 <= *param_7)" ( (binary_expression "uVar10 <= *param_7" identifier <= (pointer_expression "*param_7" * identifier)) )) (goto_statement "goto LAB_00029958;" goto statement_identifier ;)) (expression_statement "uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);" (assignment_expression "uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4)" identifier = (call_expression "(*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4)" (parenthesized_expression "(*(code *)PTR_realloc_0003e2b8)" ( (pointer_expression "*(code *)PTR_realloc_0003e2b8" * (cast_expression "(code *)PTR_realloc_0003e2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_7[1],uVar10 * 4)" ( (subscript_expression "param_7[1]" identifier [ number_literal ]) , (binary_expression "uVar10 * 4" identifier * number_literal) )))) ;) (if_statement "if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar2 = 0;\n      }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }" else (compound_statement "{\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }" { (expression_statement "uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);" (assignment_expression "uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4)" identifier = (call_expression "(*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4)" (parenthesized_expression "(*(code *)PTR_realloc_0003e2b8)" ( (pointer_expression "*(code *)PTR_realloc_0003e2b8" * (cast_expression "(code *)PTR_realloc_0003e2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_7[2],uVar10 * 4)" ( (subscript_expression "param_7[2]" identifier [ number_literal ]) , (binary_expression "uVar10 * 4" identifier * number_literal) )))) ;) (if_statement "if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (compound_statement "{\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }" { (expression_statement "param_7[1] = uVar4;" (assignment_expression "param_7[1] = uVar4" (subscript_expression "param_7[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_7[2] = uVar5;" (assignment_expression "param_7[2] = uVar5" (subscript_expression "param_7[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_7 = uVar10;" (assignment_expression "*param_7 = uVar10" (pointer_expression "*param_7" * identifier) = identifier) ;) (goto_statement "goto LAB_00029958;" goto statement_identifier ;) })) (expression_statement "(*(code *)PTR_free_0003e320)(uVar4);" (call_expression "(*(code *)PTR_free_0003e320)(uVar4)" (parenthesized_expression "(*(code *)PTR_free_0003e320)" ( (pointer_expression "*(code *)PTR_free_0003e320" * (cast_expression "(code *)PTR_free_0003e320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) }) (else_clause "else {\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }" else (compound_statement "{\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }" { (if_statement "if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }" if (parenthesized_expression "(uVar2 != 2)" ( (binary_expression "uVar2 != 2" identifier != number_literal) )) (compound_statement "{\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }" { (expression_statement "iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);" (assignment_expression "iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0)" identifier = (call_expression "(*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003e220)" ( (pointer_expression "*(code *)PTR___assert_fail_0003e220" * (cast_expression "(code *)PTR___assert_fail_0003e220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0)" ( (binary_expression "PTR_DAT_0003e108 + -0x30a4" identifier + number_literal) , (binary_expression "PTR_DAT_0003e108 + -0x3140" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003e108 + -0x33f0" identifier + number_literal) )))) ;) (return_statement "return iVar8;" return identifier ;) })) (if_statement "if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }" if (parenthesized_expression "(*param_7 < uVar7)" ( (binary_expression "*param_7 < uVar7" (pointer_expression "*param_7" * identifier) < identifier) )) (compound_statement "{\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }" { (expression_statement "iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);" (assignment_expression "iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0)" identifier = (call_expression "(*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003e220)" ( (pointer_expression "*(code *)PTR___assert_fail_0003e220" * (cast_expression "(code *)PTR___assert_fail_0003e220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0)" ( (binary_expression "PTR_DAT_0003e108 + -0x3084" identifier + number_literal) , (binary_expression "PTR_DAT_0003e108 + -0x3140" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003e108 + -0x33f0" identifier + number_literal) )))) ;) (return_statement "return iVar8;" return identifier ;) })) (labeled_statement "LAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }" statement_identifier : (if_statement "if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }" if (parenthesized_expression "((int)uVar7 < 1)" ( (binary_expression "(int)uVar7 < 1" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        uVar7 = 0;\n      }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }" else (compound_statement "{\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }" { (expression_statement "piVar6 = piVar3 + 1;" (assignment_expression "piVar6 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);" do (compound_statement "{\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        }" { (expression_statement "*(int *)(param_7[1] + iVar8) = piVar6[-1];" (assignment_expression "*(int *)(param_7[1] + iVar8) = piVar6[-1]" (pointer_expression "*(int *)(param_7[1] + iVar8)" * (cast_expression "(int *)(param_7[1] + iVar8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_7[1] + iVar8)" ( (binary_expression "param_7[1] + iVar8" (subscript_expression "param_7[1]" identifier [ number_literal ]) + identifier) )))) = (subscript_expression "piVar6[-1]" identifier [ number_literal ])) ;) (expression_statement "*(int *)(param_7[2] + iVar8) = *piVar6;" (assignment_expression "*(int *)(param_7[2] + iVar8) = *piVar6" (pointer_expression "*(int *)(param_7[2] + iVar8)" * (cast_expression "(int *)(param_7[2] + iVar8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_7[2] + iVar8)" ( (binary_expression "param_7[2] + iVar8" (subscript_expression "param_7[2]" identifier [ number_literal ]) + identifier) )))) = (pointer_expression "*piVar6" * identifier)) ;) (expression_statement "iVar8 = iVar8 + 4;" (assignment_expression "iVar8 = iVar8 + 4" identifier = (binary_expression "iVar8 + 4" identifier + number_literal)) ;) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" identifier = (binary_expression "piVar6 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar8 != uVar7 << 2)" ( (binary_expression "iVar8 != uVar7 << 2" identifier != (binary_expression "uVar7 << 2" identifier << number_literal)) )) ;) })))) (if_statement "if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }" if (parenthesized_expression "(uVar7 < *param_7)" ( (binary_expression "uVar7 < *param_7" identifier < (pointer_expression "*param_7" * identifier)) )) (compound_statement "{\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }" { (do_statement "do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);" do (compound_statement "{\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        }" { (expression_statement "*(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_7[2] + uVar7 * 4)" * (cast_expression "(undefined4 *)(param_7[2] + uVar7 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_7[2] + uVar7 * 4)" ( (binary_expression "param_7[2] + uVar7 * 4" (subscript_expression "param_7[2]" identifier [ number_literal ]) + (binary_expression "uVar7 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_7[1] + uVar7 * 4)" * (cast_expression "(undefined4 *)(param_7[1] + uVar7 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_7[1] + uVar7 * 4)" ( (binary_expression "param_7[1] + uVar7 * 4" (subscript_expression "param_7[1]" identifier [ number_literal ]) + (binary_expression "uVar7 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar7 < *param_7)" ( (binary_expression "uVar7 < *param_7" identifier < (pointer_expression "*param_7" * identifier)) )) ;) })) }))) (labeled_statement "LAB_000299d8:\n    *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);" statement_identifier : (expression_statement "*(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);" (assignment_expression "*(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 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)(uVar2 << 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)(uVar2 << 5)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar2 << 5)" ( (binary_expression "uVar2 << 5" identifier << number_literal) ))))) ;)) (if_statement "if (uVar2 == 0) {\n      param_4 = -2;\n      goto LAB_00029878;\n    }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      param_4 = -2;\n      goto LAB_00029878;\n    }" { (expression_statement "param_4 = -2;" (assignment_expression "param_4 = -2" identifier = number_literal) ;) (goto_statement "goto LAB_00029878;" goto statement_identifier ;) })) })) (if_statement "if (param_8 == '\0') {\n    param_4 = *piVar3;\n  }\n  else {\n    if (*piVar3 != param_4) {\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }\n    param_4 = piVar3[1] - param_4;\n  }" if (parenthesized_expression "(param_8 == '\0')" ( (binary_expression "param_8 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    param_4 = *piVar3;\n  }" { (expression_statement "param_4 = *piVar3;" (assignment_expression "param_4 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) }) (else_clause "else {\n    if (*piVar3 != param_4) {\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }\n    param_4 = piVar3[1] - param_4;\n  }" else (compound_statement "{\n    if (*piVar3 != param_4) {\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }\n    param_4 = piVar3[1] - param_4;\n  }" { (if_statement "if (*piVar3 != param_4) {\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }" if (parenthesized_expression "(*piVar3 != param_4)" ( (binary_expression "*piVar3 != param_4" (pointer_expression "*piVar3" * identifier) != identifier) )) (compound_statement "{\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }" { (expression_statement "iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);" (assignment_expression "iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0)" identifier = (call_expression "(*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003e220)" ( (pointer_expression "*(code *)PTR___assert_fail_0003e220" * (cast_expression "(code *)PTR___assert_fail_0003e220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0)" ( (binary_expression "PTR_DAT_0003e108 + -0x306c" identifier + number_literal) , (binary_expression "PTR_DAT_0003e108 + -0x3140" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003e108 + -0x33e0" identifier + number_literal) )))) ;) (return_statement "return iVar8;" return identifier ;) })) (expression_statement "param_4 = piVar3[1] - param_4;" (assignment_expression "param_4 = piVar3[1] - param_4" identifier = (binary_expression "piVar3[1] - param_4" (subscript_expression "piVar3[1]" identifier [ number_literal ]) - identifier)) ;) }))) (labeled_statement "LAB_00029878:\n  (*(code *)PTR_free_0003e320)(piVar3);" statement_identifier : (expression_statement "(*(code *)PTR_free_0003e320)(piVar3);" (call_expression "(*(code *)PTR_free_0003e320)(piVar3)" (parenthesized_expression "(*(code *)PTR_free_0003e320)" ( (pointer_expression "*(code *)PTR_free_0003e320" * (cast_expression "(code *)PTR_free_0003e320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar3)" ( identifier ))) ;)) (return_statement "return param_4;" 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  regoff_t *prVar4;\n  regoff_t *prVar5;\n  uint nmatch;\n  regoff_t rVar6;\n  int iVar7;\n  int last_start;\n  uint uVar8;\n  \n  iVar7 = start + range;\n  if (start < 0) {\n    return -1;\n  }\n  if (length < start) {\n    return -1;\n  }\n  last_start = length;\n  if (length < iVar7) {\nLAB_000297a0:\n    bVar1 = bufp->field_0x1c;\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((last_start <= start) || (bufp->fastmap == (char *)0x0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;\n    rpl_re_compile_fastmap(bufp);\n    iVar7 = *(int *)&bufp->field_0x1c;\n  }\n  else {\n    if (range < 0) {\n      if (iVar7 < 0) {\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n      else {\n        last_start = iVar7;\n        if (iVar7 < start) goto LAB_000297a0;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n    }\n    else {\n      if ((iVar7 < start) || (last_start = iVar7, -1 < iVar7)) goto LAB_000297a0;\n      uVar2 = (uint)(byte)bufp->field_0x1c;\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    last_start = 0;\nLAB_000297d0:\n    iVar7 = *(int *)&bufp->field_0x1c;\n  }\n  nmatch = 1;\n  if (iVar7 << 4 < 0) {\n    regs = (re_registers *)0x0;\n  }\n  else if (regs == (re_registers *)0x0) {\n    nmatch = 1;\n  }\n  else if (((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub)\n          ) {\n    if ((int)nmatch < 1) {\n      nmatch = 1;\n      regs = (re_registers *)0x0;\n    }\n  }\n  else {\n    nmatch = bufp->re_nsub + 1;\n  }\n  pmatch = (regmatch_t *)(*(code *)PTR_malloc_0003e2b4)(nmatch << 3);\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    rVar6 = -2;\n    if (rVar3 == _REG_NOMATCH) {\n      rVar6 = -1;\n    }\n    goto LAB_00029878;\n  }\n  if (regs != (re_registers *)0x0) {\n    uVar2 = (uint)(*(int *)&bufp->field_0x1c << 1) >> 0x1e;\n    uVar8 = nmatch + 1;\n    if (uVar2 == 0) {\n      prVar4 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);\n      regs->start = prVar4;\n      if (prVar4 == (regoff_t *)0x0) {\n        uVar2 = 0;\n      }\n      else {\n        prVar5 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);\n        regs->end = prVar5;\n        if (prVar5 != (regoff_t *)0x0) {\n          regs->num_regs = uVar8;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(prVar4);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }\n    if (uVar2 == 1) {\n      if (uVar8 <= regs->num_regs) goto LAB_00029958;\n      prVar4 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->start,uVar8 * 4);\n      if (prVar4 == (regoff_t *)0x0) {\n        uVar2 = 0;\n      }\n      else {\n        prVar5 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->end,uVar8 * 4);\n        if (prVar5 != (regoff_t *)0x0) {\n          regs->start = prVar4;\n          regs->end = prVar5;\n          regs->num_regs = uVar8;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(prVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return rVar6;\n      }\n      if (regs->num_regs < nmatch) {\n        rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return rVar6;\n      }\nLAB_00029958:\n      if ((int)nmatch < 1) {\n        nmatch = 0;\n      }\n      else {\n        prVar4 = &pmatch->rm_eo;\n        iVar7 = 0;\n        do {\n          *(regoff_t *)((int)regs->start + iVar7) = ((regmatch_t *)(prVar4 + -1))->rm_so;\n          *(regoff_t *)((int)regs->end + iVar7) = *prVar4;\n          iVar7 = iVar7 + 4;\n          prVar4 = prVar4 + 2;\n        } while (iVar7 != nmatch << 2);\n      }\n      if (nmatch < regs->num_regs) {\n        do {\n          regs->end[nmatch] = -1;\n          regs->start[nmatch] = -1;\n          nmatch = nmatch + 1;\n        } while (nmatch < regs->num_regs);\n      }\n    }\nLAB_000299d8:\n    bufp->field_0x1c = bufp->field_0x1c & 0x9f | (byte)(uVar2 << 5);\n    if (uVar2 == 0) {\n      rVar6 = -2;\n      goto LAB_00029878;\n    }\n  }\n  if (ret_len) {\n    if (pmatch->rm_so != start) {\n      rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return rVar6;\n    }\n    rVar6 = pmatch->rm_eo - start;\n  }\n  else {\n    rVar6 = pmatch->rm_so;\n  }\nLAB_00029878:\n  (*(code *)PTR_free_0003e320)(pmatch);\n  return rVar6;\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  regoff_t *prVar4;\n  regoff_t *prVar5;\n  uint nmatch;\n  regoff_t rVar6;\n  int iVar7;\n  int last_start;\n  uint uVar8;\n  \n  iVar7 = start + range;\n  if (start < 0) {\n    return -1;\n  }\n  if (length < start) {\n    return -1;\n  }\n  last_start = length;\n  if (length < iVar7) {\nLAB_000297a0:\n    bVar1 = bufp->field_0x1c;\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((last_start <= start) || (bufp->fastmap == (char *)0x0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;\n    rpl_re_compile_fastmap(bufp);\n    iVar7 = *(int *)&bufp->field_0x1c;\n  }\n  else {\n    if (range < 0) {\n      if (iVar7 < 0) {\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n      else {\n        last_start = iVar7;\n        if (iVar7 < start) goto LAB_000297a0;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n    }\n    else {\n      if ((iVar7 < start) || (last_start = iVar7, -1 < iVar7)) goto LAB_000297a0;\n      uVar2 = (uint)(byte)bufp->field_0x1c;\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    last_start = 0;\nLAB_000297d0:\n    iVar7 = *(int *)&bufp->field_0x1c;\n  }\n  nmatch = 1;\n  if (iVar7 << 4 < 0) {\n    regs = (re_registers *)0x0;\n  }\n  else if (regs == (re_registers *)0x0) {\n    nmatch = 1;\n  }\n  else if (((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub)\n          ) {\n    if ((int)nmatch < 1) {\n      nmatch = 1;\n      regs = (re_registers *)0x0;\n    }\n  }\n  else {\n    nmatch = bufp->re_nsub + 1;\n  }\n  pmatch = (regmatch_t *)(*(code *)PTR_malloc_0003e2b4)(nmatch << 3);\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    rVar6 = -2;\n    if (rVar3 == _REG_NOMATCH) {\n      rVar6 = -1;\n    }\n    goto LAB_00029878;\n  }\n  if (regs != (re_registers *)0x0) {\n    uVar2 = (uint)(*(int *)&bufp->field_0x1c << 1) >> 0x1e;\n    uVar8 = nmatch + 1;\n    if (uVar2 == 0) {\n      prVar4 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);\n      regs->start = prVar4;\n      if (prVar4 == (regoff_t *)0x0) {\n        uVar2 = 0;\n      }\n      else {\n        prVar5 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);\n        regs->end = prVar5;\n        if (prVar5 != (regoff_t *)0x0) {\n          regs->num_regs = uVar8;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(prVar4);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }\n    if (uVar2 == 1) {\n      if (uVar8 <= regs->num_regs) goto LAB_00029958;\n      prVar4 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->start,uVar8 * 4);\n      if (prVar4 == (regoff_t *)0x0) {\n        uVar2 = 0;\n      }\n      else {\n        prVar5 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->end,uVar8 * 4);\n        if (prVar5 != (regoff_t *)0x0) {\n          regs->start = prVar4;\n          regs->end = prVar5;\n          regs->num_regs = uVar8;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(prVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return rVar6;\n      }\n      if (regs->num_regs < nmatch) {\n        rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return rVar6;\n      }\nLAB_00029958:\n      if ((int)nmatch < 1) {\n        nmatch = 0;\n      }\n      else {\n        prVar4 = &pmatch->rm_eo;\n        iVar7 = 0;\n        do {\n          *(regoff_t *)((int)regs->start + iVar7) = ((regmatch_t *)(prVar4 + -1))->rm_so;\n          *(regoff_t *)((int)regs->end + iVar7) = *prVar4;\n          iVar7 = iVar7 + 4;\n          prVar4 = prVar4 + 2;\n        } while (iVar7 != nmatch << 2);\n      }\n      if (nmatch < regs->num_regs) {\n        do {\n          regs->end[nmatch] = -1;\n          regs->start[nmatch] = -1;\n          nmatch = nmatch + 1;\n        } while (nmatch < regs->num_regs);\n      }\n    }\nLAB_000299d8:\n    bufp->field_0x1c = bufp->field_0x1c & 0x9f | (byte)(uVar2 << 5);\n    if (uVar2 == 0) {\n      rVar6 = -2;\n      goto LAB_00029878;\n    }\n  }\n  if (ret_len) {\n    if (pmatch->rm_so != start) {\n      rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return rVar6;\n    }\n    rVar6 = pmatch->rm_eo - start;\n  }\n  else {\n    rVar6 = pmatch->rm_so;\n  }\nLAB_00029878:\n  (*(code *)PTR_free_0003e320)(pmatch);\n  return rVar6;\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  regoff_t *prVar4;\n  regoff_t *prVar5;\n  uint nmatch;\n  regoff_t rVar6;\n  int iVar7;\n  int last_start;\n  uint uVar8;\n  \n  iVar7 = start + range;\n  if (start < 0) {\n    return -1;\n  }\n  if (length < start) {\n    return -1;\n  }\n  last_start = length;\n  if (length < iVar7) {\nLAB_000297a0:\n    bVar1 = bufp->field_0x1c;\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((last_start <= start) || (bufp->fastmap == (char *)0x0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;\n    rpl_re_compile_fastmap(bufp);\n    iVar7 = *(int *)&bufp->field_0x1c;\n  }\n  else {\n    if (range < 0) {\n      if (iVar7 < 0) {\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n      else {\n        last_start = iVar7;\n        if (iVar7 < start) goto LAB_000297a0;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n    }\n    else {\n      if ((iVar7 < start) || (last_start = iVar7, -1 < iVar7)) goto LAB_000297a0;\n      uVar2 = (uint)(byte)bufp->field_0x1c;\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    last_start = 0;\nLAB_000297d0:\n    iVar7 = *(int *)&bufp->field_0x1c;\n  }\n  nmatch = 1;\n  if (iVar7 << 4 < 0) {\n    regs = (re_registers *)0x0;\n  }\n  else if (regs == (re_registers *)0x0) {\n    nmatch = 1;\n  }\n  else if (((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub)\n          ) {\n    if ((int)nmatch < 1) {\n      nmatch = 1;\n      regs = (re_registers *)0x0;\n    }\n  }\n  else {\n    nmatch = bufp->re_nsub + 1;\n  }\n  pmatch = (regmatch_t *)(*(code *)PTR_malloc_0003e2b4)(nmatch << 3);\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    rVar6 = -2;\n    if (rVar3 == _REG_NOMATCH) {\n      rVar6 = -1;\n    }\n    goto LAB_00029878;\n  }\n  if (regs != (re_registers *)0x0) {\n    uVar2 = (uint)(*(int *)&bufp->field_0x1c << 1) >> 0x1e;\n    uVar8 = nmatch + 1;\n    if (uVar2 == 0) {\n      prVar4 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);\n      regs->start = prVar4;\n      if (prVar4 == (regoff_t *)0x0) {\n        uVar2 = 0;\n      }\n      else {\n        prVar5 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);\n        regs->end = prVar5;\n        if (prVar5 != (regoff_t *)0x0) {\n          regs->num_regs = uVar8;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(prVar4);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }\n    if (uVar2 == 1) {\n      if (uVar8 <= regs->num_regs) goto LAB_00029958;\n      prVar4 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->start,uVar8 * 4);\n      if (prVar4 == (regoff_t *)0x0) {\n        uVar2 = 0;\n      }\n      else {\n        prVar5 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->end,uVar8 * 4);\n        if (prVar5 != (regoff_t *)0x0) {\n          regs->start = prVar4;\n          regs->end = prVar5;\n          regs->num_regs = uVar8;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(prVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return rVar6;\n      }\n      if (regs->num_regs < nmatch) {\n        rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return rVar6;\n      }\nLAB_00029958:\n      if ((int)nmatch < 1) {\n        nmatch = 0;\n      }\n      else {\n        prVar4 = &pmatch->rm_eo;\n        iVar7 = 0;\n        do {\n          *(regoff_t *)((int)regs->start + iVar7) = ((regmatch_t *)(prVar4 + -1))->rm_so;\n          *(regoff_t *)((int)regs->end + iVar7) = *prVar4;\n          iVar7 = iVar7 + 4;\n          prVar4 = prVar4 + 2;\n        } while (iVar7 != nmatch << 2);\n      }\n      if (nmatch < regs->num_regs) {\n        do {\n          regs->end[nmatch] = -1;\n          regs->start[nmatch] = -1;\n          nmatch = nmatch + 1;\n        } while (nmatch < regs->num_regs);\n      }\n    }\nLAB_000299d8:\n    bufp->field_0x1c = bufp->field_0x1c & 0x9f | (byte)(uVar2 << 5);\n    if (uVar2 == 0) {\n      rVar6 = -2;\n      goto LAB_00029878;\n    }\n  }\n  if (ret_len) {\n    if (pmatch->rm_so != start) {\n      rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return rVar6;\n    }\n    rVar6 = pmatch->rm_eo - start;\n  }\n  else {\n    rVar6 = pmatch->rm_so;\n  }\nLAB_00029878:\n  (*(code *)PTR_free_0003e320)(pmatch);\n  return rVar6;\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 "regoff_t *prVar4;" type_identifier (pointer_declarator "*prVar4" * identifier) ;) (declaration "regoff_t *prVar5;" type_identifier (pointer_declarator "*prVar5" * identifier) ;) (declaration "uint nmatch;" type_identifier identifier ;) (declaration "regoff_t rVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int last_start;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (expression_statement "iVar7 = start + range;" (assignment_expression "iVar7 = start + range" identifier = (binary_expression "start + range" identifier + identifier)) ;) (if_statement "if (start < 0) {\n    return -1;\n  }" if (parenthesized_expression "(start < 0)" ( (binary_expression "start < 0" identifier < number_literal) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })) (if_statement "if (length < start) {\n    return -1;\n  }" if (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 < iVar7) {\nLAB_000297a0:\n    bVar1 = bufp->field_0x1c;\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((last_start <= start) || (bufp->fastmap == (char *)0x0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;\n    rpl_re_compile_fastmap(bufp);\n    iVar7 = *(int *)&bufp->field_0x1c;\n  }\n  else {\n    if (range < 0) {\n      if (iVar7 < 0) {\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n      else {\n        last_start = iVar7;\n        if (iVar7 < start) goto LAB_000297a0;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n    }\n    else {\n      if ((iVar7 < start) || (last_start = iVar7, -1 < iVar7)) goto LAB_000297a0;\n      uVar2 = (uint)(byte)bufp->field_0x1c;\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    last_start = 0;\nLAB_000297d0:\n    iVar7 = *(int *)&bufp->field_0x1c;\n  }" if (parenthesized_expression "(length < iVar7)" ( (binary_expression "length < iVar7" identifier < identifier) )) (compound_statement "{\nLAB_000297a0:\n    bVar1 = bufp->field_0x1c;\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((last_start <= start) || (bufp->fastmap == (char *)0x0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;\n    rpl_re_compile_fastmap(bufp);\n    iVar7 = *(int *)&bufp->field_0x1c;\n  }" { (labeled_statement "LAB_000297a0:\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 (((last_start <= start) || (bufp->fastmap == (char *)0x0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;" if (parenthesized_expression "(((last_start <= start) || (bufp->fastmap == (char *)0x0)) || ((bVar1 & 0x10) != 0))" ( (binary_expression "((last_start <= start) || (bufp->fastmap == (char *)0x0)) || ((bVar1 & 0x10) != 0)" (parenthesized_expression "((last_start <= start) || (bufp->fastmap == (char *)0x0))" ( (binary_expression "(last_start <= start) || (bufp->fastmap == (char *)0x0)" (parenthesized_expression "(last_start <= start)" ( (binary_expression "last_start <= 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) ))) )) (goto_statement "goto LAB_000297d0;" goto statement_identifier ;)) (expression_statement "rpl_re_compile_fastmap(bufp);" (call_expression "rpl_re_compile_fastmap(bufp)" identifier (argument_list "(bufp)" ( identifier ))) ;) (expression_statement "iVar7 = *(int *)&bufp->field_0x1c;" (assignment_expression "iVar7 = *(int *)&bufp->field_0x1c" identifier = (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))))) ;) }) (else_clause "else {\n    if (range < 0) {\n      if (iVar7 < 0) {\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n      else {\n        last_start = iVar7;\n        if (iVar7 < start) goto LAB_000297a0;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n    }\n    else {\n      if ((iVar7 < start) || (last_start = iVar7, -1 < iVar7)) goto LAB_000297a0;\n      uVar2 = (uint)(byte)bufp->field_0x1c;\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    last_start = 0;\nLAB_000297d0:\n    iVar7 = *(int *)&bufp->field_0x1c;\n  }" else (compound_statement "{\n    if (range < 0) {\n      if (iVar7 < 0) {\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n      else {\n        last_start = iVar7;\n        if (iVar7 < start) goto LAB_000297a0;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n    }\n    else {\n      if ((iVar7 < start) || (last_start = iVar7, -1 < iVar7)) goto LAB_000297a0;\n      uVar2 = (uint)(byte)bufp->field_0x1c;\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    last_start = 0;\nLAB_000297d0:\n    iVar7 = *(int *)&bufp->field_0x1c;\n  }" { (if_statement "if (range < 0) {\n      if (iVar7 < 0) {\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n      else {\n        last_start = iVar7;\n        if (iVar7 < start) goto LAB_000297a0;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n    }\n    else {\n      if ((iVar7 < start) || (last_start = iVar7, -1 < iVar7)) goto LAB_000297a0;\n      uVar2 = (uint)(byte)bufp->field_0x1c;\n    }" if (parenthesized_expression "(range < 0)" ( (binary_expression "range < 0" identifier < number_literal) )) (compound_statement "{\n      if (iVar7 < 0) {\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n      else {\n        last_start = iVar7;\n        if (iVar7 < start) goto LAB_000297a0;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n    }" { (if_statement "if (iVar7 < 0) {\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }\n      else {\n        last_start = iVar7;\n        if (iVar7 < start) goto LAB_000297a0;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 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 = iVar7;\n        if (iVar7 < start) goto LAB_000297a0;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }" else (compound_statement "{\n        last_start = iVar7;\n        if (iVar7 < start) goto LAB_000297a0;\n        uVar2 = (uint)(byte)bufp->field_0x1c;\n      }" { (expression_statement "last_start = iVar7;" (assignment_expression "last_start = iVar7" identifier = identifier) ;) (if_statement "if (iVar7 < start) goto LAB_000297a0;" if (parenthesized_expression "(iVar7 < start)" ( (binary_expression "iVar7 < start" identifier < identifier) )) (goto_statement "goto LAB_000297a0;" 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 ((iVar7 < start) || (last_start = iVar7, -1 < iVar7)) goto LAB_000297a0;\n      uVar2 = (uint)(byte)bufp->field_0x1c;\n    }" else (compound_statement "{\n      if ((iVar7 < start) || (last_start = iVar7, -1 < iVar7)) goto LAB_000297a0;\n      uVar2 = (uint)(byte)bufp->field_0x1c;\n    }" { (if_statement "if ((iVar7 < start) || (last_start = iVar7, -1 < iVar7)) goto LAB_000297a0;" if (parenthesized_expression "((iVar7 < start) || (last_start = iVar7, -1 < iVar7))" ( (binary_expression "(iVar7 < start) || (last_start = iVar7, -1 < iVar7)" (parenthesized_expression "(iVar7 < start)" ( (binary_expression "iVar7 < start" identifier < identifier) )) || (parenthesized_expression "(last_start = iVar7, -1 < iVar7)" ( (comma_expression "last_start = iVar7, -1 < iVar7" (assignment_expression "last_start = iVar7" identifier = identifier) , (binary_expression "-1 < iVar7" number_literal < identifier)) ))) )) (goto_statement "goto LAB_000297a0;" 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 "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 "last_start = 0;" (assignment_expression "last_start = 0" identifier = number_literal) ;) (labeled_statement "LAB_000297d0:\n    iVar7 = *(int *)&bufp->field_0x1c;" statement_identifier : (expression_statement "iVar7 = *(int *)&bufp->field_0x1c;" (assignment_expression "iVar7 = *(int *)&bufp->field_0x1c" identifier = (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))))) ;)) }))) (expression_statement "nmatch = 1;" (assignment_expression "nmatch = 1" identifier = number_literal) ;) (if_statement "if (iVar7 << 4 < 0) {\n    regs = (re_registers *)0x0;\n  }\n  else if (regs == (re_registers *)0x0) {\n    nmatch = 1;\n  }\n  else if (((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub)\n          ) {\n    if ((int)nmatch < 1) {\n      nmatch = 1;\n      regs = (re_registers *)0x0;\n    }\n  }\n  else {\n    nmatch = bufp->re_nsub + 1;\n  }" if (parenthesized_expression "(iVar7 << 4 < 0)" ( (binary_expression "iVar7 << 4 < 0" (binary_expression "iVar7 << 4" identifier << number_literal) < number_literal) )) (compound_statement "{\n    regs = (re_registers *)0x0;\n  }" { (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 if (regs == (re_registers *)0x0) {\n    nmatch = 1;\n  }\n  else if (((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub)\n          ) {\n    if ((int)nmatch < 1) {\n      nmatch = 1;\n      regs = (re_registers *)0x0;\n    }\n  }\n  else {\n    nmatch = bufp->re_nsub + 1;\n  }" else (if_statement "if (regs == (re_registers *)0x0) {\n    nmatch = 1;\n  }\n  else if (((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub)\n          ) {\n    if ((int)nmatch < 1) {\n      nmatch = 1;\n      regs = (re_registers *)0x0;\n    }\n  }\n  else {\n    nmatch = bufp->re_nsub + 1;\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    nmatch = 1;\n  }" { (expression_statement "nmatch = 1;" (assignment_expression "nmatch = 1" identifier = number_literal) ;) }) (else_clause "else if (((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub)\n          ) {\n    if ((int)nmatch < 1) {\n      nmatch = 1;\n      regs = (re_registers *)0x0;\n    }\n  }\n  else {\n    nmatch = bufp->re_nsub + 1;\n  }" else (if_statement "if (((bufp->field_0x1c & 0x60) == 0x40) && (nmatch = regs->num_regs, nmatch <= bufp->re_nsub)\n          ) {\n    if ((int)nmatch < 1) {\n      nmatch = 1;\n      regs = (re_registers *)0x0;\n    }\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)\n          )" ( (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) {\n      nmatch = 1;\n      regs = (re_registers *)0x0;\n    }\n  }" { (if_statement "if ((int)nmatch < 1) {\n      nmatch = 1;\n      regs = (re_registers *)0x0;\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 = 1;\n      regs = (re_registers *)0x0;\n    }" { (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 = 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 "pmatch = (regmatch_t *)(*(code *)PTR_malloc_0003e2b4)(nmatch << 3);" (assignment_expression "pmatch = (regmatch_t *)(*(code *)PTR_malloc_0003e2b4)(nmatch << 3)" identifier = (cast_expression "(regmatch_t *)(*(code *)PTR_malloc_0003e2b4)(nmatch << 3)" ( (type_descriptor "regmatch_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_0003e2b4)(nmatch << 3)" (parenthesized_expression "(*(code *)PTR_malloc_0003e2b4)" ( (pointer_expression "*(code *)PTR_malloc_0003e2b4" * (cast_expression "(code *)PTR_malloc_0003e2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(nmatch << 3)" ( (binary_expression "nmatch << 3" identifier << number_literal) ))))) ;) (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    rVar6 = -2;\n    if (rVar3 == _REG_NOMATCH) {\n      rVar6 = -1;\n    }\n    goto LAB_00029878;\n  }" if (parenthesized_expression "(rVar3 != _REG_NOERROR)" ( (binary_expression "rVar3 != _REG_NOERROR" identifier != identifier) )) (compound_statement "{\n    rVar6 = -2;\n    if (rVar3 == _REG_NOMATCH) {\n      rVar6 = -1;\n    }\n    goto LAB_00029878;\n  }" { (expression_statement "rVar6 = -2;" (assignment_expression "rVar6 = -2" identifier = number_literal) ;) (if_statement "if (rVar3 == _REG_NOMATCH) {\n      rVar6 = -1;\n    }" if (parenthesized_expression "(rVar3 == _REG_NOMATCH)" ( (binary_expression "rVar3 == _REG_NOMATCH" identifier == identifier) )) (compound_statement "{\n      rVar6 = -1;\n    }" { (expression_statement "rVar6 = -1;" (assignment_expression "rVar6 = -1" identifier = number_literal) ;) })) (goto_statement "goto LAB_00029878;" goto statement_identifier ;) })) (if_statement "if (regs != (re_registers *)0x0) {\n    uVar2 = (uint)(*(int *)&bufp->field_0x1c << 1) >> 0x1e;\n    uVar8 = nmatch + 1;\n    if (uVar2 == 0) {\n      prVar4 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);\n      regs->start = prVar4;\n      if (prVar4 == (regoff_t *)0x0) {\n        uVar2 = 0;\n      }\n      else {\n        prVar5 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);\n        regs->end = prVar5;\n        if (prVar5 != (regoff_t *)0x0) {\n          regs->num_regs = uVar8;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(prVar4);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }\n    if (uVar2 == 1) {\n      if (uVar8 <= regs->num_regs) goto LAB_00029958;\n      prVar4 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->start,uVar8 * 4);\n      if (prVar4 == (regoff_t *)0x0) {\n        uVar2 = 0;\n      }\n      else {\n        prVar5 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->end,uVar8 * 4);\n        if (prVar5 != (regoff_t *)0x0) {\n          regs->start = prVar4;\n          regs->end = prVar5;\n          regs->num_regs = uVar8;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(prVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return rVar6;\n      }\n      if (regs->num_regs < nmatch) {\n        rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return rVar6;\n      }\nLAB_00029958:\n      if ((int)nmatch < 1) {\n        nmatch = 0;\n      }\n      else {\n        prVar4 = &pmatch->rm_eo;\n        iVar7 = 0;\n        do {\n          *(regoff_t *)((int)regs->start + iVar7) = ((regmatch_t *)(prVar4 + -1))->rm_so;\n          *(regoff_t *)((int)regs->end + iVar7) = *prVar4;\n          iVar7 = iVar7 + 4;\n          prVar4 = prVar4 + 2;\n        } while (iVar7 != nmatch << 2);\n      }\n      if (nmatch < regs->num_regs) {\n        do {\n          regs->end[nmatch] = -1;\n          regs->start[nmatch] = -1;\n          nmatch = nmatch + 1;\n        } while (nmatch < regs->num_regs);\n      }\n    }\nLAB_000299d8:\n    bufp->field_0x1c = bufp->field_0x1c & 0x9f | (byte)(uVar2 << 5);\n    if (uVar2 == 0) {\n      rVar6 = -2;\n      goto LAB_00029878;\n    }\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    uVar8 = nmatch + 1;\n    if (uVar2 == 0) {\n      prVar4 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);\n      regs->start = prVar4;\n      if (prVar4 == (regoff_t *)0x0) {\n        uVar2 = 0;\n      }\n      else {\n        prVar5 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);\n        regs->end = prVar5;\n        if (prVar5 != (regoff_t *)0x0) {\n          regs->num_regs = uVar8;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(prVar4);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }\n    if (uVar2 == 1) {\n      if (uVar8 <= regs->num_regs) goto LAB_00029958;\n      prVar4 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->start,uVar8 * 4);\n      if (prVar4 == (regoff_t *)0x0) {\n        uVar2 = 0;\n      }\n      else {\n        prVar5 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->end,uVar8 * 4);\n        if (prVar5 != (regoff_t *)0x0) {\n          regs->start = prVar4;\n          regs->end = prVar5;\n          regs->num_regs = uVar8;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(prVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return rVar6;\n      }\n      if (regs->num_regs < nmatch) {\n        rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return rVar6;\n      }\nLAB_00029958:\n      if ((int)nmatch < 1) {\n        nmatch = 0;\n      }\n      else {\n        prVar4 = &pmatch->rm_eo;\n        iVar7 = 0;\n        do {\n          *(regoff_t *)((int)regs->start + iVar7) = ((regmatch_t *)(prVar4 + -1))->rm_so;\n          *(regoff_t *)((int)regs->end + iVar7) = *prVar4;\n          iVar7 = iVar7 + 4;\n          prVar4 = prVar4 + 2;\n        } while (iVar7 != nmatch << 2);\n      }\n      if (nmatch < regs->num_regs) {\n        do {\n          regs->end[nmatch] = -1;\n          regs->start[nmatch] = -1;\n          nmatch = nmatch + 1;\n        } while (nmatch < regs->num_regs);\n      }\n    }\nLAB_000299d8:\n    bufp->field_0x1c = bufp->field_0x1c & 0x9f | (byte)(uVar2 << 5);\n    if (uVar2 == 0) {\n      rVar6 = -2;\n      goto LAB_00029878;\n    }\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 "uVar8 = nmatch + 1;" (assignment_expression "uVar8 = nmatch + 1" identifier = (binary_expression "nmatch + 1" identifier + number_literal)) ;) (if_statement "if (uVar2 == 0) {\n      prVar4 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);\n      regs->start = prVar4;\n      if (prVar4 == (regoff_t *)0x0) {\n        uVar2 = 0;\n      }\n      else {\n        prVar5 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);\n        regs->end = prVar5;\n        if (prVar5 != (regoff_t *)0x0) {\n          regs->num_regs = uVar8;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(prVar4);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      prVar4 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);\n      regs->start = prVar4;\n      if (prVar4 == (regoff_t *)0x0) {\n        uVar2 = 0;\n      }\n      else {\n        prVar5 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);\n        regs->end = prVar5;\n        if (prVar5 != (regoff_t *)0x0) {\n          regs->num_regs = uVar8;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(prVar4);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }" { (expression_statement "prVar4 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);" (assignment_expression "prVar4 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4)" identifier = (cast_expression "(regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4)" ( (type_descriptor "regoff_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4)" (parenthesized_expression "(*(code *)PTR_malloc_0003e2b4)" ( (pointer_expression "*(code *)PTR_malloc_0003e2b4" * (cast_expression "(code *)PTR_malloc_0003e2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar8 * 4)" ( (binary_expression "uVar8 * 4" identifier * number_literal) ))))) ;) (expression_statement "regs->start = prVar4;" (assignment_expression "regs->start = prVar4" (field_expression "regs->start" identifier -> field_identifier) = identifier) ;) (if_statement "if (prVar4 == (regoff_t *)0x0) {\n        uVar2 = 0;\n      }\n      else {\n        prVar5 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);\n        regs->end = prVar5;\n        if (prVar5 != (regoff_t *)0x0) {\n          regs->num_regs = uVar8;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(prVar4);\n        uVar2 = 0;\n      }" if (parenthesized_expression "(prVar4 == (regoff_t *)0x0)" ( (binary_expression "prVar4 == (regoff_t *)0x0" identifier == (cast_expression "(regoff_t *)0x0" ( (type_descriptor "regoff_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar2 = 0;\n      }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        prVar5 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);\n        regs->end = prVar5;\n        if (prVar5 != (regoff_t *)0x0) {\n          regs->num_regs = uVar8;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(prVar4);\n        uVar2 = 0;\n      }" else (compound_statement "{\n        prVar5 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);\n        regs->end = prVar5;\n        if (prVar5 != (regoff_t *)0x0) {\n          regs->num_regs = uVar8;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(prVar4);\n        uVar2 = 0;\n      }" { (expression_statement "prVar5 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4);" (assignment_expression "prVar5 = (regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4)" identifier = (cast_expression "(regoff_t *)(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4)" ( (type_descriptor "regoff_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_0003e2b4)(uVar8 * 4)" (parenthesized_expression "(*(code *)PTR_malloc_0003e2b4)" ( (pointer_expression "*(code *)PTR_malloc_0003e2b4" * (cast_expression "(code *)PTR_malloc_0003e2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar8 * 4)" ( (binary_expression "uVar8 * 4" identifier * number_literal) ))))) ;) (expression_statement "regs->end = prVar5;" (assignment_expression "regs->end = prVar5" (field_expression "regs->end" identifier -> field_identifier) = identifier) ;) (if_statement "if (prVar5 != (regoff_t *)0x0) {\n          regs->num_regs = uVar8;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }" if (parenthesized_expression "(prVar5 != (regoff_t *)0x0)" ( (binary_expression "prVar5 != (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 = uVar8;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }" { (expression_statement "regs->num_regs = uVar8;" (assignment_expression "regs->num_regs = uVar8" (field_expression "regs->num_regs" identifier -> field_identifier) = identifier) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00029958;" goto statement_identifier ;) })) (expression_statement "(*(code *)PTR_free_0003e320)(prVar4);" (call_expression "(*(code *)PTR_free_0003e320)(prVar4)" (parenthesized_expression "(*(code *)PTR_free_0003e320)" ( (pointer_expression "*(code *)PTR_free_0003e320" * (cast_expression "(code *)PTR_free_0003e320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(prVar4)" ( identifier ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) (goto_statement "goto LAB_000299d8;" goto statement_identifier ;) })) (if_statement "if (uVar2 == 1) {\n      if (uVar8 <= regs->num_regs) goto LAB_00029958;\n      prVar4 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->start,uVar8 * 4);\n      if (prVar4 == (regoff_t *)0x0) {\n        uVar2 = 0;\n      }\n      else {\n        prVar5 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->end,uVar8 * 4);\n        if (prVar5 != (regoff_t *)0x0) {\n          regs->start = prVar4;\n          regs->end = prVar5;\n          regs->num_regs = uVar8;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(prVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return rVar6;\n      }\n      if (regs->num_regs < nmatch) {\n        rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return rVar6;\n      }\nLAB_00029958:\n      if ((int)nmatch < 1) {\n        nmatch = 0;\n      }\n      else {\n        prVar4 = &pmatch->rm_eo;\n        iVar7 = 0;\n        do {\n          *(regoff_t *)((int)regs->start + iVar7) = ((regmatch_t *)(prVar4 + -1))->rm_so;\n          *(regoff_t *)((int)regs->end + iVar7) = *prVar4;\n          iVar7 = iVar7 + 4;\n          prVar4 = prVar4 + 2;\n        } while (iVar7 != nmatch << 2);\n      }\n      if (nmatch < regs->num_regs) {\n        do {\n          regs->end[nmatch] = -1;\n          regs->start[nmatch] = -1;\n          nmatch = nmatch + 1;\n        } while (nmatch < regs->num_regs);\n      }\n    }" if (parenthesized_expression "(uVar2 == 1)" ( (binary_expression "uVar2 == 1" identifier == number_literal) )) (compound_statement "{\n      if (uVar8 <= regs->num_regs) goto LAB_00029958;\n      prVar4 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->start,uVar8 * 4);\n      if (prVar4 == (regoff_t *)0x0) {\n        uVar2 = 0;\n      }\n      else {\n        prVar5 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->end,uVar8 * 4);\n        if (prVar5 != (regoff_t *)0x0) {\n          regs->start = prVar4;\n          regs->end = prVar5;\n          regs->num_regs = uVar8;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(prVar4);\n        uVar2 = 0;\n      }\n    }" { (if_statement "if (uVar8 <= regs->num_regs) goto LAB_00029958;" if (parenthesized_expression "(uVar8 <= regs->num_regs)" ( (binary_expression "uVar8 <= regs->num_regs" identifier <= (field_expression "regs->num_regs" identifier -> field_identifier)) )) (goto_statement "goto LAB_00029958;" goto statement_identifier ;)) (expression_statement "prVar4 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->start,uVar8 * 4);" (assignment_expression "prVar4 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->start,uVar8 * 4)" identifier = (cast_expression "(regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->start,uVar8 * 4)" ( (type_descriptor "regoff_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_realloc_0003e2b8)(regs->start,uVar8 * 4)" (parenthesized_expression "(*(code *)PTR_realloc_0003e2b8)" ( (pointer_expression "*(code *)PTR_realloc_0003e2b8" * (cast_expression "(code *)PTR_realloc_0003e2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(regs->start,uVar8 * 4)" ( (field_expression "regs->start" identifier -> field_identifier) , (binary_expression "uVar8 * 4" identifier * number_literal) ))))) ;) (if_statement "if (prVar4 == (regoff_t *)0x0) {\n        uVar2 = 0;\n      }\n      else {\n        prVar5 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->end,uVar8 * 4);\n        if (prVar5 != (regoff_t *)0x0) {\n          regs->start = prVar4;\n          regs->end = prVar5;\n          regs->num_regs = uVar8;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(prVar4);\n        uVar2 = 0;\n      }" if (parenthesized_expression "(prVar4 == (regoff_t *)0x0)" ( (binary_expression "prVar4 == (regoff_t *)0x0" identifier == (cast_expression "(regoff_t *)0x0" ( (type_descriptor "regoff_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar2 = 0;\n      }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        prVar5 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->end,uVar8 * 4);\n        if (prVar5 != (regoff_t *)0x0) {\n          regs->start = prVar4;\n          regs->end = prVar5;\n          regs->num_regs = uVar8;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(prVar4);\n        uVar2 = 0;\n      }" else (compound_statement "{\n        prVar5 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->end,uVar8 * 4);\n        if (prVar5 != (regoff_t *)0x0) {\n          regs->start = prVar4;\n          regs->end = prVar5;\n          regs->num_regs = uVar8;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(prVar4);\n        uVar2 = 0;\n      }" { (expression_statement "prVar5 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->end,uVar8 * 4);" (assignment_expression "prVar5 = (regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->end,uVar8 * 4)" identifier = (cast_expression "(regoff_t *)(*(code *)PTR_realloc_0003e2b8)(regs->end,uVar8 * 4)" ( (type_descriptor "regoff_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_realloc_0003e2b8)(regs->end,uVar8 * 4)" (parenthesized_expression "(*(code *)PTR_realloc_0003e2b8)" ( (pointer_expression "*(code *)PTR_realloc_0003e2b8" * (cast_expression "(code *)PTR_realloc_0003e2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(regs->end,uVar8 * 4)" ( (field_expression "regs->end" identifier -> field_identifier) , (binary_expression "uVar8 * 4" identifier * number_literal) ))))) ;) (if_statement "if (prVar5 != (regoff_t *)0x0) {\n          regs->start = prVar4;\n          regs->end = prVar5;\n          regs->num_regs = uVar8;\n          goto LAB_00029958;\n        }" if (parenthesized_expression "(prVar5 != (regoff_t *)0x0)" ( (binary_expression "prVar5 != (regoff_t *)0x0" identifier != (cast_expression "(regoff_t *)0x0" ( (type_descriptor "regoff_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          regs->start = prVar4;\n          regs->end = prVar5;\n          regs->num_regs = uVar8;\n          goto LAB_00029958;\n        }" { (expression_statement "regs->start = prVar4;" (assignment_expression "regs->start = prVar4" (field_expression "regs->start" identifier -> field_identifier) = identifier) ;) (expression_statement "regs->end = prVar5;" (assignment_expression "regs->end = prVar5" (field_expression "regs->end" identifier -> field_identifier) = identifier) ;) (expression_statement "regs->num_regs = uVar8;" (assignment_expression "regs->num_regs = uVar8" (field_expression "regs->num_regs" identifier -> field_identifier) = identifier) ;) (goto_statement "goto LAB_00029958;" goto statement_identifier ;) })) (expression_statement "(*(code *)PTR_free_0003e320)(prVar4);" (call_expression "(*(code *)PTR_free_0003e320)(prVar4)" (parenthesized_expression "(*(code *)PTR_free_0003e320)" ( (pointer_expression "*(code *)PTR_free_0003e320" * (cast_expression "(code *)PTR_free_0003e320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(prVar4)" ( identifier ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) }) (else_clause "else {\n      if (uVar2 != 2) {\n        rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return rVar6;\n      }\n      if (regs->num_regs < nmatch) {\n        rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return rVar6;\n      }\nLAB_00029958:\n      if ((int)nmatch < 1) {\n        nmatch = 0;\n      }\n      else {\n        prVar4 = &pmatch->rm_eo;\n        iVar7 = 0;\n        do {\n          *(regoff_t *)((int)regs->start + iVar7) = ((regmatch_t *)(prVar4 + -1))->rm_so;\n          *(regoff_t *)((int)regs->end + iVar7) = *prVar4;\n          iVar7 = iVar7 + 4;\n          prVar4 = prVar4 + 2;\n        } while (iVar7 != nmatch << 2);\n      }\n      if (nmatch < regs->num_regs) {\n        do {\n          regs->end[nmatch] = -1;\n          regs->start[nmatch] = -1;\n          nmatch = nmatch + 1;\n        } while (nmatch < regs->num_regs);\n      }\n    }" else (compound_statement "{\n      if (uVar2 != 2) {\n        rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return rVar6;\n      }\n      if (regs->num_regs < nmatch) {\n        rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return rVar6;\n      }\nLAB_00029958:\n      if ((int)nmatch < 1) {\n        nmatch = 0;\n      }\n      else {\n        prVar4 = &pmatch->rm_eo;\n        iVar7 = 0;\n        do {\n          *(regoff_t *)((int)regs->start + iVar7) = ((regmatch_t *)(prVar4 + -1))->rm_so;\n          *(regoff_t *)((int)regs->end + iVar7) = *prVar4;\n          iVar7 = iVar7 + 4;\n          prVar4 = prVar4 + 2;\n        } while (iVar7 != nmatch << 2);\n      }\n      if (nmatch < regs->num_regs) {\n        do {\n          regs->end[nmatch] = -1;\n          regs->start[nmatch] = -1;\n          nmatch = nmatch + 1;\n        } while (nmatch < regs->num_regs);\n      }\n    }" { (if_statement "if (uVar2 != 2) {\n        rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return rVar6;\n      }" if (parenthesized_expression "(uVar2 != 2)" ( (binary_expression "uVar2 != 2" identifier != number_literal) )) (compound_statement "{\n        rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return rVar6;\n      }" { (expression_statement "rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);" (assignment_expression "rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0)" identifier = (call_expression "(*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003e220)" ( (pointer_expression "*(code *)PTR___assert_fail_0003e220" * (cast_expression "(code *)PTR___assert_fail_0003e220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0)" ( (binary_expression "PTR_DAT_0003e108 + -0x30a4" identifier + number_literal) , (binary_expression "PTR_DAT_0003e108 + -0x3140" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003e108 + -0x33f0" identifier + number_literal) )))) ;) (return_statement "return rVar6;" return identifier ;) })) (if_statement "if (regs->num_regs < nmatch) {\n        rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return rVar6;\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        rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return rVar6;\n      }" { (expression_statement "rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);" (assignment_expression "rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0)" identifier = (call_expression "(*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003e220)" ( (pointer_expression "*(code *)PTR___assert_fail_0003e220" * (cast_expression "(code *)PTR___assert_fail_0003e220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0)" ( (binary_expression "PTR_DAT_0003e108 + -0x3084" identifier + number_literal) , (binary_expression "PTR_DAT_0003e108 + -0x3140" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003e108 + -0x33f0" identifier + number_literal) )))) ;) (return_statement "return rVar6;" return identifier ;) })) (labeled_statement "LAB_00029958:\n      if ((int)nmatch < 1) {\n        nmatch = 0;\n      }\n      else {\n        prVar4 = &pmatch->rm_eo;\n        iVar7 = 0;\n        do {\n          *(regoff_t *)((int)regs->start + iVar7) = ((regmatch_t *)(prVar4 + -1))->rm_so;\n          *(regoff_t *)((int)regs->end + iVar7) = *prVar4;\n          iVar7 = iVar7 + 4;\n          prVar4 = prVar4 + 2;\n        } while (iVar7 != nmatch << 2);\n      }" statement_identifier : (if_statement "if ((int)nmatch < 1) {\n        nmatch = 0;\n      }\n      else {\n        prVar4 = &pmatch->rm_eo;\n        iVar7 = 0;\n        do {\n          *(regoff_t *)((int)regs->start + iVar7) = ((regmatch_t *)(prVar4 + -1))->rm_so;\n          *(regoff_t *)((int)regs->end + iVar7) = *prVar4;\n          iVar7 = iVar7 + 4;\n          prVar4 = prVar4 + 2;\n        } while (iVar7 != nmatch << 2);\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->rm_eo;\n        iVar7 = 0;\n        do {\n          *(regoff_t *)((int)regs->start + iVar7) = ((regmatch_t *)(prVar4 + -1))->rm_so;\n          *(regoff_t *)((int)regs->end + iVar7) = *prVar4;\n          iVar7 = iVar7 + 4;\n          prVar4 = prVar4 + 2;\n        } while (iVar7 != nmatch << 2);\n      }" else (compound_statement "{\n        prVar4 = &pmatch->rm_eo;\n        iVar7 = 0;\n        do {\n          *(regoff_t *)((int)regs->start + iVar7) = ((regmatch_t *)(prVar4 + -1))->rm_so;\n          *(regoff_t *)((int)regs->end + iVar7) = *prVar4;\n          iVar7 = iVar7 + 4;\n          prVar4 = prVar4 + 2;\n        } while (iVar7 != nmatch << 2);\n      }" { (expression_statement "prVar4 = &pmatch->rm_eo;" (assignment_expression "prVar4 = &pmatch->rm_eo" identifier = (pointer_expression "&pmatch->rm_eo" & (field_expression "pmatch->rm_eo" identifier -> field_identifier))) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n          *(regoff_t *)((int)regs->start + iVar7) = ((regmatch_t *)(prVar4 + -1))->rm_so;\n          *(regoff_t *)((int)regs->end + iVar7) = *prVar4;\n          iVar7 = iVar7 + 4;\n          prVar4 = prVar4 + 2;\n        } while (iVar7 != nmatch << 2);" do (compound_statement "{\n          *(regoff_t *)((int)regs->start + iVar7) = ((regmatch_t *)(prVar4 + -1))->rm_so;\n          *(regoff_t *)((int)regs->end + iVar7) = *prVar4;\n          iVar7 = iVar7 + 4;\n          prVar4 = prVar4 + 2;\n        }" { (expression_statement "*(regoff_t *)((int)regs->start + iVar7) = ((regmatch_t *)(prVar4 + -1))->rm_so;" (assignment_expression "*(regoff_t *)((int)regs->start + iVar7) = ((regmatch_t *)(prVar4 + -1))->rm_so" (pointer_expression "*(regoff_t *)((int)regs->start + iVar7)" * (cast_expression "(regoff_t *)((int)regs->start + iVar7)" ( (type_descriptor "regoff_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)regs->start + iVar7)" ( (binary_expression "(int)regs->start + iVar7" (cast_expression "(int)regs->start" ( (type_descriptor "int" primitive_type) ) (field_expression "regs->start" identifier -> field_identifier)) + identifier) )))) = (field_expression "((regmatch_t *)(prVar4 + -1))->rm_so" (parenthesized_expression "((regmatch_t *)(prVar4 + -1))" ( (cast_expression "(regmatch_t *)(prVar4 + -1)" ( (type_descriptor "regmatch_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(prVar4 + -1)" ( (binary_expression "prVar4 + -1" identifier + number_literal) ))) )) -> field_identifier)) ;) (expression_statement "*(regoff_t *)((int)regs->end + iVar7) = *prVar4;" (assignment_expression "*(regoff_t *)((int)regs->end + iVar7) = *prVar4" (pointer_expression "*(regoff_t *)((int)regs->end + iVar7)" * (cast_expression "(regoff_t *)((int)regs->end + iVar7)" ( (type_descriptor "regoff_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)regs->end + iVar7)" ( (binary_expression "(int)regs->end + iVar7" (cast_expression "(int)regs->end" ( (type_descriptor "int" primitive_type) ) (field_expression "regs->end" identifier -> field_identifier)) + identifier) )))) = (pointer_expression "*prVar4" * identifier)) ;) (expression_statement "iVar7 = iVar7 + 4;" (assignment_expression "iVar7 = iVar7 + 4" identifier = (binary_expression "iVar7 + 4" identifier + number_literal)) ;) (expression_statement "prVar4 = prVar4 + 2;" (assignment_expression "prVar4 = prVar4 + 2" identifier = (binary_expression "prVar4 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != nmatch << 2)" ( (binary_expression "iVar7 != nmatch << 2" identifier != (binary_expression "nmatch << 2" identifier << number_literal)) )) ;) })))) (if_statement "if (nmatch < regs->num_regs) {\n        do {\n          regs->end[nmatch] = -1;\n          regs->start[nmatch] = -1;\n          nmatch = nmatch + 1;\n        } while (nmatch < 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        do {\n          regs->end[nmatch] = -1;\n          regs->start[nmatch] = -1;\n          nmatch = nmatch + 1;\n        } while (nmatch < regs->num_regs);\n      }" { (do_statement "do {\n          regs->end[nmatch] = -1;\n          regs->start[nmatch] = -1;\n          nmatch = nmatch + 1;\n        } while (nmatch < regs->num_regs);" do (compound_statement "{\n          regs->end[nmatch] = -1;\n          regs->start[nmatch] = -1;\n          nmatch = nmatch + 1;\n        }" { (expression_statement "regs->end[nmatch] = -1;" (assignment_expression "regs->end[nmatch] = -1" (subscript_expression "regs->end[nmatch]" (field_expression "regs->end" identifier -> field_identifier) [ identifier ]) = number_literal) ;) (expression_statement "regs->start[nmatch] = -1;" (assignment_expression "regs->start[nmatch] = -1" (subscript_expression "regs->start[nmatch]" (field_expression "regs->start" identifier -> field_identifier) [ identifier ]) = number_literal) ;) (expression_statement "nmatch = nmatch + 1;" (assignment_expression "nmatch = nmatch + 1" identifier = (binary_expression "nmatch + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(nmatch < regs->num_regs)" ( (binary_expression "nmatch < regs->num_regs" identifier < (field_expression "regs->num_regs" identifier -> field_identifier)) )) ;) })) }))) (labeled_statement "LAB_000299d8:\n    bufp->field_0x1c = bufp->field_0x1c & 0x9f | (byte)(uVar2 << 5);" statement_identifier : (expression_statement "bufp->field_0x1c = bufp->field_0x1c & 0x9f | (byte)(uVar2 << 5);" (assignment_expression "bufp->field_0x1c = bufp->field_0x1c & 0x9f | (byte)(uVar2 << 5)" (field_expression "bufp->field_0x1c" identifier -> field_identifier) = (binary_expression "bufp->field_0x1c & 0x9f | (byte)(uVar2 << 5)" (binary_expression "bufp->field_0x1c & 0x9f" (field_expression "bufp->field_0x1c" identifier -> field_identifier) & number_literal) | (call_expression "(byte)(uVar2 << 5)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar2 << 5)" ( (binary_expression "uVar2 << 5" identifier << number_literal) ))))) ;)) (if_statement "if (uVar2 == 0) {\n      rVar6 = -2;\n      goto LAB_00029878;\n    }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      rVar6 = -2;\n      goto LAB_00029878;\n    }" { (expression_statement "rVar6 = -2;" (assignment_expression "rVar6 = -2" identifier = number_literal) ;) (goto_statement "goto LAB_00029878;" goto statement_identifier ;) })) })) (if_statement "if (ret_len) {\n    if (pmatch->rm_so != start) {\n      rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return rVar6;\n    }\n    rVar6 = pmatch->rm_eo - start;\n  }\n  else {\n    rVar6 = pmatch->rm_so;\n  }" if (parenthesized_expression "(ret_len)" ( identifier )) (compound_statement "{\n    if (pmatch->rm_so != start) {\n      rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return rVar6;\n    }\n    rVar6 = pmatch->rm_eo - start;\n  }" { (if_statement "if (pmatch->rm_so != start) {\n      rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return rVar6;\n    }" if (parenthesized_expression "(pmatch->rm_so != start)" ( (binary_expression "pmatch->rm_so != start" (field_expression "pmatch->rm_so" identifier -> field_identifier) != identifier) )) (compound_statement "{\n      rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return rVar6;\n    }" { (expression_statement "rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);" (assignment_expression "rVar6 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0)" identifier = (call_expression "(*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003e220)" ( (pointer_expression "*(code *)PTR___assert_fail_0003e220" * (cast_expression "(code *)PTR___assert_fail_0003e220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0)" ( (binary_expression "PTR_DAT_0003e108 + -0x306c" identifier + number_literal) , (binary_expression "PTR_DAT_0003e108 + -0x3140" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003e108 + -0x33e0" identifier + number_literal) )))) ;) (return_statement "return rVar6;" return identifier ;) })) (expression_statement "rVar6 = pmatch->rm_eo - start;" (assignment_expression "rVar6 = pmatch->rm_eo - start" identifier = (binary_expression "pmatch->rm_eo - start" (field_expression "pmatch->rm_eo" identifier -> field_identifier) - identifier)) ;) }) (else_clause "else {\n    rVar6 = pmatch->rm_so;\n  }" else (compound_statement "{\n    rVar6 = pmatch->rm_so;\n  }" { (expression_statement "rVar6 = pmatch->rm_so;" (assignment_expression "rVar6 = pmatch->rm_so" identifier = (field_expression "pmatch->rm_so" identifier -> field_identifier)) ;) }))) (labeled_statement "LAB_00029878:\n  (*(code *)PTR_free_0003e320)(pmatch);" statement_identifier : (expression_statement "(*(code *)PTR_free_0003e320)(pmatch);" (call_expression "(*(code *)PTR_free_0003e320)(pmatch)" (parenthesized_expression "(*(code *)PTR_free_0003e320)" ( (pointer_expression "*(code *)PTR_free_0003e320" * (cast_expression "(code *)PTR_free_0003e320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pmatch)" ( identifier ))) ;)) (return_statement "return rVar6;" return identifier ;) })))
(translation_unit "int FUN_000296dc(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  uint uVar5;\n  int *piVar6;\n  uint uVar7;\n  int iVar8;\n  int iVar9;\n  uint uVar10;\n  \n  iVar8 = param_4 + param_5;\n  if (param_4 < 0) {\n    return -1;\n  }\n  if (param_3 < param_4) {\n    return -1;\n  }\n  iVar9 = param_3;\n  if (param_3 < iVar8) {\nLAB_000297a0:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;\n    rpl_re_compile_fastmap(param_1);\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    iVar9 = 0;\nLAB_000297d0:\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }\n  uVar7 = 1;\n  if (iVar8 << 4 < 0) {\n    param_7 = (uint *)0x0;\n  }\n  else if (param_7 == (uint *)0x0) {\n    uVar7 = 1;\n  }\n  else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }\n  piVar3 = (int *)(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3);\n  if (piVar3 == (int *)0x0) {\n    return -2;\n  }\n  iVar8 = FUN_00027cb0(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2);\n  if (iVar8 != 0) {\n    param_4 = -2;\n    if (iVar8 == 1) {\n      param_4 = -1;\n    }\n    goto LAB_00029878;\n  }\n  if (param_7 != (uint *)0x0) {\n    uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n    uVar10 = uVar7 + 1;\n    if (uVar2 == 0) {\n      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n      param_7[1] = uVar2;\n      if (uVar2 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }\n    if (uVar2 == 1) {\n      if (uVar10 <= *param_7) goto LAB_00029958;\n      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);\n      if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }\nLAB_000299d8:\n    *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);\n    if (uVar2 == 0) {\n      param_4 = -2;\n      goto LAB_00029878;\n    }\n  }\n  if (param_8 == '\0') {\n    param_4 = *piVar3;\n  }\n  else {\n    if (*piVar3 != param_4) {\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }\n    param_4 = piVar3[1] - param_4;\n  }\nLAB_00029878:\n  (*(code *)PTR_free_0003e320)(piVar3);\n  return param_4;\n}\n\n" (function_definition "int FUN_000296dc(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  uint uVar5;\n  int *piVar6;\n  uint uVar7;\n  int iVar8;\n  int iVar9;\n  uint uVar10;\n  \n  iVar8 = param_4 + param_5;\n  if (param_4 < 0) {\n    return -1;\n  }\n  if (param_3 < param_4) {\n    return -1;\n  }\n  iVar9 = param_3;\n  if (param_3 < iVar8) {\nLAB_000297a0:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;\n    rpl_re_compile_fastmap(param_1);\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    iVar9 = 0;\nLAB_000297d0:\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }\n  uVar7 = 1;\n  if (iVar8 << 4 < 0) {\n    param_7 = (uint *)0x0;\n  }\n  else if (param_7 == (uint *)0x0) {\n    uVar7 = 1;\n  }\n  else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }\n  piVar3 = (int *)(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3);\n  if (piVar3 == (int *)0x0) {\n    return -2;\n  }\n  iVar8 = FUN_00027cb0(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2);\n  if (iVar8 != 0) {\n    param_4 = -2;\n    if (iVar8 == 1) {\n      param_4 = -1;\n    }\n    goto LAB_00029878;\n  }\n  if (param_7 != (uint *)0x0) {\n    uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n    uVar10 = uVar7 + 1;\n    if (uVar2 == 0) {\n      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n      param_7[1] = uVar2;\n      if (uVar2 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }\n    if (uVar2 == 1) {\n      if (uVar10 <= *param_7) goto LAB_00029958;\n      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);\n      if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }\nLAB_000299d8:\n    *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);\n    if (uVar2 == 0) {\n      param_4 = -2;\n      goto LAB_00029878;\n    }\n  }\n  if (param_8 == '\0') {\n    param_4 = *piVar3;\n  }\n  else {\n    if (*piVar3 != param_4) {\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }\n    param_4 = piVar3[1] - param_4;\n  }\nLAB_00029878:\n  (*(code *)PTR_free_0003e320)(piVar3);\n  return param_4;\n}" primitive_type (function_declarator "FUN_000296dc(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  uint uVar5;\n  int *piVar6;\n  uint uVar7;\n  int iVar8;\n  int iVar9;\n  uint uVar10;\n  \n  iVar8 = param_4 + param_5;\n  if (param_4 < 0) {\n    return -1;\n  }\n  if (param_3 < param_4) {\n    return -1;\n  }\n  iVar9 = param_3;\n  if (param_3 < iVar8) {\nLAB_000297a0:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;\n    rpl_re_compile_fastmap(param_1);\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    iVar9 = 0;\nLAB_000297d0:\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }\n  uVar7 = 1;\n  if (iVar8 << 4 < 0) {\n    param_7 = (uint *)0x0;\n  }\n  else if (param_7 == (uint *)0x0) {\n    uVar7 = 1;\n  }\n  else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }\n  piVar3 = (int *)(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3);\n  if (piVar3 == (int *)0x0) {\n    return -2;\n  }\n  iVar8 = FUN_00027cb0(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2);\n  if (iVar8 != 0) {\n    param_4 = -2;\n    if (iVar8 == 1) {\n      param_4 = -1;\n    }\n    goto LAB_00029878;\n  }\n  if (param_7 != (uint *)0x0) {\n    uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n    uVar10 = uVar7 + 1;\n    if (uVar2 == 0) {\n      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n      param_7[1] = uVar2;\n      if (uVar2 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }\n    if (uVar2 == 1) {\n      if (uVar10 <= *param_7) goto LAB_00029958;\n      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);\n      if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }\nLAB_000299d8:\n    *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);\n    if (uVar2 == 0) {\n      param_4 = -2;\n      goto LAB_00029878;\n    }\n  }\n  if (param_8 == '\0') {\n    param_4 = *piVar3;\n  }\n  else {\n    if (*piVar3 != param_4) {\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }\n    param_4 = piVar3[1] - param_4;\n  }\nLAB_00029878:\n  (*(code *)PTR_free_0003e320)(piVar3);\n  return param_4;\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 "uint uVar5;" type_identifier identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (expression_statement "iVar8 = param_4 + param_5;" (assignment_expression "iVar8 = param_4 + param_5" identifier = (binary_expression "param_4 + param_5" identifier + identifier)) ;) (if_statement "if (param_4 < 0) {\n    return -1;\n  }" if (parenthesized_expression "(param_4 < 0)" ( (binary_expression "param_4 < 0" identifier < number_literal) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })) (if_statement "if (param_3 < param_4) {\n    return -1;\n  }" if (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 "iVar9 = param_3;" (assignment_expression "iVar9 = param_3" identifier = identifier) ;) (if_statement "if (param_3 < iVar8) {\nLAB_000297a0:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;\n    rpl_re_compile_fastmap(param_1);\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    iVar9 = 0;\nLAB_000297d0:\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }" if (parenthesized_expression "(param_3 < iVar8)" ( (binary_expression "param_3 < iVar8" identifier < identifier) )) (compound_statement "{\nLAB_000297a0:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;\n    rpl_re_compile_fastmap(param_1);\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }" { (labeled_statement "LAB_000297a0:\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 (((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;" if (parenthesized_expression "(((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))" ( (binary_expression "((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0)" (parenthesized_expression "((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0))" ( (binary_expression "(iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)" (parenthesized_expression "(iVar9 <= param_4)" ( (binary_expression "iVar9 <= param_4" 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) ))) )) (goto_statement "goto LAB_000297d0;" goto statement_identifier ;)) (expression_statement "rpl_re_compile_fastmap(param_1);" (call_expression "rpl_re_compile_fastmap(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "iVar8 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar8 = *(int *)(param_1 + 0x1c)" identifier = (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) ))))) ;) }) (else_clause "else {\n    if (param_5 < 0) {\n      if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    iVar9 = 0;\nLAB_000297d0:\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }" else (compound_statement "{\n    if (param_5 < 0) {\n      if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    iVar9 = 0;\nLAB_000297d0:\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }" { (if_statement "if (param_5 < 0) {\n      if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\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 (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }" { (if_statement "if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" if (parenthesized_expression "(iVar8 < 0)" ( (binary_expression "iVar8 < 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        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" else (compound_statement "{\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" { (expression_statement "iVar9 = iVar8;" (assignment_expression "iVar9 = iVar8" identifier = identifier) ;) (if_statement "if (iVar8 < param_4) goto LAB_000297a0;" if (parenthesized_expression "(iVar8 < param_4)" ( (binary_expression "iVar8 < param_4" identifier < identifier) )) (goto_statement "goto LAB_000297a0;" 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 ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }" else (compound_statement "{\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }" { (if_statement "if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;" if (parenthesized_expression "((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8))" ( (binary_expression "(iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)" (parenthesized_expression "(iVar8 < param_4)" ( (binary_expression "iVar8 < param_4" identifier < identifier) )) || (parenthesized_expression "(iVar9 = iVar8, -1 < iVar8)" ( (comma_expression "iVar9 = iVar8, -1 < iVar8" (assignment_expression "iVar9 = iVar8" identifier = identifier) , (binary_expression "-1 < iVar8" number_literal < identifier)) ))) )) (goto_statement "goto LAB_000297a0;" 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 "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 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000297d0:\n    iVar8 = *(int *)(param_1 + 0x1c);" statement_identifier : (expression_statement "iVar8 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar8 = *(int *)(param_1 + 0x1c)" identifier = (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) ))))) ;)) }))) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) (if_statement "if (iVar8 << 4 < 0) {\n    param_7 = (uint *)0x0;\n  }\n  else if (param_7 == (uint *)0x0) {\n    uVar7 = 1;\n  }\n  else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }" if (parenthesized_expression "(iVar8 << 4 < 0)" ( (binary_expression "iVar8 << 4 < 0" (binary_expression "iVar8 << 4" identifier << number_literal) < number_literal) )) (compound_statement "{\n    param_7 = (uint *)0x0;\n  }" { (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 if (param_7 == (uint *)0x0) {\n    uVar7 = 1;\n  }\n  else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }" else (if_statement "if (param_7 == (uint *)0x0) {\n    uVar7 = 1;\n  }\n  else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\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    uVar7 = 1;\n  }" { (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) }) (else_clause "else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }" else (if_statement "if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }" if (parenthesized_expression "(((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18)))" ( (binary_expression "((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(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 "(uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))" ( (comma_expression "uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18)" (assignment_expression "uVar7 = *param_7" identifier = (pointer_expression "*param_7" * identifier)) , (binary_expression "uVar7 <= *(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)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }" { (if_statement "if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }" if (parenthesized_expression "((int)uVar7 < 1)" ( (binary_expression "(int)uVar7 < 1" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }" { (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 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    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }" else (compound_statement "{\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }" { (expression_statement "uVar7 = *(int *)(param_1 + 0x18) + 1;" (assignment_expression "uVar7 = *(int *)(param_1 + 0x18) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x18) + 1" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal)) ;) }))))))) (expression_statement "piVar3 = (int *)(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3);" (assignment_expression "piVar3 = (int *)(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3)" identifier = (cast_expression "(int *)(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3)" (parenthesized_expression "(*(code *)PTR_malloc_0003e2b4)" ( (pointer_expression "*(code *)PTR_malloc_0003e2b4" * (cast_expression "(code *)PTR_malloc_0003e2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar7 << 3)" ( (binary_expression "uVar7 << 3" identifier << number_literal) ))))) ;) (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 "iVar8 = FUN_00027cb0(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2);" (assignment_expression "iVar8 = FUN_00027cb0(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2)" identifier = (call_expression "FUN_00027cb0(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2)" identifier (argument_list "(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar8 != 0) {\n    param_4 = -2;\n    if (iVar8 == 1) {\n      param_4 = -1;\n    }\n    goto LAB_00029878;\n  }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n    param_4 = -2;\n    if (iVar8 == 1) {\n      param_4 = -1;\n    }\n    goto LAB_00029878;\n  }" { (expression_statement "param_4 = -2;" (assignment_expression "param_4 = -2" identifier = number_literal) ;) (if_statement "if (iVar8 == 1) {\n      param_4 = -1;\n    }" if (parenthesized_expression "(iVar8 == 1)" ( (binary_expression "iVar8 == 1" identifier == number_literal) )) (compound_statement "{\n      param_4 = -1;\n    }" { (expression_statement "param_4 = -1;" (assignment_expression "param_4 = -1" identifier = number_literal) ;) })) (goto_statement "goto LAB_00029878;" goto statement_identifier ;) })) (if_statement "if (param_7 != (uint *)0x0) {\n    uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n    uVar10 = uVar7 + 1;\n    if (uVar2 == 0) {\n      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n      param_7[1] = uVar2;\n      if (uVar2 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }\n    if (uVar2 == 1) {\n      if (uVar10 <= *param_7) goto LAB_00029958;\n      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);\n      if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }\nLAB_000299d8:\n    *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);\n    if (uVar2 == 0) {\n      param_4 = -2;\n      goto LAB_00029878;\n    }\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    uVar10 = uVar7 + 1;\n    if (uVar2 == 0) {\n      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n      param_7[1] = uVar2;\n      if (uVar2 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }\n    if (uVar2 == 1) {\n      if (uVar10 <= *param_7) goto LAB_00029958;\n      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);\n      if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }\nLAB_000299d8:\n    *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);\n    if (uVar2 == 0) {\n      param_4 = -2;\n      goto LAB_00029878;\n    }\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 "uVar10 = uVar7 + 1;" (assignment_expression "uVar10 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (if_statement "if (uVar2 == 0) {\n      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n      param_7[1] = uVar2;\n      if (uVar2 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n      param_7[1] = uVar2;\n      if (uVar2 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }" { (expression_statement "uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);" (assignment_expression "uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4)" identifier = (call_expression "(*(code *)PTR_malloc_0003e2b4)(uVar10 * 4)" (parenthesized_expression "(*(code *)PTR_malloc_0003e2b4)" ( (pointer_expression "*(code *)PTR_malloc_0003e2b4" * (cast_expression "(code *)PTR_malloc_0003e2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar10 * 4)" ( (binary_expression "uVar10 * 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        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar2 = 0;\n      }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }" else (compound_statement "{\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }" { (expression_statement "uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);" (assignment_expression "uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4)" identifier = (call_expression "(*(code *)PTR_malloc_0003e2b4)(uVar10 * 4)" (parenthesized_expression "(*(code *)PTR_malloc_0003e2b4)" ( (pointer_expression "*(code *)PTR_malloc_0003e2b4" * (cast_expression "(code *)PTR_malloc_0003e2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar10 * 4)" ( (binary_expression "uVar10 * 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 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }" if (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) (compound_statement "{\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }" { (expression_statement "*param_7 = uVar10;" (assignment_expression "*param_7 = uVar10" (pointer_expression "*param_7" * identifier) = identifier) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00029958;" goto statement_identifier ;) })) (expression_statement "(*(code *)PTR_free_0003e320)(uVar2);" (call_expression "(*(code *)PTR_free_0003e320)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_0003e320)" ( (pointer_expression "*(code *)PTR_free_0003e320" * (cast_expression "(code *)PTR_free_0003e320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) (goto_statement "goto LAB_000299d8;" goto statement_identifier ;) })) (if_statement "if (uVar2 == 1) {\n      if (uVar10 <= *param_7) goto LAB_00029958;\n      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);\n      if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }" if (parenthesized_expression "(uVar2 == 1)" ( (binary_expression "uVar2 == 1" identifier == number_literal) )) (compound_statement "{\n      if (uVar10 <= *param_7) goto LAB_00029958;\n      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);\n      if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }\n    }" { (if_statement "if (uVar10 <= *param_7) goto LAB_00029958;" if (parenthesized_expression "(uVar10 <= *param_7)" ( (binary_expression "uVar10 <= *param_7" identifier <= (pointer_expression "*param_7" * identifier)) )) (goto_statement "goto LAB_00029958;" goto statement_identifier ;)) (expression_statement "uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);" (assignment_expression "uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4)" identifier = (call_expression "(*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4)" (parenthesized_expression "(*(code *)PTR_realloc_0003e2b8)" ( (pointer_expression "*(code *)PTR_realloc_0003e2b8" * (cast_expression "(code *)PTR_realloc_0003e2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_7[1],uVar10 * 4)" ( (subscript_expression "param_7[1]" identifier [ number_literal ]) , (binary_expression "uVar10 * 4" identifier * number_literal) )))) ;) (if_statement "if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar2 = 0;\n      }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }" else (compound_statement "{\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }" { (expression_statement "uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);" (assignment_expression "uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4)" identifier = (call_expression "(*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4)" (parenthesized_expression "(*(code *)PTR_realloc_0003e2b8)" ( (pointer_expression "*(code *)PTR_realloc_0003e2b8" * (cast_expression "(code *)PTR_realloc_0003e2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_7[2],uVar10 * 4)" ( (subscript_expression "param_7[2]" identifier [ number_literal ]) , (binary_expression "uVar10 * 4" identifier * number_literal) )))) ;) (if_statement "if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (compound_statement "{\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }" { (expression_statement "param_7[1] = uVar4;" (assignment_expression "param_7[1] = uVar4" (subscript_expression "param_7[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_7[2] = uVar5;" (assignment_expression "param_7[2] = uVar5" (subscript_expression "param_7[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_7 = uVar10;" (assignment_expression "*param_7 = uVar10" (pointer_expression "*param_7" * identifier) = identifier) ;) (goto_statement "goto LAB_00029958;" goto statement_identifier ;) })) (expression_statement "(*(code *)PTR_free_0003e320)(uVar4);" (call_expression "(*(code *)PTR_free_0003e320)(uVar4)" (parenthesized_expression "(*(code *)PTR_free_0003e320)" ( (pointer_expression "*(code *)PTR_free_0003e320" * (cast_expression "(code *)PTR_free_0003e320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) }) (else_clause "else {\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }" else (compound_statement "{\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }" { (if_statement "if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }" if (parenthesized_expression "(uVar2 != 2)" ( (binary_expression "uVar2 != 2" identifier != number_literal) )) (compound_statement "{\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }" { (expression_statement "iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);" (assignment_expression "iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0)" identifier = (call_expression "(*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003e220)" ( (pointer_expression "*(code *)PTR___assert_fail_0003e220" * (cast_expression "(code *)PTR___assert_fail_0003e220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0)" ( (binary_expression "PTR_DAT_0003e108 + -0x30a4" identifier + number_literal) , (binary_expression "PTR_DAT_0003e108 + -0x3140" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003e108 + -0x33f0" identifier + number_literal) )))) ;) (return_statement "return iVar8;" return identifier ;) })) (if_statement "if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }" if (parenthesized_expression "(*param_7 < uVar7)" ( (binary_expression "*param_7 < uVar7" (pointer_expression "*param_7" * identifier) < identifier) )) (compound_statement "{\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }" { (expression_statement "iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);" (assignment_expression "iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0)" identifier = (call_expression "(*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003e220)" ( (pointer_expression "*(code *)PTR___assert_fail_0003e220" * (cast_expression "(code *)PTR___assert_fail_0003e220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0)" ( (binary_expression "PTR_DAT_0003e108 + -0x3084" identifier + number_literal) , (binary_expression "PTR_DAT_0003e108 + -0x3140" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003e108 + -0x33f0" identifier + number_literal) )))) ;) (return_statement "return iVar8;" return identifier ;) })) (labeled_statement "LAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }" statement_identifier : (if_statement "if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }" if (parenthesized_expression "((int)uVar7 < 1)" ( (binary_expression "(int)uVar7 < 1" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        uVar7 = 0;\n      }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }" else (compound_statement "{\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }" { (expression_statement "piVar6 = piVar3 + 1;" (assignment_expression "piVar6 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);" do (compound_statement "{\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        }" { (expression_statement "*(int *)(param_7[1] + iVar8) = piVar6[-1];" (assignment_expression "*(int *)(param_7[1] + iVar8) = piVar6[-1]" (pointer_expression "*(int *)(param_7[1] + iVar8)" * (cast_expression "(int *)(param_7[1] + iVar8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_7[1] + iVar8)" ( (binary_expression "param_7[1] + iVar8" (subscript_expression "param_7[1]" identifier [ number_literal ]) + identifier) )))) = (subscript_expression "piVar6[-1]" identifier [ number_literal ])) ;) (expression_statement "*(int *)(param_7[2] + iVar8) = *piVar6;" (assignment_expression "*(int *)(param_7[2] + iVar8) = *piVar6" (pointer_expression "*(int *)(param_7[2] + iVar8)" * (cast_expression "(int *)(param_7[2] + iVar8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_7[2] + iVar8)" ( (binary_expression "param_7[2] + iVar8" (subscript_expression "param_7[2]" identifier [ number_literal ]) + identifier) )))) = (pointer_expression "*piVar6" * identifier)) ;) (expression_statement "iVar8 = iVar8 + 4;" (assignment_expression "iVar8 = iVar8 + 4" identifier = (binary_expression "iVar8 + 4" identifier + number_literal)) ;) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" identifier = (binary_expression "piVar6 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar8 != uVar7 << 2)" ( (binary_expression "iVar8 != uVar7 << 2" identifier != (binary_expression "uVar7 << 2" identifier << number_literal)) )) ;) })))) (if_statement "if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }" if (parenthesized_expression "(uVar7 < *param_7)" ( (binary_expression "uVar7 < *param_7" identifier < (pointer_expression "*param_7" * identifier)) )) (compound_statement "{\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }" { (do_statement "do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);" do (compound_statement "{\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        }" { (expression_statement "*(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_7[2] + uVar7 * 4)" * (cast_expression "(undefined4 *)(param_7[2] + uVar7 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_7[2] + uVar7 * 4)" ( (binary_expression "param_7[2] + uVar7 * 4" (subscript_expression "param_7[2]" identifier [ number_literal ]) + (binary_expression "uVar7 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_7[1] + uVar7 * 4)" * (cast_expression "(undefined4 *)(param_7[1] + uVar7 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_7[1] + uVar7 * 4)" ( (binary_expression "param_7[1] + uVar7 * 4" (subscript_expression "param_7[1]" identifier [ number_literal ]) + (binary_expression "uVar7 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar7 < *param_7)" ( (binary_expression "uVar7 < *param_7" identifier < (pointer_expression "*param_7" * identifier)) )) ;) })) }))) (labeled_statement "LAB_000299d8:\n    *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);" statement_identifier : (expression_statement "*(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);" (assignment_expression "*(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 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)(uVar2 << 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)(uVar2 << 5)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar2 << 5)" ( (binary_expression "uVar2 << 5" identifier << number_literal) ))))) ;)) (if_statement "if (uVar2 == 0) {\n      param_4 = -2;\n      goto LAB_00029878;\n    }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      param_4 = -2;\n      goto LAB_00029878;\n    }" { (expression_statement "param_4 = -2;" (assignment_expression "param_4 = -2" identifier = number_literal) ;) (goto_statement "goto LAB_00029878;" goto statement_identifier ;) })) })) (if_statement "if (param_8 == '\0') {\n    param_4 = *piVar3;\n  }\n  else {\n    if (*piVar3 != param_4) {\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }\n    param_4 = piVar3[1] - param_4;\n  }" if (parenthesized_expression "(param_8 == '\0')" ( (binary_expression "param_8 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    param_4 = *piVar3;\n  }" { (expression_statement "param_4 = *piVar3;" (assignment_expression "param_4 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) }) (else_clause "else {\n    if (*piVar3 != param_4) {\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }\n    param_4 = piVar3[1] - param_4;\n  }" else (compound_statement "{\n    if (*piVar3 != param_4) {\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }\n    param_4 = piVar3[1] - param_4;\n  }" { (if_statement "if (*piVar3 != param_4) {\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }" if (parenthesized_expression "(*piVar3 != param_4)" ( (binary_expression "*piVar3 != param_4" (pointer_expression "*piVar3" * identifier) != identifier) )) (compound_statement "{\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }" { (expression_statement "iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);" (assignment_expression "iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0)" identifier = (call_expression "(*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003e220)" ( (pointer_expression "*(code *)PTR___assert_fail_0003e220" * (cast_expression "(code *)PTR___assert_fail_0003e220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0)" ( (binary_expression "PTR_DAT_0003e108 + -0x306c" identifier + number_literal) , (binary_expression "PTR_DAT_0003e108 + -0x3140" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0003e108 + -0x33e0" identifier + number_literal) )))) ;) (return_statement "return iVar8;" return identifier ;) })) (expression_statement "param_4 = piVar3[1] - param_4;" (assignment_expression "param_4 = piVar3[1] - param_4" identifier = (binary_expression "piVar3[1] - param_4" (subscript_expression "piVar3[1]" identifier [ number_literal ]) - identifier)) ;) }))) (labeled_statement "LAB_00029878:\n  (*(code *)PTR_free_0003e320)(piVar3);" statement_identifier : (expression_statement "(*(code *)PTR_free_0003e320)(piVar3);" (call_expression "(*(code *)PTR_free_0003e320)(piVar3)" (parenthesized_expression "(*(code *)PTR_free_0003e320)" ( (pointer_expression "*(code *)PTR_free_0003e320" * (cast_expression "(code *)PTR_free_0003e320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar3)" ( identifier ))) ;)) (return_statement "return param_4;" 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 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 IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (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) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (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 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 = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT) | (binary_expression IDENT & LIT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT << LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (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) )) (compound_statement { (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 = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + 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 ( (binary_expression IDENT << LIT) ))))) ;) (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 { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (goto_statement goto statement_identifier ;) })) (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 = LIT) ;) }) (else_clause else (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 ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * IDENT)) )) (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) ;) }) (else_clause else (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) )) (compound_statement { (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) ;) (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 ))) ;) (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 = (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 ;) })) (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 = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) )))) = (pointer_expression * 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 << LIT)) )) ;) })))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * IDENT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression 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) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) (else_clause else (compound_statement { (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 ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - IDENT)) ;) }))) (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_000296dc(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  uint uVar5;\n  int *piVar6;\n  uint uVar7;\n  int iVar8;\n  int iVar9;\n  uint uVar10;\n  \n  iVar8 = param_4 + param_5;\n  if (param_4 < 0) {\n    return -1;\n  }\n  if (param_3 < param_4) {\n    return -1;\n  }\n  iVar9 = param_3;\n  if (param_3 < iVar8) {\nLAB_000297a0:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;\n    rpl_re_compile_fastmap(param_1);\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    iVar9 = 0;\nLAB_000297d0:\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }\n  uVar7 = 1;\n  if (iVar8 << 4 < 0) {\n    param_7 = (uint *)0x0;\n  }\n  else if (param_7 == (uint *)0x0) {\n    uVar7 = 1;\n  }\n  else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }\n  piVar3 = (int *)(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3);\n  if (piVar3 == (int *)0x0) {\n    return -2;\n  }\n  iVar8 = FUN_00027cb0(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2);\n  if (iVar8 != 0) {\n    param_4 = -2;\n    if (iVar8 == 1) {\n      param_4 = -1;\n    }\n    goto LAB_00029878;\n  }\n  if (param_7 != (uint *)0x0) {\n    uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n    uVar10 = uVar7 + 1;\n    if (uVar2 == 0) {\n      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n      param_7[1] = uVar2;\n      if (uVar2 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }\n    if (uVar2 == 1) {\n      if (uVar10 <= *param_7) goto LAB_00029958;\n      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);\n      if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }\nLAB_000299d8:\n    *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);\n    if (uVar2 == 0) {\n      param_4 = -2;\n      goto LAB_00029878;\n    }\n  }\n  if (param_8 == '\0') {\n    param_4 = *piVar3;\n  }\n  else {\n    if (*piVar3 != param_4) {\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }\n    param_4 = piVar3[1] - param_4;\n  }\nLAB_00029878:\n  (*(code *)PTR_free_0003e320)(piVar3);\n  return param_4;\n}" (primitive_type "int") (function_declarator "FUN_000296dc(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_000296dc") (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  uint uVar5;\n  int *piVar6;\n  uint uVar7;\n  int iVar8;\n  int iVar9;\n  uint uVar10;\n  \n  iVar8 = param_4 + param_5;\n  if (param_4 < 0) {\n    return -1;\n  }\n  if (param_3 < param_4) {\n    return -1;\n  }\n  iVar9 = param_3;\n  if (param_3 < iVar8) {\nLAB_000297a0:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;\n    rpl_re_compile_fastmap(param_1);\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    iVar9 = 0;\nLAB_000297d0:\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }\n  uVar7 = 1;\n  if (iVar8 << 4 < 0) {\n    param_7 = (uint *)0x0;\n  }\n  else if (param_7 == (uint *)0x0) {\n    uVar7 = 1;\n  }\n  else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }\n  piVar3 = (int *)(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3);\n  if (piVar3 == (int *)0x0) {\n    return -2;\n  }\n  iVar8 = FUN_00027cb0(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2);\n  if (iVar8 != 0) {\n    param_4 = -2;\n    if (iVar8 == 1) {\n      param_4 = -1;\n    }\n    goto LAB_00029878;\n  }\n  if (param_7 != (uint *)0x0) {\n    uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n    uVar10 = uVar7 + 1;\n    if (uVar2 == 0) {\n      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n      param_7[1] = uVar2;\n      if (uVar2 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }\n    if (uVar2 == 1) {\n      if (uVar10 <= *param_7) goto LAB_00029958;\n      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);\n      if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }\nLAB_000299d8:\n    *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);\n    if (uVar2 == 0) {\n      param_4 = -2;\n      goto LAB_00029878;\n    }\n  }\n  if (param_8 == '\0') {\n    param_4 = *piVar3;\n  }\n  else {\n    if (*piVar3 != param_4) {\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }\n    param_4 = piVar3[1] - param_4;\n  }\nLAB_00029878:\n  (*(code *)PTR_free_0003e320)(piVar3);\n  return param_4;\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 "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (expression_statement "iVar8 = param_4 + param_5;" (assignment_expression "iVar8 = param_4 + param_5" (identifier "iVar8") (= "=") (binary_expression "param_4 + param_5" (identifier "param_4") (+ "+") (identifier "param_5"))) (; ";")) (if_statement "if (param_4 < 0) {\n    return -1;\n  }" (if "if") (parenthesized_expression "(param_4 < 0)" (( "(") (binary_expression "param_4 < 0" (identifier "param_4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    return -1;\n  }" ({ "{") (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))) (if_statement "if (param_3 < param_4) {\n    return -1;\n  }" (if "if") (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 "iVar9 = param_3;" (assignment_expression "iVar9 = param_3" (identifier "iVar9") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (param_3 < iVar8) {\nLAB_000297a0:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;\n    rpl_re_compile_fastmap(param_1);\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }\n  else {\n    if (param_5 < 0) {\n      if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    iVar9 = 0;\nLAB_000297d0:\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }" (if "if") (parenthesized_expression "(param_3 < iVar8)" (( "(") (binary_expression "param_3 < iVar8" (identifier "param_3") (< "<") (identifier "iVar8")) () ")")) (compound_statement "{\nLAB_000297a0:\n    bVar1 = *(byte *)(param_1 + 0x1c);\n    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;\n    if (((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;\n    rpl_re_compile_fastmap(param_1);\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }" ({ "{") (labeled_statement "LAB_000297a0:\n    bVar1 = *(byte *)(param_1 + 0x1c);" (statement_identifier "LAB_000297a0") (: ":") (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 (((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))\n    goto LAB_000297d0;" (if "if") (parenthesized_expression "(((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))" (( "(") (binary_expression "((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0)" (parenthesized_expression "((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0))" (( "(") (binary_expression "(iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)" (parenthesized_expression "(iVar9 <= param_4)" (( "(") (binary_expression "iVar9 <= param_4" (identifier "iVar9") (<= "<=") (identifier "param_4")) () ")")) (|| "||") (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")) () ")"))) () ")")) (goto_statement "goto LAB_000297d0;" (goto "goto") (statement_identifier "LAB_000297d0") (; ";"))) (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") () ")"))) (; ";")) (expression_statement "iVar8 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar8 = *(int *)(param_1 + 0x1c)" (identifier "iVar8") (= "=") (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")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    if (param_5 < 0) {\n      if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    iVar9 = 0;\nLAB_000297d0:\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }" (else "else") (compound_statement "{\n    if (param_5 < 0) {\n      if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }\n    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;\n    iVar9 = 0;\nLAB_000297d0:\n    iVar8 = *(int *)(param_1 + 0x1c);\n  }" ({ "{") (if_statement "if (param_5 < 0) {\n      if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }\n    else {\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\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 (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n    }" ({ "{") (if_statement "if (iVar8 < 0) {\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }\n      else {\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" (if "if") (parenthesized_expression "(iVar8 < 0)" (( "(") (binary_expression "iVar8 < 0" (identifier "iVar8") (< "<") (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        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" (else "else") (compound_statement "{\n        iVar9 = iVar8;\n        if (iVar8 < param_4) goto LAB_000297a0;\n        uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n      }" ({ "{") (expression_statement "iVar9 = iVar8;" (assignment_expression "iVar9 = iVar8" (identifier "iVar9") (= "=") (identifier "iVar8")) (; ";")) (if_statement "if (iVar8 < param_4) goto LAB_000297a0;" (if "if") (parenthesized_expression "(iVar8 < param_4)" (( "(") (binary_expression "iVar8 < param_4" (identifier "iVar8") (< "<") (identifier "param_4")) () ")")) (goto_statement "goto LAB_000297a0;" (goto "goto") (statement_identifier "LAB_000297a0") (; ";"))) (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 ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }" (else "else") (compound_statement "{\n      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;\n      uVar2 = (uint)*(byte *)(param_1 + 0x1c);\n    }" ({ "{") (if_statement "if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;" (if "if") (parenthesized_expression "((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8))" (( "(") (binary_expression "(iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)" (parenthesized_expression "(iVar8 < param_4)" (( "(") (binary_expression "iVar8 < param_4" (identifier "iVar8") (< "<") (identifier "param_4")) () ")")) (|| "||") (parenthesized_expression "(iVar9 = iVar8, -1 < iVar8)" (( "(") (comma_expression "iVar9 = iVar8, -1 < iVar8" (assignment_expression "iVar9 = iVar8" (identifier "iVar9") (= "=") (identifier "iVar8")) (, ",") (binary_expression "-1 < iVar8" (number_literal "-1") (< "<") (identifier "iVar8"))) () ")"))) () ")")) (goto_statement "goto LAB_000297a0;" (goto "goto") (statement_identifier "LAB_000297a0") (; ";"))) (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 "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 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_000297d0:\n    iVar8 = *(int *)(param_1 + 0x1c);" (statement_identifier "LAB_000297d0") (: ":") (expression_statement "iVar8 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar8 = *(int *)(param_1 + 0x1c)" (identifier "iVar8") (= "=") (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")) () ")"))))) (; ";"))) (} "}")))) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" (identifier "uVar7") (= "=") (number_literal "1")) (; ";")) (if_statement "if (iVar8 << 4 < 0) {\n    param_7 = (uint *)0x0;\n  }\n  else if (param_7 == (uint *)0x0) {\n    uVar7 = 1;\n  }\n  else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }" (if "if") (parenthesized_expression "(iVar8 << 4 < 0)" (( "(") (binary_expression "iVar8 << 4 < 0" (binary_expression "iVar8 << 4" (identifier "iVar8") (<< "<<") (number_literal "4")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    param_7 = (uint *)0x0;\n  }" ({ "{") (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 if (param_7 == (uint *)0x0) {\n    uVar7 = 1;\n  }\n  else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }" (else "else") (if_statement "if (param_7 == (uint *)0x0) {\n    uVar7 = 1;\n  }\n  else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\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    uVar7 = 1;\n  }" ({ "{") (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" (identifier "uVar7") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }" (else "else") (if_statement "if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {\n    if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }\n  else {\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }" (if "if") (parenthesized_expression "(((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18)))" (( "(") (binary_expression "((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&\n          (uVar7 = *param_7, uVar7 <= *(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 "(uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))" (( "(") (comma_expression "uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18)" (assignment_expression "uVar7 = *param_7" (identifier "uVar7") (= "=") (pointer_expression "*param_7" (* "*") (identifier "param_7"))) (, ",") (binary_expression "uVar7 <= *(uint *)(param_1 + 0x18)" (identifier "uVar7") (<= "<=") (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)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }\n  }" ({ "{") (if_statement "if ((int)uVar7 < 1) {\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }" (if "if") (parenthesized_expression "((int)uVar7 < 1)" (( "(") (binary_expression "(int)uVar7 < 1" (cast_expression "(int)uVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar7")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      uVar7 = 1;\n      param_7 = (uint *)0x0;\n    }" ({ "{") (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" (identifier "uVar7") (= "=") (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    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }" (else "else") (compound_statement "{\n    uVar7 = *(int *)(param_1 + 0x18) + 1;\n  }" ({ "{") (expression_statement "uVar7 = *(int *)(param_1 + 0x18) + 1;" (assignment_expression "uVar7 = *(int *)(param_1 + 0x18) + 1" (identifier "uVar7") (= "=") (binary_expression "*(int *)(param_1 + 0x18) + 1" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (} "}")))))))) (expression_statement "piVar3 = (int *)(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3);" (assignment_expression "piVar3 = (int *)(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3)" (identifier "piVar3") (= "=") (cast_expression "(int *)(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3)" (parenthesized_expression "(*(code *)PTR_malloc_0003e2b4)" (( "(") (pointer_expression "*(code *)PTR_malloc_0003e2b4" (* "*") (cast_expression "(code *)PTR_malloc_0003e2b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_0003e2b4"))) () ")")) (argument_list "(uVar7 << 3)" (( "(") (binary_expression "uVar7 << 3" (identifier "uVar7") (<< "<<") (number_literal "3")) () ")"))))) (; ";")) (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 "iVar8 = FUN_00027cb0(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2);" (assignment_expression "iVar8 = FUN_00027cb0(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2)" (identifier "iVar8") (= "=") (call_expression "FUN_00027cb0(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2)" (identifier "FUN_00027cb0") (argument_list "(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "iVar9") (, ",") (identifier "param_6") (, ",") (identifier "uVar7") (, ",") (identifier "piVar3") (, ",") (identifier "uVar2") () ")")))) (; ";")) (if_statement "if (iVar8 != 0) {\n    param_4 = -2;\n    if (iVar8 == 1) {\n      param_4 = -1;\n    }\n    goto LAB_00029878;\n  }" (if "if") (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    param_4 = -2;\n    if (iVar8 == 1) {\n      param_4 = -1;\n    }\n    goto LAB_00029878;\n  }" ({ "{") (expression_statement "param_4 = -2;" (assignment_expression "param_4 = -2" (identifier "param_4") (= "=") (number_literal "-2")) (; ";")) (if_statement "if (iVar8 == 1) {\n      param_4 = -1;\n    }" (if "if") (parenthesized_expression "(iVar8 == 1)" (( "(") (binary_expression "iVar8 == 1" (identifier "iVar8") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      param_4 = -1;\n    }" ({ "{") (expression_statement "param_4 = -1;" (assignment_expression "param_4 = -1" (identifier "param_4") (= "=") (number_literal "-1")) (; ";")) (} "}"))) (goto_statement "goto LAB_00029878;" (goto "goto") (statement_identifier "LAB_00029878") (; ";")) (} "}"))) (if_statement "if (param_7 != (uint *)0x0) {\n    uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;\n    uVar10 = uVar7 + 1;\n    if (uVar2 == 0) {\n      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n      param_7[1] = uVar2;\n      if (uVar2 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }\n    if (uVar2 == 1) {\n      if (uVar10 <= *param_7) goto LAB_00029958;\n      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);\n      if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }\nLAB_000299d8:\n    *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);\n    if (uVar2 == 0) {\n      param_4 = -2;\n      goto LAB_00029878;\n    }\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    uVar10 = uVar7 + 1;\n    if (uVar2 == 0) {\n      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n      param_7[1] = uVar2;\n      if (uVar2 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }\n    if (uVar2 == 1) {\n      if (uVar10 <= *param_7) goto LAB_00029958;\n      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);\n      if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }\nLAB_000299d8:\n    *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);\n    if (uVar2 == 0) {\n      param_4 = -2;\n      goto LAB_00029878;\n    }\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 "uVar10 = uVar7 + 1;" (assignment_expression "uVar10 = uVar7 + 1" (identifier "uVar10") (= "=") (binary_expression "uVar7 + 1" (identifier "uVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar2 == 0) {\n      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n      param_7[1] = uVar2;\n      if (uVar2 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n      param_7[1] = uVar2;\n      if (uVar2 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }\n      goto LAB_000299d8;\n    }" ({ "{") (expression_statement "uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);" (assignment_expression "uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_malloc_0003e2b4)(uVar10 * 4)" (parenthesized_expression "(*(code *)PTR_malloc_0003e2b4)" (( "(") (pointer_expression "*(code *)PTR_malloc_0003e2b4" (* "*") (cast_expression "(code *)PTR_malloc_0003e2b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_0003e2b4"))) () ")")) (argument_list "(uVar10 * 4)" (( "(") (binary_expression "uVar10 * 4" (identifier "uVar10") (* "*") (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        uVar2 = 0;\n      }\n      else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar2 = 0;\n      }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }" (else "else") (compound_statement "{\n        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);\n        param_7[2] = uVar4;\n        if (uVar4 != 0) {\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar2);\n        uVar2 = 0;\n      }" ({ "{") (expression_statement "uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);" (assignment_expression "uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_malloc_0003e2b4)(uVar10 * 4)" (parenthesized_expression "(*(code *)PTR_malloc_0003e2b4)" (( "(") (pointer_expression "*(code *)PTR_malloc_0003e2b4" (* "*") (cast_expression "(code *)PTR_malloc_0003e2b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_0003e2b4"))) () ")")) (argument_list "(uVar10 * 4)" (( "(") (binary_expression "uVar10 * 4" (identifier "uVar10") (* "*") (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 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }" (if "if") (parenthesized_expression "(uVar4 != 0)" (( "(") (binary_expression "uVar4 != 0" (identifier "uVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          *param_7 = uVar10;\n          uVar2 = 1;\n          goto LAB_00029958;\n        }" ({ "{") (expression_statement "*param_7 = uVar10;" (assignment_expression "*param_7 = uVar10" (pointer_expression "*param_7" (* "*") (identifier "param_7")) (= "=") (identifier "uVar10")) (; ";")) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_00029958;" (goto "goto") (statement_identifier "LAB_00029958") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_0003e320)(uVar2);" (call_expression "(*(code *)PTR_free_0003e320)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_0003e320)" (( "(") (pointer_expression "*(code *)PTR_free_0003e320" (* "*") (cast_expression "(code *)PTR_free_0003e320" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0003e320"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")))) (goto_statement "goto LAB_000299d8;" (goto "goto") (statement_identifier "LAB_000299d8") (; ";")) (} "}"))) (if_statement "if (uVar2 == 1) {\n      if (uVar10 <= *param_7) goto LAB_00029958;\n      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);\n      if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }\n    }\n    else {\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }" (if "if") (parenthesized_expression "(uVar2 == 1)" (( "(") (binary_expression "uVar2 == 1" (identifier "uVar2") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      if (uVar10 <= *param_7) goto LAB_00029958;\n      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);\n      if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }\n    }" ({ "{") (if_statement "if (uVar10 <= *param_7) goto LAB_00029958;" (if "if") (parenthesized_expression "(uVar10 <= *param_7)" (( "(") (binary_expression "uVar10 <= *param_7" (identifier "uVar10") (<= "<=") (pointer_expression "*param_7" (* "*") (identifier "param_7"))) () ")")) (goto_statement "goto LAB_00029958;" (goto "goto") (statement_identifier "LAB_00029958") (; ";"))) (expression_statement "uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);" (assignment_expression "uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4)" (parenthesized_expression "(*(code *)PTR_realloc_0003e2b8)" (( "(") (pointer_expression "*(code *)PTR_realloc_0003e2b8" (* "*") (cast_expression "(code *)PTR_realloc_0003e2b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_realloc_0003e2b8"))) () ")")) (argument_list "(param_7[1],uVar10 * 4)" (( "(") (subscript_expression "param_7[1]" (identifier "param_7") ([ "[") (number_literal "1") (] "]")) (, ",") (binary_expression "uVar10 * 4" (identifier "uVar10") (* "*") (number_literal "4")) () ")")))) (; ";")) (if_statement "if (uVar4 == 0) {\n        uVar2 = 0;\n      }\n      else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }" (if "if") (parenthesized_expression "(uVar4 == 0)" (( "(") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar2 = 0;\n      }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }" (else "else") (compound_statement "{\n        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);\n        if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }\n        (*(code *)PTR_free_0003e320)(uVar4);\n        uVar2 = 0;\n      }" ({ "{") (expression_statement "uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);" (assignment_expression "uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4)" (parenthesized_expression "(*(code *)PTR_realloc_0003e2b8)" (( "(") (pointer_expression "*(code *)PTR_realloc_0003e2b8" (* "*") (cast_expression "(code *)PTR_realloc_0003e2b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_realloc_0003e2b8"))) () ")")) (argument_list "(param_7[2],uVar10 * 4)" (( "(") (subscript_expression "param_7[2]" (identifier "param_7") ([ "[") (number_literal "2") (] "]")) (, ",") (binary_expression "uVar10 * 4" (identifier "uVar10") (* "*") (number_literal "4")) () ")")))) (; ";")) (if_statement "if (uVar5 != 0) {\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }" (if "if") (parenthesized_expression "(uVar5 != 0)" (( "(") (binary_expression "uVar5 != 0" (identifier "uVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          param_7[1] = uVar4;\n          param_7[2] = uVar5;\n          *param_7 = uVar10;\n          goto LAB_00029958;\n        }" ({ "{") (expression_statement "param_7[1] = uVar4;" (assignment_expression "param_7[1] = uVar4" (subscript_expression "param_7[1]" (identifier "param_7") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "param_7[2] = uVar5;" (assignment_expression "param_7[2] = uVar5" (subscript_expression "param_7[2]" (identifier "param_7") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "*param_7 = uVar10;" (assignment_expression "*param_7 = uVar10" (pointer_expression "*param_7" (* "*") (identifier "param_7")) (= "=") (identifier "uVar10")) (; ";")) (goto_statement "goto LAB_00029958;" (goto "goto") (statement_identifier "LAB_00029958") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_0003e320)(uVar4);" (call_expression "(*(code *)PTR_free_0003e320)(uVar4)" (parenthesized_expression "(*(code *)PTR_free_0003e320)" (( "(") (pointer_expression "*(code *)PTR_free_0003e320" (* "*") (cast_expression "(code *)PTR_free_0003e320" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0003e320"))) () ")")) (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }" (else "else") (compound_statement "{\n      if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\n      if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }\nLAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }\n      if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }\n    }" ({ "{") (if_statement "if (uVar2 != 2) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }" (if "if") (parenthesized_expression "(uVar2 != 2)" (( "(") (binary_expression "uVar2 != 2" (identifier "uVar2") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }" ({ "{") (expression_statement "iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0);" (assignment_expression "iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0)" (identifier "iVar8") (= "=") (call_expression "(*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003e220)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_0003e220" (* "*") (cast_expression "(code *)PTR___assert_fail_0003e220" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_0003e220"))) () ")")) (argument_list "(PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,\n                           PTR_DAT_0003e108 + -0x33f0)" (( "(") (binary_expression "PTR_DAT_0003e108 + -0x30a4" (identifier "PTR_DAT_0003e108") (+ "+") (number_literal "-0x30a4")) (, ",") (binary_expression "PTR_DAT_0003e108 + -0x3140" (identifier "PTR_DAT_0003e108") (+ "+") (number_literal "-0x3140")) (, ",") (number_literal "0x1f8") (, ",") (binary_expression "PTR_DAT_0003e108 + -0x33f0" (identifier "PTR_DAT_0003e108") (+ "+") (number_literal "-0x33f0")) () ")")))) (; ";")) (return_statement "return iVar8;" (return "return") (identifier "iVar8") (; ";")) (} "}"))) (if_statement "if (*param_7 < uVar7) {\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }" (if "if") (parenthesized_expression "(*param_7 < uVar7)" (( "(") (binary_expression "*param_7 < uVar7" (pointer_expression "*param_7" (* "*") (identifier "param_7")) (< "<") (identifier "uVar7")) () ")")) (compound_statement "{\n        iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);\n        return iVar8;\n      }" ({ "{") (expression_statement "iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0);" (assignment_expression "iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0)" (identifier "iVar8") (= "=") (call_expression "(*(code *)PTR___assert_fail_0003e220)\n                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003e220)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_0003e220" (* "*") (cast_expression "(code *)PTR___assert_fail_0003e220" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_0003e220"))) () ")")) (argument_list "(PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,\n                           PTR_DAT_0003e108 + -0x33f0)" (( "(") (binary_expression "PTR_DAT_0003e108 + -0x3084" (identifier "PTR_DAT_0003e108") (+ "+") (number_literal "-0x3084")) (, ",") (binary_expression "PTR_DAT_0003e108 + -0x3140" (identifier "PTR_DAT_0003e108") (+ "+") (number_literal "-0x3140")) (, ",") (number_literal "0x1fa") (, ",") (binary_expression "PTR_DAT_0003e108 + -0x33f0" (identifier "PTR_DAT_0003e108") (+ "+") (number_literal "-0x33f0")) () ")")))) (; ";")) (return_statement "return iVar8;" (return "return") (identifier "iVar8") (; ";")) (} "}"))) (labeled_statement "LAB_00029958:\n      if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }" (statement_identifier "LAB_00029958") (: ":") (if_statement "if ((int)uVar7 < 1) {\n        uVar7 = 0;\n      }\n      else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }" (if "if") (parenthesized_expression "((int)uVar7 < 1)" (( "(") (binary_expression "(int)uVar7 < 1" (cast_expression "(int)uVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar7")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        uVar7 = 0;\n      }" ({ "{") (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }" (else "else") (compound_statement "{\n        piVar6 = piVar3 + 1;\n        iVar8 = 0;\n        do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);\n      }" ({ "{") (expression_statement "piVar6 = piVar3 + 1;" (assignment_expression "piVar6 = piVar3 + 1" (identifier "piVar6") (= "=") (binary_expression "piVar3 + 1" (identifier "piVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        } while (iVar8 != uVar7 << 2);" (do "do") (compound_statement "{\n          *(int *)(param_7[1] + iVar8) = piVar6[-1];\n          *(int *)(param_7[2] + iVar8) = *piVar6;\n          iVar8 = iVar8 + 4;\n          piVar6 = piVar6 + 2;\n        }" ({ "{") (expression_statement "*(int *)(param_7[1] + iVar8) = piVar6[-1];" (assignment_expression "*(int *)(param_7[1] + iVar8) = piVar6[-1]" (pointer_expression "*(int *)(param_7[1] + iVar8)" (* "*") (cast_expression "(int *)(param_7[1] + iVar8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_7[1] + iVar8)" (( "(") (binary_expression "param_7[1] + iVar8" (subscript_expression "param_7[1]" (identifier "param_7") ([ "[") (number_literal "1") (] "]")) (+ "+") (identifier "iVar8")) () ")")))) (= "=") (subscript_expression "piVar6[-1]" (identifier "piVar6") ([ "[") (number_literal "-1") (] "]"))) (; ";")) (expression_statement "*(int *)(param_7[2] + iVar8) = *piVar6;" (assignment_expression "*(int *)(param_7[2] + iVar8) = *piVar6" (pointer_expression "*(int *)(param_7[2] + iVar8)" (* "*") (cast_expression "(int *)(param_7[2] + iVar8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_7[2] + iVar8)" (( "(") (binary_expression "param_7[2] + iVar8" (subscript_expression "param_7[2]" (identifier "param_7") ([ "[") (number_literal "2") (] "]")) (+ "+") (identifier "iVar8")) () ")")))) (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (expression_statement "iVar8 = iVar8 + 4;" (assignment_expression "iVar8 = iVar8 + 4" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 4" (identifier "iVar8") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" (identifier "piVar6") (= "=") (binary_expression "piVar6 + 2" (identifier "piVar6") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar8 != uVar7 << 2)" (( "(") (binary_expression "iVar8 != uVar7 << 2" (identifier "iVar8") (!= "!=") (binary_expression "uVar7 << 2" (identifier "uVar7") (<< "<<") (number_literal "2"))) () ")")) (; ";")) (} "}"))))) (if_statement "if (uVar7 < *param_7) {\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }" (if "if") (parenthesized_expression "(uVar7 < *param_7)" (( "(") (binary_expression "uVar7 < *param_7" (identifier "uVar7") (< "<") (pointer_expression "*param_7" (* "*") (identifier "param_7"))) () ")")) (compound_statement "{\n        do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);\n      }" ({ "{") (do_statement "do {\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        } while (uVar7 < *param_7);" (do "do") (compound_statement "{\n          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;\n          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;\n          uVar7 = uVar7 + 1;\n        }" ({ "{") (expression_statement "*(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_7[2] + uVar7 * 4)" (* "*") (cast_expression "(undefined4 *)(param_7[2] + uVar7 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_7[2] + uVar7 * 4)" (( "(") (binary_expression "param_7[2] + uVar7 * 4" (subscript_expression "param_7[2]" (identifier "param_7") ([ "[") (number_literal "2") (] "]")) (+ "+") (binary_expression "uVar7 * 4" (identifier "uVar7") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_7[1] + uVar7 * 4)" (* "*") (cast_expression "(undefined4 *)(param_7[1] + uVar7 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_7[1] + uVar7 * 4)" (( "(") (binary_expression "param_7[1] + uVar7 * 4" (subscript_expression "param_7[1]" (identifier "param_7") ([ "[") (number_literal "1") (] "]")) (+ "+") (binary_expression "uVar7 * 4" (identifier "uVar7") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" (identifier "uVar7") (= "=") (binary_expression "uVar7 + 1" (identifier "uVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar7 < *param_7)" (( "(") (binary_expression "uVar7 < *param_7" (identifier "uVar7") (< "<") (pointer_expression "*param_7" (* "*") (identifier "param_7"))) () ")")) (; ";")) (} "}"))) (} "}")))) (labeled_statement "LAB_000299d8:\n    *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);" (statement_identifier "LAB_000299d8") (: ":") (expression_statement "*(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);" (assignment_expression "*(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 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)(uVar2 << 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)(uVar2 << 5)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar2 << 5)" (( "(") (binary_expression "uVar2 << 5" (identifier "uVar2") (<< "<<") (number_literal "5")) () ")"))))) (; ";"))) (if_statement "if (uVar2 == 0) {\n      param_4 = -2;\n      goto LAB_00029878;\n    }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      param_4 = -2;\n      goto LAB_00029878;\n    }" ({ "{") (expression_statement "param_4 = -2;" (assignment_expression "param_4 = -2" (identifier "param_4") (= "=") (number_literal "-2")) (; ";")) (goto_statement "goto LAB_00029878;" (goto "goto") (statement_identifier "LAB_00029878") (; ";")) (} "}"))) (} "}"))) (if_statement "if (param_8 == '\0') {\n    param_4 = *piVar3;\n  }\n  else {\n    if (*piVar3 != param_4) {\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }\n    param_4 = piVar3[1] - param_4;\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    param_4 = *piVar3;\n  }" ({ "{") (expression_statement "param_4 = *piVar3;" (assignment_expression "param_4 = *piVar3" (identifier "param_4") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (} "}")) (else_clause "else {\n    if (*piVar3 != param_4) {\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }\n    param_4 = piVar3[1] - param_4;\n  }" (else "else") (compound_statement "{\n    if (*piVar3 != param_4) {\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }\n    param_4 = piVar3[1] - param_4;\n  }" ({ "{") (if_statement "if (*piVar3 != param_4) {\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }" (if "if") (parenthesized_expression "(*piVar3 != param_4)" (( "(") (binary_expression "*piVar3 != param_4" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (!= "!=") (identifier "param_4")) () ")")) (compound_statement "{\n      iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);\n      return iVar8;\n    }" ({ "{") (expression_statement "iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0);" (assignment_expression "iVar8 = (*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0)" (identifier "iVar8") (= "=") (call_expression "(*(code *)PTR___assert_fail_0003e220)\n                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003e220)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_0003e220" (* "*") (cast_expression "(code *)PTR___assert_fail_0003e220" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_0003e220"))) () ")")) (argument_list "(PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,\n                         PTR_DAT_0003e108 + -0x33e0)" (( "(") (binary_expression "PTR_DAT_0003e108 + -0x306c" (identifier "PTR_DAT_0003e108") (+ "+") (number_literal "-0x306c")) (, ",") (binary_expression "PTR_DAT_0003e108 + -0x3140" (identifier "PTR_DAT_0003e108") (+ "+") (number_literal "-0x3140")) (, ",") (number_literal "0x1bd") (, ",") (binary_expression "PTR_DAT_0003e108 + -0x33e0" (identifier "PTR_DAT_0003e108") (+ "+") (number_literal "-0x33e0")) () ")")))) (; ";")) (return_statement "return iVar8;" (return "return") (identifier "iVar8") (; ";")) (} "}"))) (expression_statement "param_4 = piVar3[1] - param_4;" (assignment_expression "param_4 = piVar3[1] - param_4" (identifier "param_4") (= "=") (binary_expression "piVar3[1] - param_4" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (- "-") (identifier "param_4"))) (; ";")) (} "}")))) (labeled_statement "LAB_00029878:\n  (*(code *)PTR_free_0003e320)(piVar3);" (statement_identifier "LAB_00029878") (: ":") (expression_statement "(*(code *)PTR_free_0003e320)(piVar3);" (call_expression "(*(code *)PTR_free_0003e320)(piVar3)" (parenthesized_expression "(*(code *)PTR_free_0003e320)" (( "(") (pointer_expression "*(code *)PTR_free_0003e320" (* "*") (cast_expression "(code *)PTR_free_0003e320" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0003e320"))) () ")")) (argument_list "(piVar3)" (( "(") (identifier "piVar3") () ")"))) (; ";"))) (return_statement "return param_4;" (return "return") (identifier "param_4") (; ";")) (} "}")))

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_1 *var_17;
  type_1 *var_18;
  type_7 var_10;
  type_1 rVar6;
  int var_4;
  int var_6;
  type_7 var_16;
  
  var_4 = var_1 + var_2;
  if (var_1 < 0) {
    return -1;
  }
  if (var_3 < var_1) {
    return -1;
  }
  var_6 = var_3;
  if (var_3 < var_4) {
LAB_000297a0:
    var_5 = bufp->field_0x1c;
    var_8 = ((type_7)var_5 << 0x1d) >> 0x1f | var_5 & 2;
    if (((var_6 <= var_1) || (bufp->fastmap == (char *)0x0)) || ((var_5 & 0x10) != 0))
    goto LAB_000297d0;
    var_7(bufp);
    var_4 = *(int *)&bufp->field_0x1c;
  }
  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_000297a0;
        var_8 = (type_7)(type_6)bufp->field_0x1c;
      }
    }
    else {
      if ((var_4 < var_1) || (var_6 = var_4, -1 < var_4)) goto LAB_000297a0;
      var_8 = (type_7)(type_6)bufp->field_0x1c;
    }
    var_8 = (var_8 << 0x1d) >> 0x1f | var_8 & 2;
    var_6 = 0;
LAB_000297d0:
    var_4 = *(int *)&bufp->field_0x1c;
  }
  var_10 = 1;
  if (var_4 << 4 < 0) {
    var_9 = (type_4 *)0x0;
  }
  else if (var_9 == (type_4 *)0x0) {
    var_10 = 1;
  }
  else if (((bufp->field_0x1c & 0x60) == 0x40) && (var_10 = var_9->num_regs, var_10 <= bufp->re_nsub)
          ) {
    if ((int)var_10 < 1) {
      var_10 = 1;
      var_9 = (type_4 *)0x0;
    }
  }
  else {
    var_10 = bufp->re_nsub + 1;
  }
  var_11 = (type_8 *)(*(type_10 *)PTR_malloc_0003e2b4)(var_10 << 3);
  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) {
    rVar6 = -2;
    if (var_13 == var_15) {
      rVar6 = -1;
    }
    goto LAB_00029878;
  }
  if (var_9 != (type_4 *)0x0) {
    var_8 = (type_7)(*(int *)&bufp->field_0x1c << 1) >> 0x1e;
    var_16 = var_10 + 1;
    if (var_8 == 0) {
      var_17 = (type_1 *)(*(type_10 *)PTR_malloc_0003e2b4)(var_16 * 4);
      var_9->var_1 = var_17;
      if (var_17 == (type_1 *)0x0) {
        var_8 = 0;
      }
      else {
        var_18 = (type_1 *)(*(type_10 *)PTR_malloc_0003e2b4)(var_16 * 4);
        var_9->end = var_18;
        if (var_18 != (type_1 *)0x0) {
          var_9->num_regs = var_16;
          var_8 = 1;
          goto LAB_00029958;
        }
        (*(type_10 *)PTR_free_0003e320)(var_17);
        var_8 = 0;
      }
      goto LAB_000299d8;
    }
    if (var_8 == 1) {
      if (var_16 <= var_9->num_regs) goto LAB_00029958;
      var_17 = (type_1 *)(*(type_10 *)PTR_realloc_0003e2b8)(var_9->var_1,var_16 * 4);
      if (var_17 == (type_1 *)0x0) {
        var_8 = 0;
      }
      else {
        var_18 = (type_1 *)(*(type_10 *)PTR_realloc_0003e2b8)(var_9->end,var_16 * 4);
        if (var_18 != (type_1 *)0x0) {
          var_9->var_1 = var_17;
          var_9->end = var_18;
          var_9->num_regs = var_16;
          goto LAB_00029958;
        }
        (*(type_10 *)PTR_free_0003e320)(var_17);
        var_8 = 0;
      }
    }
    else {
      if (var_8 != 2) {
        rVar6 = (*(type_10 *)PTR___assert_fail_0003e220)
                          (var_19 + -0x30a4,var_19 + -0x3140,0x1f8,
                           var_19 + -0x33f0);
        return rVar6;
      }
      if (var_9->num_regs < var_10) {
        rVar6 = (*(type_10 *)PTR___assert_fail_0003e220)
                          (var_19 + -0x3084,var_19 + -0x3140,0x1fa,
                           var_19 + -0x33f0);
        return rVar6;
      }
LAB_00029958:
      if ((int)var_10 < 1) {
        var_10 = 0;
      }
      else {
        var_17 = &var_11->rm_eo;
        var_4 = 0;
        do {
          *(type_1 *)((int)var_9->var_1 + var_4) = ((type_8 *)(var_17 + -1))->rm_so;
          *(type_1 *)((int)var_9->end + var_4) = *var_17;
          var_4 = var_4 + 4;
          var_17 = var_17 + 2;
        } while (var_4 != var_10 << 2);
      }
      if (var_10 < var_9->num_regs) {
        do {
          var_9->end[var_10] = -1;
          var_9->var_1[var_10] = -1;
          var_10 = var_10 + 1;
        } while (var_10 < var_9->num_regs);
      }
    }
LAB_000299d8:
    bufp->field_0x1c = bufp->field_0x1c & 0x9f | (type_6)(var_8 << 5);
    if (var_8 == 0) {
      rVar6 = -2;
      goto LAB_00029878;
    }
  }
  if (ret_len) {
    if (var_11->rm_so != var_1) {
      rVar6 = (*(type_10 *)PTR___assert_fail_0003e220)
                        (var_19 + -0x306c,var_19 + -0x3140,0x1bd,
                         var_19 + -0x33e0);
      return rVar6;
    }
    rVar6 = var_11->rm_eo - var_1;
  }
  else {
    rVar6 = var_11->rm_so;
  }
LAB_00029878:
  (*(type_10 *)PTR_free_0003e320)(var_11);
  return rVar6;
}


(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: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) 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: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (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: (goto_statement label: (statement_identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (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: (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))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (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 (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: (number_literal)))) alternative: (else_clause (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: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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 (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (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 (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (goto_statement label: (statement_identifier)))) (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: (number_literal)))) alternative: (else_clause (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)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (goto_statement label: (statement_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: (pointer_expression argument: (identifier)))) 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)))) alternative: (else_clause (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: (compound_statement (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))) (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)))) (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: (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)))) (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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))))) right: (pointer_expression argument: (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: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (do_statement body: (compound_statement (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) 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: (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: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) alternative: (else_clause (compound_statement (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)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))))))) (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;
  uint uVar5;
  int *piVar6;
  uint uVar7;
  int iVar8;
  int iVar9;
  uint uVar10;
  
  iVar8 = param_4 + param_5;
  if (param_4 < 0) {
    return -1;
  }
  if (param_3 < param_4) {
    return -1;
  }
  iVar9 = param_3;
  if (param_3 < iVar8) {
LAB_000297a0:
    bVar1 = *(byte *)(param_1 + 0x1c);
    uVar2 = ((uint)bVar1 << 0x1d) >> 0x1f | bVar1 & 2;
    if (((iVar9 <= param_4) || (*(int *)(param_1 + 0x10) == 0)) || ((bVar1 & 0x10) != 0))
    goto LAB_000297d0;
    rpl_re_compile_fastmap(param_1);
    iVar8 = *(int *)(param_1 + 0x1c);
  }
  else {
    if (param_5 < 0) {
      if (iVar8 < 0) {
        uVar2 = (uint)*(byte *)(param_1 + 0x1c);
      }
      else {
        iVar9 = iVar8;
        if (iVar8 < param_4) goto LAB_000297a0;
        uVar2 = (uint)*(byte *)(param_1 + 0x1c);
      }
    }
    else {
      if ((iVar8 < param_4) || (iVar9 = iVar8, -1 < iVar8)) goto LAB_000297a0;
      uVar2 = (uint)*(byte *)(param_1 + 0x1c);
    }
    uVar2 = (uVar2 << 0x1d) >> 0x1f | uVar2 & 2;
    iVar9 = 0;
LAB_000297d0:
    iVar8 = *(int *)(param_1 + 0x1c);
  }
  uVar7 = 1;
  if (iVar8 << 4 < 0) {
    param_7 = (uint *)0x0;
  }
  else if (param_7 == (uint *)0x0) {
    uVar7 = 1;
  }
  else if (((*(byte *)(param_1 + 0x1c) & 0x60) == 0x40) &&
          (uVar7 = *param_7, uVar7 <= *(uint *)(param_1 + 0x18))) {
    if ((int)uVar7 < 1) {
      uVar7 = 1;
      param_7 = (uint *)0x0;
    }
  }
  else {
    uVar7 = *(int *)(param_1 + 0x18) + 1;
  }
  piVar3 = (int *)(*(code *)PTR_malloc_0003e2b4)(uVar7 << 3);
  if (piVar3 == (int *)0x0) {
    return -2;
  }
  iVar8 = FUN_00027cb0(param_1,param_2,param_3,param_4,iVar9,param_6,uVar7,piVar3,uVar2);
  if (iVar8 != 0) {
    param_4 = -2;
    if (iVar8 == 1) {
      param_4 = -1;
    }
    goto LAB_00029878;
  }
  if (param_7 != (uint *)0x0) {
    uVar2 = (uint)(*(int *)(param_1 + 0x1c) << 1) >> 0x1e;
    uVar10 = uVar7 + 1;
    if (uVar2 == 0) {
      uVar2 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);
      param_7[1] = uVar2;
      if (uVar2 == 0) {
        uVar2 = 0;
      }
      else {
        uVar4 = (*(code *)PTR_malloc_0003e2b4)(uVar10 * 4);
        param_7[2] = uVar4;
        if (uVar4 != 0) {
          *param_7 = uVar10;
          uVar2 = 1;
          goto LAB_00029958;
        }
        (*(code *)PTR_free_0003e320)(uVar2);
        uVar2 = 0;
      }
      goto LAB_000299d8;
    }
    if (uVar2 == 1) {
      if (uVar10 <= *param_7) goto LAB_00029958;
      uVar4 = (*(code *)PTR_realloc_0003e2b8)(param_7[1],uVar10 * 4);
      if (uVar4 == 0) {
        uVar2 = 0;
      }
      else {
        uVar5 = (*(code *)PTR_realloc_0003e2b8)(param_7[2],uVar10 * 4);
        if (uVar5 != 0) {
          param_7[1] = uVar4;
          param_7[2] = uVar5;
          *param_7 = uVar10;
          goto LAB_00029958;
        }
        (*(code *)PTR_free_0003e320)(uVar4);
        uVar2 = 0;
      }
    }
    else {
      if (uVar2 != 2) {
        iVar8 = (*(code *)PTR___assert_fail_0003e220)
                          (PTR_DAT_0003e108 + -0x30a4,PTR_DAT_0003e108 + -0x3140,0x1f8,
                           PTR_DAT_0003e108 + -0x33f0);
        return iVar8;
      }
      if (*param_7 < uVar7) {
        iVar8 = (*(code *)PTR___assert_fail_0003e220)
                          (PTR_DAT_0003e108 + -0x3084,PTR_DAT_0003e108 + -0x3140,0x1fa,
                           PTR_DAT_0003e108 + -0x33f0);
        return iVar8;
      }
LAB_00029958:
      if ((int)uVar7 < 1) {
        uVar7 = 0;
      }
      else {
        piVar6 = piVar3 + 1;
        iVar8 = 0;
        do {
          *(int *)(param_7[1] + iVar8) = piVar6[-1];
          *(int *)(param_7[2] + iVar8) = *piVar6;
          iVar8 = iVar8 + 4;
          piVar6 = piVar6 + 2;
        } while (iVar8 != uVar7 << 2);
      }
      if (uVar7 < *param_7) {
        do {
          *(undefined4 *)(param_7[2] + uVar7 * 4) = 0xffffffff;
          *(undefined4 *)(param_7[1] + uVar7 * 4) = 0xffffffff;
          uVar7 = uVar7 + 1;
        } while (uVar7 < *param_7);
      }
    }
LAB_000299d8:
    *(byte *)(param_1 + 0x1c) = *(byte *)(param_1 + 0x1c) & 0x9f | (byte)(uVar2 << 5);
    if (uVar2 == 0) {
      param_4 = -2;
      goto LAB_00029878;
    }
  }
  if (param_8 == '\0') {
    param_4 = *piVar3;
  }
  else {
    if (*piVar3 != param_4) {
      iVar8 = (*(code *)PTR___assert_fail_0003e220)
                        (PTR_DAT_0003e108 + -0x306c,PTR_DAT_0003e108 + -0x3140,0x1bd,
                         PTR_DAT_0003e108 + -0x33e0);
      return iVar8;
    }
    param_4 = piVar3[1] - param_4;
  }
LAB_00029878:
  (*(code *)PTR_free_0003e320)(piVar3);
  return param_4;
}

