
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void term_size(Terminal *term,int newrows,int newcols,int newsavelines)

{
  int iVar1;
  int iVar2;
  uchar *data;
  termline *ptVar3;
  code *pcVar4;
  void *pvVar5;
  size_t sVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  tree234 *ptVar10;
  int *bytes_used;
  
  if (((term->rows == newrows) && (term->cols == newcols)) && (term->savelines == newsavelines)) {
    return;
  }
  term->selstate = ADDRTYPE_UNSPEC;
  (term->selend).y = 0;
  if (newrows < 1) {
    newrows = 1;
  }
  iVar9 = 1;
  if (0 < newcols) {
    iVar9 = newcols;
  }
  (term->selend).x = 0;
  (term->selstart).y = 0;
  (term->selstart).x = 0;
  swap_screen(term,0,0,0);
  term->marg_t = 0;
  term->alt_t = 0;
  term->marg_b = newrows - 1U;
  term->alt_b = newrows - 1U;
  if (term->rows == -1) {
    ptVar10 = newtree234((cmpfn234)0x0);
    term->scrollback = ptVar10;
    ptVar10 = newtree234((cmpfn234)0x0);
    term->screen = ptVar10;
    term->tempsblines = 0;
    term->rows = 0;
  }
  iVar1 = count234(term->scrollback);
  iVar8 = term->rows;
  iVar2 = count234(term->screen);
  if (iVar8 != iVar2) {
    (*(code *)PTR___assert_fail_000b5a40)
              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);
    return;
  }
  sVar6 = term->rows;
  while ((int)sVar6 < newrows) {
    if (0 < term->tempsblines) {
      if (term->tempsblines <= iVar1) {
        bytes_used = (int *)(iVar1 + -1);
        data = (uchar *)delpos234(term->scrollback,(int)bytes_used);
        decompressline(data,bytes_used);
                    /* WARNING: Subroutine does not return */
        safefree(data);
      }
      (*(code *)PTR___assert_fail_000b5a40)
                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,
                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,
                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);
      return;
    }
    ptVar3 = newline(term,iVar9,0);
    ptVar10 = term->screen;
    iVar2 = count234(ptVar10);
    addpos234(ptVar10,ptVar3,iVar2);
    sVar6 = term->rows + 1;
    term->rows = sVar6;
  }
  if (newrows < (int)sVar6) {
    pcVar4 = (code *)(PTR_DAT_000b55b4 + 0x6840);
    do {
      while( true ) {
        if ((term->curs).y < (int)(sVar6 - 1)) break;
        iVar9 = iVar1 + 1;
        ptVar3 = (termline *)delpos234(term->screen,0);
        ptVar10 = term->scrollback;
        pvVar5 = (void *)(*pcVar4)(ptVar3);
        addpos234(ptVar10,pvVar5,iVar1);
        if (ptVar3 != (termline *)0x0) {
                    /* WARNING: Subroutine does not return */
          freeline(ptVar3);
        }
        iVar7 = term->tempsblines;
        iVar8 = (term->curs).y;
        iVar1 = term->alt_y;
        (term->savecurs).y = (term->savecurs).y + -1;
        iVar2 = term->rows;
        (term->alt_savecurs).y = (term->alt_savecurs).y + -1;
        term->tempsblines = iVar7 + 1;
        sVar6 = iVar2 - 1;
        (term->curs).y = iVar8 + -1;
        term->alt_y = iVar1 + -1;
        term->rows = sVar6;
        iVar1 = iVar9;
        if ((int)sVar6 <= newrows) goto LAB_0004b3a0;
      }
      ptVar3 = (termline *)delpos234(term->screen,sVar6 - 1);
      if (ptVar3 != (termline *)0x0) {
                    /* WARNING: Subroutine does not return */
        freeline(ptVar3);
      }
      sVar6 = term->rows - 1;
      term->rows = sVar6;
    } while (newrows < (int)sVar6);
  }
LAB_0004b3a0:
  if (newrows != sVar6) {
    (*(code *)PTR___assert_fail_000b5a40)
              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);
    return;
  }
  sVar6 = count234(term->screen);
  if (newrows != sVar6) {
    (*(code *)PTR___assert_fail_000b5a40)
              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);
    return;
  }
  if (newsavelines < iVar1) {
    pvVar5 = delpos234(term->scrollback,0);
                    /* WARNING: Subroutine does not return */
    safefree(pvVar5);
  }
  if (iVar1 < term->tempsblines) {
    term->tempsblines = iVar1;
  }
  iVar9 = count234(term->scrollback);
  if (iVar9 <= newsavelines) {
    iVar9 = count234(term->scrollback);
    if (term->tempsblines <= iVar9) {
      term->disptop = 0;
                    /* WARNING: Subroutine does not return */
      safemalloc(newrows,4);
    }
    (*(code *)PTR___assert_fail_000b5a40)
              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);
    return;
  }
  (*(code *)PTR___assert_fail_000b5a40)
            (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,
             PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,
             PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);
  return;
}



/* WARNING: Type propagation algorithm not settling */

void term_size(int param_1,int param_2,uint param_3,int param_4)

{
  int iVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  code *pcVar6;
  int *piVar7;
  undefined4 uVar8;
  uint uVar9;
  uint uVar10;
  uint uVar11;
  int iVar12;
  int iVar13;
  undefined4 uVar14;
  int *piVar15;
  code *pcVar16;
  
  iVar1 = *(int *)(param_1 + 0x128);
  uVar8 = *(undefined4 *)(param_1 + 0x1a4);
  if (((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)) &&
     (*(int *)(param_1 + 0x130) == param_4)) {
    return;
  }
  *(undefined4 *)(param_1 + 0xe48) = 0;
  *(undefined4 *)(param_1 + 0xe5c) = 0;
  if (param_2 < 1) {
    param_2 = 1;
  }
  uVar11 = 1;
  if (0 < (int)param_3) {
    uVar11 = param_3;
  }
  pcVar16 = (code *)(PTR_LAB_000b5664 + -0x5830);
  *(undefined4 *)(param_1 + 0xe60) = 0;
  iVar12 = param_2 + -1;
  *(undefined4 *)(param_1 + 0xe54) = 0;
  *(undefined4 *)(param_1 + 0xe58) = 0;
  FUN_0004a7d0(param_1,0,0,0);
  *(undefined4 *)(param_1 + 0x7c) = 0;
  *(undefined4 *)(param_1 + 0x19c) = 0;
  *(int *)(param_1 + 0x80) = iVar12;
  *(int *)(param_1 + 0x1a0) = iVar12;
  if (*(int *)(param_1 + 0x128) == -1) {
    uVar4 = newtree234(0);
    *(undefined4 *)(param_1 + 4) = uVar4;
    uVar4 = newtree234(0);
    *(undefined4 *)(param_1 + 8) = uVar4;
    *(undefined4 *)(param_1 + 0x14) = 0;
    *(undefined4 *)(param_1 + 0x128) = 0;
  }
  iVar2 = count234(*(undefined4 *)(param_1 + 4));
  iVar13 = *(int *)(param_1 + 0x128);
  iVar3 = count234(*(undefined4 *)(param_1 + 8));
  if (iVar13 != iVar3) {
    (*(code *)PTR___assert_fail_000b5a40)
              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);
    return;
  }
  iVar3 = *(int *)(param_1 + 0x128);
  while (iVar3 < param_2) {
    while (*(int *)(param_1 + 0x14) < 1) {
      uVar4 = FUN_000444dc(param_1,uVar11,0);
      uVar14 = *(undefined4 *)(param_1 + 8);
      uVar5 = count234(uVar14);
      addpos234(uVar14,uVar4,uVar5);
      iVar3 = *(int *)(param_1 + 0x128) + 1;
      *(int *)(param_1 + 0x128) = iVar3;
      if (param_2 <= iVar3) goto LAB_0004b290;
    }
    if (iVar2 < *(int *)(param_1 + 0x14)) {
      (*(code *)PTR___assert_fail_000b5a40)
                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,
                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,
                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);
      return;
    }
    iVar2 = iVar2 + -1;
    uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2);
    iVar3 = FUN_00047040(uVar4);
    safefree(uVar4);
    iVar13 = *(int *)(param_1 + 0x14);
    uVar4 = *(undefined4 *)(param_1 + 8);
    *(undefined4 *)(iVar3 + 0xc) = 0;
    *(int *)(param_1 + 0x14) = iVar13 + -1;
    addpos234(uVar4,iVar3,0);
    *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1;
    *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1;
    *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1;
    iVar3 = *(int *)(param_1 + 0x128) + 1;
    *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1;
    *(int *)(param_1 + 0x128) = iVar3;
  }
LAB_0004b290:
  if (param_2 < iVar3) {
    pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);
    do {
      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {
        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));
        if (iVar3 != 0) {
          FUN_000459d0(iVar3);
        }
        iVar3 = *(int *)(param_1 + 0x128) + -1;
        *(int *)(param_1 + 0x128) = iVar3;
        if (iVar3 <= param_2) goto LAB_0004b3a0;
      }
      iVar13 = iVar2 + 1;
      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);
      uVar5 = *(undefined4 *)(param_1 + 4);
      uVar4 = (*pcVar6)(iVar3);
      addpos234(uVar5,uVar4,iVar2);
      if (iVar3 != 0) {
        FUN_000459d0(iVar3);
      }
      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;
      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;
      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;
      iVar3 = *(int *)(param_1 + 0x128) + -1;
      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;
      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;
      *(int *)(param_1 + 0x128) = iVar3;
      iVar2 = iVar13;
    } while (param_2 < iVar3);
  }
LAB_0004b3a0:
  if (param_2 != iVar3) {
    (*(code *)PTR___assert_fail_000b5a40)
              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);
    return;
  }
  iVar3 = count234(*(undefined4 *)(param_1 + 8));
  if (param_2 != iVar3) {
    (*(code *)PTR___assert_fail_000b5a40)
              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);
    return;
  }
  if (param_4 < iVar2) {
    do {
      iVar2 = iVar2 + -1;
      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);
      safefree(uVar4);
    } while (param_4 != iVar2);
  }
  if (iVar2 < *(int *)(param_1 + 0x14)) {
    *(int *)(param_1 + 0x14) = iVar2;
  }
  iVar2 = count234(*(undefined4 *)(param_1 + 4));
  if (param_4 < iVar2) {
    (*(code *)PTR___assert_fail_000b5a40)
              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);
    return;
  }
  iVar2 = count234(*(undefined4 *)(param_1 + 4));
  if (iVar2 < *(int *)(param_1 + 0x14)) {
    (*(code *)PTR___assert_fail_000b5a40)
              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);
    return;
  }
  *(undefined4 *)(param_1 + 0x10) = 0;
  piVar7 = (int *)safemalloc(param_2,4);
  piVar15 = piVar7;
  do {
    iVar2 = FUN_000444dc(param_1,uVar11,0);
    *piVar15 = iVar2;
    iVar2 = *(int *)(iVar2 + 0x14);
    iVar3 = uVar11 * 0xc + iVar2;
    do {
      *(undefined4 *)(iVar2 + 4) = 0x3ffff;
      iVar2 = iVar2 + 0xc;
    } while (iVar3 != iVar2);
    piVar15 = piVar15 + 1;
  } while (piVar7 + param_2 != piVar15);
  iVar2 = *(int *)(param_1 + 0x18);
  if ((iVar2 != 0) && (0 < iVar1)) {
    iVar13 = 0;
    iVar3 = 0;
    do {
      if (*(int *)(iVar2 + iVar3) != 0) {
        FUN_000459d0();
        iVar2 = *(int *)(param_1 + 0x18);
      }
      iVar13 = iVar13 + 1;
      iVar3 = iVar13 * 4;
    } while (iVar1 != iVar13);
  }
  safefree(iVar2);
  *(undefined4 *)(param_1 + 0x20) = 0xffffffff;
  *(undefined4 *)(param_1 + 0x1c) = 0xffffffff;
  *(int **)(param_1 + 0x18) = piVar7;
  uVar4 = newtree234(0);
  iVar1 = 0;
  do {
    uVar5 = FUN_000444dc(param_1,uVar11,1);
    iVar2 = iVar1 + 1;
    addpos234(uVar4,uVar5,iVar1);
    iVar1 = iVar2;
  } while (param_2 != iVar2);
  iVar1 = *(int *)(param_1 + 0xc);
  if (iVar1 != 0) {
    while (iVar1 = delpos234(iVar1,0), iVar1 != 0) {
      FUN_000459d0(iVar1);
      iVar1 = *(int *)(param_1 + 0xc);
    }
    freetree234(*(undefined4 *)(param_1 + 0xc));
  }
  *(undefined4 *)(param_1 + 0xc) = uVar4;
  *(undefined4 *)(param_1 + 0x1a8) = 0;
  iVar1 = saferealloc(*(undefined4 *)(param_1 + 0xe40),uVar11,1);
  uVar9 = *(uint *)(param_1 + 300);
  if ((int)uVar9 < 0) {
    uVar9 = 0;
  }
  *(int *)(param_1 + 0xe40) = iVar1;
  if ((int)uVar9 < (int)uVar11) {
    while( true ) {
      iVar1 = iVar1 + uVar9;
      uVar10 = uVar9 & 7;
      uVar9 = uVar9 + 1;
      *(bool *)iVar1 = uVar10 == 0;
      if (uVar11 == uVar9) break;
      iVar1 = *(int *)(param_1 + 0xe40);
    }
    iVar1 = *(int *)(param_1 + 0x74);
  }
  else {
    iVar1 = *(int *)(param_1 + 0x74);
  }
  if (iVar1 < 0) {
    iVar1 = *(int *)(param_1 + 0x78);
    *(undefined4 *)(param_1 + 0x74) = 0;
  }
  else {
    if (param_2 <= iVar1) {
      *(int *)(param_1 + 0x74) = iVar12;
    }
    iVar1 = *(int *)(param_1 + 0x78);
  }
  if (iVar1 < (int)uVar11) {
    iVar1 = *(int *)(param_1 + 0x108);
  }
  else {
    *(uint *)(param_1 + 0x78) = uVar11 - 1;
    iVar1 = *(int *)(param_1 + 0x108);
  }
  if (iVar1 < 0) {
    iVar1 = *(int *)(param_1 + 0x10c);
    *(undefined4 *)(param_1 + 0x108) = 0;
  }
  else {
    if (param_2 <= iVar1) {
      *(int *)(param_1 + 0x108) = iVar12;
    }
    iVar1 = *(int *)(param_1 + 0x10c);
  }
  if (iVar1 < (int)uVar11) {
    iVar1 = *(int *)(param_1 + 0x6c);
  }
  else {
    *(uint *)(param_1 + 0x10c) = uVar11 - 1;
    iVar1 = *(int *)(param_1 + 0x6c);
  }
  if (iVar1 < 0) {
    iVar1 = *(int *)(param_1 + 0x70);
    *(undefined4 *)(param_1 + 0x6c) = 0;
  }
  else {
    if (param_2 <= iVar1) {
      *(int *)(param_1 + 0x6c) = iVar12;
    }
    iVar1 = *(int *)(param_1 + 0x70);
  }
  if ((int)uVar11 <= iVar1) {
    *(uint *)(param_1 + 0x70) = uVar11 - 1;
  }
  *(int *)(param_1 + 0x128) = param_2;
  *(uint *)(param_1 + 300) = uVar11;
  *(int *)(param_1 + 0x130) = param_4;
  *(undefined4 *)(param_1 + 0x17c) = 0;
  *(undefined4 *)(param_1 + 0x178) = 0;
  *(undefined4 *)(param_1 + 0x188) = 0;
  *(undefined4 *)(param_1 + 0x8c) = 0;
  (*pcVar16)(param_1,uVar8,0,0);
  FUN_00044484(param_1);
  term_update(param_1);
  if (*(code **)(param_1 + 0x107c) == (code *)0x0) {
    return;
  }
                    /* WARNING: Could not recover jumptable at 0x0004b734. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(param_1 + 0x107c))
            (*(undefined4 *)(param_1 + 0x1080),*(undefined4 *)(param_1 + 300),
             *(undefined4 *)(param_1 + 0x128));
  return;
}


lui gp,0x7
addiu gp,gp,0x217c
addu gp,gp,t9
addiu sp,sp,-0x58
lw v0,0x128(a0)
lw v1,0x1a4(a0)
sw gp,0x10(sp)
sw ra,0x54(sp)
sw s8,0x50(sp)
sw s7,0x4c(sp)
sw s6,0x48(sp)
sw s5,0x44(sp)
sw s4,0x40(sp)
sw s3,0x3c(sp)
sw s2,0x38(sp)
sw s1,0x34(sp)
sw s0,0x30(sp)
sw v0,0x1c(sp)
beq v0,a1,0x0004b7b4
_sw v1,0x28(sp)
li t0,0x1
sw zero,0xe48(a0)
slt s0,zero,a1
sw zero,0xe5c(a0)
movz a1,t0,s0
or s7,a0,zero
or v0,a2,zero
lw a0,-0x7b6c(gp)
slt s1,zero,v0
movn t0,v0,s1
or s4,a3,zero
or s0,a1,zero
addiu t9,a0,-0x5830
sw zero,0xe60(s7)
addiu s2,s0,-0x1
sw zero,0xe54(s7)
or a3,zero,zero
sw t9,0x2c(sp)
or a2,zero,zero
sw zero,0xe58(s7)
or a1,zero,zero
sw s2,0x24(sp)
or a0,s7,zero
bal 0x0004a7d0
_or s1,t0,zero
lw a0,0x128(s7)
li v0,-0x1
lw gp,0x10(sp)
sw zero,0x7c(s7)
sw zero,0x19c(s7)
sw s2,0x80(s7)
beq a0,v0,0x0004b7fc
_sw s2,0x1a0(s7)
lw t9,-0x7b80(gp)
bal 0x0005422c
_lw a0,0x4(s7)
lw gp,0x10(sp)
or s8,v0,zero
lw a0,0x8(s7)
lw t9,-0x7b80(gp)
bal 0x0005422c
_lw s2,0x128(s7)
bne s2,v0,0x0004b89c
_lw gp,0x10(sp)
lw a1,0x128(s7)
slt v0,a1,s0
beq v0,zero,0x0004b290
_slt v0,s0,a1
lw s3,-0x7c1c(gp)
lw s2,-0x7c1c(gp)
addiu s3,s3,0x44dc
b 0x0004b224
_addiu s2,s2,0x7040
bne v0,zero,0x0004b830
_lw t9,-0x7ea0(gp)
addiu s8,s8,-0x1
lw a0,0x4(s7)
bal 0x000546d0
_or a1,s8,zero
or t9,s2,zero
or a0,v0,zero
bal 0x00047040
_or s5,v0,zero
lw gp,0x10(sp)
or a0,s5,zero
lw t9,-0x7fc0(gp)
bal 0x00036024
_or s5,v0,zero
or a2,zero,zero
lw gp,0x10(sp)
or a1,s5,zero
lw a3,0x14(s7)
lw a0,0x8(s7)
sw zero,0xc(s5)
lw t9,-0x7b64(gp)
addiu a3,a3,-0x1
bal 0x00054284
_sw a3,0x14(s7)
lw a1,0x74(s7)
lw gp,0x10(sp)
lw v0,0x108(s7)
addiu a1,a1,0x1
lw a2,0x6c(s7)
lw a0,0x17c(s7)
sw a1,0x74(s7)
addiu v0,v0,0x1
lw a1,0x128(s7)
addiu a2,a2,0x1
addiu a0,a0,0x1
sw v0,0x108(s7)
sw a2,0x6c(s7)
addiu a1,a1,0x1
sw a0,0x17c(s7)
slt v0,a1,s0
beq v0,zero,0x0004b28c
_sw a1,0x128(s7)
lw v0,0x14(s7)
bgtz v0,0x0004b178
_slt v0,s8,v0
or a2,zero,zero
or a1,s1,zero
or t9,s3,zero
bal 0x000444dc
_or a0,s7,zero
lw gp,0x10(sp)
or s6,v0,zero
lw s5,0x8(s7)
lw t9,-0x7b80(gp)
bal 0x0005422c
_or a0,s5,zero
or a1,s6,zero
lw gp,0x10(sp)
or a2,v0,zero
lw t9,-0x7b64(gp)
bal 0x00054284
_or a0,s5,zero
lw a1,0x128(s7)
lw gp,0x10(sp)
addiu a1,a1,0x1
slt v0,a1,s0
bne v0,zero,0x0004b224
_sw a1,0x128(s7)
slt v0,s0,a1
beq v0,zero,0x0004b3a0
_nop
lw s5,-0x7c1c(gp)
lw s3,-0x7c1c(gp)
addiu v0,s5,0x6840
addiu s3,s3,0x59d0
b 0x0004b2e4
_sw v0,0x20(sp)
bal 0x000546d0
_nop
beq v0,zero,0x0004b2d0
_lw gp,0x10(sp)
or t9,s3,zero
bal 0x000459d0
_or a0,v0,zero
lw gp,0x10(sp)
lw a1,0x128(s7)
addiu a1,a1,-0x1
slt v0,s0,a1
beq v0,zero,0x0004b3a0
_sw a1,0x128(s7)
lw v0,0x6c(s7)
addiu a1,a1,-0x1
lw a0,0x8(s7)
slt v0,v0,a1
bne v0,zero,0x0004b2b0
_lw t9,-0x7ea0(gp)
or a1,zero,zero
bal 0x000546d0
_addiu s2,s8,0x1
lw t9,0x20(sp)
or a0,v0,zero
lw s5,0x4(s7)
jalr t9
_or s6,v0,zero
or a2,s8,zero
lw gp,0x10(sp)
or a1,v0,zero
lw t9,-0x7b64(gp)
bal 0x00054284
_or a0,s5,zero
beq s6,zero,0x0004b34c
_lw gp,0x10(sp)
or t9,s3,zero
bal 0x000459d0
_or a0,s6,zero
lw gp,0x10(sp)
lw a1,0x74(s7)
or s8,s2,zero
lw v0,0x108(s7)
lw a3,0x14(s7)
addiu a1,a1,-0x1
lw a2,0x6c(s7)
lw a0,0x17c(s7)
addiu v0,v0,-0x1
sw a1,0x74(s7)
addiu a3,a3,0x1
lw a1,0x128(s7)
addiu a2,a2,-0x1
addiu a0,a0,-0x1
sw v0,0x108(s7)
sw a3,0x14(s7)
addiu a1,a1,-0x1
sw a2,0x6c(s7)
sw a0,0x17c(s7)
slt v0,s0,a1
bne v0,zero,0x0004b2e4
_sw a1,0x128(s7)
bne s0,a1,0x0004b854
_lw t9,-0x7b80(gp)
bal 0x0005422c
_lw a0,0x8(s7)
bne s0,v0,0x0004b878
_lw gp,0x10(sp)
slt v0,s4,s8
beq v0,zero,0x0004b3f0
_nop
lw t9,-0x7ea0(gp)
or a1,zero,zero
lw a0,0x4(s7)
bal 0x000546d0
_addiu s8,s8,-0x1
lw gp,0x10(sp)
lw t9,-0x7fc0(gp)
bal 0x00036024
_or a0,v0,zero
bne s4,s8,0x0004b3c4
_lw gp,0x10(sp)
lw v0,0x14(s7)
slt v0,s8,v0
bne v0,zero,0x0004b794
_nop
lw t9,-0x7b80(gp)
bal 0x0005422c
_lw a0,0x4(s7)
slt v0,s4,v0
bne v0,zero,0x0004b8e4
_lw gp,0x10(sp)
lw t9,-0x7b80(gp)
bal 0x0005422c
_lw a0,0x4(s7)
lw a0,0x14(s7)
slt v0,v0,a0
bne v0,zero,0x0004b8c0
_lw gp,0x10(sp)
lw t9,-0x7fc4(gp)
li a1,0x4
sw zero,0x10(s7)
or a0,s0,zero
bal 0x000352f4
_sll s3,s1,0x1
sll s5,s0,0x2
lw gp,0x10(sp)
addu s3,s3,s1
lui a3,0x3
sw v0,0x20(sp)
addu s5,s5,v0
sll s3,s3,0x2
lw s2,-0x7c1c(gp)
or s6,v0,zero
ori s8,a3,0xffff
addiu s2,s2,0x44dc
or a2,zero,zero
or a0,s7,zero
or t9,s2,zero
bal 0x000444dc
_or a1,s1,zero
lw gp,0x10(sp)
sw v0,0x0(s6)
lw v0,0x14(v0)
addu a0,s3,v0
sw s8,0x4(v0)
addiu v0,v0,0xc
bne a0,v0,0x0004b49c
_nop
addiu s6,s6,0x4
bne s5,s6,0x0004b47c
_or a2,zero,zero
lw a1,0x18(s7)
beq a1,zero,0x0004b508
_lw v0,0x1c(sp)
blez v0,0x0004b508
_lw s3,-0x7c1c(gp)
or s5,zero,zero
addiu s3,s3,0x59d0
sll v0,s5,0x2
addu v0,a1,v0
lw a0,0x0(v0)
beq a0,zero,0x0004b4f8
_or t9,s3,zero
bal 0x000459d0
_nop
lw gp,0x10(sp)
lw a1,0x18(s7)
lw v0,0x1c(sp)
addiu s5,s5,0x1
bne v0,s5,0x0004b4d8
_sll v0,s5,0x2
lw t9,-0x7fc0(gp)
or a0,a1,zero
bal 0x00036024
_or s5,zero,zero
li v0,-0x1
lw gp,0x10(sp)
or a0,zero,zero
lw v1,0x20(sp)
sw v0,0x20(s7)
sw v0,0x1c(s7)
lw t9,-0x7e94(gp)
bal 0x00054198
_sw v1,0x18(s7)
or s3,v0,zero
li a2,0x1
or a1,s1,zero
or t9,s2,zero
bal 0x000444dc
_or a0,s7,zero
or a2,s5,zero
lw gp,0x10(sp)
addiu s5,s5,0x1
or a1,v0,zero
lw t9,-0x7b64(gp)
bal 0x00054284
_or a0,s3,zero
bne s0,s5,0x0004b540
_lw gp,0x10(sp)
lw a0,0xc(s7)
beq a0,zero,0x0004b5cc
_lw t9,-0x7ec8(gp)
lw s2,-0x7c1c(gp)
b 0x0004b5a4
_addiu s2,s2,0x59d0
or t9,s2,zero
bal 0x000459d0
_or a0,v0,zero
lw gp,0x10(sp)
lw a0,0xc(s7)
lw t9,-0x7ea0(gp)
bal 0x000546d0
_or a1,zero,zero
bne v0,zero,0x0004b590
_lw gp,0x10(sp)
lw t9,-0x7e90(gp)
bal 0x000541e0
_lw a0,0xc(s7)
lw gp,0x10(sp)
lw t9,-0x7ec8(gp)
li a2,0x1
lw a0,0xe40(s7)
or a1,s1,zero
sw s3,0xc(s7)
bal 0x0003593c
_sw zero,0x1a8(s7)
lw a1,0x12c(s7)
slti a0,a1,0x0
movn a1,zero,a0
or a0,a1,zero
slt a1,a1,s1
bne a1,zero,0x0004b60c
_sw v0,0xe40(s7)
b 0x0004b628
_lw v0,0x74(s7)
lw v0,0xe40(s7)
addu v0,v0,a0
andi a1,a0,0x7
addiu a0,a0,0x1
sltiu a1,a1,0x1
bne s1,a0,0x0004b608
_sb a1,0x0(v0)
lw v0,0x74(s7)
bltz v0,0x0004b79c
_slt v0,v0,s0
bne v0,zero,0x0004b63c
_lw v0,0x24(sp)
sw v0,0x74(s7)
lw v0,0x78(s7)
slt v0,v0,s1
beq v0,zero,0x0004b76c
_addiu v0,s1,-0x1
lw v0,0x108(s7)
bltz v0,0x0004b77c
_slt v0,v0,s0
bne v0,zero,0x0004b664
_lw v0,0x24(sp)
sw v0,0x108(s7)
lw v0,0x10c(s7)
slt v0,v0,s1
beq v0,zero,0x0004b744
_addiu v0,s1,-0x1
lw v0,0x6c(s7)
bltz v0,0x0004b754
_slt v0,v0,s0
bne v0,zero,0x0004b68c
_lw v0,0x24(sp)
sw v0,0x6c(s7)
lw v0,0x70(s7)
slt v0,v0,s1
beq v0,zero,0x0004b73c
_addiu v0,s1,-0x1
lw a1,0x28(sp)
or a3,zero,zero
lw t9,0x2c(sp)
or a2,zero,zero
or a0,s7,zero
sw s0,0x128(s7)
sw s1,0x12c(s7)
sw s4,0x130(s7)
sw zero,0x17c(s7)
sw zero,0x178(s7)
sw zero,0x188(s7)
jalr t9
_sw zero,0x8c(s7)
lw gp,0x10(sp)
lw t9,-0x7c1c(gp)
addiu t9,t9,0x4484
bal 0x00044484
_or a0,s7,zero
lw gp,0x10(sp)
lw t9,-0x7b30(gp)
bal 0x00049830
_or a0,s7,zero
lw t9,0x107c(s7)
beq t9,zero,0x0004b7cc
_lw gp,0x10(sp)
lw a2,0x128(s7)
lw a1,0x12c(s7)
lw a0,0x1080(s7)
lw ra,0x54(sp)
lw s8,0x50(sp)
lw s7,0x4c(sp)
lw s6,0x48(sp)
lw s5,0x44(sp)
lw s4,0x40(sp)
lw s3,0x3c(sp)
lw s2,0x38(sp)
lw s1,0x34(sp)
lw s0,0x30(sp)
jr t9
_addiu sp,sp,0x58
b 0x0004b69c
_sw v0,0x70(s7)
sw v0,0x10c(s7)
lw v0,0x6c(s7)
bgez v0,0x0004b680
_slt v0,v0,s0
lw v0,0x70(s7)
slt v0,v0,s1
bne v0,zero,0x0004b69c
_sw zero,0x6c(s7)
b 0x0004b73c
_addiu v0,s1,-0x1
sw v0,0x78(s7)
lw v0,0x108(s7)
bgez v0,0x0004b658
_slt v0,v0,s0
lw v0,0x10c(s7)
slt v0,v0,s1
bne v0,zero,0x0004b674
_sw zero,0x108(s7)
b 0x0004b744
_addiu v0,s1,-0x1
b 0x0004b400
_sw s8,0x14(s7)
lw v0,0x78(s7)
slt v0,v0,s1
bne v0,zero,0x0004b64c
_sw zero,0x74(s7)
b 0x0004b76c
_addiu v0,s1,-0x1
lw v0,0x12c(a0)
bne v0,a2,0x0004b0a8
_li t0,0x1
lw v0,0x130(a0)
bne v0,a3,0x0004b0a8
_nop
lw ra,0x54(sp)
lw s8,0x50(sp)
lw s7,0x4c(sp)
lw s6,0x48(sp)
lw s5,0x44(sp)
lw s4,0x40(sp)
lw s3,0x3c(sp)
lw s2,0x38(sp)
lw s1,0x34(sp)
lw s0,0x30(sp)
jr ra
_addiu sp,sp,0x58
lw t9,-0x7e94(gp)
bal 0x00054198
_or a0,zero,zero
or a0,zero,zero
lw gp,0x10(sp)
lw t9,-0x7e94(gp)
bal 0x00054198
_sw v0,0x4(s7)
lw gp,0x10(sp)
sw v0,0x8(s7)
sw zero,0x14(s7)
b 0x0004b128
_sw zero,0x128(s7)
lw a3,-0x7fbc(gp)
li a2,0x70b
lw a1,-0x7fbc(gp)
lw a0,-0x7fbc(gp)
lw t9,-0x7790(gp)
addiu a3,a3,-0x5260
addiu a1,a1,-0x5de0
jalr t9
_addiu a0,a0,-0x5b44
lw a3,-0x7fbc(gp)
li a2,0x730
lw a1,-0x7fbc(gp)
lw a0,-0x7fbc(gp)
lw t9,-0x7790(gp)
addiu a3,a3,-0x5260
addiu a1,a1,-0x5de0
jalr t9
_addiu a0,a0,-0x5b28
lw a3,-0x7fbc(gp)
li a2,0x731
lw a1,-0x7fbc(gp)
lw a0,-0x7fbc(gp)
lw t9,-0x7790(gp)
addiu a3,a3,-0x5260
addiu a1,a1,-0x5de0
jalr t9
_addiu a0,a0,-0x5b10
lw a3,-0x7fbc(gp)
li a2,0x706
lw a1,-0x7fbc(gp)
lw a0,-0x7fbc(gp)
lw t9,-0x7790(gp)
addiu a3,a3,-0x5260
addiu a1,a1,-0x5de0
jalr t9
_addiu a0,a0,-0x5b6c
lw a3,-0x7fbc(gp)
li a2,0x73c
lw a1,-0x7fbc(gp)
lw a0,-0x7fbc(gp)
lw t9,-0x7790(gp)
addiu a3,a3,-0x5260
addiu a1,a1,-0x5de0
jalr t9
_addiu a0,a0,-0x5ac0
lw a3,-0x7fbc(gp)
li a2,0x73b
lw a1,-0x7fbc(gp)
lw a0,-0x7fbc(gp)
lw t9,-0x7790(gp)
addiu a3,a3,-0x5260
addiu a1,a1,-0x5de0
jalr t9
_addiu a0,a0,-0x5aec
(translation_unit "/* WARNING: Type propagation algorithm not settling */\n\nvoid term_size(int param_1,int param_2,uint param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  code *pcVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  uint uVar9;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  undefined4 uVar14;\n  int *piVar15;\n  code *pcVar16;\n  \n  iVar1 = *(int *)(param_1 + 0x128);\n  uVar8 = *(undefined4 *)(param_1 + 0x1a4);\n  if (((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)) &&\n     (*(int *)(param_1 + 0x130) == param_4)) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0xe48) = 0;\n  *(undefined4 *)(param_1 + 0xe5c) = 0;\n  if (param_2 < 1) {\n    param_2 = 1;\n  }\n  uVar11 = 1;\n  if (0 < (int)param_3) {\n    uVar11 = param_3;\n  }\n  pcVar16 = (code *)(PTR_LAB_000b5664 + -0x5830);\n  *(undefined4 *)(param_1 + 0xe60) = 0;\n  iVar12 = param_2 + -1;\n  *(undefined4 *)(param_1 + 0xe54) = 0;\n  *(undefined4 *)(param_1 + 0xe58) = 0;\n  FUN_0004a7d0(param_1,0,0,0);\n  *(undefined4 *)(param_1 + 0x7c) = 0;\n  *(undefined4 *)(param_1 + 0x19c) = 0;\n  *(int *)(param_1 + 0x80) = iVar12;\n  *(int *)(param_1 + 0x1a0) = iVar12;\n  if (*(int *)(param_1 + 0x128) == -1) {\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 4) = uVar4;\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 0x128) = 0;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  iVar13 = *(int *)(param_1 + 0x128);\n  iVar3 = count234(*(undefined4 *)(param_1 + 8));\n  if (iVar13 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar3 = *(int *)(param_1 + 0x128);\n  while (iVar3 < param_2) {\n    while (*(int *)(param_1 + 0x14) < 1) {\n      uVar4 = FUN_000444dc(param_1,uVar11,0);\n      uVar14 = *(undefined4 *)(param_1 + 8);\n      uVar5 = count234(uVar14);\n      addpos234(uVar14,uVar4,uVar5);\n      iVar3 = *(int *)(param_1 + 0x128) + 1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      if (param_2 <= iVar3) goto LAB_0004b290;\n    }\n    if (iVar2 < *(int *)(param_1 + 0x14)) {\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }\n    iVar2 = iVar2 + -1;\n    uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2);\n    iVar3 = FUN_00047040(uVar4);\n    safefree(uVar4);\n    iVar13 = *(int *)(param_1 + 0x14);\n    uVar4 = *(undefined4 *)(param_1 + 8);\n    *(undefined4 *)(iVar3 + 0xc) = 0;\n    *(int *)(param_1 + 0x14) = iVar13 + -1;\n    addpos234(uVar4,iVar3,0);\n    *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1;\n    *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1;\n    *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1;\n    iVar3 = *(int *)(param_1 + 0x128) + 1;\n    *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1;\n    *(int *)(param_1 + 0x128) = iVar3;\n  }\nLAB_0004b290:\n  if (param_2 < iVar3) {\n    pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);\n    do {\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    } while (param_2 < iVar3);\n  }\nLAB_0004b3a0:\n  if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar3 = count234(*(undefined4 *)(param_1 + 8));\n  if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  if (param_4 < iVar2) {\n    do {\n      iVar2 = iVar2 + -1;\n      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);\n      safefree(uVar4);\n    } while (param_4 != iVar2);\n  }\n  if (iVar2 < *(int *)(param_1 + 0x14)) {\n    *(int *)(param_1 + 0x14) = iVar2;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  if (param_4 < iVar2) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  if (iVar2 < *(int *)(param_1 + 0x14)) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  piVar7 = (int *)safemalloc(param_2,4);\n  piVar15 = piVar7;\n  do {\n    iVar2 = FUN_000444dc(param_1,uVar11,0);\n    *piVar15 = iVar2;\n    iVar2 = *(int *)(iVar2 + 0x14);\n    iVar3 = uVar11 * 0xc + iVar2;\n    do {\n      *(undefined4 *)(iVar2 + 4) = 0x3ffff;\n      iVar2 = iVar2 + 0xc;\n    } while (iVar3 != iVar2);\n    piVar15 = piVar15 + 1;\n  } while (piVar7 + param_2 != piVar15);\n  iVar2 = *(int *)(param_1 + 0x18);\n  if ((iVar2 != 0) && (0 < iVar1)) {\n    iVar13 = 0;\n    iVar3 = 0;\n    do {\n      if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }\n      iVar13 = iVar13 + 1;\n      iVar3 = iVar13 * 4;\n    } while (iVar1 != iVar13);\n  }\n  safefree(iVar2);\n  *(undefined4 *)(param_1 + 0x20) = 0xffffffff;\n  *(undefined4 *)(param_1 + 0x1c) = 0xffffffff;\n  *(int **)(param_1 + 0x18) = piVar7;\n  uVar4 = newtree234(0);\n  iVar1 = 0;\n  do {\n    uVar5 = FUN_000444dc(param_1,uVar11,1);\n    iVar2 = iVar1 + 1;\n    addpos234(uVar4,uVar5,iVar1);\n    iVar1 = iVar2;\n  } while (param_2 != iVar2);\n  iVar1 = *(int *)(param_1 + 0xc);\n  if (iVar1 != 0) {\n    while (iVar1 = delpos234(iVar1,0), iVar1 != 0) {\n      FUN_000459d0(iVar1);\n      iVar1 = *(int *)(param_1 + 0xc);\n    }\n    freetree234(*(undefined4 *)(param_1 + 0xc));\n  }\n  *(undefined4 *)(param_1 + 0xc) = uVar4;\n  *(undefined4 *)(param_1 + 0x1a8) = 0;\n  iVar1 = saferealloc(*(undefined4 *)(param_1 + 0xe40),uVar11,1);\n  uVar9 = *(uint *)(param_1 + 300);\n  if ((int)uVar9 < 0) {\n    uVar9 = 0;\n  }\n  *(int *)(param_1 + 0xe40) = iVar1;\n  if ((int)uVar9 < (int)uVar11) {\n    while( true ) {\n      iVar1 = iVar1 + uVar9;\n      uVar10 = uVar9 & 7;\n      uVar9 = uVar9 + 1;\n      *(bool *)iVar1 = uVar10 == 0;\n      if (uVar11 == uVar9) break;\n      iVar1 = *(int *)(param_1 + 0xe40);\n    }\n    iVar1 = *(int *)(param_1 + 0x74);\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x74);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x78);\n    *(undefined4 *)(param_1 + 0x74) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x74) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x78);\n  }\n  if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x108);\n  }\n  else {\n    *(uint *)(param_1 + 0x78) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x108);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x10c);\n    *(undefined4 *)(param_1 + 0x108) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x108) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x10c);\n  }\n  if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }\n  else {\n    *(uint *)(param_1 + 0x10c) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x70);\n    *(undefined4 *)(param_1 + 0x6c) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x70);\n  }\n  if ((int)uVar11 <= iVar1) {\n    *(uint *)(param_1 + 0x70) = uVar11 - 1;\n  }\n  *(int *)(param_1 + 0x128) = param_2;\n  *(uint *)(param_1 + 300) = uVar11;\n  *(int *)(param_1 + 0x130) = param_4;\n  *(undefined4 *)(param_1 + 0x17c) = 0;\n  *(undefined4 *)(param_1 + 0x178) = 0;\n  *(undefined4 *)(param_1 + 0x188) = 0;\n  *(undefined4 *)(param_1 + 0x8c) = 0;\n  (*pcVar16)(param_1,uVar8,0,0);\n  FUN_00044484(param_1);\n  term_update(param_1);\n  if (*(code **)(param_1 + 0x107c) == (code *)0x0) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0004b734. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(param_1 + 0x107c))\n            (*(undefined4 *)(param_1 + 0x1080),*(undefined4 *)(param_1 + 300),\n             *(undefined4 *)(param_1 + 0x128));\n  return;\n}\n\n" comment (function_definition "void term_size(int param_1,int param_2,uint param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  code *pcVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  uint uVar9;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  undefined4 uVar14;\n  int *piVar15;\n  code *pcVar16;\n  \n  iVar1 = *(int *)(param_1 + 0x128);\n  uVar8 = *(undefined4 *)(param_1 + 0x1a4);\n  if (((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)) &&\n     (*(int *)(param_1 + 0x130) == param_4)) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0xe48) = 0;\n  *(undefined4 *)(param_1 + 0xe5c) = 0;\n  if (param_2 < 1) {\n    param_2 = 1;\n  }\n  uVar11 = 1;\n  if (0 < (int)param_3) {\n    uVar11 = param_3;\n  }\n  pcVar16 = (code *)(PTR_LAB_000b5664 + -0x5830);\n  *(undefined4 *)(param_1 + 0xe60) = 0;\n  iVar12 = param_2 + -1;\n  *(undefined4 *)(param_1 + 0xe54) = 0;\n  *(undefined4 *)(param_1 + 0xe58) = 0;\n  FUN_0004a7d0(param_1,0,0,0);\n  *(undefined4 *)(param_1 + 0x7c) = 0;\n  *(undefined4 *)(param_1 + 0x19c) = 0;\n  *(int *)(param_1 + 0x80) = iVar12;\n  *(int *)(param_1 + 0x1a0) = iVar12;\n  if (*(int *)(param_1 + 0x128) == -1) {\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 4) = uVar4;\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 0x128) = 0;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  iVar13 = *(int *)(param_1 + 0x128);\n  iVar3 = count234(*(undefined4 *)(param_1 + 8));\n  if (iVar13 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar3 = *(int *)(param_1 + 0x128);\n  while (iVar3 < param_2) {\n    while (*(int *)(param_1 + 0x14) < 1) {\n      uVar4 = FUN_000444dc(param_1,uVar11,0);\n      uVar14 = *(undefined4 *)(param_1 + 8);\n      uVar5 = count234(uVar14);\n      addpos234(uVar14,uVar4,uVar5);\n      iVar3 = *(int *)(param_1 + 0x128) + 1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      if (param_2 <= iVar3) goto LAB_0004b290;\n    }\n    if (iVar2 < *(int *)(param_1 + 0x14)) {\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }\n    iVar2 = iVar2 + -1;\n    uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2);\n    iVar3 = FUN_00047040(uVar4);\n    safefree(uVar4);\n    iVar13 = *(int *)(param_1 + 0x14);\n    uVar4 = *(undefined4 *)(param_1 + 8);\n    *(undefined4 *)(iVar3 + 0xc) = 0;\n    *(int *)(param_1 + 0x14) = iVar13 + -1;\n    addpos234(uVar4,iVar3,0);\n    *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1;\n    *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1;\n    *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1;\n    iVar3 = *(int *)(param_1 + 0x128) + 1;\n    *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1;\n    *(int *)(param_1 + 0x128) = iVar3;\n  }\nLAB_0004b290:\n  if (param_2 < iVar3) {\n    pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);\n    do {\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    } while (param_2 < iVar3);\n  }\nLAB_0004b3a0:\n  if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar3 = count234(*(undefined4 *)(param_1 + 8));\n  if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  if (param_4 < iVar2) {\n    do {\n      iVar2 = iVar2 + -1;\n      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);\n      safefree(uVar4);\n    } while (param_4 != iVar2);\n  }\n  if (iVar2 < *(int *)(param_1 + 0x14)) {\n    *(int *)(param_1 + 0x14) = iVar2;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  if (param_4 < iVar2) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  if (iVar2 < *(int *)(param_1 + 0x14)) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  piVar7 = (int *)safemalloc(param_2,4);\n  piVar15 = piVar7;\n  do {\n    iVar2 = FUN_000444dc(param_1,uVar11,0);\n    *piVar15 = iVar2;\n    iVar2 = *(int *)(iVar2 + 0x14);\n    iVar3 = uVar11 * 0xc + iVar2;\n    do {\n      *(undefined4 *)(iVar2 + 4) = 0x3ffff;\n      iVar2 = iVar2 + 0xc;\n    } while (iVar3 != iVar2);\n    piVar15 = piVar15 + 1;\n  } while (piVar7 + param_2 != piVar15);\n  iVar2 = *(int *)(param_1 + 0x18);\n  if ((iVar2 != 0) && (0 < iVar1)) {\n    iVar13 = 0;\n    iVar3 = 0;\n    do {\n      if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }\n      iVar13 = iVar13 + 1;\n      iVar3 = iVar13 * 4;\n    } while (iVar1 != iVar13);\n  }\n  safefree(iVar2);\n  *(undefined4 *)(param_1 + 0x20) = 0xffffffff;\n  *(undefined4 *)(param_1 + 0x1c) = 0xffffffff;\n  *(int **)(param_1 + 0x18) = piVar7;\n  uVar4 = newtree234(0);\n  iVar1 = 0;\n  do {\n    uVar5 = FUN_000444dc(param_1,uVar11,1);\n    iVar2 = iVar1 + 1;\n    addpos234(uVar4,uVar5,iVar1);\n    iVar1 = iVar2;\n  } while (param_2 != iVar2);\n  iVar1 = *(int *)(param_1 + 0xc);\n  if (iVar1 != 0) {\n    while (iVar1 = delpos234(iVar1,0), iVar1 != 0) {\n      FUN_000459d0(iVar1);\n      iVar1 = *(int *)(param_1 + 0xc);\n    }\n    freetree234(*(undefined4 *)(param_1 + 0xc));\n  }\n  *(undefined4 *)(param_1 + 0xc) = uVar4;\n  *(undefined4 *)(param_1 + 0x1a8) = 0;\n  iVar1 = saferealloc(*(undefined4 *)(param_1 + 0xe40),uVar11,1);\n  uVar9 = *(uint *)(param_1 + 300);\n  if ((int)uVar9 < 0) {\n    uVar9 = 0;\n  }\n  *(int *)(param_1 + 0xe40) = iVar1;\n  if ((int)uVar9 < (int)uVar11) {\n    while( true ) {\n      iVar1 = iVar1 + uVar9;\n      uVar10 = uVar9 & 7;\n      uVar9 = uVar9 + 1;\n      *(bool *)iVar1 = uVar10 == 0;\n      if (uVar11 == uVar9) break;\n      iVar1 = *(int *)(param_1 + 0xe40);\n    }\n    iVar1 = *(int *)(param_1 + 0x74);\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x74);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x78);\n    *(undefined4 *)(param_1 + 0x74) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x74) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x78);\n  }\n  if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x108);\n  }\n  else {\n    *(uint *)(param_1 + 0x78) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x108);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x10c);\n    *(undefined4 *)(param_1 + 0x108) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x108) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x10c);\n  }\n  if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }\n  else {\n    *(uint *)(param_1 + 0x10c) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x70);\n    *(undefined4 *)(param_1 + 0x6c) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x70);\n  }\n  if ((int)uVar11 <= iVar1) {\n    *(uint *)(param_1 + 0x70) = uVar11 - 1;\n  }\n  *(int *)(param_1 + 0x128) = param_2;\n  *(uint *)(param_1 + 300) = uVar11;\n  *(int *)(param_1 + 0x130) = param_4;\n  *(undefined4 *)(param_1 + 0x17c) = 0;\n  *(undefined4 *)(param_1 + 0x178) = 0;\n  *(undefined4 *)(param_1 + 0x188) = 0;\n  *(undefined4 *)(param_1 + 0x8c) = 0;\n  (*pcVar16)(param_1,uVar8,0,0);\n  FUN_00044484(param_1);\n  term_update(param_1);\n  if (*(code **)(param_1 + 0x107c) == (code *)0x0) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0004b734. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(param_1 + 0x107c))\n            (*(undefined4 *)(param_1 + 0x1080),*(undefined4 *)(param_1 + 300),\n             *(undefined4 *)(param_1 + 0x128));\n  return;\n}" primitive_type (function_declarator "term_size(int param_1,int param_2,uint param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,uint param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  code *pcVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  uint uVar9;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  undefined4 uVar14;\n  int *piVar15;\n  code *pcVar16;\n  \n  iVar1 = *(int *)(param_1 + 0x128);\n  uVar8 = *(undefined4 *)(param_1 + 0x1a4);\n  if (((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)) &&\n     (*(int *)(param_1 + 0x130) == param_4)) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0xe48) = 0;\n  *(undefined4 *)(param_1 + 0xe5c) = 0;\n  if (param_2 < 1) {\n    param_2 = 1;\n  }\n  uVar11 = 1;\n  if (0 < (int)param_3) {\n    uVar11 = param_3;\n  }\n  pcVar16 = (code *)(PTR_LAB_000b5664 + -0x5830);\n  *(undefined4 *)(param_1 + 0xe60) = 0;\n  iVar12 = param_2 + -1;\n  *(undefined4 *)(param_1 + 0xe54) = 0;\n  *(undefined4 *)(param_1 + 0xe58) = 0;\n  FUN_0004a7d0(param_1,0,0,0);\n  *(undefined4 *)(param_1 + 0x7c) = 0;\n  *(undefined4 *)(param_1 + 0x19c) = 0;\n  *(int *)(param_1 + 0x80) = iVar12;\n  *(int *)(param_1 + 0x1a0) = iVar12;\n  if (*(int *)(param_1 + 0x128) == -1) {\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 4) = uVar4;\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 0x128) = 0;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  iVar13 = *(int *)(param_1 + 0x128);\n  iVar3 = count234(*(undefined4 *)(param_1 + 8));\n  if (iVar13 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar3 = *(int *)(param_1 + 0x128);\n  while (iVar3 < param_2) {\n    while (*(int *)(param_1 + 0x14) < 1) {\n      uVar4 = FUN_000444dc(param_1,uVar11,0);\n      uVar14 = *(undefined4 *)(param_1 + 8);\n      uVar5 = count234(uVar14);\n      addpos234(uVar14,uVar4,uVar5);\n      iVar3 = *(int *)(param_1 + 0x128) + 1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      if (param_2 <= iVar3) goto LAB_0004b290;\n    }\n    if (iVar2 < *(int *)(param_1 + 0x14)) {\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }\n    iVar2 = iVar2 + -1;\n    uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2);\n    iVar3 = FUN_00047040(uVar4);\n    safefree(uVar4);\n    iVar13 = *(int *)(param_1 + 0x14);\n    uVar4 = *(undefined4 *)(param_1 + 8);\n    *(undefined4 *)(iVar3 + 0xc) = 0;\n    *(int *)(param_1 + 0x14) = iVar13 + -1;\n    addpos234(uVar4,iVar3,0);\n    *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1;\n    *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1;\n    *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1;\n    iVar3 = *(int *)(param_1 + 0x128) + 1;\n    *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1;\n    *(int *)(param_1 + 0x128) = iVar3;\n  }\nLAB_0004b290:\n  if (param_2 < iVar3) {\n    pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);\n    do {\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    } while (param_2 < iVar3);\n  }\nLAB_0004b3a0:\n  if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar3 = count234(*(undefined4 *)(param_1 + 8));\n  if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  if (param_4 < iVar2) {\n    do {\n      iVar2 = iVar2 + -1;\n      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);\n      safefree(uVar4);\n    } while (param_4 != iVar2);\n  }\n  if (iVar2 < *(int *)(param_1 + 0x14)) {\n    *(int *)(param_1 + 0x14) = iVar2;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  if (param_4 < iVar2) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  if (iVar2 < *(int *)(param_1 + 0x14)) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  piVar7 = (int *)safemalloc(param_2,4);\n  piVar15 = piVar7;\n  do {\n    iVar2 = FUN_000444dc(param_1,uVar11,0);\n    *piVar15 = iVar2;\n    iVar2 = *(int *)(iVar2 + 0x14);\n    iVar3 = uVar11 * 0xc + iVar2;\n    do {\n      *(undefined4 *)(iVar2 + 4) = 0x3ffff;\n      iVar2 = iVar2 + 0xc;\n    } while (iVar3 != iVar2);\n    piVar15 = piVar15 + 1;\n  } while (piVar7 + param_2 != piVar15);\n  iVar2 = *(int *)(param_1 + 0x18);\n  if ((iVar2 != 0) && (0 < iVar1)) {\n    iVar13 = 0;\n    iVar3 = 0;\n    do {\n      if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }\n      iVar13 = iVar13 + 1;\n      iVar3 = iVar13 * 4;\n    } while (iVar1 != iVar13);\n  }\n  safefree(iVar2);\n  *(undefined4 *)(param_1 + 0x20) = 0xffffffff;\n  *(undefined4 *)(param_1 + 0x1c) = 0xffffffff;\n  *(int **)(param_1 + 0x18) = piVar7;\n  uVar4 = newtree234(0);\n  iVar1 = 0;\n  do {\n    uVar5 = FUN_000444dc(param_1,uVar11,1);\n    iVar2 = iVar1 + 1;\n    addpos234(uVar4,uVar5,iVar1);\n    iVar1 = iVar2;\n  } while (param_2 != iVar2);\n  iVar1 = *(int *)(param_1 + 0xc);\n  if (iVar1 != 0) {\n    while (iVar1 = delpos234(iVar1,0), iVar1 != 0) {\n      FUN_000459d0(iVar1);\n      iVar1 = *(int *)(param_1 + 0xc);\n    }\n    freetree234(*(undefined4 *)(param_1 + 0xc));\n  }\n  *(undefined4 *)(param_1 + 0xc) = uVar4;\n  *(undefined4 *)(param_1 + 0x1a8) = 0;\n  iVar1 = saferealloc(*(undefined4 *)(param_1 + 0xe40),uVar11,1);\n  uVar9 = *(uint *)(param_1 + 300);\n  if ((int)uVar9 < 0) {\n    uVar9 = 0;\n  }\n  *(int *)(param_1 + 0xe40) = iVar1;\n  if ((int)uVar9 < (int)uVar11) {\n    while( true ) {\n      iVar1 = iVar1 + uVar9;\n      uVar10 = uVar9 & 7;\n      uVar9 = uVar9 + 1;\n      *(bool *)iVar1 = uVar10 == 0;\n      if (uVar11 == uVar9) break;\n      iVar1 = *(int *)(param_1 + 0xe40);\n    }\n    iVar1 = *(int *)(param_1 + 0x74);\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x74);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x78);\n    *(undefined4 *)(param_1 + 0x74) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x74) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x78);\n  }\n  if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x108);\n  }\n  else {\n    *(uint *)(param_1 + 0x78) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x108);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x10c);\n    *(undefined4 *)(param_1 + 0x108) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x108) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x10c);\n  }\n  if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }\n  else {\n    *(uint *)(param_1 + 0x10c) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x70);\n    *(undefined4 *)(param_1 + 0x6c) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x70);\n  }\n  if ((int)uVar11 <= iVar1) {\n    *(uint *)(param_1 + 0x70) = uVar11 - 1;\n  }\n  *(int *)(param_1 + 0x128) = param_2;\n  *(uint *)(param_1 + 300) = uVar11;\n  *(int *)(param_1 + 0x130) = param_4;\n  *(undefined4 *)(param_1 + 0x17c) = 0;\n  *(undefined4 *)(param_1 + 0x178) = 0;\n  *(undefined4 *)(param_1 + 0x188) = 0;\n  *(undefined4 *)(param_1 + 0x8c) = 0;\n  (*pcVar16)(param_1,uVar8,0,0);\n  FUN_00044484(param_1);\n  term_update(param_1);\n  if (*(code **)(param_1 + 0x107c) == (code *)0x0) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0004b734. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(param_1 + 0x107c))\n            (*(undefined4 *)(param_1 + 0x1080),*(undefined4 *)(param_1 + 300),\n             *(undefined4 *)(param_1 + 0x128));\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "undefined4 uVar14;" type_identifier identifier ;) (declaration "int *piVar15;" primitive_type (pointer_declarator "*piVar15" * identifier) ;) (declaration "code *pcVar16;" type_identifier (pointer_declarator "*pcVar16" * identifier) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x128);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x128)" identifier = (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) ))))) ;) (expression_statement "uVar8 = *(undefined4 *)(param_1 + 0x1a4);" (assignment_expression "uVar8 = *(undefined4 *)(param_1 + 0x1a4)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x1a4)" * (cast_expression "(undefined4 *)(param_1 + 0x1a4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a4)" ( (binary_expression "param_1 + 0x1a4" identifier + number_literal) ))))) ;) (if_statement "if (((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)) &&\n     (*(int *)(param_1 + 0x130) == param_4)) {\n    return;\n  }" if (parenthesized_expression "(((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)) &&\n     (*(int *)(param_1 + 0x130) == param_4))" ( (binary_expression "((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)) &&\n     (*(int *)(param_1 + 0x130) == param_4)" (parenthesized_expression "((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3))" ( (binary_expression "(iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)" (parenthesized_expression "(iVar1 == param_2)" ( (binary_expression "iVar1 == param_2" identifier == identifier) )) && (parenthesized_expression "(*(uint *)(param_1 + 300) == param_3)" ( (binary_expression "*(uint *)(param_1 + 300) == param_3" (pointer_expression "*(uint *)(param_1 + 300)" * (cast_expression "(uint *)(param_1 + 300)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) )))) == identifier) ))) )) && (parenthesized_expression "(*(int *)(param_1 + 0x130) == param_4)" ( (binary_expression "*(int *)(param_1 + 0x130) == param_4" (pointer_expression "*(int *)(param_1 + 0x130)" * (cast_expression "(int *)(param_1 + 0x130)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x130)" ( (binary_expression "param_1 + 0x130" identifier + number_literal) )))) == identifier) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(param_1 + 0xe48) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe48) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe48)" * (cast_expression "(undefined4 *)(param_1 + 0xe48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe48)" ( (binary_expression "param_1 + 0xe48" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xe5c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe5c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe5c)" * (cast_expression "(undefined4 *)(param_1 + 0xe5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe5c)" ( (binary_expression "param_1 + 0xe5c" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (param_2 < 1) {\n    param_2 = 1;\n  }" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n    param_2 = 1;\n  }" { (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" identifier = number_literal) ;) })) (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" identifier = number_literal) ;) (if_statement "if (0 < (int)param_3) {\n    uVar11 = param_3;\n  }" if (parenthesized_expression "(0 < (int)param_3)" ( (binary_expression "0 < (int)param_3" number_literal < (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar11 = param_3;\n  }" { (expression_statement "uVar11 = param_3;" (assignment_expression "uVar11 = param_3" identifier = identifier) ;) })) (expression_statement "pcVar16 = (code *)(PTR_LAB_000b5664 + -0x5830);" (assignment_expression "pcVar16 = (code *)(PTR_LAB_000b5664 + -0x5830)" identifier = (cast_expression "(code *)(PTR_LAB_000b5664 + -0x5830)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000b5664 + -0x5830)" ( (binary_expression "PTR_LAB_000b5664 + -0x5830" identifier + number_literal) )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0xe60) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe60) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe60)" * (cast_expression "(undefined4 *)(param_1 + 0xe60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe60)" ( (binary_expression "param_1 + 0xe60" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar12 = param_2 + -1;" (assignment_expression "iVar12 = param_2 + -1" identifier = (binary_expression "param_2 + -1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(param_1 + 0xe54) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe54) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe54)" * (cast_expression "(undefined4 *)(param_1 + 0xe54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe54)" ( (binary_expression "param_1 + 0xe54" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xe58) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe58) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe58)" * (cast_expression "(undefined4 *)(param_1 + 0xe58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe58)" ( (binary_expression "param_1 + 0xe58" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0004a7d0(param_1,0,0,0);" (call_expression "FUN_0004a7d0(param_1,0,0,0)" identifier (argument_list "(param_1,0,0,0)" ( identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x7c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x7c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x7c)" * (cast_expression "(undefined4 *)(param_1 + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x19c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x19c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x19c)" * (cast_expression "(undefined4 *)(param_1 + 0x19c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x19c)" ( (binary_expression "param_1 + 0x19c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x80) = iVar12;" (assignment_expression "*(int *)(param_1 + 0x80) = iVar12" (pointer_expression "*(int *)(param_1 + 0x80)" * (cast_expression "(int *)(param_1 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x1a0) = iVar12;" (assignment_expression "*(int *)(param_1 + 0x1a0) = iVar12" (pointer_expression "*(int *)(param_1 + 0x1a0)" * (cast_expression "(int *)(param_1 + 0x1a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a0)" ( (binary_expression "param_1 + 0x1a0" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)(param_1 + 0x128) == -1) {\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 4) = uVar4;\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 0x128) = 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x128) == -1)" ( (binary_expression "*(int *)(param_1 + 0x128) == -1" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 4) = uVar4;\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 0x128) = 0;\n  }" { (expression_statement "uVar4 = newtree234(0);" (assignment_expression "uVar4 = newtree234(0)" identifier = (call_expression "newtree234(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = uVar4;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar4" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = newtree234(0);" (assignment_expression "uVar4 = newtree234(0)" identifier = (call_expression "newtree234(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar4;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar4" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x128) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x128) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x128)" * (cast_expression "(undefined4 *)(param_1 + 0x128)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "iVar2 = count234(*(undefined4 *)(param_1 + 4));" (assignment_expression "iVar2 = count234(*(undefined4 *)(param_1 + 4))" identifier = (call_expression "count234(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "iVar13 = *(int *)(param_1 + 0x128);" (assignment_expression "iVar13 = *(int *)(param_1 + 0x128)" identifier = (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = count234(*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar3 = count234(*(undefined4 *)(param_1 + 8))" identifier = (call_expression "count234(*(undefined4 *)(param_1 + 8))" identifier (argument_list "(*(undefined4 *)(param_1 + 8))" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar13 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" if (parenthesized_expression "(iVar13 != iVar3)" ( (binary_expression "iVar13 != iVar3" identifier != identifier) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar3 = *(int *)(param_1 + 0x128);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x128)" identifier = (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) ))))) ;) (while_statement "while (iVar3 < param_2) {\n    while (*(int *)(param_1 + 0x14) < 1) {\n      uVar4 = FUN_000444dc(param_1,uVar11,0);\n      uVar14 = *(undefined4 *)(param_1 + 8);\n      uVar5 = count234(uVar14);\n      addpos234(uVar14,uVar4,uVar5);\n      iVar3 = *(int *)(param_1 + 0x128) + 1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      if (param_2 <= iVar3) goto LAB_0004b290;\n    }\n    if (iVar2 < *(int *)(param_1 + 0x14)) {\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }\n    iVar2 = iVar2 + -1;\n    uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2);\n    iVar3 = FUN_00047040(uVar4);\n    safefree(uVar4);\n    iVar13 = *(int *)(param_1 + 0x14);\n    uVar4 = *(undefined4 *)(param_1 + 8);\n    *(undefined4 *)(iVar3 + 0xc) = 0;\n    *(int *)(param_1 + 0x14) = iVar13 + -1;\n    addpos234(uVar4,iVar3,0);\n    *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1;\n    *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1;\n    *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1;\n    iVar3 = *(int *)(param_1 + 0x128) + 1;\n    *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1;\n    *(int *)(param_1 + 0x128) = iVar3;\n  }" while (parenthesized_expression "(iVar3 < param_2)" ( (binary_expression "iVar3 < param_2" identifier < identifier) )) (compound_statement "{\n    while (*(int *)(param_1 + 0x14) < 1) {\n      uVar4 = FUN_000444dc(param_1,uVar11,0);\n      uVar14 = *(undefined4 *)(param_1 + 8);\n      uVar5 = count234(uVar14);\n      addpos234(uVar14,uVar4,uVar5);\n      iVar3 = *(int *)(param_1 + 0x128) + 1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      if (param_2 <= iVar3) goto LAB_0004b290;\n    }\n    if (iVar2 < *(int *)(param_1 + 0x14)) {\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }\n    iVar2 = iVar2 + -1;\n    uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2);\n    iVar3 = FUN_00047040(uVar4);\n    safefree(uVar4);\n    iVar13 = *(int *)(param_1 + 0x14);\n    uVar4 = *(undefined4 *)(param_1 + 8);\n    *(undefined4 *)(iVar3 + 0xc) = 0;\n    *(int *)(param_1 + 0x14) = iVar13 + -1;\n    addpos234(uVar4,iVar3,0);\n    *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1;\n    *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1;\n    *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1;\n    iVar3 = *(int *)(param_1 + 0x128) + 1;\n    *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1;\n    *(int *)(param_1 + 0x128) = iVar3;\n  }" { (while_statement "while (*(int *)(param_1 + 0x14) < 1) {\n      uVar4 = FUN_000444dc(param_1,uVar11,0);\n      uVar14 = *(undefined4 *)(param_1 + 8);\n      uVar5 = count234(uVar14);\n      addpos234(uVar14,uVar4,uVar5);\n      iVar3 = *(int *)(param_1 + 0x128) + 1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      if (param_2 <= iVar3) goto LAB_0004b290;\n    }" while (parenthesized_expression "(*(int *)(param_1 + 0x14) < 1)" ( (binary_expression "*(int *)(param_1 + 0x14) < 1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n      uVar4 = FUN_000444dc(param_1,uVar11,0);\n      uVar14 = *(undefined4 *)(param_1 + 8);\n      uVar5 = count234(uVar14);\n      addpos234(uVar14,uVar4,uVar5);\n      iVar3 = *(int *)(param_1 + 0x128) + 1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      if (param_2 <= iVar3) goto LAB_0004b290;\n    }" { (expression_statement "uVar4 = FUN_000444dc(param_1,uVar11,0);" (assignment_expression "uVar4 = FUN_000444dc(param_1,uVar11,0)" identifier = (call_expression "FUN_000444dc(param_1,uVar11,0)" identifier (argument_list "(param_1,uVar11,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "uVar14 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar14 = *(undefined4 *)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = count234(uVar14);" (assignment_expression "uVar5 = count234(uVar14)" identifier = (call_expression "count234(uVar14)" identifier (argument_list "(uVar14)" ( identifier )))) ;) (expression_statement "addpos234(uVar14,uVar4,uVar5);" (call_expression "addpos234(uVar14,uVar4,uVar5)" identifier (argument_list "(uVar14,uVar4,uVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x128) + 1;" (assignment_expression "iVar3 = *(int *)(param_1 + 0x128) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x128) + 1" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x128) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x128) = iVar3" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_2 <= iVar3) goto LAB_0004b290;" if (parenthesized_expression "(param_2 <= iVar3)" ( (binary_expression "param_2 <= iVar3" identifier <= identifier) )) (goto_statement "goto LAB_0004b290;" goto statement_identifier ;)) })) (if_statement "if (iVar2 < *(int *)(param_1 + 0x14)) {\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }" if (parenthesized_expression "(iVar2 < *(int *)(param_1 + 0x14))" ( (binary_expression "iVar2 < *(int *)(param_1 + 0x14)" identifier < (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }" { (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2);" (assignment_expression "uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2)" identifier = (call_expression "delpos234(*(undefined4 *)(param_1 + 4),iVar2)" identifier (argument_list "(*(undefined4 *)(param_1 + 4),iVar2)" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "iVar3 = FUN_00047040(uVar4);" (assignment_expression "iVar3 = FUN_00047040(uVar4)" identifier = (call_expression "FUN_00047040(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "iVar13 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar13 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" * (cast_expression "(undefined4 *)(iVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x14) = iVar13 + -1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar13 + -1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "iVar13 + -1" identifier + number_literal)) ;) (expression_statement "addpos234(uVar4,iVar3,0);" (call_expression "addpos234(uVar4,iVar3,0)" identifier (argument_list "(uVar4,iVar3,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "*(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1;" (assignment_expression "*(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1" (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x74) + 1" (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1;" (assignment_expression "*(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1" (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x108) + 1" (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1;" (assignment_expression "*(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x6c) + 1" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x128) + 1;" (assignment_expression "iVar3 = *(int *)(param_1 + 0x128) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x128) + 1" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1;" (assignment_expression "*(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1" (pointer_expression "*(int *)(param_1 + 0x17c)" * (cast_expression "(int *)(param_1 + 0x17c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x17c)" ( (binary_expression "param_1 + 0x17c" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x17c) + 1" (pointer_expression "*(int *)(param_1 + 0x17c)" * (cast_expression "(int *)(param_1 + 0x17c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x17c)" ( (binary_expression "param_1 + 0x17c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x128) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x128) = iVar3" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = identifier) ;) })) (labeled_statement "LAB_0004b290:\n  if (param_2 < iVar3) {\n    pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);\n    do {\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    } while (param_2 < iVar3);\n  }" statement_identifier : (if_statement "if (param_2 < iVar3) {\n    pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);\n    do {\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    } while (param_2 < iVar3);\n  }" if (parenthesized_expression "(param_2 < iVar3)" ( (binary_expression "param_2 < iVar3" identifier < identifier) )) (compound_statement "{\n    pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);\n    do {\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    } while (param_2 < iVar3);\n  }" { (expression_statement "pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);" (assignment_expression "pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840)" identifier = (cast_expression "(code *)(PTR_LAB_000b55b4 + 0x6840)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000b55b4 + 0x6840)" ( (binary_expression "PTR_LAB_000b55b4 + 0x6840" identifier + number_literal) )))) ;) (do_statement "do {\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    } while (param_2 < iVar3);" do (compound_statement "{\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    }" { (while_statement "while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }" while (parenthesized_expression "(*(int *)(param_1 + 0x6c) < iVar3 + -1)" ( (binary_expression "*(int *)(param_1 + 0x6c) < iVar3 + -1" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) < (binary_expression "iVar3 + -1" identifier + number_literal)) )) (compound_statement "{\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }" { (expression_statement "iVar3 = delpos234(*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar3 = delpos234(*(undefined4 *)(param_1 + 8))" identifier = (call_expression "delpos234(*(undefined4 *)(param_1 + 8))" identifier (argument_list "(*(undefined4 *)(param_1 + 8))" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n          FUN_000459d0(iVar3);\n        }" { (expression_statement "FUN_000459d0(iVar3);" (call_expression "FUN_000459d0(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) })) (expression_statement "iVar3 = *(int *)(param_1 + 0x128) + -1;" (assignment_expression "iVar3 = *(int *)(param_1 + 0x128) + -1" identifier = (binary_expression "*(int *)(param_1 + 0x128) + -1" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x128) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x128) = iVar3" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar3 <= param_2) goto LAB_0004b3a0;" if (parenthesized_expression "(iVar3 <= param_2)" ( (binary_expression "iVar3 <= param_2" identifier <= identifier) )) (goto_statement "goto LAB_0004b3a0;" goto statement_identifier ;)) })) (expression_statement "iVar13 = iVar2 + 1;" (assignment_expression "iVar13 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);" (assignment_expression "iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0)" identifier = (call_expression "delpos234(*(undefined4 *)(param_1 + 8),0)" identifier (argument_list "(*(undefined4 *)(param_1 + 8),0)" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 4);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 4)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = (*pcVar6)(iVar3);" (assignment_expression "uVar4 = (*pcVar6)(iVar3)" identifier = (call_expression "(*pcVar6)(iVar3)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "addpos234(uVar5,uVar4,iVar2);" (call_expression "addpos234(uVar5,uVar4,iVar2)" identifier (argument_list "(uVar5,uVar4,iVar2)" ( identifier , identifier , identifier ))) ;) (if_statement "if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_000459d0(iVar3);\n      }" { (expression_statement "FUN_000459d0(iVar3);" (call_expression "FUN_000459d0(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) })) (expression_statement "*(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;" (assignment_expression "*(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1" (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x74) + -1" (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;" (assignment_expression "*(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1" (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x108) + -1" (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;" (assignment_expression "*(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x14) + 1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x128) + -1;" (assignment_expression "iVar3 = *(int *)(param_1 + 0x128) + -1" identifier = (binary_expression "*(int *)(param_1 + 0x128) + -1" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;" (assignment_expression "*(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x6c) + -1" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;" (assignment_expression "*(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1" (pointer_expression "*(int *)(param_1 + 0x17c)" * (cast_expression "(int *)(param_1 + 0x17c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x17c)" ( (binary_expression "param_1 + 0x17c" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x17c) + -1" (pointer_expression "*(int *)(param_1 + 0x17c)" * (cast_expression "(int *)(param_1 + 0x17c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x17c)" ( (binary_expression "param_1 + 0x17c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x128) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x128) = iVar3" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = iVar13;" (assignment_expression "iVar2 = iVar13" identifier = identifier) ;) }) while (parenthesized_expression "(param_2 < iVar3)" ( (binary_expression "param_2 < iVar3" identifier < identifier) )) ;) }))) (labeled_statement "LAB_0004b3a0:\n  if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" statement_identifier : (if_statement "if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" if (parenthesized_expression "(param_2 != iVar3)" ( (binary_expression "param_2 != iVar3" identifier != identifier) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" identifier + number_literal) ))) ;) (return_statement "return;" return ;) }))) (expression_statement "iVar3 = count234(*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar3 = count234(*(undefined4 *)(param_1 + 8))" identifier = (call_expression "count234(*(undefined4 *)(param_1 + 8))" identifier (argument_list "(*(undefined4 *)(param_1 + 8))" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (if_statement "if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" if (parenthesized_expression "(param_2 != iVar3)" ( (binary_expression "param_2 != iVar3" identifier != identifier) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (if_statement "if (param_4 < iVar2) {\n    do {\n      iVar2 = iVar2 + -1;\n      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);\n      safefree(uVar4);\n    } while (param_4 != iVar2);\n  }" if (parenthesized_expression "(param_4 < iVar2)" ( (binary_expression "param_4 < iVar2" identifier < identifier) )) (compound_statement "{\n    do {\n      iVar2 = iVar2 + -1;\n      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);\n      safefree(uVar4);\n    } while (param_4 != iVar2);\n  }" { (do_statement "do {\n      iVar2 = iVar2 + -1;\n      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);\n      safefree(uVar4);\n    } while (param_4 != iVar2);" do (compound_statement "{\n      iVar2 = iVar2 + -1;\n      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);\n      safefree(uVar4);\n    }" { (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);" (assignment_expression "uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0)" identifier = (call_expression "delpos234(*(undefined4 *)(param_1 + 4),0)" identifier (argument_list "(*(undefined4 *)(param_1 + 4),0)" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) }) while (parenthesized_expression "(param_4 != iVar2)" ( (binary_expression "param_4 != iVar2" identifier != identifier) )) ;) })) (if_statement "if (iVar2 < *(int *)(param_1 + 0x14)) {\n    *(int *)(param_1 + 0x14) = iVar2;\n  }" if (parenthesized_expression "(iVar2 < *(int *)(param_1 + 0x14))" ( (binary_expression "iVar2 < *(int *)(param_1 + 0x14)" identifier < (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    *(int *)(param_1 + 0x14) = iVar2;\n  }" { (expression_statement "*(int *)(param_1 + 0x14) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar2" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar2 = count234(*(undefined4 *)(param_1 + 4));" (assignment_expression "iVar2 = count234(*(undefined4 *)(param_1 + 4))" identifier = (call_expression "count234(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (if_statement "if (param_4 < iVar2) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" if (parenthesized_expression "(param_4 < iVar2)" ( (binary_expression "param_4 < iVar2" identifier < identifier) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = count234(*(undefined4 *)(param_1 + 4));" (assignment_expression "iVar2 = count234(*(undefined4 *)(param_1 + 4))" identifier = (call_expression "count234(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar2 < *(int *)(param_1 + 0x14)) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" if (parenthesized_expression "(iVar2 < *(int *)(param_1 + 0x14))" ( (binary_expression "iVar2 < *(int *)(param_1 + 0x14)" identifier < (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "piVar7 = (int *)safemalloc(param_2,4);" (assignment_expression "piVar7 = (int *)safemalloc(param_2,4)" identifier = (cast_expression "(int *)safemalloc(param_2,4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(param_2,4)" identifier (argument_list "(param_2,4)" ( identifier , number_literal ))))) ;) (expression_statement "piVar15 = piVar7;" (assignment_expression "piVar15 = piVar7" identifier = identifier) ;) (do_statement "do {\n    iVar2 = FUN_000444dc(param_1,uVar11,0);\n    *piVar15 = iVar2;\n    iVar2 = *(int *)(iVar2 + 0x14);\n    iVar3 = uVar11 * 0xc + iVar2;\n    do {\n      *(undefined4 *)(iVar2 + 4) = 0x3ffff;\n      iVar2 = iVar2 + 0xc;\n    } while (iVar3 != iVar2);\n    piVar15 = piVar15 + 1;\n  } while (piVar7 + param_2 != piVar15);" do (compound_statement "{\n    iVar2 = FUN_000444dc(param_1,uVar11,0);\n    *piVar15 = iVar2;\n    iVar2 = *(int *)(iVar2 + 0x14);\n    iVar3 = uVar11 * 0xc + iVar2;\n    do {\n      *(undefined4 *)(iVar2 + 4) = 0x3ffff;\n      iVar2 = iVar2 + 0xc;\n    } while (iVar3 != iVar2);\n    piVar15 = piVar15 + 1;\n  }" { (expression_statement "iVar2 = FUN_000444dc(param_1,uVar11,0);" (assignment_expression "iVar2 = FUN_000444dc(param_1,uVar11,0)" identifier = (call_expression "FUN_000444dc(param_1,uVar11,0)" identifier (argument_list "(param_1,uVar11,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "*piVar15 = iVar2;" (assignment_expression "*piVar15 = iVar2" (pointer_expression "*piVar15" * identifier) = identifier) ;) (expression_statement "iVar2 = *(int *)(iVar2 + 0x14);" (assignment_expression "iVar2 = *(int *)(iVar2 + 0x14)" identifier = (pointer_expression "*(int *)(iVar2 + 0x14)" * (cast_expression "(int *)(iVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = uVar11 * 0xc + iVar2;" (assignment_expression "iVar3 = uVar11 * 0xc + iVar2" identifier = (binary_expression "uVar11 * 0xc + iVar2" (binary_expression "uVar11 * 0xc" identifier * number_literal) + identifier)) ;) (do_statement "do {\n      *(undefined4 *)(iVar2 + 4) = 0x3ffff;\n      iVar2 = iVar2 + 0xc;\n    } while (iVar3 != iVar2);" do (compound_statement "{\n      *(undefined4 *)(iVar2 + 4) = 0x3ffff;\n      iVar2 = iVar2 + 0xc;\n    }" { (expression_statement "*(undefined4 *)(iVar2 + 4) = 0x3ffff;" (assignment_expression "*(undefined4 *)(iVar2 + 4) = 0x3ffff" (pointer_expression "*(undefined4 *)(iVar2 + 4)" * (cast_expression "(undefined4 *)(iVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = iVar2 + 0xc;" (assignment_expression "iVar2 = iVar2 + 0xc" identifier = (binary_expression "iVar2 + 0xc" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != iVar2)" ( (binary_expression "iVar3 != iVar2" identifier != identifier) )) ;) (expression_statement "piVar15 = piVar15 + 1;" (assignment_expression "piVar15 = piVar15 + 1" identifier = (binary_expression "piVar15 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar7 + param_2 != piVar15)" ( (binary_expression "piVar7 + param_2 != piVar15" (binary_expression "piVar7 + param_2" identifier + identifier) != identifier) )) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x18)" identifier = (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) ))))) ;) (if_statement "if ((iVar2 != 0) && (0 < iVar1)) {\n    iVar13 = 0;\n    iVar3 = 0;\n    do {\n      if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }\n      iVar13 = iVar13 + 1;\n      iVar3 = iVar13 * 4;\n    } while (iVar1 != iVar13);\n  }" if (parenthesized_expression "((iVar2 != 0) && (0 < iVar1))" ( (binary_expression "(iVar2 != 0) && (0 < iVar1)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) ))) )) (compound_statement "{\n    iVar13 = 0;\n    iVar3 = 0;\n    do {\n      if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }\n      iVar13 = iVar13 + 1;\n      iVar3 = iVar13 * 4;\n    } while (iVar1 != iVar13);\n  }" { (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }\n      iVar13 = iVar13 + 1;\n      iVar3 = iVar13 * 4;\n    } while (iVar1 != iVar13);" do (compound_statement "{\n      if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }\n      iVar13 = iVar13 + 1;\n      iVar3 = iVar13 * 4;\n    }" { (if_statement "if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }" if (parenthesized_expression "(*(int *)(iVar2 + iVar3) != 0)" ( (binary_expression "*(int *)(iVar2 + iVar3) != 0" (pointer_expression "*(int *)(iVar2 + iVar3)" * (cast_expression "(int *)(iVar2 + iVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar3)" ( (binary_expression "iVar2 + iVar3" identifier + identifier) )))) != number_literal) )) (compound_statement "{\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }" { (expression_statement "FUN_000459d0();" (call_expression "FUN_000459d0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x18)" identifier = (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) ))))) ;) })) (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" identifier = (binary_expression "iVar13 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = iVar13 * 4;" (assignment_expression "iVar3 = iVar13 * 4" identifier = (binary_expression "iVar13 * 4" identifier * number_literal)) ;) }) while (parenthesized_expression "(iVar1 != iVar13)" ( (binary_expression "iVar1 != iVar13" identifier != identifier) )) ;) })) (expression_statement "safefree(iVar2);" (call_expression "safefree(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x20) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int **)(param_1 + 0x18) = piVar7;" (assignment_expression "*(int **)(param_1 + 0x18) = piVar7" (pointer_expression "*(int **)(param_1 + 0x18)" * (cast_expression "(int **)(param_1 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = newtree234(0);" (assignment_expression "uVar4 = newtree234(0)" identifier = (call_expression "newtree234(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    uVar5 = FUN_000444dc(param_1,uVar11,1);\n    iVar2 = iVar1 + 1;\n    addpos234(uVar4,uVar5,iVar1);\n    iVar1 = iVar2;\n  } while (param_2 != iVar2);" do (compound_statement "{\n    uVar5 = FUN_000444dc(param_1,uVar11,1);\n    iVar2 = iVar1 + 1;\n    addpos234(uVar4,uVar5,iVar1);\n    iVar1 = iVar2;\n  }" { (expression_statement "uVar5 = FUN_000444dc(param_1,uVar11,1);" (assignment_expression "uVar5 = FUN_000444dc(param_1,uVar11,1)" identifier = (call_expression "FUN_000444dc(param_1,uVar11,1)" identifier (argument_list "(param_1,uVar11,1)" ( identifier , identifier , number_literal )))) ;) (expression_statement "iVar2 = iVar1 + 1;" (assignment_expression "iVar2 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "addpos234(uVar4,uVar5,iVar1);" (call_expression "addpos234(uVar4,uVar5,iVar1)" identifier (argument_list "(uVar4,uVar5,iVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar1 = iVar2;" (assignment_expression "iVar1 = iVar2" identifier = identifier) ;) }) while (parenthesized_expression "(param_2 != iVar2)" ( (binary_expression "param_2 != iVar2" identifier != identifier) )) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    while (iVar1 = delpos234(iVar1,0), iVar1 != 0) {\n      FUN_000459d0(iVar1);\n      iVar1 = *(int *)(param_1 + 0xc);\n    }\n    freetree234(*(undefined4 *)(param_1 + 0xc));\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    while (iVar1 = delpos234(iVar1,0), iVar1 != 0) {\n      FUN_000459d0(iVar1);\n      iVar1 = *(int *)(param_1 + 0xc);\n    }\n    freetree234(*(undefined4 *)(param_1 + 0xc));\n  }" { (while_statement "while (iVar1 = delpos234(iVar1,0), iVar1 != 0) {\n      FUN_000459d0(iVar1);\n      iVar1 = *(int *)(param_1 + 0xc);\n    }" while (parenthesized_expression "(iVar1 = delpos234(iVar1,0), iVar1 != 0)" ( (comma_expression "iVar1 = delpos234(iVar1,0), iVar1 != 0" (assignment_expression "iVar1 = delpos234(iVar1,0)" identifier = (call_expression "delpos234(iVar1,0)" identifier (argument_list "(iVar1,0)" ( identifier , number_literal )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) )) (compound_statement "{\n      FUN_000459d0(iVar1);\n      iVar1 = *(int *)(param_1 + 0xc);\n    }" { (expression_statement "FUN_000459d0(iVar1);" (call_expression "FUN_000459d0(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) })) (expression_statement "freetree234(*(undefined4 *)(param_1 + 0xc));" (call_expression "freetree234(*(undefined4 *)(param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0xc) = uVar4;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = uVar4" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1a8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1a8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1a8)" * (cast_expression "(undefined4 *)(param_1 + 0x1a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a8)" ( (binary_expression "param_1 + 0x1a8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = saferealloc(*(undefined4 *)(param_1 + 0xe40),uVar11,1);" (assignment_expression "iVar1 = saferealloc(*(undefined4 *)(param_1 + 0xe40),uVar11,1)" identifier = (call_expression "saferealloc(*(undefined4 *)(param_1 + 0xe40),uVar11,1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0xe40),uVar11,1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xe40)" * (cast_expression "(undefined4 *)(param_1 + 0xe40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe40)" ( (binary_expression "param_1 + 0xe40" identifier + number_literal) )))) , identifier , number_literal )))) ;) (expression_statement "uVar9 = *(uint *)(param_1 + 300);" (assignment_expression "uVar9 = *(uint *)(param_1 + 300)" identifier = (pointer_expression "*(uint *)(param_1 + 300)" * (cast_expression "(uint *)(param_1 + 300)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) ))))) ;) (if_statement "if ((int)uVar9 < 0) {\n    uVar9 = 0;\n  }" if (parenthesized_expression "((int)uVar9 < 0)" ( (binary_expression "(int)uVar9 < 0" (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    uVar9 = 0;\n  }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) })) (expression_statement "*(int *)(param_1 + 0xe40) = iVar1;" (assignment_expression "*(int *)(param_1 + 0xe40) = iVar1" (pointer_expression "*(int *)(param_1 + 0xe40)" * (cast_expression "(int *)(param_1 + 0xe40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe40)" ( (binary_expression "param_1 + 0xe40" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((int)uVar9 < (int)uVar11) {\n    while( true ) {\n      iVar1 = iVar1 + uVar9;\n      uVar10 = uVar9 & 7;\n      uVar9 = uVar9 + 1;\n      *(bool *)iVar1 = uVar10 == 0;\n      if (uVar11 == uVar9) break;\n      iVar1 = *(int *)(param_1 + 0xe40);\n    }\n    iVar1 = *(int *)(param_1 + 0x74);\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x74);\n  }" if (parenthesized_expression "((int)uVar9 < (int)uVar11)" ( (binary_expression "(int)uVar9 < (int)uVar11" (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    while( true ) {\n      iVar1 = iVar1 + uVar9;\n      uVar10 = uVar9 & 7;\n      uVar9 = uVar9 + 1;\n      *(bool *)iVar1 = uVar10 == 0;\n      if (uVar11 == uVar9) break;\n      iVar1 = *(int *)(param_1 + 0xe40);\n    }\n    iVar1 = *(int *)(param_1 + 0x74);\n  }" { (while_statement "while( true ) {\n      iVar1 = iVar1 + uVar9;\n      uVar10 = uVar9 & 7;\n      uVar9 = uVar9 + 1;\n      *(bool *)iVar1 = uVar10 == 0;\n      if (uVar11 == uVar9) break;\n      iVar1 = *(int *)(param_1 + 0xe40);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar1 = iVar1 + uVar9;\n      uVar10 = uVar9 & 7;\n      uVar9 = uVar9 + 1;\n      *(bool *)iVar1 = uVar10 == 0;\n      if (uVar11 == uVar9) break;\n      iVar1 = *(int *)(param_1 + 0xe40);\n    }" { (expression_statement "iVar1 = iVar1 + uVar9;" (assignment_expression "iVar1 = iVar1 + uVar9" identifier = (binary_expression "iVar1 + uVar9" identifier + identifier)) ;) (expression_statement "uVar10 = uVar9 & 7;" (assignment_expression "uVar10 = uVar9 & 7" identifier = (binary_expression "uVar9 & 7" identifier & number_literal)) ;) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) (expression_statement "*(bool *)iVar1 = uVar10 == 0;" (assignment_expression "*(bool *)iVar1 = uVar10 == 0" (pointer_expression "*(bool *)iVar1" * (cast_expression "(bool *)iVar1" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "uVar10 == 0" identifier == number_literal)) ;) (if_statement "if (uVar11 == uVar9) break;" if (parenthesized_expression "(uVar11 == uVar9)" ( (binary_expression "uVar11 == uVar9" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *(int *)(param_1 + 0xe40);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xe40)" identifier = (pointer_expression "*(int *)(param_1 + 0xe40)" * (cast_expression "(int *)(param_1 + 0xe40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe40)" ( (binary_expression "param_1 + 0xe40" identifier + number_literal) ))))) ;) })) (expression_statement "iVar1 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x74)" identifier = (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    iVar1 = *(int *)(param_1 + 0x74);\n  }" else (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x74);\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x74)" identifier = (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x78);\n    *(undefined4 *)(param_1 + 0x74) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x74) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x78);\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x78);\n    *(undefined4 *)(param_1 + 0x74) = 0;\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x78);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x78)" identifier = (pointer_expression "*(int *)(param_1 + 0x78)" * (cast_expression "(int *)(param_1 + 0x78)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x74) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x74) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x74)" * (cast_expression "(undefined4 *)(param_1 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x74) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x78);\n  }" else (compound_statement "{\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x74) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x78);\n  }" { (if_statement "if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x74) = iVar12;\n    }" if (parenthesized_expression "(param_2 <= iVar1)" ( (binary_expression "param_2 <= iVar1" identifier <= identifier) )) (compound_statement "{\n      *(int *)(param_1 + 0x74) = iVar12;\n    }" { (expression_statement "*(int *)(param_1 + 0x74) = iVar12;" (assignment_expression "*(int *)(param_1 + 0x74) = iVar12" (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar1 = *(int *)(param_1 + 0x78);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x78)" identifier = (pointer_expression "*(int *)(param_1 + 0x78)" * (cast_expression "(int *)(param_1 + 0x78)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x108);\n  }\n  else {\n    *(uint *)(param_1 + 0x78) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x108);\n  }" if (parenthesized_expression "(iVar1 < (int)uVar11)" ( (binary_expression "iVar1 < (int)uVar11" identifier < (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x108);\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x108);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x108)" identifier = (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    *(uint *)(param_1 + 0x78) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x108);\n  }" else (compound_statement "{\n    *(uint *)(param_1 + 0x78) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x108);\n  }" { (expression_statement "*(uint *)(param_1 + 0x78) = uVar11 - 1;" (assignment_expression "*(uint *)(param_1 + 0x78) = uVar11 - 1" (pointer_expression "*(uint *)(param_1 + 0x78)" * (cast_expression "(uint *)(param_1 + 0x78)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) = (binary_expression "uVar11 - 1" identifier - number_literal)) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x108);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x108)" identifier = (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x10c);\n    *(undefined4 *)(param_1 + 0x108) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x108) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x10c);\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x10c);\n    *(undefined4 *)(param_1 + 0x108) = 0;\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x10c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10c)" identifier = (pointer_expression "*(int *)(param_1 + 0x10c)" * (cast_expression "(int *)(param_1 + 0x10c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x108) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x108) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x108)" * (cast_expression "(undefined4 *)(param_1 + 0x108)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x108) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x10c);\n  }" else (compound_statement "{\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x108) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x10c);\n  }" { (if_statement "if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x108) = iVar12;\n    }" if (parenthesized_expression "(param_2 <= iVar1)" ( (binary_expression "param_2 <= iVar1" identifier <= identifier) )) (compound_statement "{\n      *(int *)(param_1 + 0x108) = iVar12;\n    }" { (expression_statement "*(int *)(param_1 + 0x108) = iVar12;" (assignment_expression "*(int *)(param_1 + 0x108) = iVar12" (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar1 = *(int *)(param_1 + 0x10c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10c)" identifier = (pointer_expression "*(int *)(param_1 + 0x10c)" * (cast_expression "(int *)(param_1 + 0x10c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }\n  else {\n    *(uint *)(param_1 + 0x10c) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }" if (parenthesized_expression "(iVar1 < (int)uVar11)" ( (binary_expression "iVar1 < (int)uVar11" identifier < (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x6c)" identifier = (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    *(uint *)(param_1 + 0x10c) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }" else (compound_statement "{\n    *(uint *)(param_1 + 0x10c) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }" { (expression_statement "*(uint *)(param_1 + 0x10c) = uVar11 - 1;" (assignment_expression "*(uint *)(param_1 + 0x10c) = uVar11 - 1" (pointer_expression "*(uint *)(param_1 + 0x10c)" * (cast_expression "(uint *)(param_1 + 0x10c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) )))) = (binary_expression "uVar11 - 1" identifier - number_literal)) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x6c)" identifier = (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x70);\n    *(undefined4 *)(param_1 + 0x6c) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x70);\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x70);\n    *(undefined4 *)(param_1 + 0x6c) = 0;\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x70);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x70)" identifier = (pointer_expression "*(int *)(param_1 + 0x70)" * (cast_expression "(int *)(param_1 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x6c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x6c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x70);\n  }" else (compound_statement "{\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x70);\n  }" { (if_statement "if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }" if (parenthesized_expression "(param_2 <= iVar1)" ( (binary_expression "param_2 <= iVar1" identifier <= identifier) )) (compound_statement "{\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }" { (expression_statement "*(int *)(param_1 + 0x6c) = iVar12;" (assignment_expression "*(int *)(param_1 + 0x6c) = iVar12" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar1 = *(int *)(param_1 + 0x70);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x70)" identifier = (pointer_expression "*(int *)(param_1 + 0x70)" * (cast_expression "(int *)(param_1 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) ;) }))) (if_statement "if ((int)uVar11 <= iVar1) {\n    *(uint *)(param_1 + 0x70) = uVar11 - 1;\n  }" if (parenthesized_expression "((int)uVar11 <= iVar1)" ( (binary_expression "(int)uVar11 <= iVar1" (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) (compound_statement "{\n    *(uint *)(param_1 + 0x70) = uVar11 - 1;\n  }" { (expression_statement "*(uint *)(param_1 + 0x70) = uVar11 - 1;" (assignment_expression "*(uint *)(param_1 + 0x70) = uVar11 - 1" (pointer_expression "*(uint *)(param_1 + 0x70)" * (cast_expression "(uint *)(param_1 + 0x70)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = (binary_expression "uVar11 - 1" identifier - number_literal)) ;) })) (expression_statement "*(int *)(param_1 + 0x128) = param_2;" (assignment_expression "*(int *)(param_1 + 0x128) = param_2" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 300) = uVar11;" (assignment_expression "*(uint *)(param_1 + 300) = uVar11" (pointer_expression "*(uint *)(param_1 + 300)" * (cast_expression "(uint *)(param_1 + 300)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x130) = param_4;" (assignment_expression "*(int *)(param_1 + 0x130) = param_4" (pointer_expression "*(int *)(param_1 + 0x130)" * (cast_expression "(int *)(param_1 + 0x130)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x130)" ( (binary_expression "param_1 + 0x130" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x17c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x17c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x17c)" * (cast_expression "(undefined4 *)(param_1 + 0x17c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x17c)" ( (binary_expression "param_1 + 0x17c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x178) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x178) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x178)" * (cast_expression "(undefined4 *)(param_1 + 0x178)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x178)" ( (binary_expression "param_1 + 0x178" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x188) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x188) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x188)" * (cast_expression "(undefined4 *)(param_1 + 0x188)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x188)" ( (binary_expression "param_1 + 0x188" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x8c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x8c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x8c)" * (cast_expression "(undefined4 *)(param_1 + 0x8c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x8c)" ( (binary_expression "param_1 + 0x8c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*pcVar16)(param_1,uVar8,0,0);" (call_expression "(*pcVar16)(param_1,uVar8,0,0)" (parenthesized_expression "(*pcVar16)" ( (pointer_expression "*pcVar16" * identifier) )) (argument_list "(param_1,uVar8,0,0)" ( identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "FUN_00044484(param_1);" (call_expression "FUN_00044484(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "term_update(param_1);" (call_expression "term_update(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if (*(code **)(param_1 + 0x107c) == (code *)0x0) {\n    return;\n  }" if (parenthesized_expression "(*(code **)(param_1 + 0x107c) == (code *)0x0)" ( (binary_expression "*(code **)(param_1 + 0x107c) == (code *)0x0" (pointer_expression "*(code **)(param_1 + 0x107c)" * (cast_expression "(code **)(param_1 + 0x107c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x107c)" ( (binary_expression "param_1 + 0x107c" identifier + number_literal) )))) == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment comment (expression_statement "(**(code **)(param_1 + 0x107c))\n            (*(undefined4 *)(param_1 + 0x1080),*(undefined4 *)(param_1 + 300),\n             *(undefined4 *)(param_1 + 0x128));" (call_expression "(**(code **)(param_1 + 0x107c))\n            (*(undefined4 *)(param_1 + 0x1080),*(undefined4 *)(param_1 + 300),\n             *(undefined4 *)(param_1 + 0x128))" (parenthesized_expression "(**(code **)(param_1 + 0x107c))" ( (pointer_expression "**(code **)(param_1 + 0x107c)" * (pointer_expression "*(code **)(param_1 + 0x107c)" * (cast_expression "(code **)(param_1 + 0x107c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x107c)" ( (binary_expression "param_1 + 0x107c" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(param_1 + 0x1080),*(undefined4 *)(param_1 + 300),\n             *(undefined4 *)(param_1 + 0x128))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x1080)" * (cast_expression "(undefined4 *)(param_1 + 0x1080)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1080)" ( (binary_expression "param_1 + 0x1080" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 300)" * (cast_expression "(undefined4 *)(param_1 + 300)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x128)" * (cast_expression "(undefined4 *)(param_1 + 0x128)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid term_size(Terminal *term,int newrows,int newcols,int newsavelines)\n\n{\n  int iVar1;\n  int iVar2;\n  uchar *data;\n  termline *ptVar3;\n  code *pcVar4;\n  void *pvVar5;\n  size_t sVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  tree234 *ptVar10;\n  int *bytes_used;\n  \n  if (((term->rows == newrows) && (term->cols == newcols)) && (term->savelines == newsavelines)) {\n    return;\n  }\n  term->selstate = ADDRTYPE_UNSPEC;\n  (term->selend).y = 0;\n  if (newrows < 1) {\n    newrows = 1;\n  }\n  iVar9 = 1;\n  if (0 < newcols) {\n    iVar9 = newcols;\n  }\n  (term->selend).x = 0;\n  (term->selstart).y = 0;\n  (term->selstart).x = 0;\n  swap_screen(term,0,0,0);\n  term->marg_t = 0;\n  term->alt_t = 0;\n  term->marg_b = newrows - 1U;\n  term->alt_b = newrows - 1U;\n  if (term->rows == -1) {\n    ptVar10 = newtree234((cmpfn234)0x0);\n    term->scrollback = ptVar10;\n    ptVar10 = newtree234((cmpfn234)0x0);\n    term->screen = ptVar10;\n    term->tempsblines = 0;\n    term->rows = 0;\n  }\n  iVar1 = count234(term->scrollback);\n  iVar8 = term->rows;\n  iVar2 = count234(term->screen);\n  if (iVar8 != iVar2) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  sVar6 = term->rows;\n  while ((int)sVar6 < newrows) {\n    if (0 < term->tempsblines) {\n      if (term->tempsblines <= iVar1) {\n        bytes_used = (int *)(iVar1 + -1);\n        data = (uchar *)delpos234(term->scrollback,(int)bytes_used);\n        decompressline(data,bytes_used);\n                    /* WARNING: Subroutine does not return */\n        safefree(data);\n      }\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }\n    ptVar3 = newline(term,iVar9,0);\n    ptVar10 = term->screen;\n    iVar2 = count234(ptVar10);\n    addpos234(ptVar10,ptVar3,iVar2);\n    sVar6 = term->rows + 1;\n    term->rows = sVar6;\n  }\n  if (newrows < (int)sVar6) {\n    pcVar4 = (code *)(PTR_DAT_000b55b4 + 0x6840);\n    do {\n      while( true ) {\n        if ((term->curs).y < (int)(sVar6 - 1)) break;\n        iVar9 = iVar1 + 1;\n        ptVar3 = (termline *)delpos234(term->screen,0);\n        ptVar10 = term->scrollback;\n        pvVar5 = (void *)(*pcVar4)(ptVar3);\n        addpos234(ptVar10,pvVar5,iVar1);\n        if (ptVar3 != (termline *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freeline(ptVar3);\n        }\n        iVar7 = term->tempsblines;\n        iVar8 = (term->curs).y;\n        iVar1 = term->alt_y;\n        (term->savecurs).y = (term->savecurs).y + -1;\n        iVar2 = term->rows;\n        (term->alt_savecurs).y = (term->alt_savecurs).y + -1;\n        term->tempsblines = iVar7 + 1;\n        sVar6 = iVar2 - 1;\n        (term->curs).y = iVar8 + -1;\n        term->alt_y = iVar1 + -1;\n        term->rows = sVar6;\n        iVar1 = iVar9;\n        if ((int)sVar6 <= newrows) goto LAB_0004b3a0;\n      }\n      ptVar3 = (termline *)delpos234(term->screen,sVar6 - 1);\n      if (ptVar3 != (termline *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        freeline(ptVar3);\n      }\n      sVar6 = term->rows - 1;\n      term->rows = sVar6;\n    } while (newrows < (int)sVar6);\n  }\nLAB_0004b3a0:\n  if (newrows != sVar6) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  sVar6 = count234(term->screen);\n  if (newrows != sVar6) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  if (newsavelines < iVar1) {\n    pvVar5 = delpos234(term->scrollback,0);\n                    /* WARNING: Subroutine does not return */\n    safefree(pvVar5);\n  }\n  if (iVar1 < term->tempsblines) {\n    term->tempsblines = iVar1;\n  }\n  iVar9 = count234(term->scrollback);\n  if (iVar9 <= newsavelines) {\n    iVar9 = count234(term->scrollback);\n    if (term->tempsblines <= iVar9) {\n      term->disptop = 0;\n                    /* WARNING: Subroutine does not return */\n      safemalloc(newrows,4);\n    }\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  (*(code *)PTR___assert_fail_000b5a40)\n            (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n             PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n             PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n  return;\n}\n\n" comment (function_definition "void term_size(Terminal *term,int newrows,int newcols,int newsavelines)\n\n{\n  int iVar1;\n  int iVar2;\n  uchar *data;\n  termline *ptVar3;\n  code *pcVar4;\n  void *pvVar5;\n  size_t sVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  tree234 *ptVar10;\n  int *bytes_used;\n  \n  if (((term->rows == newrows) && (term->cols == newcols)) && (term->savelines == newsavelines)) {\n    return;\n  }\n  term->selstate = ADDRTYPE_UNSPEC;\n  (term->selend).y = 0;\n  if (newrows < 1) {\n    newrows = 1;\n  }\n  iVar9 = 1;\n  if (0 < newcols) {\n    iVar9 = newcols;\n  }\n  (term->selend).x = 0;\n  (term->selstart).y = 0;\n  (term->selstart).x = 0;\n  swap_screen(term,0,0,0);\n  term->marg_t = 0;\n  term->alt_t = 0;\n  term->marg_b = newrows - 1U;\n  term->alt_b = newrows - 1U;\n  if (term->rows == -1) {\n    ptVar10 = newtree234((cmpfn234)0x0);\n    term->scrollback = ptVar10;\n    ptVar10 = newtree234((cmpfn234)0x0);\n    term->screen = ptVar10;\n    term->tempsblines = 0;\n    term->rows = 0;\n  }\n  iVar1 = count234(term->scrollback);\n  iVar8 = term->rows;\n  iVar2 = count234(term->screen);\n  if (iVar8 != iVar2) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  sVar6 = term->rows;\n  while ((int)sVar6 < newrows) {\n    if (0 < term->tempsblines) {\n      if (term->tempsblines <= iVar1) {\n        bytes_used = (int *)(iVar1 + -1);\n        data = (uchar *)delpos234(term->scrollback,(int)bytes_used);\n        decompressline(data,bytes_used);\n                    /* WARNING: Subroutine does not return */\n        safefree(data);\n      }\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }\n    ptVar3 = newline(term,iVar9,0);\n    ptVar10 = term->screen;\n    iVar2 = count234(ptVar10);\n    addpos234(ptVar10,ptVar3,iVar2);\n    sVar6 = term->rows + 1;\n    term->rows = sVar6;\n  }\n  if (newrows < (int)sVar6) {\n    pcVar4 = (code *)(PTR_DAT_000b55b4 + 0x6840);\n    do {\n      while( true ) {\n        if ((term->curs).y < (int)(sVar6 - 1)) break;\n        iVar9 = iVar1 + 1;\n        ptVar3 = (termline *)delpos234(term->screen,0);\n        ptVar10 = term->scrollback;\n        pvVar5 = (void *)(*pcVar4)(ptVar3);\n        addpos234(ptVar10,pvVar5,iVar1);\n        if (ptVar3 != (termline *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freeline(ptVar3);\n        }\n        iVar7 = term->tempsblines;\n        iVar8 = (term->curs).y;\n        iVar1 = term->alt_y;\n        (term->savecurs).y = (term->savecurs).y + -1;\n        iVar2 = term->rows;\n        (term->alt_savecurs).y = (term->alt_savecurs).y + -1;\n        term->tempsblines = iVar7 + 1;\n        sVar6 = iVar2 - 1;\n        (term->curs).y = iVar8 + -1;\n        term->alt_y = iVar1 + -1;\n        term->rows = sVar6;\n        iVar1 = iVar9;\n        if ((int)sVar6 <= newrows) goto LAB_0004b3a0;\n      }\n      ptVar3 = (termline *)delpos234(term->screen,sVar6 - 1);\n      if (ptVar3 != (termline *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        freeline(ptVar3);\n      }\n      sVar6 = term->rows - 1;\n      term->rows = sVar6;\n    } while (newrows < (int)sVar6);\n  }\nLAB_0004b3a0:\n  if (newrows != sVar6) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  sVar6 = count234(term->screen);\n  if (newrows != sVar6) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  if (newsavelines < iVar1) {\n    pvVar5 = delpos234(term->scrollback,0);\n                    /* WARNING: Subroutine does not return */\n    safefree(pvVar5);\n  }\n  if (iVar1 < term->tempsblines) {\n    term->tempsblines = iVar1;\n  }\n  iVar9 = count234(term->scrollback);\n  if (iVar9 <= newsavelines) {\n    iVar9 = count234(term->scrollback);\n    if (term->tempsblines <= iVar9) {\n      term->disptop = 0;\n                    /* WARNING: Subroutine does not return */\n      safemalloc(newrows,4);\n    }\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  (*(code *)PTR___assert_fail_000b5a40)\n            (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n             PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n             PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n  return;\n}" primitive_type (function_declarator "term_size(Terminal *term,int newrows,int newcols,int newsavelines)" identifier (parameter_list "(Terminal *term,int newrows,int newcols,int newsavelines)" ( (parameter_declaration "Terminal *term" type_identifier (pointer_declarator "*term" * identifier)) , (parameter_declaration "int newrows" primitive_type identifier) , (parameter_declaration "int newcols" primitive_type identifier) , (parameter_declaration "int newsavelines" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uchar *data;\n  termline *ptVar3;\n  code *pcVar4;\n  void *pvVar5;\n  size_t sVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  tree234 *ptVar10;\n  int *bytes_used;\n  \n  if (((term->rows == newrows) && (term->cols == newcols)) && (term->savelines == newsavelines)) {\n    return;\n  }\n  term->selstate = ADDRTYPE_UNSPEC;\n  (term->selend).y = 0;\n  if (newrows < 1) {\n    newrows = 1;\n  }\n  iVar9 = 1;\n  if (0 < newcols) {\n    iVar9 = newcols;\n  }\n  (term->selend).x = 0;\n  (term->selstart).y = 0;\n  (term->selstart).x = 0;\n  swap_screen(term,0,0,0);\n  term->marg_t = 0;\n  term->alt_t = 0;\n  term->marg_b = newrows - 1U;\n  term->alt_b = newrows - 1U;\n  if (term->rows == -1) {\n    ptVar10 = newtree234((cmpfn234)0x0);\n    term->scrollback = ptVar10;\n    ptVar10 = newtree234((cmpfn234)0x0);\n    term->screen = ptVar10;\n    term->tempsblines = 0;\n    term->rows = 0;\n  }\n  iVar1 = count234(term->scrollback);\n  iVar8 = term->rows;\n  iVar2 = count234(term->screen);\n  if (iVar8 != iVar2) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  sVar6 = term->rows;\n  while ((int)sVar6 < newrows) {\n    if (0 < term->tempsblines) {\n      if (term->tempsblines <= iVar1) {\n        bytes_used = (int *)(iVar1 + -1);\n        data = (uchar *)delpos234(term->scrollback,(int)bytes_used);\n        decompressline(data,bytes_used);\n                    /* WARNING: Subroutine does not return */\n        safefree(data);\n      }\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }\n    ptVar3 = newline(term,iVar9,0);\n    ptVar10 = term->screen;\n    iVar2 = count234(ptVar10);\n    addpos234(ptVar10,ptVar3,iVar2);\n    sVar6 = term->rows + 1;\n    term->rows = sVar6;\n  }\n  if (newrows < (int)sVar6) {\n    pcVar4 = (code *)(PTR_DAT_000b55b4 + 0x6840);\n    do {\n      while( true ) {\n        if ((term->curs).y < (int)(sVar6 - 1)) break;\n        iVar9 = iVar1 + 1;\n        ptVar3 = (termline *)delpos234(term->screen,0);\n        ptVar10 = term->scrollback;\n        pvVar5 = (void *)(*pcVar4)(ptVar3);\n        addpos234(ptVar10,pvVar5,iVar1);\n        if (ptVar3 != (termline *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freeline(ptVar3);\n        }\n        iVar7 = term->tempsblines;\n        iVar8 = (term->curs).y;\n        iVar1 = term->alt_y;\n        (term->savecurs).y = (term->savecurs).y + -1;\n        iVar2 = term->rows;\n        (term->alt_savecurs).y = (term->alt_savecurs).y + -1;\n        term->tempsblines = iVar7 + 1;\n        sVar6 = iVar2 - 1;\n        (term->curs).y = iVar8 + -1;\n        term->alt_y = iVar1 + -1;\n        term->rows = sVar6;\n        iVar1 = iVar9;\n        if ((int)sVar6 <= newrows) goto LAB_0004b3a0;\n      }\n      ptVar3 = (termline *)delpos234(term->screen,sVar6 - 1);\n      if (ptVar3 != (termline *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        freeline(ptVar3);\n      }\n      sVar6 = term->rows - 1;\n      term->rows = sVar6;\n    } while (newrows < (int)sVar6);\n  }\nLAB_0004b3a0:\n  if (newrows != sVar6) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  sVar6 = count234(term->screen);\n  if (newrows != sVar6) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  if (newsavelines < iVar1) {\n    pvVar5 = delpos234(term->scrollback,0);\n                    /* WARNING: Subroutine does not return */\n    safefree(pvVar5);\n  }\n  if (iVar1 < term->tempsblines) {\n    term->tempsblines = iVar1;\n  }\n  iVar9 = count234(term->scrollback);\n  if (iVar9 <= newsavelines) {\n    iVar9 = count234(term->scrollback);\n    if (term->tempsblines <= iVar9) {\n      term->disptop = 0;\n                    /* WARNING: Subroutine does not return */\n      safemalloc(newrows,4);\n    }\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  (*(code *)PTR___assert_fail_000b5a40)\n            (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n             PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n             PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uchar *data;" type_identifier (pointer_declarator "*data" * identifier) ;) (declaration "termline *ptVar3;" type_identifier (pointer_declarator "*ptVar3" * identifier) ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "void *pvVar5;" primitive_type (pointer_declarator "*pvVar5" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "tree234 *ptVar10;" type_identifier (pointer_declarator "*ptVar10" * identifier) ;) (declaration "int *bytes_used;" primitive_type (pointer_declarator "*bytes_used" * identifier) ;) (if_statement "if (((term->rows == newrows) && (term->cols == newcols)) && (term->savelines == newsavelines)) {\n    return;\n  }" if (parenthesized_expression "(((term->rows == newrows) && (term->cols == newcols)) && (term->savelines == newsavelines))" ( (binary_expression "((term->rows == newrows) && (term->cols == newcols)) && (term->savelines == newsavelines)" (parenthesized_expression "((term->rows == newrows) && (term->cols == newcols))" ( (binary_expression "(term->rows == newrows) && (term->cols == newcols)" (parenthesized_expression "(term->rows == newrows)" ( (binary_expression "term->rows == newrows" (field_expression "term->rows" identifier -> field_identifier) == identifier) )) && (parenthesized_expression "(term->cols == newcols)" ( (binary_expression "term->cols == newcols" (field_expression "term->cols" identifier -> field_identifier) == identifier) ))) )) && (parenthesized_expression "(term->savelines == newsavelines)" ( (binary_expression "term->savelines == newsavelines" (field_expression "term->savelines" identifier -> field_identifier) == identifier) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "term->selstate = ADDRTYPE_UNSPEC;" (assignment_expression "term->selstate = ADDRTYPE_UNSPEC" (field_expression "term->selstate" identifier -> field_identifier) = identifier) ;) (expression_statement "(term->selend).y = 0;" (assignment_expression "(term->selend).y = 0" (field_expression "(term->selend).y" (parenthesized_expression "(term->selend)" ( (field_expression "term->selend" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (if_statement "if (newrows < 1) {\n    newrows = 1;\n  }" if (parenthesized_expression "(newrows < 1)" ( (binary_expression "newrows < 1" identifier < number_literal) )) (compound_statement "{\n    newrows = 1;\n  }" { (expression_statement "newrows = 1;" (assignment_expression "newrows = 1" identifier = number_literal) ;) })) (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;) (if_statement "if (0 < newcols) {\n    iVar9 = newcols;\n  }" if (parenthesized_expression "(0 < newcols)" ( (binary_expression "0 < newcols" number_literal < identifier) )) (compound_statement "{\n    iVar9 = newcols;\n  }" { (expression_statement "iVar9 = newcols;" (assignment_expression "iVar9 = newcols" identifier = identifier) ;) })) (expression_statement "(term->selend).x = 0;" (assignment_expression "(term->selend).x = 0" (field_expression "(term->selend).x" (parenthesized_expression "(term->selend)" ( (field_expression "term->selend" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(term->selstart).y = 0;" (assignment_expression "(term->selstart).y = 0" (field_expression "(term->selstart).y" (parenthesized_expression "(term->selstart)" ( (field_expression "term->selstart" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(term->selstart).x = 0;" (assignment_expression "(term->selstart).x = 0" (field_expression "(term->selstart).x" (parenthesized_expression "(term->selstart)" ( (field_expression "term->selstart" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "swap_screen(term,0,0,0);" (call_expression "swap_screen(term,0,0,0)" identifier (argument_list "(term,0,0,0)" ( identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "term->marg_t = 0;" (assignment_expression "term->marg_t = 0" (field_expression "term->marg_t" identifier -> field_identifier) = number_literal) ;) (expression_statement "term->alt_t = 0;" (assignment_expression "term->alt_t = 0" (field_expression "term->alt_t" identifier -> field_identifier) = number_literal) ;) (expression_statement "term->marg_b = newrows - 1U;" (assignment_expression "term->marg_b = newrows - 1U" (field_expression "term->marg_b" identifier -> field_identifier) = (binary_expression "newrows - 1U" identifier - number_literal)) ;) (expression_statement "term->alt_b = newrows - 1U;" (assignment_expression "term->alt_b = newrows - 1U" (field_expression "term->alt_b" identifier -> field_identifier) = (binary_expression "newrows - 1U" identifier - number_literal)) ;) (if_statement "if (term->rows == -1) {\n    ptVar10 = newtree234((cmpfn234)0x0);\n    term->scrollback = ptVar10;\n    ptVar10 = newtree234((cmpfn234)0x0);\n    term->screen = ptVar10;\n    term->tempsblines = 0;\n    term->rows = 0;\n  }" if (parenthesized_expression "(term->rows == -1)" ( (binary_expression "term->rows == -1" (field_expression "term->rows" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    ptVar10 = newtree234((cmpfn234)0x0);\n    term->scrollback = ptVar10;\n    ptVar10 = newtree234((cmpfn234)0x0);\n    term->screen = ptVar10;\n    term->tempsblines = 0;\n    term->rows = 0;\n  }" { (expression_statement "ptVar10 = newtree234((cmpfn234)0x0);" (assignment_expression "ptVar10 = newtree234((cmpfn234)0x0)" identifier = (call_expression "newtree234((cmpfn234)0x0)" identifier (argument_list "((cmpfn234)0x0)" ( (cast_expression "(cmpfn234)0x0" ( (type_descriptor "cmpfn234" type_identifier) ) number_literal) )))) ;) (expression_statement "term->scrollback = ptVar10;" (assignment_expression "term->scrollback = ptVar10" (field_expression "term->scrollback" identifier -> field_identifier) = identifier) ;) (expression_statement "ptVar10 = newtree234((cmpfn234)0x0);" (assignment_expression "ptVar10 = newtree234((cmpfn234)0x0)" identifier = (call_expression "newtree234((cmpfn234)0x0)" identifier (argument_list "((cmpfn234)0x0)" ( (cast_expression "(cmpfn234)0x0" ( (type_descriptor "cmpfn234" type_identifier) ) number_literal) )))) ;) (expression_statement "term->screen = ptVar10;" (assignment_expression "term->screen = ptVar10" (field_expression "term->screen" identifier -> field_identifier) = identifier) ;) (expression_statement "term->tempsblines = 0;" (assignment_expression "term->tempsblines = 0" (field_expression "term->tempsblines" identifier -> field_identifier) = number_literal) ;) (expression_statement "term->rows = 0;" (assignment_expression "term->rows = 0" (field_expression "term->rows" identifier -> field_identifier) = number_literal) ;) })) (expression_statement "iVar1 = count234(term->scrollback);" (assignment_expression "iVar1 = count234(term->scrollback)" identifier = (call_expression "count234(term->scrollback)" identifier (argument_list "(term->scrollback)" ( (field_expression "term->scrollback" identifier -> field_identifier) )))) ;) (expression_statement "iVar8 = term->rows;" (assignment_expression "iVar8 = term->rows" identifier = (field_expression "term->rows" identifier -> field_identifier)) ;) (expression_statement "iVar2 = count234(term->screen);" (assignment_expression "iVar2 = count234(term->screen)" identifier = (call_expression "count234(term->screen)" identifier (argument_list "(term->screen)" ( (field_expression "term->screen" identifier -> field_identifier) )))) ;) (if_statement "if (iVar8 != iVar2) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" if (parenthesized_expression "(iVar8 != iVar2)" ( (binary_expression "iVar8 != iVar2" identifier != identifier) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "sVar6 = term->rows;" (assignment_expression "sVar6 = term->rows" identifier = (field_expression "term->rows" identifier -> field_identifier)) ;) (while_statement "while ((int)sVar6 < newrows) {\n    if (0 < term->tempsblines) {\n      if (term->tempsblines <= iVar1) {\n        bytes_used = (int *)(iVar1 + -1);\n        data = (uchar *)delpos234(term->scrollback,(int)bytes_used);\n        decompressline(data,bytes_used);\n                    /* WARNING: Subroutine does not return */\n        safefree(data);\n      }\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }\n    ptVar3 = newline(term,iVar9,0);\n    ptVar10 = term->screen;\n    iVar2 = count234(ptVar10);\n    addpos234(ptVar10,ptVar3,iVar2);\n    sVar6 = term->rows + 1;\n    term->rows = sVar6;\n  }" while (parenthesized_expression "((int)sVar6 < newrows)" ( (binary_expression "(int)sVar6 < newrows" (cast_expression "(int)sVar6" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) (compound_statement "{\n    if (0 < term->tempsblines) {\n      if (term->tempsblines <= iVar1) {\n        bytes_used = (int *)(iVar1 + -1);\n        data = (uchar *)delpos234(term->scrollback,(int)bytes_used);\n        decompressline(data,bytes_used);\n                    /* WARNING: Subroutine does not return */\n        safefree(data);\n      }\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }\n    ptVar3 = newline(term,iVar9,0);\n    ptVar10 = term->screen;\n    iVar2 = count234(ptVar10);\n    addpos234(ptVar10,ptVar3,iVar2);\n    sVar6 = term->rows + 1;\n    term->rows = sVar6;\n  }" { (if_statement "if (0 < term->tempsblines) {\n      if (term->tempsblines <= iVar1) {\n        bytes_used = (int *)(iVar1 + -1);\n        data = (uchar *)delpos234(term->scrollback,(int)bytes_used);\n        decompressline(data,bytes_used);\n                    /* WARNING: Subroutine does not return */\n        safefree(data);\n      }\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }" if (parenthesized_expression "(0 < term->tempsblines)" ( (binary_expression "0 < term->tempsblines" number_literal < (field_expression "term->tempsblines" identifier -> field_identifier)) )) (compound_statement "{\n      if (term->tempsblines <= iVar1) {\n        bytes_used = (int *)(iVar1 + -1);\n        data = (uchar *)delpos234(term->scrollback,(int)bytes_used);\n        decompressline(data,bytes_used);\n                    /* WARNING: Subroutine does not return */\n        safefree(data);\n      }\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }" { (if_statement "if (term->tempsblines <= iVar1) {\n        bytes_used = (int *)(iVar1 + -1);\n        data = (uchar *)delpos234(term->scrollback,(int)bytes_used);\n        decompressline(data,bytes_used);\n                    /* WARNING: Subroutine does not return */\n        safefree(data);\n      }" if (parenthesized_expression "(term->tempsblines <= iVar1)" ( (binary_expression "term->tempsblines <= iVar1" (field_expression "term->tempsblines" identifier -> field_identifier) <= identifier) )) (compound_statement "{\n        bytes_used = (int *)(iVar1 + -1);\n        data = (uchar *)delpos234(term->scrollback,(int)bytes_used);\n        decompressline(data,bytes_used);\n                    /* WARNING: Subroutine does not return */\n        safefree(data);\n      }" { (expression_statement "bytes_used = (int *)(iVar1 + -1);" (assignment_expression "bytes_used = (int *)(iVar1 + -1)" identifier = (cast_expression "(int *)(iVar1 + -1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -1)" ( (binary_expression "iVar1 + -1" identifier + number_literal) )))) ;) (expression_statement "data = (uchar *)delpos234(term->scrollback,(int)bytes_used);" (assignment_expression "data = (uchar *)delpos234(term->scrollback,(int)bytes_used)" identifier = (cast_expression "(uchar *)delpos234(term->scrollback,(int)bytes_used)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "delpos234(term->scrollback,(int)bytes_used)" identifier (argument_list "(term->scrollback,(int)bytes_used)" ( (field_expression "term->scrollback" identifier -> field_identifier) , (cast_expression "(int)bytes_used" ( (type_descriptor "int" primitive_type) ) identifier) ))))) ;) (expression_statement "decompressline(data,bytes_used);" (call_expression "decompressline(data,bytes_used)" identifier (argument_list "(data,bytes_used)" ( identifier , identifier ))) ;) comment (expression_statement "safefree(data);" (call_expression "safefree(data)" identifier (argument_list "(data)" ( identifier ))) ;) })) (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "ptVar3 = newline(term,iVar9,0);" (assignment_expression "ptVar3 = newline(term,iVar9,0)" identifier = (call_expression "newline(term,iVar9,0)" identifier (argument_list "(term,iVar9,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "ptVar10 = term->screen;" (assignment_expression "ptVar10 = term->screen" identifier = (field_expression "term->screen" identifier -> field_identifier)) ;) (expression_statement "iVar2 = count234(ptVar10);" (assignment_expression "iVar2 = count234(ptVar10)" identifier = (call_expression "count234(ptVar10)" identifier (argument_list "(ptVar10)" ( identifier )))) ;) (expression_statement "addpos234(ptVar10,ptVar3,iVar2);" (call_expression "addpos234(ptVar10,ptVar3,iVar2)" identifier (argument_list "(ptVar10,ptVar3,iVar2)" ( identifier , identifier , identifier ))) ;) (expression_statement "sVar6 = term->rows + 1;" (assignment_expression "sVar6 = term->rows + 1" identifier = (binary_expression "term->rows + 1" (field_expression "term->rows" identifier -> field_identifier) + number_literal)) ;) (expression_statement "term->rows = sVar6;" (assignment_expression "term->rows = sVar6" (field_expression "term->rows" identifier -> field_identifier) = identifier) ;) })) (if_statement "if (newrows < (int)sVar6) {\n    pcVar4 = (code *)(PTR_DAT_000b55b4 + 0x6840);\n    do {\n      while( true ) {\n        if ((term->curs).y < (int)(sVar6 - 1)) break;\n        iVar9 = iVar1 + 1;\n        ptVar3 = (termline *)delpos234(term->screen,0);\n        ptVar10 = term->scrollback;\n        pvVar5 = (void *)(*pcVar4)(ptVar3);\n        addpos234(ptVar10,pvVar5,iVar1);\n        if (ptVar3 != (termline *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freeline(ptVar3);\n        }\n        iVar7 = term->tempsblines;\n        iVar8 = (term->curs).y;\n        iVar1 = term->alt_y;\n        (term->savecurs).y = (term->savecurs).y + -1;\n        iVar2 = term->rows;\n        (term->alt_savecurs).y = (term->alt_savecurs).y + -1;\n        term->tempsblines = iVar7 + 1;\n        sVar6 = iVar2 - 1;\n        (term->curs).y = iVar8 + -1;\n        term->alt_y = iVar1 + -1;\n        term->rows = sVar6;\n        iVar1 = iVar9;\n        if ((int)sVar6 <= newrows) goto LAB_0004b3a0;\n      }\n      ptVar3 = (termline *)delpos234(term->screen,sVar6 - 1);\n      if (ptVar3 != (termline *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        freeline(ptVar3);\n      }\n      sVar6 = term->rows - 1;\n      term->rows = sVar6;\n    } while (newrows < (int)sVar6);\n  }" if (parenthesized_expression "(newrows < (int)sVar6)" ( (binary_expression "newrows < (int)sVar6" identifier < (cast_expression "(int)sVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    pcVar4 = (code *)(PTR_DAT_000b55b4 + 0x6840);\n    do {\n      while( true ) {\n        if ((term->curs).y < (int)(sVar6 - 1)) break;\n        iVar9 = iVar1 + 1;\n        ptVar3 = (termline *)delpos234(term->screen,0);\n        ptVar10 = term->scrollback;\n        pvVar5 = (void *)(*pcVar4)(ptVar3);\n        addpos234(ptVar10,pvVar5,iVar1);\n        if (ptVar3 != (termline *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freeline(ptVar3);\n        }\n        iVar7 = term->tempsblines;\n        iVar8 = (term->curs).y;\n        iVar1 = term->alt_y;\n        (term->savecurs).y = (term->savecurs).y + -1;\n        iVar2 = term->rows;\n        (term->alt_savecurs).y = (term->alt_savecurs).y + -1;\n        term->tempsblines = iVar7 + 1;\n        sVar6 = iVar2 - 1;\n        (term->curs).y = iVar8 + -1;\n        term->alt_y = iVar1 + -1;\n        term->rows = sVar6;\n        iVar1 = iVar9;\n        if ((int)sVar6 <= newrows) goto LAB_0004b3a0;\n      }\n      ptVar3 = (termline *)delpos234(term->screen,sVar6 - 1);\n      if (ptVar3 != (termline *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        freeline(ptVar3);\n      }\n      sVar6 = term->rows - 1;\n      term->rows = sVar6;\n    } while (newrows < (int)sVar6);\n  }" { (expression_statement "pcVar4 = (code *)(PTR_DAT_000b55b4 + 0x6840);" (assignment_expression "pcVar4 = (code *)(PTR_DAT_000b55b4 + 0x6840)" identifier = (cast_expression "(code *)(PTR_DAT_000b55b4 + 0x6840)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b55b4 + 0x6840)" ( (binary_expression "PTR_DAT_000b55b4 + 0x6840" identifier + number_literal) )))) ;) (do_statement "do {\n      while( true ) {\n        if ((term->curs).y < (int)(sVar6 - 1)) break;\n        iVar9 = iVar1 + 1;\n        ptVar3 = (termline *)delpos234(term->screen,0);\n        ptVar10 = term->scrollback;\n        pvVar5 = (void *)(*pcVar4)(ptVar3);\n        addpos234(ptVar10,pvVar5,iVar1);\n        if (ptVar3 != (termline *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freeline(ptVar3);\n        }\n        iVar7 = term->tempsblines;\n        iVar8 = (term->curs).y;\n        iVar1 = term->alt_y;\n        (term->savecurs).y = (term->savecurs).y + -1;\n        iVar2 = term->rows;\n        (term->alt_savecurs).y = (term->alt_savecurs).y + -1;\n        term->tempsblines = iVar7 + 1;\n        sVar6 = iVar2 - 1;\n        (term->curs).y = iVar8 + -1;\n        term->alt_y = iVar1 + -1;\n        term->rows = sVar6;\n        iVar1 = iVar9;\n        if ((int)sVar6 <= newrows) goto LAB_0004b3a0;\n      }\n      ptVar3 = (termline *)delpos234(term->screen,sVar6 - 1);\n      if (ptVar3 != (termline *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        freeline(ptVar3);\n      }\n      sVar6 = term->rows - 1;\n      term->rows = sVar6;\n    } while (newrows < (int)sVar6);" do (compound_statement "{\n      while( true ) {\n        if ((term->curs).y < (int)(sVar6 - 1)) break;\n        iVar9 = iVar1 + 1;\n        ptVar3 = (termline *)delpos234(term->screen,0);\n        ptVar10 = term->scrollback;\n        pvVar5 = (void *)(*pcVar4)(ptVar3);\n        addpos234(ptVar10,pvVar5,iVar1);\n        if (ptVar3 != (termline *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freeline(ptVar3);\n        }\n        iVar7 = term->tempsblines;\n        iVar8 = (term->curs).y;\n        iVar1 = term->alt_y;\n        (term->savecurs).y = (term->savecurs).y + -1;\n        iVar2 = term->rows;\n        (term->alt_savecurs).y = (term->alt_savecurs).y + -1;\n        term->tempsblines = iVar7 + 1;\n        sVar6 = iVar2 - 1;\n        (term->curs).y = iVar8 + -1;\n        term->alt_y = iVar1 + -1;\n        term->rows = sVar6;\n        iVar1 = iVar9;\n        if ((int)sVar6 <= newrows) goto LAB_0004b3a0;\n      }\n      ptVar3 = (termline *)delpos234(term->screen,sVar6 - 1);\n      if (ptVar3 != (termline *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        freeline(ptVar3);\n      }\n      sVar6 = term->rows - 1;\n      term->rows = sVar6;\n    }" { (while_statement "while( true ) {\n        if ((term->curs).y < (int)(sVar6 - 1)) break;\n        iVar9 = iVar1 + 1;\n        ptVar3 = (termline *)delpos234(term->screen,0);\n        ptVar10 = term->scrollback;\n        pvVar5 = (void *)(*pcVar4)(ptVar3);\n        addpos234(ptVar10,pvVar5,iVar1);\n        if (ptVar3 != (termline *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freeline(ptVar3);\n        }\n        iVar7 = term->tempsblines;\n        iVar8 = (term->curs).y;\n        iVar1 = term->alt_y;\n        (term->savecurs).y = (term->savecurs).y + -1;\n        iVar2 = term->rows;\n        (term->alt_savecurs).y = (term->alt_savecurs).y + -1;\n        term->tempsblines = iVar7 + 1;\n        sVar6 = iVar2 - 1;\n        (term->curs).y = iVar8 + -1;\n        term->alt_y = iVar1 + -1;\n        term->rows = sVar6;\n        iVar1 = iVar9;\n        if ((int)sVar6 <= newrows) goto LAB_0004b3a0;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if ((term->curs).y < (int)(sVar6 - 1)) break;\n        iVar9 = iVar1 + 1;\n        ptVar3 = (termline *)delpos234(term->screen,0);\n        ptVar10 = term->scrollback;\n        pvVar5 = (void *)(*pcVar4)(ptVar3);\n        addpos234(ptVar10,pvVar5,iVar1);\n        if (ptVar3 != (termline *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freeline(ptVar3);\n        }\n        iVar7 = term->tempsblines;\n        iVar8 = (term->curs).y;\n        iVar1 = term->alt_y;\n        (term->savecurs).y = (term->savecurs).y + -1;\n        iVar2 = term->rows;\n        (term->alt_savecurs).y = (term->alt_savecurs).y + -1;\n        term->tempsblines = iVar7 + 1;\n        sVar6 = iVar2 - 1;\n        (term->curs).y = iVar8 + -1;\n        term->alt_y = iVar1 + -1;\n        term->rows = sVar6;\n        iVar1 = iVar9;\n        if ((int)sVar6 <= newrows) goto LAB_0004b3a0;\n      }" { (if_statement "if ((term->curs).y < (int)(sVar6 - 1)) break;" if (parenthesized_expression "((term->curs).y < (int)(sVar6 - 1))" ( (binary_expression "(term->curs).y < (int)(sVar6 - 1)" (field_expression "(term->curs).y" (parenthesized_expression "(term->curs)" ( (field_expression "term->curs" identifier -> field_identifier) )) . field_identifier) < (cast_expression "(int)(sVar6 - 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(sVar6 - 1)" ( (binary_expression "sVar6 - 1" identifier - number_literal) )))) )) (break_statement "break;" break ;)) (expression_statement "iVar9 = iVar1 + 1;" (assignment_expression "iVar9 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "ptVar3 = (termline *)delpos234(term->screen,0);" (assignment_expression "ptVar3 = (termline *)delpos234(term->screen,0)" identifier = (cast_expression "(termline *)delpos234(term->screen,0)" ( (type_descriptor "termline *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "delpos234(term->screen,0)" identifier (argument_list "(term->screen,0)" ( (field_expression "term->screen" identifier -> field_identifier) , number_literal ))))) ;) (expression_statement "ptVar10 = term->scrollback;" (assignment_expression "ptVar10 = term->scrollback" identifier = (field_expression "term->scrollback" identifier -> field_identifier)) ;) (expression_statement "pvVar5 = (void *)(*pcVar4)(ptVar3);" (assignment_expression "pvVar5 = (void *)(*pcVar4)(ptVar3)" identifier = (cast_expression "(void *)(*pcVar4)(ptVar3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*pcVar4)(ptVar3)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(ptVar3)" ( identifier ))))) ;) (expression_statement "addpos234(ptVar10,pvVar5,iVar1);" (call_expression "addpos234(ptVar10,pvVar5,iVar1)" identifier (argument_list "(ptVar10,pvVar5,iVar1)" ( identifier , identifier , identifier ))) ;) (if_statement "if (ptVar3 != (termline *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freeline(ptVar3);\n        }" if (parenthesized_expression "(ptVar3 != (termline *)0x0)" ( (binary_expression "ptVar3 != (termline *)0x0" identifier != (cast_expression "(termline *)0x0" ( (type_descriptor "termline *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          freeline(ptVar3);\n        }" { comment (expression_statement "freeline(ptVar3);" (call_expression "freeline(ptVar3)" identifier (argument_list "(ptVar3)" ( identifier ))) ;) })) (expression_statement "iVar7 = term->tempsblines;" (assignment_expression "iVar7 = term->tempsblines" identifier = (field_expression "term->tempsblines" identifier -> field_identifier)) ;) (expression_statement "iVar8 = (term->curs).y;" (assignment_expression "iVar8 = (term->curs).y" identifier = (field_expression "(term->curs).y" (parenthesized_expression "(term->curs)" ( (field_expression "term->curs" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "iVar1 = term->alt_y;" (assignment_expression "iVar1 = term->alt_y" identifier = (field_expression "term->alt_y" identifier -> field_identifier)) ;) (expression_statement "(term->savecurs).y = (term->savecurs).y + -1;" (assignment_expression "(term->savecurs).y = (term->savecurs).y + -1" (field_expression "(term->savecurs).y" (parenthesized_expression "(term->savecurs)" ( (field_expression "term->savecurs" identifier -> field_identifier) )) . field_identifier) = (binary_expression "(term->savecurs).y + -1" (field_expression "(term->savecurs).y" (parenthesized_expression "(term->savecurs)" ( (field_expression "term->savecurs" identifier -> field_identifier) )) . field_identifier) + number_literal)) ;) (expression_statement "iVar2 = term->rows;" (assignment_expression "iVar2 = term->rows" identifier = (field_expression "term->rows" identifier -> field_identifier)) ;) (expression_statement "(term->alt_savecurs).y = (term->alt_savecurs).y + -1;" (assignment_expression "(term->alt_savecurs).y = (term->alt_savecurs).y + -1" (field_expression "(term->alt_savecurs).y" (parenthesized_expression "(term->alt_savecurs)" ( (field_expression "term->alt_savecurs" identifier -> field_identifier) )) . field_identifier) = (binary_expression "(term->alt_savecurs).y + -1" (field_expression "(term->alt_savecurs).y" (parenthesized_expression "(term->alt_savecurs)" ( (field_expression "term->alt_savecurs" identifier -> field_identifier) )) . field_identifier) + number_literal)) ;) (expression_statement "term->tempsblines = iVar7 + 1;" (assignment_expression "term->tempsblines = iVar7 + 1" (field_expression "term->tempsblines" identifier -> field_identifier) = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "sVar6 = iVar2 - 1;" (assignment_expression "sVar6 = iVar2 - 1" identifier = (binary_expression "iVar2 - 1" identifier - number_literal)) ;) (expression_statement "(term->curs).y = iVar8 + -1;" (assignment_expression "(term->curs).y = iVar8 + -1" (field_expression "(term->curs).y" (parenthesized_expression "(term->curs)" ( (field_expression "term->curs" identifier -> field_identifier) )) . field_identifier) = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "term->alt_y = iVar1 + -1;" (assignment_expression "term->alt_y = iVar1 + -1" (field_expression "term->alt_y" identifier -> field_identifier) = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "term->rows = sVar6;" (assignment_expression "term->rows = sVar6" (field_expression "term->rows" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar1 = iVar9;" (assignment_expression "iVar1 = iVar9" identifier = identifier) ;) (if_statement "if ((int)sVar6 <= newrows) goto LAB_0004b3a0;" if (parenthesized_expression "((int)sVar6 <= newrows)" ( (binary_expression "(int)sVar6 <= newrows" (cast_expression "(int)sVar6" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) (goto_statement "goto LAB_0004b3a0;" goto statement_identifier ;)) })) (expression_statement "ptVar3 = (termline *)delpos234(term->screen,sVar6 - 1);" (assignment_expression "ptVar3 = (termline *)delpos234(term->screen,sVar6 - 1)" identifier = (cast_expression "(termline *)delpos234(term->screen,sVar6 - 1)" ( (type_descriptor "termline *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "delpos234(term->screen,sVar6 - 1)" identifier (argument_list "(term->screen,sVar6 - 1)" ( (field_expression "term->screen" identifier -> field_identifier) , (binary_expression "sVar6 - 1" identifier - number_literal) ))))) ;) (if_statement "if (ptVar3 != (termline *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        freeline(ptVar3);\n      }" if (parenthesized_expression "(ptVar3 != (termline *)0x0)" ( (binary_expression "ptVar3 != (termline *)0x0" identifier != (cast_expression "(termline *)0x0" ( (type_descriptor "termline *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        freeline(ptVar3);\n      }" { comment (expression_statement "freeline(ptVar3);" (call_expression "freeline(ptVar3)" identifier (argument_list "(ptVar3)" ( identifier ))) ;) })) (expression_statement "sVar6 = term->rows - 1;" (assignment_expression "sVar6 = term->rows - 1" identifier = (binary_expression "term->rows - 1" (field_expression "term->rows" identifier -> field_identifier) - number_literal)) ;) (expression_statement "term->rows = sVar6;" (assignment_expression "term->rows = sVar6" (field_expression "term->rows" identifier -> field_identifier) = identifier) ;) }) while (parenthesized_expression "(newrows < (int)sVar6)" ( (binary_expression "newrows < (int)sVar6" identifier < (cast_expression "(int)sVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (labeled_statement "LAB_0004b3a0:\n  if (newrows != sVar6) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" statement_identifier : (if_statement "if (newrows != sVar6) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" if (parenthesized_expression "(newrows != sVar6)" ( (binary_expression "newrows != sVar6" identifier != identifier) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" identifier + number_literal) ))) ;) (return_statement "return;" return ;) }))) (expression_statement "sVar6 = count234(term->screen);" (assignment_expression "sVar6 = count234(term->screen)" identifier = (call_expression "count234(term->screen)" identifier (argument_list "(term->screen)" ( (field_expression "term->screen" identifier -> field_identifier) )))) ;) (if_statement "if (newrows != sVar6) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" if (parenthesized_expression "(newrows != sVar6)" ( (binary_expression "newrows != sVar6" identifier != identifier) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (if_statement "if (newsavelines < iVar1) {\n    pvVar5 = delpos234(term->scrollback,0);\n                    /* WARNING: Subroutine does not return */\n    safefree(pvVar5);\n  }" if (parenthesized_expression "(newsavelines < iVar1)" ( (binary_expression "newsavelines < iVar1" identifier < identifier) )) (compound_statement "{\n    pvVar5 = delpos234(term->scrollback,0);\n                    /* WARNING: Subroutine does not return */\n    safefree(pvVar5);\n  }" { (expression_statement "pvVar5 = delpos234(term->scrollback,0);" (assignment_expression "pvVar5 = delpos234(term->scrollback,0)" identifier = (call_expression "delpos234(term->scrollback,0)" identifier (argument_list "(term->scrollback,0)" ( (field_expression "term->scrollback" identifier -> field_identifier) , number_literal )))) ;) comment (expression_statement "safefree(pvVar5);" (call_expression "safefree(pvVar5)" identifier (argument_list "(pvVar5)" ( identifier ))) ;) })) (if_statement "if (iVar1 < term->tempsblines) {\n    term->tempsblines = iVar1;\n  }" if (parenthesized_expression "(iVar1 < term->tempsblines)" ( (binary_expression "iVar1 < term->tempsblines" identifier < (field_expression "term->tempsblines" identifier -> field_identifier)) )) (compound_statement "{\n    term->tempsblines = iVar1;\n  }" { (expression_statement "term->tempsblines = iVar1;" (assignment_expression "term->tempsblines = iVar1" (field_expression "term->tempsblines" identifier -> field_identifier) = identifier) ;) })) (expression_statement "iVar9 = count234(term->scrollback);" (assignment_expression "iVar9 = count234(term->scrollback)" identifier = (call_expression "count234(term->scrollback)" identifier (argument_list "(term->scrollback)" ( (field_expression "term->scrollback" identifier -> field_identifier) )))) ;) (if_statement "if (iVar9 <= newsavelines) {\n    iVar9 = count234(term->scrollback);\n    if (term->tempsblines <= iVar9) {\n      term->disptop = 0;\n                    /* WARNING: Subroutine does not return */\n      safemalloc(newrows,4);\n    }\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" if (parenthesized_expression "(iVar9 <= newsavelines)" ( (binary_expression "iVar9 <= newsavelines" identifier <= identifier) )) (compound_statement "{\n    iVar9 = count234(term->scrollback);\n    if (term->tempsblines <= iVar9) {\n      term->disptop = 0;\n                    /* WARNING: Subroutine does not return */\n      safemalloc(newrows,4);\n    }\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" { (expression_statement "iVar9 = count234(term->scrollback);" (assignment_expression "iVar9 = count234(term->scrollback)" identifier = (call_expression "count234(term->scrollback)" identifier (argument_list "(term->scrollback)" ( (field_expression "term->scrollback" identifier -> field_identifier) )))) ;) (if_statement "if (term->tempsblines <= iVar9) {\n      term->disptop = 0;\n                    /* WARNING: Subroutine does not return */\n      safemalloc(newrows,4);\n    }" if (parenthesized_expression "(term->tempsblines <= iVar9)" ( (binary_expression "term->tempsblines <= iVar9" (field_expression "term->tempsblines" identifier -> field_identifier) <= identifier) )) (compound_statement "{\n      term->disptop = 0;\n                    /* WARNING: Subroutine does not return */\n      safemalloc(newrows,4);\n    }" { (expression_statement "term->disptop = 0;" (assignment_expression "term->disptop = 0" (field_expression "term->disptop" identifier -> field_identifier) = number_literal) ;) comment (expression_statement "safemalloc(newrows,4);" (call_expression "safemalloc(newrows,4)" identifier (argument_list "(newrows,4)" ( identifier , number_literal ))) ;) })) (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n            (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n             PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n             PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n            (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n             PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n             PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n             PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n             PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void term_size(int param_1,int param_2,uint param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  code *pcVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  uint uVar9;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  undefined4 uVar14;\n  int *piVar15;\n  code *pcVar16;\n  \n  iVar1 = *(int *)(param_1 + 0x128);\n  uVar8 = *(undefined4 *)(param_1 + 0x1a4);\n  if (((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)) &&\n     (*(int *)(param_1 + 0x130) == param_4)) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0xe48) = 0;\n  *(undefined4 *)(param_1 + 0xe5c) = 0;\n  if (param_2 < 1) {\n    param_2 = 1;\n  }\n  uVar11 = 1;\n  if (0 < (int)param_3) {\n    uVar11 = param_3;\n  }\n  pcVar16 = (code *)(PTR_LAB_000b5664 + -0x5830);\n  *(undefined4 *)(param_1 + 0xe60) = 0;\n  iVar12 = param_2 + -1;\n  *(undefined4 *)(param_1 + 0xe54) = 0;\n  *(undefined4 *)(param_1 + 0xe58) = 0;\n  FUN_0004a7d0(param_1,0,0,0);\n  *(undefined4 *)(param_1 + 0x7c) = 0;\n  *(undefined4 *)(param_1 + 0x19c) = 0;\n  *(int *)(param_1 + 0x80) = iVar12;\n  *(int *)(param_1 + 0x1a0) = iVar12;\n  if (*(int *)(param_1 + 0x128) == -1) {\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 4) = uVar4;\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 0x128) = 0;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  iVar13 = *(int *)(param_1 + 0x128);\n  iVar3 = count234(*(undefined4 *)(param_1 + 8));\n  if (iVar13 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar3 = *(int *)(param_1 + 0x128);\n  while (iVar3 < param_2) {\n    while (*(int *)(param_1 + 0x14) < 1) {\n      uVar4 = FUN_000444dc(param_1,uVar11,0);\n      uVar14 = *(undefined4 *)(param_1 + 8);\n      uVar5 = count234(uVar14);\n      addpos234(uVar14,uVar4,uVar5);\n      iVar3 = *(int *)(param_1 + 0x128) + 1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      if (param_2 <= iVar3) goto LAB_0004b290;\n    }\n    if (iVar2 < *(int *)(param_1 + 0x14)) {\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }\n    iVar2 = iVar2 + -1;\n    uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2);\n    iVar3 = FUN_00047040(uVar4);\n    safefree(uVar4);\n    iVar13 = *(int *)(param_1 + 0x14);\n    uVar4 = *(undefined4 *)(param_1 + 8);\n    *(undefined4 *)(iVar3 + 0xc) = 0;\n    *(int *)(param_1 + 0x14) = iVar13 + -1;\n    addpos234(uVar4,iVar3,0);\n    *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1;\n    *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1;\n    *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1;\n    iVar3 = *(int *)(param_1 + 0x128) + 1;\n    *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1;\n    *(int *)(param_1 + 0x128) = iVar3;\n  }\nLAB_0004b290:\n  if (param_2 < iVar3) {\n    pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);\n    do {\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    } while (param_2 < iVar3);\n  }\nLAB_0004b3a0:\n  if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar3 = count234(*(undefined4 *)(param_1 + 8));\n  if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  if (param_4 < iVar2) {\n    do {\n      iVar2 = iVar2 + -1;\n      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);\n      safefree(uVar4);\n    } while (param_4 != iVar2);\n  }\n  if (iVar2 < *(int *)(param_1 + 0x14)) {\n    *(int *)(param_1 + 0x14) = iVar2;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  if (param_4 < iVar2) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  if (iVar2 < *(int *)(param_1 + 0x14)) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  piVar7 = (int *)safemalloc(param_2,4);\n  piVar15 = piVar7;\n  do {\n    iVar2 = FUN_000444dc(param_1,uVar11,0);\n    *piVar15 = iVar2;\n    iVar2 = *(int *)(iVar2 + 0x14);\n    iVar3 = uVar11 * 0xc + iVar2;\n    do {\n      *(undefined4 *)(iVar2 + 4) = 0x3ffff;\n      iVar2 = iVar2 + 0xc;\n    } while (iVar3 != iVar2);\n    piVar15 = piVar15 + 1;\n  } while (piVar7 + param_2 != piVar15);\n  iVar2 = *(int *)(param_1 + 0x18);\n  if ((iVar2 != 0) && (0 < iVar1)) {\n    iVar13 = 0;\n    iVar3 = 0;\n    do {\n      if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }\n      iVar13 = iVar13 + 1;\n      iVar3 = iVar13 * 4;\n    } while (iVar1 != iVar13);\n  }\n  safefree(iVar2);\n  *(undefined4 *)(param_1 + 0x20) = 0xffffffff;\n  *(undefined4 *)(param_1 + 0x1c) = 0xffffffff;\n  *(int **)(param_1 + 0x18) = piVar7;\n  uVar4 = newtree234(0);\n  iVar1 = 0;\n  do {\n    uVar5 = FUN_000444dc(param_1,uVar11,1);\n    iVar2 = iVar1 + 1;\n    addpos234(uVar4,uVar5,iVar1);\n    iVar1 = iVar2;\n  } while (param_2 != iVar2);\n  iVar1 = *(int *)(param_1 + 0xc);\n  if (iVar1 != 0) {\n    while (iVar1 = delpos234(iVar1,0), iVar1 != 0) {\n      FUN_000459d0(iVar1);\n      iVar1 = *(int *)(param_1 + 0xc);\n    }\n    freetree234(*(undefined4 *)(param_1 + 0xc));\n  }\n  *(undefined4 *)(param_1 + 0xc) = uVar4;\n  *(undefined4 *)(param_1 + 0x1a8) = 0;\n  iVar1 = saferealloc(*(undefined4 *)(param_1 + 0xe40),uVar11,1);\n  uVar9 = *(uint *)(param_1 + 300);\n  if ((int)uVar9 < 0) {\n    uVar9 = 0;\n  }\n  *(int *)(param_1 + 0xe40) = iVar1;\n  if ((int)uVar9 < (int)uVar11) {\n    while( true ) {\n      iVar1 = iVar1 + uVar9;\n      uVar10 = uVar9 & 7;\n      uVar9 = uVar9 + 1;\n      *(bool *)iVar1 = uVar10 == 0;\n      if (uVar11 == uVar9) break;\n      iVar1 = *(int *)(param_1 + 0xe40);\n    }\n    iVar1 = *(int *)(param_1 + 0x74);\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x74);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x78);\n    *(undefined4 *)(param_1 + 0x74) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x74) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x78);\n  }\n  if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x108);\n  }\n  else {\n    *(uint *)(param_1 + 0x78) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x108);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x10c);\n    *(undefined4 *)(param_1 + 0x108) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x108) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x10c);\n  }\n  if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }\n  else {\n    *(uint *)(param_1 + 0x10c) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x70);\n    *(undefined4 *)(param_1 + 0x6c) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x70);\n  }\n  if ((int)uVar11 <= iVar1) {\n    *(uint *)(param_1 + 0x70) = uVar11 - 1;\n  }\n  *(int *)(param_1 + 0x128) = param_2;\n  *(uint *)(param_1 + 300) = uVar11;\n  *(int *)(param_1 + 0x130) = param_4;\n  *(undefined4 *)(param_1 + 0x17c) = 0;\n  *(undefined4 *)(param_1 + 0x178) = 0;\n  *(undefined4 *)(param_1 + 0x188) = 0;\n  *(undefined4 *)(param_1 + 0x8c) = 0;\n  (*pcVar16)(param_1,uVar8,0,0);\n  FUN_00044484(param_1);\n  term_update(param_1);\n  if (*(code **)(param_1 + 0x107c) == (code *)0x0) {\n    return;\n  }\n                    \n                    \n  (**(code **)(param_1 + 0x107c))\n            (*(undefined4 *)(param_1 + 0x1080),*(undefined4 *)(param_1 + 300),\n             *(undefined4 *)(param_1 + 0x128));\n  return;\n}\n\n" (function_definition "void term_size(int param_1,int param_2,uint param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  code *pcVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  uint uVar9;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  undefined4 uVar14;\n  int *piVar15;\n  code *pcVar16;\n  \n  iVar1 = *(int *)(param_1 + 0x128);\n  uVar8 = *(undefined4 *)(param_1 + 0x1a4);\n  if (((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)) &&\n     (*(int *)(param_1 + 0x130) == param_4)) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0xe48) = 0;\n  *(undefined4 *)(param_1 + 0xe5c) = 0;\n  if (param_2 < 1) {\n    param_2 = 1;\n  }\n  uVar11 = 1;\n  if (0 < (int)param_3) {\n    uVar11 = param_3;\n  }\n  pcVar16 = (code *)(PTR_LAB_000b5664 + -0x5830);\n  *(undefined4 *)(param_1 + 0xe60) = 0;\n  iVar12 = param_2 + -1;\n  *(undefined4 *)(param_1 + 0xe54) = 0;\n  *(undefined4 *)(param_1 + 0xe58) = 0;\n  FUN_0004a7d0(param_1,0,0,0);\n  *(undefined4 *)(param_1 + 0x7c) = 0;\n  *(undefined4 *)(param_1 + 0x19c) = 0;\n  *(int *)(param_1 + 0x80) = iVar12;\n  *(int *)(param_1 + 0x1a0) = iVar12;\n  if (*(int *)(param_1 + 0x128) == -1) {\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 4) = uVar4;\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 0x128) = 0;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  iVar13 = *(int *)(param_1 + 0x128);\n  iVar3 = count234(*(undefined4 *)(param_1 + 8));\n  if (iVar13 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar3 = *(int *)(param_1 + 0x128);\n  while (iVar3 < param_2) {\n    while (*(int *)(param_1 + 0x14) < 1) {\n      uVar4 = FUN_000444dc(param_1,uVar11,0);\n      uVar14 = *(undefined4 *)(param_1 + 8);\n      uVar5 = count234(uVar14);\n      addpos234(uVar14,uVar4,uVar5);\n      iVar3 = *(int *)(param_1 + 0x128) + 1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      if (param_2 <= iVar3) goto LAB_0004b290;\n    }\n    if (iVar2 < *(int *)(param_1 + 0x14)) {\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }\n    iVar2 = iVar2 + -1;\n    uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2);\n    iVar3 = FUN_00047040(uVar4);\n    safefree(uVar4);\n    iVar13 = *(int *)(param_1 + 0x14);\n    uVar4 = *(undefined4 *)(param_1 + 8);\n    *(undefined4 *)(iVar3 + 0xc) = 0;\n    *(int *)(param_1 + 0x14) = iVar13 + -1;\n    addpos234(uVar4,iVar3,0);\n    *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1;\n    *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1;\n    *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1;\n    iVar3 = *(int *)(param_1 + 0x128) + 1;\n    *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1;\n    *(int *)(param_1 + 0x128) = iVar3;\n  }\nLAB_0004b290:\n  if (param_2 < iVar3) {\n    pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);\n    do {\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    } while (param_2 < iVar3);\n  }\nLAB_0004b3a0:\n  if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar3 = count234(*(undefined4 *)(param_1 + 8));\n  if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  if (param_4 < iVar2) {\n    do {\n      iVar2 = iVar2 + -1;\n      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);\n      safefree(uVar4);\n    } while (param_4 != iVar2);\n  }\n  if (iVar2 < *(int *)(param_1 + 0x14)) {\n    *(int *)(param_1 + 0x14) = iVar2;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  if (param_4 < iVar2) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  if (iVar2 < *(int *)(param_1 + 0x14)) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  piVar7 = (int *)safemalloc(param_2,4);\n  piVar15 = piVar7;\n  do {\n    iVar2 = FUN_000444dc(param_1,uVar11,0);\n    *piVar15 = iVar2;\n    iVar2 = *(int *)(iVar2 + 0x14);\n    iVar3 = uVar11 * 0xc + iVar2;\n    do {\n      *(undefined4 *)(iVar2 + 4) = 0x3ffff;\n      iVar2 = iVar2 + 0xc;\n    } while (iVar3 != iVar2);\n    piVar15 = piVar15 + 1;\n  } while (piVar7 + param_2 != piVar15);\n  iVar2 = *(int *)(param_1 + 0x18);\n  if ((iVar2 != 0) && (0 < iVar1)) {\n    iVar13 = 0;\n    iVar3 = 0;\n    do {\n      if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }\n      iVar13 = iVar13 + 1;\n      iVar3 = iVar13 * 4;\n    } while (iVar1 != iVar13);\n  }\n  safefree(iVar2);\n  *(undefined4 *)(param_1 + 0x20) = 0xffffffff;\n  *(undefined4 *)(param_1 + 0x1c) = 0xffffffff;\n  *(int **)(param_1 + 0x18) = piVar7;\n  uVar4 = newtree234(0);\n  iVar1 = 0;\n  do {\n    uVar5 = FUN_000444dc(param_1,uVar11,1);\n    iVar2 = iVar1 + 1;\n    addpos234(uVar4,uVar5,iVar1);\n    iVar1 = iVar2;\n  } while (param_2 != iVar2);\n  iVar1 = *(int *)(param_1 + 0xc);\n  if (iVar1 != 0) {\n    while (iVar1 = delpos234(iVar1,0), iVar1 != 0) {\n      FUN_000459d0(iVar1);\n      iVar1 = *(int *)(param_1 + 0xc);\n    }\n    freetree234(*(undefined4 *)(param_1 + 0xc));\n  }\n  *(undefined4 *)(param_1 + 0xc) = uVar4;\n  *(undefined4 *)(param_1 + 0x1a8) = 0;\n  iVar1 = saferealloc(*(undefined4 *)(param_1 + 0xe40),uVar11,1);\n  uVar9 = *(uint *)(param_1 + 300);\n  if ((int)uVar9 < 0) {\n    uVar9 = 0;\n  }\n  *(int *)(param_1 + 0xe40) = iVar1;\n  if ((int)uVar9 < (int)uVar11) {\n    while( true ) {\n      iVar1 = iVar1 + uVar9;\n      uVar10 = uVar9 & 7;\n      uVar9 = uVar9 + 1;\n      *(bool *)iVar1 = uVar10 == 0;\n      if (uVar11 == uVar9) break;\n      iVar1 = *(int *)(param_1 + 0xe40);\n    }\n    iVar1 = *(int *)(param_1 + 0x74);\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x74);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x78);\n    *(undefined4 *)(param_1 + 0x74) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x74) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x78);\n  }\n  if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x108);\n  }\n  else {\n    *(uint *)(param_1 + 0x78) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x108);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x10c);\n    *(undefined4 *)(param_1 + 0x108) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x108) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x10c);\n  }\n  if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }\n  else {\n    *(uint *)(param_1 + 0x10c) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x70);\n    *(undefined4 *)(param_1 + 0x6c) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x70);\n  }\n  if ((int)uVar11 <= iVar1) {\n    *(uint *)(param_1 + 0x70) = uVar11 - 1;\n  }\n  *(int *)(param_1 + 0x128) = param_2;\n  *(uint *)(param_1 + 300) = uVar11;\n  *(int *)(param_1 + 0x130) = param_4;\n  *(undefined4 *)(param_1 + 0x17c) = 0;\n  *(undefined4 *)(param_1 + 0x178) = 0;\n  *(undefined4 *)(param_1 + 0x188) = 0;\n  *(undefined4 *)(param_1 + 0x8c) = 0;\n  (*pcVar16)(param_1,uVar8,0,0);\n  FUN_00044484(param_1);\n  term_update(param_1);\n  if (*(code **)(param_1 + 0x107c) == (code *)0x0) {\n    return;\n  }\n                    \n                    \n  (**(code **)(param_1 + 0x107c))\n            (*(undefined4 *)(param_1 + 0x1080),*(undefined4 *)(param_1 + 300),\n             *(undefined4 *)(param_1 + 0x128));\n  return;\n}" primitive_type (function_declarator "term_size(int param_1,int param_2,uint param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,uint param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  code *pcVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  uint uVar9;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  undefined4 uVar14;\n  int *piVar15;\n  code *pcVar16;\n  \n  iVar1 = *(int *)(param_1 + 0x128);\n  uVar8 = *(undefined4 *)(param_1 + 0x1a4);\n  if (((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)) &&\n     (*(int *)(param_1 + 0x130) == param_4)) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0xe48) = 0;\n  *(undefined4 *)(param_1 + 0xe5c) = 0;\n  if (param_2 < 1) {\n    param_2 = 1;\n  }\n  uVar11 = 1;\n  if (0 < (int)param_3) {\n    uVar11 = param_3;\n  }\n  pcVar16 = (code *)(PTR_LAB_000b5664 + -0x5830);\n  *(undefined4 *)(param_1 + 0xe60) = 0;\n  iVar12 = param_2 + -1;\n  *(undefined4 *)(param_1 + 0xe54) = 0;\n  *(undefined4 *)(param_1 + 0xe58) = 0;\n  FUN_0004a7d0(param_1,0,0,0);\n  *(undefined4 *)(param_1 + 0x7c) = 0;\n  *(undefined4 *)(param_1 + 0x19c) = 0;\n  *(int *)(param_1 + 0x80) = iVar12;\n  *(int *)(param_1 + 0x1a0) = iVar12;\n  if (*(int *)(param_1 + 0x128) == -1) {\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 4) = uVar4;\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 0x128) = 0;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  iVar13 = *(int *)(param_1 + 0x128);\n  iVar3 = count234(*(undefined4 *)(param_1 + 8));\n  if (iVar13 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar3 = *(int *)(param_1 + 0x128);\n  while (iVar3 < param_2) {\n    while (*(int *)(param_1 + 0x14) < 1) {\n      uVar4 = FUN_000444dc(param_1,uVar11,0);\n      uVar14 = *(undefined4 *)(param_1 + 8);\n      uVar5 = count234(uVar14);\n      addpos234(uVar14,uVar4,uVar5);\n      iVar3 = *(int *)(param_1 + 0x128) + 1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      if (param_2 <= iVar3) goto LAB_0004b290;\n    }\n    if (iVar2 < *(int *)(param_1 + 0x14)) {\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }\n    iVar2 = iVar2 + -1;\n    uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2);\n    iVar3 = FUN_00047040(uVar4);\n    safefree(uVar4);\n    iVar13 = *(int *)(param_1 + 0x14);\n    uVar4 = *(undefined4 *)(param_1 + 8);\n    *(undefined4 *)(iVar3 + 0xc) = 0;\n    *(int *)(param_1 + 0x14) = iVar13 + -1;\n    addpos234(uVar4,iVar3,0);\n    *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1;\n    *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1;\n    *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1;\n    iVar3 = *(int *)(param_1 + 0x128) + 1;\n    *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1;\n    *(int *)(param_1 + 0x128) = iVar3;\n  }\nLAB_0004b290:\n  if (param_2 < iVar3) {\n    pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);\n    do {\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    } while (param_2 < iVar3);\n  }\nLAB_0004b3a0:\n  if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar3 = count234(*(undefined4 *)(param_1 + 8));\n  if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  if (param_4 < iVar2) {\n    do {\n      iVar2 = iVar2 + -1;\n      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);\n      safefree(uVar4);\n    } while (param_4 != iVar2);\n  }\n  if (iVar2 < *(int *)(param_1 + 0x14)) {\n    *(int *)(param_1 + 0x14) = iVar2;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  if (param_4 < iVar2) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  if (iVar2 < *(int *)(param_1 + 0x14)) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  piVar7 = (int *)safemalloc(param_2,4);\n  piVar15 = piVar7;\n  do {\n    iVar2 = FUN_000444dc(param_1,uVar11,0);\n    *piVar15 = iVar2;\n    iVar2 = *(int *)(iVar2 + 0x14);\n    iVar3 = uVar11 * 0xc + iVar2;\n    do {\n      *(undefined4 *)(iVar2 + 4) = 0x3ffff;\n      iVar2 = iVar2 + 0xc;\n    } while (iVar3 != iVar2);\n    piVar15 = piVar15 + 1;\n  } while (piVar7 + param_2 != piVar15);\n  iVar2 = *(int *)(param_1 + 0x18);\n  if ((iVar2 != 0) && (0 < iVar1)) {\n    iVar13 = 0;\n    iVar3 = 0;\n    do {\n      if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }\n      iVar13 = iVar13 + 1;\n      iVar3 = iVar13 * 4;\n    } while (iVar1 != iVar13);\n  }\n  safefree(iVar2);\n  *(undefined4 *)(param_1 + 0x20) = 0xffffffff;\n  *(undefined4 *)(param_1 + 0x1c) = 0xffffffff;\n  *(int **)(param_1 + 0x18) = piVar7;\n  uVar4 = newtree234(0);\n  iVar1 = 0;\n  do {\n    uVar5 = FUN_000444dc(param_1,uVar11,1);\n    iVar2 = iVar1 + 1;\n    addpos234(uVar4,uVar5,iVar1);\n    iVar1 = iVar2;\n  } while (param_2 != iVar2);\n  iVar1 = *(int *)(param_1 + 0xc);\n  if (iVar1 != 0) {\n    while (iVar1 = delpos234(iVar1,0), iVar1 != 0) {\n      FUN_000459d0(iVar1);\n      iVar1 = *(int *)(param_1 + 0xc);\n    }\n    freetree234(*(undefined4 *)(param_1 + 0xc));\n  }\n  *(undefined4 *)(param_1 + 0xc) = uVar4;\n  *(undefined4 *)(param_1 + 0x1a8) = 0;\n  iVar1 = saferealloc(*(undefined4 *)(param_1 + 0xe40),uVar11,1);\n  uVar9 = *(uint *)(param_1 + 300);\n  if ((int)uVar9 < 0) {\n    uVar9 = 0;\n  }\n  *(int *)(param_1 + 0xe40) = iVar1;\n  if ((int)uVar9 < (int)uVar11) {\n    while( true ) {\n      iVar1 = iVar1 + uVar9;\n      uVar10 = uVar9 & 7;\n      uVar9 = uVar9 + 1;\n      *(bool *)iVar1 = uVar10 == 0;\n      if (uVar11 == uVar9) break;\n      iVar1 = *(int *)(param_1 + 0xe40);\n    }\n    iVar1 = *(int *)(param_1 + 0x74);\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x74);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x78);\n    *(undefined4 *)(param_1 + 0x74) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x74) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x78);\n  }\n  if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x108);\n  }\n  else {\n    *(uint *)(param_1 + 0x78) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x108);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x10c);\n    *(undefined4 *)(param_1 + 0x108) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x108) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x10c);\n  }\n  if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }\n  else {\n    *(uint *)(param_1 + 0x10c) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x70);\n    *(undefined4 *)(param_1 + 0x6c) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x70);\n  }\n  if ((int)uVar11 <= iVar1) {\n    *(uint *)(param_1 + 0x70) = uVar11 - 1;\n  }\n  *(int *)(param_1 + 0x128) = param_2;\n  *(uint *)(param_1 + 300) = uVar11;\n  *(int *)(param_1 + 0x130) = param_4;\n  *(undefined4 *)(param_1 + 0x17c) = 0;\n  *(undefined4 *)(param_1 + 0x178) = 0;\n  *(undefined4 *)(param_1 + 0x188) = 0;\n  *(undefined4 *)(param_1 + 0x8c) = 0;\n  (*pcVar16)(param_1,uVar8,0,0);\n  FUN_00044484(param_1);\n  term_update(param_1);\n  if (*(code **)(param_1 + 0x107c) == (code *)0x0) {\n    return;\n  }\n                    \n                    \n  (**(code **)(param_1 + 0x107c))\n            (*(undefined4 *)(param_1 + 0x1080),*(undefined4 *)(param_1 + 300),\n             *(undefined4 *)(param_1 + 0x128));\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "undefined4 uVar14;" type_identifier identifier ;) (declaration "int *piVar15;" primitive_type (pointer_declarator "*piVar15" * identifier) ;) (declaration "code *pcVar16;" type_identifier (pointer_declarator "*pcVar16" * identifier) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x128);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x128)" identifier = (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) ))))) ;) (expression_statement "uVar8 = *(undefined4 *)(param_1 + 0x1a4);" (assignment_expression "uVar8 = *(undefined4 *)(param_1 + 0x1a4)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x1a4)" * (cast_expression "(undefined4 *)(param_1 + 0x1a4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a4)" ( (binary_expression "param_1 + 0x1a4" identifier + number_literal) ))))) ;) (if_statement "if (((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)) &&\n     (*(int *)(param_1 + 0x130) == param_4)) {\n    return;\n  }" if (parenthesized_expression "(((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)) &&\n     (*(int *)(param_1 + 0x130) == param_4))" ( (binary_expression "((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)) &&\n     (*(int *)(param_1 + 0x130) == param_4)" (parenthesized_expression "((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3))" ( (binary_expression "(iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)" (parenthesized_expression "(iVar1 == param_2)" ( (binary_expression "iVar1 == param_2" identifier == identifier) )) && (parenthesized_expression "(*(uint *)(param_1 + 300) == param_3)" ( (binary_expression "*(uint *)(param_1 + 300) == param_3" (pointer_expression "*(uint *)(param_1 + 300)" * (cast_expression "(uint *)(param_1 + 300)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) )))) == identifier) ))) )) && (parenthesized_expression "(*(int *)(param_1 + 0x130) == param_4)" ( (binary_expression "*(int *)(param_1 + 0x130) == param_4" (pointer_expression "*(int *)(param_1 + 0x130)" * (cast_expression "(int *)(param_1 + 0x130)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x130)" ( (binary_expression "param_1 + 0x130" identifier + number_literal) )))) == identifier) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(param_1 + 0xe48) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe48) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe48)" * (cast_expression "(undefined4 *)(param_1 + 0xe48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe48)" ( (binary_expression "param_1 + 0xe48" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xe5c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe5c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe5c)" * (cast_expression "(undefined4 *)(param_1 + 0xe5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe5c)" ( (binary_expression "param_1 + 0xe5c" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (param_2 < 1) {\n    param_2 = 1;\n  }" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n    param_2 = 1;\n  }" { (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" identifier = number_literal) ;) })) (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" identifier = number_literal) ;) (if_statement "if (0 < (int)param_3) {\n    uVar11 = param_3;\n  }" if (parenthesized_expression "(0 < (int)param_3)" ( (binary_expression "0 < (int)param_3" number_literal < (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar11 = param_3;\n  }" { (expression_statement "uVar11 = param_3;" (assignment_expression "uVar11 = param_3" identifier = identifier) ;) })) (expression_statement "pcVar16 = (code *)(PTR_LAB_000b5664 + -0x5830);" (assignment_expression "pcVar16 = (code *)(PTR_LAB_000b5664 + -0x5830)" identifier = (cast_expression "(code *)(PTR_LAB_000b5664 + -0x5830)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000b5664 + -0x5830)" ( (binary_expression "PTR_LAB_000b5664 + -0x5830" identifier + number_literal) )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0xe60) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe60) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe60)" * (cast_expression "(undefined4 *)(param_1 + 0xe60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe60)" ( (binary_expression "param_1 + 0xe60" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar12 = param_2 + -1;" (assignment_expression "iVar12 = param_2 + -1" identifier = (binary_expression "param_2 + -1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(param_1 + 0xe54) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe54) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe54)" * (cast_expression "(undefined4 *)(param_1 + 0xe54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe54)" ( (binary_expression "param_1 + 0xe54" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xe58) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe58) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe58)" * (cast_expression "(undefined4 *)(param_1 + 0xe58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe58)" ( (binary_expression "param_1 + 0xe58" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0004a7d0(param_1,0,0,0);" (call_expression "FUN_0004a7d0(param_1,0,0,0)" identifier (argument_list "(param_1,0,0,0)" ( identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x7c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x7c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x7c)" * (cast_expression "(undefined4 *)(param_1 + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x19c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x19c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x19c)" * (cast_expression "(undefined4 *)(param_1 + 0x19c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x19c)" ( (binary_expression "param_1 + 0x19c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x80) = iVar12;" (assignment_expression "*(int *)(param_1 + 0x80) = iVar12" (pointer_expression "*(int *)(param_1 + 0x80)" * (cast_expression "(int *)(param_1 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x1a0) = iVar12;" (assignment_expression "*(int *)(param_1 + 0x1a0) = iVar12" (pointer_expression "*(int *)(param_1 + 0x1a0)" * (cast_expression "(int *)(param_1 + 0x1a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a0)" ( (binary_expression "param_1 + 0x1a0" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)(param_1 + 0x128) == -1) {\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 4) = uVar4;\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 0x128) = 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x128) == -1)" ( (binary_expression "*(int *)(param_1 + 0x128) == -1" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 4) = uVar4;\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 0x128) = 0;\n  }" { (expression_statement "uVar4 = newtree234(0);" (assignment_expression "uVar4 = newtree234(0)" identifier = (call_expression "newtree234(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = uVar4;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar4" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = newtree234(0);" (assignment_expression "uVar4 = newtree234(0)" identifier = (call_expression "newtree234(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar4;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar4" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x128) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x128) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x128)" * (cast_expression "(undefined4 *)(param_1 + 0x128)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "iVar2 = count234(*(undefined4 *)(param_1 + 4));" (assignment_expression "iVar2 = count234(*(undefined4 *)(param_1 + 4))" identifier = (call_expression "count234(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "iVar13 = *(int *)(param_1 + 0x128);" (assignment_expression "iVar13 = *(int *)(param_1 + 0x128)" identifier = (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = count234(*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar3 = count234(*(undefined4 *)(param_1 + 8))" identifier = (call_expression "count234(*(undefined4 *)(param_1 + 8))" identifier (argument_list "(*(undefined4 *)(param_1 + 8))" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar13 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" if (parenthesized_expression "(iVar13 != iVar3)" ( (binary_expression "iVar13 != iVar3" identifier != identifier) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar3 = *(int *)(param_1 + 0x128);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x128)" identifier = (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) ))))) ;) (while_statement "while (iVar3 < param_2) {\n    while (*(int *)(param_1 + 0x14) < 1) {\n      uVar4 = FUN_000444dc(param_1,uVar11,0);\n      uVar14 = *(undefined4 *)(param_1 + 8);\n      uVar5 = count234(uVar14);\n      addpos234(uVar14,uVar4,uVar5);\n      iVar3 = *(int *)(param_1 + 0x128) + 1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      if (param_2 <= iVar3) goto LAB_0004b290;\n    }\n    if (iVar2 < *(int *)(param_1 + 0x14)) {\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }\n    iVar2 = iVar2 + -1;\n    uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2);\n    iVar3 = FUN_00047040(uVar4);\n    safefree(uVar4);\n    iVar13 = *(int *)(param_1 + 0x14);\n    uVar4 = *(undefined4 *)(param_1 + 8);\n    *(undefined4 *)(iVar3 + 0xc) = 0;\n    *(int *)(param_1 + 0x14) = iVar13 + -1;\n    addpos234(uVar4,iVar3,0);\n    *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1;\n    *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1;\n    *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1;\n    iVar3 = *(int *)(param_1 + 0x128) + 1;\n    *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1;\n    *(int *)(param_1 + 0x128) = iVar3;\n  }" while (parenthesized_expression "(iVar3 < param_2)" ( (binary_expression "iVar3 < param_2" identifier < identifier) )) (compound_statement "{\n    while (*(int *)(param_1 + 0x14) < 1) {\n      uVar4 = FUN_000444dc(param_1,uVar11,0);\n      uVar14 = *(undefined4 *)(param_1 + 8);\n      uVar5 = count234(uVar14);\n      addpos234(uVar14,uVar4,uVar5);\n      iVar3 = *(int *)(param_1 + 0x128) + 1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      if (param_2 <= iVar3) goto LAB_0004b290;\n    }\n    if (iVar2 < *(int *)(param_1 + 0x14)) {\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }\n    iVar2 = iVar2 + -1;\n    uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2);\n    iVar3 = FUN_00047040(uVar4);\n    safefree(uVar4);\n    iVar13 = *(int *)(param_1 + 0x14);\n    uVar4 = *(undefined4 *)(param_1 + 8);\n    *(undefined4 *)(iVar3 + 0xc) = 0;\n    *(int *)(param_1 + 0x14) = iVar13 + -1;\n    addpos234(uVar4,iVar3,0);\n    *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1;\n    *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1;\n    *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1;\n    iVar3 = *(int *)(param_1 + 0x128) + 1;\n    *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1;\n    *(int *)(param_1 + 0x128) = iVar3;\n  }" { (while_statement "while (*(int *)(param_1 + 0x14) < 1) {\n      uVar4 = FUN_000444dc(param_1,uVar11,0);\n      uVar14 = *(undefined4 *)(param_1 + 8);\n      uVar5 = count234(uVar14);\n      addpos234(uVar14,uVar4,uVar5);\n      iVar3 = *(int *)(param_1 + 0x128) + 1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      if (param_2 <= iVar3) goto LAB_0004b290;\n    }" while (parenthesized_expression "(*(int *)(param_1 + 0x14) < 1)" ( (binary_expression "*(int *)(param_1 + 0x14) < 1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n      uVar4 = FUN_000444dc(param_1,uVar11,0);\n      uVar14 = *(undefined4 *)(param_1 + 8);\n      uVar5 = count234(uVar14);\n      addpos234(uVar14,uVar4,uVar5);\n      iVar3 = *(int *)(param_1 + 0x128) + 1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      if (param_2 <= iVar3) goto LAB_0004b290;\n    }" { (expression_statement "uVar4 = FUN_000444dc(param_1,uVar11,0);" (assignment_expression "uVar4 = FUN_000444dc(param_1,uVar11,0)" identifier = (call_expression "FUN_000444dc(param_1,uVar11,0)" identifier (argument_list "(param_1,uVar11,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "uVar14 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar14 = *(undefined4 *)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = count234(uVar14);" (assignment_expression "uVar5 = count234(uVar14)" identifier = (call_expression "count234(uVar14)" identifier (argument_list "(uVar14)" ( identifier )))) ;) (expression_statement "addpos234(uVar14,uVar4,uVar5);" (call_expression "addpos234(uVar14,uVar4,uVar5)" identifier (argument_list "(uVar14,uVar4,uVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x128) + 1;" (assignment_expression "iVar3 = *(int *)(param_1 + 0x128) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x128) + 1" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x128) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x128) = iVar3" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_2 <= iVar3) goto LAB_0004b290;" if (parenthesized_expression "(param_2 <= iVar3)" ( (binary_expression "param_2 <= iVar3" identifier <= identifier) )) (goto_statement "goto LAB_0004b290;" goto statement_identifier ;)) })) (if_statement "if (iVar2 < *(int *)(param_1 + 0x14)) {\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }" if (parenthesized_expression "(iVar2 < *(int *)(param_1 + 0x14))" ( (binary_expression "iVar2 < *(int *)(param_1 + 0x14)" identifier < (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }" { (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2);" (assignment_expression "uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2)" identifier = (call_expression "delpos234(*(undefined4 *)(param_1 + 4),iVar2)" identifier (argument_list "(*(undefined4 *)(param_1 + 4),iVar2)" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "iVar3 = FUN_00047040(uVar4);" (assignment_expression "iVar3 = FUN_00047040(uVar4)" identifier = (call_expression "FUN_00047040(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "iVar13 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar13 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" * (cast_expression "(undefined4 *)(iVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x14) = iVar13 + -1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar13 + -1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "iVar13 + -1" identifier + number_literal)) ;) (expression_statement "addpos234(uVar4,iVar3,0);" (call_expression "addpos234(uVar4,iVar3,0)" identifier (argument_list "(uVar4,iVar3,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "*(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1;" (assignment_expression "*(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1" (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x74) + 1" (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1;" (assignment_expression "*(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1" (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x108) + 1" (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1;" (assignment_expression "*(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x6c) + 1" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x128) + 1;" (assignment_expression "iVar3 = *(int *)(param_1 + 0x128) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x128) + 1" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1;" (assignment_expression "*(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1" (pointer_expression "*(int *)(param_1 + 0x17c)" * (cast_expression "(int *)(param_1 + 0x17c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x17c)" ( (binary_expression "param_1 + 0x17c" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x17c) + 1" (pointer_expression "*(int *)(param_1 + 0x17c)" * (cast_expression "(int *)(param_1 + 0x17c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x17c)" ( (binary_expression "param_1 + 0x17c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x128) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x128) = iVar3" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = identifier) ;) })) (labeled_statement "LAB_0004b290:\n  if (param_2 < iVar3) {\n    pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);\n    do {\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    } while (param_2 < iVar3);\n  }" statement_identifier : (if_statement "if (param_2 < iVar3) {\n    pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);\n    do {\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    } while (param_2 < iVar3);\n  }" if (parenthesized_expression "(param_2 < iVar3)" ( (binary_expression "param_2 < iVar3" identifier < identifier) )) (compound_statement "{\n    pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);\n    do {\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    } while (param_2 < iVar3);\n  }" { (expression_statement "pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);" (assignment_expression "pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840)" identifier = (cast_expression "(code *)(PTR_LAB_000b55b4 + 0x6840)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000b55b4 + 0x6840)" ( (binary_expression "PTR_LAB_000b55b4 + 0x6840" identifier + number_literal) )))) ;) (do_statement "do {\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    } while (param_2 < iVar3);" do (compound_statement "{\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    }" { (while_statement "while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }" while (parenthesized_expression "(*(int *)(param_1 + 0x6c) < iVar3 + -1)" ( (binary_expression "*(int *)(param_1 + 0x6c) < iVar3 + -1" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) < (binary_expression "iVar3 + -1" identifier + number_literal)) )) (compound_statement "{\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }" { (expression_statement "iVar3 = delpos234(*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar3 = delpos234(*(undefined4 *)(param_1 + 8))" identifier = (call_expression "delpos234(*(undefined4 *)(param_1 + 8))" identifier (argument_list "(*(undefined4 *)(param_1 + 8))" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n          FUN_000459d0(iVar3);\n        }" { (expression_statement "FUN_000459d0(iVar3);" (call_expression "FUN_000459d0(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) })) (expression_statement "iVar3 = *(int *)(param_1 + 0x128) + -1;" (assignment_expression "iVar3 = *(int *)(param_1 + 0x128) + -1" identifier = (binary_expression "*(int *)(param_1 + 0x128) + -1" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x128) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x128) = iVar3" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar3 <= param_2) goto LAB_0004b3a0;" if (parenthesized_expression "(iVar3 <= param_2)" ( (binary_expression "iVar3 <= param_2" identifier <= identifier) )) (goto_statement "goto LAB_0004b3a0;" goto statement_identifier ;)) })) (expression_statement "iVar13 = iVar2 + 1;" (assignment_expression "iVar13 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);" (assignment_expression "iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0)" identifier = (call_expression "delpos234(*(undefined4 *)(param_1 + 8),0)" identifier (argument_list "(*(undefined4 *)(param_1 + 8),0)" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 4);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 4)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = (*pcVar6)(iVar3);" (assignment_expression "uVar4 = (*pcVar6)(iVar3)" identifier = (call_expression "(*pcVar6)(iVar3)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "addpos234(uVar5,uVar4,iVar2);" (call_expression "addpos234(uVar5,uVar4,iVar2)" identifier (argument_list "(uVar5,uVar4,iVar2)" ( identifier , identifier , identifier ))) ;) (if_statement "if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_000459d0(iVar3);\n      }" { (expression_statement "FUN_000459d0(iVar3);" (call_expression "FUN_000459d0(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) })) (expression_statement "*(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;" (assignment_expression "*(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1" (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x74) + -1" (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;" (assignment_expression "*(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1" (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x108) + -1" (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;" (assignment_expression "*(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x14) + 1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x128) + -1;" (assignment_expression "iVar3 = *(int *)(param_1 + 0x128) + -1" identifier = (binary_expression "*(int *)(param_1 + 0x128) + -1" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;" (assignment_expression "*(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x6c) + -1" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;" (assignment_expression "*(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1" (pointer_expression "*(int *)(param_1 + 0x17c)" * (cast_expression "(int *)(param_1 + 0x17c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x17c)" ( (binary_expression "param_1 + 0x17c" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x17c) + -1" (pointer_expression "*(int *)(param_1 + 0x17c)" * (cast_expression "(int *)(param_1 + 0x17c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x17c)" ( (binary_expression "param_1 + 0x17c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x128) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x128) = iVar3" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = iVar13;" (assignment_expression "iVar2 = iVar13" identifier = identifier) ;) }) while (parenthesized_expression "(param_2 < iVar3)" ( (binary_expression "param_2 < iVar3" identifier < identifier) )) ;) }))) (labeled_statement "LAB_0004b3a0:\n  if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" statement_identifier : (if_statement "if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" if (parenthesized_expression "(param_2 != iVar3)" ( (binary_expression "param_2 != iVar3" identifier != identifier) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" identifier + number_literal) ))) ;) (return_statement "return;" return ;) }))) (expression_statement "iVar3 = count234(*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar3 = count234(*(undefined4 *)(param_1 + 8))" identifier = (call_expression "count234(*(undefined4 *)(param_1 + 8))" identifier (argument_list "(*(undefined4 *)(param_1 + 8))" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (if_statement "if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" if (parenthesized_expression "(param_2 != iVar3)" ( (binary_expression "param_2 != iVar3" identifier != identifier) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (if_statement "if (param_4 < iVar2) {\n    do {\n      iVar2 = iVar2 + -1;\n      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);\n      safefree(uVar4);\n    } while (param_4 != iVar2);\n  }" if (parenthesized_expression "(param_4 < iVar2)" ( (binary_expression "param_4 < iVar2" identifier < identifier) )) (compound_statement "{\n    do {\n      iVar2 = iVar2 + -1;\n      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);\n      safefree(uVar4);\n    } while (param_4 != iVar2);\n  }" { (do_statement "do {\n      iVar2 = iVar2 + -1;\n      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);\n      safefree(uVar4);\n    } while (param_4 != iVar2);" do (compound_statement "{\n      iVar2 = iVar2 + -1;\n      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);\n      safefree(uVar4);\n    }" { (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);" (assignment_expression "uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0)" identifier = (call_expression "delpos234(*(undefined4 *)(param_1 + 4),0)" identifier (argument_list "(*(undefined4 *)(param_1 + 4),0)" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) }) while (parenthesized_expression "(param_4 != iVar2)" ( (binary_expression "param_4 != iVar2" identifier != identifier) )) ;) })) (if_statement "if (iVar2 < *(int *)(param_1 + 0x14)) {\n    *(int *)(param_1 + 0x14) = iVar2;\n  }" if (parenthesized_expression "(iVar2 < *(int *)(param_1 + 0x14))" ( (binary_expression "iVar2 < *(int *)(param_1 + 0x14)" identifier < (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    *(int *)(param_1 + 0x14) = iVar2;\n  }" { (expression_statement "*(int *)(param_1 + 0x14) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar2" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar2 = count234(*(undefined4 *)(param_1 + 4));" (assignment_expression "iVar2 = count234(*(undefined4 *)(param_1 + 4))" identifier = (call_expression "count234(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (if_statement "if (param_4 < iVar2) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" if (parenthesized_expression "(param_4 < iVar2)" ( (binary_expression "param_4 < iVar2" identifier < identifier) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = count234(*(undefined4 *)(param_1 + 4));" (assignment_expression "iVar2 = count234(*(undefined4 *)(param_1 + 4))" identifier = (call_expression "count234(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar2 < *(int *)(param_1 + 0x14)) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" if (parenthesized_expression "(iVar2 < *(int *)(param_1 + 0x14))" ( (binary_expression "iVar2 < *(int *)(param_1 + 0x14)" identifier < (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "piVar7 = (int *)safemalloc(param_2,4);" (assignment_expression "piVar7 = (int *)safemalloc(param_2,4)" identifier = (cast_expression "(int *)safemalloc(param_2,4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(param_2,4)" identifier (argument_list "(param_2,4)" ( identifier , number_literal ))))) ;) (expression_statement "piVar15 = piVar7;" (assignment_expression "piVar15 = piVar7" identifier = identifier) ;) (do_statement "do {\n    iVar2 = FUN_000444dc(param_1,uVar11,0);\n    *piVar15 = iVar2;\n    iVar2 = *(int *)(iVar2 + 0x14);\n    iVar3 = uVar11 * 0xc + iVar2;\n    do {\n      *(undefined4 *)(iVar2 + 4) = 0x3ffff;\n      iVar2 = iVar2 + 0xc;\n    } while (iVar3 != iVar2);\n    piVar15 = piVar15 + 1;\n  } while (piVar7 + param_2 != piVar15);" do (compound_statement "{\n    iVar2 = FUN_000444dc(param_1,uVar11,0);\n    *piVar15 = iVar2;\n    iVar2 = *(int *)(iVar2 + 0x14);\n    iVar3 = uVar11 * 0xc + iVar2;\n    do {\n      *(undefined4 *)(iVar2 + 4) = 0x3ffff;\n      iVar2 = iVar2 + 0xc;\n    } while (iVar3 != iVar2);\n    piVar15 = piVar15 + 1;\n  }" { (expression_statement "iVar2 = FUN_000444dc(param_1,uVar11,0);" (assignment_expression "iVar2 = FUN_000444dc(param_1,uVar11,0)" identifier = (call_expression "FUN_000444dc(param_1,uVar11,0)" identifier (argument_list "(param_1,uVar11,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "*piVar15 = iVar2;" (assignment_expression "*piVar15 = iVar2" (pointer_expression "*piVar15" * identifier) = identifier) ;) (expression_statement "iVar2 = *(int *)(iVar2 + 0x14);" (assignment_expression "iVar2 = *(int *)(iVar2 + 0x14)" identifier = (pointer_expression "*(int *)(iVar2 + 0x14)" * (cast_expression "(int *)(iVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = uVar11 * 0xc + iVar2;" (assignment_expression "iVar3 = uVar11 * 0xc + iVar2" identifier = (binary_expression "uVar11 * 0xc + iVar2" (binary_expression "uVar11 * 0xc" identifier * number_literal) + identifier)) ;) (do_statement "do {\n      *(undefined4 *)(iVar2 + 4) = 0x3ffff;\n      iVar2 = iVar2 + 0xc;\n    } while (iVar3 != iVar2);" do (compound_statement "{\n      *(undefined4 *)(iVar2 + 4) = 0x3ffff;\n      iVar2 = iVar2 + 0xc;\n    }" { (expression_statement "*(undefined4 *)(iVar2 + 4) = 0x3ffff;" (assignment_expression "*(undefined4 *)(iVar2 + 4) = 0x3ffff" (pointer_expression "*(undefined4 *)(iVar2 + 4)" * (cast_expression "(undefined4 *)(iVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = iVar2 + 0xc;" (assignment_expression "iVar2 = iVar2 + 0xc" identifier = (binary_expression "iVar2 + 0xc" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != iVar2)" ( (binary_expression "iVar3 != iVar2" identifier != identifier) )) ;) (expression_statement "piVar15 = piVar15 + 1;" (assignment_expression "piVar15 = piVar15 + 1" identifier = (binary_expression "piVar15 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar7 + param_2 != piVar15)" ( (binary_expression "piVar7 + param_2 != piVar15" (binary_expression "piVar7 + param_2" identifier + identifier) != identifier) )) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x18)" identifier = (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) ))))) ;) (if_statement "if ((iVar2 != 0) && (0 < iVar1)) {\n    iVar13 = 0;\n    iVar3 = 0;\n    do {\n      if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }\n      iVar13 = iVar13 + 1;\n      iVar3 = iVar13 * 4;\n    } while (iVar1 != iVar13);\n  }" if (parenthesized_expression "((iVar2 != 0) && (0 < iVar1))" ( (binary_expression "(iVar2 != 0) && (0 < iVar1)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) ))) )) (compound_statement "{\n    iVar13 = 0;\n    iVar3 = 0;\n    do {\n      if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }\n      iVar13 = iVar13 + 1;\n      iVar3 = iVar13 * 4;\n    } while (iVar1 != iVar13);\n  }" { (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }\n      iVar13 = iVar13 + 1;\n      iVar3 = iVar13 * 4;\n    } while (iVar1 != iVar13);" do (compound_statement "{\n      if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }\n      iVar13 = iVar13 + 1;\n      iVar3 = iVar13 * 4;\n    }" { (if_statement "if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }" if (parenthesized_expression "(*(int *)(iVar2 + iVar3) != 0)" ( (binary_expression "*(int *)(iVar2 + iVar3) != 0" (pointer_expression "*(int *)(iVar2 + iVar3)" * (cast_expression "(int *)(iVar2 + iVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar3)" ( (binary_expression "iVar2 + iVar3" identifier + identifier) )))) != number_literal) )) (compound_statement "{\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }" { (expression_statement "FUN_000459d0();" (call_expression "FUN_000459d0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x18)" identifier = (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) ))))) ;) })) (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" identifier = (binary_expression "iVar13 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = iVar13 * 4;" (assignment_expression "iVar3 = iVar13 * 4" identifier = (binary_expression "iVar13 * 4" identifier * number_literal)) ;) }) while (parenthesized_expression "(iVar1 != iVar13)" ( (binary_expression "iVar1 != iVar13" identifier != identifier) )) ;) })) (expression_statement "safefree(iVar2);" (call_expression "safefree(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x20) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int **)(param_1 + 0x18) = piVar7;" (assignment_expression "*(int **)(param_1 + 0x18) = piVar7" (pointer_expression "*(int **)(param_1 + 0x18)" * (cast_expression "(int **)(param_1 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = newtree234(0);" (assignment_expression "uVar4 = newtree234(0)" identifier = (call_expression "newtree234(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    uVar5 = FUN_000444dc(param_1,uVar11,1);\n    iVar2 = iVar1 + 1;\n    addpos234(uVar4,uVar5,iVar1);\n    iVar1 = iVar2;\n  } while (param_2 != iVar2);" do (compound_statement "{\n    uVar5 = FUN_000444dc(param_1,uVar11,1);\n    iVar2 = iVar1 + 1;\n    addpos234(uVar4,uVar5,iVar1);\n    iVar1 = iVar2;\n  }" { (expression_statement "uVar5 = FUN_000444dc(param_1,uVar11,1);" (assignment_expression "uVar5 = FUN_000444dc(param_1,uVar11,1)" identifier = (call_expression "FUN_000444dc(param_1,uVar11,1)" identifier (argument_list "(param_1,uVar11,1)" ( identifier , identifier , number_literal )))) ;) (expression_statement "iVar2 = iVar1 + 1;" (assignment_expression "iVar2 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "addpos234(uVar4,uVar5,iVar1);" (call_expression "addpos234(uVar4,uVar5,iVar1)" identifier (argument_list "(uVar4,uVar5,iVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar1 = iVar2;" (assignment_expression "iVar1 = iVar2" identifier = identifier) ;) }) while (parenthesized_expression "(param_2 != iVar2)" ( (binary_expression "param_2 != iVar2" identifier != identifier) )) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    while (iVar1 = delpos234(iVar1,0), iVar1 != 0) {\n      FUN_000459d0(iVar1);\n      iVar1 = *(int *)(param_1 + 0xc);\n    }\n    freetree234(*(undefined4 *)(param_1 + 0xc));\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    while (iVar1 = delpos234(iVar1,0), iVar1 != 0) {\n      FUN_000459d0(iVar1);\n      iVar1 = *(int *)(param_1 + 0xc);\n    }\n    freetree234(*(undefined4 *)(param_1 + 0xc));\n  }" { (while_statement "while (iVar1 = delpos234(iVar1,0), iVar1 != 0) {\n      FUN_000459d0(iVar1);\n      iVar1 = *(int *)(param_1 + 0xc);\n    }" while (parenthesized_expression "(iVar1 = delpos234(iVar1,0), iVar1 != 0)" ( (comma_expression "iVar1 = delpos234(iVar1,0), iVar1 != 0" (assignment_expression "iVar1 = delpos234(iVar1,0)" identifier = (call_expression "delpos234(iVar1,0)" identifier (argument_list "(iVar1,0)" ( identifier , number_literal )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) )) (compound_statement "{\n      FUN_000459d0(iVar1);\n      iVar1 = *(int *)(param_1 + 0xc);\n    }" { (expression_statement "FUN_000459d0(iVar1);" (call_expression "FUN_000459d0(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) })) (expression_statement "freetree234(*(undefined4 *)(param_1 + 0xc));" (call_expression "freetree234(*(undefined4 *)(param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0xc) = uVar4;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = uVar4" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1a8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1a8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1a8)" * (cast_expression "(undefined4 *)(param_1 + 0x1a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a8)" ( (binary_expression "param_1 + 0x1a8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = saferealloc(*(undefined4 *)(param_1 + 0xe40),uVar11,1);" (assignment_expression "iVar1 = saferealloc(*(undefined4 *)(param_1 + 0xe40),uVar11,1)" identifier = (call_expression "saferealloc(*(undefined4 *)(param_1 + 0xe40),uVar11,1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0xe40),uVar11,1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xe40)" * (cast_expression "(undefined4 *)(param_1 + 0xe40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe40)" ( (binary_expression "param_1 + 0xe40" identifier + number_literal) )))) , identifier , number_literal )))) ;) (expression_statement "uVar9 = *(uint *)(param_1 + 300);" (assignment_expression "uVar9 = *(uint *)(param_1 + 300)" identifier = (pointer_expression "*(uint *)(param_1 + 300)" * (cast_expression "(uint *)(param_1 + 300)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) ))))) ;) (if_statement "if ((int)uVar9 < 0) {\n    uVar9 = 0;\n  }" if (parenthesized_expression "((int)uVar9 < 0)" ( (binary_expression "(int)uVar9 < 0" (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    uVar9 = 0;\n  }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) })) (expression_statement "*(int *)(param_1 + 0xe40) = iVar1;" (assignment_expression "*(int *)(param_1 + 0xe40) = iVar1" (pointer_expression "*(int *)(param_1 + 0xe40)" * (cast_expression "(int *)(param_1 + 0xe40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe40)" ( (binary_expression "param_1 + 0xe40" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((int)uVar9 < (int)uVar11) {\n    while( true ) {\n      iVar1 = iVar1 + uVar9;\n      uVar10 = uVar9 & 7;\n      uVar9 = uVar9 + 1;\n      *(bool *)iVar1 = uVar10 == 0;\n      if (uVar11 == uVar9) break;\n      iVar1 = *(int *)(param_1 + 0xe40);\n    }\n    iVar1 = *(int *)(param_1 + 0x74);\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x74);\n  }" if (parenthesized_expression "((int)uVar9 < (int)uVar11)" ( (binary_expression "(int)uVar9 < (int)uVar11" (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    while( true ) {\n      iVar1 = iVar1 + uVar9;\n      uVar10 = uVar9 & 7;\n      uVar9 = uVar9 + 1;\n      *(bool *)iVar1 = uVar10 == 0;\n      if (uVar11 == uVar9) break;\n      iVar1 = *(int *)(param_1 + 0xe40);\n    }\n    iVar1 = *(int *)(param_1 + 0x74);\n  }" { (while_statement "while( true ) {\n      iVar1 = iVar1 + uVar9;\n      uVar10 = uVar9 & 7;\n      uVar9 = uVar9 + 1;\n      *(bool *)iVar1 = uVar10 == 0;\n      if (uVar11 == uVar9) break;\n      iVar1 = *(int *)(param_1 + 0xe40);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar1 = iVar1 + uVar9;\n      uVar10 = uVar9 & 7;\n      uVar9 = uVar9 + 1;\n      *(bool *)iVar1 = uVar10 == 0;\n      if (uVar11 == uVar9) break;\n      iVar1 = *(int *)(param_1 + 0xe40);\n    }" { (expression_statement "iVar1 = iVar1 + uVar9;" (assignment_expression "iVar1 = iVar1 + uVar9" identifier = (binary_expression "iVar1 + uVar9" identifier + identifier)) ;) (expression_statement "uVar10 = uVar9 & 7;" (assignment_expression "uVar10 = uVar9 & 7" identifier = (binary_expression "uVar9 & 7" identifier & number_literal)) ;) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) (expression_statement "*(bool *)iVar1 = uVar10 == 0;" (assignment_expression "*(bool *)iVar1 = uVar10 == 0" (pointer_expression "*(bool *)iVar1" * (cast_expression "(bool *)iVar1" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "uVar10 == 0" identifier == number_literal)) ;) (if_statement "if (uVar11 == uVar9) break;" if (parenthesized_expression "(uVar11 == uVar9)" ( (binary_expression "uVar11 == uVar9" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *(int *)(param_1 + 0xe40);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xe40)" identifier = (pointer_expression "*(int *)(param_1 + 0xe40)" * (cast_expression "(int *)(param_1 + 0xe40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe40)" ( (binary_expression "param_1 + 0xe40" identifier + number_literal) ))))) ;) })) (expression_statement "iVar1 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x74)" identifier = (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    iVar1 = *(int *)(param_1 + 0x74);\n  }" else (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x74);\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x74)" identifier = (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x78);\n    *(undefined4 *)(param_1 + 0x74) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x74) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x78);\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x78);\n    *(undefined4 *)(param_1 + 0x74) = 0;\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x78);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x78)" identifier = (pointer_expression "*(int *)(param_1 + 0x78)" * (cast_expression "(int *)(param_1 + 0x78)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x74) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x74) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x74)" * (cast_expression "(undefined4 *)(param_1 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x74) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x78);\n  }" else (compound_statement "{\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x74) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x78);\n  }" { (if_statement "if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x74) = iVar12;\n    }" if (parenthesized_expression "(param_2 <= iVar1)" ( (binary_expression "param_2 <= iVar1" identifier <= identifier) )) (compound_statement "{\n      *(int *)(param_1 + 0x74) = iVar12;\n    }" { (expression_statement "*(int *)(param_1 + 0x74) = iVar12;" (assignment_expression "*(int *)(param_1 + 0x74) = iVar12" (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar1 = *(int *)(param_1 + 0x78);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x78)" identifier = (pointer_expression "*(int *)(param_1 + 0x78)" * (cast_expression "(int *)(param_1 + 0x78)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x108);\n  }\n  else {\n    *(uint *)(param_1 + 0x78) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x108);\n  }" if (parenthesized_expression "(iVar1 < (int)uVar11)" ( (binary_expression "iVar1 < (int)uVar11" identifier < (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x108);\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x108);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x108)" identifier = (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    *(uint *)(param_1 + 0x78) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x108);\n  }" else (compound_statement "{\n    *(uint *)(param_1 + 0x78) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x108);\n  }" { (expression_statement "*(uint *)(param_1 + 0x78) = uVar11 - 1;" (assignment_expression "*(uint *)(param_1 + 0x78) = uVar11 - 1" (pointer_expression "*(uint *)(param_1 + 0x78)" * (cast_expression "(uint *)(param_1 + 0x78)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) = (binary_expression "uVar11 - 1" identifier - number_literal)) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x108);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x108)" identifier = (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x10c);\n    *(undefined4 *)(param_1 + 0x108) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x108) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x10c);\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x10c);\n    *(undefined4 *)(param_1 + 0x108) = 0;\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x10c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10c)" identifier = (pointer_expression "*(int *)(param_1 + 0x10c)" * (cast_expression "(int *)(param_1 + 0x10c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x108) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x108) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x108)" * (cast_expression "(undefined4 *)(param_1 + 0x108)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x108) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x10c);\n  }" else (compound_statement "{\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x108) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x10c);\n  }" { (if_statement "if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x108) = iVar12;\n    }" if (parenthesized_expression "(param_2 <= iVar1)" ( (binary_expression "param_2 <= iVar1" identifier <= identifier) )) (compound_statement "{\n      *(int *)(param_1 + 0x108) = iVar12;\n    }" { (expression_statement "*(int *)(param_1 + 0x108) = iVar12;" (assignment_expression "*(int *)(param_1 + 0x108) = iVar12" (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar1 = *(int *)(param_1 + 0x10c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10c)" identifier = (pointer_expression "*(int *)(param_1 + 0x10c)" * (cast_expression "(int *)(param_1 + 0x10c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }\n  else {\n    *(uint *)(param_1 + 0x10c) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }" if (parenthesized_expression "(iVar1 < (int)uVar11)" ( (binary_expression "iVar1 < (int)uVar11" identifier < (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x6c)" identifier = (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    *(uint *)(param_1 + 0x10c) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }" else (compound_statement "{\n    *(uint *)(param_1 + 0x10c) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }" { (expression_statement "*(uint *)(param_1 + 0x10c) = uVar11 - 1;" (assignment_expression "*(uint *)(param_1 + 0x10c) = uVar11 - 1" (pointer_expression "*(uint *)(param_1 + 0x10c)" * (cast_expression "(uint *)(param_1 + 0x10c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) )))) = (binary_expression "uVar11 - 1" identifier - number_literal)) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x6c)" identifier = (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x70);\n    *(undefined4 *)(param_1 + 0x6c) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x70);\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x70);\n    *(undefined4 *)(param_1 + 0x6c) = 0;\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x70);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x70)" identifier = (pointer_expression "*(int *)(param_1 + 0x70)" * (cast_expression "(int *)(param_1 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x6c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x6c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x70);\n  }" else (compound_statement "{\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x70);\n  }" { (if_statement "if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }" if (parenthesized_expression "(param_2 <= iVar1)" ( (binary_expression "param_2 <= iVar1" identifier <= identifier) )) (compound_statement "{\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }" { (expression_statement "*(int *)(param_1 + 0x6c) = iVar12;" (assignment_expression "*(int *)(param_1 + 0x6c) = iVar12" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar1 = *(int *)(param_1 + 0x70);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x70)" identifier = (pointer_expression "*(int *)(param_1 + 0x70)" * (cast_expression "(int *)(param_1 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) ;) }))) (if_statement "if ((int)uVar11 <= iVar1) {\n    *(uint *)(param_1 + 0x70) = uVar11 - 1;\n  }" if (parenthesized_expression "((int)uVar11 <= iVar1)" ( (binary_expression "(int)uVar11 <= iVar1" (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) (compound_statement "{\n    *(uint *)(param_1 + 0x70) = uVar11 - 1;\n  }" { (expression_statement "*(uint *)(param_1 + 0x70) = uVar11 - 1;" (assignment_expression "*(uint *)(param_1 + 0x70) = uVar11 - 1" (pointer_expression "*(uint *)(param_1 + 0x70)" * (cast_expression "(uint *)(param_1 + 0x70)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = (binary_expression "uVar11 - 1" identifier - number_literal)) ;) })) (expression_statement "*(int *)(param_1 + 0x128) = param_2;" (assignment_expression "*(int *)(param_1 + 0x128) = param_2" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 300) = uVar11;" (assignment_expression "*(uint *)(param_1 + 300) = uVar11" (pointer_expression "*(uint *)(param_1 + 300)" * (cast_expression "(uint *)(param_1 + 300)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x130) = param_4;" (assignment_expression "*(int *)(param_1 + 0x130) = param_4" (pointer_expression "*(int *)(param_1 + 0x130)" * (cast_expression "(int *)(param_1 + 0x130)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x130)" ( (binary_expression "param_1 + 0x130" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x17c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x17c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x17c)" * (cast_expression "(undefined4 *)(param_1 + 0x17c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x17c)" ( (binary_expression "param_1 + 0x17c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x178) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x178) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x178)" * (cast_expression "(undefined4 *)(param_1 + 0x178)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x178)" ( (binary_expression "param_1 + 0x178" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x188) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x188) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x188)" * (cast_expression "(undefined4 *)(param_1 + 0x188)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x188)" ( (binary_expression "param_1 + 0x188" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x8c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x8c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x8c)" * (cast_expression "(undefined4 *)(param_1 + 0x8c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x8c)" ( (binary_expression "param_1 + 0x8c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*pcVar16)(param_1,uVar8,0,0);" (call_expression "(*pcVar16)(param_1,uVar8,0,0)" (parenthesized_expression "(*pcVar16)" ( (pointer_expression "*pcVar16" * identifier) )) (argument_list "(param_1,uVar8,0,0)" ( identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "FUN_00044484(param_1);" (call_expression "FUN_00044484(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "term_update(param_1);" (call_expression "term_update(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if (*(code **)(param_1 + 0x107c) == (code *)0x0) {\n    return;\n  }" if (parenthesized_expression "(*(code **)(param_1 + 0x107c) == (code *)0x0)" ( (binary_expression "*(code **)(param_1 + 0x107c) == (code *)0x0" (pointer_expression "*(code **)(param_1 + 0x107c)" * (cast_expression "(code **)(param_1 + 0x107c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x107c)" ( (binary_expression "param_1 + 0x107c" identifier + number_literal) )))) == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(**(code **)(param_1 + 0x107c))\n            (*(undefined4 *)(param_1 + 0x1080),*(undefined4 *)(param_1 + 300),\n             *(undefined4 *)(param_1 + 0x128));" (call_expression "(**(code **)(param_1 + 0x107c))\n            (*(undefined4 *)(param_1 + 0x1080),*(undefined4 *)(param_1 + 300),\n             *(undefined4 *)(param_1 + 0x128))" (parenthesized_expression "(**(code **)(param_1 + 0x107c))" ( (pointer_expression "**(code **)(param_1 + 0x107c)" * (pointer_expression "*(code **)(param_1 + 0x107c)" * (cast_expression "(code **)(param_1 + 0x107c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x107c)" ( (binary_expression "param_1 + 0x107c" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(param_1 + 0x1080),*(undefined4 *)(param_1 + 300),\n             *(undefined4 *)(param_1 + 0x128))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x1080)" * (cast_expression "(undefined4 *)(param_1 + 0x1080)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1080)" ( (binary_expression "param_1 + 0x1080" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 300)" * (cast_expression "(undefined4 *)(param_1 + 300)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x128)" * (cast_expression "(undefined4 *)(param_1 + 0x128)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) ))) ;) (return_statement "return;" return ;) })))
(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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (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) )))) == IDENT) ))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) ))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (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 ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (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 ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (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) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (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 ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (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 ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (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 ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (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 ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) , (binary_expression IDENT != LIT)) )) (compound_statement { (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) ))))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (binary_expression IDENT == LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (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 { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (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 { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT - LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , LIT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (return_statement return ;) })))
(function_definition "void term_size(int param_1,int param_2,uint param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  code *pcVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  uint uVar9;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  undefined4 uVar14;\n  int *piVar15;\n  code *pcVar16;\n  \n  iVar1 = *(int *)(param_1 + 0x128);\n  uVar8 = *(undefined4 *)(param_1 + 0x1a4);\n  if (((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)) &&\n     (*(int *)(param_1 + 0x130) == param_4)) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0xe48) = 0;\n  *(undefined4 *)(param_1 + 0xe5c) = 0;\n  if (param_2 < 1) {\n    param_2 = 1;\n  }\n  uVar11 = 1;\n  if (0 < (int)param_3) {\n    uVar11 = param_3;\n  }\n  pcVar16 = (code *)(PTR_LAB_000b5664 + -0x5830);\n  *(undefined4 *)(param_1 + 0xe60) = 0;\n  iVar12 = param_2 + -1;\n  *(undefined4 *)(param_1 + 0xe54) = 0;\n  *(undefined4 *)(param_1 + 0xe58) = 0;\n  FUN_0004a7d0(param_1,0,0,0);\n  *(undefined4 *)(param_1 + 0x7c) = 0;\n  *(undefined4 *)(param_1 + 0x19c) = 0;\n  *(int *)(param_1 + 0x80) = iVar12;\n  *(int *)(param_1 + 0x1a0) = iVar12;\n  if (*(int *)(param_1 + 0x128) == -1) {\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 4) = uVar4;\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 0x128) = 0;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  iVar13 = *(int *)(param_1 + 0x128);\n  iVar3 = count234(*(undefined4 *)(param_1 + 8));\n  if (iVar13 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar3 = *(int *)(param_1 + 0x128);\n  while (iVar3 < param_2) {\n    while (*(int *)(param_1 + 0x14) < 1) {\n      uVar4 = FUN_000444dc(param_1,uVar11,0);\n      uVar14 = *(undefined4 *)(param_1 + 8);\n      uVar5 = count234(uVar14);\n      addpos234(uVar14,uVar4,uVar5);\n      iVar3 = *(int *)(param_1 + 0x128) + 1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      if (param_2 <= iVar3) goto LAB_0004b290;\n    }\n    if (iVar2 < *(int *)(param_1 + 0x14)) {\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }\n    iVar2 = iVar2 + -1;\n    uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2);\n    iVar3 = FUN_00047040(uVar4);\n    safefree(uVar4);\n    iVar13 = *(int *)(param_1 + 0x14);\n    uVar4 = *(undefined4 *)(param_1 + 8);\n    *(undefined4 *)(iVar3 + 0xc) = 0;\n    *(int *)(param_1 + 0x14) = iVar13 + -1;\n    addpos234(uVar4,iVar3,0);\n    *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1;\n    *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1;\n    *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1;\n    iVar3 = *(int *)(param_1 + 0x128) + 1;\n    *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1;\n    *(int *)(param_1 + 0x128) = iVar3;\n  }\nLAB_0004b290:\n  if (param_2 < iVar3) {\n    pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);\n    do {\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    } while (param_2 < iVar3);\n  }\nLAB_0004b3a0:\n  if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar3 = count234(*(undefined4 *)(param_1 + 8));\n  if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  if (param_4 < iVar2) {\n    do {\n      iVar2 = iVar2 + -1;\n      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);\n      safefree(uVar4);\n    } while (param_4 != iVar2);\n  }\n  if (iVar2 < *(int *)(param_1 + 0x14)) {\n    *(int *)(param_1 + 0x14) = iVar2;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  if (param_4 < iVar2) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  if (iVar2 < *(int *)(param_1 + 0x14)) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  piVar7 = (int *)safemalloc(param_2,4);\n  piVar15 = piVar7;\n  do {\n    iVar2 = FUN_000444dc(param_1,uVar11,0);\n    *piVar15 = iVar2;\n    iVar2 = *(int *)(iVar2 + 0x14);\n    iVar3 = uVar11 * 0xc + iVar2;\n    do {\n      *(undefined4 *)(iVar2 + 4) = 0x3ffff;\n      iVar2 = iVar2 + 0xc;\n    } while (iVar3 != iVar2);\n    piVar15 = piVar15 + 1;\n  } while (piVar7 + param_2 != piVar15);\n  iVar2 = *(int *)(param_1 + 0x18);\n  if ((iVar2 != 0) && (0 < iVar1)) {\n    iVar13 = 0;\n    iVar3 = 0;\n    do {\n      if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }\n      iVar13 = iVar13 + 1;\n      iVar3 = iVar13 * 4;\n    } while (iVar1 != iVar13);\n  }\n  safefree(iVar2);\n  *(undefined4 *)(param_1 + 0x20) = 0xffffffff;\n  *(undefined4 *)(param_1 + 0x1c) = 0xffffffff;\n  *(int **)(param_1 + 0x18) = piVar7;\n  uVar4 = newtree234(0);\n  iVar1 = 0;\n  do {\n    uVar5 = FUN_000444dc(param_1,uVar11,1);\n    iVar2 = iVar1 + 1;\n    addpos234(uVar4,uVar5,iVar1);\n    iVar1 = iVar2;\n  } while (param_2 != iVar2);\n  iVar1 = *(int *)(param_1 + 0xc);\n  if (iVar1 != 0) {\n    while (iVar1 = delpos234(iVar1,0), iVar1 != 0) {\n      FUN_000459d0(iVar1);\n      iVar1 = *(int *)(param_1 + 0xc);\n    }\n    freetree234(*(undefined4 *)(param_1 + 0xc));\n  }\n  *(undefined4 *)(param_1 + 0xc) = uVar4;\n  *(undefined4 *)(param_1 + 0x1a8) = 0;\n  iVar1 = saferealloc(*(undefined4 *)(param_1 + 0xe40),uVar11,1);\n  uVar9 = *(uint *)(param_1 + 300);\n  if ((int)uVar9 < 0) {\n    uVar9 = 0;\n  }\n  *(int *)(param_1 + 0xe40) = iVar1;\n  if ((int)uVar9 < (int)uVar11) {\n    while( true ) {\n      iVar1 = iVar1 + uVar9;\n      uVar10 = uVar9 & 7;\n      uVar9 = uVar9 + 1;\n      *(bool *)iVar1 = uVar10 == 0;\n      if (uVar11 == uVar9) break;\n      iVar1 = *(int *)(param_1 + 0xe40);\n    }\n    iVar1 = *(int *)(param_1 + 0x74);\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x74);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x78);\n    *(undefined4 *)(param_1 + 0x74) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x74) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x78);\n  }\n  if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x108);\n  }\n  else {\n    *(uint *)(param_1 + 0x78) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x108);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x10c);\n    *(undefined4 *)(param_1 + 0x108) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x108) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x10c);\n  }\n  if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }\n  else {\n    *(uint *)(param_1 + 0x10c) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x70);\n    *(undefined4 *)(param_1 + 0x6c) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x70);\n  }\n  if ((int)uVar11 <= iVar1) {\n    *(uint *)(param_1 + 0x70) = uVar11 - 1;\n  }\n  *(int *)(param_1 + 0x128) = param_2;\n  *(uint *)(param_1 + 300) = uVar11;\n  *(int *)(param_1 + 0x130) = param_4;\n  *(undefined4 *)(param_1 + 0x17c) = 0;\n  *(undefined4 *)(param_1 + 0x178) = 0;\n  *(undefined4 *)(param_1 + 0x188) = 0;\n  *(undefined4 *)(param_1 + 0x8c) = 0;\n  (*pcVar16)(param_1,uVar8,0,0);\n  FUN_00044484(param_1);\n  term_update(param_1);\n  if (*(code **)(param_1 + 0x107c) == (code *)0x0) {\n    return;\n  }\n                    \n                    \n  (**(code **)(param_1 + 0x107c))\n            (*(undefined4 *)(param_1 + 0x1080),*(undefined4 *)(param_1 + 300),\n             *(undefined4 *)(param_1 + 0x128));\n  return;\n}" (primitive_type "void") (function_declarator "term_size(int param_1,int param_2,uint param_3,int param_4)" (identifier "term_size") (parameter_list "(int param_1,int param_2,uint param_3,int param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  code *pcVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  uint uVar9;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  undefined4 uVar14;\n  int *piVar15;\n  code *pcVar16;\n  \n  iVar1 = *(int *)(param_1 + 0x128);\n  uVar8 = *(undefined4 *)(param_1 + 0x1a4);\n  if (((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)) &&\n     (*(int *)(param_1 + 0x130) == param_4)) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0xe48) = 0;\n  *(undefined4 *)(param_1 + 0xe5c) = 0;\n  if (param_2 < 1) {\n    param_2 = 1;\n  }\n  uVar11 = 1;\n  if (0 < (int)param_3) {\n    uVar11 = param_3;\n  }\n  pcVar16 = (code *)(PTR_LAB_000b5664 + -0x5830);\n  *(undefined4 *)(param_1 + 0xe60) = 0;\n  iVar12 = param_2 + -1;\n  *(undefined4 *)(param_1 + 0xe54) = 0;\n  *(undefined4 *)(param_1 + 0xe58) = 0;\n  FUN_0004a7d0(param_1,0,0,0);\n  *(undefined4 *)(param_1 + 0x7c) = 0;\n  *(undefined4 *)(param_1 + 0x19c) = 0;\n  *(int *)(param_1 + 0x80) = iVar12;\n  *(int *)(param_1 + 0x1a0) = iVar12;\n  if (*(int *)(param_1 + 0x128) == -1) {\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 4) = uVar4;\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 0x128) = 0;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  iVar13 = *(int *)(param_1 + 0x128);\n  iVar3 = count234(*(undefined4 *)(param_1 + 8));\n  if (iVar13 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar3 = *(int *)(param_1 + 0x128);\n  while (iVar3 < param_2) {\n    while (*(int *)(param_1 + 0x14) < 1) {\n      uVar4 = FUN_000444dc(param_1,uVar11,0);\n      uVar14 = *(undefined4 *)(param_1 + 8);\n      uVar5 = count234(uVar14);\n      addpos234(uVar14,uVar4,uVar5);\n      iVar3 = *(int *)(param_1 + 0x128) + 1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      if (param_2 <= iVar3) goto LAB_0004b290;\n    }\n    if (iVar2 < *(int *)(param_1 + 0x14)) {\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }\n    iVar2 = iVar2 + -1;\n    uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2);\n    iVar3 = FUN_00047040(uVar4);\n    safefree(uVar4);\n    iVar13 = *(int *)(param_1 + 0x14);\n    uVar4 = *(undefined4 *)(param_1 + 8);\n    *(undefined4 *)(iVar3 + 0xc) = 0;\n    *(int *)(param_1 + 0x14) = iVar13 + -1;\n    addpos234(uVar4,iVar3,0);\n    *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1;\n    *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1;\n    *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1;\n    iVar3 = *(int *)(param_1 + 0x128) + 1;\n    *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1;\n    *(int *)(param_1 + 0x128) = iVar3;\n  }\nLAB_0004b290:\n  if (param_2 < iVar3) {\n    pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);\n    do {\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    } while (param_2 < iVar3);\n  }\nLAB_0004b3a0:\n  if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar3 = count234(*(undefined4 *)(param_1 + 8));\n  if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  if (param_4 < iVar2) {\n    do {\n      iVar2 = iVar2 + -1;\n      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);\n      safefree(uVar4);\n    } while (param_4 != iVar2);\n  }\n  if (iVar2 < *(int *)(param_1 + 0x14)) {\n    *(int *)(param_1 + 0x14) = iVar2;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  if (param_4 < iVar2) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  iVar2 = count234(*(undefined4 *)(param_1 + 4));\n  if (iVar2 < *(int *)(param_1 + 0x14)) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  piVar7 = (int *)safemalloc(param_2,4);\n  piVar15 = piVar7;\n  do {\n    iVar2 = FUN_000444dc(param_1,uVar11,0);\n    *piVar15 = iVar2;\n    iVar2 = *(int *)(iVar2 + 0x14);\n    iVar3 = uVar11 * 0xc + iVar2;\n    do {\n      *(undefined4 *)(iVar2 + 4) = 0x3ffff;\n      iVar2 = iVar2 + 0xc;\n    } while (iVar3 != iVar2);\n    piVar15 = piVar15 + 1;\n  } while (piVar7 + param_2 != piVar15);\n  iVar2 = *(int *)(param_1 + 0x18);\n  if ((iVar2 != 0) && (0 < iVar1)) {\n    iVar13 = 0;\n    iVar3 = 0;\n    do {\n      if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }\n      iVar13 = iVar13 + 1;\n      iVar3 = iVar13 * 4;\n    } while (iVar1 != iVar13);\n  }\n  safefree(iVar2);\n  *(undefined4 *)(param_1 + 0x20) = 0xffffffff;\n  *(undefined4 *)(param_1 + 0x1c) = 0xffffffff;\n  *(int **)(param_1 + 0x18) = piVar7;\n  uVar4 = newtree234(0);\n  iVar1 = 0;\n  do {\n    uVar5 = FUN_000444dc(param_1,uVar11,1);\n    iVar2 = iVar1 + 1;\n    addpos234(uVar4,uVar5,iVar1);\n    iVar1 = iVar2;\n  } while (param_2 != iVar2);\n  iVar1 = *(int *)(param_1 + 0xc);\n  if (iVar1 != 0) {\n    while (iVar1 = delpos234(iVar1,0), iVar1 != 0) {\n      FUN_000459d0(iVar1);\n      iVar1 = *(int *)(param_1 + 0xc);\n    }\n    freetree234(*(undefined4 *)(param_1 + 0xc));\n  }\n  *(undefined4 *)(param_1 + 0xc) = uVar4;\n  *(undefined4 *)(param_1 + 0x1a8) = 0;\n  iVar1 = saferealloc(*(undefined4 *)(param_1 + 0xe40),uVar11,1);\n  uVar9 = *(uint *)(param_1 + 300);\n  if ((int)uVar9 < 0) {\n    uVar9 = 0;\n  }\n  *(int *)(param_1 + 0xe40) = iVar1;\n  if ((int)uVar9 < (int)uVar11) {\n    while( true ) {\n      iVar1 = iVar1 + uVar9;\n      uVar10 = uVar9 & 7;\n      uVar9 = uVar9 + 1;\n      *(bool *)iVar1 = uVar10 == 0;\n      if (uVar11 == uVar9) break;\n      iVar1 = *(int *)(param_1 + 0xe40);\n    }\n    iVar1 = *(int *)(param_1 + 0x74);\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x74);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x78);\n    *(undefined4 *)(param_1 + 0x74) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x74) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x78);\n  }\n  if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x108);\n  }\n  else {\n    *(uint *)(param_1 + 0x78) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x108);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x10c);\n    *(undefined4 *)(param_1 + 0x108) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x108) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x10c);\n  }\n  if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }\n  else {\n    *(uint *)(param_1 + 0x10c) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }\n  if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x70);\n    *(undefined4 *)(param_1 + 0x6c) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x70);\n  }\n  if ((int)uVar11 <= iVar1) {\n    *(uint *)(param_1 + 0x70) = uVar11 - 1;\n  }\n  *(int *)(param_1 + 0x128) = param_2;\n  *(uint *)(param_1 + 300) = uVar11;\n  *(int *)(param_1 + 0x130) = param_4;\n  *(undefined4 *)(param_1 + 0x17c) = 0;\n  *(undefined4 *)(param_1 + 0x178) = 0;\n  *(undefined4 *)(param_1 + 0x188) = 0;\n  *(undefined4 *)(param_1 + 0x8c) = 0;\n  (*pcVar16)(param_1,uVar8,0,0);\n  FUN_00044484(param_1);\n  term_update(param_1);\n  if (*(code **)(param_1 + 0x107c) == (code *)0x0) {\n    return;\n  }\n                    \n                    \n  (**(code **)(param_1 + 0x107c))\n            (*(undefined4 *)(param_1 + 0x1080),*(undefined4 *)(param_1 + 300),\n             *(undefined4 *)(param_1 + 0x128));\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "code *pcVar6;" (type_identifier "code") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "undefined4 uVar14;" (type_identifier "undefined4") (identifier "uVar14") (; ";")) (declaration "int *piVar15;" (primitive_type "int") (pointer_declarator "*piVar15" (* "*") (identifier "piVar15")) (; ";")) (declaration "code *pcVar16;" (type_identifier "code") (pointer_declarator "*pcVar16" (* "*") (identifier "pcVar16")) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x128);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x128)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")"))))) (; ";")) (expression_statement "uVar8 = *(undefined4 *)(param_1 + 0x1a4);" (assignment_expression "uVar8 = *(undefined4 *)(param_1 + 0x1a4)" (identifier "uVar8") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x1a4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1a4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1a4)" (( "(") (binary_expression "param_1 + 0x1a4" (identifier "param_1") (+ "+") (number_literal "0x1a4")) () ")"))))) (; ";")) (if_statement "if (((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)) &&\n     (*(int *)(param_1 + 0x130) == param_4)) {\n    return;\n  }" (if "if") (parenthesized_expression "(((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)) &&\n     (*(int *)(param_1 + 0x130) == param_4))" (( "(") (binary_expression "((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)) &&\n     (*(int *)(param_1 + 0x130) == param_4)" (parenthesized_expression "((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3))" (( "(") (binary_expression "(iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)" (parenthesized_expression "(iVar1 == param_2)" (( "(") (binary_expression "iVar1 == param_2" (identifier "iVar1") (== "==") (identifier "param_2")) () ")")) (&& "&&") (parenthesized_expression "(*(uint *)(param_1 + 300) == param_3)" (( "(") (binary_expression "*(uint *)(param_1 + 300) == param_3" (pointer_expression "*(uint *)(param_1 + 300)" (* "*") (cast_expression "(uint *)(param_1 + 300)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 300)" (( "(") (binary_expression "param_1 + 300" (identifier "param_1") (+ "+") (number_literal "300")) () ")")))) (== "==") (identifier "param_3")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0x130) == param_4)" (( "(") (binary_expression "*(int *)(param_1 + 0x130) == param_4" (pointer_expression "*(int *)(param_1 + 0x130)" (* "*") (cast_expression "(int *)(param_1 + 0x130)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x130)" (( "(") (binary_expression "param_1 + 0x130" (identifier "param_1") (+ "+") (number_literal "0x130")) () ")")))) (== "==") (identifier "param_4")) () ")"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0xe48) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe48) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe48)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xe48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe48)" (( "(") (binary_expression "param_1 + 0xe48" (identifier "param_1") (+ "+") (number_literal "0xe48")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xe5c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe5c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe5c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xe5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe5c)" (( "(") (binary_expression "param_1 + 0xe5c" (identifier "param_1") (+ "+") (number_literal "0xe5c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2 < 1) {\n    param_2 = 1;\n  }" (if "if") (parenthesized_expression "(param_2 < 1)" (( "(") (binary_expression "param_2 < 1" (identifier "param_2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    param_2 = 1;\n  }" ({ "{") (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" (identifier "param_2") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" (identifier "uVar11") (= "=") (number_literal "1")) (; ";")) (if_statement "if (0 < (int)param_3) {\n    uVar11 = param_3;\n  }" (if "if") (parenthesized_expression "(0 < (int)param_3)" (( "(") (binary_expression "0 < (int)param_3" (number_literal "0") (< "<") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) () ")")) (compound_statement "{\n    uVar11 = param_3;\n  }" ({ "{") (expression_statement "uVar11 = param_3;" (assignment_expression "uVar11 = param_3" (identifier "uVar11") (= "=") (identifier "param_3")) (; ";")) (} "}"))) (expression_statement "pcVar16 = (code *)(PTR_LAB_000b5664 + -0x5830);" (assignment_expression "pcVar16 = (code *)(PTR_LAB_000b5664 + -0x5830)" (identifier "pcVar16") (= "=") (cast_expression "(code *)(PTR_LAB_000b5664 + -0x5830)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_000b5664 + -0x5830)" (( "(") (binary_expression "PTR_LAB_000b5664 + -0x5830" (identifier "PTR_LAB_000b5664") (+ "+") (number_literal "-0x5830")) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xe60) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe60) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe60)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xe60)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe60)" (( "(") (binary_expression "param_1 + 0xe60" (identifier "param_1") (+ "+") (number_literal "0xe60")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar12 = param_2 + -1;" (assignment_expression "iVar12 = param_2 + -1" (identifier "iVar12") (= "=") (binary_expression "param_2 + -1" (identifier "param_2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xe54) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe54) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe54)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xe54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe54)" (( "(") (binary_expression "param_1 + 0xe54" (identifier "param_1") (+ "+") (number_literal "0xe54")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xe58) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe58) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe58)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xe58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe58)" (( "(") (binary_expression "param_1 + 0xe58" (identifier "param_1") (+ "+") (number_literal "0xe58")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0004a7d0(param_1,0,0,0);" (call_expression "FUN_0004a7d0(param_1,0,0,0)" (identifier "FUN_0004a7d0") (argument_list "(param_1,0,0,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x7c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x7c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x7c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x7c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x7c)" (( "(") (binary_expression "param_1 + 0x7c" (identifier "param_1") (+ "+") (number_literal "0x7c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x19c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x19c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x19c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x19c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x19c)" (( "(") (binary_expression "param_1 + 0x19c" (identifier "param_1") (+ "+") (number_literal "0x19c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(param_1 + 0x80) = iVar12;" (assignment_expression "*(int *)(param_1 + 0x80) = iVar12" (pointer_expression "*(int *)(param_1 + 0x80)" (* "*") (cast_expression "(int *)(param_1 + 0x80)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x80)" (( "(") (binary_expression "param_1 + 0x80" (identifier "param_1") (+ "+") (number_literal "0x80")) () ")")))) (= "=") (identifier "iVar12")) (; ";")) (expression_statement "*(int *)(param_1 + 0x1a0) = iVar12;" (assignment_expression "*(int *)(param_1 + 0x1a0) = iVar12" (pointer_expression "*(int *)(param_1 + 0x1a0)" (* "*") (cast_expression "(int *)(param_1 + 0x1a0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1a0)" (( "(") (binary_expression "param_1 + 0x1a0" (identifier "param_1") (+ "+") (number_literal "0x1a0")) () ")")))) (= "=") (identifier "iVar12")) (; ";")) (if_statement "if (*(int *)(param_1 + 0x128) == -1) {\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 4) = uVar4;\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 0x128) = 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x128) == -1)" (( "(") (binary_expression "*(int *)(param_1 + 0x128) == -1" (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 4) = uVar4;\n    uVar4 = newtree234(0);\n    *(undefined4 *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 0x128) = 0;\n  }" ({ "{") (expression_statement "uVar4 = newtree234(0);" (assignment_expression "uVar4 = newtree234(0)" (identifier "uVar4") (= "=") (call_expression "newtree234(0)" (identifier "newtree234") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 4) = uVar4;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar4" (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "uVar4 = newtree234(0);" (assignment_expression "uVar4 = newtree234(0)" (identifier "uVar4") (= "=") (call_expression "newtree234(0)" (identifier "newtree234") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar4;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar4" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x128) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x128) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x128)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x128)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "iVar2 = count234(*(undefined4 *)(param_1 + 4));" (assignment_expression "iVar2 = count234(*(undefined4 *)(param_1 + 4))" (identifier "iVar2") (= "=") (call_expression "count234(*(undefined4 *)(param_1 + 4))" (identifier "count234") (argument_list "(*(undefined4 *)(param_1 + 4))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar13 = *(int *)(param_1 + 0x128);" (assignment_expression "iVar13 = *(int *)(param_1 + 0x128)" (identifier "iVar13") (= "=") (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")"))))) (; ";")) (expression_statement "iVar3 = count234(*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar3 = count234(*(undefined4 *)(param_1 + 8))" (identifier "iVar3") (= "=") (call_expression "count234(*(undefined4 *)(param_1 + 8))" (identifier "count234") (argument_list "(*(undefined4 *)(param_1 + 8))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar13 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar13 != iVar3)" (( "(") (binary_expression "iVar13 != iVar3" (identifier "iVar13") (!= "!=") (identifier "iVar3")) () ")")) (compound_statement "{\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" ({ "{") (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000b5a40" (* "*") (cast_expression "(code *)PTR___assert_fail_000b5a40" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000b5a40"))) () ")")) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (( "(") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x5b6c")) (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x5de0")) (, ",") (number_literal "0x706") (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x5260")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(param_1 + 0x128);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x128)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")"))))) (; ";")) (while_statement "while (iVar3 < param_2) {\n    while (*(int *)(param_1 + 0x14) < 1) {\n      uVar4 = FUN_000444dc(param_1,uVar11,0);\n      uVar14 = *(undefined4 *)(param_1 + 8);\n      uVar5 = count234(uVar14);\n      addpos234(uVar14,uVar4,uVar5);\n      iVar3 = *(int *)(param_1 + 0x128) + 1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      if (param_2 <= iVar3) goto LAB_0004b290;\n    }\n    if (iVar2 < *(int *)(param_1 + 0x14)) {\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }\n    iVar2 = iVar2 + -1;\n    uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2);\n    iVar3 = FUN_00047040(uVar4);\n    safefree(uVar4);\n    iVar13 = *(int *)(param_1 + 0x14);\n    uVar4 = *(undefined4 *)(param_1 + 8);\n    *(undefined4 *)(iVar3 + 0xc) = 0;\n    *(int *)(param_1 + 0x14) = iVar13 + -1;\n    addpos234(uVar4,iVar3,0);\n    *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1;\n    *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1;\n    *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1;\n    iVar3 = *(int *)(param_1 + 0x128) + 1;\n    *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1;\n    *(int *)(param_1 + 0x128) = iVar3;\n  }" (while "while") (parenthesized_expression "(iVar3 < param_2)" (( "(") (binary_expression "iVar3 < param_2" (identifier "iVar3") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    while (*(int *)(param_1 + 0x14) < 1) {\n      uVar4 = FUN_000444dc(param_1,uVar11,0);\n      uVar14 = *(undefined4 *)(param_1 + 8);\n      uVar5 = count234(uVar14);\n      addpos234(uVar14,uVar4,uVar5);\n      iVar3 = *(int *)(param_1 + 0x128) + 1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      if (param_2 <= iVar3) goto LAB_0004b290;\n    }\n    if (iVar2 < *(int *)(param_1 + 0x14)) {\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }\n    iVar2 = iVar2 + -1;\n    uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2);\n    iVar3 = FUN_00047040(uVar4);\n    safefree(uVar4);\n    iVar13 = *(int *)(param_1 + 0x14);\n    uVar4 = *(undefined4 *)(param_1 + 8);\n    *(undefined4 *)(iVar3 + 0xc) = 0;\n    *(int *)(param_1 + 0x14) = iVar13 + -1;\n    addpos234(uVar4,iVar3,0);\n    *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1;\n    *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1;\n    *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1;\n    iVar3 = *(int *)(param_1 + 0x128) + 1;\n    *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1;\n    *(int *)(param_1 + 0x128) = iVar3;\n  }" ({ "{") (while_statement "while (*(int *)(param_1 + 0x14) < 1) {\n      uVar4 = FUN_000444dc(param_1,uVar11,0);\n      uVar14 = *(undefined4 *)(param_1 + 8);\n      uVar5 = count234(uVar14);\n      addpos234(uVar14,uVar4,uVar5);\n      iVar3 = *(int *)(param_1 + 0x128) + 1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      if (param_2 <= iVar3) goto LAB_0004b290;\n    }" (while "while") (parenthesized_expression "(*(int *)(param_1 + 0x14) < 1)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) < 1" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      uVar4 = FUN_000444dc(param_1,uVar11,0);\n      uVar14 = *(undefined4 *)(param_1 + 8);\n      uVar5 = count234(uVar14);\n      addpos234(uVar14,uVar4,uVar5);\n      iVar3 = *(int *)(param_1 + 0x128) + 1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      if (param_2 <= iVar3) goto LAB_0004b290;\n    }" ({ "{") (expression_statement "uVar4 = FUN_000444dc(param_1,uVar11,0);" (assignment_expression "uVar4 = FUN_000444dc(param_1,uVar11,0)" (identifier "uVar4") (= "=") (call_expression "FUN_000444dc(param_1,uVar11,0)" (identifier "FUN_000444dc") (argument_list "(param_1,uVar11,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar11") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "uVar14 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar14 = *(undefined4 *)(param_1 + 8)" (identifier "uVar14") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "uVar5 = count234(uVar14);" (assignment_expression "uVar5 = count234(uVar14)" (identifier "uVar5") (= "=") (call_expression "count234(uVar14)" (identifier "count234") (argument_list "(uVar14)" (( "(") (identifier "uVar14") () ")")))) (; ";")) (expression_statement "addpos234(uVar14,uVar4,uVar5);" (call_expression "addpos234(uVar14,uVar4,uVar5)" (identifier "addpos234") (argument_list "(uVar14,uVar4,uVar5)" (( "(") (identifier "uVar14") (, ",") (identifier "uVar4") (, ",") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 0x128) + 1;" (assignment_expression "iVar3 = *(int *)(param_1 + 0x128) + 1" (identifier "iVar3") (= "=") (binary_expression "*(int *)(param_1 + 0x128) + 1" (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x128) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x128) = iVar3" (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (param_2 <= iVar3) goto LAB_0004b290;" (if "if") (parenthesized_expression "(param_2 <= iVar3)" (( "(") (binary_expression "param_2 <= iVar3" (identifier "param_2") (<= "<=") (identifier "iVar3")) () ")")) (goto_statement "goto LAB_0004b290;" (goto "goto") (statement_identifier "LAB_0004b290") (; ";"))) (} "}"))) (if_statement "if (iVar2 < *(int *)(param_1 + 0x14)) {\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }" (if "if") (parenthesized_expression "(iVar2 < *(int *)(param_1 + 0x14))" (( "(") (binary_expression "iVar2 < *(int *)(param_1 + 0x14)" (identifier "iVar2") (< "<") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n      (*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n      return;\n    }" ({ "{") (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000b5a40" (* "*") (cast_expression "(code *)PTR___assert_fail_000b5a40" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000b5a40"))) () ")")) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,\n                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (( "(") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x5b44")) (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x5de0")) (, ",") (number_literal "0x70b") (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x5260")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2);" (assignment_expression "uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2)" (identifier "uVar4") (= "=") (call_expression "delpos234(*(undefined4 *)(param_1 + 4),iVar2)" (identifier "delpos234") (argument_list "(*(undefined4 *)(param_1 + 4),iVar2)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "iVar3 = FUN_00047040(uVar4);" (assignment_expression "iVar3 = FUN_00047040(uVar4)" (identifier "iVar3") (= "=") (call_expression "FUN_00047040(uVar4)" (identifier "FUN_00047040") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" (identifier "safefree") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "iVar13 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar13 = *(int *)(param_1 + 0x14)" (identifier "iVar13") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 8)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(param_1 + 0x14) = iVar13 + -1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar13 + -1" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "iVar13 + -1" (identifier "iVar13") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "addpos234(uVar4,iVar3,0);" (call_expression "addpos234(uVar4,iVar3,0)" (identifier "addpos234") (argument_list "(uVar4,iVar3,0)" (( "(") (identifier "uVar4") (, ",") (identifier "iVar3") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1;" (assignment_expression "*(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1" (pointer_expression "*(int *)(param_1 + 0x74)" (* "*") (cast_expression "(int *)(param_1 + 0x74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x74) + 1" (pointer_expression "*(int *)(param_1 + 0x74)" (* "*") (cast_expression "(int *)(param_1 + 0x74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1;" (assignment_expression "*(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1" (pointer_expression "*(int *)(param_1 + 0x108)" (* "*") (cast_expression "(int *)(param_1 + 0x108)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x108)" (( "(") (binary_expression "param_1 + 0x108" (identifier "param_1") (+ "+") (number_literal "0x108")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x108) + 1" (pointer_expression "*(int *)(param_1 + 0x108)" (* "*") (cast_expression "(int *)(param_1 + 0x108)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x108)" (( "(") (binary_expression "param_1 + 0x108" (identifier "param_1") (+ "+") (number_literal "0x108")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1;" (assignment_expression "*(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1" (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x6c) + 1" (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 0x128) + 1;" (assignment_expression "iVar3 = *(int *)(param_1 + 0x128) + 1" (identifier "iVar3") (= "=") (binary_expression "*(int *)(param_1 + 0x128) + 1" (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1;" (assignment_expression "*(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1" (pointer_expression "*(int *)(param_1 + 0x17c)" (* "*") (cast_expression "(int *)(param_1 + 0x17c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x17c)" (( "(") (binary_expression "param_1 + 0x17c" (identifier "param_1") (+ "+") (number_literal "0x17c")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x17c) + 1" (pointer_expression "*(int *)(param_1 + 0x17c)" (* "*") (cast_expression "(int *)(param_1 + 0x17c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x17c)" (( "(") (binary_expression "param_1 + 0x17c" (identifier "param_1") (+ "+") (number_literal "0x17c")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x128) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x128) = iVar3" (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (labeled_statement "LAB_0004b290:\n  if (param_2 < iVar3) {\n    pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);\n    do {\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    } while (param_2 < iVar3);\n  }" (statement_identifier "LAB_0004b290") (: ":") (if_statement "if (param_2 < iVar3) {\n    pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);\n    do {\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    } while (param_2 < iVar3);\n  }" (if "if") (parenthesized_expression "(param_2 < iVar3)" (( "(") (binary_expression "param_2 < iVar3" (identifier "param_2") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n    pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);\n    do {\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    } while (param_2 < iVar3);\n  }" ({ "{") (expression_statement "pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);" (assignment_expression "pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840)" (identifier "pcVar6") (= "=") (cast_expression "(code *)(PTR_LAB_000b55b4 + 0x6840)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_000b55b4 + 0x6840)" (( "(") (binary_expression "PTR_LAB_000b55b4 + 0x6840" (identifier "PTR_LAB_000b55b4") (+ "+") (number_literal "0x6840")) () ")")))) (; ";")) (do_statement "do {\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    } while (param_2 < iVar3);" (do "do") (compound_statement "{\n      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }\n      iVar13 = iVar2 + 1;\n      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);\n      uVar5 = *(undefined4 *)(param_1 + 4);\n      uVar4 = (*pcVar6)(iVar3);\n      addpos234(uVar5,uVar4,iVar2);\n      if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }\n      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;\n      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;\n      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n      iVar3 = *(int *)(param_1 + 0x128) + -1;\n      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;\n      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;\n      *(int *)(param_1 + 0x128) = iVar3;\n      iVar2 = iVar13;\n    }" ({ "{") (while_statement "while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }" (while "while") (parenthesized_expression "(*(int *)(param_1 + 0x6c) < iVar3 + -1)" (( "(") (binary_expression "*(int *)(param_1 + 0x6c) < iVar3 + -1" (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (< "<") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) () ")")) (compound_statement "{\n        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));\n        if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }\n        iVar3 = *(int *)(param_1 + 0x128) + -1;\n        *(int *)(param_1 + 0x128) = iVar3;\n        if (iVar3 <= param_2) goto LAB_0004b3a0;\n      }" ({ "{") (expression_statement "iVar3 = delpos234(*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar3 = delpos234(*(undefined4 *)(param_1 + 8))" (identifier "iVar3") (= "=") (call_expression "delpos234(*(undefined4 *)(param_1 + 8))" (identifier "delpos234") (argument_list "(*(undefined4 *)(param_1 + 8))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n          FUN_000459d0(iVar3);\n        }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          FUN_000459d0(iVar3);\n        }" ({ "{") (expression_statement "FUN_000459d0(iVar3);" (call_expression "FUN_000459d0(iVar3)" (identifier "FUN_000459d0") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(param_1 + 0x128) + -1;" (assignment_expression "iVar3 = *(int *)(param_1 + 0x128) + -1" (identifier "iVar3") (= "=") (binary_expression "*(int *)(param_1 + 0x128) + -1" (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x128) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x128) = iVar3" (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (iVar3 <= param_2) goto LAB_0004b3a0;" (if "if") (parenthesized_expression "(iVar3 <= param_2)" (( "(") (binary_expression "iVar3 <= param_2" (identifier "iVar3") (<= "<=") (identifier "param_2")) () ")")) (goto_statement "goto LAB_0004b3a0;" (goto "goto") (statement_identifier "LAB_0004b3a0") (; ";"))) (} "}"))) (expression_statement "iVar13 = iVar2 + 1;" (assignment_expression "iVar13 = iVar2 + 1" (identifier "iVar13") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);" (assignment_expression "iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0)" (identifier "iVar3") (= "=") (call_expression "delpos234(*(undefined4 *)(param_1 + 8),0)" (identifier "delpos234") (argument_list "(*(undefined4 *)(param_1 + 8),0)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 4);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 4)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar4 = (*pcVar6)(iVar3);" (assignment_expression "uVar4 = (*pcVar6)(iVar3)" (identifier "uVar4") (= "=") (call_expression "(*pcVar6)(iVar3)" (parenthesized_expression "(*pcVar6)" (( "(") (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "addpos234(uVar5,uVar4,iVar2);" (call_expression "addpos234(uVar5,uVar4,iVar2)" (identifier "addpos234") (argument_list "(uVar5,uVar4,iVar2)" (( "(") (identifier "uVar5") (, ",") (identifier "uVar4") (, ",") (identifier "iVar2") () ")"))) (; ";")) (if_statement "if (iVar3 != 0) {\n        FUN_000459d0(iVar3);\n      }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_000459d0(iVar3);\n      }" ({ "{") (expression_statement "FUN_000459d0(iVar3);" (call_expression "FUN_000459d0(iVar3)" (identifier "FUN_000459d0") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "*(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;" (assignment_expression "*(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1" (pointer_expression "*(int *)(param_1 + 0x74)" (* "*") (cast_expression "(int *)(param_1 + 0x74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x74) + -1" (pointer_expression "*(int *)(param_1 + 0x74)" (* "*") (cast_expression "(int *)(param_1 + 0x74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;" (assignment_expression "*(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1" (pointer_expression "*(int *)(param_1 + 0x108)" (* "*") (cast_expression "(int *)(param_1 + 0x108)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x108)" (( "(") (binary_expression "param_1 + 0x108" (identifier "param_1") (+ "+") (number_literal "0x108")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x108) + -1" (pointer_expression "*(int *)(param_1 + 0x108)" (* "*") (cast_expression "(int *)(param_1 + 0x108)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x108)" (( "(") (binary_expression "param_1 + 0x108" (identifier "param_1") (+ "+") (number_literal "0x108")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;" (assignment_expression "*(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x14) + 1" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 0x128) + -1;" (assignment_expression "iVar3 = *(int *)(param_1 + 0x128) + -1" (identifier "iVar3") (= "=") (binary_expression "*(int *)(param_1 + 0x128) + -1" (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;" (assignment_expression "*(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1" (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x6c) + -1" (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;" (assignment_expression "*(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1" (pointer_expression "*(int *)(param_1 + 0x17c)" (* "*") (cast_expression "(int *)(param_1 + 0x17c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x17c)" (( "(") (binary_expression "param_1 + 0x17c" (identifier "param_1") (+ "+") (number_literal "0x17c")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x17c) + -1" (pointer_expression "*(int *)(param_1 + 0x17c)" (* "*") (cast_expression "(int *)(param_1 + 0x17c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x17c)" (( "(") (binary_expression "param_1 + 0x17c" (identifier "param_1") (+ "+") (number_literal "0x17c")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x128) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x128) = iVar3" (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "iVar2 = iVar13;" (assignment_expression "iVar2 = iVar13" (identifier "iVar2") (= "=") (identifier "iVar13")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 < iVar3)" (( "(") (binary_expression "param_2 < iVar3" (identifier "param_2") (< "<") (identifier "iVar3")) () ")")) (; ";")) (} "}")))) (labeled_statement "LAB_0004b3a0:\n  if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" (statement_identifier "LAB_0004b3a0") (: ":") (if_statement "if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 != iVar3)" (( "(") (binary_expression "param_2 != iVar3" (identifier "param_2") (!= "!=") (identifier "iVar3")) () ")")) (compound_statement "{\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" ({ "{") (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000b5a40" (* "*") (cast_expression "(code *)PTR___assert_fail_000b5a40" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000b5a40"))) () ")")) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (( "(") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x5b28")) (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x5de0")) (, ",") (number_literal "0x730") (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x5260")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))) (expression_statement "iVar3 = count234(*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar3 = count234(*(undefined4 *)(param_1 + 8))" (identifier "iVar3") (= "=") (call_expression "count234(*(undefined4 *)(param_1 + 8))" (identifier "count234") (argument_list "(*(undefined4 *)(param_1 + 8))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (if_statement "if (param_2 != iVar3) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 != iVar3)" (( "(") (binary_expression "param_2 != iVar3" (identifier "param_2") (!= "!=") (identifier "iVar3")) () ")")) (compound_statement "{\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" ({ "{") (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000b5a40" (* "*") (cast_expression "(code *)PTR___assert_fail_000b5a40" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000b5a40"))) () ")")) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (( "(") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x5b10")) (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x5de0")) (, ",") (number_literal "0x731") (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x5260")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (param_4 < iVar2) {\n    do {\n      iVar2 = iVar2 + -1;\n      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);\n      safefree(uVar4);\n    } while (param_4 != iVar2);\n  }" (if "if") (parenthesized_expression "(param_4 < iVar2)" (( "(") (binary_expression "param_4 < iVar2" (identifier "param_4") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n    do {\n      iVar2 = iVar2 + -1;\n      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);\n      safefree(uVar4);\n    } while (param_4 != iVar2);\n  }" ({ "{") (do_statement "do {\n      iVar2 = iVar2 + -1;\n      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);\n      safefree(uVar4);\n    } while (param_4 != iVar2);" (do "do") (compound_statement "{\n      iVar2 = iVar2 + -1;\n      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);\n      safefree(uVar4);\n    }" ({ "{") (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);" (assignment_expression "uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0)" (identifier "uVar4") (= "=") (call_expression "delpos234(*(undefined4 *)(param_1 + 4),0)" (identifier "delpos234") (argument_list "(*(undefined4 *)(param_1 + 4),0)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" (identifier "safefree") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_4 != iVar2)" (( "(") (binary_expression "param_4 != iVar2" (identifier "param_4") (!= "!=") (identifier "iVar2")) () ")")) (; ";")) (} "}"))) (if_statement "if (iVar2 < *(int *)(param_1 + 0x14)) {\n    *(int *)(param_1 + 0x14) = iVar2;\n  }" (if "if") (parenthesized_expression "(iVar2 < *(int *)(param_1 + 0x14))" (( "(") (binary_expression "iVar2 < *(int *)(param_1 + 0x14)" (identifier "iVar2") (< "<") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    *(int *)(param_1 + 0x14) = iVar2;\n  }" ({ "{") (expression_statement "*(int *)(param_1 + 0x14) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar2" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (} "}"))) (expression_statement "iVar2 = count234(*(undefined4 *)(param_1 + 4));" (assignment_expression "iVar2 = count234(*(undefined4 *)(param_1 + 4))" (identifier "iVar2") (= "=") (call_expression "count234(*(undefined4 *)(param_1 + 4))" (identifier "count234") (argument_list "(*(undefined4 *)(param_1 + 4))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (if_statement "if (param_4 < iVar2) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" (if "if") (parenthesized_expression "(param_4 < iVar2)" (( "(") (binary_expression "param_4 < iVar2" (identifier "param_4") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" ({ "{") (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000b5a40" (* "*") (cast_expression "(code *)PTR___assert_fail_000b5a40" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000b5a40"))) () ")")) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (( "(") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x5aec")) (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x5de0")) (, ",") (number_literal "0x73b") (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x5260")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar2 = count234(*(undefined4 *)(param_1 + 4));" (assignment_expression "iVar2 = count234(*(undefined4 *)(param_1 + 4))" (identifier "iVar2") (= "=") (call_expression "count234(*(undefined4 *)(param_1 + 4))" (identifier "count234") (argument_list "(*(undefined4 *)(param_1 + 4))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar2 < *(int *)(param_1 + 0x14)) {\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar2 < *(int *)(param_1 + 0x14))" (( "(") (binary_expression "iVar2 < *(int *)(param_1 + 0x14)" (identifier "iVar2") (< "<") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    (*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);\n    return;\n  }" ({ "{") (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000b5a40" (* "*") (cast_expression "(code *)PTR___assert_fail_000b5a40" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000b5a40"))) () ")")) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,\n               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260)" (( "(") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x5ac0")) (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x5de0")) (, ",") (number_literal "0x73c") (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5260" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x5260")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar7 = (int *)safemalloc(param_2,4);" (assignment_expression "piVar7 = (int *)safemalloc(param_2,4)" (identifier "piVar7") (= "=") (cast_expression "(int *)safemalloc(param_2,4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "safemalloc(param_2,4)" (identifier "safemalloc") (argument_list "(param_2,4)" (( "(") (identifier "param_2") (, ",") (number_literal "4") () ")"))))) (; ";")) (expression_statement "piVar15 = piVar7;" (assignment_expression "piVar15 = piVar7" (identifier "piVar15") (= "=") (identifier "piVar7")) (; ";")) (do_statement "do {\n    iVar2 = FUN_000444dc(param_1,uVar11,0);\n    *piVar15 = iVar2;\n    iVar2 = *(int *)(iVar2 + 0x14);\n    iVar3 = uVar11 * 0xc + iVar2;\n    do {\n      *(undefined4 *)(iVar2 + 4) = 0x3ffff;\n      iVar2 = iVar2 + 0xc;\n    } while (iVar3 != iVar2);\n    piVar15 = piVar15 + 1;\n  } while (piVar7 + param_2 != piVar15);" (do "do") (compound_statement "{\n    iVar2 = FUN_000444dc(param_1,uVar11,0);\n    *piVar15 = iVar2;\n    iVar2 = *(int *)(iVar2 + 0x14);\n    iVar3 = uVar11 * 0xc + iVar2;\n    do {\n      *(undefined4 *)(iVar2 + 4) = 0x3ffff;\n      iVar2 = iVar2 + 0xc;\n    } while (iVar3 != iVar2);\n    piVar15 = piVar15 + 1;\n  }" ({ "{") (expression_statement "iVar2 = FUN_000444dc(param_1,uVar11,0);" (assignment_expression "iVar2 = FUN_000444dc(param_1,uVar11,0)" (identifier "iVar2") (= "=") (call_expression "FUN_000444dc(param_1,uVar11,0)" (identifier "FUN_000444dc") (argument_list "(param_1,uVar11,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar11") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "*piVar15 = iVar2;" (assignment_expression "*piVar15 = iVar2" (pointer_expression "*piVar15" (* "*") (identifier "piVar15")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar2 = *(int *)(iVar2 + 0x14);" (assignment_expression "iVar2 = *(int *)(iVar2 + 0x14)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar2 + 0x14)" (* "*") (cast_expression "(int *)(iVar2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar3 = uVar11 * 0xc + iVar2;" (assignment_expression "iVar3 = uVar11 * 0xc + iVar2" (identifier "iVar3") (= "=") (binary_expression "uVar11 * 0xc + iVar2" (binary_expression "uVar11 * 0xc" (identifier "uVar11") (* "*") (number_literal "0xc")) (+ "+") (identifier "iVar2"))) (; ";")) (do_statement "do {\n      *(undefined4 *)(iVar2 + 4) = 0x3ffff;\n      iVar2 = iVar2 + 0xc;\n    } while (iVar3 != iVar2);" (do "do") (compound_statement "{\n      *(undefined4 *)(iVar2 + 4) = 0x3ffff;\n      iVar2 = iVar2 + 0xc;\n    }" ({ "{") (expression_statement "*(undefined4 *)(iVar2 + 4) = 0x3ffff;" (assignment_expression "*(undefined4 *)(iVar2 + 4) = 0x3ffff" (pointer_expression "*(undefined4 *)(iVar2 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0x3ffff")) (; ";")) (expression_statement "iVar2 = iVar2 + 0xc;" (assignment_expression "iVar2 = iVar2 + 0xc" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 != iVar2)" (( "(") (binary_expression "iVar3 != iVar2" (identifier "iVar3") (!= "!=") (identifier "iVar2")) () ")")) (; ";")) (expression_statement "piVar15 = piVar15 + 1;" (assignment_expression "piVar15 = piVar15 + 1" (identifier "piVar15") (= "=") (binary_expression "piVar15 + 1" (identifier "piVar15") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar7 + param_2 != piVar15)" (( "(") (binary_expression "piVar7 + param_2 != piVar15" (binary_expression "piVar7 + param_2" (identifier "piVar7") (+ "+") (identifier "param_2")) (!= "!=") (identifier "piVar15")) () ")")) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x18)" (identifier "iVar2") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if ((iVar2 != 0) && (0 < iVar1)) {\n    iVar13 = 0;\n    iVar3 = 0;\n    do {\n      if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }\n      iVar13 = iVar13 + 1;\n      iVar3 = iVar13 * 4;\n    } while (iVar1 != iVar13);\n  }" (if "if") (parenthesized_expression "((iVar2 != 0) && (0 < iVar1))" (( "(") (binary_expression "(iVar2 != 0) && (0 < iVar1)" (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(0 < iVar1)" (( "(") (binary_expression "0 < iVar1" (number_literal "0") (< "<") (identifier "iVar1")) () ")"))) () ")")) (compound_statement "{\n    iVar13 = 0;\n    iVar3 = 0;\n    do {\n      if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }\n      iVar13 = iVar13 + 1;\n      iVar3 = iVar13 * 4;\n    } while (iVar1 != iVar13);\n  }" ({ "{") (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" (identifier "iVar13") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }\n      iVar13 = iVar13 + 1;\n      iVar3 = iVar13 * 4;\n    } while (iVar1 != iVar13);" (do "do") (compound_statement "{\n      if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }\n      iVar13 = iVar13 + 1;\n      iVar3 = iVar13 * 4;\n    }" ({ "{") (if_statement "if (*(int *)(iVar2 + iVar3) != 0) {\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + iVar3) != 0)" (( "(") (binary_expression "*(int *)(iVar2 + iVar3) != 0" (pointer_expression "*(int *)(iVar2 + iVar3)" (* "*") (cast_expression "(int *)(iVar2 + iVar3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar3)" (( "(") (binary_expression "iVar2 + iVar3" (identifier "iVar2") (+ "+") (identifier "iVar3")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_000459d0();\n        iVar2 = *(int *)(param_1 + 0x18);\n      }" ({ "{") (expression_statement "FUN_000459d0();" (call_expression "FUN_000459d0()" (identifier "FUN_000459d0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x18)" (identifier "iVar2") (= "=") (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")) () ")"))))) (; ";")) (} "}"))) (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" (identifier "iVar13") (= "=") (binary_expression "iVar13 + 1" (identifier "iVar13") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = iVar13 * 4;" (assignment_expression "iVar3 = iVar13 * 4" (identifier "iVar3") (= "=") (binary_expression "iVar13 * 4" (identifier "iVar13") (* "*") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 != iVar13)" (( "(") (binary_expression "iVar1 != iVar13" (identifier "iVar1") (!= "!=") (identifier "iVar13")) () ")")) (; ";")) (} "}"))) (expression_statement "safefree(iVar2);" (call_expression "safefree(iVar2)" (identifier "safefree") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x20) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*(int **)(param_1 + 0x18) = piVar7;" (assignment_expression "*(int **)(param_1 + 0x18) = piVar7" (pointer_expression "*(int **)(param_1 + 0x18)" (* "*") (cast_expression "(int **)(param_1 + 0x18)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "piVar7")) (; ";")) (expression_statement "uVar4 = newtree234(0);" (assignment_expression "uVar4 = newtree234(0)" (identifier "uVar4") (= "=") (call_expression "newtree234(0)" (identifier "newtree234") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    uVar5 = FUN_000444dc(param_1,uVar11,1);\n    iVar2 = iVar1 + 1;\n    addpos234(uVar4,uVar5,iVar1);\n    iVar1 = iVar2;\n  } while (param_2 != iVar2);" (do "do") (compound_statement "{\n    uVar5 = FUN_000444dc(param_1,uVar11,1);\n    iVar2 = iVar1 + 1;\n    addpos234(uVar4,uVar5,iVar1);\n    iVar1 = iVar2;\n  }" ({ "{") (expression_statement "uVar5 = FUN_000444dc(param_1,uVar11,1);" (assignment_expression "uVar5 = FUN_000444dc(param_1,uVar11,1)" (identifier "uVar5") (= "=") (call_expression "FUN_000444dc(param_1,uVar11,1)" (identifier "FUN_000444dc") (argument_list "(param_1,uVar11,1)" (( "(") (identifier "param_1") (, ",") (identifier "uVar11") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "iVar2 = iVar1 + 1;" (assignment_expression "iVar2 = iVar1 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "addpos234(uVar4,uVar5,iVar1);" (call_expression "addpos234(uVar4,uVar5,iVar1)" (identifier "addpos234") (argument_list "(uVar4,uVar5,iVar1)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar5") (, ",") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "iVar1 = iVar2;" (assignment_expression "iVar1 = iVar2" (identifier "iVar1") (= "=") (identifier "iVar2")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != iVar2)" (( "(") (binary_expression "param_2 != iVar2" (identifier "param_2") (!= "!=") (identifier "iVar2")) () ")")) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xc)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (iVar1 != 0) {\n    while (iVar1 = delpos234(iVar1,0), iVar1 != 0) {\n      FUN_000459d0(iVar1);\n      iVar1 = *(int *)(param_1 + 0xc);\n    }\n    freetree234(*(undefined4 *)(param_1 + 0xc));\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    while (iVar1 = delpos234(iVar1,0), iVar1 != 0) {\n      FUN_000459d0(iVar1);\n      iVar1 = *(int *)(param_1 + 0xc);\n    }\n    freetree234(*(undefined4 *)(param_1 + 0xc));\n  }" ({ "{") (while_statement "while (iVar1 = delpos234(iVar1,0), iVar1 != 0) {\n      FUN_000459d0(iVar1);\n      iVar1 = *(int *)(param_1 + 0xc);\n    }" (while "while") (parenthesized_expression "(iVar1 = delpos234(iVar1,0), iVar1 != 0)" (( "(") (comma_expression "iVar1 = delpos234(iVar1,0), iVar1 != 0" (assignment_expression "iVar1 = delpos234(iVar1,0)" (identifier "iVar1") (= "=") (call_expression "delpos234(iVar1,0)" (identifier "delpos234") (argument_list "(iVar1,0)" (( "(") (identifier "iVar1") (, ",") (number_literal "0") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n      FUN_000459d0(iVar1);\n      iVar1 = *(int *)(param_1 + 0xc);\n    }" ({ "{") (expression_statement "FUN_000459d0(iVar1);" (call_expression "FUN_000459d0(iVar1)" (identifier "FUN_000459d0") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xc)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}"))) (expression_statement "freetree234(*(undefined4 *)(param_1 + 0xc));" (call_expression "freetree234(*(undefined4 *)(param_1 + 0xc))" (identifier "freetree234") (argument_list "(*(undefined4 *)(param_1 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0xc) = uVar4;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = uVar4" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x1a8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1a8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1a8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1a8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1a8)" (( "(") (binary_expression "param_1 + 0x1a8" (identifier "param_1") (+ "+") (number_literal "0x1a8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = saferealloc(*(undefined4 *)(param_1 + 0xe40),uVar11,1);" (assignment_expression "iVar1 = saferealloc(*(undefined4 *)(param_1 + 0xe40),uVar11,1)" (identifier "iVar1") (= "=") (call_expression "saferealloc(*(undefined4 *)(param_1 + 0xe40),uVar11,1)" (identifier "saferealloc") (argument_list "(*(undefined4 *)(param_1 + 0xe40),uVar11,1)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xe40)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xe40)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe40)" (( "(") (binary_expression "param_1 + 0xe40" (identifier "param_1") (+ "+") (number_literal "0xe40")) () ")")))) (, ",") (identifier "uVar11") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "uVar9 = *(uint *)(param_1 + 300);" (assignment_expression "uVar9 = *(uint *)(param_1 + 300)" (identifier "uVar9") (= "=") (pointer_expression "*(uint *)(param_1 + 300)" (* "*") (cast_expression "(uint *)(param_1 + 300)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 300)" (( "(") (binary_expression "param_1 + 300" (identifier "param_1") (+ "+") (number_literal "300")) () ")"))))) (; ";")) (if_statement "if ((int)uVar9 < 0) {\n    uVar9 = 0;\n  }" (if "if") (parenthesized_expression "((int)uVar9 < 0)" (( "(") (binary_expression "(int)uVar9 < 0" (cast_expression "(int)uVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar9")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    uVar9 = 0;\n  }" ({ "{") (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "*(int *)(param_1 + 0xe40) = iVar1;" (assignment_expression "*(int *)(param_1 + 0xe40) = iVar1" (pointer_expression "*(int *)(param_1 + 0xe40)" (* "*") (cast_expression "(int *)(param_1 + 0xe40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe40)" (( "(") (binary_expression "param_1 + 0xe40" (identifier "param_1") (+ "+") (number_literal "0xe40")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if ((int)uVar9 < (int)uVar11) {\n    while( true ) {\n      iVar1 = iVar1 + uVar9;\n      uVar10 = uVar9 & 7;\n      uVar9 = uVar9 + 1;\n      *(bool *)iVar1 = uVar10 == 0;\n      if (uVar11 == uVar9) break;\n      iVar1 = *(int *)(param_1 + 0xe40);\n    }\n    iVar1 = *(int *)(param_1 + 0x74);\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x74);\n  }" (if "if") (parenthesized_expression "((int)uVar9 < (int)uVar11)" (( "(") (binary_expression "(int)uVar9 < (int)uVar11" (cast_expression "(int)uVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar9")) (< "<") (cast_expression "(int)uVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar11"))) () ")")) (compound_statement "{\n    while( true ) {\n      iVar1 = iVar1 + uVar9;\n      uVar10 = uVar9 & 7;\n      uVar9 = uVar9 + 1;\n      *(bool *)iVar1 = uVar10 == 0;\n      if (uVar11 == uVar9) break;\n      iVar1 = *(int *)(param_1 + 0xe40);\n    }\n    iVar1 = *(int *)(param_1 + 0x74);\n  }" ({ "{") (while_statement "while( true ) {\n      iVar1 = iVar1 + uVar9;\n      uVar10 = uVar9 & 7;\n      uVar9 = uVar9 + 1;\n      *(bool *)iVar1 = uVar10 == 0;\n      if (uVar11 == uVar9) break;\n      iVar1 = *(int *)(param_1 + 0xe40);\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar1 = iVar1 + uVar9;\n      uVar10 = uVar9 & 7;\n      uVar9 = uVar9 + 1;\n      *(bool *)iVar1 = uVar10 == 0;\n      if (uVar11 == uVar9) break;\n      iVar1 = *(int *)(param_1 + 0xe40);\n    }" ({ "{") (expression_statement "iVar1 = iVar1 + uVar9;" (assignment_expression "iVar1 = iVar1 + uVar9" (identifier "iVar1") (= "=") (binary_expression "iVar1 + uVar9" (identifier "iVar1") (+ "+") (identifier "uVar9"))) (; ";")) (expression_statement "uVar10 = uVar9 & 7;" (assignment_expression "uVar10 = uVar9 & 7" (identifier "uVar10") (= "=") (binary_expression "uVar9 & 7" (identifier "uVar9") (& "&") (number_literal "7"))) (; ";")) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" (identifier "uVar9") (= "=") (binary_expression "uVar9 + 1" (identifier "uVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(bool *)iVar1 = uVar10 == 0;" (assignment_expression "*(bool *)iVar1 = uVar10 == 0" (pointer_expression "*(bool *)iVar1" (* "*") (cast_expression "(bool *)iVar1" (( "(") (type_descriptor "bool *" (primitive_type "bool") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "iVar1"))) (= "=") (binary_expression "uVar10 == 0" (identifier "uVar10") (== "==") (number_literal "0"))) (; ";")) (if_statement "if (uVar11 == uVar9) break;" (if "if") (parenthesized_expression "(uVar11 == uVar9)" (( "(") (binary_expression "uVar11 == uVar9" (identifier "uVar11") (== "==") (identifier "uVar9")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = *(int *)(param_1 + 0xe40);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xe40)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0xe40)" (* "*") (cast_expression "(int *)(param_1 + 0xe40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe40)" (( "(") (binary_expression "param_1 + 0xe40" (identifier "param_1") (+ "+") (number_literal "0xe40")) () ")"))))) (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x74)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x74)" (* "*") (cast_expression "(int *)(param_1 + 0x74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = *(int *)(param_1 + 0x74);\n  }" (else "else") (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x74);\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x74)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x74)" (* "*") (cast_expression "(int *)(param_1 + 0x74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x78);\n    *(undefined4 *)(param_1 + 0x74) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x74) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x78);\n  }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x78);\n    *(undefined4 *)(param_1 + 0x74) = 0;\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x78);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x78)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x78)" (* "*") (cast_expression "(int *)(param_1 + 0x78)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x74) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x74) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x74)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x74)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x74) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x78);\n  }" (else "else") (compound_statement "{\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x74) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x78);\n  }" ({ "{") (if_statement "if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x74) = iVar12;\n    }" (if "if") (parenthesized_expression "(param_2 <= iVar1)" (( "(") (binary_expression "param_2 <= iVar1" (identifier "param_2") (<= "<=") (identifier "iVar1")) () ")")) (compound_statement "{\n      *(int *)(param_1 + 0x74) = iVar12;\n    }" ({ "{") (expression_statement "*(int *)(param_1 + 0x74) = iVar12;" (assignment_expression "*(int *)(param_1 + 0x74) = iVar12" (pointer_expression "*(int *)(param_1 + 0x74)" (* "*") (cast_expression "(int *)(param_1 + 0x74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (identifier "iVar12")) (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)(param_1 + 0x78);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x78)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x78)" (* "*") (cast_expression "(int *)(param_1 + 0x78)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x108);\n  }\n  else {\n    *(uint *)(param_1 + 0x78) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x108);\n  }" (if "if") (parenthesized_expression "(iVar1 < (int)uVar11)" (( "(") (binary_expression "iVar1 < (int)uVar11" (identifier "iVar1") (< "<") (cast_expression "(int)uVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar11"))) () ")")) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x108);\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x108);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x108)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x108)" (* "*") (cast_expression "(int *)(param_1 + 0x108)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x108)" (( "(") (binary_expression "param_1 + 0x108" (identifier "param_1") (+ "+") (number_literal "0x108")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    *(uint *)(param_1 + 0x78) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x108);\n  }" (else "else") (compound_statement "{\n    *(uint *)(param_1 + 0x78) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x108);\n  }" ({ "{") (expression_statement "*(uint *)(param_1 + 0x78) = uVar11 - 1;" (assignment_expression "*(uint *)(param_1 + 0x78) = uVar11 - 1" (pointer_expression "*(uint *)(param_1 + 0x78)" (* "*") (cast_expression "(uint *)(param_1 + 0x78)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")")))) (= "=") (binary_expression "uVar11 - 1" (identifier "uVar11") (- "-") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x108);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x108)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x108)" (* "*") (cast_expression "(int *)(param_1 + 0x108)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x108)" (( "(") (binary_expression "param_1 + 0x108" (identifier "param_1") (+ "+") (number_literal "0x108")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x10c);\n    *(undefined4 *)(param_1 + 0x108) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x108) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x10c);\n  }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x10c);\n    *(undefined4 *)(param_1 + 0x108) = 0;\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x10c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x10c)" (* "*") (cast_expression "(int *)(param_1 + 0x10c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10c)" (( "(") (binary_expression "param_1 + 0x10c" (identifier "param_1") (+ "+") (number_literal "0x10c")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x108) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x108) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x108)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x108)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x108)" (( "(") (binary_expression "param_1 + 0x108" (identifier "param_1") (+ "+") (number_literal "0x108")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x108) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x10c);\n  }" (else "else") (compound_statement "{\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x108) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x10c);\n  }" ({ "{") (if_statement "if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x108) = iVar12;\n    }" (if "if") (parenthesized_expression "(param_2 <= iVar1)" (( "(") (binary_expression "param_2 <= iVar1" (identifier "param_2") (<= "<=") (identifier "iVar1")) () ")")) (compound_statement "{\n      *(int *)(param_1 + 0x108) = iVar12;\n    }" ({ "{") (expression_statement "*(int *)(param_1 + 0x108) = iVar12;" (assignment_expression "*(int *)(param_1 + 0x108) = iVar12" (pointer_expression "*(int *)(param_1 + 0x108)" (* "*") (cast_expression "(int *)(param_1 + 0x108)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x108)" (( "(") (binary_expression "param_1 + 0x108" (identifier "param_1") (+ "+") (number_literal "0x108")) () ")")))) (= "=") (identifier "iVar12")) (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)(param_1 + 0x10c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x10c)" (* "*") (cast_expression "(int *)(param_1 + 0x10c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10c)" (( "(") (binary_expression "param_1 + 0x10c" (identifier "param_1") (+ "+") (number_literal "0x10c")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar1 < (int)uVar11) {\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }\n  else {\n    *(uint *)(param_1 + 0x10c) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }" (if "if") (parenthesized_expression "(iVar1 < (int)uVar11)" (( "(") (binary_expression "iVar1 < (int)uVar11" (identifier "iVar1") (< "<") (cast_expression "(int)uVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar11"))) () ")")) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x6c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    *(uint *)(param_1 + 0x10c) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }" (else "else") (compound_statement "{\n    *(uint *)(param_1 + 0x10c) = uVar11 - 1;\n    iVar1 = *(int *)(param_1 + 0x6c);\n  }" ({ "{") (expression_statement "*(uint *)(param_1 + 0x10c) = uVar11 - 1;" (assignment_expression "*(uint *)(param_1 + 0x10c) = uVar11 - 1" (pointer_expression "*(uint *)(param_1 + 0x10c)" (* "*") (cast_expression "(uint *)(param_1 + 0x10c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10c)" (( "(") (binary_expression "param_1 + 0x10c" (identifier "param_1") (+ "+") (number_literal "0x10c")) () ")")))) (= "=") (binary_expression "uVar11 - 1" (identifier "uVar11") (- "-") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x6c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar1 < 0) {\n    iVar1 = *(int *)(param_1 + 0x70);\n    *(undefined4 *)(param_1 + 0x6c) = 0;\n  }\n  else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x70);\n  }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x70);\n    *(undefined4 *)(param_1 + 0x6c) = 0;\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x70);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x70)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x70)" (* "*") (cast_expression "(int *)(param_1 + 0x70)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x6c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x6c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x6c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x70);\n  }" (else "else") (compound_statement "{\n    if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }\n    iVar1 = *(int *)(param_1 + 0x70);\n  }" ({ "{") (if_statement "if (param_2 <= iVar1) {\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }" (if "if") (parenthesized_expression "(param_2 <= iVar1)" (( "(") (binary_expression "param_2 <= iVar1" (identifier "param_2") (<= "<=") (identifier "iVar1")) () ")")) (compound_statement "{\n      *(int *)(param_1 + 0x6c) = iVar12;\n    }" ({ "{") (expression_statement "*(int *)(param_1 + 0x6c) = iVar12;" (assignment_expression "*(int *)(param_1 + 0x6c) = iVar12" (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (= "=") (identifier "iVar12")) (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)(param_1 + 0x70);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x70)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x70)" (* "*") (cast_expression "(int *)(param_1 + 0x70)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")"))))) (; ";")) (} "}")))) (if_statement "if ((int)uVar11 <= iVar1) {\n    *(uint *)(param_1 + 0x70) = uVar11 - 1;\n  }" (if "if") (parenthesized_expression "((int)uVar11 <= iVar1)" (( "(") (binary_expression "(int)uVar11 <= iVar1" (cast_expression "(int)uVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar11")) (<= "<=") (identifier "iVar1")) () ")")) (compound_statement "{\n    *(uint *)(param_1 + 0x70) = uVar11 - 1;\n  }" ({ "{") (expression_statement "*(uint *)(param_1 + 0x70) = uVar11 - 1;" (assignment_expression "*(uint *)(param_1 + 0x70) = uVar11 - 1" (pointer_expression "*(uint *)(param_1 + 0x70)" (* "*") (cast_expression "(uint *)(param_1 + 0x70)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (binary_expression "uVar11 - 1" (identifier "uVar11") (- "-") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*(int *)(param_1 + 0x128) = param_2;" (assignment_expression "*(int *)(param_1 + 0x128) = param_2" (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(uint *)(param_1 + 300) = uVar11;" (assignment_expression "*(uint *)(param_1 + 300) = uVar11" (pointer_expression "*(uint *)(param_1 + 300)" (* "*") (cast_expression "(uint *)(param_1 + 300)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 300)" (( "(") (binary_expression "param_1 + 300" (identifier "param_1") (+ "+") (number_literal "300")) () ")")))) (= "=") (identifier "uVar11")) (; ";")) (expression_statement "*(int *)(param_1 + 0x130) = param_4;" (assignment_expression "*(int *)(param_1 + 0x130) = param_4" (pointer_expression "*(int *)(param_1 + 0x130)" (* "*") (cast_expression "(int *)(param_1 + 0x130)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x130)" (( "(") (binary_expression "param_1 + 0x130" (identifier "param_1") (+ "+") (number_literal "0x130")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x17c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x17c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x17c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x17c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x17c)" (( "(") (binary_expression "param_1 + 0x17c" (identifier "param_1") (+ "+") (number_literal "0x17c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x178) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x178) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x178)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x178)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x178)" (( "(") (binary_expression "param_1 + 0x178" (identifier "param_1") (+ "+") (number_literal "0x178")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x188) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x188) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x188)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x188)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x188)" (( "(") (binary_expression "param_1 + 0x188" (identifier "param_1") (+ "+") (number_literal "0x188")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x8c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x8c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x8c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x8c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x8c)" (( "(") (binary_expression "param_1 + 0x8c" (identifier "param_1") (+ "+") (number_literal "0x8c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "(*pcVar16)(param_1,uVar8,0,0);" (call_expression "(*pcVar16)(param_1,uVar8,0,0)" (parenthesized_expression "(*pcVar16)" (( "(") (pointer_expression "*pcVar16" (* "*") (identifier "pcVar16")) () ")")) (argument_list "(param_1,uVar8,0,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar8") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_00044484(param_1);" (call_expression "FUN_00044484(param_1)" (identifier "FUN_00044484") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "term_update(param_1);" (call_expression "term_update(param_1)" (identifier "term_update") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (*(code **)(param_1 + 0x107c) == (code *)0x0) {\n    return;\n  }" (if "if") (parenthesized_expression "(*(code **)(param_1 + 0x107c) == (code *)0x0)" (( "(") (binary_expression "*(code **)(param_1 + 0x107c) == (code *)0x0" (pointer_expression "*(code **)(param_1 + 0x107c)" (* "*") (cast_expression "(code **)(param_1 + 0x107c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x107c)" (( "(") (binary_expression "param_1 + 0x107c" (identifier "param_1") (+ "+") (number_literal "0x107c")) () ")")))) (== "==") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(**(code **)(param_1 + 0x107c))\n            (*(undefined4 *)(param_1 + 0x1080),*(undefined4 *)(param_1 + 300),\n             *(undefined4 *)(param_1 + 0x128));" (call_expression "(**(code **)(param_1 + 0x107c))\n            (*(undefined4 *)(param_1 + 0x1080),*(undefined4 *)(param_1 + 300),\n             *(undefined4 *)(param_1 + 0x128))" (parenthesized_expression "(**(code **)(param_1 + 0x107c))" (( "(") (pointer_expression "**(code **)(param_1 + 0x107c)" (* "*") (pointer_expression "*(code **)(param_1 + 0x107c)" (* "*") (cast_expression "(code **)(param_1 + 0x107c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x107c)" (( "(") (binary_expression "param_1 + 0x107c" (identifier "param_1") (+ "+") (number_literal "0x107c")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x1080),*(undefined4 *)(param_1 + 300),\n             *(undefined4 *)(param_1 + 0x128))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x1080)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1080)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1080)" (( "(") (binary_expression "param_1 + 0x1080" (identifier "param_1") (+ "+") (number_literal "0x1080")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 300)" (* "*") (cast_expression "(undefined4 *)(param_1 + 300)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 300)" (( "(") (binary_expression "param_1 + 300" (identifier "param_1") (+ "+") (number_literal "300")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x128)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x128)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 *term,int var_1,int var_2,int var_3)

{
  int var_10;
  int var_8;
  type_2 *data;
  type_3 *var_18;
  type_4 *pcVar4;
  void *pvVar5;
  size_t var_17;
  int var_20;
  int var_7;
  int var_21;
  type_5 *ptVar10;
  int *bytes_used;
  
  if (((term->rows == var_1) && (term->cols == var_2)) && (term->savelines == var_3)) {
    return;
  }
  term->selstate = ADDRTYPE_UNSPEC;
  (term->selend).y = 0;
  if (var_1 < 1) {
    var_1 = 1;
  }
  var_21 = 1;
  if (0 < var_2) {
    var_21 = var_2;
  }
  (term->selend).x = 0;
  (term->selstart).y = 0;
  (term->selstart).x = 0;
  var_4(term,0,0,0);
  term->marg_t = 0;
  term->alt_t = 0;
  term->marg_b = var_1 - 1U;
  term->alt_b = var_1 - 1U;
  if (term->rows == -1) {
    ptVar10 = var_5((type_6)0x0);
    term->scrollback = ptVar10;
    ptVar10 = var_5((type_6)0x0);
    term->screen = ptVar10;
    term->tempsblines = 0;
    term->rows = 0;
  }
  var_10 = var_6(term->scrollback);
  var_7 = term->rows;
  var_8 = var_6(term->screen);
  if (var_7 != var_8) {
    (*(type_4 *)PTR___assert_fail_000b5a40)
              (var_9 + -0x5b6c,
               var_9 + -0x5de0,0x706,
               var_9 + -0x5260);
    return;
  }
  var_17 = term->rows;
  while ((int)var_17 < var_1) {
    if (0 < term->tempsblines) {
      if (term->tempsblines <= var_10) {
        bytes_used = (int *)(var_10 + -1);
        data = (type_2 *)var_11(term->scrollback,(int)bytes_used);
        var_12(data,bytes_used);
                    /* WARNING: Subroutine does not return */
        var_13(data);
      }
      (*(type_4 *)PTR___assert_fail_000b5a40)
                (var_9 + -0x5b44,
                 var_9 + -0x5de0,0x70b,
                 var_9 + -0x5260);
      return;
    }
    var_18 = var_14(term,var_21,0);
    ptVar10 = term->screen;
    var_8 = var_6(ptVar10);
    var_15(ptVar10,var_18,var_8);
    var_17 = term->rows + 1;
    term->rows = var_17;
  }
  if (var_1 < (int)var_17) {
    pcVar4 = (type_4 *)(var_16 + 0x6840);
    do {
      while( true ) {
        if ((term->curs).y < (int)(var_17 - 1)) break;
        var_21 = var_10 + 1;
        var_18 = (type_3 *)var_11(term->screen,0);
        ptVar10 = term->scrollback;
        pvVar5 = (void *)(*pcVar4)(var_18);
        var_15(ptVar10,pvVar5,var_10);
        if (var_18 != (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
          var_19(var_18);
        }
        var_20 = term->tempsblines;
        var_7 = (term->curs).y;
        var_10 = term->alt_y;
        (term->savecurs).y = (term->savecurs).y + -1;
        var_8 = term->rows;
        (term->alt_savecurs).y = (term->alt_savecurs).y + -1;
        term->tempsblines = var_20 + 1;
        var_17 = var_8 - 1;
        (term->curs).y = var_7 + -1;
        term->alt_y = var_10 + -1;
        term->rows = var_17;
        var_10 = var_21;
        if ((int)var_17 <= var_1) goto LAB_0004b3a0;
      }
      var_18 = (type_3 *)var_11(term->screen,var_17 - 1);
      if (var_18 != (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
        var_19(var_18);
      }
      var_17 = term->rows - 1;
      term->rows = var_17;
    } while (var_1 < (int)var_17);
  }
LAB_0004b3a0:
  if (var_1 != var_17) {
    (*(type_4 *)PTR___assert_fail_000b5a40)
              (var_9 + -0x5b28,
               var_9 + -0x5de0,0x730,
               var_9 + -0x5260);
    return;
  }
  var_17 = var_6(term->screen);
  if (var_1 != var_17) {
    (*(type_4 *)PTR___assert_fail_000b5a40)
              (var_9 + -0x5b10,
               var_9 + -0x5de0,0x731,
               var_9 + -0x5260);
    return;
  }
  if (var_3 < var_10) {
    pvVar5 = var_11(term->scrollback,0);
                    /* WARNING: Subroutine does not return */
    var_13(pvVar5);
  }
  if (var_10 < term->tempsblines) {
    term->tempsblines = var_10;
  }
  var_21 = var_6(term->scrollback);
  if (var_21 <= var_3) {
    var_21 = var_6(term->scrollback);
    if (term->tempsblines <= var_21) {
      term->disptop = 0;
                    /* WARNING: Subroutine does not return */
      var_22(var_1,4);
    }
    (*(type_4 *)PTR___assert_fail_000b5a40)
              (var_9 + -0x5ac0,
               var_9 + -0x5de0,0x73c,
               var_9 + -0x5260);
    return;
  }
  (*(type_4 *)PTR___assert_fail_000b5a40)
            (var_9 + -0x5aec,
             var_9 + -0x5de0,0x73b,
             var_9 + -0x5260);
  return;
}


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

/* WARNING: Type propagation algorithm not settling */

void MASKED(int param_1,int param_2,uint param_3,int param_4)

{
  int iVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  code *pcVar6;
  int *piVar7;
  undefined4 uVar8;
  uint uVar9;
  uint uVar10;
  uint uVar11;
  int iVar12;
  int iVar13;
  undefined4 uVar14;
  int *piVar15;
  code *pcVar16;
  
  iVar1 = *(int *)(param_1 + 0x128);
  uVar8 = *(undefined4 *)(param_1 + 0x1a4);
  if (((iVar1 == param_2) && (*(uint *)(param_1 + 300) == param_3)) &&
     (*(int *)(param_1 + 0x130) == param_4)) {
    return;
  }
  *(undefined4 *)(param_1 + 0xe48) = 0;
  *(undefined4 *)(param_1 + 0xe5c) = 0;
  if (param_2 < 1) {
    param_2 = 1;
  }
  uVar11 = 1;
  if (0 < (int)param_3) {
    uVar11 = param_3;
  }
  pcVar16 = (code *)(PTR_LAB_000b5664 + -0x5830);
  *(undefined4 *)(param_1 + 0xe60) = 0;
  iVar12 = param_2 + -1;
  *(undefined4 *)(param_1 + 0xe54) = 0;
  *(undefined4 *)(param_1 + 0xe58) = 0;
  FUN_0004a7d0(param_1,0,0,0);
  *(undefined4 *)(param_1 + 0x7c) = 0;
  *(undefined4 *)(param_1 + 0x19c) = 0;
  *(int *)(param_1 + 0x80) = iVar12;
  *(int *)(param_1 + 0x1a0) = iVar12;
  if (*(int *)(param_1 + 0x128) == -1) {
    uVar4 = newtree234(0);
    *(undefined4 *)(param_1 + 4) = uVar4;
    uVar4 = newtree234(0);
    *(undefined4 *)(param_1 + 8) = uVar4;
    *(undefined4 *)(param_1 + 0x14) = 0;
    *(undefined4 *)(param_1 + 0x128) = 0;
  }
  iVar2 = count234(*(undefined4 *)(param_1 + 4));
  iVar13 = *(int *)(param_1 + 0x128);
  iVar3 = count234(*(undefined4 *)(param_1 + 8));
  if (iVar13 != iVar3) {
    (*(code *)PTR___assert_fail_000b5a40)
              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b6c,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x706,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);
    return;
  }
  iVar3 = *(int *)(param_1 + 0x128);
  while (iVar3 < param_2) {
    while (*(int *)(param_1 + 0x14) < 1) {
      uVar4 = FUN_000444dc(param_1,uVar11,0);
      uVar14 = *(undefined4 *)(param_1 + 8);
      uVar5 = count234(uVar14);
      addpos234(uVar14,uVar4,uVar5);
      iVar3 = *(int *)(param_1 + 0x128) + 1;
      *(int *)(param_1 + 0x128) = iVar3;
      if (param_2 <= iVar3) goto LAB_0004b290;
    }
    if (iVar2 < *(int *)(param_1 + 0x14)) {
      (*(code *)PTR___assert_fail_000b5a40)
                (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b44,
                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x70b,
                 PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);
      return;
    }
    iVar2 = iVar2 + -1;
    uVar4 = delpos234(*(undefined4 *)(param_1 + 4),iVar2);
    iVar3 = FUN_00047040(uVar4);
    safefree(uVar4);
    iVar13 = *(int *)(param_1 + 0x14);
    uVar4 = *(undefined4 *)(param_1 + 8);
    *(undefined4 *)(iVar3 + 0xc) = 0;
    *(int *)(param_1 + 0x14) = iVar13 + -1;
    addpos234(uVar4,iVar3,0);
    *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + 1;
    *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + 1;
    *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + 1;
    iVar3 = *(int *)(param_1 + 0x128) + 1;
    *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + 1;
    *(int *)(param_1 + 0x128) = iVar3;
  }
LAB_0004b290:
  if (param_2 < iVar3) {
    pcVar6 = (code *)(PTR_LAB_000b55b4 + 0x6840);
    do {
      while (*(int *)(param_1 + 0x6c) < iVar3 + -1) {
        iVar3 = delpos234(*(undefined4 *)(param_1 + 8));
        if (iVar3 != 0) {
          FUN_000459d0(iVar3);
        }
        iVar3 = *(int *)(param_1 + 0x128) + -1;
        *(int *)(param_1 + 0x128) = iVar3;
        if (iVar3 <= param_2) goto LAB_0004b3a0;
      }
      iVar13 = iVar2 + 1;
      iVar3 = delpos234(*(undefined4 *)(param_1 + 8),0);
      uVar5 = *(undefined4 *)(param_1 + 4);
      uVar4 = (*pcVar6)(iVar3);
      addpos234(uVar5,uVar4,iVar2);
      if (iVar3 != 0) {
        FUN_000459d0(iVar3);
      }
      *(int *)(param_1 + 0x74) = *(int *)(param_1 + 0x74) + -1;
      *(int *)(param_1 + 0x108) = *(int *)(param_1 + 0x108) + -1;
      *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;
      iVar3 = *(int *)(param_1 + 0x128) + -1;
      *(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;
      *(int *)(param_1 + 0x17c) = *(int *)(param_1 + 0x17c) + -1;
      *(int *)(param_1 + 0x128) = iVar3;
      iVar2 = iVar13;
    } while (param_2 < iVar3);
  }
LAB_0004b3a0:
  if (param_2 != iVar3) {
    (*(code *)PTR___assert_fail_000b5a40)
              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b28,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x730,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);
    return;
  }
  iVar3 = count234(*(undefined4 *)(param_1 + 8));
  if (param_2 != iVar3) {
    (*(code *)PTR___assert_fail_000b5a40)
              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5b10,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x731,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);
    return;
  }
  if (param_4 < iVar2) {
    do {
      iVar2 = iVar2 + -1;
      uVar4 = delpos234(*(undefined4 *)(param_1 + 4),0);
      safefree(uVar4);
    } while (param_4 != iVar2);
  }
  if (iVar2 < *(int *)(param_1 + 0x14)) {
    *(int *)(param_1 + 0x14) = iVar2;
  }
  iVar2 = count234(*(undefined4 *)(param_1 + 4));
  if (param_4 < iVar2) {
    (*(code *)PTR___assert_fail_000b5a40)
              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5aec,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73b,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);
    return;
  }
  iVar2 = count234(*(undefined4 *)(param_1 + 4));
  if (iVar2 < *(int *)(param_1 + 0x14)) {
    (*(code *)PTR___assert_fail_000b5a40)
              (PTR_s_XXXXXXXXXX___________000b5214 + -0x5ac0,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5de0,0x73c,
               PTR_s_XXXXXXXXXX___________000b5214 + -0x5260);
    return;
  }
  *(undefined4 *)(param_1 + 0x10) = 0;
  piVar7 = (int *)safemalloc(param_2,4);
  piVar15 = piVar7;
  do {
    iVar2 = FUN_000444dc(param_1,uVar11,0);
    *piVar15 = iVar2;
    iVar2 = *(int *)(iVar2 + 0x14);
    iVar3 = uVar11 * 0xc + iVar2;
    do {
      *(undefined4 *)(iVar2 + 4) = 0x3ffff;
      iVar2 = iVar2 + 0xc;
    } while (iVar3 != iVar2);
    piVar15 = piVar15 + 1;
  } while (piVar7 + param_2 != piVar15);
  iVar2 = *(int *)(param_1 + 0x18);
  if ((iVar2 != 0) && (0 < iVar1)) {
    iVar13 = 0;
    iVar3 = 0;
    do {
      if (*(int *)(iVar2 + iVar3) != 0) {
        FUN_000459d0();
        iVar2 = *(int *)(param_1 + 0x18);
      }
      iVar13 = iVar13 + 1;
      iVar3 = iVar13 * 4;
    } while (iVar1 != iVar13);
  }
  safefree(iVar2);
  *(undefined4 *)(param_1 + 0x20) = 0xffffffff;
  *(undefined4 *)(param_1 + 0x1c) = 0xffffffff;
  *(int **)(param_1 + 0x18) = piVar7;
  uVar4 = newtree234(0);
  iVar1 = 0;
  do {
    uVar5 = FUN_000444dc(param_1,uVar11,1);
    iVar2 = iVar1 + 1;
    addpos234(uVar4,uVar5,iVar1);
    iVar1 = iVar2;
  } while (param_2 != iVar2);
  iVar1 = *(int *)(param_1 + 0xc);
  if (iVar1 != 0) {
    while (iVar1 = delpos234(iVar1,0), iVar1 != 0) {
      FUN_000459d0(iVar1);
      iVar1 = *(int *)(param_1 + 0xc);
    }
    freetree234(*(undefined4 *)(param_1 + 0xc));
  }
  *(undefined4 *)(param_1 + 0xc) = uVar4;
  *(undefined4 *)(param_1 + 0x1a8) = 0;
  iVar1 = saferealloc(*(undefined4 *)(param_1 + 0xe40),uVar11,1);
  uVar9 = *(uint *)(param_1 + 300);
  if ((int)uVar9 < 0) {
    uVar9 = 0;
  }
  *(int *)(param_1 + 0xe40) = iVar1;
  if ((int)uVar9 < (int)uVar11) {
    while( true ) {
      iVar1 = iVar1 + uVar9;
      uVar10 = uVar9 & 7;
      uVar9 = uVar9 + 1;
      *(bool *)iVar1 = uVar10 == 0;
      if (uVar11 == uVar9) break;
      iVar1 = *(int *)(param_1 + 0xe40);
    }
    iVar1 = *(int *)(param_1 + 0x74);
  }
  else {
    iVar1 = *(int *)(param_1 + 0x74);
  }
  if (iVar1 < 0) {
    iVar1 = *(int *)(param_1 + 0x78);
    *(undefined4 *)(param_1 + 0x74) = 0;
  }
  else {
    if (param_2 <= iVar1) {
      *(int *)(param_1 + 0x74) = iVar12;
    }
    iVar1 = *(int *)(param_1 + 0x78);
  }
  if (iVar1 < (int)uVar11) {
    iVar1 = *(int *)(param_1 + 0x108);
  }
  else {
    *(uint *)(param_1 + 0x78) = uVar11 - 1;
    iVar1 = *(int *)(param_1 + 0x108);
  }
  if (iVar1 < 0) {
    iVar1 = *(int *)(param_1 + 0x10c);
    *(undefined4 *)(param_1 + 0x108) = 0;
  }
  else {
    if (param_2 <= iVar1) {
      *(int *)(param_1 + 0x108) = iVar12;
    }
    iVar1 = *(int *)(param_1 + 0x10c);
  }
  if (iVar1 < (int)uVar11) {
    iVar1 = *(int *)(param_1 + 0x6c);
  }
  else {
    *(uint *)(param_1 + 0x10c) = uVar11 - 1;
    iVar1 = *(int *)(param_1 + 0x6c);
  }
  if (iVar1 < 0) {
    iVar1 = *(int *)(param_1 + 0x70);
    *(undefined4 *)(param_1 + 0x6c) = 0;
  }
  else {
    if (param_2 <= iVar1) {
      *(int *)(param_1 + 0x6c) = iVar12;
    }
    iVar1 = *(int *)(param_1 + 0x70);
  }
  if ((int)uVar11 <= iVar1) {
    *(uint *)(param_1 + 0x70) = uVar11 - 1;
  }
  *(int *)(param_1 + 0x128) = param_2;
  *(uint *)(param_1 + 300) = uVar11;
  *(int *)(param_1 + 0x130) = param_4;
  *(undefined4 *)(param_1 + 0x17c) = 0;
  *(undefined4 *)(param_1 + 0x178) = 0;
  *(undefined4 *)(param_1 + 0x188) = 0;
  *(undefined4 *)(param_1 + 0x8c) = 0;
  (*pcVar16)(param_1,uVar8,0,0);
  FUN_00044484(param_1);
  term_update(param_1);
  if (*(code **)(param_1 + 0x107c) == (code *)0x0) {
    return;
  }
                    /* WARNING: Could not recover jumptable at 0x0004b734. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(param_1 + 0x107c))
            (*(undefined4 *)(param_1 + 0x1080),*(undefined4 *)(param_1 + 300),
             *(undefined4 *)(param_1 + 0x128));
  return;
}

