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

void log_packet(void *handle,int direction,int type,char *texttype,void *data,int len,int n_blanks,
               logblank_t *blanks,ulong *seq,uint downstream_id,char *additional_log_text)

{
  bool bVar1;
  undefined *puVar2;
  tm *ptVar3;
  undefined *puVar4;
  code *pcVar5;
  undefined *puVar6;
  int *piVar7;
  undefined4 uVar8;
  int *piVar9;
  undefined4 *puVar10;
  Conf *conf;
  logblank_t *plVar11;
  tm *ptVar12;
  logblank_t *plVar13;
  logblank_t *plVar14;
  int iVar15;
  undefined *puVar16;
  undefined *puVar17;
  uint uVar18;
  byte bVar19;
  int iVar20;
  int iVar21;
  uint uVar22;
  int iVar23;
  code *local_1b0;
  int aiStack_190 [8];
  int aiStack_170 [4];
  tm tm;
  char smalldata [5];
  char dumpdata [80];
  
  puVar2 = PTR___stack_chk_guard_000adcd4;
  plVar13 = *(logblank_t **)PTR___stack_chk_guard_000adcd4;
  if (*(int *)((int)handle + 0x20) == 4) {
    if (texttype != (char *)0x0) goto LAB_00020b58;
    (*(code *)PTR_ltime_000ad4d4)(aiStack_190);
    piVar7 = aiStack_190;
    ptVar3 = &tm;
    do {
      ptVar12 = ptVar3;
      piVar9 = piVar7;
      piVar7 = piVar9 + 4;
      iVar21 = piVar9[1];
      iVar20 = piVar9[2];
      iVar23 = piVar9[3];
      ptVar12->tm_sec = *piVar9;
      ptVar12->tm_min = iVar21;
      ptVar12->tm_hour = iVar20;
      ptVar12->tm_mday = iVar23;
      ptVar3 = (tm *)&ptVar12->tm_mon;
    } while (piVar7 != aiStack_170);
    iVar20 = piVar9[5];
    iVar23 = piVar9[6];
    ptVar12->tm_mon = *piVar7;
    ptVar12->tm_year = iVar20;
    ptVar12->tm_wday = iVar23;
    (*(code *)PTR_strftime_000adc40)(dumpdata,0x18,PTR_DAT_000ad2c8 + -0x5790);
    if (direction == 0) {
      puVar16 = PTR_DAT_000ad2c8 + -0x57f8;
    }
    else {
      puVar16 = PTR_DAT_000ad2c8 + -0x57ec;
    }
    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);
    direction = (int)(PTR_DAT_000ad2c8 + -0x577c);
    plVar14 = (logblank_t *)handle;
    logprintf((LogContext *)handle,(char *)direction,puVar16,dumpdata);
    if (0 < len) goto LAB_00020bf4;
    iVar23 = *(int *)((int)handle + 0x20);
  }
  else {
    plVar14 = plVar13;
    if ((*(int *)((int)handle + 0x20) != 3) || (texttype == (char *)0x0)) goto LAB_00020d6c;
LAB_00020b58:
    if (direction == 0) {
      puVar16 = PTR_DAT_000ad2c8 + -0x57f8;
    }
    else {
      puVar16 = PTR_DAT_000ad2c8 + -0x57ec;
    }
    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);
    logprintf((LogContext *)handle,PTR_DAT_000ad2c8 + -0x57e0,puVar16);
    if (seq != (ulong *)0x0) {
      (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57d4,*seq);
    }
    (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57c8,type,type,texttype);
    if ((downstream_id != 0) &&
       ((*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b0,downstream_id),
       additional_log_text != (char *)0x0)) {
      (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b8,additional_log_text);
    }
    direction = (int)(PTR_DAT_000ad2c8 + -0x2500);
    plVar14 = (logblank_t *)handle;
    (*local_1b0)();
    if (0 < len) {
LAB_00020bf4:
      puVar16 = PTR_DAT_000ad2c8;
      uVar22 = 0;
      iVar21 = 0;
      iVar20 = 0;
      iVar23 = 0;
      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;
      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);
      puVar6 = PTR_DAT_000ad2d0 + -0x5930;
      bVar1 = 0 < n_blanks;
      do {
        if (bVar1) {
          plVar11 = blanks + iVar23;
          iVar15 = plVar11->offset;
          plVar14 = (logblank_t *)(iVar23 * 0xc + 0xc);
          if (iVar15 + plVar11->len <= (int)uVar22) {
            plVar14 = blanks + iVar23 + 1;
            do {
              plVar11 = plVar14;
              iVar23 = iVar23 + 1;
              if (n_blanks == iVar23) {
                iVar15 = 0;
                iVar23 = n_blanks;
                goto LAB_00020c9c;
              }
              iVar15 = plVar11->offset;
              plVar14 = plVar11 + 1;
            } while (iVar15 + plVar11->len <= (int)uVar22);
          }
          if ((int)uVar22 < iVar15) goto LAB_00020e70;
          iVar15 = plVar11->type;
          if (iVar15 != 2) {
LAB_00020c9c:
            if (iVar20 != 0) goto LAB_00020dac;
            goto joined_r0x00020ddc;
          }
          if (iVar20 == 0 && iVar21 == 0) {
            direction = 1;
            plVar14 = (logblank_t *)dumpdata;
            iVar20 = 1;
            (*(code *)PTR___sprintf_chk_000adaf0)
                      (plVar14,1,0x50,puVar16 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);
          }
          else {
            iVar20 = iVar20 + 1;
            direction = 0;
          }
          iVar15 = iVar21;
          if (((uVar22 + 1 & 0xf) == 0) || (len != uVar22 + 1)) {
            if (iVar21 != 0) goto LAB_00020e90;
            goto LAB_00020d3c;
          }
          if (iVar21 == 0) goto LAB_00020ffc;
LAB_00020e90:
          direction = (int)dumpdata;
          iVar21 = 0;
          *(char *)((int)&((Conf *)(direction + 0x3c))->tree + iVar15 + 1) = '\r';
          dumpdata[iVar15 + 0x3f] = '\0';
          dumpdata[iVar15 + 0x3e] = '\n';
          uVar8 = (*(code *)PTR_strlen_000adc28)(direction);
          plVar14 = (logblank_t *)handle;
          (*pcVar5)(handle,direction,uVar8);
        }
        else {
LAB_00020e70:
          if (iVar20 == 0) {
            if (iVar21 == 0) {
              iVar15 = 0;
              goto LAB_00020de4;
            }
LAB_00020e30:
            bVar19 = *(byte *)((int)data + uVar22);
            iVar20 = (uint)bVar19 << 1;
            (*(code *)PTR___sprintf_chk_000adaf0)(smalldata,1,5,puVar16 + -0x5744,(uint)bVar19);
          }
          else {
            iVar15 = 0;
LAB_00020dac:
            puVar17 = puVar4;
            if (iVar20 != 1) {
              puVar17 = puVar6;
            }
            (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);
joined_r0x00020ddc:
            if (iVar21 == 0) {
LAB_00020de4:
              (*(code *)PTR___sprintf_chk_000adaf0)
                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);
            }
            if (iVar15 != 1) goto LAB_00020e30;
            smalldata[2] = '\0';
            iVar20 = 0xb0;
            bVar19 = 0x58;
            smalldata[0] = 'X';
            smalldata[1] = 'X';
          }
          uVar18 = uVar22 & 0xf;
          iVar21 = uVar18 + 1;
          dumpdata[uVar18 * 3 + 0xc] = smalldata[0];
          dumpdata[uVar18 * 3 + 0xd] = smalldata[1];
          piVar7 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();
          direction = 0x2e;
          plVar14 = (logblank_t *)(uVar22 + 1 & 0xf);
          if ((*(ushort *)(*piVar7 + iVar20) & 0x40) == 0) {
            bVar19 = 0x2e;
          }
          dumpdata[uVar18 + 0x3d] = bVar19;
          iVar15 = iVar21;
          if (plVar14 == (logblank_t *)0x0) {
            iVar20 = 0;
            goto LAB_00020e90;
          }
          iVar20 = 0;
          if (len == uVar22 + 1) goto LAB_00020e90;
        }
LAB_00020d3c:
        uVar22 = uVar22 + 1;
        bVar1 = iVar23 < n_blanks;
      } while ((int)uVar22 < len);
      if (iVar20 != 0) {
LAB_00020ffc:
        if (iVar20 == 1) {
          puVar16 = PTR_DAT_000ad2c8 + -0x22a4;
        }
        else {
          puVar16 = PTR_DAT_000ad2d0 + -0x5930;
        }
        direction = (int)(PTR_DAT_000ad2c8 + -0x5768);
        plVar14 = (logblank_t *)handle;
        (*local_1b0)(handle,direction,iVar20,puVar16);
      }
    }
    iVar23 = *(int *)((int)handle + 0x20);
  }
  if ((0 < iVar23) && (*(int *)((int)handle + 4) == 2)) {
                    /* WARNING: Load size is inaccurate */
    plVar14 = *handle;
    (*(code *)PTR_fflush_000adcf4)();
  }
LAB_00020d6c:
  if (plVar13 == *(logblank_t **)puVar2) {
    return;
  }
  (*(code *)PTR___stack_chk_fail_000adca4)();
  puVar10 = (undefined4 *)safemalloc(1,0x24);
  puVar10[6] = plVar14;
  *puVar10 = 0;
  puVar10[1] = 0;
  conf = conf_copy((Conf *)direction);
  puVar10[7] = conf;
  iVar23 = conf_get_int(conf,0x78);
  puVar10[8] = iVar23;
  puVar10[5] = 0;
  bufchain_init((bufchain *)(puVar10 + 2));
  return;
}



int * log_packet(int *param_1,int *param_2,undefined4 param_3,int param_4,int param_5,uint param_6,
                int param_7,int param_8,undefined4 *param_9,int param_10,int param_11)

{
  bool bVar1;
  undefined *puVar2;
  undefined4 *puVar3;
  undefined *puVar4;
  code *pcVar5;
  undefined *puVar6;
  undefined4 uVar7;
  undefined4 *puVar8;
  undefined4 *puVar9;
  int *piVar10;
  undefined4 *puVar11;
  int *piVar12;
  int iVar13;
  undefined4 uVar14;
  undefined *puVar15;
  undefined4 uVar16;
  undefined *puVar17;
  uint uVar18;
  byte bVar19;
  int iVar20;
  int iVar21;
  uint uVar22;
  int iVar23;
  code *local_1b0;
  undefined4 local_190 [8];
  undefined4 auStack_170 [4];
  undefined4 local_160 [11];
  undefined2 local_134;
  undefined1 local_132;
  int aiStack_12c [3];
  undefined1 local_120 [49];
  byte local_ef [195];
  int *local_2c;
  
  puVar2 = PTR___stack_chk_guard_000adcd4;
  piVar12 = *(int **)PTR___stack_chk_guard_000adcd4;
  local_2c = piVar12;
  if (param_1[8] == 4) {
    if (param_4 != 0) goto LAB_00020b58;
    (*(code *)PTR_ltime_000ad4d4)(local_190);
    puVar9 = local_190;
    puVar3 = local_160;
    do {
      puVar11 = puVar3;
      puVar8 = puVar9;
      puVar9 = puVar8 + 4;
      uVar16 = puVar8[1];
      uVar14 = puVar8[2];
      uVar7 = puVar8[3];
      *puVar11 = *puVar8;
      puVar11[1] = uVar16;
      puVar11[2] = uVar14;
      puVar11[3] = uVar7;
      puVar3 = puVar11 + 4;
    } while (puVar9 != auStack_170);
    uVar14 = puVar8[5];
    uVar7 = puVar8[6];
    puVar11[4] = *puVar9;
    puVar11[5] = uVar14;
    puVar11[6] = uVar7;
    (*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790);
    if (param_2 == (int *)0x0) {
      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;
    }
    else {
      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;
    }
    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);
    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c);
    piVar12 = param_1;
    FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c);
    if (0 < (int)param_6) goto LAB_00020bf4;
    iVar23 = param_1[8];
  }
  else {
    if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;
LAB_00020b58:
    if (param_2 == (int *)0x0) {
      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;
    }
    else {
      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;
    }
    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);
    FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);
    if (param_9 != (undefined4 *)0x0) {
      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);
    }
    (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);
    if ((param_10 != 0) &&
       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {
      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);
    }
    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);
    piVar12 = param_1;
    (*local_1b0)(param_1,param_2);
    if (0 < (int)param_6) {
LAB_00020bf4:
      puVar15 = PTR_DAT_000ad2c8;
      uVar22 = 0;
      iVar21 = 0;
      iVar20 = 0;
      iVar23 = 0;
      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;
      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);
      puVar6 = PTR_DAT_000ad2d0 + -0x5930;
      bVar1 = 0 < param_7;
      do {
        if (bVar1) {
          piVar10 = (int *)(param_8 + iVar23 * 0xc);
          iVar13 = *piVar10;
          piVar12 = (int *)(iVar23 * 0xc + 0xc);
          if (iVar13 + piVar10[1] <= (int)uVar22) {
            piVar12 = (int *)(param_8 + (int)piVar12);
            do {
              piVar10 = piVar12;
              iVar23 = iVar23 + 1;
              if (param_7 == iVar23) {
                iVar13 = 0;
                iVar23 = param_7;
                goto LAB_00020c9c;
              }
              iVar13 = *piVar10;
              piVar12 = piVar10 + 3;
            } while (iVar13 + piVar10[1] <= (int)uVar22);
          }
          if ((int)uVar22 < iVar13) goto LAB_00020e70;
          iVar13 = piVar10[2];
          if (iVar13 != 2) {
LAB_00020c9c:
            if (iVar20 != 0) goto LAB_00020dac;
            goto joined_r0x00020ddc;
          }
          if (iVar20 == 0 && iVar21 == 0) {
            param_2 = (int *)0x1;
            piVar12 = aiStack_12c;
            iVar20 = 1;
            (*(code *)PTR___sprintf_chk_000adaf0)
                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);
          }
          else {
            iVar20 = iVar20 + 1;
            param_2 = (int *)0x0;
          }
          iVar13 = iVar21;
          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {
            if (iVar21 != 0) goto LAB_00020e90;
            goto LAB_00020d3c;
          }
          if (iVar21 == 0) goto LAB_00020ffc;
LAB_00020e90:
          param_2 = aiStack_12c;
          iVar21 = 0;
          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;
          local_ef[iVar13 + 2] = 0;
          local_ef[iVar13 + 1] = 10;
          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);
          piVar12 = param_1;
          (*pcVar5)(param_1,param_2,uVar7);
        }
        else {
LAB_00020e70:
          if (iVar20 == 0) {
            if (iVar21 == 0) {
              iVar13 = 0;
              goto LAB_00020de4;
            }
LAB_00020e30:
            bVar19 = *(byte *)(param_5 + uVar22);
            iVar20 = (uint)bVar19 << 1;
            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);
          }
          else {
            iVar13 = 0;
LAB_00020dac:
            puVar17 = puVar4;
            if (iVar20 != 1) {
              puVar17 = puVar6;
            }
            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);
joined_r0x00020ddc:
            if (iVar21 == 0) {
LAB_00020de4:
              (*(code *)PTR___sprintf_chk_000adaf0)
                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);
            }
            if (iVar13 != 1) goto LAB_00020e30;
            local_132 = 0;
            iVar20 = 0xb0;
            bVar19 = 0x58;
            local_134 = 0x5858;
          }
          uVar18 = uVar22 & 0xf;
          iVar21 = uVar18 + 1;
          local_120[uVar18 * 3] = local_134._0_1_;
          local_120[uVar18 * 3 + 1] = (undefined1)local_134;
          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();
          param_2 = (int *)0x2e;
          piVar12 = (int *)(uVar22 + 1 & 0xf);
          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {
            bVar19 = 0x2e;
          }
          local_ef[uVar18] = bVar19;
          iVar13 = iVar21;
          if (piVar12 == (int *)0x0) {
            iVar20 = 0;
            goto LAB_00020e90;
          }
          iVar20 = 0;
          if (param_6 == uVar22 + 1) goto LAB_00020e90;
        }
LAB_00020d3c:
        uVar22 = uVar22 + 1;
        bVar1 = iVar23 < param_7;
      } while ((int)uVar22 < (int)param_6);
      if (iVar20 != 0) {
LAB_00020ffc:
        if (iVar20 == 1) {
          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;
        }
        else {
          puVar15 = PTR_DAT_000ad2d0 + -0x5930;
        }
        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);
        piVar12 = param_1;
        (*local_1b0)(param_1,param_2,iVar20,puVar15);
      }
    }
    iVar23 = param_1[8];
  }
  if ((0 < iVar23) && (param_1[1] == 2)) {
    piVar12 = (int *)*param_1;
    (*(code *)PTR_fflush_000adcf4)();
  }
LAB_00020d6c:
  if (local_2c == *(int **)puVar2) {
    return *(int **)puVar2;
  }
  (*(code *)PTR___stack_chk_fail_000adca4)();
  piVar10 = (int *)safemalloc(1,0x24);
  piVar10[6] = (int)piVar12;
  *piVar10 = 0;
  piVar10[1] = 0;
  iVar23 = conf_copy(param_2);
  piVar10[7] = iVar23;
  iVar23 = conf_get_int(iVar23,0x78);
  piVar10[8] = iVar23;
  piVar10[5] = 0;
  bufchain_init(piVar10 + 2);
  return piVar10;
}


lui gp,0x9
addiu gp,gp,0x47cc
addu gp,gp,t9
addiu sp,sp,-0x1e0
lw t0,-0x75bc(gp)
li v1,0x4
lw v0,0x1f0(sp)
sw s2,0x1c0(sp)
or s2,a0,zero
sw gp,0x20(sp)
sw v0,0x34(sp)
sw s8,0x1d8(sp)
sw s7,0x1d4(sp)
or s7,a2,zero
sw s6,0x1d0(sp)
sw s5,0x1cc(sp)
or s5,a1,zero
sw s4,0x1c8(sp)
or s4,a3,zero
sw s1,0x1bc(sp)
sw s0,0x1b8(sp)
sw ra,0x1dc(sp)
sw s3,0x1c4(sp)
sw t0,0x44(sp)
lw v0,0x20(a0)
lw a0,0x0(t0)
lw s6,0x1f8(sp)
lw s1,0x1fc(sp)
lw s8,0x200(sp)
lw s0,0x208(sp)
sw a0,0x1b4(sp)
beq v0,v1,0x00020f20
_li v1,0x3
bne v0,v1,0x00020d6c
_lw v0,0x44(sp)
beq a3,zero,0x00020d6c
_nop
beq s5,zero,0x0002102c
_lw a2,-0x7fc8(gp)
lw a2,-0x7fc8(gp)
addiu a2,a2,-0x57ec
lw s5,-0x7fcc(gp)
or a0,s2,zero
lw a1,-0x7fc8(gp)
addiu t9,s5,-0x150
addiu a1,a1,-0x57e0
bal 0x0001feb0
_sw t9,0x30(sp)
beq s8,zero,0x00020ba8
_lw gp,0x20(sp)
lw a1,-0x7fc8(gp)
or a0,s2,zero
lw a2,0x0(s8)
lw t9,0x30(sp)
jalr t9
_addiu a1,a1,-0x57d4
lw gp,0x20(sp)
lw a1,-0x7fc8(gp)
or a3,s7,zero
lw t9,0x30(sp)
or a2,s7,zero
sw s4,0x10(sp)
or a0,s2,zero
jalr t9
_addiu a1,a1,-0x57c8
lw v0,0x204(sp)
bne v0,zero,0x0002104c
_lw gp,0x20(sp)
lw a1,-0x7fc8(gp)
or a0,s2,zero
lw t9,0x30(sp)
jalr t9
_addiu a1,a1,-0x2500
lw v0,0x1f4(sp)
blez v0,0x00020d50
_lw gp,0x20(sp)
lw v0,-0x7fc8(gp)
or s7,zero,zero
or s5,zero,zero
or s4,zero,zero
sw v0,0x4c(sp)
or s8,zero,zero
lw v0,-0x7fc8(gp)
sw v0,0x38(sp)
lw v0,-0x7fc8(gp)
addiu v0,v0,-0x22a4
sw v0,0x3c(sp)
lw v0,-0x7fcc(gp)
addiu v0,v0,-0x294
sw v0,0x48(sp)
lw v0,-0x7fc0(gp)
addiu v0,v0,-0x5930
sw v0,0x40(sp)
slt v0,s8,s6
beq v0,zero,0x00020e70
_sll a0,s8,0x1
addu a0,a0,s8
sll a0,a0,0x2
addu v1,s1,a0
lw a1,0x0(v1)
lw v0,0x4(v1)
addu v0,a1,v0
slt v0,s7,v0
bne v0,zero,0x00020ed8
_addiu a0,a0,0xc
b 0x00020c88
_addu a0,s1,a0
lw a1,0x0(a0)
lw v0,0x4(v1)
addu v0,a1,v0
slt v0,s7,v0
bne v0,zero,0x00020e64
_addiu a0,a0,0xc
addiu s8,s8,0x1
bne s6,s8,0x00020c70
_or v1,a0,zero
or v1,zero,zero
or s8,s6,zero
bne s4,zero,0x00020dac
_andi s0,s7,0xf
beq s5,zero,0x00020de4
_nop
li v0,0x1
bne v1,v0,0x00020e30
_lw v0,0x34(sp)
li v0,0x5858
sb zero,0xae(sp)
li s4,0xb0
li s3,0x58
sh v0,0xac(sp)
sll v0,s0,0x1
lbu a0,0xac(sp)
addiu v1,sp,0x1b8
lw t9,-0x7794(gp)
addu v0,v0,s0
addiu s7,s7,0x1
addu v0,v1,v0
addiu s5,s0,0x1
sb a0,-0xf8(v0)
lbu a0,0xad(sp)
jalr t9
_sb a0,-0xf7(v0)
li a1,0x2e
lw v0,0x0(v0)
addiu v1,sp,0x1b8
andi a0,s7,0xf
lw gp,0x20(sp)
addu s0,v1,s0
addu s4,v0,s4
lhu v0,0x0(s4)
andi v0,v0,0x40
movz s3,a1,v0
beq a0,zero,0x00020e88
_sb s3,-0xc7(s0)
lw v0,0x1f4(sp)
beq v0,s7,0x00020e8c
_or s4,zero,zero
lw v0,0x1f4(sp)
slt v0,s7,v0
bne v0,zero,0x00020c3c
_slt v0,s8,s6
bne s4,zero,0x00020ffc
_li v0,0x1
lw v0,0x20(s2)
blez v0,0x00020d68
_li v0,0x2
lw v1,0x4(s2)
beq v1,v0,0x0002103c
_lw t9,-0x759c(gp)
lw v0,0x44(sp)
lw v1,0x1b4(sp)
lw v0,0x0(v0)
bne v1,v0,0x000210d8
_lw ra,0x1dc(sp)
lw s8,0x1d8(sp)
lw s7,0x1d4(sp)
lw s6,0x1d0(sp)
lw s5,0x1cc(sp)
lw s4,0x1c8(sp)
lw s3,0x1c4(sp)
lw s2,0x1c0(sp)
lw s1,0x1bc(sp)
lw s0,0x1b8(sp)
jr ra
_addiu sp,sp,0x1e0
or v1,zero,zero
li v0,0x1
beq s4,v0,0x00020dbc
_lw a3,0x3c(sp)
lw a3,0x40(sp)
lw a1,-0x7fc8(gp)
or a2,s4,zero
lw t9,0x30(sp)
or a0,s2,zero
sw v1,0x2c(sp)
jalr t9
_addiu a1,a1,-0x5768
lw gp,0x20(sp)
bne s5,zero,0x00020cac
_lw v1,0x2c(sp)
sw v1,0x2c(sp)
li a0,0x43
lw v1,0x3c(sp)
subu v0,s7,s0
lw t9,-0x77a0(gp)
li a2,0x50
sw a0,0x14(sp)
li a1,0x1
sw v1,0x18(sp)
addiu a0,sp,0xb4
sw v0,0x10(sp)
lw v1,0x4c(sp)
jalr t9
_addiu a3,v1,-0x5750
li v0,0x1
lw v1,0x2c(sp)
beq v1,v0,0x00020cb8
_lw gp,0x20(sp)
lw v0,0x34(sp)
li a2,0x5
lw v1,0x38(sp)
li a1,0x1
lw t9,-0x77a0(gp)
addiu a0,sp,0xac
addu v0,v0,s7
addiu a3,v1,-0x5744
lbu s3,0x0(v0)
sw s3,0x10(sp)
jalr t9
_sll s4,s3,0x1
b 0x00020ccc
_lw gp,0x20(sp)
slt a1,s7,a1
beq a1,zero,0x00020ee4
_nop
bne s4,zero,0x00020da8
_andi s0,s7,0xf
bne s5,zero,0x00020e30
_lw v0,0x34(sp)
b 0x00020de4
_or v1,zero,zero
or s4,zero,zero
addiu s0,sp,0xb4
lw t9,-0x7668(gp)
addiu t3,s5,0x3d
li v0,0xd
addu t3,s0,t3
or a0,s0,zero
or s5,zero,zero
sb v0,0x0(t3)
li v0,0xa
sb zero,0x2(t3)
jalr t9
_sb v0,0x1(t3)
or a1,s0,zero
lw t9,0x48(sp)
or a2,v0,zero
jalr t9
_or a0,s2,zero
b 0x00020d38
_lw gp,0x20(sp)
slt a1,s7,a1
bne a1,zero,0x00020e70
_nop
lw v1,0x8(v1)
li v0,0x2
bne v1,v0,0x00020c9c
_or v0,s4,s5
beq v0,zero,0x00021098
_lw v0,0x3c(sp)
addiu s4,s4,0x1
addiu s7,s7,0x1
andi v0,s7,0xf
bne v0,zero,0x00020fec
_lw v0,0x1f4(sp)
beq s5,zero,0x00020d3c
_lw v0,0x1f4(sp)
b 0x00020e90
_addiu s0,sp,0xb4
bne a3,zero,0x00020b58
_lw t9,-0x7dbc(gp)
addiu s0,sp,0x50
jalr t9
_or a0,s0,zero
addiu a3,sp,0x80
lw gp,0x20(sp)
addiu t1,sp,0x70
or v0,s0,zero
or v1,a3,zero
lw t0,0x0(v0)
addiu v0,v0,0x10
addiu v1,v1,0x10
lw a2,-0xc(v0)
lw a1,-0x8(v0)
lw a0,-0x4(v0)
sw t0,-0x10(v1)
sw a2,-0xc(v1)
sw a1,-0x8(v1)
bne v0,t1,0x00020f48
_sw a0,-0x4(v1)
lw a2,-0x7fc8(gp)
addiu s0,sp,0xb4
lw t1,0x0(v0)
li a1,0x18
lw t0,0x4(v0)
or a0,s0,zero
lw v0,0x8(v0)
addiu a2,a2,-0x5790
lw t9,-0x7650(gp)
sw t1,0x0(v1)
sw t0,0x4(v1)
jalr t9
_sw v0,0x8(v1)
beq s5,zero,0x0002108c
_lw gp,0x20(sp)
lw a2,-0x7fc8(gp)
addiu a2,a2,-0x57ec
lw s5,-0x7fcc(gp)
or a3,s0,zero
lw a1,-0x7fc8(gp)
or a0,s2,zero
addiu t9,s5,-0x150
addiu a1,a1,-0x577c
bal 0x0001feb0
_sw t9,0x30(sp)
lw v0,0x1f4(sp)
bgtz v0,0x00020bf4
_lw gp,0x20(sp)
b 0x00020d54
_lw v0,0x20(s2)
bne v0,s7,0x00020f10
_nop
bne s5,zero,0x00020e8c
_li v0,0x1
beq s4,v0,0x00021034
_lw a3,-0x7fc8(gp)
lw a3,-0x7fc0(gp)
addiu a3,a3,-0x5930
lw a1,-0x7fc8(gp)
or a2,s4,zero
lw t9,0x30(sp)
or a0,s2,zero
jalr t9
_addiu a1,a1,-0x5768
b 0x00020d50
_lw gp,0x20(sp)
b 0x00020b68
_addiu a2,a2,-0x57f8
b 0x0002100c
_addiu a3,a3,-0x22a4
jalr t9
_lw a0,0x0(s2)
b 0x00020d68
_lw gp,0x20(sp)
lw a1,-0x7fc8(gp)
or a2,v0,zero
lw t9,0x30(sp)
or a0,s2,zero
jalr t9
_addiu a1,a1,-0x57b0
beq s0,zero,0x00020bd4
_lw gp,0x20(sp)
lw a1,-0x7fc8(gp)
or a2,s0,zero
lw t9,0x30(sp)
or a0,s2,zero
jalr t9
_addiu a1,a1,-0x57b8
b 0x00020bd4
_lw gp,0x20(sp)
lw a2,-0x7fc8(gp)
b 0x00020fb8
_addiu a2,a2,-0x57f8
li a2,0x50
lw v1,0x4c(sp)
li a1,0x1
lw t9,-0x77a0(gp)
addiu a0,sp,0xb4
sw v0,0x18(sp)
li v0,-0x10
addiu a3,v1,-0x5750
li v1,0x43
and v0,s7,v0
sw v1,0x14(sp)
li s4,0x1
jalr t9
_sw v0,0x10(sp)
b 0x00020f00
_lw gp,0x20(sp)
lw t9,-0x75ec(gp)
jalr t9
_nop
(translation_unit "int * log_packet(int *param_1,int *param_2,undefined4 param_3,int param_4,int param_5,uint param_6,\n                int param_7,int param_8,undefined4 *param_9,int param_10,int param_11)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  undefined *puVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  int *piVar10;\n  undefined4 *puVar11;\n  int *piVar12;\n  int iVar13;\n  undefined4 uVar14;\n  undefined *puVar15;\n  undefined4 uVar16;\n  undefined *puVar17;\n  uint uVar18;\n  byte bVar19;\n  int iVar20;\n  int iVar21;\n  uint uVar22;\n  int iVar23;\n  code *local_1b0;\n  undefined4 local_190 [8];\n  undefined4 auStack_170 [4];\n  undefined4 local_160 [11];\n  undefined2 local_134;\n  undefined1 local_132;\n  int aiStack_12c [3];\n  undefined1 local_120 [49];\n  byte local_ef [195];\n  int *local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000adcd4;\n  piVar12 = *(int **)PTR___stack_chk_guard_000adcd4;\n  local_2c = piVar12;\n  if (param_1[8] == 4) {\n    if (param_4 != 0) goto LAB_00020b58;\n    (*(code *)PTR_ltime_000ad4d4)(local_190);\n    puVar9 = local_190;\n    puVar3 = local_160;\n    do {\n      puVar11 = puVar3;\n      puVar8 = puVar9;\n      puVar9 = puVar8 + 4;\n      uVar16 = puVar8[1];\n      uVar14 = puVar8[2];\n      uVar7 = puVar8[3];\n      *puVar11 = *puVar8;\n      puVar11[1] = uVar16;\n      puVar11[2] = uVar14;\n      puVar11[3] = uVar7;\n      puVar3 = puVar11 + 4;\n    } while (puVar9 != auStack_170);\n    uVar14 = puVar8[5];\n    uVar7 = puVar8[6];\n    puVar11[4] = *puVar9;\n    puVar11[5] = uVar14;\n    puVar11[6] = uVar7;\n    (*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790);\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c);\n    piVar12 = param_1;\n    FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c);\n    if (0 < (int)param_6) goto LAB_00020bf4;\n    iVar23 = param_1[8];\n  }\n  else {\n    if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);\n    if (param_9 != (undefined4 *)0x0) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }\n    (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);\n    if ((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);\n    piVar12 = param_1;\n    (*local_1b0)(param_1,param_2);\n    if (0 < (int)param_6) {\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }\n    iVar23 = param_1[8];\n  }\n  if ((0 < iVar23) && (param_1[1] == 2)) {\n    piVar12 = (int *)*param_1;\n    (*(code *)PTR_fflush_000adcf4)();\n  }\nLAB_00020d6c:\n  if (local_2c == *(int **)puVar2) {\n    return *(int **)puVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  piVar10 = (int *)safemalloc(1,0x24);\n  piVar10[6] = (int)piVar12;\n  *piVar10 = 0;\n  piVar10[1] = 0;\n  iVar23 = conf_copy(param_2);\n  piVar10[7] = iVar23;\n  iVar23 = conf_get_int(iVar23,0x78);\n  piVar10[8] = iVar23;\n  piVar10[5] = 0;\n  bufchain_init(piVar10 + 2);\n  return piVar10;\n}\n\n" (function_definition "int * log_packet(int *param_1,int *param_2,undefined4 param_3,int param_4,int param_5,uint param_6,\n                int param_7,int param_8,undefined4 *param_9,int param_10,int param_11)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  undefined *puVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  int *piVar10;\n  undefined4 *puVar11;\n  int *piVar12;\n  int iVar13;\n  undefined4 uVar14;\n  undefined *puVar15;\n  undefined4 uVar16;\n  undefined *puVar17;\n  uint uVar18;\n  byte bVar19;\n  int iVar20;\n  int iVar21;\n  uint uVar22;\n  int iVar23;\n  code *local_1b0;\n  undefined4 local_190 [8];\n  undefined4 auStack_170 [4];\n  undefined4 local_160 [11];\n  undefined2 local_134;\n  undefined1 local_132;\n  int aiStack_12c [3];\n  undefined1 local_120 [49];\n  byte local_ef [195];\n  int *local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000adcd4;\n  piVar12 = *(int **)PTR___stack_chk_guard_000adcd4;\n  local_2c = piVar12;\n  if (param_1[8] == 4) {\n    if (param_4 != 0) goto LAB_00020b58;\n    (*(code *)PTR_ltime_000ad4d4)(local_190);\n    puVar9 = local_190;\n    puVar3 = local_160;\n    do {\n      puVar11 = puVar3;\n      puVar8 = puVar9;\n      puVar9 = puVar8 + 4;\n      uVar16 = puVar8[1];\n      uVar14 = puVar8[2];\n      uVar7 = puVar8[3];\n      *puVar11 = *puVar8;\n      puVar11[1] = uVar16;\n      puVar11[2] = uVar14;\n      puVar11[3] = uVar7;\n      puVar3 = puVar11 + 4;\n    } while (puVar9 != auStack_170);\n    uVar14 = puVar8[5];\n    uVar7 = puVar8[6];\n    puVar11[4] = *puVar9;\n    puVar11[5] = uVar14;\n    puVar11[6] = uVar7;\n    (*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790);\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c);\n    piVar12 = param_1;\n    FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c);\n    if (0 < (int)param_6) goto LAB_00020bf4;\n    iVar23 = param_1[8];\n  }\n  else {\n    if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);\n    if (param_9 != (undefined4 *)0x0) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }\n    (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);\n    if ((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);\n    piVar12 = param_1;\n    (*local_1b0)(param_1,param_2);\n    if (0 < (int)param_6) {\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }\n    iVar23 = param_1[8];\n  }\n  if ((0 < iVar23) && (param_1[1] == 2)) {\n    piVar12 = (int *)*param_1;\n    (*(code *)PTR_fflush_000adcf4)();\n  }\nLAB_00020d6c:\n  if (local_2c == *(int **)puVar2) {\n    return *(int **)puVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  piVar10 = (int *)safemalloc(1,0x24);\n  piVar10[6] = (int)piVar12;\n  *piVar10 = 0;\n  piVar10[1] = 0;\n  iVar23 = conf_copy(param_2);\n  piVar10[7] = iVar23;\n  iVar23 = conf_get_int(iVar23,0x78);\n  piVar10[8] = iVar23;\n  piVar10[5] = 0;\n  bufchain_init(piVar10 + 2);\n  return piVar10;\n}" primitive_type (pointer_declarator "* log_packet(int *param_1,int *param_2,undefined4 param_3,int param_4,int param_5,uint param_6,\n                int param_7,int param_8,undefined4 *param_9,int param_10,int param_11)" * (function_declarator "log_packet(int *param_1,int *param_2,undefined4 param_3,int param_4,int param_5,uint param_6,\n                int param_7,int param_8,undefined4 *param_9,int param_10,int param_11)" identifier (parameter_list "(int *param_1,int *param_2,undefined4 param_3,int param_4,int param_5,uint param_6,\n                int param_7,int param_8,undefined4 *param_9,int param_10,int param_11)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "uint param_6" type_identifier identifier) , (parameter_declaration "int param_7" primitive_type identifier) , (parameter_declaration "int param_8" primitive_type identifier) , (parameter_declaration "undefined4 *param_9" type_identifier (pointer_declarator "*param_9" * identifier)) , (parameter_declaration "int param_10" primitive_type identifier) , (parameter_declaration "int param_11" primitive_type identifier) )))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  undefined *puVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  int *piVar10;\n  undefined4 *puVar11;\n  int *piVar12;\n  int iVar13;\n  undefined4 uVar14;\n  undefined *puVar15;\n  undefined4 uVar16;\n  undefined *puVar17;\n  uint uVar18;\n  byte bVar19;\n  int iVar20;\n  int iVar21;\n  uint uVar22;\n  int iVar23;\n  code *local_1b0;\n  undefined4 local_190 [8];\n  undefined4 auStack_170 [4];\n  undefined4 local_160 [11];\n  undefined2 local_134;\n  undefined1 local_132;\n  int aiStack_12c [3];\n  undefined1 local_120 [49];\n  byte local_ef [195];\n  int *local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000adcd4;\n  piVar12 = *(int **)PTR___stack_chk_guard_000adcd4;\n  local_2c = piVar12;\n  if (param_1[8] == 4) {\n    if (param_4 != 0) goto LAB_00020b58;\n    (*(code *)PTR_ltime_000ad4d4)(local_190);\n    puVar9 = local_190;\n    puVar3 = local_160;\n    do {\n      puVar11 = puVar3;\n      puVar8 = puVar9;\n      puVar9 = puVar8 + 4;\n      uVar16 = puVar8[1];\n      uVar14 = puVar8[2];\n      uVar7 = puVar8[3];\n      *puVar11 = *puVar8;\n      puVar11[1] = uVar16;\n      puVar11[2] = uVar14;\n      puVar11[3] = uVar7;\n      puVar3 = puVar11 + 4;\n    } while (puVar9 != auStack_170);\n    uVar14 = puVar8[5];\n    uVar7 = puVar8[6];\n    puVar11[4] = *puVar9;\n    puVar11[5] = uVar14;\n    puVar11[6] = uVar7;\n    (*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790);\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c);\n    piVar12 = param_1;\n    FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c);\n    if (0 < (int)param_6) goto LAB_00020bf4;\n    iVar23 = param_1[8];\n  }\n  else {\n    if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);\n    if (param_9 != (undefined4 *)0x0) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }\n    (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);\n    if ((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);\n    piVar12 = param_1;\n    (*local_1b0)(param_1,param_2);\n    if (0 < (int)param_6) {\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }\n    iVar23 = param_1[8];\n  }\n  if ((0 < iVar23) && (param_1[1] == 2)) {\n    piVar12 = (int *)*param_1;\n    (*(code *)PTR_fflush_000adcf4)();\n  }\nLAB_00020d6c:\n  if (local_2c == *(int **)puVar2) {\n    return *(int **)puVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  piVar10 = (int *)safemalloc(1,0x24);\n  piVar10[6] = (int)piVar12;\n  *piVar10 = 0;\n  piVar10[1] = 0;\n  iVar23 = conf_copy(param_2);\n  piVar10[7] = iVar23;\n  iVar23 = conf_get_int(iVar23,0x78);\n  piVar10[8] = iVar23;\n  piVar10[5] = 0;\n  bufchain_init(piVar10 + 2);\n  return piVar10;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "int *piVar10;" primitive_type (pointer_declarator "*piVar10" * identifier) ;) (declaration "undefined4 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "int *piVar12;" primitive_type (pointer_declarator "*piVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "undefined4 uVar14;" type_identifier identifier ;) (declaration "undefined *puVar15;" type_identifier (pointer_declarator "*puVar15" * identifier) ;) (declaration "undefined4 uVar16;" type_identifier identifier ;) (declaration "undefined *puVar17;" type_identifier (pointer_declarator "*puVar17" * identifier) ;) (declaration "uint uVar18;" type_identifier identifier ;) (declaration "byte bVar19;" type_identifier identifier ;) (declaration "int iVar20;" primitive_type identifier ;) (declaration "int iVar21;" primitive_type identifier ;) (declaration "uint uVar22;" type_identifier identifier ;) (declaration "int iVar23;" primitive_type identifier ;) (declaration "code *local_1b0;" type_identifier (pointer_declarator "*local_1b0" * identifier) ;) (declaration "undefined4 local_190 [8];" type_identifier (array_declarator "local_190 [8]" identifier [ number_literal ]) ;) (declaration "undefined4 auStack_170 [4];" type_identifier (array_declarator "auStack_170 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 local_160 [11];" type_identifier (array_declarator "local_160 [11]" identifier [ number_literal ]) ;) (declaration "undefined2 local_134;" type_identifier identifier ;) (declaration "undefined1 local_132;" type_identifier identifier ;) (declaration "int aiStack_12c [3];" primitive_type (array_declarator "aiStack_12c [3]" identifier [ number_literal ]) ;) (declaration "undefined1 local_120 [49];" type_identifier (array_declarator "local_120 [49]" identifier [ number_literal ]) ;) (declaration "byte local_ef [195];" type_identifier (array_declarator "local_ef [195]" identifier [ number_literal ]) ;) (declaration "int *local_2c;" primitive_type (pointer_declarator "*local_2c" * identifier) ;) (expression_statement "puVar2 = PTR___stack_chk_guard_000adcd4;" (assignment_expression "puVar2 = PTR___stack_chk_guard_000adcd4" identifier = identifier) ;) (expression_statement "piVar12 = *(int **)PTR___stack_chk_guard_000adcd4;" (assignment_expression "piVar12 = *(int **)PTR___stack_chk_guard_000adcd4" identifier = (pointer_expression "*(int **)PTR___stack_chk_guard_000adcd4" * (cast_expression "(int **)PTR___stack_chk_guard_000adcd4" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "local_2c = piVar12;" (assignment_expression "local_2c = piVar12" identifier = identifier) ;) (if_statement "if (param_1[8] == 4) {\n    if (param_4 != 0) goto LAB_00020b58;\n    (*(code *)PTR_ltime_000ad4d4)(local_190);\n    puVar9 = local_190;\n    puVar3 = local_160;\n    do {\n      puVar11 = puVar3;\n      puVar8 = puVar9;\n      puVar9 = puVar8 + 4;\n      uVar16 = puVar8[1];\n      uVar14 = puVar8[2];\n      uVar7 = puVar8[3];\n      *puVar11 = *puVar8;\n      puVar11[1] = uVar16;\n      puVar11[2] = uVar14;\n      puVar11[3] = uVar7;\n      puVar3 = puVar11 + 4;\n    } while (puVar9 != auStack_170);\n    uVar14 = puVar8[5];\n    uVar7 = puVar8[6];\n    puVar11[4] = *puVar9;\n    puVar11[5] = uVar14;\n    puVar11[6] = uVar7;\n    (*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790);\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c);\n    piVar12 = param_1;\n    FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c);\n    if (0 < (int)param_6) goto LAB_00020bf4;\n    iVar23 = param_1[8];\n  }\n  else {\n    if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);\n    if (param_9 != (undefined4 *)0x0) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }\n    (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);\n    if ((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);\n    piVar12 = param_1;\n    (*local_1b0)(param_1,param_2);\n    if (0 < (int)param_6) {\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }\n    iVar23 = param_1[8];\n  }" if (parenthesized_expression "(param_1[8] == 4)" ( (binary_expression "param_1[8] == 4" (subscript_expression "param_1[8]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    if (param_4 != 0) goto LAB_00020b58;\n    (*(code *)PTR_ltime_000ad4d4)(local_190);\n    puVar9 = local_190;\n    puVar3 = local_160;\n    do {\n      puVar11 = puVar3;\n      puVar8 = puVar9;\n      puVar9 = puVar8 + 4;\n      uVar16 = puVar8[1];\n      uVar14 = puVar8[2];\n      uVar7 = puVar8[3];\n      *puVar11 = *puVar8;\n      puVar11[1] = uVar16;\n      puVar11[2] = uVar14;\n      puVar11[3] = uVar7;\n      puVar3 = puVar11 + 4;\n    } while (puVar9 != auStack_170);\n    uVar14 = puVar8[5];\n    uVar7 = puVar8[6];\n    puVar11[4] = *puVar9;\n    puVar11[5] = uVar14;\n    puVar11[6] = uVar7;\n    (*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790);\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c);\n    piVar12 = param_1;\n    FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c);\n    if (0 < (int)param_6) goto LAB_00020bf4;\n    iVar23 = param_1[8];\n  }" { (if_statement "if (param_4 != 0) goto LAB_00020b58;" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00020b58;" goto statement_identifier ;)) (expression_statement "(*(code *)PTR_ltime_000ad4d4)(local_190);" (call_expression "(*(code *)PTR_ltime_000ad4d4)(local_190)" (parenthesized_expression "(*(code *)PTR_ltime_000ad4d4)" ( (pointer_expression "*(code *)PTR_ltime_000ad4d4" * (cast_expression "(code *)PTR_ltime_000ad4d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_190)" ( identifier ))) ;) (expression_statement "puVar9 = local_190;" (assignment_expression "puVar9 = local_190" identifier = identifier) ;) (expression_statement "puVar3 = local_160;" (assignment_expression "puVar3 = local_160" identifier = identifier) ;) (do_statement "do {\n      puVar11 = puVar3;\n      puVar8 = puVar9;\n      puVar9 = puVar8 + 4;\n      uVar16 = puVar8[1];\n      uVar14 = puVar8[2];\n      uVar7 = puVar8[3];\n      *puVar11 = *puVar8;\n      puVar11[1] = uVar16;\n      puVar11[2] = uVar14;\n      puVar11[3] = uVar7;\n      puVar3 = puVar11 + 4;\n    } while (puVar9 != auStack_170);" do (compound_statement "{\n      puVar11 = puVar3;\n      puVar8 = puVar9;\n      puVar9 = puVar8 + 4;\n      uVar16 = puVar8[1];\n      uVar14 = puVar8[2];\n      uVar7 = puVar8[3];\n      *puVar11 = *puVar8;\n      puVar11[1] = uVar16;\n      puVar11[2] = uVar14;\n      puVar11[3] = uVar7;\n      puVar3 = puVar11 + 4;\n    }" { (expression_statement "puVar11 = puVar3;" (assignment_expression "puVar11 = puVar3" identifier = identifier) ;) (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" identifier = identifier) ;) (expression_statement "puVar9 = puVar8 + 4;" (assignment_expression "puVar9 = puVar8 + 4" identifier = (binary_expression "puVar8 + 4" identifier + number_literal)) ;) (expression_statement "uVar16 = puVar8[1];" (assignment_expression "uVar16 = puVar8[1]" identifier = (subscript_expression "puVar8[1]" identifier [ number_literal ])) ;) (expression_statement "uVar14 = puVar8[2];" (assignment_expression "uVar14 = puVar8[2]" identifier = (subscript_expression "puVar8[2]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = puVar8[3];" (assignment_expression "uVar7 = puVar8[3]" identifier = (subscript_expression "puVar8[3]" identifier [ number_literal ])) ;) (expression_statement "*puVar11 = *puVar8;" (assignment_expression "*puVar11 = *puVar8" (pointer_expression "*puVar11" * identifier) = (pointer_expression "*puVar8" * identifier)) ;) (expression_statement "puVar11[1] = uVar16;" (assignment_expression "puVar11[1] = uVar16" (subscript_expression "puVar11[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar11[2] = uVar14;" (assignment_expression "puVar11[2] = uVar14" (subscript_expression "puVar11[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar11[3] = uVar7;" (assignment_expression "puVar11[3] = uVar7" (subscript_expression "puVar11[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = puVar11 + 4;" (assignment_expression "puVar3 = puVar11 + 4" identifier = (binary_expression "puVar11 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar9 != auStack_170)" ( (binary_expression "puVar9 != auStack_170" identifier != identifier) )) ;) (expression_statement "uVar14 = puVar8[5];" (assignment_expression "uVar14 = puVar8[5]" identifier = (subscript_expression "puVar8[5]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = puVar8[6];" (assignment_expression "uVar7 = puVar8[6]" identifier = (subscript_expression "puVar8[6]" identifier [ number_literal ])) ;) (expression_statement "puVar11[4] = *puVar9;" (assignment_expression "puVar11[4] = *puVar9" (subscript_expression "puVar11[4]" identifier [ number_literal ]) = (pointer_expression "*puVar9" * identifier)) ;) (expression_statement "puVar11[5] = uVar14;" (assignment_expression "puVar11[5] = uVar14" (subscript_expression "puVar11[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar11[6] = uVar7;" (assignment_expression "puVar11[6] = uVar7" (subscript_expression "puVar11[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790);" (call_expression "(*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790)" (parenthesized_expression "(*(code *)PTR_strftime_000adc40)" ( (pointer_expression "*(code *)PTR_strftime_000adc40" * (cast_expression "(code *)PTR_strftime_000adc40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790)" ( identifier , number_literal , (binary_expression "PTR_DAT_000ad2c8 + -0x5790" identifier + number_literal) ))) ;) (if_statement "if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" if (parenthesized_expression "(param_2 == (int *)0x0)" ( (binary_expression "param_2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }" { (expression_statement "puVar15 = PTR_DAT_000ad2c8 + -0x57f8;" (assignment_expression "puVar15 = PTR_DAT_000ad2c8 + -0x57f8" identifier = (binary_expression "PTR_DAT_000ad2c8 + -0x57f8" identifier + number_literal)) ;) }) (else_clause "else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" else (compound_statement "{\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" { (expression_statement "puVar15 = PTR_DAT_000ad2c8 + -0x57ec;" (assignment_expression "puVar15 = PTR_DAT_000ad2c8 + -0x57ec" identifier = (binary_expression "PTR_DAT_000ad2c8 + -0x57ec" identifier + number_literal)) ;) }))) (expression_statement "local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);" (assignment_expression "local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150)" identifier = (cast_expression "(code *)(PTR_LAB_000ad2c4 + -0x150)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000ad2c4 + -0x150)" ( (binary_expression "PTR_LAB_000ad2c4 + -0x150" identifier + number_literal) )))) ;) (expression_statement "param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c);" (assignment_expression "param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c)" identifier = (cast_expression "(int *)(PTR_DAT_000ad2c8 + -0x577c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000ad2c8 + -0x577c)" ( (binary_expression "PTR_DAT_000ad2c8 + -0x577c" identifier + number_literal) )))) ;) (expression_statement "piVar12 = param_1;" (assignment_expression "piVar12 = param_1" identifier = identifier) ;) (expression_statement "FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c);" (call_expression "FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c)" identifier (argument_list "(param_1,param_2,puVar15,aiStack_12c)" ( identifier , identifier , identifier , identifier ))) ;) (if_statement "if (0 < (int)param_6) goto LAB_00020bf4;" if (parenthesized_expression "(0 < (int)param_6)" ( (binary_expression "0 < (int)param_6" number_literal < (cast_expression "(int)param_6" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_00020bf4;" goto statement_identifier ;)) (expression_statement "iVar23 = param_1[8];" (assignment_expression "iVar23 = param_1[8]" identifier = (subscript_expression "param_1[8]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);\n    if (param_9 != (undefined4 *)0x0) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }\n    (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);\n    if ((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);\n    piVar12 = param_1;\n    (*local_1b0)(param_1,param_2);\n    if (0 < (int)param_6) {\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }\n    iVar23 = param_1[8];\n  }" else (compound_statement "{\n    if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);\n    if (param_9 != (undefined4 *)0x0) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }\n    (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);\n    if ((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);\n    piVar12 = param_1;\n    (*local_1b0)(param_1,param_2);\n    if (0 < (int)param_6) {\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }\n    iVar23 = param_1[8];\n  }" { (if_statement "if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;" if (parenthesized_expression "((param_1[8] != 3) || (param_4 == 0))" ( (binary_expression "(param_1[8] != 3) || (param_4 == 0)" (parenthesized_expression "(param_1[8] != 3)" ( (binary_expression "param_1[8] != 3" (subscript_expression "param_1[8]" identifier [ number_literal ]) != number_literal) )) || (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) ))) )) (goto_statement "goto LAB_00020d6c;" goto statement_identifier ;)) (labeled_statement "LAB_00020b58:\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" statement_identifier : (if_statement "if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" if (parenthesized_expression "(param_2 == (int *)0x0)" ( (binary_expression "param_2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }" { (expression_statement "puVar15 = PTR_DAT_000ad2c8 + -0x57f8;" (assignment_expression "puVar15 = PTR_DAT_000ad2c8 + -0x57f8" identifier = (binary_expression "PTR_DAT_000ad2c8 + -0x57f8" identifier + number_literal)) ;) }) (else_clause "else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" else (compound_statement "{\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" { (expression_statement "puVar15 = PTR_DAT_000ad2c8 + -0x57ec;" (assignment_expression "puVar15 = PTR_DAT_000ad2c8 + -0x57ec" identifier = (binary_expression "PTR_DAT_000ad2c8 + -0x57ec" identifier + number_literal)) ;) })))) (expression_statement "local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);" (assignment_expression "local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150)" identifier = (cast_expression "(code *)(PTR_LAB_000ad2c4 + -0x150)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000ad2c4 + -0x150)" ( (binary_expression "PTR_LAB_000ad2c4 + -0x150" identifier + number_literal) )))) ;) (expression_statement "FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);" (call_expression "FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15)" identifier (argument_list "(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15)" ( identifier , (binary_expression "PTR_DAT_000ad2c8 + -0x57e0" identifier + number_literal) , identifier ))) ;) (if_statement "if (param_9 != (undefined4 *)0x0) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }" if (parenthesized_expression "(param_9 != (undefined4 *)0x0)" ( (binary_expression "param_9 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }" { (expression_statement "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);" (call_expression "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9)" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9)" ( identifier , (binary_expression "PTR_DAT_000ad2c8 + -0x57d4" identifier + number_literal) , (pointer_expression "*param_9" * identifier) ))) ;) })) (expression_statement "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);" (call_expression "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4)" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4)" ( identifier , (binary_expression "PTR_DAT_000ad2c8 + -0x57c8" identifier + number_literal) , identifier , identifier , identifier ))) ;) (if_statement "if ((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }" if (parenthesized_expression "((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0))" ( (binary_expression "(param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)" (parenthesized_expression "(param_10 != 0)" ( (binary_expression "param_10 != 0" identifier != number_literal) )) && (parenthesized_expression "((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)" ( (comma_expression "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0" (call_expression "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10)" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10)" ( identifier , (binary_expression "PTR_DAT_000ad2c8 + -0x57b0" identifier + number_literal) , identifier ))) , (binary_expression "param_11 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }" { (expression_statement "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);" (call_expression "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11)" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11)" ( identifier , (binary_expression "PTR_DAT_000ad2c8 + -0x57b8" identifier + number_literal) , identifier ))) ;) })) (expression_statement "param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);" (assignment_expression "param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500)" identifier = (cast_expression "(int *)(PTR_DAT_000ad2c8 + -0x2500)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000ad2c8 + -0x2500)" ( (binary_expression "PTR_DAT_000ad2c8 + -0x2500" identifier + number_literal) )))) ;) (expression_statement "piVar12 = param_1;" (assignment_expression "piVar12 = param_1" identifier = identifier) ;) (expression_statement "(*local_1b0)(param_1,param_2);" (call_expression "(*local_1b0)(param_1,param_2)" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (if_statement "if (0 < (int)param_6) {\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }" if (parenthesized_expression "(0 < (int)param_6)" ( (binary_expression "0 < (int)param_6" number_literal < (cast_expression "(int)param_6" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }" { (labeled_statement "LAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;" statement_identifier : (expression_statement "puVar15 = PTR_DAT_000ad2c8;" (assignment_expression "puVar15 = PTR_DAT_000ad2c8" identifier = identifier) ;)) (expression_statement "uVar22 = 0;" (assignment_expression "uVar22 = 0" identifier = number_literal) ;) (expression_statement "iVar21 = 0;" (assignment_expression "iVar21 = 0" identifier = number_literal) ;) (expression_statement "iVar20 = 0;" (assignment_expression "iVar20 = 0" identifier = number_literal) ;) (expression_statement "iVar23 = 0;" (assignment_expression "iVar23 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = PTR_DAT_000ad2c8 + -0x22a4;" (assignment_expression "puVar4 = PTR_DAT_000ad2c8 + -0x22a4" identifier = (binary_expression "PTR_DAT_000ad2c8 + -0x22a4" identifier + number_literal)) ;) (expression_statement "pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);" (assignment_expression "pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294)" identifier = (cast_expression "(code *)(PTR_LAB_000ad2c4 + -0x294)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000ad2c4 + -0x294)" ( (binary_expression "PTR_LAB_000ad2c4 + -0x294" identifier + number_literal) )))) ;) (expression_statement "puVar6 = PTR_DAT_000ad2d0 + -0x5930;" (assignment_expression "puVar6 = PTR_DAT_000ad2d0 + -0x5930" identifier = (binary_expression "PTR_DAT_000ad2d0 + -0x5930" identifier + number_literal)) ;) (expression_statement "bVar1 = 0 < param_7;" (assignment_expression "bVar1 = 0 < param_7" identifier = (binary_expression "0 < param_7" number_literal < identifier)) ;) (do_statement "do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);" do (compound_statement "{\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      }" { (if_statement "if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }" { (expression_statement "piVar10 = (int *)(param_8 + iVar23 * 0xc);" (assignment_expression "piVar10 = (int *)(param_8 + iVar23 * 0xc)" identifier = (cast_expression "(int *)(param_8 + iVar23 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_8 + iVar23 * 0xc)" ( (binary_expression "param_8 + iVar23 * 0xc" identifier + (binary_expression "iVar23 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "iVar13 = *piVar10;" (assignment_expression "iVar13 = *piVar10" identifier = (pointer_expression "*piVar10" * identifier)) ;) (expression_statement "piVar12 = (int *)(iVar23 * 0xc + 0xc);" (assignment_expression "piVar12 = (int *)(iVar23 * 0xc + 0xc)" identifier = (cast_expression "(int *)(iVar23 * 0xc + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar23 * 0xc + 0xc)" ( (binary_expression "iVar23 * 0xc + 0xc" (binary_expression "iVar23 * 0xc" identifier * number_literal) + number_literal) )))) ;) (if_statement "if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }" if (parenthesized_expression "(iVar13 + piVar10[1] <= (int)uVar22)" ( (binary_expression "iVar13 + piVar10[1] <= (int)uVar22" (binary_expression "iVar13 + piVar10[1]" identifier + (subscript_expression "piVar10[1]" identifier [ number_literal ])) <= (cast_expression "(int)uVar22" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }" { (expression_statement "piVar12 = (int *)(param_8 + (int)piVar12);" (assignment_expression "piVar12 = (int *)(param_8 + (int)piVar12)" identifier = (cast_expression "(int *)(param_8 + (int)piVar12)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_8 + (int)piVar12)" ( (binary_expression "param_8 + (int)piVar12" identifier + (cast_expression "(int)piVar12" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (do_statement "do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);" do (compound_statement "{\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            }" { (expression_statement "piVar10 = piVar12;" (assignment_expression "piVar10 = piVar12" identifier = identifier) ;) (expression_statement "iVar23 = iVar23 + 1;" (assignment_expression "iVar23 = iVar23 + 1" identifier = (binary_expression "iVar23 + 1" identifier + number_literal)) ;) (if_statement "if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }" if (parenthesized_expression "(param_7 == iVar23)" ( (binary_expression "param_7 == iVar23" identifier == identifier) )) (compound_statement "{\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }" { (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (expression_statement "iVar23 = param_7;" (assignment_expression "iVar23 = param_7" identifier = identifier) ;) (goto_statement "goto LAB_00020c9c;" goto statement_identifier ;) })) (expression_statement "iVar13 = *piVar10;" (assignment_expression "iVar13 = *piVar10" identifier = (pointer_expression "*piVar10" * identifier)) ;) (expression_statement "piVar12 = piVar10 + 3;" (assignment_expression "piVar12 = piVar10 + 3" identifier = (binary_expression "piVar10 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar13 + piVar10[1] <= (int)uVar22)" ( (binary_expression "iVar13 + piVar10[1] <= (int)uVar22" (binary_expression "iVar13 + piVar10[1]" identifier + (subscript_expression "piVar10[1]" identifier [ number_literal ])) <= (cast_expression "(int)uVar22" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (if_statement "if ((int)uVar22 < iVar13) goto LAB_00020e70;" if (parenthesized_expression "((int)uVar22 < iVar13)" ( (binary_expression "(int)uVar22 < iVar13" (cast_expression "(int)uVar22" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) (goto_statement "goto LAB_00020e70;" goto statement_identifier ;)) (expression_statement "iVar13 = piVar10[2];" (assignment_expression "iVar13 = piVar10[2]" identifier = (subscript_expression "piVar10[2]" identifier [ number_literal ])) ;) (if_statement "if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }" if (parenthesized_expression "(iVar13 != 2)" ( (binary_expression "iVar13 != 2" identifier != number_literal) )) (compound_statement "{\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }" { (labeled_statement "LAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;" statement_identifier : (if_statement "if (iVar20 != 0) goto LAB_00020dac;" if (parenthesized_expression "(iVar20 != 0)" ( (binary_expression "iVar20 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00020dac;" goto statement_identifier ;))) (goto_statement "goto joined_r0x00020ddc;" goto statement_identifier ;) })) (if_statement "if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }" if (parenthesized_expression "(iVar20 == 0 && iVar21 == 0)" ( (binary_expression "iVar20 == 0 && iVar21 == 0" (binary_expression "iVar20 == 0" identifier == number_literal) && (binary_expression "iVar21 == 0" identifier == number_literal)) )) (compound_statement "{\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }" { (expression_statement "param_2 = (int *)0x1;" (assignment_expression "param_2 = (int *)0x1" identifier = (cast_expression "(int *)0x1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "piVar12 = aiStack_12c;" (assignment_expression "piVar12 = aiStack_12c" identifier = identifier) ;) (expression_statement "iVar20 = 1;" (assignment_expression "iVar20 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);" (call_expression "(*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_000adaf0)" ( (pointer_expression "*(code *)PTR___sprintf_chk_000adaf0" * (cast_expression "(code *)PTR___sprintf_chk_000adaf0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4)" ( identifier , number_literal , number_literal , (binary_expression "puVar15 + -0x5750" identifier + number_literal) , (binary_expression "uVar22 & 0xfffffff0" identifier & number_literal) , number_literal , identifier ))) ;) }) (else_clause "else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }" else (compound_statement "{\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }" { (expression_statement "iVar20 = iVar20 + 1;" (assignment_expression "iVar20 = iVar20 + 1" identifier = (binary_expression "iVar20 + 1" identifier + number_literal)) ;) (expression_statement "param_2 = (int *)0x0;" (assignment_expression "param_2 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (expression_statement "iVar13 = iVar21;" (assignment_expression "iVar13 = iVar21" identifier = identifier) ;) (if_statement "if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }" if (parenthesized_expression "(((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1))" ( (binary_expression "((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)" (parenthesized_expression "((uVar22 + 1 & 0xf) == 0)" ( (binary_expression "(uVar22 + 1 & 0xf) == 0" (parenthesized_expression "(uVar22 + 1 & 0xf)" ( (binary_expression "uVar22 + 1 & 0xf" (binary_expression "uVar22 + 1" identifier + number_literal) & number_literal) )) == number_literal) )) || (parenthesized_expression "(param_6 != uVar22 + 1)" ( (binary_expression "param_6 != uVar22 + 1" identifier != (binary_expression "uVar22 + 1" identifier + number_literal)) ))) )) (compound_statement "{\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }" { (if_statement "if (iVar21 != 0) goto LAB_00020e90;" if (parenthesized_expression "(iVar21 != 0)" ( (binary_expression "iVar21 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00020e90;" goto statement_identifier ;)) (goto_statement "goto LAB_00020d3c;" goto statement_identifier ;) })) (if_statement "if (iVar21 == 0) goto LAB_00020ffc;" if (parenthesized_expression "(iVar21 == 0)" ( (binary_expression "iVar21 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00020ffc;" goto statement_identifier ;)) (labeled_statement "LAB_00020e90:\n          param_2 = aiStack_12c;" statement_identifier : (expression_statement "param_2 = aiStack_12c;" (assignment_expression "param_2 = aiStack_12c" identifier = identifier) ;)) (expression_statement "iVar21 = 0;" (assignment_expression "iVar21 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;" (assignment_expression "*(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd" (pointer_expression "*(undefined1 *)((int)param_2 + iVar13 + 0x3d)" * (cast_expression "(undefined1 *)((int)param_2 + iVar13 + 0x3d)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + iVar13 + 0x3d)" ( (binary_expression "(int)param_2 + iVar13 + 0x3d" (binary_expression "(int)param_2 + iVar13" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "local_ef[iVar13 + 2] = 0;" (assignment_expression "local_ef[iVar13 + 2] = 0" (subscript_expression "local_ef[iVar13 + 2]" identifier [ (binary_expression "iVar13 + 2" identifier + number_literal) ]) = number_literal) ;) (expression_statement "local_ef[iVar13 + 1] = 10;" (assignment_expression "local_ef[iVar13 + 1] = 10" (subscript_expression "local_ef[iVar13 + 1]" identifier [ (binary_expression "iVar13 + 1" identifier + number_literal) ]) = number_literal) ;) (expression_statement "uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);" (assignment_expression "uVar7 = (*(code *)PTR_strlen_000adc28)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_000adc28)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_000adc28)" ( (pointer_expression "*(code *)PTR_strlen_000adc28" * (cast_expression "(code *)PTR_strlen_000adc28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "piVar12 = param_1;" (assignment_expression "piVar12 = param_1" identifier = identifier) ;) (expression_statement "(*pcVar5)(param_1,param_2,uVar7);" (call_expression "(*pcVar5)(param_1,param_2,uVar7)" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "(param_1,param_2,uVar7)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }" else (compound_statement "{\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }" { (labeled_statement "LAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }" statement_identifier : (if_statement "if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }" if (parenthesized_expression "(iVar20 == 0)" ( (binary_expression "iVar20 == 0" identifier == number_literal) )) (compound_statement "{\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }" { (if_statement "if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }" if (parenthesized_expression "(iVar21 == 0)" ( (binary_expression "iVar21 == 0" identifier == number_literal) )) (compound_statement "{\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }" { (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020de4;" goto statement_identifier ;) })) (labeled_statement "LAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);" statement_identifier : (expression_statement "bVar19 = *(byte *)(param_5 + uVar22);" (assignment_expression "bVar19 = *(byte *)(param_5 + uVar22)" identifier = (pointer_expression "*(byte *)(param_5 + uVar22)" * (cast_expression "(byte *)(param_5 + uVar22)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + uVar22)" ( (binary_expression "param_5 + uVar22" identifier + identifier) ))))) ;)) (expression_statement "iVar20 = (uint)bVar19 << 1;" (assignment_expression "iVar20 = (uint)bVar19 << 1" identifier = (binary_expression "(uint)bVar19 << 1" (cast_expression "(uint)bVar19" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal)) ;) (expression_statement "(*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);" (call_expression "(*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_000adaf0)" ( (pointer_expression "*(code *)PTR___sprintf_chk_000adaf0" * (cast_expression "(code *)PTR___sprintf_chk_000adaf0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19)" ( (pointer_expression "&local_134" & identifier) , number_literal , number_literal , (binary_expression "puVar15 + -0x5744" identifier + number_literal) , (cast_expression "(uint)bVar19" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) }) (else_clause "else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }" else (compound_statement "{\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }" { (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00020dac:\n            puVar17 = puVar4;" statement_identifier : (expression_statement "puVar17 = puVar4;" (assignment_expression "puVar17 = puVar4" identifier = identifier) ;)) (if_statement "if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }" if (parenthesized_expression "(iVar20 != 1)" ( (binary_expression "iVar20 != 1" identifier != number_literal) )) (compound_statement "{\n              puVar17 = puVar6;\n            }" { (expression_statement "puVar17 = puVar6;" (assignment_expression "puVar17 = puVar6" identifier = identifier) ;) })) (expression_statement "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);" (call_expression "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17)" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17)" ( identifier , (binary_expression "PTR_DAT_000ad2c8 + -0x5768" identifier + number_literal) , identifier , identifier ))) ;) (labeled_statement "joined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }" statement_identifier : (if_statement "if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }" if (parenthesized_expression "(iVar21 == 0)" ( (binary_expression "iVar21 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }" { (labeled_statement "LAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);" statement_identifier : (expression_statement "(*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);" (call_expression "(*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_000adaf0)" ( (pointer_expression "*(code *)PTR___sprintf_chk_000adaf0" * (cast_expression "(code *)PTR___sprintf_chk_000adaf0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4)" ( identifier , number_literal , number_literal , (binary_expression "puVar15 + -0x5750" identifier + number_literal) , (binary_expression "uVar22 - (uVar22 & 0xf)" identifier - (parenthesized_expression "(uVar22 & 0xf)" ( (binary_expression "uVar22 & 0xf" identifier & number_literal) ))) , number_literal , identifier ))) ;)) }))) (if_statement "if (iVar13 != 1) goto LAB_00020e30;" if (parenthesized_expression "(iVar13 != 1)" ( (binary_expression "iVar13 != 1" identifier != number_literal) )) (goto_statement "goto LAB_00020e30;" goto statement_identifier ;)) (expression_statement "local_132 = 0;" (assignment_expression "local_132 = 0" identifier = number_literal) ;) (expression_statement "iVar20 = 0xb0;" (assignment_expression "iVar20 = 0xb0" identifier = number_literal) ;) (expression_statement "bVar19 = 0x58;" (assignment_expression "bVar19 = 0x58" identifier = number_literal) ;) (expression_statement "local_134 = 0x5858;" (assignment_expression "local_134 = 0x5858" identifier = number_literal) ;) })))) (expression_statement "uVar18 = uVar22 & 0xf;" (assignment_expression "uVar18 = uVar22 & 0xf" identifier = (binary_expression "uVar22 & 0xf" identifier & number_literal)) ;) (expression_statement "iVar21 = uVar18 + 1;" (assignment_expression "iVar21 = uVar18 + 1" identifier = (binary_expression "uVar18 + 1" identifier + number_literal)) ;) (expression_statement "local_120[uVar18 * 3] = local_134._0_1_;" (assignment_expression "local_120[uVar18 * 3] = local_134._0_1_" (subscript_expression "local_120[uVar18 * 3]" identifier [ (binary_expression "uVar18 * 3" identifier * number_literal) ]) = (field_expression "local_134._0_1_" identifier . field_identifier)) ;) (expression_statement "local_120[uVar18 * 3 + 1] = (undefined1)local_134;" (assignment_expression "local_120[uVar18 * 3 + 1] = (undefined1)local_134" (subscript_expression "local_120[uVar18 * 3 + 1]" identifier [ (binary_expression "uVar18 * 3 + 1" (binary_expression "uVar18 * 3" identifier * number_literal) + number_literal) ]) = (cast_expression "(undefined1)local_134" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();" (assignment_expression "piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_000adafc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_000adafc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_000adafc)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_000adafc" * (cast_expression "(code *)PTR___ctype_b_loc_000adafc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "param_2 = (int *)0x2e;" (assignment_expression "param_2 = (int *)0x2e" identifier = (cast_expression "(int *)0x2e" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "piVar12 = (int *)(uVar22 + 1 & 0xf);" (assignment_expression "piVar12 = (int *)(uVar22 + 1 & 0xf)" identifier = (cast_expression "(int *)(uVar22 + 1 & 0xf)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar22 + 1 & 0xf)" ( (binary_expression "uVar22 + 1 & 0xf" (binary_expression "uVar22 + 1" identifier + number_literal) & number_literal) )))) ;) (if_statement "if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }" if (parenthesized_expression "((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0)" ( (binary_expression "(*(ushort *)(*piVar10 + iVar20) & 0x40) == 0" (parenthesized_expression "(*(ushort *)(*piVar10 + iVar20) & 0x40)" ( (binary_expression "*(ushort *)(*piVar10 + iVar20) & 0x40" (pointer_expression "*(ushort *)(*piVar10 + iVar20)" * (cast_expression "(ushort *)(*piVar10 + iVar20)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar10 + iVar20)" ( (binary_expression "*piVar10 + iVar20" (pointer_expression "*piVar10" * identifier) + identifier) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n            bVar19 = 0x2e;\n          }" { (expression_statement "bVar19 = 0x2e;" (assignment_expression "bVar19 = 0x2e" identifier = number_literal) ;) })) (expression_statement "local_ef[uVar18] = bVar19;" (assignment_expression "local_ef[uVar18] = bVar19" (subscript_expression "local_ef[uVar18]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar13 = iVar21;" (assignment_expression "iVar13 = iVar21" identifier = identifier) ;) (if_statement "if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }" if (parenthesized_expression "(piVar12 == (int *)0x0)" ( (binary_expression "piVar12 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }" { (expression_statement "iVar20 = 0;" (assignment_expression "iVar20 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020e90;" goto statement_identifier ;) })) (expression_statement "iVar20 = 0;" (assignment_expression "iVar20 = 0" identifier = number_literal) ;) (if_statement "if (param_6 == uVar22 + 1) goto LAB_00020e90;" if (parenthesized_expression "(param_6 == uVar22 + 1)" ( (binary_expression "param_6 == uVar22 + 1" identifier == (binary_expression "uVar22 + 1" identifier + number_literal)) )) (goto_statement "goto LAB_00020e90;" goto statement_identifier ;)) }))) (labeled_statement "LAB_00020d3c:\n        uVar22 = uVar22 + 1;" statement_identifier : (expression_statement "uVar22 = uVar22 + 1;" (assignment_expression "uVar22 = uVar22 + 1" identifier = (binary_expression "uVar22 + 1" identifier + number_literal)) ;)) (expression_statement "bVar1 = iVar23 < param_7;" (assignment_expression "bVar1 = iVar23 < param_7" identifier = (binary_expression "iVar23 < param_7" identifier < identifier)) ;) }) while (parenthesized_expression "((int)uVar22 < (int)param_6)" ( (binary_expression "(int)uVar22 < (int)param_6" (cast_expression "(int)uVar22" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)param_6" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) (if_statement "if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }" if (parenthesized_expression "(iVar20 != 0)" ( (binary_expression "iVar20 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }" { (labeled_statement "LAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }" statement_identifier : (if_statement "if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }" if (parenthesized_expression "(iVar20 == 1)" ( (binary_expression "iVar20 == 1" identifier == number_literal) )) (compound_statement "{\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }" { (expression_statement "puVar15 = PTR_DAT_000ad2c8 + -0x22a4;" (assignment_expression "puVar15 = PTR_DAT_000ad2c8 + -0x22a4" identifier = (binary_expression "PTR_DAT_000ad2c8 + -0x22a4" identifier + number_literal)) ;) }) (else_clause "else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }" else (compound_statement "{\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }" { (expression_statement "puVar15 = PTR_DAT_000ad2d0 + -0x5930;" (assignment_expression "puVar15 = PTR_DAT_000ad2d0 + -0x5930" identifier = (binary_expression "PTR_DAT_000ad2d0 + -0x5930" identifier + number_literal)) ;) })))) (expression_statement "param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);" (assignment_expression "param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768)" identifier = (cast_expression "(int *)(PTR_DAT_000ad2c8 + -0x5768)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000ad2c8 + -0x5768)" ( (binary_expression "PTR_DAT_000ad2c8 + -0x5768" identifier + number_literal) )))) ;) (expression_statement "piVar12 = param_1;" (assignment_expression "piVar12 = param_1" identifier = identifier) ;) (expression_statement "(*local_1b0)(param_1,param_2,iVar20,puVar15);" (call_expression "(*local_1b0)(param_1,param_2,iVar20,puVar15)" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "(param_1,param_2,iVar20,puVar15)" ( identifier , identifier , identifier , identifier ))) ;) })) })) (expression_statement "iVar23 = param_1[8];" (assignment_expression "iVar23 = param_1[8]" identifier = (subscript_expression "param_1[8]" identifier [ number_literal ])) ;) }))) (if_statement "if ((0 < iVar23) && (param_1[1] == 2)) {\n    piVar12 = (int *)*param_1;\n    (*(code *)PTR_fflush_000adcf4)();\n  }" if (parenthesized_expression "((0 < iVar23) && (param_1[1] == 2))" ( (binary_expression "(0 < iVar23) && (param_1[1] == 2)" (parenthesized_expression "(0 < iVar23)" ( (binary_expression "0 < iVar23" number_literal < identifier) )) && (parenthesized_expression "(param_1[1] == 2)" ( (binary_expression "param_1[1] == 2" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n    piVar12 = (int *)*param_1;\n    (*(code *)PTR_fflush_000adcf4)();\n  }" { (expression_statement "piVar12 = (int *)*param_1;" (assignment_expression "piVar12 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "(*(code *)PTR_fflush_000adcf4)();" (call_expression "(*(code *)PTR_fflush_000adcf4)()" (parenthesized_expression "(*(code *)PTR_fflush_000adcf4)" ( (pointer_expression "*(code *)PTR_fflush_000adcf4" * (cast_expression "(code *)PTR_fflush_000adcf4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (labeled_statement "LAB_00020d6c:\n  if (local_2c == *(int **)puVar2) {\n    return *(int **)puVar2;\n  }" statement_identifier : (if_statement "if (local_2c == *(int **)puVar2) {\n    return *(int **)puVar2;\n  }" if (parenthesized_expression "(local_2c == *(int **)puVar2)" ( (binary_expression "local_2c == *(int **)puVar2" identifier == (pointer_expression "*(int **)puVar2" * (cast_expression "(int **)puVar2" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return *(int **)puVar2;\n  }" { (return_statement "return *(int **)puVar2;" return (pointer_expression "*(int **)puVar2" * (cast_expression "(int **)puVar2" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_000adca4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000adca4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000adca4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000adca4" * (cast_expression "(code *)PTR___stack_chk_fail_000adca4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar10 = (int *)safemalloc(1,0x24);" (assignment_expression "piVar10 = (int *)safemalloc(1,0x24)" identifier = (cast_expression "(int *)safemalloc(1,0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0x24)" identifier (argument_list "(1,0x24)" ( number_literal , number_literal ))))) ;) (expression_statement "piVar10[6] = (int)piVar12;" (assignment_expression "piVar10[6] = (int)piVar12" (subscript_expression "piVar10[6]" identifier [ number_literal ]) = (cast_expression "(int)piVar12" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*piVar10 = 0;" (assignment_expression "*piVar10 = 0" (pointer_expression "*piVar10" * identifier) = number_literal) ;) (expression_statement "piVar10[1] = 0;" (assignment_expression "piVar10[1] = 0" (subscript_expression "piVar10[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar23 = conf_copy(param_2);" (assignment_expression "iVar23 = conf_copy(param_2)" identifier = (call_expression "conf_copy(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "piVar10[7] = iVar23;" (assignment_expression "piVar10[7] = iVar23" (subscript_expression "piVar10[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar23 = conf_get_int(iVar23,0x78);" (assignment_expression "iVar23 = conf_get_int(iVar23,0x78)" identifier = (call_expression "conf_get_int(iVar23,0x78)" identifier (argument_list "(iVar23,0x78)" ( identifier , number_literal )))) ;) (expression_statement "piVar10[8] = iVar23;" (assignment_expression "piVar10[8] = iVar23" (subscript_expression "piVar10[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar10[5] = 0;" (assignment_expression "piVar10[5] = 0" (subscript_expression "piVar10[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "bufchain_init(piVar10 + 2);" (call_expression "bufchain_init(piVar10 + 2)" identifier (argument_list "(piVar10 + 2)" ( (binary_expression "piVar10 + 2" identifier + number_literal) ))) ;) (return_statement "return piVar10;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid log_packet(void *handle,int direction,int type,char *texttype,void *data,int len,int n_blanks,\n               logblank_t *blanks,ulong *seq,uint downstream_id,char *additional_log_text)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  tm *ptVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  undefined *puVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  int *piVar9;\n  undefined4 *puVar10;\n  Conf *conf;\n  logblank_t *plVar11;\n  tm *ptVar12;\n  logblank_t *plVar13;\n  logblank_t *plVar14;\n  int iVar15;\n  undefined *puVar16;\n  undefined *puVar17;\n  uint uVar18;\n  byte bVar19;\n  int iVar20;\n  int iVar21;\n  uint uVar22;\n  int iVar23;\n  code *local_1b0;\n  int aiStack_190 [8];\n  int aiStack_170 [4];\n  tm tm;\n  char smalldata [5];\n  char dumpdata [80];\n  \n  puVar2 = PTR___stack_chk_guard_000adcd4;\n  plVar13 = *(logblank_t **)PTR___stack_chk_guard_000adcd4;\n  if (*(int *)((int)handle + 0x20) == 4) {\n    if (texttype != (char *)0x0) goto LAB_00020b58;\n    (*(code *)PTR_ltime_000ad4d4)(aiStack_190);\n    piVar7 = aiStack_190;\n    ptVar3 = &tm;\n    do {\n      ptVar12 = ptVar3;\n      piVar9 = piVar7;\n      piVar7 = piVar9 + 4;\n      iVar21 = piVar9[1];\n      iVar20 = piVar9[2];\n      iVar23 = piVar9[3];\n      ptVar12->tm_sec = *piVar9;\n      ptVar12->tm_min = iVar21;\n      ptVar12->tm_hour = iVar20;\n      ptVar12->tm_mday = iVar23;\n      ptVar3 = (tm *)&ptVar12->tm_mon;\n    } while (piVar7 != aiStack_170);\n    iVar20 = piVar9[5];\n    iVar23 = piVar9[6];\n    ptVar12->tm_mon = *piVar7;\n    ptVar12->tm_year = iVar20;\n    ptVar12->tm_wday = iVar23;\n    (*(code *)PTR_strftime_000adc40)(dumpdata,0x18,PTR_DAT_000ad2c8 + -0x5790);\n    if (direction == 0) {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    direction = (int)(PTR_DAT_000ad2c8 + -0x577c);\n    plVar14 = (logblank_t *)handle;\n    logprintf((LogContext *)handle,(char *)direction,puVar16,dumpdata);\n    if (0 < len) goto LAB_00020bf4;\n    iVar23 = *(int *)((int)handle + 0x20);\n  }\n  else {\n    plVar14 = plVar13;\n    if ((*(int *)((int)handle + 0x20) != 3) || (texttype == (char *)0x0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (direction == 0) {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    logprintf((LogContext *)handle,PTR_DAT_000ad2c8 + -0x57e0,puVar16);\n    if (seq != (ulong *)0x0) {\n      (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57d4,*seq);\n    }\n    (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57c8,type,type,texttype);\n    if ((downstream_id != 0) &&\n       ((*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b0,downstream_id),\n       additional_log_text != (char *)0x0)) {\n      (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b8,additional_log_text);\n    }\n    direction = (int)(PTR_DAT_000ad2c8 + -0x2500);\n    plVar14 = (logblank_t *)handle;\n    (*local_1b0)();\n    if (0 < len) {\nLAB_00020bf4:\n      puVar16 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < n_blanks;\n      do {\n        if (bVar1) {\n          plVar11 = blanks + iVar23;\n          iVar15 = plVar11->offset;\n          plVar14 = (logblank_t *)(iVar23 * 0xc + 0xc);\n          if (iVar15 + plVar11->len <= (int)uVar22) {\n            plVar14 = blanks + iVar23 + 1;\n            do {\n              plVar11 = plVar14;\n              iVar23 = iVar23 + 1;\n              if (n_blanks == iVar23) {\n                iVar15 = 0;\n                iVar23 = n_blanks;\n                goto LAB_00020c9c;\n              }\n              iVar15 = plVar11->offset;\n              plVar14 = plVar11 + 1;\n            } while (iVar15 + plVar11->len <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar15) goto LAB_00020e70;\n          iVar15 = plVar11->type;\n          if (iVar15 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            direction = 1;\n            plVar14 = (logblank_t *)dumpdata;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (plVar14,1,0x50,puVar16 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            direction = 0;\n          }\n          iVar15 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (len != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          direction = (int)dumpdata;\n          iVar21 = 0;\n          *(char *)((int)&((Conf *)(direction + 0x3c))->tree + iVar15 + 1) = '\r';\n          dumpdata[iVar15 + 0x3f] = '\0';\n          dumpdata[iVar15 + 0x3e] = '\n';\n          uVar8 = (*(code *)PTR_strlen_000adc28)(direction);\n          plVar14 = (logblank_t *)handle;\n          (*pcVar5)(handle,direction,uVar8);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar15 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)((int)data + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(smalldata,1,5,puVar16 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar15 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar15 != 1) goto LAB_00020e30;\n            smalldata[2] = '\0';\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            smalldata[0] = 'X';\n            smalldata[1] = 'X';\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          dumpdata[uVar18 * 3 + 0xc] = smalldata[0];\n          dumpdata[uVar18 * 3 + 0xd] = smalldata[1];\n          piVar7 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          direction = 0x2e;\n          plVar14 = (logblank_t *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar7 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          dumpdata[uVar18 + 0x3d] = bVar19;\n          iVar15 = iVar21;\n          if (plVar14 == (logblank_t *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (len == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < n_blanks;\n      } while ((int)uVar22 < len);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar16 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar16 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        direction = (int)(PTR_DAT_000ad2c8 + -0x5768);\n        plVar14 = (logblank_t *)handle;\n        (*local_1b0)(handle,direction,iVar20,puVar16);\n      }\n    }\n    iVar23 = *(int *)((int)handle + 0x20);\n  }\n  if ((0 < iVar23) && (*(int *)((int)handle + 4) == 2)) {\n                    /* WARNING: Load size is inaccurate */\n    plVar14 = *handle;\n    (*(code *)PTR_fflush_000adcf4)();\n  }\nLAB_00020d6c:\n  if (plVar13 == *(logblank_t **)puVar2) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  puVar10 = (undefined4 *)safemalloc(1,0x24);\n  puVar10[6] = plVar14;\n  *puVar10 = 0;\n  puVar10[1] = 0;\n  conf = conf_copy((Conf *)direction);\n  puVar10[7] = conf;\n  iVar23 = conf_get_int(conf,0x78);\n  puVar10[8] = iVar23;\n  puVar10[5] = 0;\n  bufchain_init((bufchain *)(puVar10 + 2));\n  return;\n}\n\n" comment (function_definition "void log_packet(void *handle,int direction,int type,char *texttype,void *data,int len,int n_blanks,\n               logblank_t *blanks,ulong *seq,uint downstream_id,char *additional_log_text)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  tm *ptVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  undefined *puVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  int *piVar9;\n  undefined4 *puVar10;\n  Conf *conf;\n  logblank_t *plVar11;\n  tm *ptVar12;\n  logblank_t *plVar13;\n  logblank_t *plVar14;\n  int iVar15;\n  undefined *puVar16;\n  undefined *puVar17;\n  uint uVar18;\n  byte bVar19;\n  int iVar20;\n  int iVar21;\n  uint uVar22;\n  int iVar23;\n  code *local_1b0;\n  int aiStack_190 [8];\n  int aiStack_170 [4];\n  tm tm;\n  char smalldata [5];\n  char dumpdata [80];\n  \n  puVar2 = PTR___stack_chk_guard_000adcd4;\n  plVar13 = *(logblank_t **)PTR___stack_chk_guard_000adcd4;\n  if (*(int *)((int)handle + 0x20) == 4) {\n    if (texttype != (char *)0x0) goto LAB_00020b58;\n    (*(code *)PTR_ltime_000ad4d4)(aiStack_190);\n    piVar7 = aiStack_190;\n    ptVar3 = &tm;\n    do {\n      ptVar12 = ptVar3;\n      piVar9 = piVar7;\n      piVar7 = piVar9 + 4;\n      iVar21 = piVar9[1];\n      iVar20 = piVar9[2];\n      iVar23 = piVar9[3];\n      ptVar12->tm_sec = *piVar9;\n      ptVar12->tm_min = iVar21;\n      ptVar12->tm_hour = iVar20;\n      ptVar12->tm_mday = iVar23;\n      ptVar3 = (tm *)&ptVar12->tm_mon;\n    } while (piVar7 != aiStack_170);\n    iVar20 = piVar9[5];\n    iVar23 = piVar9[6];\n    ptVar12->tm_mon = *piVar7;\n    ptVar12->tm_year = iVar20;\n    ptVar12->tm_wday = iVar23;\n    (*(code *)PTR_strftime_000adc40)(dumpdata,0x18,PTR_DAT_000ad2c8 + -0x5790);\n    if (direction == 0) {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    direction = (int)(PTR_DAT_000ad2c8 + -0x577c);\n    plVar14 = (logblank_t *)handle;\n    logprintf((LogContext *)handle,(char *)direction,puVar16,dumpdata);\n    if (0 < len) goto LAB_00020bf4;\n    iVar23 = *(int *)((int)handle + 0x20);\n  }\n  else {\n    plVar14 = plVar13;\n    if ((*(int *)((int)handle + 0x20) != 3) || (texttype == (char *)0x0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (direction == 0) {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    logprintf((LogContext *)handle,PTR_DAT_000ad2c8 + -0x57e0,puVar16);\n    if (seq != (ulong *)0x0) {\n      (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57d4,*seq);\n    }\n    (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57c8,type,type,texttype);\n    if ((downstream_id != 0) &&\n       ((*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b0,downstream_id),\n       additional_log_text != (char *)0x0)) {\n      (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b8,additional_log_text);\n    }\n    direction = (int)(PTR_DAT_000ad2c8 + -0x2500);\n    plVar14 = (logblank_t *)handle;\n    (*local_1b0)();\n    if (0 < len) {\nLAB_00020bf4:\n      puVar16 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < n_blanks;\n      do {\n        if (bVar1) {\n          plVar11 = blanks + iVar23;\n          iVar15 = plVar11->offset;\n          plVar14 = (logblank_t *)(iVar23 * 0xc + 0xc);\n          if (iVar15 + plVar11->len <= (int)uVar22) {\n            plVar14 = blanks + iVar23 + 1;\n            do {\n              plVar11 = plVar14;\n              iVar23 = iVar23 + 1;\n              if (n_blanks == iVar23) {\n                iVar15 = 0;\n                iVar23 = n_blanks;\n                goto LAB_00020c9c;\n              }\n              iVar15 = plVar11->offset;\n              plVar14 = plVar11 + 1;\n            } while (iVar15 + plVar11->len <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar15) goto LAB_00020e70;\n          iVar15 = plVar11->type;\n          if (iVar15 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            direction = 1;\n            plVar14 = (logblank_t *)dumpdata;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (plVar14,1,0x50,puVar16 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            direction = 0;\n          }\n          iVar15 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (len != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          direction = (int)dumpdata;\n          iVar21 = 0;\n          *(char *)((int)&((Conf *)(direction + 0x3c))->tree + iVar15 + 1) = '\r';\n          dumpdata[iVar15 + 0x3f] = '\0';\n          dumpdata[iVar15 + 0x3e] = '\n';\n          uVar8 = (*(code *)PTR_strlen_000adc28)(direction);\n          plVar14 = (logblank_t *)handle;\n          (*pcVar5)(handle,direction,uVar8);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar15 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)((int)data + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(smalldata,1,5,puVar16 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar15 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar15 != 1) goto LAB_00020e30;\n            smalldata[2] = '\0';\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            smalldata[0] = 'X';\n            smalldata[1] = 'X';\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          dumpdata[uVar18 * 3 + 0xc] = smalldata[0];\n          dumpdata[uVar18 * 3 + 0xd] = smalldata[1];\n          piVar7 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          direction = 0x2e;\n          plVar14 = (logblank_t *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar7 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          dumpdata[uVar18 + 0x3d] = bVar19;\n          iVar15 = iVar21;\n          if (plVar14 == (logblank_t *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (len == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < n_blanks;\n      } while ((int)uVar22 < len);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar16 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar16 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        direction = (int)(PTR_DAT_000ad2c8 + -0x5768);\n        plVar14 = (logblank_t *)handle;\n        (*local_1b0)(handle,direction,iVar20,puVar16);\n      }\n    }\n    iVar23 = *(int *)((int)handle + 0x20);\n  }\n  if ((0 < iVar23) && (*(int *)((int)handle + 4) == 2)) {\n                    /* WARNING: Load size is inaccurate */\n    plVar14 = *handle;\n    (*(code *)PTR_fflush_000adcf4)();\n  }\nLAB_00020d6c:\n  if (plVar13 == *(logblank_t **)puVar2) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  puVar10 = (undefined4 *)safemalloc(1,0x24);\n  puVar10[6] = plVar14;\n  *puVar10 = 0;\n  puVar10[1] = 0;\n  conf = conf_copy((Conf *)direction);\n  puVar10[7] = conf;\n  iVar23 = conf_get_int(conf,0x78);\n  puVar10[8] = iVar23;\n  puVar10[5] = 0;\n  bufchain_init((bufchain *)(puVar10 + 2));\n  return;\n}" primitive_type (function_declarator "log_packet(void *handle,int direction,int type,char *texttype,void *data,int len,int n_blanks,\n               logblank_t *blanks,ulong *seq,uint downstream_id,char *additional_log_text)" identifier (parameter_list "(void *handle,int direction,int type,char *texttype,void *data,int len,int n_blanks,\n               logblank_t *blanks,ulong *seq,uint downstream_id,char *additional_log_text)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "int direction" primitive_type identifier) , (parameter_declaration "int type" primitive_type identifier) , (parameter_declaration "char *texttype" primitive_type (pointer_declarator "*texttype" * identifier)) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) , (parameter_declaration "int len" primitive_type identifier) , (parameter_declaration "int n_blanks" primitive_type identifier) , (parameter_declaration "logblank_t *blanks" type_identifier (pointer_declarator "*blanks" * identifier)) , (parameter_declaration "ulong *seq" type_identifier (pointer_declarator "*seq" * identifier)) , (parameter_declaration "uint downstream_id" type_identifier identifier) , (parameter_declaration "char *additional_log_text" primitive_type (pointer_declarator "*additional_log_text" * identifier)) ))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  tm *ptVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  undefined *puVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  int *piVar9;\n  undefined4 *puVar10;\n  Conf *conf;\n  logblank_t *plVar11;\n  tm *ptVar12;\n  logblank_t *plVar13;\n  logblank_t *plVar14;\n  int iVar15;\n  undefined *puVar16;\n  undefined *puVar17;\n  uint uVar18;\n  byte bVar19;\n  int iVar20;\n  int iVar21;\n  uint uVar22;\n  int iVar23;\n  code *local_1b0;\n  int aiStack_190 [8];\n  int aiStack_170 [4];\n  tm tm;\n  char smalldata [5];\n  char dumpdata [80];\n  \n  puVar2 = PTR___stack_chk_guard_000adcd4;\n  plVar13 = *(logblank_t **)PTR___stack_chk_guard_000adcd4;\n  if (*(int *)((int)handle + 0x20) == 4) {\n    if (texttype != (char *)0x0) goto LAB_00020b58;\n    (*(code *)PTR_ltime_000ad4d4)(aiStack_190);\n    piVar7 = aiStack_190;\n    ptVar3 = &tm;\n    do {\n      ptVar12 = ptVar3;\n      piVar9 = piVar7;\n      piVar7 = piVar9 + 4;\n      iVar21 = piVar9[1];\n      iVar20 = piVar9[2];\n      iVar23 = piVar9[3];\n      ptVar12->tm_sec = *piVar9;\n      ptVar12->tm_min = iVar21;\n      ptVar12->tm_hour = iVar20;\n      ptVar12->tm_mday = iVar23;\n      ptVar3 = (tm *)&ptVar12->tm_mon;\n    } while (piVar7 != aiStack_170);\n    iVar20 = piVar9[5];\n    iVar23 = piVar9[6];\n    ptVar12->tm_mon = *piVar7;\n    ptVar12->tm_year = iVar20;\n    ptVar12->tm_wday = iVar23;\n    (*(code *)PTR_strftime_000adc40)(dumpdata,0x18,PTR_DAT_000ad2c8 + -0x5790);\n    if (direction == 0) {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    direction = (int)(PTR_DAT_000ad2c8 + -0x577c);\n    plVar14 = (logblank_t *)handle;\n    logprintf((LogContext *)handle,(char *)direction,puVar16,dumpdata);\n    if (0 < len) goto LAB_00020bf4;\n    iVar23 = *(int *)((int)handle + 0x20);\n  }\n  else {\n    plVar14 = plVar13;\n    if ((*(int *)((int)handle + 0x20) != 3) || (texttype == (char *)0x0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (direction == 0) {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    logprintf((LogContext *)handle,PTR_DAT_000ad2c8 + -0x57e0,puVar16);\n    if (seq != (ulong *)0x0) {\n      (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57d4,*seq);\n    }\n    (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57c8,type,type,texttype);\n    if ((downstream_id != 0) &&\n       ((*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b0,downstream_id),\n       additional_log_text != (char *)0x0)) {\n      (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b8,additional_log_text);\n    }\n    direction = (int)(PTR_DAT_000ad2c8 + -0x2500);\n    plVar14 = (logblank_t *)handle;\n    (*local_1b0)();\n    if (0 < len) {\nLAB_00020bf4:\n      puVar16 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < n_blanks;\n      do {\n        if (bVar1) {\n          plVar11 = blanks + iVar23;\n          iVar15 = plVar11->offset;\n          plVar14 = (logblank_t *)(iVar23 * 0xc + 0xc);\n          if (iVar15 + plVar11->len <= (int)uVar22) {\n            plVar14 = blanks + iVar23 + 1;\n            do {\n              plVar11 = plVar14;\n              iVar23 = iVar23 + 1;\n              if (n_blanks == iVar23) {\n                iVar15 = 0;\n                iVar23 = n_blanks;\n                goto LAB_00020c9c;\n              }\n              iVar15 = plVar11->offset;\n              plVar14 = plVar11 + 1;\n            } while (iVar15 + plVar11->len <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar15) goto LAB_00020e70;\n          iVar15 = plVar11->type;\n          if (iVar15 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            direction = 1;\n            plVar14 = (logblank_t *)dumpdata;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (plVar14,1,0x50,puVar16 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            direction = 0;\n          }\n          iVar15 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (len != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          direction = (int)dumpdata;\n          iVar21 = 0;\n          *(char *)((int)&((Conf *)(direction + 0x3c))->tree + iVar15 + 1) = '\r';\n          dumpdata[iVar15 + 0x3f] = '\0';\n          dumpdata[iVar15 + 0x3e] = '\n';\n          uVar8 = (*(code *)PTR_strlen_000adc28)(direction);\n          plVar14 = (logblank_t *)handle;\n          (*pcVar5)(handle,direction,uVar8);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar15 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)((int)data + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(smalldata,1,5,puVar16 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar15 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar15 != 1) goto LAB_00020e30;\n            smalldata[2] = '\0';\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            smalldata[0] = 'X';\n            smalldata[1] = 'X';\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          dumpdata[uVar18 * 3 + 0xc] = smalldata[0];\n          dumpdata[uVar18 * 3 + 0xd] = smalldata[1];\n          piVar7 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          direction = 0x2e;\n          plVar14 = (logblank_t *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar7 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          dumpdata[uVar18 + 0x3d] = bVar19;\n          iVar15 = iVar21;\n          if (plVar14 == (logblank_t *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (len == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < n_blanks;\n      } while ((int)uVar22 < len);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar16 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar16 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        direction = (int)(PTR_DAT_000ad2c8 + -0x5768);\n        plVar14 = (logblank_t *)handle;\n        (*local_1b0)(handle,direction,iVar20,puVar16);\n      }\n    }\n    iVar23 = *(int *)((int)handle + 0x20);\n  }\n  if ((0 < iVar23) && (*(int *)((int)handle + 4) == 2)) {\n                    /* WARNING: Load size is inaccurate */\n    plVar14 = *handle;\n    (*(code *)PTR_fflush_000adcf4)();\n  }\nLAB_00020d6c:\n  if (plVar13 == *(logblank_t **)puVar2) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  puVar10 = (undefined4 *)safemalloc(1,0x24);\n  puVar10[6] = plVar14;\n  *puVar10 = 0;\n  puVar10[1] = 0;\n  conf = conf_copy((Conf *)direction);\n  puVar10[7] = conf;\n  iVar23 = conf_get_int(conf,0x78);\n  puVar10[8] = iVar23;\n  puVar10[5] = 0;\n  bufchain_init((bufchain *)(puVar10 + 2));\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "tm *ptVar3;" type_identifier (pointer_declarator "*ptVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "undefined4 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "Conf *conf;" type_identifier (pointer_declarator "*conf" * identifier) ;) (declaration "logblank_t *plVar11;" type_identifier (pointer_declarator "*plVar11" * identifier) ;) (declaration "tm *ptVar12;" type_identifier (pointer_declarator "*ptVar12" * identifier) ;) (declaration "logblank_t *plVar13;" type_identifier (pointer_declarator "*plVar13" * identifier) ;) (declaration "logblank_t *plVar14;" type_identifier (pointer_declarator "*plVar14" * identifier) ;) (declaration "int iVar15;" primitive_type identifier ;) (declaration "undefined *puVar16;" type_identifier (pointer_declarator "*puVar16" * identifier) ;) (declaration "undefined *puVar17;" type_identifier (pointer_declarator "*puVar17" * identifier) ;) (declaration "uint uVar18;" type_identifier identifier ;) (declaration "byte bVar19;" type_identifier identifier ;) (declaration "int iVar20;" primitive_type identifier ;) (declaration "int iVar21;" primitive_type identifier ;) (declaration "uint uVar22;" type_identifier identifier ;) (declaration "int iVar23;" primitive_type identifier ;) (declaration "code *local_1b0;" type_identifier (pointer_declarator "*local_1b0" * identifier) ;) (declaration "int aiStack_190 [8];" primitive_type (array_declarator "aiStack_190 [8]" identifier [ number_literal ]) ;) (declaration "int aiStack_170 [4];" primitive_type (array_declarator "aiStack_170 [4]" identifier [ number_literal ]) ;) (declaration "tm tm;" type_identifier identifier ;) (declaration "char smalldata [5];" primitive_type (array_declarator "smalldata [5]" identifier [ number_literal ]) ;) (declaration "char dumpdata [80];" primitive_type (array_declarator "dumpdata [80]" identifier [ number_literal ]) ;) (expression_statement "puVar2 = PTR___stack_chk_guard_000adcd4;" (assignment_expression "puVar2 = PTR___stack_chk_guard_000adcd4" identifier = identifier) ;) (expression_statement "plVar13 = *(logblank_t **)PTR___stack_chk_guard_000adcd4;" (assignment_expression "plVar13 = *(logblank_t **)PTR___stack_chk_guard_000adcd4" identifier = (pointer_expression "*(logblank_t **)PTR___stack_chk_guard_000adcd4" * (cast_expression "(logblank_t **)PTR___stack_chk_guard_000adcd4" ( (type_descriptor "logblank_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (*(int *)((int)handle + 0x20) == 4) {\n    if (texttype != (char *)0x0) goto LAB_00020b58;\n    (*(code *)PTR_ltime_000ad4d4)(aiStack_190);\n    piVar7 = aiStack_190;\n    ptVar3 = &tm;\n    do {\n      ptVar12 = ptVar3;\n      piVar9 = piVar7;\n      piVar7 = piVar9 + 4;\n      iVar21 = piVar9[1];\n      iVar20 = piVar9[2];\n      iVar23 = piVar9[3];\n      ptVar12->tm_sec = *piVar9;\n      ptVar12->tm_min = iVar21;\n      ptVar12->tm_hour = iVar20;\n      ptVar12->tm_mday = iVar23;\n      ptVar3 = (tm *)&ptVar12->tm_mon;\n    } while (piVar7 != aiStack_170);\n    iVar20 = piVar9[5];\n    iVar23 = piVar9[6];\n    ptVar12->tm_mon = *piVar7;\n    ptVar12->tm_year = iVar20;\n    ptVar12->tm_wday = iVar23;\n    (*(code *)PTR_strftime_000adc40)(dumpdata,0x18,PTR_DAT_000ad2c8 + -0x5790);\n    if (direction == 0) {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    direction = (int)(PTR_DAT_000ad2c8 + -0x577c);\n    plVar14 = (logblank_t *)handle;\n    logprintf((LogContext *)handle,(char *)direction,puVar16,dumpdata);\n    if (0 < len) goto LAB_00020bf4;\n    iVar23 = *(int *)((int)handle + 0x20);\n  }\n  else {\n    plVar14 = plVar13;\n    if ((*(int *)((int)handle + 0x20) != 3) || (texttype == (char *)0x0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (direction == 0) {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    logprintf((LogContext *)handle,PTR_DAT_000ad2c8 + -0x57e0,puVar16);\n    if (seq != (ulong *)0x0) {\n      (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57d4,*seq);\n    }\n    (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57c8,type,type,texttype);\n    if ((downstream_id != 0) &&\n       ((*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b0,downstream_id),\n       additional_log_text != (char *)0x0)) {\n      (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b8,additional_log_text);\n    }\n    direction = (int)(PTR_DAT_000ad2c8 + -0x2500);\n    plVar14 = (logblank_t *)handle;\n    (*local_1b0)();\n    if (0 < len) {\nLAB_00020bf4:\n      puVar16 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < n_blanks;\n      do {\n        if (bVar1) {\n          plVar11 = blanks + iVar23;\n          iVar15 = plVar11->offset;\n          plVar14 = (logblank_t *)(iVar23 * 0xc + 0xc);\n          if (iVar15 + plVar11->len <= (int)uVar22) {\n            plVar14 = blanks + iVar23 + 1;\n            do {\n              plVar11 = plVar14;\n              iVar23 = iVar23 + 1;\n              if (n_blanks == iVar23) {\n                iVar15 = 0;\n                iVar23 = n_blanks;\n                goto LAB_00020c9c;\n              }\n              iVar15 = plVar11->offset;\n              plVar14 = plVar11 + 1;\n            } while (iVar15 + plVar11->len <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar15) goto LAB_00020e70;\n          iVar15 = plVar11->type;\n          if (iVar15 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            direction = 1;\n            plVar14 = (logblank_t *)dumpdata;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (plVar14,1,0x50,puVar16 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            direction = 0;\n          }\n          iVar15 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (len != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          direction = (int)dumpdata;\n          iVar21 = 0;\n          *(char *)((int)&((Conf *)(direction + 0x3c))->tree + iVar15 + 1) = '\r';\n          dumpdata[iVar15 + 0x3f] = '\0';\n          dumpdata[iVar15 + 0x3e] = '\n';\n          uVar8 = (*(code *)PTR_strlen_000adc28)(direction);\n          plVar14 = (logblank_t *)handle;\n          (*pcVar5)(handle,direction,uVar8);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar15 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)((int)data + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(smalldata,1,5,puVar16 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar15 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar15 != 1) goto LAB_00020e30;\n            smalldata[2] = '\0';\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            smalldata[0] = 'X';\n            smalldata[1] = 'X';\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          dumpdata[uVar18 * 3 + 0xc] = smalldata[0];\n          dumpdata[uVar18 * 3 + 0xd] = smalldata[1];\n          piVar7 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          direction = 0x2e;\n          plVar14 = (logblank_t *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar7 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          dumpdata[uVar18 + 0x3d] = bVar19;\n          iVar15 = iVar21;\n          if (plVar14 == (logblank_t *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (len == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < n_blanks;\n      } while ((int)uVar22 < len);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar16 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar16 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        direction = (int)(PTR_DAT_000ad2c8 + -0x5768);\n        plVar14 = (logblank_t *)handle;\n        (*local_1b0)(handle,direction,iVar20,puVar16);\n      }\n    }\n    iVar23 = *(int *)((int)handle + 0x20);\n  }" if (parenthesized_expression "(*(int *)((int)handle + 0x20) == 4)" ( (binary_expression "*(int *)((int)handle + 0x20) == 4" (pointer_expression "*(int *)((int)handle + 0x20)" * (cast_expression "(int *)((int)handle + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x20)" ( (binary_expression "(int)handle + 0x20" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (texttype != (char *)0x0) goto LAB_00020b58;\n    (*(code *)PTR_ltime_000ad4d4)(aiStack_190);\n    piVar7 = aiStack_190;\n    ptVar3 = &tm;\n    do {\n      ptVar12 = ptVar3;\n      piVar9 = piVar7;\n      piVar7 = piVar9 + 4;\n      iVar21 = piVar9[1];\n      iVar20 = piVar9[2];\n      iVar23 = piVar9[3];\n      ptVar12->tm_sec = *piVar9;\n      ptVar12->tm_min = iVar21;\n      ptVar12->tm_hour = iVar20;\n      ptVar12->tm_mday = iVar23;\n      ptVar3 = (tm *)&ptVar12->tm_mon;\n    } while (piVar7 != aiStack_170);\n    iVar20 = piVar9[5];\n    iVar23 = piVar9[6];\n    ptVar12->tm_mon = *piVar7;\n    ptVar12->tm_year = iVar20;\n    ptVar12->tm_wday = iVar23;\n    (*(code *)PTR_strftime_000adc40)(dumpdata,0x18,PTR_DAT_000ad2c8 + -0x5790);\n    if (direction == 0) {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    direction = (int)(PTR_DAT_000ad2c8 + -0x577c);\n    plVar14 = (logblank_t *)handle;\n    logprintf((LogContext *)handle,(char *)direction,puVar16,dumpdata);\n    if (0 < len) goto LAB_00020bf4;\n    iVar23 = *(int *)((int)handle + 0x20);\n  }" { (if_statement "if (texttype != (char *)0x0) goto LAB_00020b58;" if (parenthesized_expression "(texttype != (char *)0x0)" ( (binary_expression "texttype != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00020b58;" goto statement_identifier ;)) (expression_statement "(*(code *)PTR_ltime_000ad4d4)(aiStack_190);" (call_expression "(*(code *)PTR_ltime_000ad4d4)(aiStack_190)" (parenthesized_expression "(*(code *)PTR_ltime_000ad4d4)" ( (pointer_expression "*(code *)PTR_ltime_000ad4d4" * (cast_expression "(code *)PTR_ltime_000ad4d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(aiStack_190)" ( identifier ))) ;) (expression_statement "piVar7 = aiStack_190;" (assignment_expression "piVar7 = aiStack_190" identifier = identifier) ;) (expression_statement "ptVar3 = &tm;" (assignment_expression "ptVar3 = &tm" identifier = (pointer_expression "&tm" & identifier)) ;) (do_statement "do {\n      ptVar12 = ptVar3;\n      piVar9 = piVar7;\n      piVar7 = piVar9 + 4;\n      iVar21 = piVar9[1];\n      iVar20 = piVar9[2];\n      iVar23 = piVar9[3];\n      ptVar12->tm_sec = *piVar9;\n      ptVar12->tm_min = iVar21;\n      ptVar12->tm_hour = iVar20;\n      ptVar12->tm_mday = iVar23;\n      ptVar3 = (tm *)&ptVar12->tm_mon;\n    } while (piVar7 != aiStack_170);" do (compound_statement "{\n      ptVar12 = ptVar3;\n      piVar9 = piVar7;\n      piVar7 = piVar9 + 4;\n      iVar21 = piVar9[1];\n      iVar20 = piVar9[2];\n      iVar23 = piVar9[3];\n      ptVar12->tm_sec = *piVar9;\n      ptVar12->tm_min = iVar21;\n      ptVar12->tm_hour = iVar20;\n      ptVar12->tm_mday = iVar23;\n      ptVar3 = (tm *)&ptVar12->tm_mon;\n    }" { (expression_statement "ptVar12 = ptVar3;" (assignment_expression "ptVar12 = ptVar3" identifier = identifier) ;) (expression_statement "piVar9 = piVar7;" (assignment_expression "piVar9 = piVar7" identifier = identifier) ;) (expression_statement "piVar7 = piVar9 + 4;" (assignment_expression "piVar7 = piVar9 + 4" identifier = (binary_expression "piVar9 + 4" identifier + number_literal)) ;) (expression_statement "iVar21 = piVar9[1];" (assignment_expression "iVar21 = piVar9[1]" identifier = (subscript_expression "piVar9[1]" identifier [ number_literal ])) ;) (expression_statement "iVar20 = piVar9[2];" (assignment_expression "iVar20 = piVar9[2]" identifier = (subscript_expression "piVar9[2]" identifier [ number_literal ])) ;) (expression_statement "iVar23 = piVar9[3];" (assignment_expression "iVar23 = piVar9[3]" identifier = (subscript_expression "piVar9[3]" identifier [ number_literal ])) ;) (expression_statement "ptVar12->tm_sec = *piVar9;" (assignment_expression "ptVar12->tm_sec = *piVar9" (field_expression "ptVar12->tm_sec" identifier -> field_identifier) = (pointer_expression "*piVar9" * identifier)) ;) (expression_statement "ptVar12->tm_min = iVar21;" (assignment_expression "ptVar12->tm_min = iVar21" (field_expression "ptVar12->tm_min" identifier -> field_identifier) = identifier) ;) (expression_statement "ptVar12->tm_hour = iVar20;" (assignment_expression "ptVar12->tm_hour = iVar20" (field_expression "ptVar12->tm_hour" identifier -> field_identifier) = identifier) ;) (expression_statement "ptVar12->tm_mday = iVar23;" (assignment_expression "ptVar12->tm_mday = iVar23" (field_expression "ptVar12->tm_mday" identifier -> field_identifier) = identifier) ;) (expression_statement "ptVar3 = (tm *)&ptVar12->tm_mon;" (assignment_expression "ptVar3 = (tm *)&ptVar12->tm_mon" identifier = (cast_expression "(tm *)&ptVar12->tm_mon" ( (type_descriptor "tm *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&ptVar12->tm_mon" & (field_expression "ptVar12->tm_mon" identifier -> field_identifier)))) ;) }) while (parenthesized_expression "(piVar7 != aiStack_170)" ( (binary_expression "piVar7 != aiStack_170" identifier != identifier) )) ;) (expression_statement "iVar20 = piVar9[5];" (assignment_expression "iVar20 = piVar9[5]" identifier = (subscript_expression "piVar9[5]" identifier [ number_literal ])) ;) (expression_statement "iVar23 = piVar9[6];" (assignment_expression "iVar23 = piVar9[6]" identifier = (subscript_expression "piVar9[6]" identifier [ number_literal ])) ;) (expression_statement "ptVar12->tm_mon = *piVar7;" (assignment_expression "ptVar12->tm_mon = *piVar7" (field_expression "ptVar12->tm_mon" identifier -> field_identifier) = (pointer_expression "*piVar7" * identifier)) ;) (expression_statement "ptVar12->tm_year = iVar20;" (assignment_expression "ptVar12->tm_year = iVar20" (field_expression "ptVar12->tm_year" identifier -> field_identifier) = identifier) ;) (expression_statement "ptVar12->tm_wday = iVar23;" (assignment_expression "ptVar12->tm_wday = iVar23" (field_expression "ptVar12->tm_wday" identifier -> field_identifier) = identifier) ;) (expression_statement "(*(code *)PTR_strftime_000adc40)(dumpdata,0x18,PTR_DAT_000ad2c8 + -0x5790);" (call_expression "(*(code *)PTR_strftime_000adc40)(dumpdata,0x18,PTR_DAT_000ad2c8 + -0x5790)" (parenthesized_expression "(*(code *)PTR_strftime_000adc40)" ( (pointer_expression "*(code *)PTR_strftime_000adc40" * (cast_expression "(code *)PTR_strftime_000adc40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dumpdata,0x18,PTR_DAT_000ad2c8 + -0x5790)" ( identifier , number_literal , (binary_expression "PTR_DAT_000ad2c8 + -0x5790" identifier + number_literal) ))) ;) (if_statement "if (direction == 0) {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" if (parenthesized_expression "(direction == 0)" ( (binary_expression "direction == 0" identifier == number_literal) )) (compound_statement "{\n      puVar16 = PTR_DAT_000ad2c8 + -0x57f8;\n    }" { (expression_statement "puVar16 = PTR_DAT_000ad2c8 + -0x57f8;" (assignment_expression "puVar16 = PTR_DAT_000ad2c8 + -0x57f8" identifier = (binary_expression "PTR_DAT_000ad2c8 + -0x57f8" identifier + number_literal)) ;) }) (else_clause "else {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" else (compound_statement "{\n      puVar16 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" { (expression_statement "puVar16 = PTR_DAT_000ad2c8 + -0x57ec;" (assignment_expression "puVar16 = PTR_DAT_000ad2c8 + -0x57ec" identifier = (binary_expression "PTR_DAT_000ad2c8 + -0x57ec" identifier + number_literal)) ;) }))) (expression_statement "local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);" (assignment_expression "local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150)" identifier = (cast_expression "(code *)(PTR_LAB_000ad2c4 + -0x150)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000ad2c4 + -0x150)" ( (binary_expression "PTR_LAB_000ad2c4 + -0x150" identifier + number_literal) )))) ;) (expression_statement "direction = (int)(PTR_DAT_000ad2c8 + -0x577c);" (assignment_expression "direction = (int)(PTR_DAT_000ad2c8 + -0x577c)" identifier = (cast_expression "(int)(PTR_DAT_000ad2c8 + -0x577c)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(PTR_DAT_000ad2c8 + -0x577c)" ( (binary_expression "PTR_DAT_000ad2c8 + -0x577c" identifier + number_literal) )))) ;) (expression_statement "plVar14 = (logblank_t *)handle;" (assignment_expression "plVar14 = (logblank_t *)handle" identifier = (cast_expression "(logblank_t *)handle" ( (type_descriptor "logblank_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "logprintf((LogContext *)handle,(char *)direction,puVar16,dumpdata);" (call_expression "logprintf((LogContext *)handle,(char *)direction,puVar16,dumpdata)" identifier (argument_list "((LogContext *)handle,(char *)direction,puVar16,dumpdata)" ( (cast_expression "(LogContext *)handle" ( (type_descriptor "LogContext *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(char *)direction" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;) (if_statement "if (0 < len) goto LAB_00020bf4;" if (parenthesized_expression "(0 < len)" ( (binary_expression "0 < len" number_literal < identifier) )) (goto_statement "goto LAB_00020bf4;" goto statement_identifier ;)) (expression_statement "iVar23 = *(int *)((int)handle + 0x20);" (assignment_expression "iVar23 = *(int *)((int)handle + 0x20)" identifier = (pointer_expression "*(int *)((int)handle + 0x20)" * (cast_expression "(int *)((int)handle + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x20)" ( (binary_expression "(int)handle + 0x20" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }) (else_clause "else {\n    plVar14 = plVar13;\n    if ((*(int *)((int)handle + 0x20) != 3) || (texttype == (char *)0x0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (direction == 0) {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    logprintf((LogContext *)handle,PTR_DAT_000ad2c8 + -0x57e0,puVar16);\n    if (seq != (ulong *)0x0) {\n      (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57d4,*seq);\n    }\n    (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57c8,type,type,texttype);\n    if ((downstream_id != 0) &&\n       ((*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b0,downstream_id),\n       additional_log_text != (char *)0x0)) {\n      (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b8,additional_log_text);\n    }\n    direction = (int)(PTR_DAT_000ad2c8 + -0x2500);\n    plVar14 = (logblank_t *)handle;\n    (*local_1b0)();\n    if (0 < len) {\nLAB_00020bf4:\n      puVar16 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < n_blanks;\n      do {\n        if (bVar1) {\n          plVar11 = blanks + iVar23;\n          iVar15 = plVar11->offset;\n          plVar14 = (logblank_t *)(iVar23 * 0xc + 0xc);\n          if (iVar15 + plVar11->len <= (int)uVar22) {\n            plVar14 = blanks + iVar23 + 1;\n            do {\n              plVar11 = plVar14;\n              iVar23 = iVar23 + 1;\n              if (n_blanks == iVar23) {\n                iVar15 = 0;\n                iVar23 = n_blanks;\n                goto LAB_00020c9c;\n              }\n              iVar15 = plVar11->offset;\n              plVar14 = plVar11 + 1;\n            } while (iVar15 + plVar11->len <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar15) goto LAB_00020e70;\n          iVar15 = plVar11->type;\n          if (iVar15 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            direction = 1;\n            plVar14 = (logblank_t *)dumpdata;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (plVar14,1,0x50,puVar16 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            direction = 0;\n          }\n          iVar15 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (len != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          direction = (int)dumpdata;\n          iVar21 = 0;\n          *(char *)((int)&((Conf *)(direction + 0x3c))->tree + iVar15 + 1) = '\r';\n          dumpdata[iVar15 + 0x3f] = '\0';\n          dumpdata[iVar15 + 0x3e] = '\n';\n          uVar8 = (*(code *)PTR_strlen_000adc28)(direction);\n          plVar14 = (logblank_t *)handle;\n          (*pcVar5)(handle,direction,uVar8);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar15 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)((int)data + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(smalldata,1,5,puVar16 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar15 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar15 != 1) goto LAB_00020e30;\n            smalldata[2] = '\0';\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            smalldata[0] = 'X';\n            smalldata[1] = 'X';\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          dumpdata[uVar18 * 3 + 0xc] = smalldata[0];\n          dumpdata[uVar18 * 3 + 0xd] = smalldata[1];\n          piVar7 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          direction = 0x2e;\n          plVar14 = (logblank_t *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar7 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          dumpdata[uVar18 + 0x3d] = bVar19;\n          iVar15 = iVar21;\n          if (plVar14 == (logblank_t *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (len == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < n_blanks;\n      } while ((int)uVar22 < len);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar16 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar16 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        direction = (int)(PTR_DAT_000ad2c8 + -0x5768);\n        plVar14 = (logblank_t *)handle;\n        (*local_1b0)(handle,direction,iVar20,puVar16);\n      }\n    }\n    iVar23 = *(int *)((int)handle + 0x20);\n  }" else (compound_statement "{\n    plVar14 = plVar13;\n    if ((*(int *)((int)handle + 0x20) != 3) || (texttype == (char *)0x0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (direction == 0) {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    logprintf((LogContext *)handle,PTR_DAT_000ad2c8 + -0x57e0,puVar16);\n    if (seq != (ulong *)0x0) {\n      (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57d4,*seq);\n    }\n    (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57c8,type,type,texttype);\n    if ((downstream_id != 0) &&\n       ((*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b0,downstream_id),\n       additional_log_text != (char *)0x0)) {\n      (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b8,additional_log_text);\n    }\n    direction = (int)(PTR_DAT_000ad2c8 + -0x2500);\n    plVar14 = (logblank_t *)handle;\n    (*local_1b0)();\n    if (0 < len) {\nLAB_00020bf4:\n      puVar16 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < n_blanks;\n      do {\n        if (bVar1) {\n          plVar11 = blanks + iVar23;\n          iVar15 = plVar11->offset;\n          plVar14 = (logblank_t *)(iVar23 * 0xc + 0xc);\n          if (iVar15 + plVar11->len <= (int)uVar22) {\n            plVar14 = blanks + iVar23 + 1;\n            do {\n              plVar11 = plVar14;\n              iVar23 = iVar23 + 1;\n              if (n_blanks == iVar23) {\n                iVar15 = 0;\n                iVar23 = n_blanks;\n                goto LAB_00020c9c;\n              }\n              iVar15 = plVar11->offset;\n              plVar14 = plVar11 + 1;\n            } while (iVar15 + plVar11->len <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar15) goto LAB_00020e70;\n          iVar15 = plVar11->type;\n          if (iVar15 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            direction = 1;\n            plVar14 = (logblank_t *)dumpdata;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (plVar14,1,0x50,puVar16 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            direction = 0;\n          }\n          iVar15 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (len != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          direction = (int)dumpdata;\n          iVar21 = 0;\n          *(char *)((int)&((Conf *)(direction + 0x3c))->tree + iVar15 + 1) = '\r';\n          dumpdata[iVar15 + 0x3f] = '\0';\n          dumpdata[iVar15 + 0x3e] = '\n';\n          uVar8 = (*(code *)PTR_strlen_000adc28)(direction);\n          plVar14 = (logblank_t *)handle;\n          (*pcVar5)(handle,direction,uVar8);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar15 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)((int)data + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(smalldata,1,5,puVar16 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar15 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar15 != 1) goto LAB_00020e30;\n            smalldata[2] = '\0';\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            smalldata[0] = 'X';\n            smalldata[1] = 'X';\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          dumpdata[uVar18 * 3 + 0xc] = smalldata[0];\n          dumpdata[uVar18 * 3 + 0xd] = smalldata[1];\n          piVar7 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          direction = 0x2e;\n          plVar14 = (logblank_t *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar7 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          dumpdata[uVar18 + 0x3d] = bVar19;\n          iVar15 = iVar21;\n          if (plVar14 == (logblank_t *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (len == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < n_blanks;\n      } while ((int)uVar22 < len);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar16 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar16 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        direction = (int)(PTR_DAT_000ad2c8 + -0x5768);\n        plVar14 = (logblank_t *)handle;\n        (*local_1b0)(handle,direction,iVar20,puVar16);\n      }\n    }\n    iVar23 = *(int *)((int)handle + 0x20);\n  }" { (expression_statement "plVar14 = plVar13;" (assignment_expression "plVar14 = plVar13" identifier = identifier) ;) (if_statement "if ((*(int *)((int)handle + 0x20) != 3) || (texttype == (char *)0x0)) goto LAB_00020d6c;" if (parenthesized_expression "((*(int *)((int)handle + 0x20) != 3) || (texttype == (char *)0x0))" ( (binary_expression "(*(int *)((int)handle + 0x20) != 3) || (texttype == (char *)0x0)" (parenthesized_expression "(*(int *)((int)handle + 0x20) != 3)" ( (binary_expression "*(int *)((int)handle + 0x20) != 3" (pointer_expression "*(int *)((int)handle + 0x20)" * (cast_expression "(int *)((int)handle + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x20)" ( (binary_expression "(int)handle + 0x20" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) || (parenthesized_expression "(texttype == (char *)0x0)" ( (binary_expression "texttype == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (goto_statement "goto LAB_00020d6c;" goto statement_identifier ;)) (labeled_statement "LAB_00020b58:\n    if (direction == 0) {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" statement_identifier : (if_statement "if (direction == 0) {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" if (parenthesized_expression "(direction == 0)" ( (binary_expression "direction == 0" identifier == number_literal) )) (compound_statement "{\n      puVar16 = PTR_DAT_000ad2c8 + -0x57f8;\n    }" { (expression_statement "puVar16 = PTR_DAT_000ad2c8 + -0x57f8;" (assignment_expression "puVar16 = PTR_DAT_000ad2c8 + -0x57f8" identifier = (binary_expression "PTR_DAT_000ad2c8 + -0x57f8" identifier + number_literal)) ;) }) (else_clause "else {\n      puVar16 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" else (compound_statement "{\n      puVar16 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" { (expression_statement "puVar16 = PTR_DAT_000ad2c8 + -0x57ec;" (assignment_expression "puVar16 = PTR_DAT_000ad2c8 + -0x57ec" identifier = (binary_expression "PTR_DAT_000ad2c8 + -0x57ec" identifier + number_literal)) ;) })))) (expression_statement "local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);" (assignment_expression "local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150)" identifier = (cast_expression "(code *)(PTR_LAB_000ad2c4 + -0x150)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000ad2c4 + -0x150)" ( (binary_expression "PTR_LAB_000ad2c4 + -0x150" identifier + number_literal) )))) ;) (expression_statement "logprintf((LogContext *)handle,PTR_DAT_000ad2c8 + -0x57e0,puVar16);" (call_expression "logprintf((LogContext *)handle,PTR_DAT_000ad2c8 + -0x57e0,puVar16)" identifier (argument_list "((LogContext *)handle,PTR_DAT_000ad2c8 + -0x57e0,puVar16)" ( (cast_expression "(LogContext *)handle" ( (type_descriptor "LogContext *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (binary_expression "PTR_DAT_000ad2c8 + -0x57e0" identifier + number_literal) , identifier ))) ;) (if_statement "if (seq != (ulong *)0x0) {\n      (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57d4,*seq);\n    }" if (parenthesized_expression "(seq != (ulong *)0x0)" ( (binary_expression "seq != (ulong *)0x0" identifier != (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57d4,*seq);\n    }" { (expression_statement "(*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57d4,*seq);" (call_expression "(*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57d4,*seq)" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "(handle,PTR_DAT_000ad2c8 + -0x57d4,*seq)" ( identifier , (binary_expression "PTR_DAT_000ad2c8 + -0x57d4" identifier + number_literal) , (pointer_expression "*seq" * identifier) ))) ;) })) (expression_statement "(*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57c8,type,type,texttype);" (call_expression "(*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57c8,type,type,texttype)" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "(handle,PTR_DAT_000ad2c8 + -0x57c8,type,type,texttype)" ( identifier , (binary_expression "PTR_DAT_000ad2c8 + -0x57c8" identifier + number_literal) , identifier , identifier , identifier ))) ;) (if_statement "if ((downstream_id != 0) &&\n       ((*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b0,downstream_id),\n       additional_log_text != (char *)0x0)) {\n      (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b8,additional_log_text);\n    }" if (parenthesized_expression "((downstream_id != 0) &&\n       ((*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b0,downstream_id),\n       additional_log_text != (char *)0x0))" ( (binary_expression "(downstream_id != 0) &&\n       ((*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b0,downstream_id),\n       additional_log_text != (char *)0x0)" (parenthesized_expression "(downstream_id != 0)" ( (binary_expression "downstream_id != 0" identifier != number_literal) )) && (parenthesized_expression "((*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b0,downstream_id),\n       additional_log_text != (char *)0x0)" ( (comma_expression "(*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b0,downstream_id),\n       additional_log_text != (char *)0x0" (call_expression "(*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b0,downstream_id)" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "(handle,PTR_DAT_000ad2c8 + -0x57b0,downstream_id)" ( identifier , (binary_expression "PTR_DAT_000ad2c8 + -0x57b0" identifier + number_literal) , identifier ))) , (binary_expression "additional_log_text != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b8,additional_log_text);\n    }" { (expression_statement "(*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b8,additional_log_text);" (call_expression "(*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x57b8,additional_log_text)" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "(handle,PTR_DAT_000ad2c8 + -0x57b8,additional_log_text)" ( identifier , (binary_expression "PTR_DAT_000ad2c8 + -0x57b8" identifier + number_literal) , identifier ))) ;) })) (expression_statement "direction = (int)(PTR_DAT_000ad2c8 + -0x2500);" (assignment_expression "direction = (int)(PTR_DAT_000ad2c8 + -0x2500)" identifier = (cast_expression "(int)(PTR_DAT_000ad2c8 + -0x2500)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(PTR_DAT_000ad2c8 + -0x2500)" ( (binary_expression "PTR_DAT_000ad2c8 + -0x2500" identifier + number_literal) )))) ;) (expression_statement "plVar14 = (logblank_t *)handle;" (assignment_expression "plVar14 = (logblank_t *)handle" identifier = (cast_expression "(logblank_t *)handle" ( (type_descriptor "logblank_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "(*local_1b0)();" (call_expression "(*local_1b0)()" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "()" ( ))) ;) (if_statement "if (0 < len) {\nLAB_00020bf4:\n      puVar16 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < n_blanks;\n      do {\n        if (bVar1) {\n          plVar11 = blanks + iVar23;\n          iVar15 = plVar11->offset;\n          plVar14 = (logblank_t *)(iVar23 * 0xc + 0xc);\n          if (iVar15 + plVar11->len <= (int)uVar22) {\n            plVar14 = blanks + iVar23 + 1;\n            do {\n              plVar11 = plVar14;\n              iVar23 = iVar23 + 1;\n              if (n_blanks == iVar23) {\n                iVar15 = 0;\n                iVar23 = n_blanks;\n                goto LAB_00020c9c;\n              }\n              iVar15 = plVar11->offset;\n              plVar14 = plVar11 + 1;\n            } while (iVar15 + plVar11->len <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar15) goto LAB_00020e70;\n          iVar15 = plVar11->type;\n          if (iVar15 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            direction = 1;\n            plVar14 = (logblank_t *)dumpdata;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (plVar14,1,0x50,puVar16 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            direction = 0;\n          }\n          iVar15 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (len != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          direction = (int)dumpdata;\n          iVar21 = 0;\n          *(char *)((int)&((Conf *)(direction + 0x3c))->tree + iVar15 + 1) = '\r';\n          dumpdata[iVar15 + 0x3f] = '\0';\n          dumpdata[iVar15 + 0x3e] = '\n';\n          uVar8 = (*(code *)PTR_strlen_000adc28)(direction);\n          plVar14 = (logblank_t *)handle;\n          (*pcVar5)(handle,direction,uVar8);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar15 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)((int)data + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(smalldata,1,5,puVar16 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar15 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar15 != 1) goto LAB_00020e30;\n            smalldata[2] = '\0';\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            smalldata[0] = 'X';\n            smalldata[1] = 'X';\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          dumpdata[uVar18 * 3 + 0xc] = smalldata[0];\n          dumpdata[uVar18 * 3 + 0xd] = smalldata[1];\n          piVar7 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          direction = 0x2e;\n          plVar14 = (logblank_t *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar7 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          dumpdata[uVar18 + 0x3d] = bVar19;\n          iVar15 = iVar21;\n          if (plVar14 == (logblank_t *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (len == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < n_blanks;\n      } while ((int)uVar22 < len);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar16 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar16 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        direction = (int)(PTR_DAT_000ad2c8 + -0x5768);\n        plVar14 = (logblank_t *)handle;\n        (*local_1b0)(handle,direction,iVar20,puVar16);\n      }\n    }" if (parenthesized_expression "(0 < len)" ( (binary_expression "0 < len" number_literal < identifier) )) (compound_statement "{\nLAB_00020bf4:\n      puVar16 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < n_blanks;\n      do {\n        if (bVar1) {\n          plVar11 = blanks + iVar23;\n          iVar15 = plVar11->offset;\n          plVar14 = (logblank_t *)(iVar23 * 0xc + 0xc);\n          if (iVar15 + plVar11->len <= (int)uVar22) {\n            plVar14 = blanks + iVar23 + 1;\n            do {\n              plVar11 = plVar14;\n              iVar23 = iVar23 + 1;\n              if (n_blanks == iVar23) {\n                iVar15 = 0;\n                iVar23 = n_blanks;\n                goto LAB_00020c9c;\n              }\n              iVar15 = plVar11->offset;\n              plVar14 = plVar11 + 1;\n            } while (iVar15 + plVar11->len <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar15) goto LAB_00020e70;\n          iVar15 = plVar11->type;\n          if (iVar15 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            direction = 1;\n            plVar14 = (logblank_t *)dumpdata;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (plVar14,1,0x50,puVar16 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            direction = 0;\n          }\n          iVar15 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (len != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          direction = (int)dumpdata;\n          iVar21 = 0;\n          *(char *)((int)&((Conf *)(direction + 0x3c))->tree + iVar15 + 1) = '\r';\n          dumpdata[iVar15 + 0x3f] = '\0';\n          dumpdata[iVar15 + 0x3e] = '\n';\n          uVar8 = (*(code *)PTR_strlen_000adc28)(direction);\n          plVar14 = (logblank_t *)handle;\n          (*pcVar5)(handle,direction,uVar8);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar15 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)((int)data + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(smalldata,1,5,puVar16 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar15 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar15 != 1) goto LAB_00020e30;\n            smalldata[2] = '\0';\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            smalldata[0] = 'X';\n            smalldata[1] = 'X';\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          dumpdata[uVar18 * 3 + 0xc] = smalldata[0];\n          dumpdata[uVar18 * 3 + 0xd] = smalldata[1];\n          piVar7 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          direction = 0x2e;\n          plVar14 = (logblank_t *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar7 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          dumpdata[uVar18 + 0x3d] = bVar19;\n          iVar15 = iVar21;\n          if (plVar14 == (logblank_t *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (len == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < n_blanks;\n      } while ((int)uVar22 < len);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar16 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar16 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        direction = (int)(PTR_DAT_000ad2c8 + -0x5768);\n        plVar14 = (logblank_t *)handle;\n        (*local_1b0)(handle,direction,iVar20,puVar16);\n      }\n    }" { (labeled_statement "LAB_00020bf4:\n      puVar16 = PTR_DAT_000ad2c8;" statement_identifier : (expression_statement "puVar16 = PTR_DAT_000ad2c8;" (assignment_expression "puVar16 = PTR_DAT_000ad2c8" identifier = identifier) ;)) (expression_statement "uVar22 = 0;" (assignment_expression "uVar22 = 0" identifier = number_literal) ;) (expression_statement "iVar21 = 0;" (assignment_expression "iVar21 = 0" identifier = number_literal) ;) (expression_statement "iVar20 = 0;" (assignment_expression "iVar20 = 0" identifier = number_literal) ;) (expression_statement "iVar23 = 0;" (assignment_expression "iVar23 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = PTR_DAT_000ad2c8 + -0x22a4;" (assignment_expression "puVar4 = PTR_DAT_000ad2c8 + -0x22a4" identifier = (binary_expression "PTR_DAT_000ad2c8 + -0x22a4" identifier + number_literal)) ;) (expression_statement "pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);" (assignment_expression "pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294)" identifier = (cast_expression "(code *)(PTR_LAB_000ad2c4 + -0x294)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000ad2c4 + -0x294)" ( (binary_expression "PTR_LAB_000ad2c4 + -0x294" identifier + number_literal) )))) ;) (expression_statement "puVar6 = PTR_DAT_000ad2d0 + -0x5930;" (assignment_expression "puVar6 = PTR_DAT_000ad2d0 + -0x5930" identifier = (binary_expression "PTR_DAT_000ad2d0 + -0x5930" identifier + number_literal)) ;) (expression_statement "bVar1 = 0 < n_blanks;" (assignment_expression "bVar1 = 0 < n_blanks" identifier = (binary_expression "0 < n_blanks" number_literal < identifier)) ;) (do_statement "do {\n        if (bVar1) {\n          plVar11 = blanks + iVar23;\n          iVar15 = plVar11->offset;\n          plVar14 = (logblank_t *)(iVar23 * 0xc + 0xc);\n          if (iVar15 + plVar11->len <= (int)uVar22) {\n            plVar14 = blanks + iVar23 + 1;\n            do {\n              plVar11 = plVar14;\n              iVar23 = iVar23 + 1;\n              if (n_blanks == iVar23) {\n                iVar15 = 0;\n                iVar23 = n_blanks;\n                goto LAB_00020c9c;\n              }\n              iVar15 = plVar11->offset;\n              plVar14 = plVar11 + 1;\n            } while (iVar15 + plVar11->len <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar15) goto LAB_00020e70;\n          iVar15 = plVar11->type;\n          if (iVar15 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            direction = 1;\n            plVar14 = (logblank_t *)dumpdata;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (plVar14,1,0x50,puVar16 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            direction = 0;\n          }\n          iVar15 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (len != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          direction = (int)dumpdata;\n          iVar21 = 0;\n          *(char *)((int)&((Conf *)(direction + 0x3c))->tree + iVar15 + 1) = '\r';\n          dumpdata[iVar15 + 0x3f] = '\0';\n          dumpdata[iVar15 + 0x3e] = '\n';\n          uVar8 = (*(code *)PTR_strlen_000adc28)(direction);\n          plVar14 = (logblank_t *)handle;\n          (*pcVar5)(handle,direction,uVar8);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar15 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)((int)data + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(smalldata,1,5,puVar16 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar15 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar15 != 1) goto LAB_00020e30;\n            smalldata[2] = '\0';\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            smalldata[0] = 'X';\n            smalldata[1] = 'X';\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          dumpdata[uVar18 * 3 + 0xc] = smalldata[0];\n          dumpdata[uVar18 * 3 + 0xd] = smalldata[1];\n          piVar7 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          direction = 0x2e;\n          plVar14 = (logblank_t *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar7 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          dumpdata[uVar18 + 0x3d] = bVar19;\n          iVar15 = iVar21;\n          if (plVar14 == (logblank_t *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (len == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < n_blanks;\n      } while ((int)uVar22 < len);" do (compound_statement "{\n        if (bVar1) {\n          plVar11 = blanks + iVar23;\n          iVar15 = plVar11->offset;\n          plVar14 = (logblank_t *)(iVar23 * 0xc + 0xc);\n          if (iVar15 + plVar11->len <= (int)uVar22) {\n            plVar14 = blanks + iVar23 + 1;\n            do {\n              plVar11 = plVar14;\n              iVar23 = iVar23 + 1;\n              if (n_blanks == iVar23) {\n                iVar15 = 0;\n                iVar23 = n_blanks;\n                goto LAB_00020c9c;\n              }\n              iVar15 = plVar11->offset;\n              plVar14 = plVar11 + 1;\n            } while (iVar15 + plVar11->len <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar15) goto LAB_00020e70;\n          iVar15 = plVar11->type;\n          if (iVar15 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            direction = 1;\n            plVar14 = (logblank_t *)dumpdata;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (plVar14,1,0x50,puVar16 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            direction = 0;\n          }\n          iVar15 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (len != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          direction = (int)dumpdata;\n          iVar21 = 0;\n          *(char *)((int)&((Conf *)(direction + 0x3c))->tree + iVar15 + 1) = '\r';\n          dumpdata[iVar15 + 0x3f] = '\0';\n          dumpdata[iVar15 + 0x3e] = '\n';\n          uVar8 = (*(code *)PTR_strlen_000adc28)(direction);\n          plVar14 = (logblank_t *)handle;\n          (*pcVar5)(handle,direction,uVar8);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar15 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)((int)data + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(smalldata,1,5,puVar16 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar15 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar15 != 1) goto LAB_00020e30;\n            smalldata[2] = '\0';\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            smalldata[0] = 'X';\n            smalldata[1] = 'X';\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          dumpdata[uVar18 * 3 + 0xc] = smalldata[0];\n          dumpdata[uVar18 * 3 + 0xd] = smalldata[1];\n          piVar7 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          direction = 0x2e;\n          plVar14 = (logblank_t *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar7 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          dumpdata[uVar18 + 0x3d] = bVar19;\n          iVar15 = iVar21;\n          if (plVar14 == (logblank_t *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (len == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < n_blanks;\n      }" { (if_statement "if (bVar1) {\n          plVar11 = blanks + iVar23;\n          iVar15 = plVar11->offset;\n          plVar14 = (logblank_t *)(iVar23 * 0xc + 0xc);\n          if (iVar15 + plVar11->len <= (int)uVar22) {\n            plVar14 = blanks + iVar23 + 1;\n            do {\n              plVar11 = plVar14;\n              iVar23 = iVar23 + 1;\n              if (n_blanks == iVar23) {\n                iVar15 = 0;\n                iVar23 = n_blanks;\n                goto LAB_00020c9c;\n              }\n              iVar15 = plVar11->offset;\n              plVar14 = plVar11 + 1;\n            } while (iVar15 + plVar11->len <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar15) goto LAB_00020e70;\n          iVar15 = plVar11->type;\n          if (iVar15 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            direction = 1;\n            plVar14 = (logblank_t *)dumpdata;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (plVar14,1,0x50,puVar16 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            direction = 0;\n          }\n          iVar15 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (len != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          direction = (int)dumpdata;\n          iVar21 = 0;\n          *(char *)((int)&((Conf *)(direction + 0x3c))->tree + iVar15 + 1) = '\r';\n          dumpdata[iVar15 + 0x3f] = '\0';\n          dumpdata[iVar15 + 0x3e] = '\n';\n          uVar8 = (*(code *)PTR_strlen_000adc28)(direction);\n          plVar14 = (logblank_t *)handle;\n          (*pcVar5)(handle,direction,uVar8);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar15 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)((int)data + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(smalldata,1,5,puVar16 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar15 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar15 != 1) goto LAB_00020e30;\n            smalldata[2] = '\0';\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            smalldata[0] = 'X';\n            smalldata[1] = 'X';\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          dumpdata[uVar18 * 3 + 0xc] = smalldata[0];\n          dumpdata[uVar18 * 3 + 0xd] = smalldata[1];\n          piVar7 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          direction = 0x2e;\n          plVar14 = (logblank_t *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar7 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          dumpdata[uVar18 + 0x3d] = bVar19;\n          iVar15 = iVar21;\n          if (plVar14 == (logblank_t *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (len == uVar22 + 1) goto LAB_00020e90;\n        }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n          plVar11 = blanks + iVar23;\n          iVar15 = plVar11->offset;\n          plVar14 = (logblank_t *)(iVar23 * 0xc + 0xc);\n          if (iVar15 + plVar11->len <= (int)uVar22) {\n            plVar14 = blanks + iVar23 + 1;\n            do {\n              plVar11 = plVar14;\n              iVar23 = iVar23 + 1;\n              if (n_blanks == iVar23) {\n                iVar15 = 0;\n                iVar23 = n_blanks;\n                goto LAB_00020c9c;\n              }\n              iVar15 = plVar11->offset;\n              plVar14 = plVar11 + 1;\n            } while (iVar15 + plVar11->len <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar15) goto LAB_00020e70;\n          iVar15 = plVar11->type;\n          if (iVar15 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            direction = 1;\n            plVar14 = (logblank_t *)dumpdata;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (plVar14,1,0x50,puVar16 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            direction = 0;\n          }\n          iVar15 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (len != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          direction = (int)dumpdata;\n          iVar21 = 0;\n          *(char *)((int)&((Conf *)(direction + 0x3c))->tree + iVar15 + 1) = '\r';\n          dumpdata[iVar15 + 0x3f] = '\0';\n          dumpdata[iVar15 + 0x3e] = '\n';\n          uVar8 = (*(code *)PTR_strlen_000adc28)(direction);\n          plVar14 = (logblank_t *)handle;\n          (*pcVar5)(handle,direction,uVar8);\n        }" { (expression_statement "plVar11 = blanks + iVar23;" (assignment_expression "plVar11 = blanks + iVar23" identifier = (binary_expression "blanks + iVar23" identifier + identifier)) ;) (expression_statement "iVar15 = plVar11->offset;" (assignment_expression "iVar15 = plVar11->offset" identifier = (field_expression "plVar11->offset" identifier -> field_identifier)) ;) (expression_statement "plVar14 = (logblank_t *)(iVar23 * 0xc + 0xc);" (assignment_expression "plVar14 = (logblank_t *)(iVar23 * 0xc + 0xc)" identifier = (cast_expression "(logblank_t *)(iVar23 * 0xc + 0xc)" ( (type_descriptor "logblank_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar23 * 0xc + 0xc)" ( (binary_expression "iVar23 * 0xc + 0xc" (binary_expression "iVar23 * 0xc" identifier * number_literal) + number_literal) )))) ;) (if_statement "if (iVar15 + plVar11->len <= (int)uVar22) {\n            plVar14 = blanks + iVar23 + 1;\n            do {\n              plVar11 = plVar14;\n              iVar23 = iVar23 + 1;\n              if (n_blanks == iVar23) {\n                iVar15 = 0;\n                iVar23 = n_blanks;\n                goto LAB_00020c9c;\n              }\n              iVar15 = plVar11->offset;\n              plVar14 = plVar11 + 1;\n            } while (iVar15 + plVar11->len <= (int)uVar22);\n          }" if (parenthesized_expression "(iVar15 + plVar11->len <= (int)uVar22)" ( (binary_expression "iVar15 + plVar11->len <= (int)uVar22" (binary_expression "iVar15 + plVar11->len" identifier + (field_expression "plVar11->len" identifier -> field_identifier)) <= (cast_expression "(int)uVar22" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n            plVar14 = blanks + iVar23 + 1;\n            do {\n              plVar11 = plVar14;\n              iVar23 = iVar23 + 1;\n              if (n_blanks == iVar23) {\n                iVar15 = 0;\n                iVar23 = n_blanks;\n                goto LAB_00020c9c;\n              }\n              iVar15 = plVar11->offset;\n              plVar14 = plVar11 + 1;\n            } while (iVar15 + plVar11->len <= (int)uVar22);\n          }" { (expression_statement "plVar14 = blanks + iVar23 + 1;" (assignment_expression "plVar14 = blanks + iVar23 + 1" identifier = (binary_expression "blanks + iVar23 + 1" (binary_expression "blanks + iVar23" identifier + identifier) + number_literal)) ;) (do_statement "do {\n              plVar11 = plVar14;\n              iVar23 = iVar23 + 1;\n              if (n_blanks == iVar23) {\n                iVar15 = 0;\n                iVar23 = n_blanks;\n                goto LAB_00020c9c;\n              }\n              iVar15 = plVar11->offset;\n              plVar14 = plVar11 + 1;\n            } while (iVar15 + plVar11->len <= (int)uVar22);" do (compound_statement "{\n              plVar11 = plVar14;\n              iVar23 = iVar23 + 1;\n              if (n_blanks == iVar23) {\n                iVar15 = 0;\n                iVar23 = n_blanks;\n                goto LAB_00020c9c;\n              }\n              iVar15 = plVar11->offset;\n              plVar14 = plVar11 + 1;\n            }" { (expression_statement "plVar11 = plVar14;" (assignment_expression "plVar11 = plVar14" identifier = identifier) ;) (expression_statement "iVar23 = iVar23 + 1;" (assignment_expression "iVar23 = iVar23 + 1" identifier = (binary_expression "iVar23 + 1" identifier + number_literal)) ;) (if_statement "if (n_blanks == iVar23) {\n                iVar15 = 0;\n                iVar23 = n_blanks;\n                goto LAB_00020c9c;\n              }" if (parenthesized_expression "(n_blanks == iVar23)" ( (binary_expression "n_blanks == iVar23" identifier == identifier) )) (compound_statement "{\n                iVar15 = 0;\n                iVar23 = n_blanks;\n                goto LAB_00020c9c;\n              }" { (expression_statement "iVar15 = 0;" (assignment_expression "iVar15 = 0" identifier = number_literal) ;) (expression_statement "iVar23 = n_blanks;" (assignment_expression "iVar23 = n_blanks" identifier = identifier) ;) (goto_statement "goto LAB_00020c9c;" goto statement_identifier ;) })) (expression_statement "iVar15 = plVar11->offset;" (assignment_expression "iVar15 = plVar11->offset" identifier = (field_expression "plVar11->offset" identifier -> field_identifier)) ;) (expression_statement "plVar14 = plVar11 + 1;" (assignment_expression "plVar14 = plVar11 + 1" identifier = (binary_expression "plVar11 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar15 + plVar11->len <= (int)uVar22)" ( (binary_expression "iVar15 + plVar11->len <= (int)uVar22" (binary_expression "iVar15 + plVar11->len" identifier + (field_expression "plVar11->len" identifier -> field_identifier)) <= (cast_expression "(int)uVar22" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (if_statement "if ((int)uVar22 < iVar15) goto LAB_00020e70;" if (parenthesized_expression "((int)uVar22 < iVar15)" ( (binary_expression "(int)uVar22 < iVar15" (cast_expression "(int)uVar22" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) (goto_statement "goto LAB_00020e70;" goto statement_identifier ;)) (expression_statement "iVar15 = plVar11->type;" (assignment_expression "iVar15 = plVar11->type" identifier = (field_expression "plVar11->type" identifier -> field_identifier)) ;) (if_statement "if (iVar15 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }" if (parenthesized_expression "(iVar15 != 2)" ( (binary_expression "iVar15 != 2" identifier != number_literal) )) (compound_statement "{\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }" { (labeled_statement "LAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;" statement_identifier : (if_statement "if (iVar20 != 0) goto LAB_00020dac;" if (parenthesized_expression "(iVar20 != 0)" ( (binary_expression "iVar20 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00020dac;" goto statement_identifier ;))) (goto_statement "goto joined_r0x00020ddc;" goto statement_identifier ;) })) (if_statement "if (iVar20 == 0 && iVar21 == 0) {\n            direction = 1;\n            plVar14 = (logblank_t *)dumpdata;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (plVar14,1,0x50,puVar16 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            direction = 0;\n          }" if (parenthesized_expression "(iVar20 == 0 && iVar21 == 0)" ( (binary_expression "iVar20 == 0 && iVar21 == 0" (binary_expression "iVar20 == 0" identifier == number_literal) && (binary_expression "iVar21 == 0" identifier == number_literal)) )) (compound_statement "{\n            direction = 1;\n            plVar14 = (logblank_t *)dumpdata;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (plVar14,1,0x50,puVar16 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }" { (expression_statement "direction = 1;" (assignment_expression "direction = 1" identifier = number_literal) ;) (expression_statement "plVar14 = (logblank_t *)dumpdata;" (assignment_expression "plVar14 = (logblank_t *)dumpdata" identifier = (cast_expression "(logblank_t *)dumpdata" ( (type_descriptor "logblank_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "iVar20 = 1;" (assignment_expression "iVar20 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR___sprintf_chk_000adaf0)\n                      (plVar14,1,0x50,puVar16 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);" (call_expression "(*(code *)PTR___sprintf_chk_000adaf0)\n                      (plVar14,1,0x50,puVar16 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_000adaf0)" ( (pointer_expression "*(code *)PTR___sprintf_chk_000adaf0" * (cast_expression "(code *)PTR___sprintf_chk_000adaf0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(plVar14,1,0x50,puVar16 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4)" ( identifier , number_literal , number_literal , (binary_expression "puVar16 + -0x5750" identifier + number_literal) , (binary_expression "uVar22 & 0xfffffff0" identifier & number_literal) , number_literal , identifier ))) ;) }) (else_clause "else {\n            iVar20 = iVar20 + 1;\n            direction = 0;\n          }" else (compound_statement "{\n            iVar20 = iVar20 + 1;\n            direction = 0;\n          }" { (expression_statement "iVar20 = iVar20 + 1;" (assignment_expression "iVar20 = iVar20 + 1" identifier = (binary_expression "iVar20 + 1" identifier + number_literal)) ;) (expression_statement "direction = 0;" (assignment_expression "direction = 0" identifier = number_literal) ;) }))) (expression_statement "iVar15 = iVar21;" (assignment_expression "iVar15 = iVar21" identifier = identifier) ;) (if_statement "if (((uVar22 + 1 & 0xf) == 0) || (len != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }" if (parenthesized_expression "(((uVar22 + 1 & 0xf) == 0) || (len != uVar22 + 1))" ( (binary_expression "((uVar22 + 1 & 0xf) == 0) || (len != uVar22 + 1)" (parenthesized_expression "((uVar22 + 1 & 0xf) == 0)" ( (binary_expression "(uVar22 + 1 & 0xf) == 0" (parenthesized_expression "(uVar22 + 1 & 0xf)" ( (binary_expression "uVar22 + 1 & 0xf" (binary_expression "uVar22 + 1" identifier + number_literal) & number_literal) )) == number_literal) )) || (parenthesized_expression "(len != uVar22 + 1)" ( (binary_expression "len != uVar22 + 1" identifier != (binary_expression "uVar22 + 1" identifier + number_literal)) ))) )) (compound_statement "{\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }" { (if_statement "if (iVar21 != 0) goto LAB_00020e90;" if (parenthesized_expression "(iVar21 != 0)" ( (binary_expression "iVar21 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00020e90;" goto statement_identifier ;)) (goto_statement "goto LAB_00020d3c;" goto statement_identifier ;) })) (if_statement "if (iVar21 == 0) goto LAB_00020ffc;" if (parenthesized_expression "(iVar21 == 0)" ( (binary_expression "iVar21 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00020ffc;" goto statement_identifier ;)) (labeled_statement "LAB_00020e90:\n          direction = (int)dumpdata;" statement_identifier : (expression_statement "direction = (int)dumpdata;" (assignment_expression "direction = (int)dumpdata" identifier = (cast_expression "(int)dumpdata" ( (type_descriptor "int" primitive_type) ) identifier)) ;)) (expression_statement "iVar21 = 0;" (assignment_expression "iVar21 = 0" identifier = number_literal) ;) (expression_statement "*(char *)((int)&((Conf *)(direction + 0x3c))->tree + iVar15 + 1) = '\r';" (assignment_expression "*(char *)((int)&((Conf *)(direction + 0x3c))->tree + iVar15 + 1) = '\r'" (pointer_expression "*(char *)((int)&((Conf *)(direction + 0x3c))->tree + iVar15 + 1)" * (cast_expression "(char *)((int)&((Conf *)(direction + 0x3c))->tree + iVar15 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&((Conf *)(direction + 0x3c))->tree + iVar15 + 1)" ( (binary_expression "(int)&((Conf *)(direction + 0x3c))->tree + iVar15 + 1" (binary_expression "(int)&((Conf *)(direction + 0x3c))->tree + iVar15" (cast_expression "(int)&((Conf *)(direction + 0x3c))->tree" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&((Conf *)(direction + 0x3c))->tree" & (field_expression "((Conf *)(direction + 0x3c))->tree" (parenthesized_expression "((Conf *)(direction + 0x3c))" ( (cast_expression "(Conf *)(direction + 0x3c)" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(direction + 0x3c)" ( (binary_expression "direction + 0x3c" identifier + number_literal) ))) )) -> field_identifier))) + identifier) + number_literal) )))) = (char_literal "'\r'" ' escape_sequence ')) ;) (expression_statement "dumpdata[iVar15 + 0x3f] = '\0';" (assignment_expression "dumpdata[iVar15 + 0x3f] = '\0'" (subscript_expression "dumpdata[iVar15 + 0x3f]" identifier [ (binary_expression "iVar15 + 0x3f" identifier + number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "dumpdata[iVar15 + 0x3e] = '\n';" (assignment_expression "dumpdata[iVar15 + 0x3e] = '\n'" (subscript_expression "dumpdata[iVar15 + 0x3e]" identifier [ (binary_expression "iVar15 + 0x3e" identifier + number_literal) ]) = (char_literal "'\n'" ' escape_sequence ')) ;) (expression_statement "uVar8 = (*(code *)PTR_strlen_000adc28)(direction);" (assignment_expression "uVar8 = (*(code *)PTR_strlen_000adc28)(direction)" identifier = (call_expression "(*(code *)PTR_strlen_000adc28)(direction)" (parenthesized_expression "(*(code *)PTR_strlen_000adc28)" ( (pointer_expression "*(code *)PTR_strlen_000adc28" * (cast_expression "(code *)PTR_strlen_000adc28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(direction)" ( identifier )))) ;) (expression_statement "plVar14 = (logblank_t *)handle;" (assignment_expression "plVar14 = (logblank_t *)handle" identifier = (cast_expression "(logblank_t *)handle" ( (type_descriptor "logblank_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "(*pcVar5)(handle,direction,uVar8);" (call_expression "(*pcVar5)(handle,direction,uVar8)" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "(handle,direction,uVar8)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar15 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)((int)data + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(smalldata,1,5,puVar16 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar15 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar15 != 1) goto LAB_00020e30;\n            smalldata[2] = '\0';\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            smalldata[0] = 'X';\n            smalldata[1] = 'X';\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          dumpdata[uVar18 * 3 + 0xc] = smalldata[0];\n          dumpdata[uVar18 * 3 + 0xd] = smalldata[1];\n          piVar7 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          direction = 0x2e;\n          plVar14 = (logblank_t *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar7 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          dumpdata[uVar18 + 0x3d] = bVar19;\n          iVar15 = iVar21;\n          if (plVar14 == (logblank_t *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (len == uVar22 + 1) goto LAB_00020e90;\n        }" else (compound_statement "{\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar15 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)((int)data + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(smalldata,1,5,puVar16 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar15 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar15 != 1) goto LAB_00020e30;\n            smalldata[2] = '\0';\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            smalldata[0] = 'X';\n            smalldata[1] = 'X';\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          dumpdata[uVar18 * 3 + 0xc] = smalldata[0];\n          dumpdata[uVar18 * 3 + 0xd] = smalldata[1];\n          piVar7 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          direction = 0x2e;\n          plVar14 = (logblank_t *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar7 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          dumpdata[uVar18 + 0x3d] = bVar19;\n          iVar15 = iVar21;\n          if (plVar14 == (logblank_t *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (len == uVar22 + 1) goto LAB_00020e90;\n        }" { (labeled_statement "LAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar15 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)((int)data + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(smalldata,1,5,puVar16 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar15 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar15 != 1) goto LAB_00020e30;\n            smalldata[2] = '\0';\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            smalldata[0] = 'X';\n            smalldata[1] = 'X';\n          }" statement_identifier : (if_statement "if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar15 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)((int)data + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(smalldata,1,5,puVar16 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar15 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar15 != 1) goto LAB_00020e30;\n            smalldata[2] = '\0';\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            smalldata[0] = 'X';\n            smalldata[1] = 'X';\n          }" if (parenthesized_expression "(iVar20 == 0)" ( (binary_expression "iVar20 == 0" identifier == number_literal) )) (compound_statement "{\n            if (iVar21 == 0) {\n              iVar15 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)((int)data + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(smalldata,1,5,puVar16 + -0x5744,(uint)bVar19);\n          }" { (if_statement "if (iVar21 == 0) {\n              iVar15 = 0;\n              goto LAB_00020de4;\n            }" if (parenthesized_expression "(iVar21 == 0)" ( (binary_expression "iVar21 == 0" identifier == number_literal) )) (compound_statement "{\n              iVar15 = 0;\n              goto LAB_00020de4;\n            }" { (expression_statement "iVar15 = 0;" (assignment_expression "iVar15 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020de4;" goto statement_identifier ;) })) (labeled_statement "LAB_00020e30:\n            bVar19 = *(byte *)((int)data + uVar22);" statement_identifier : (expression_statement "bVar19 = *(byte *)((int)data + uVar22);" (assignment_expression "bVar19 = *(byte *)((int)data + uVar22)" identifier = (pointer_expression "*(byte *)((int)data + uVar22)" * (cast_expression "(byte *)((int)data + uVar22)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + uVar22)" ( (binary_expression "(int)data + uVar22" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))))) ;)) (expression_statement "iVar20 = (uint)bVar19 << 1;" (assignment_expression "iVar20 = (uint)bVar19 << 1" identifier = (binary_expression "(uint)bVar19 << 1" (cast_expression "(uint)bVar19" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal)) ;) (expression_statement "(*(code *)PTR___sprintf_chk_000adaf0)(smalldata,1,5,puVar16 + -0x5744,(uint)bVar19);" (call_expression "(*(code *)PTR___sprintf_chk_000adaf0)(smalldata,1,5,puVar16 + -0x5744,(uint)bVar19)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_000adaf0)" ( (pointer_expression "*(code *)PTR___sprintf_chk_000adaf0" * (cast_expression "(code *)PTR___sprintf_chk_000adaf0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(smalldata,1,5,puVar16 + -0x5744,(uint)bVar19)" ( identifier , number_literal , number_literal , (binary_expression "puVar16 + -0x5744" identifier + number_literal) , (cast_expression "(uint)bVar19" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) }) (else_clause "else {\n            iVar15 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar15 != 1) goto LAB_00020e30;\n            smalldata[2] = '\0';\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            smalldata[0] = 'X';\n            smalldata[1] = 'X';\n          }" else (compound_statement "{\n            iVar15 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar15 != 1) goto LAB_00020e30;\n            smalldata[2] = '\0';\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            smalldata[0] = 'X';\n            smalldata[1] = 'X';\n          }" { (expression_statement "iVar15 = 0;" (assignment_expression "iVar15 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00020dac:\n            puVar17 = puVar4;" statement_identifier : (expression_statement "puVar17 = puVar4;" (assignment_expression "puVar17 = puVar4" identifier = identifier) ;)) (if_statement "if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }" if (parenthesized_expression "(iVar20 != 1)" ( (binary_expression "iVar20 != 1" identifier != number_literal) )) (compound_statement "{\n              puVar17 = puVar6;\n            }" { (expression_statement "puVar17 = puVar6;" (assignment_expression "puVar17 = puVar6" identifier = identifier) ;) })) (expression_statement "(*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);" (call_expression "(*local_1b0)(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17)" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "(handle,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17)" ( identifier , (binary_expression "PTR_DAT_000ad2c8 + -0x5768" identifier + number_literal) , identifier , identifier ))) ;) (labeled_statement "joined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }" statement_identifier : (if_statement "if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }" if (parenthesized_expression "(iVar21 == 0)" ( (binary_expression "iVar21 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }" { (labeled_statement "LAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);" statement_identifier : (expression_statement "(*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);" (call_expression "(*(code *)PTR___sprintf_chk_000adaf0)\n                        (dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_000adaf0)" ( (pointer_expression "*(code *)PTR___sprintf_chk_000adaf0" * (cast_expression "(code *)PTR___sprintf_chk_000adaf0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dumpdata,1,0x50,puVar16 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4)" ( identifier , number_literal , number_literal , (binary_expression "puVar16 + -0x5750" identifier + number_literal) , (binary_expression "uVar22 - (uVar22 & 0xf)" identifier - (parenthesized_expression "(uVar22 & 0xf)" ( (binary_expression "uVar22 & 0xf" identifier & number_literal) ))) , number_literal , identifier ))) ;)) }))) (if_statement "if (iVar15 != 1) goto LAB_00020e30;" if (parenthesized_expression "(iVar15 != 1)" ( (binary_expression "iVar15 != 1" identifier != number_literal) )) (goto_statement "goto LAB_00020e30;" goto statement_identifier ;)) (expression_statement "smalldata[2] = '\0';" (assignment_expression "smalldata[2] = '\0'" (subscript_expression "smalldata[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar20 = 0xb0;" (assignment_expression "iVar20 = 0xb0" identifier = number_literal) ;) (expression_statement "bVar19 = 0x58;" (assignment_expression "bVar19 = 0x58" identifier = number_literal) ;) (expression_statement "smalldata[0] = 'X';" (assignment_expression "smalldata[0] = 'X'" (subscript_expression "smalldata[0]" identifier [ number_literal ]) = (char_literal "'X'" ' character ')) ;) (expression_statement "smalldata[1] = 'X';" (assignment_expression "smalldata[1] = 'X'" (subscript_expression "smalldata[1]" identifier [ number_literal ]) = (char_literal "'X'" ' character ')) ;) })))) (expression_statement "uVar18 = uVar22 & 0xf;" (assignment_expression "uVar18 = uVar22 & 0xf" identifier = (binary_expression "uVar22 & 0xf" identifier & number_literal)) ;) (expression_statement "iVar21 = uVar18 + 1;" (assignment_expression "iVar21 = uVar18 + 1" identifier = (binary_expression "uVar18 + 1" identifier + number_literal)) ;) (expression_statement "dumpdata[uVar18 * 3 + 0xc] = smalldata[0];" (assignment_expression "dumpdata[uVar18 * 3 + 0xc] = smalldata[0]" (subscript_expression "dumpdata[uVar18 * 3 + 0xc]" identifier [ (binary_expression "uVar18 * 3 + 0xc" (binary_expression "uVar18 * 3" identifier * number_literal) + number_literal) ]) = (subscript_expression "smalldata[0]" identifier [ number_literal ])) ;) (expression_statement "dumpdata[uVar18 * 3 + 0xd] = smalldata[1];" (assignment_expression "dumpdata[uVar18 * 3 + 0xd] = smalldata[1]" (subscript_expression "dumpdata[uVar18 * 3 + 0xd]" identifier [ (binary_expression "uVar18 * 3 + 0xd" (binary_expression "uVar18 * 3" identifier * number_literal) + number_literal) ]) = (subscript_expression "smalldata[1]" identifier [ number_literal ])) ;) (expression_statement "piVar7 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();" (assignment_expression "piVar7 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_000adafc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_000adafc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_000adafc)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_000adafc" * (cast_expression "(code *)PTR___ctype_b_loc_000adafc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "direction = 0x2e;" (assignment_expression "direction = 0x2e" identifier = number_literal) ;) (expression_statement "plVar14 = (logblank_t *)(uVar22 + 1 & 0xf);" (assignment_expression "plVar14 = (logblank_t *)(uVar22 + 1 & 0xf)" identifier = (cast_expression "(logblank_t *)(uVar22 + 1 & 0xf)" ( (type_descriptor "logblank_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar22 + 1 & 0xf)" ( (binary_expression "uVar22 + 1 & 0xf" (binary_expression "uVar22 + 1" identifier + number_literal) & number_literal) )))) ;) (if_statement "if ((*(ushort *)(*piVar7 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }" if (parenthesized_expression "((*(ushort *)(*piVar7 + iVar20) & 0x40) == 0)" ( (binary_expression "(*(ushort *)(*piVar7 + iVar20) & 0x40) == 0" (parenthesized_expression "(*(ushort *)(*piVar7 + iVar20) & 0x40)" ( (binary_expression "*(ushort *)(*piVar7 + iVar20) & 0x40" (pointer_expression "*(ushort *)(*piVar7 + iVar20)" * (cast_expression "(ushort *)(*piVar7 + iVar20)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar7 + iVar20)" ( (binary_expression "*piVar7 + iVar20" (pointer_expression "*piVar7" * identifier) + identifier) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n            bVar19 = 0x2e;\n          }" { (expression_statement "bVar19 = 0x2e;" (assignment_expression "bVar19 = 0x2e" identifier = number_literal) ;) })) (expression_statement "dumpdata[uVar18 + 0x3d] = bVar19;" (assignment_expression "dumpdata[uVar18 + 0x3d] = bVar19" (subscript_expression "dumpdata[uVar18 + 0x3d]" identifier [ (binary_expression "uVar18 + 0x3d" identifier + number_literal) ]) = identifier) ;) (expression_statement "iVar15 = iVar21;" (assignment_expression "iVar15 = iVar21" identifier = identifier) ;) (if_statement "if (plVar14 == (logblank_t *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }" if (parenthesized_expression "(plVar14 == (logblank_t *)0x0)" ( (binary_expression "plVar14 == (logblank_t *)0x0" identifier == (cast_expression "(logblank_t *)0x0" ( (type_descriptor "logblank_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }" { (expression_statement "iVar20 = 0;" (assignment_expression "iVar20 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020e90;" goto statement_identifier ;) })) (expression_statement "iVar20 = 0;" (assignment_expression "iVar20 = 0" identifier = number_literal) ;) (if_statement "if (len == uVar22 + 1) goto LAB_00020e90;" if (parenthesized_expression "(len == uVar22 + 1)" ( (binary_expression "len == uVar22 + 1" identifier == (binary_expression "uVar22 + 1" identifier + number_literal)) )) (goto_statement "goto LAB_00020e90;" goto statement_identifier ;)) }))) (labeled_statement "LAB_00020d3c:\n        uVar22 = uVar22 + 1;" statement_identifier : (expression_statement "uVar22 = uVar22 + 1;" (assignment_expression "uVar22 = uVar22 + 1" identifier = (binary_expression "uVar22 + 1" identifier + number_literal)) ;)) (expression_statement "bVar1 = iVar23 < n_blanks;" (assignment_expression "bVar1 = iVar23 < n_blanks" identifier = (binary_expression "iVar23 < n_blanks" identifier < identifier)) ;) }) while (parenthesized_expression "((int)uVar22 < len)" ( (binary_expression "(int)uVar22 < len" (cast_expression "(int)uVar22" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) ;) (if_statement "if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar16 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar16 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        direction = (int)(PTR_DAT_000ad2c8 + -0x5768);\n        plVar14 = (logblank_t *)handle;\n        (*local_1b0)(handle,direction,iVar20,puVar16);\n      }" if (parenthesized_expression "(iVar20 != 0)" ( (binary_expression "iVar20 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar16 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar16 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        direction = (int)(PTR_DAT_000ad2c8 + -0x5768);\n        plVar14 = (logblank_t *)handle;\n        (*local_1b0)(handle,direction,iVar20,puVar16);\n      }" { (labeled_statement "LAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar16 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar16 = PTR_DAT_000ad2d0 + -0x5930;\n        }" statement_identifier : (if_statement "if (iVar20 == 1) {\n          puVar16 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar16 = PTR_DAT_000ad2d0 + -0x5930;\n        }" if (parenthesized_expression "(iVar20 == 1)" ( (binary_expression "iVar20 == 1" identifier == number_literal) )) (compound_statement "{\n          puVar16 = PTR_DAT_000ad2c8 + -0x22a4;\n        }" { (expression_statement "puVar16 = PTR_DAT_000ad2c8 + -0x22a4;" (assignment_expression "puVar16 = PTR_DAT_000ad2c8 + -0x22a4" identifier = (binary_expression "PTR_DAT_000ad2c8 + -0x22a4" identifier + number_literal)) ;) }) (else_clause "else {\n          puVar16 = PTR_DAT_000ad2d0 + -0x5930;\n        }" else (compound_statement "{\n          puVar16 = PTR_DAT_000ad2d0 + -0x5930;\n        }" { (expression_statement "puVar16 = PTR_DAT_000ad2d0 + -0x5930;" (assignment_expression "puVar16 = PTR_DAT_000ad2d0 + -0x5930" identifier = (binary_expression "PTR_DAT_000ad2d0 + -0x5930" identifier + number_literal)) ;) })))) (expression_statement "direction = (int)(PTR_DAT_000ad2c8 + -0x5768);" (assignment_expression "direction = (int)(PTR_DAT_000ad2c8 + -0x5768)" identifier = (cast_expression "(int)(PTR_DAT_000ad2c8 + -0x5768)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(PTR_DAT_000ad2c8 + -0x5768)" ( (binary_expression "PTR_DAT_000ad2c8 + -0x5768" identifier + number_literal) )))) ;) (expression_statement "plVar14 = (logblank_t *)handle;" (assignment_expression "plVar14 = (logblank_t *)handle" identifier = (cast_expression "(logblank_t *)handle" ( (type_descriptor "logblank_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "(*local_1b0)(handle,direction,iVar20,puVar16);" (call_expression "(*local_1b0)(handle,direction,iVar20,puVar16)" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "(handle,direction,iVar20,puVar16)" ( identifier , identifier , identifier , identifier ))) ;) })) })) (expression_statement "iVar23 = *(int *)((int)handle + 0x20);" (assignment_expression "iVar23 = *(int *)((int)handle + 0x20)" identifier = (pointer_expression "*(int *)((int)handle + 0x20)" * (cast_expression "(int *)((int)handle + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x20)" ( (binary_expression "(int)handle + 0x20" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }))) (if_statement "if ((0 < iVar23) && (*(int *)((int)handle + 4) == 2)) {\n                    /* WARNING: Load size is inaccurate */\n    plVar14 = *handle;\n    (*(code *)PTR_fflush_000adcf4)();\n  }" if (parenthesized_expression "((0 < iVar23) && (*(int *)((int)handle + 4) == 2))" ( (binary_expression "(0 < iVar23) && (*(int *)((int)handle + 4) == 2)" (parenthesized_expression "(0 < iVar23)" ( (binary_expression "0 < iVar23" number_literal < identifier) )) && (parenthesized_expression "(*(int *)((int)handle + 4) == 2)" ( (binary_expression "*(int *)((int)handle + 4) == 2" (pointer_expression "*(int *)((int)handle + 4)" * (cast_expression "(int *)((int)handle + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 4)" ( (binary_expression "(int)handle + 4" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n    plVar14 = *handle;\n    (*(code *)PTR_fflush_000adcf4)();\n  }" { comment (expression_statement "plVar14 = *handle;" (assignment_expression "plVar14 = *handle" identifier = (pointer_expression "*handle" * identifier)) ;) (expression_statement "(*(code *)PTR_fflush_000adcf4)();" (call_expression "(*(code *)PTR_fflush_000adcf4)()" (parenthesized_expression "(*(code *)PTR_fflush_000adcf4)" ( (pointer_expression "*(code *)PTR_fflush_000adcf4" * (cast_expression "(code *)PTR_fflush_000adcf4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (labeled_statement "LAB_00020d6c:\n  if (plVar13 == *(logblank_t **)puVar2) {\n    return;\n  }" statement_identifier : (if_statement "if (plVar13 == *(logblank_t **)puVar2) {\n    return;\n  }" if (parenthesized_expression "(plVar13 == *(logblank_t **)puVar2)" ( (binary_expression "plVar13 == *(logblank_t **)puVar2" identifier == (pointer_expression "*(logblank_t **)puVar2" * (cast_expression "(logblank_t **)puVar2" ( (type_descriptor "logblank_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_000adca4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000adca4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000adca4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000adca4" * (cast_expression "(code *)PTR___stack_chk_fail_000adca4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar10 = (undefined4 *)safemalloc(1,0x24);" (assignment_expression "puVar10 = (undefined4 *)safemalloc(1,0x24)" identifier = (cast_expression "(undefined4 *)safemalloc(1,0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0x24)" identifier (argument_list "(1,0x24)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar10[6] = plVar14;" (assignment_expression "puVar10[6] = plVar14" (subscript_expression "puVar10[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar10 = 0;" (assignment_expression "*puVar10 = 0" (pointer_expression "*puVar10" * identifier) = number_literal) ;) (expression_statement "puVar10[1] = 0;" (assignment_expression "puVar10[1] = 0" (subscript_expression "puVar10[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "conf = conf_copy((Conf *)direction);" (assignment_expression "conf = conf_copy((Conf *)direction)" identifier = (call_expression "conf_copy((Conf *)direction)" identifier (argument_list "((Conf *)direction)" ( (cast_expression "(Conf *)direction" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "puVar10[7] = conf;" (assignment_expression "puVar10[7] = conf" (subscript_expression "puVar10[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar23 = conf_get_int(conf,0x78);" (assignment_expression "iVar23 = conf_get_int(conf,0x78)" identifier = (call_expression "conf_get_int(conf,0x78)" identifier (argument_list "(conf,0x78)" ( identifier , number_literal )))) ;) (expression_statement "puVar10[8] = iVar23;" (assignment_expression "puVar10[8] = iVar23" (subscript_expression "puVar10[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar10[5] = 0;" (assignment_expression "puVar10[5] = 0" (subscript_expression "puVar10[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "bufchain_init((bufchain *)(puVar10 + 2));" (call_expression "bufchain_init((bufchain *)(puVar10 + 2))" identifier (argument_list "((bufchain *)(puVar10 + 2))" ( (cast_expression "(bufchain *)(puVar10 + 2)" ( (type_descriptor "bufchain *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 2)" ( (binary_expression "puVar10 + 2" identifier + number_literal) ))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "int * log_packet(int *param_1,int *param_2,undefined4 param_3,int param_4,int param_5,uint param_6,\n                int param_7,int param_8,undefined4 *param_9,int param_10,int param_11)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  undefined *puVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  int *piVar10;\n  undefined4 *puVar11;\n  int *piVar12;\n  int iVar13;\n  undefined4 uVar14;\n  undefined *puVar15;\n  undefined4 uVar16;\n  undefined *puVar17;\n  uint uVar18;\n  byte bVar19;\n  int iVar20;\n  int iVar21;\n  uint uVar22;\n  int iVar23;\n  code *local_1b0;\n  undefined4 local_190 [8];\n  undefined4 auStack_170 [4];\n  undefined4 local_160 [11];\n  undefined2 local_134;\n  undefined1 local_132;\n  int aiStack_12c [3];\n  undefined1 local_120 [49];\n  byte local_ef [195];\n  int *local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000adcd4;\n  piVar12 = *(int **)PTR___stack_chk_guard_000adcd4;\n  local_2c = piVar12;\n  if (param_1[8] == 4) {\n    if (param_4 != 0) goto LAB_00020b58;\n    (*(code *)PTR_ltime_000ad4d4)(local_190);\n    puVar9 = local_190;\n    puVar3 = local_160;\n    do {\n      puVar11 = puVar3;\n      puVar8 = puVar9;\n      puVar9 = puVar8 + 4;\n      uVar16 = puVar8[1];\n      uVar14 = puVar8[2];\n      uVar7 = puVar8[3];\n      *puVar11 = *puVar8;\n      puVar11[1] = uVar16;\n      puVar11[2] = uVar14;\n      puVar11[3] = uVar7;\n      puVar3 = puVar11 + 4;\n    } while (puVar9 != auStack_170);\n    uVar14 = puVar8[5];\n    uVar7 = puVar8[6];\n    puVar11[4] = *puVar9;\n    puVar11[5] = uVar14;\n    puVar11[6] = uVar7;\n    (*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790);\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c);\n    piVar12 = param_1;\n    FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c);\n    if (0 < (int)param_6) goto LAB_00020bf4;\n    iVar23 = param_1[8];\n  }\n  else {\n    if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);\n    if (param_9 != (undefined4 *)0x0) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }\n    (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);\n    if ((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);\n    piVar12 = param_1;\n    (*local_1b0)(param_1,param_2);\n    if (0 < (int)param_6) {\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }\n    iVar23 = param_1[8];\n  }\n  if ((0 < iVar23) && (param_1[1] == 2)) {\n    piVar12 = (int *)*param_1;\n    (*(code *)PTR_fflush_000adcf4)();\n  }\nLAB_00020d6c:\n  if (local_2c == *(int **)puVar2) {\n    return *(int **)puVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  piVar10 = (int *)safemalloc(1,0x24);\n  piVar10[6] = (int)piVar12;\n  *piVar10 = 0;\n  piVar10[1] = 0;\n  iVar23 = conf_copy(param_2);\n  piVar10[7] = iVar23;\n  iVar23 = conf_get_int(iVar23,0x78);\n  piVar10[8] = iVar23;\n  piVar10[5] = 0;\n  bufchain_init(piVar10 + 2);\n  return piVar10;\n}\n\n" (function_definition "int * log_packet(int *param_1,int *param_2,undefined4 param_3,int param_4,int param_5,uint param_6,\n                int param_7,int param_8,undefined4 *param_9,int param_10,int param_11)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  undefined *puVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  int *piVar10;\n  undefined4 *puVar11;\n  int *piVar12;\n  int iVar13;\n  undefined4 uVar14;\n  undefined *puVar15;\n  undefined4 uVar16;\n  undefined *puVar17;\n  uint uVar18;\n  byte bVar19;\n  int iVar20;\n  int iVar21;\n  uint uVar22;\n  int iVar23;\n  code *local_1b0;\n  undefined4 local_190 [8];\n  undefined4 auStack_170 [4];\n  undefined4 local_160 [11];\n  undefined2 local_134;\n  undefined1 local_132;\n  int aiStack_12c [3];\n  undefined1 local_120 [49];\n  byte local_ef [195];\n  int *local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000adcd4;\n  piVar12 = *(int **)PTR___stack_chk_guard_000adcd4;\n  local_2c = piVar12;\n  if (param_1[8] == 4) {\n    if (param_4 != 0) goto LAB_00020b58;\n    (*(code *)PTR_ltime_000ad4d4)(local_190);\n    puVar9 = local_190;\n    puVar3 = local_160;\n    do {\n      puVar11 = puVar3;\n      puVar8 = puVar9;\n      puVar9 = puVar8 + 4;\n      uVar16 = puVar8[1];\n      uVar14 = puVar8[2];\n      uVar7 = puVar8[3];\n      *puVar11 = *puVar8;\n      puVar11[1] = uVar16;\n      puVar11[2] = uVar14;\n      puVar11[3] = uVar7;\n      puVar3 = puVar11 + 4;\n    } while (puVar9 != auStack_170);\n    uVar14 = puVar8[5];\n    uVar7 = puVar8[6];\n    puVar11[4] = *puVar9;\n    puVar11[5] = uVar14;\n    puVar11[6] = uVar7;\n    (*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790);\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c);\n    piVar12 = param_1;\n    FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c);\n    if (0 < (int)param_6) goto LAB_00020bf4;\n    iVar23 = param_1[8];\n  }\n  else {\n    if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);\n    if (param_9 != (undefined4 *)0x0) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }\n    (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);\n    if ((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);\n    piVar12 = param_1;\n    (*local_1b0)(param_1,param_2);\n    if (0 < (int)param_6) {\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }\n    iVar23 = param_1[8];\n  }\n  if ((0 < iVar23) && (param_1[1] == 2)) {\n    piVar12 = (int *)*param_1;\n    (*(code *)PTR_fflush_000adcf4)();\n  }\nLAB_00020d6c:\n  if (local_2c == *(int **)puVar2) {\n    return *(int **)puVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  piVar10 = (int *)safemalloc(1,0x24);\n  piVar10[6] = (int)piVar12;\n  *piVar10 = 0;\n  piVar10[1] = 0;\n  iVar23 = conf_copy(param_2);\n  piVar10[7] = iVar23;\n  iVar23 = conf_get_int(iVar23,0x78);\n  piVar10[8] = iVar23;\n  piVar10[5] = 0;\n  bufchain_init(piVar10 + 2);\n  return piVar10;\n}" primitive_type (pointer_declarator "* log_packet(int *param_1,int *param_2,undefined4 param_3,int param_4,int param_5,uint param_6,\n                int param_7,int param_8,undefined4 *param_9,int param_10,int param_11)" * (function_declarator "log_packet(int *param_1,int *param_2,undefined4 param_3,int param_4,int param_5,uint param_6,\n                int param_7,int param_8,undefined4 *param_9,int param_10,int param_11)" identifier (parameter_list "(int *param_1,int *param_2,undefined4 param_3,int param_4,int param_5,uint param_6,\n                int param_7,int param_8,undefined4 *param_9,int param_10,int param_11)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "uint param_6" type_identifier identifier) , (parameter_declaration "int param_7" primitive_type identifier) , (parameter_declaration "int param_8" primitive_type identifier) , (parameter_declaration "undefined4 *param_9" type_identifier (pointer_declarator "*param_9" * identifier)) , (parameter_declaration "int param_10" primitive_type identifier) , (parameter_declaration "int param_11" primitive_type identifier) )))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  undefined *puVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  int *piVar10;\n  undefined4 *puVar11;\n  int *piVar12;\n  int iVar13;\n  undefined4 uVar14;\n  undefined *puVar15;\n  undefined4 uVar16;\n  undefined *puVar17;\n  uint uVar18;\n  byte bVar19;\n  int iVar20;\n  int iVar21;\n  uint uVar22;\n  int iVar23;\n  code *local_1b0;\n  undefined4 local_190 [8];\n  undefined4 auStack_170 [4];\n  undefined4 local_160 [11];\n  undefined2 local_134;\n  undefined1 local_132;\n  int aiStack_12c [3];\n  undefined1 local_120 [49];\n  byte local_ef [195];\n  int *local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000adcd4;\n  piVar12 = *(int **)PTR___stack_chk_guard_000adcd4;\n  local_2c = piVar12;\n  if (param_1[8] == 4) {\n    if (param_4 != 0) goto LAB_00020b58;\n    (*(code *)PTR_ltime_000ad4d4)(local_190);\n    puVar9 = local_190;\n    puVar3 = local_160;\n    do {\n      puVar11 = puVar3;\n      puVar8 = puVar9;\n      puVar9 = puVar8 + 4;\n      uVar16 = puVar8[1];\n      uVar14 = puVar8[2];\n      uVar7 = puVar8[3];\n      *puVar11 = *puVar8;\n      puVar11[1] = uVar16;\n      puVar11[2] = uVar14;\n      puVar11[3] = uVar7;\n      puVar3 = puVar11 + 4;\n    } while (puVar9 != auStack_170);\n    uVar14 = puVar8[5];\n    uVar7 = puVar8[6];\n    puVar11[4] = *puVar9;\n    puVar11[5] = uVar14;\n    puVar11[6] = uVar7;\n    (*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790);\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c);\n    piVar12 = param_1;\n    FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c);\n    if (0 < (int)param_6) goto LAB_00020bf4;\n    iVar23 = param_1[8];\n  }\n  else {\n    if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);\n    if (param_9 != (undefined4 *)0x0) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }\n    (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);\n    if ((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);\n    piVar12 = param_1;\n    (*local_1b0)(param_1,param_2);\n    if (0 < (int)param_6) {\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }\n    iVar23 = param_1[8];\n  }\n  if ((0 < iVar23) && (param_1[1] == 2)) {\n    piVar12 = (int *)*param_1;\n    (*(code *)PTR_fflush_000adcf4)();\n  }\nLAB_00020d6c:\n  if (local_2c == *(int **)puVar2) {\n    return *(int **)puVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  piVar10 = (int *)safemalloc(1,0x24);\n  piVar10[6] = (int)piVar12;\n  *piVar10 = 0;\n  piVar10[1] = 0;\n  iVar23 = conf_copy(param_2);\n  piVar10[7] = iVar23;\n  iVar23 = conf_get_int(iVar23,0x78);\n  piVar10[8] = iVar23;\n  piVar10[5] = 0;\n  bufchain_init(piVar10 + 2);\n  return piVar10;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "int *piVar10;" primitive_type (pointer_declarator "*piVar10" * identifier) ;) (declaration "undefined4 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "int *piVar12;" primitive_type (pointer_declarator "*piVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "undefined4 uVar14;" type_identifier identifier ;) (declaration "undefined *puVar15;" type_identifier (pointer_declarator "*puVar15" * identifier) ;) (declaration "undefined4 uVar16;" type_identifier identifier ;) (declaration "undefined *puVar17;" type_identifier (pointer_declarator "*puVar17" * identifier) ;) (declaration "uint uVar18;" type_identifier identifier ;) (declaration "byte bVar19;" type_identifier identifier ;) (declaration "int iVar20;" primitive_type identifier ;) (declaration "int iVar21;" primitive_type identifier ;) (declaration "uint uVar22;" type_identifier identifier ;) (declaration "int iVar23;" primitive_type identifier ;) (declaration "code *local_1b0;" type_identifier (pointer_declarator "*local_1b0" * identifier) ;) (declaration "undefined4 local_190 [8];" type_identifier (array_declarator "local_190 [8]" identifier [ number_literal ]) ;) (declaration "undefined4 auStack_170 [4];" type_identifier (array_declarator "auStack_170 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 local_160 [11];" type_identifier (array_declarator "local_160 [11]" identifier [ number_literal ]) ;) (declaration "undefined2 local_134;" type_identifier identifier ;) (declaration "undefined1 local_132;" type_identifier identifier ;) (declaration "int aiStack_12c [3];" primitive_type (array_declarator "aiStack_12c [3]" identifier [ number_literal ]) ;) (declaration "undefined1 local_120 [49];" type_identifier (array_declarator "local_120 [49]" identifier [ number_literal ]) ;) (declaration "byte local_ef [195];" type_identifier (array_declarator "local_ef [195]" identifier [ number_literal ]) ;) (declaration "int *local_2c;" primitive_type (pointer_declarator "*local_2c" * identifier) ;) (expression_statement "puVar2 = PTR___stack_chk_guard_000adcd4;" (assignment_expression "puVar2 = PTR___stack_chk_guard_000adcd4" identifier = identifier) ;) (expression_statement "piVar12 = *(int **)PTR___stack_chk_guard_000adcd4;" (assignment_expression "piVar12 = *(int **)PTR___stack_chk_guard_000adcd4" identifier = (pointer_expression "*(int **)PTR___stack_chk_guard_000adcd4" * (cast_expression "(int **)PTR___stack_chk_guard_000adcd4" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "local_2c = piVar12;" (assignment_expression "local_2c = piVar12" identifier = identifier) ;) (if_statement "if (param_1[8] == 4) {\n    if (param_4 != 0) goto LAB_00020b58;\n    (*(code *)PTR_ltime_000ad4d4)(local_190);\n    puVar9 = local_190;\n    puVar3 = local_160;\n    do {\n      puVar11 = puVar3;\n      puVar8 = puVar9;\n      puVar9 = puVar8 + 4;\n      uVar16 = puVar8[1];\n      uVar14 = puVar8[2];\n      uVar7 = puVar8[3];\n      *puVar11 = *puVar8;\n      puVar11[1] = uVar16;\n      puVar11[2] = uVar14;\n      puVar11[3] = uVar7;\n      puVar3 = puVar11 + 4;\n    } while (puVar9 != auStack_170);\n    uVar14 = puVar8[5];\n    uVar7 = puVar8[6];\n    puVar11[4] = *puVar9;\n    puVar11[5] = uVar14;\n    puVar11[6] = uVar7;\n    (*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790);\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c);\n    piVar12 = param_1;\n    FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c);\n    if (0 < (int)param_6) goto LAB_00020bf4;\n    iVar23 = param_1[8];\n  }\n  else {\n    if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);\n    if (param_9 != (undefined4 *)0x0) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }\n    (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);\n    if ((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);\n    piVar12 = param_1;\n    (*local_1b0)(param_1,param_2);\n    if (0 < (int)param_6) {\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }\n    iVar23 = param_1[8];\n  }" if (parenthesized_expression "(param_1[8] == 4)" ( (binary_expression "param_1[8] == 4" (subscript_expression "param_1[8]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    if (param_4 != 0) goto LAB_00020b58;\n    (*(code *)PTR_ltime_000ad4d4)(local_190);\n    puVar9 = local_190;\n    puVar3 = local_160;\n    do {\n      puVar11 = puVar3;\n      puVar8 = puVar9;\n      puVar9 = puVar8 + 4;\n      uVar16 = puVar8[1];\n      uVar14 = puVar8[2];\n      uVar7 = puVar8[3];\n      *puVar11 = *puVar8;\n      puVar11[1] = uVar16;\n      puVar11[2] = uVar14;\n      puVar11[3] = uVar7;\n      puVar3 = puVar11 + 4;\n    } while (puVar9 != auStack_170);\n    uVar14 = puVar8[5];\n    uVar7 = puVar8[6];\n    puVar11[4] = *puVar9;\n    puVar11[5] = uVar14;\n    puVar11[6] = uVar7;\n    (*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790);\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c);\n    piVar12 = param_1;\n    FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c);\n    if (0 < (int)param_6) goto LAB_00020bf4;\n    iVar23 = param_1[8];\n  }" { (if_statement "if (param_4 != 0) goto LAB_00020b58;" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00020b58;" goto statement_identifier ;)) (expression_statement "(*(code *)PTR_ltime_000ad4d4)(local_190);" (call_expression "(*(code *)PTR_ltime_000ad4d4)(local_190)" (parenthesized_expression "(*(code *)PTR_ltime_000ad4d4)" ( (pointer_expression "*(code *)PTR_ltime_000ad4d4" * (cast_expression "(code *)PTR_ltime_000ad4d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_190)" ( identifier ))) ;) (expression_statement "puVar9 = local_190;" (assignment_expression "puVar9 = local_190" identifier = identifier) ;) (expression_statement "puVar3 = local_160;" (assignment_expression "puVar3 = local_160" identifier = identifier) ;) (do_statement "do {\n      puVar11 = puVar3;\n      puVar8 = puVar9;\n      puVar9 = puVar8 + 4;\n      uVar16 = puVar8[1];\n      uVar14 = puVar8[2];\n      uVar7 = puVar8[3];\n      *puVar11 = *puVar8;\n      puVar11[1] = uVar16;\n      puVar11[2] = uVar14;\n      puVar11[3] = uVar7;\n      puVar3 = puVar11 + 4;\n    } while (puVar9 != auStack_170);" do (compound_statement "{\n      puVar11 = puVar3;\n      puVar8 = puVar9;\n      puVar9 = puVar8 + 4;\n      uVar16 = puVar8[1];\n      uVar14 = puVar8[2];\n      uVar7 = puVar8[3];\n      *puVar11 = *puVar8;\n      puVar11[1] = uVar16;\n      puVar11[2] = uVar14;\n      puVar11[3] = uVar7;\n      puVar3 = puVar11 + 4;\n    }" { (expression_statement "puVar11 = puVar3;" (assignment_expression "puVar11 = puVar3" identifier = identifier) ;) (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" identifier = identifier) ;) (expression_statement "puVar9 = puVar8 + 4;" (assignment_expression "puVar9 = puVar8 + 4" identifier = (binary_expression "puVar8 + 4" identifier + number_literal)) ;) (expression_statement "uVar16 = puVar8[1];" (assignment_expression "uVar16 = puVar8[1]" identifier = (subscript_expression "puVar8[1]" identifier [ number_literal ])) ;) (expression_statement "uVar14 = puVar8[2];" (assignment_expression "uVar14 = puVar8[2]" identifier = (subscript_expression "puVar8[2]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = puVar8[3];" (assignment_expression "uVar7 = puVar8[3]" identifier = (subscript_expression "puVar8[3]" identifier [ number_literal ])) ;) (expression_statement "*puVar11 = *puVar8;" (assignment_expression "*puVar11 = *puVar8" (pointer_expression "*puVar11" * identifier) = (pointer_expression "*puVar8" * identifier)) ;) (expression_statement "puVar11[1] = uVar16;" (assignment_expression "puVar11[1] = uVar16" (subscript_expression "puVar11[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar11[2] = uVar14;" (assignment_expression "puVar11[2] = uVar14" (subscript_expression "puVar11[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar11[3] = uVar7;" (assignment_expression "puVar11[3] = uVar7" (subscript_expression "puVar11[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = puVar11 + 4;" (assignment_expression "puVar3 = puVar11 + 4" identifier = (binary_expression "puVar11 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar9 != auStack_170)" ( (binary_expression "puVar9 != auStack_170" identifier != identifier) )) ;) (expression_statement "uVar14 = puVar8[5];" (assignment_expression "uVar14 = puVar8[5]" identifier = (subscript_expression "puVar8[5]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = puVar8[6];" (assignment_expression "uVar7 = puVar8[6]" identifier = (subscript_expression "puVar8[6]" identifier [ number_literal ])) ;) (expression_statement "puVar11[4] = *puVar9;" (assignment_expression "puVar11[4] = *puVar9" (subscript_expression "puVar11[4]" identifier [ number_literal ]) = (pointer_expression "*puVar9" * identifier)) ;) (expression_statement "puVar11[5] = uVar14;" (assignment_expression "puVar11[5] = uVar14" (subscript_expression "puVar11[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar11[6] = uVar7;" (assignment_expression "puVar11[6] = uVar7" (subscript_expression "puVar11[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790);" (call_expression "(*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790)" (parenthesized_expression "(*(code *)PTR_strftime_000adc40)" ( (pointer_expression "*(code *)PTR_strftime_000adc40" * (cast_expression "(code *)PTR_strftime_000adc40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790)" ( identifier , number_literal , (binary_expression "PTR_DAT_000ad2c8 + -0x5790" identifier + number_literal) ))) ;) (if_statement "if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" if (parenthesized_expression "(param_2 == (int *)0x0)" ( (binary_expression "param_2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }" { (expression_statement "puVar15 = PTR_DAT_000ad2c8 + -0x57f8;" (assignment_expression "puVar15 = PTR_DAT_000ad2c8 + -0x57f8" identifier = (binary_expression "PTR_DAT_000ad2c8 + -0x57f8" identifier + number_literal)) ;) }) (else_clause "else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" else (compound_statement "{\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" { (expression_statement "puVar15 = PTR_DAT_000ad2c8 + -0x57ec;" (assignment_expression "puVar15 = PTR_DAT_000ad2c8 + -0x57ec" identifier = (binary_expression "PTR_DAT_000ad2c8 + -0x57ec" identifier + number_literal)) ;) }))) (expression_statement "local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);" (assignment_expression "local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150)" identifier = (cast_expression "(code *)(PTR_LAB_000ad2c4 + -0x150)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000ad2c4 + -0x150)" ( (binary_expression "PTR_LAB_000ad2c4 + -0x150" identifier + number_literal) )))) ;) (expression_statement "param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c);" (assignment_expression "param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c)" identifier = (cast_expression "(int *)(PTR_DAT_000ad2c8 + -0x577c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000ad2c8 + -0x577c)" ( (binary_expression "PTR_DAT_000ad2c8 + -0x577c" identifier + number_literal) )))) ;) (expression_statement "piVar12 = param_1;" (assignment_expression "piVar12 = param_1" identifier = identifier) ;) (expression_statement "FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c);" (call_expression "FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c)" identifier (argument_list "(param_1,param_2,puVar15,aiStack_12c)" ( identifier , identifier , identifier , identifier ))) ;) (if_statement "if (0 < (int)param_6) goto LAB_00020bf4;" if (parenthesized_expression "(0 < (int)param_6)" ( (binary_expression "0 < (int)param_6" number_literal < (cast_expression "(int)param_6" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_00020bf4;" goto statement_identifier ;)) (expression_statement "iVar23 = param_1[8];" (assignment_expression "iVar23 = param_1[8]" identifier = (subscript_expression "param_1[8]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);\n    if (param_9 != (undefined4 *)0x0) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }\n    (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);\n    if ((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);\n    piVar12 = param_1;\n    (*local_1b0)(param_1,param_2);\n    if (0 < (int)param_6) {\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }\n    iVar23 = param_1[8];\n  }" else (compound_statement "{\n    if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);\n    if (param_9 != (undefined4 *)0x0) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }\n    (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);\n    if ((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);\n    piVar12 = param_1;\n    (*local_1b0)(param_1,param_2);\n    if (0 < (int)param_6) {\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }\n    iVar23 = param_1[8];\n  }" { (if_statement "if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;" if (parenthesized_expression "((param_1[8] != 3) || (param_4 == 0))" ( (binary_expression "(param_1[8] != 3) || (param_4 == 0)" (parenthesized_expression "(param_1[8] != 3)" ( (binary_expression "param_1[8] != 3" (subscript_expression "param_1[8]" identifier [ number_literal ]) != number_literal) )) || (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) ))) )) (goto_statement "goto LAB_00020d6c;" goto statement_identifier ;)) (labeled_statement "LAB_00020b58:\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" statement_identifier : (if_statement "if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" if (parenthesized_expression "(param_2 == (int *)0x0)" ( (binary_expression "param_2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }" { (expression_statement "puVar15 = PTR_DAT_000ad2c8 + -0x57f8;" (assignment_expression "puVar15 = PTR_DAT_000ad2c8 + -0x57f8" identifier = (binary_expression "PTR_DAT_000ad2c8 + -0x57f8" identifier + number_literal)) ;) }) (else_clause "else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" else (compound_statement "{\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" { (expression_statement "puVar15 = PTR_DAT_000ad2c8 + -0x57ec;" (assignment_expression "puVar15 = PTR_DAT_000ad2c8 + -0x57ec" identifier = (binary_expression "PTR_DAT_000ad2c8 + -0x57ec" identifier + number_literal)) ;) })))) (expression_statement "local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);" (assignment_expression "local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150)" identifier = (cast_expression "(code *)(PTR_LAB_000ad2c4 + -0x150)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000ad2c4 + -0x150)" ( (binary_expression "PTR_LAB_000ad2c4 + -0x150" identifier + number_literal) )))) ;) (expression_statement "FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);" (call_expression "FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15)" identifier (argument_list "(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15)" ( identifier , (binary_expression "PTR_DAT_000ad2c8 + -0x57e0" identifier + number_literal) , identifier ))) ;) (if_statement "if (param_9 != (undefined4 *)0x0) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }" if (parenthesized_expression "(param_9 != (undefined4 *)0x0)" ( (binary_expression "param_9 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }" { (expression_statement "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);" (call_expression "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9)" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9)" ( identifier , (binary_expression "PTR_DAT_000ad2c8 + -0x57d4" identifier + number_literal) , (pointer_expression "*param_9" * identifier) ))) ;) })) (expression_statement "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);" (call_expression "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4)" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4)" ( identifier , (binary_expression "PTR_DAT_000ad2c8 + -0x57c8" identifier + number_literal) , identifier , identifier , identifier ))) ;) (if_statement "if ((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }" if (parenthesized_expression "((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0))" ( (binary_expression "(param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)" (parenthesized_expression "(param_10 != 0)" ( (binary_expression "param_10 != 0" identifier != number_literal) )) && (parenthesized_expression "((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)" ( (comma_expression "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0" (call_expression "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10)" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10)" ( identifier , (binary_expression "PTR_DAT_000ad2c8 + -0x57b0" identifier + number_literal) , identifier ))) , (binary_expression "param_11 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }" { (expression_statement "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);" (call_expression "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11)" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11)" ( identifier , (binary_expression "PTR_DAT_000ad2c8 + -0x57b8" identifier + number_literal) , identifier ))) ;) })) (expression_statement "param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);" (assignment_expression "param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500)" identifier = (cast_expression "(int *)(PTR_DAT_000ad2c8 + -0x2500)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000ad2c8 + -0x2500)" ( (binary_expression "PTR_DAT_000ad2c8 + -0x2500" identifier + number_literal) )))) ;) (expression_statement "piVar12 = param_1;" (assignment_expression "piVar12 = param_1" identifier = identifier) ;) (expression_statement "(*local_1b0)(param_1,param_2);" (call_expression "(*local_1b0)(param_1,param_2)" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (if_statement "if (0 < (int)param_6) {\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }" if (parenthesized_expression "(0 < (int)param_6)" ( (binary_expression "0 < (int)param_6" number_literal < (cast_expression "(int)param_6" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }" { (labeled_statement "LAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;" statement_identifier : (expression_statement "puVar15 = PTR_DAT_000ad2c8;" (assignment_expression "puVar15 = PTR_DAT_000ad2c8" identifier = identifier) ;)) (expression_statement "uVar22 = 0;" (assignment_expression "uVar22 = 0" identifier = number_literal) ;) (expression_statement "iVar21 = 0;" (assignment_expression "iVar21 = 0" identifier = number_literal) ;) (expression_statement "iVar20 = 0;" (assignment_expression "iVar20 = 0" identifier = number_literal) ;) (expression_statement "iVar23 = 0;" (assignment_expression "iVar23 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = PTR_DAT_000ad2c8 + -0x22a4;" (assignment_expression "puVar4 = PTR_DAT_000ad2c8 + -0x22a4" identifier = (binary_expression "PTR_DAT_000ad2c8 + -0x22a4" identifier + number_literal)) ;) (expression_statement "pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);" (assignment_expression "pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294)" identifier = (cast_expression "(code *)(PTR_LAB_000ad2c4 + -0x294)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000ad2c4 + -0x294)" ( (binary_expression "PTR_LAB_000ad2c4 + -0x294" identifier + number_literal) )))) ;) (expression_statement "puVar6 = PTR_DAT_000ad2d0 + -0x5930;" (assignment_expression "puVar6 = PTR_DAT_000ad2d0 + -0x5930" identifier = (binary_expression "PTR_DAT_000ad2d0 + -0x5930" identifier + number_literal)) ;) (expression_statement "bVar1 = 0 < param_7;" (assignment_expression "bVar1 = 0 < param_7" identifier = (binary_expression "0 < param_7" number_literal < identifier)) ;) (do_statement "do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);" do (compound_statement "{\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      }" { (if_statement "if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }" { (expression_statement "piVar10 = (int *)(param_8 + iVar23 * 0xc);" (assignment_expression "piVar10 = (int *)(param_8 + iVar23 * 0xc)" identifier = (cast_expression "(int *)(param_8 + iVar23 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_8 + iVar23 * 0xc)" ( (binary_expression "param_8 + iVar23 * 0xc" identifier + (binary_expression "iVar23 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "iVar13 = *piVar10;" (assignment_expression "iVar13 = *piVar10" identifier = (pointer_expression "*piVar10" * identifier)) ;) (expression_statement "piVar12 = (int *)(iVar23 * 0xc + 0xc);" (assignment_expression "piVar12 = (int *)(iVar23 * 0xc + 0xc)" identifier = (cast_expression "(int *)(iVar23 * 0xc + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar23 * 0xc + 0xc)" ( (binary_expression "iVar23 * 0xc + 0xc" (binary_expression "iVar23 * 0xc" identifier * number_literal) + number_literal) )))) ;) (if_statement "if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }" if (parenthesized_expression "(iVar13 + piVar10[1] <= (int)uVar22)" ( (binary_expression "iVar13 + piVar10[1] <= (int)uVar22" (binary_expression "iVar13 + piVar10[1]" identifier + (subscript_expression "piVar10[1]" identifier [ number_literal ])) <= (cast_expression "(int)uVar22" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }" { (expression_statement "piVar12 = (int *)(param_8 + (int)piVar12);" (assignment_expression "piVar12 = (int *)(param_8 + (int)piVar12)" identifier = (cast_expression "(int *)(param_8 + (int)piVar12)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_8 + (int)piVar12)" ( (binary_expression "param_8 + (int)piVar12" identifier + (cast_expression "(int)piVar12" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (do_statement "do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);" do (compound_statement "{\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            }" { (expression_statement "piVar10 = piVar12;" (assignment_expression "piVar10 = piVar12" identifier = identifier) ;) (expression_statement "iVar23 = iVar23 + 1;" (assignment_expression "iVar23 = iVar23 + 1" identifier = (binary_expression "iVar23 + 1" identifier + number_literal)) ;) (if_statement "if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }" if (parenthesized_expression "(param_7 == iVar23)" ( (binary_expression "param_7 == iVar23" identifier == identifier) )) (compound_statement "{\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }" { (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (expression_statement "iVar23 = param_7;" (assignment_expression "iVar23 = param_7" identifier = identifier) ;) (goto_statement "goto LAB_00020c9c;" goto statement_identifier ;) })) (expression_statement "iVar13 = *piVar10;" (assignment_expression "iVar13 = *piVar10" identifier = (pointer_expression "*piVar10" * identifier)) ;) (expression_statement "piVar12 = piVar10 + 3;" (assignment_expression "piVar12 = piVar10 + 3" identifier = (binary_expression "piVar10 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar13 + piVar10[1] <= (int)uVar22)" ( (binary_expression "iVar13 + piVar10[1] <= (int)uVar22" (binary_expression "iVar13 + piVar10[1]" identifier + (subscript_expression "piVar10[1]" identifier [ number_literal ])) <= (cast_expression "(int)uVar22" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (if_statement "if ((int)uVar22 < iVar13) goto LAB_00020e70;" if (parenthesized_expression "((int)uVar22 < iVar13)" ( (binary_expression "(int)uVar22 < iVar13" (cast_expression "(int)uVar22" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) (goto_statement "goto LAB_00020e70;" goto statement_identifier ;)) (expression_statement "iVar13 = piVar10[2];" (assignment_expression "iVar13 = piVar10[2]" identifier = (subscript_expression "piVar10[2]" identifier [ number_literal ])) ;) (if_statement "if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }" if (parenthesized_expression "(iVar13 != 2)" ( (binary_expression "iVar13 != 2" identifier != number_literal) )) (compound_statement "{\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }" { (labeled_statement "LAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;" statement_identifier : (if_statement "if (iVar20 != 0) goto LAB_00020dac;" if (parenthesized_expression "(iVar20 != 0)" ( (binary_expression "iVar20 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00020dac;" goto statement_identifier ;))) (goto_statement "goto joined_r0x00020ddc;" goto statement_identifier ;) })) (if_statement "if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }" if (parenthesized_expression "(iVar20 == 0 && iVar21 == 0)" ( (binary_expression "iVar20 == 0 && iVar21 == 0" (binary_expression "iVar20 == 0" identifier == number_literal) && (binary_expression "iVar21 == 0" identifier == number_literal)) )) (compound_statement "{\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }" { (expression_statement "param_2 = (int *)0x1;" (assignment_expression "param_2 = (int *)0x1" identifier = (cast_expression "(int *)0x1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "piVar12 = aiStack_12c;" (assignment_expression "piVar12 = aiStack_12c" identifier = identifier) ;) (expression_statement "iVar20 = 1;" (assignment_expression "iVar20 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);" (call_expression "(*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_000adaf0)" ( (pointer_expression "*(code *)PTR___sprintf_chk_000adaf0" * (cast_expression "(code *)PTR___sprintf_chk_000adaf0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4)" ( identifier , number_literal , number_literal , (binary_expression "puVar15 + -0x5750" identifier + number_literal) , (binary_expression "uVar22 & 0xfffffff0" identifier & number_literal) , number_literal , identifier ))) ;) }) (else_clause "else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }" else (compound_statement "{\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }" { (expression_statement "iVar20 = iVar20 + 1;" (assignment_expression "iVar20 = iVar20 + 1" identifier = (binary_expression "iVar20 + 1" identifier + number_literal)) ;) (expression_statement "param_2 = (int *)0x0;" (assignment_expression "param_2 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (expression_statement "iVar13 = iVar21;" (assignment_expression "iVar13 = iVar21" identifier = identifier) ;) (if_statement "if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }" if (parenthesized_expression "(((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1))" ( (binary_expression "((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)" (parenthesized_expression "((uVar22 + 1 & 0xf) == 0)" ( (binary_expression "(uVar22 + 1 & 0xf) == 0" (parenthesized_expression "(uVar22 + 1 & 0xf)" ( (binary_expression "uVar22 + 1 & 0xf" (binary_expression "uVar22 + 1" identifier + number_literal) & number_literal) )) == number_literal) )) || (parenthesized_expression "(param_6 != uVar22 + 1)" ( (binary_expression "param_6 != uVar22 + 1" identifier != (binary_expression "uVar22 + 1" identifier + number_literal)) ))) )) (compound_statement "{\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }" { (if_statement "if (iVar21 != 0) goto LAB_00020e90;" if (parenthesized_expression "(iVar21 != 0)" ( (binary_expression "iVar21 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00020e90;" goto statement_identifier ;)) (goto_statement "goto LAB_00020d3c;" goto statement_identifier ;) })) (if_statement "if (iVar21 == 0) goto LAB_00020ffc;" if (parenthesized_expression "(iVar21 == 0)" ( (binary_expression "iVar21 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00020ffc;" goto statement_identifier ;)) (labeled_statement "LAB_00020e90:\n          param_2 = aiStack_12c;" statement_identifier : (expression_statement "param_2 = aiStack_12c;" (assignment_expression "param_2 = aiStack_12c" identifier = identifier) ;)) (expression_statement "iVar21 = 0;" (assignment_expression "iVar21 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;" (assignment_expression "*(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd" (pointer_expression "*(undefined1 *)((int)param_2 + iVar13 + 0x3d)" * (cast_expression "(undefined1 *)((int)param_2 + iVar13 + 0x3d)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + iVar13 + 0x3d)" ( (binary_expression "(int)param_2 + iVar13 + 0x3d" (binary_expression "(int)param_2 + iVar13" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "local_ef[iVar13 + 2] = 0;" (assignment_expression "local_ef[iVar13 + 2] = 0" (subscript_expression "local_ef[iVar13 + 2]" identifier [ (binary_expression "iVar13 + 2" identifier + number_literal) ]) = number_literal) ;) (expression_statement "local_ef[iVar13 + 1] = 10;" (assignment_expression "local_ef[iVar13 + 1] = 10" (subscript_expression "local_ef[iVar13 + 1]" identifier [ (binary_expression "iVar13 + 1" identifier + number_literal) ]) = number_literal) ;) (expression_statement "uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);" (assignment_expression "uVar7 = (*(code *)PTR_strlen_000adc28)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_000adc28)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_000adc28)" ( (pointer_expression "*(code *)PTR_strlen_000adc28" * (cast_expression "(code *)PTR_strlen_000adc28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "piVar12 = param_1;" (assignment_expression "piVar12 = param_1" identifier = identifier) ;) (expression_statement "(*pcVar5)(param_1,param_2,uVar7);" (call_expression "(*pcVar5)(param_1,param_2,uVar7)" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "(param_1,param_2,uVar7)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }" else (compound_statement "{\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }" { (labeled_statement "LAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }" statement_identifier : (if_statement "if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }" if (parenthesized_expression "(iVar20 == 0)" ( (binary_expression "iVar20 == 0" identifier == number_literal) )) (compound_statement "{\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }" { (if_statement "if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }" if (parenthesized_expression "(iVar21 == 0)" ( (binary_expression "iVar21 == 0" identifier == number_literal) )) (compound_statement "{\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }" { (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020de4;" goto statement_identifier ;) })) (labeled_statement "LAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);" statement_identifier : (expression_statement "bVar19 = *(byte *)(param_5 + uVar22);" (assignment_expression "bVar19 = *(byte *)(param_5 + uVar22)" identifier = (pointer_expression "*(byte *)(param_5 + uVar22)" * (cast_expression "(byte *)(param_5 + uVar22)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + uVar22)" ( (binary_expression "param_5 + uVar22" identifier + identifier) ))))) ;)) (expression_statement "iVar20 = (uint)bVar19 << 1;" (assignment_expression "iVar20 = (uint)bVar19 << 1" identifier = (binary_expression "(uint)bVar19 << 1" (cast_expression "(uint)bVar19" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal)) ;) (expression_statement "(*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);" (call_expression "(*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_000adaf0)" ( (pointer_expression "*(code *)PTR___sprintf_chk_000adaf0" * (cast_expression "(code *)PTR___sprintf_chk_000adaf0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19)" ( (pointer_expression "&local_134" & identifier) , number_literal , number_literal , (binary_expression "puVar15 + -0x5744" identifier + number_literal) , (cast_expression "(uint)bVar19" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) }) (else_clause "else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }" else (compound_statement "{\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }" { (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00020dac:\n            puVar17 = puVar4;" statement_identifier : (expression_statement "puVar17 = puVar4;" (assignment_expression "puVar17 = puVar4" identifier = identifier) ;)) (if_statement "if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }" if (parenthesized_expression "(iVar20 != 1)" ( (binary_expression "iVar20 != 1" identifier != number_literal) )) (compound_statement "{\n              puVar17 = puVar6;\n            }" { (expression_statement "puVar17 = puVar6;" (assignment_expression "puVar17 = puVar6" identifier = identifier) ;) })) (expression_statement "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);" (call_expression "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17)" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17)" ( identifier , (binary_expression "PTR_DAT_000ad2c8 + -0x5768" identifier + number_literal) , identifier , identifier ))) ;) (labeled_statement "joined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }" statement_identifier : (if_statement "if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }" if (parenthesized_expression "(iVar21 == 0)" ( (binary_expression "iVar21 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }" { (labeled_statement "LAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);" statement_identifier : (expression_statement "(*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);" (call_expression "(*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_000adaf0)" ( (pointer_expression "*(code *)PTR___sprintf_chk_000adaf0" * (cast_expression "(code *)PTR___sprintf_chk_000adaf0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4)" ( identifier , number_literal , number_literal , (binary_expression "puVar15 + -0x5750" identifier + number_literal) , (binary_expression "uVar22 - (uVar22 & 0xf)" identifier - (parenthesized_expression "(uVar22 & 0xf)" ( (binary_expression "uVar22 & 0xf" identifier & number_literal) ))) , number_literal , identifier ))) ;)) }))) (if_statement "if (iVar13 != 1) goto LAB_00020e30;" if (parenthesized_expression "(iVar13 != 1)" ( (binary_expression "iVar13 != 1" identifier != number_literal) )) (goto_statement "goto LAB_00020e30;" goto statement_identifier ;)) (expression_statement "local_132 = 0;" (assignment_expression "local_132 = 0" identifier = number_literal) ;) (expression_statement "iVar20 = 0xb0;" (assignment_expression "iVar20 = 0xb0" identifier = number_literal) ;) (expression_statement "bVar19 = 0x58;" (assignment_expression "bVar19 = 0x58" identifier = number_literal) ;) (expression_statement "local_134 = 0x5858;" (assignment_expression "local_134 = 0x5858" identifier = number_literal) ;) })))) (expression_statement "uVar18 = uVar22 & 0xf;" (assignment_expression "uVar18 = uVar22 & 0xf" identifier = (binary_expression "uVar22 & 0xf" identifier & number_literal)) ;) (expression_statement "iVar21 = uVar18 + 1;" (assignment_expression "iVar21 = uVar18 + 1" identifier = (binary_expression "uVar18 + 1" identifier + number_literal)) ;) (expression_statement "local_120[uVar18 * 3] = local_134._0_1_;" (assignment_expression "local_120[uVar18 * 3] = local_134._0_1_" (subscript_expression "local_120[uVar18 * 3]" identifier [ (binary_expression "uVar18 * 3" identifier * number_literal) ]) = (field_expression "local_134._0_1_" identifier . field_identifier)) ;) (expression_statement "local_120[uVar18 * 3 + 1] = (undefined1)local_134;" (assignment_expression "local_120[uVar18 * 3 + 1] = (undefined1)local_134" (subscript_expression "local_120[uVar18 * 3 + 1]" identifier [ (binary_expression "uVar18 * 3 + 1" (binary_expression "uVar18 * 3" identifier * number_literal) + number_literal) ]) = (cast_expression "(undefined1)local_134" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();" (assignment_expression "piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_000adafc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_000adafc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_000adafc)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_000adafc" * (cast_expression "(code *)PTR___ctype_b_loc_000adafc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "param_2 = (int *)0x2e;" (assignment_expression "param_2 = (int *)0x2e" identifier = (cast_expression "(int *)0x2e" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "piVar12 = (int *)(uVar22 + 1 & 0xf);" (assignment_expression "piVar12 = (int *)(uVar22 + 1 & 0xf)" identifier = (cast_expression "(int *)(uVar22 + 1 & 0xf)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar22 + 1 & 0xf)" ( (binary_expression "uVar22 + 1 & 0xf" (binary_expression "uVar22 + 1" identifier + number_literal) & number_literal) )))) ;) (if_statement "if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }" if (parenthesized_expression "((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0)" ( (binary_expression "(*(ushort *)(*piVar10 + iVar20) & 0x40) == 0" (parenthesized_expression "(*(ushort *)(*piVar10 + iVar20) & 0x40)" ( (binary_expression "*(ushort *)(*piVar10 + iVar20) & 0x40" (pointer_expression "*(ushort *)(*piVar10 + iVar20)" * (cast_expression "(ushort *)(*piVar10 + iVar20)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar10 + iVar20)" ( (binary_expression "*piVar10 + iVar20" (pointer_expression "*piVar10" * identifier) + identifier) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n            bVar19 = 0x2e;\n          }" { (expression_statement "bVar19 = 0x2e;" (assignment_expression "bVar19 = 0x2e" identifier = number_literal) ;) })) (expression_statement "local_ef[uVar18] = bVar19;" (assignment_expression "local_ef[uVar18] = bVar19" (subscript_expression "local_ef[uVar18]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar13 = iVar21;" (assignment_expression "iVar13 = iVar21" identifier = identifier) ;) (if_statement "if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }" if (parenthesized_expression "(piVar12 == (int *)0x0)" ( (binary_expression "piVar12 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }" { (expression_statement "iVar20 = 0;" (assignment_expression "iVar20 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020e90;" goto statement_identifier ;) })) (expression_statement "iVar20 = 0;" (assignment_expression "iVar20 = 0" identifier = number_literal) ;) (if_statement "if (param_6 == uVar22 + 1) goto LAB_00020e90;" if (parenthesized_expression "(param_6 == uVar22 + 1)" ( (binary_expression "param_6 == uVar22 + 1" identifier == (binary_expression "uVar22 + 1" identifier + number_literal)) )) (goto_statement "goto LAB_00020e90;" goto statement_identifier ;)) }))) (labeled_statement "LAB_00020d3c:\n        uVar22 = uVar22 + 1;" statement_identifier : (expression_statement "uVar22 = uVar22 + 1;" (assignment_expression "uVar22 = uVar22 + 1" identifier = (binary_expression "uVar22 + 1" identifier + number_literal)) ;)) (expression_statement "bVar1 = iVar23 < param_7;" (assignment_expression "bVar1 = iVar23 < param_7" identifier = (binary_expression "iVar23 < param_7" identifier < identifier)) ;) }) while (parenthesized_expression "((int)uVar22 < (int)param_6)" ( (binary_expression "(int)uVar22 < (int)param_6" (cast_expression "(int)uVar22" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)param_6" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) (if_statement "if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }" if (parenthesized_expression "(iVar20 != 0)" ( (binary_expression "iVar20 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }" { (labeled_statement "LAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }" statement_identifier : (if_statement "if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }" if (parenthesized_expression "(iVar20 == 1)" ( (binary_expression "iVar20 == 1" identifier == number_literal) )) (compound_statement "{\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }" { (expression_statement "puVar15 = PTR_DAT_000ad2c8 + -0x22a4;" (assignment_expression "puVar15 = PTR_DAT_000ad2c8 + -0x22a4" identifier = (binary_expression "PTR_DAT_000ad2c8 + -0x22a4" identifier + number_literal)) ;) }) (else_clause "else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }" else (compound_statement "{\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }" { (expression_statement "puVar15 = PTR_DAT_000ad2d0 + -0x5930;" (assignment_expression "puVar15 = PTR_DAT_000ad2d0 + -0x5930" identifier = (binary_expression "PTR_DAT_000ad2d0 + -0x5930" identifier + number_literal)) ;) })))) (expression_statement "param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);" (assignment_expression "param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768)" identifier = (cast_expression "(int *)(PTR_DAT_000ad2c8 + -0x5768)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000ad2c8 + -0x5768)" ( (binary_expression "PTR_DAT_000ad2c8 + -0x5768" identifier + number_literal) )))) ;) (expression_statement "piVar12 = param_1;" (assignment_expression "piVar12 = param_1" identifier = identifier) ;) (expression_statement "(*local_1b0)(param_1,param_2,iVar20,puVar15);" (call_expression "(*local_1b0)(param_1,param_2,iVar20,puVar15)" (parenthesized_expression "(*local_1b0)" ( (pointer_expression "*local_1b0" * identifier) )) (argument_list "(param_1,param_2,iVar20,puVar15)" ( identifier , identifier , identifier , identifier ))) ;) })) })) (expression_statement "iVar23 = param_1[8];" (assignment_expression "iVar23 = param_1[8]" identifier = (subscript_expression "param_1[8]" identifier [ number_literal ])) ;) }))) (if_statement "if ((0 < iVar23) && (param_1[1] == 2)) {\n    piVar12 = (int *)*param_1;\n    (*(code *)PTR_fflush_000adcf4)();\n  }" if (parenthesized_expression "((0 < iVar23) && (param_1[1] == 2))" ( (binary_expression "(0 < iVar23) && (param_1[1] == 2)" (parenthesized_expression "(0 < iVar23)" ( (binary_expression "0 < iVar23" number_literal < identifier) )) && (parenthesized_expression "(param_1[1] == 2)" ( (binary_expression "param_1[1] == 2" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n    piVar12 = (int *)*param_1;\n    (*(code *)PTR_fflush_000adcf4)();\n  }" { (expression_statement "piVar12 = (int *)*param_1;" (assignment_expression "piVar12 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "(*(code *)PTR_fflush_000adcf4)();" (call_expression "(*(code *)PTR_fflush_000adcf4)()" (parenthesized_expression "(*(code *)PTR_fflush_000adcf4)" ( (pointer_expression "*(code *)PTR_fflush_000adcf4" * (cast_expression "(code *)PTR_fflush_000adcf4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (labeled_statement "LAB_00020d6c:\n  if (local_2c == *(int **)puVar2) {\n    return *(int **)puVar2;\n  }" statement_identifier : (if_statement "if (local_2c == *(int **)puVar2) {\n    return *(int **)puVar2;\n  }" if (parenthesized_expression "(local_2c == *(int **)puVar2)" ( (binary_expression "local_2c == *(int **)puVar2" identifier == (pointer_expression "*(int **)puVar2" * (cast_expression "(int **)puVar2" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return *(int **)puVar2;\n  }" { (return_statement "return *(int **)puVar2;" return (pointer_expression "*(int **)puVar2" * (cast_expression "(int **)puVar2" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_000adca4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000adca4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000adca4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000adca4" * (cast_expression "(code *)PTR___stack_chk_fail_000adca4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar10 = (int *)safemalloc(1,0x24);" (assignment_expression "piVar10 = (int *)safemalloc(1,0x24)" identifier = (cast_expression "(int *)safemalloc(1,0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0x24)" identifier (argument_list "(1,0x24)" ( number_literal , number_literal ))))) ;) (expression_statement "piVar10[6] = (int)piVar12;" (assignment_expression "piVar10[6] = (int)piVar12" (subscript_expression "piVar10[6]" identifier [ number_literal ]) = (cast_expression "(int)piVar12" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*piVar10 = 0;" (assignment_expression "*piVar10 = 0" (pointer_expression "*piVar10" * identifier) = number_literal) ;) (expression_statement "piVar10[1] = 0;" (assignment_expression "piVar10[1] = 0" (subscript_expression "piVar10[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar23 = conf_copy(param_2);" (assignment_expression "iVar23 = conf_copy(param_2)" identifier = (call_expression "conf_copy(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "piVar10[7] = iVar23;" (assignment_expression "piVar10[7] = iVar23" (subscript_expression "piVar10[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar23 = conf_get_int(iVar23,0x78);" (assignment_expression "iVar23 = conf_get_int(iVar23,0x78)" identifier = (call_expression "conf_get_int(iVar23,0x78)" identifier (argument_list "(iVar23,0x78)" ( identifier , number_literal )))) ;) (expression_statement "piVar10[8] = iVar23;" (assignment_expression "piVar10[8] = iVar23" (subscript_expression "piVar10[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar10[5] = 0;" (assignment_expression "piVar10[5] = 0" (subscript_expression "piVar10[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "bufchain_init(piVar10 + 2);" (call_expression "bufchain_init(piVar10 + 2)" identifier (argument_list "(piVar10 + 2)" ( (binary_expression "piVar10 + 2" identifier + number_literal) ))) ;) (return_statement "return piVar10;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , (binary_expression IDENT + LIT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , (pointer_expression * IDENT) ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT ))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (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 LIT < IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + (subscript_expression IDENT [ LIT ])) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + (subscript_expression IDENT [ LIT ])) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;))) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression IDENT == LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT , (binary_expression IDENT + LIT) , (binary_expression IDENT & LIT) , LIT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) & LIT) )) == LIT) )) || (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;)) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) << LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression & IDENT) , LIT , LIT , (binary_expression IDENT + LIT) , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT , (binary_expression IDENT + LIT) , (binary_expression IDENT - (parenthesized_expression ( (binary_expression IDENT & LIT) ))) , LIT , IDENT ))) ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT * LIT) ]) = (field_expression IDENT . field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) & LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + IDENT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + LIT)) )) (goto_statement goto statement_identifier ;)) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT < IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) })) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (return_statement return IDENT ;) })))
(function_definition "int * log_packet(int *param_1,int *param_2,undefined4 param_3,int param_4,int param_5,uint param_6,\n                int param_7,int param_8,undefined4 *param_9,int param_10,int param_11)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  undefined *puVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  int *piVar10;\n  undefined4 *puVar11;\n  int *piVar12;\n  int iVar13;\n  undefined4 uVar14;\n  undefined *puVar15;\n  undefined4 uVar16;\n  undefined *puVar17;\n  uint uVar18;\n  byte bVar19;\n  int iVar20;\n  int iVar21;\n  uint uVar22;\n  int iVar23;\n  code *local_1b0;\n  undefined4 local_190 [8];\n  undefined4 auStack_170 [4];\n  undefined4 local_160 [11];\n  undefined2 local_134;\n  undefined1 local_132;\n  int aiStack_12c [3];\n  undefined1 local_120 [49];\n  byte local_ef [195];\n  int *local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000adcd4;\n  piVar12 = *(int **)PTR___stack_chk_guard_000adcd4;\n  local_2c = piVar12;\n  if (param_1[8] == 4) {\n    if (param_4 != 0) goto LAB_00020b58;\n    (*(code *)PTR_ltime_000ad4d4)(local_190);\n    puVar9 = local_190;\n    puVar3 = local_160;\n    do {\n      puVar11 = puVar3;\n      puVar8 = puVar9;\n      puVar9 = puVar8 + 4;\n      uVar16 = puVar8[1];\n      uVar14 = puVar8[2];\n      uVar7 = puVar8[3];\n      *puVar11 = *puVar8;\n      puVar11[1] = uVar16;\n      puVar11[2] = uVar14;\n      puVar11[3] = uVar7;\n      puVar3 = puVar11 + 4;\n    } while (puVar9 != auStack_170);\n    uVar14 = puVar8[5];\n    uVar7 = puVar8[6];\n    puVar11[4] = *puVar9;\n    puVar11[5] = uVar14;\n    puVar11[6] = uVar7;\n    (*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790);\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c);\n    piVar12 = param_1;\n    FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c);\n    if (0 < (int)param_6) goto LAB_00020bf4;\n    iVar23 = param_1[8];\n  }\n  else {\n    if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);\n    if (param_9 != (undefined4 *)0x0) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }\n    (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);\n    if ((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);\n    piVar12 = param_1;\n    (*local_1b0)(param_1,param_2);\n    if (0 < (int)param_6) {\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }\n    iVar23 = param_1[8];\n  }\n  if ((0 < iVar23) && (param_1[1] == 2)) {\n    piVar12 = (int *)*param_1;\n    (*(code *)PTR_fflush_000adcf4)();\n  }\nLAB_00020d6c:\n  if (local_2c == *(int **)puVar2) {\n    return *(int **)puVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  piVar10 = (int *)safemalloc(1,0x24);\n  piVar10[6] = (int)piVar12;\n  *piVar10 = 0;\n  piVar10[1] = 0;\n  iVar23 = conf_copy(param_2);\n  piVar10[7] = iVar23;\n  iVar23 = conf_get_int(iVar23,0x78);\n  piVar10[8] = iVar23;\n  piVar10[5] = 0;\n  bufchain_init(piVar10 + 2);\n  return piVar10;\n}" (primitive_type "int") (pointer_declarator "* log_packet(int *param_1,int *param_2,undefined4 param_3,int param_4,int param_5,uint param_6,\n                int param_7,int param_8,undefined4 *param_9,int param_10,int param_11)" (* "*") (function_declarator "log_packet(int *param_1,int *param_2,undefined4 param_3,int param_4,int param_5,uint param_6,\n                int param_7,int param_8,undefined4 *param_9,int param_10,int param_11)" (identifier "log_packet") (parameter_list "(int *param_1,int *param_2,undefined4 param_3,int param_4,int param_5,uint param_6,\n                int param_7,int param_8,undefined4 *param_9,int param_10,int param_11)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "uint param_6" (type_identifier "uint") (identifier "param_6")) (, ",") (parameter_declaration "int param_7" (primitive_type "int") (identifier "param_7")) (, ",") (parameter_declaration "int param_8" (primitive_type "int") (identifier "param_8")) (, ",") (parameter_declaration "undefined4 *param_9" (type_identifier "undefined4") (pointer_declarator "*param_9" (* "*") (identifier "param_9"))) (, ",") (parameter_declaration "int param_10" (primitive_type "int") (identifier "param_10")) (, ",") (parameter_declaration "int param_11" (primitive_type "int") (identifier "param_11")) () ")")))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  undefined *puVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  int *piVar10;\n  undefined4 *puVar11;\n  int *piVar12;\n  int iVar13;\n  undefined4 uVar14;\n  undefined *puVar15;\n  undefined4 uVar16;\n  undefined *puVar17;\n  uint uVar18;\n  byte bVar19;\n  int iVar20;\n  int iVar21;\n  uint uVar22;\n  int iVar23;\n  code *local_1b0;\n  undefined4 local_190 [8];\n  undefined4 auStack_170 [4];\n  undefined4 local_160 [11];\n  undefined2 local_134;\n  undefined1 local_132;\n  int aiStack_12c [3];\n  undefined1 local_120 [49];\n  byte local_ef [195];\n  int *local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000adcd4;\n  piVar12 = *(int **)PTR___stack_chk_guard_000adcd4;\n  local_2c = piVar12;\n  if (param_1[8] == 4) {\n    if (param_4 != 0) goto LAB_00020b58;\n    (*(code *)PTR_ltime_000ad4d4)(local_190);\n    puVar9 = local_190;\n    puVar3 = local_160;\n    do {\n      puVar11 = puVar3;\n      puVar8 = puVar9;\n      puVar9 = puVar8 + 4;\n      uVar16 = puVar8[1];\n      uVar14 = puVar8[2];\n      uVar7 = puVar8[3];\n      *puVar11 = *puVar8;\n      puVar11[1] = uVar16;\n      puVar11[2] = uVar14;\n      puVar11[3] = uVar7;\n      puVar3 = puVar11 + 4;\n    } while (puVar9 != auStack_170);\n    uVar14 = puVar8[5];\n    uVar7 = puVar8[6];\n    puVar11[4] = *puVar9;\n    puVar11[5] = uVar14;\n    puVar11[6] = uVar7;\n    (*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790);\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c);\n    piVar12 = param_1;\n    FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c);\n    if (0 < (int)param_6) goto LAB_00020bf4;\n    iVar23 = param_1[8];\n  }\n  else {\n    if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);\n    if (param_9 != (undefined4 *)0x0) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }\n    (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);\n    if ((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);\n    piVar12 = param_1;\n    (*local_1b0)(param_1,param_2);\n    if (0 < (int)param_6) {\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }\n    iVar23 = param_1[8];\n  }\n  if ((0 < iVar23) && (param_1[1] == 2)) {\n    piVar12 = (int *)*param_1;\n    (*(code *)PTR_fflush_000adcf4)();\n  }\nLAB_00020d6c:\n  if (local_2c == *(int **)puVar2) {\n    return *(int **)puVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  piVar10 = (int *)safemalloc(1,0x24);\n  piVar10[6] = (int)piVar12;\n  *piVar10 = 0;\n  piVar10[1] = 0;\n  iVar23 = conf_copy(param_2);\n  piVar10[7] = iVar23;\n  iVar23 = conf_get_int(iVar23,0x78);\n  piVar10[8] = iVar23;\n  piVar10[5] = 0;\n  bufchain_init(piVar10 + 2);\n  return piVar10;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "code *pcVar5;" (type_identifier "code") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "undefined4 *puVar8;" (type_identifier "undefined4") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined4 *puVar9;" (type_identifier "undefined4") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "int *piVar10;" (primitive_type "int") (pointer_declarator "*piVar10" (* "*") (identifier "piVar10")) (; ";")) (declaration "undefined4 *puVar11;" (type_identifier "undefined4") (pointer_declarator "*puVar11" (* "*") (identifier "puVar11")) (; ";")) (declaration "int *piVar12;" (primitive_type "int") (pointer_declarator "*piVar12" (* "*") (identifier "piVar12")) (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "undefined4 uVar14;" (type_identifier "undefined4") (identifier "uVar14") (; ";")) (declaration "undefined *puVar15;" (type_identifier "undefined") (pointer_declarator "*puVar15" (* "*") (identifier "puVar15")) (; ";")) (declaration "undefined4 uVar16;" (type_identifier "undefined4") (identifier "uVar16") (; ";")) (declaration "undefined *puVar17;" (type_identifier "undefined") (pointer_declarator "*puVar17" (* "*") (identifier "puVar17")) (; ";")) (declaration "uint uVar18;" (type_identifier "uint") (identifier "uVar18") (; ";")) (declaration "byte bVar19;" (type_identifier "byte") (identifier "bVar19") (; ";")) (declaration "int iVar20;" (primitive_type "int") (identifier "iVar20") (; ";")) (declaration "int iVar21;" (primitive_type "int") (identifier "iVar21") (; ";")) (declaration "uint uVar22;" (type_identifier "uint") (identifier "uVar22") (; ";")) (declaration "int iVar23;" (primitive_type "int") (identifier "iVar23") (; ";")) (declaration "code *local_1b0;" (type_identifier "code") (pointer_declarator "*local_1b0" (* "*") (identifier "local_1b0")) (; ";")) (declaration "undefined4 local_190 [8];" (type_identifier "undefined4") (array_declarator "local_190 [8]" (identifier "local_190") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "undefined4 auStack_170 [4];" (type_identifier "undefined4") (array_declarator "auStack_170 [4]" (identifier "auStack_170") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined4 local_160 [11];" (type_identifier "undefined4") (array_declarator "local_160 [11]" (identifier "local_160") ([ "[") (number_literal "11") (] "]")) (; ";")) (declaration "undefined2 local_134;" (type_identifier "undefined2") (identifier "local_134") (; ";")) (declaration "undefined1 local_132;" (type_identifier "undefined1") (identifier "local_132") (; ";")) (declaration "int aiStack_12c [3];" (primitive_type "int") (array_declarator "aiStack_12c [3]" (identifier "aiStack_12c") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "undefined1 local_120 [49];" (type_identifier "undefined1") (array_declarator "local_120 [49]" (identifier "local_120") ([ "[") (number_literal "49") (] "]")) (; ";")) (declaration "byte local_ef [195];" (type_identifier "byte") (array_declarator "local_ef [195]" (identifier "local_ef") ([ "[") (number_literal "195") (] "]")) (; ";")) (declaration "int *local_2c;" (primitive_type "int") (pointer_declarator "*local_2c" (* "*") (identifier "local_2c")) (; ";")) (expression_statement "puVar2 = PTR___stack_chk_guard_000adcd4;" (assignment_expression "puVar2 = PTR___stack_chk_guard_000adcd4" (identifier "puVar2") (= "=") (identifier "PTR___stack_chk_guard_000adcd4")) (; ";")) (expression_statement "piVar12 = *(int **)PTR___stack_chk_guard_000adcd4;" (assignment_expression "piVar12 = *(int **)PTR___stack_chk_guard_000adcd4" (identifier "piVar12") (= "=") (pointer_expression "*(int **)PTR___stack_chk_guard_000adcd4" (* "*") (cast_expression "(int **)PTR___stack_chk_guard_000adcd4" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_000adcd4")))) (; ";")) (expression_statement "local_2c = piVar12;" (assignment_expression "local_2c = piVar12" (identifier "local_2c") (= "=") (identifier "piVar12")) (; ";")) (if_statement "if (param_1[8] == 4) {\n    if (param_4 != 0) goto LAB_00020b58;\n    (*(code *)PTR_ltime_000ad4d4)(local_190);\n    puVar9 = local_190;\n    puVar3 = local_160;\n    do {\n      puVar11 = puVar3;\n      puVar8 = puVar9;\n      puVar9 = puVar8 + 4;\n      uVar16 = puVar8[1];\n      uVar14 = puVar8[2];\n      uVar7 = puVar8[3];\n      *puVar11 = *puVar8;\n      puVar11[1] = uVar16;\n      puVar11[2] = uVar14;\n      puVar11[3] = uVar7;\n      puVar3 = puVar11 + 4;\n    } while (puVar9 != auStack_170);\n    uVar14 = puVar8[5];\n    uVar7 = puVar8[6];\n    puVar11[4] = *puVar9;\n    puVar11[5] = uVar14;\n    puVar11[6] = uVar7;\n    (*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790);\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c);\n    piVar12 = param_1;\n    FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c);\n    if (0 < (int)param_6) goto LAB_00020bf4;\n    iVar23 = param_1[8];\n  }\n  else {\n    if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);\n    if (param_9 != (undefined4 *)0x0) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }\n    (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);\n    if ((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);\n    piVar12 = param_1;\n    (*local_1b0)(param_1,param_2);\n    if (0 < (int)param_6) {\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }\n    iVar23 = param_1[8];\n  }" (if "if") (parenthesized_expression "(param_1[8] == 4)" (( "(") (binary_expression "param_1[8] == 4" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (== "==") (number_literal "4")) () ")")) (compound_statement "{\n    if (param_4 != 0) goto LAB_00020b58;\n    (*(code *)PTR_ltime_000ad4d4)(local_190);\n    puVar9 = local_190;\n    puVar3 = local_160;\n    do {\n      puVar11 = puVar3;\n      puVar8 = puVar9;\n      puVar9 = puVar8 + 4;\n      uVar16 = puVar8[1];\n      uVar14 = puVar8[2];\n      uVar7 = puVar8[3];\n      *puVar11 = *puVar8;\n      puVar11[1] = uVar16;\n      puVar11[2] = uVar14;\n      puVar11[3] = uVar7;\n      puVar3 = puVar11 + 4;\n    } while (puVar9 != auStack_170);\n    uVar14 = puVar8[5];\n    uVar7 = puVar8[6];\n    puVar11[4] = *puVar9;\n    puVar11[5] = uVar14;\n    puVar11[6] = uVar7;\n    (*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790);\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c);\n    piVar12 = param_1;\n    FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c);\n    if (0 < (int)param_6) goto LAB_00020bf4;\n    iVar23 = param_1[8];\n  }" ({ "{") (if_statement "if (param_4 != 0) goto LAB_00020b58;" (if "if") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00020b58;" (goto "goto") (statement_identifier "LAB_00020b58") (; ";"))) (expression_statement "(*(code *)PTR_ltime_000ad4d4)(local_190);" (call_expression "(*(code *)PTR_ltime_000ad4d4)(local_190)" (parenthesized_expression "(*(code *)PTR_ltime_000ad4d4)" (( "(") (pointer_expression "*(code *)PTR_ltime_000ad4d4" (* "*") (cast_expression "(code *)PTR_ltime_000ad4d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ltime_000ad4d4"))) () ")")) (argument_list "(local_190)" (( "(") (identifier "local_190") () ")"))) (; ";")) (expression_statement "puVar9 = local_190;" (assignment_expression "puVar9 = local_190" (identifier "puVar9") (= "=") (identifier "local_190")) (; ";")) (expression_statement "puVar3 = local_160;" (assignment_expression "puVar3 = local_160" (identifier "puVar3") (= "=") (identifier "local_160")) (; ";")) (do_statement "do {\n      puVar11 = puVar3;\n      puVar8 = puVar9;\n      puVar9 = puVar8 + 4;\n      uVar16 = puVar8[1];\n      uVar14 = puVar8[2];\n      uVar7 = puVar8[3];\n      *puVar11 = *puVar8;\n      puVar11[1] = uVar16;\n      puVar11[2] = uVar14;\n      puVar11[3] = uVar7;\n      puVar3 = puVar11 + 4;\n    } while (puVar9 != auStack_170);" (do "do") (compound_statement "{\n      puVar11 = puVar3;\n      puVar8 = puVar9;\n      puVar9 = puVar8 + 4;\n      uVar16 = puVar8[1];\n      uVar14 = puVar8[2];\n      uVar7 = puVar8[3];\n      *puVar11 = *puVar8;\n      puVar11[1] = uVar16;\n      puVar11[2] = uVar14;\n      puVar11[3] = uVar7;\n      puVar3 = puVar11 + 4;\n    }" ({ "{") (expression_statement "puVar11 = puVar3;" (assignment_expression "puVar11 = puVar3" (identifier "puVar11") (= "=") (identifier "puVar3")) (; ";")) (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" (identifier "puVar8") (= "=") (identifier "puVar9")) (; ";")) (expression_statement "puVar9 = puVar8 + 4;" (assignment_expression "puVar9 = puVar8 + 4" (identifier "puVar9") (= "=") (binary_expression "puVar8 + 4" (identifier "puVar8") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "uVar16 = puVar8[1];" (assignment_expression "uVar16 = puVar8[1]" (identifier "uVar16") (= "=") (subscript_expression "puVar8[1]" (identifier "puVar8") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar14 = puVar8[2];" (assignment_expression "uVar14 = puVar8[2]" (identifier "uVar14") (= "=") (subscript_expression "puVar8[2]" (identifier "puVar8") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar7 = puVar8[3];" (assignment_expression "uVar7 = puVar8[3]" (identifier "uVar7") (= "=") (subscript_expression "puVar8[3]" (identifier "puVar8") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "*puVar11 = *puVar8;" (assignment_expression "*puVar11 = *puVar8" (pointer_expression "*puVar11" (* "*") (identifier "puVar11")) (= "=") (pointer_expression "*puVar8" (* "*") (identifier "puVar8"))) (; ";")) (expression_statement "puVar11[1] = uVar16;" (assignment_expression "puVar11[1] = uVar16" (subscript_expression "puVar11[1]" (identifier "puVar11") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar16")) (; ";")) (expression_statement "puVar11[2] = uVar14;" (assignment_expression "puVar11[2] = uVar14" (subscript_expression "puVar11[2]" (identifier "puVar11") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar14")) (; ";")) (expression_statement "puVar11[3] = uVar7;" (assignment_expression "puVar11[3] = uVar7" (subscript_expression "puVar11[3]" (identifier "puVar11") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "puVar3 = puVar11 + 4;" (assignment_expression "puVar3 = puVar11 + 4" (identifier "puVar3") (= "=") (binary_expression "puVar11 + 4" (identifier "puVar11") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar9 != auStack_170)" (( "(") (binary_expression "puVar9 != auStack_170" (identifier "puVar9") (!= "!=") (identifier "auStack_170")) () ")")) (; ";")) (expression_statement "uVar14 = puVar8[5];" (assignment_expression "uVar14 = puVar8[5]" (identifier "uVar14") (= "=") (subscript_expression "puVar8[5]" (identifier "puVar8") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "uVar7 = puVar8[6];" (assignment_expression "uVar7 = puVar8[6]" (identifier "uVar7") (= "=") (subscript_expression "puVar8[6]" (identifier "puVar8") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "puVar11[4] = *puVar9;" (assignment_expression "puVar11[4] = *puVar9" (subscript_expression "puVar11[4]" (identifier "puVar11") ([ "[") (number_literal "4") (] "]")) (= "=") (pointer_expression "*puVar9" (* "*") (identifier "puVar9"))) (; ";")) (expression_statement "puVar11[5] = uVar14;" (assignment_expression "puVar11[5] = uVar14" (subscript_expression "puVar11[5]" (identifier "puVar11") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "uVar14")) (; ";")) (expression_statement "puVar11[6] = uVar7;" (assignment_expression "puVar11[6] = uVar7" (subscript_expression "puVar11[6]" (identifier "puVar11") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "(*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790);" (call_expression "(*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790)" (parenthesized_expression "(*(code *)PTR_strftime_000adc40)" (( "(") (pointer_expression "*(code *)PTR_strftime_000adc40" (* "*") (cast_expression "(code *)PTR_strftime_000adc40" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strftime_000adc40"))) () ")")) (argument_list "(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790)" (( "(") (identifier "aiStack_12c") (, ",") (number_literal "0x18") (, ",") (binary_expression "PTR_DAT_000ad2c8 + -0x5790" (identifier "PTR_DAT_000ad2c8") (+ "+") (number_literal "-0x5790")) () ")"))) (; ";")) (if_statement "if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" (if "if") (parenthesized_expression "(param_2 == (int *)0x0)" (( "(") (binary_expression "param_2 == (int *)0x0" (identifier "param_2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }" ({ "{") (expression_statement "puVar15 = PTR_DAT_000ad2c8 + -0x57f8;" (assignment_expression "puVar15 = PTR_DAT_000ad2c8 + -0x57f8" (identifier "puVar15") (= "=") (binary_expression "PTR_DAT_000ad2c8 + -0x57f8" (identifier "PTR_DAT_000ad2c8") (+ "+") (number_literal "-0x57f8"))) (; ";")) (} "}")) (else_clause "else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" (else "else") (compound_statement "{\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" ({ "{") (expression_statement "puVar15 = PTR_DAT_000ad2c8 + -0x57ec;" (assignment_expression "puVar15 = PTR_DAT_000ad2c8 + -0x57ec" (identifier "puVar15") (= "=") (binary_expression "PTR_DAT_000ad2c8 + -0x57ec" (identifier "PTR_DAT_000ad2c8") (+ "+") (number_literal "-0x57ec"))) (; ";")) (} "}")))) (expression_statement "local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);" (assignment_expression "local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150)" (identifier "local_1b0") (= "=") (cast_expression "(code *)(PTR_LAB_000ad2c4 + -0x150)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_000ad2c4 + -0x150)" (( "(") (binary_expression "PTR_LAB_000ad2c4 + -0x150" (identifier "PTR_LAB_000ad2c4") (+ "+") (number_literal "-0x150")) () ")")))) (; ";")) (expression_statement "param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c);" (assignment_expression "param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c)" (identifier "param_2") (= "=") (cast_expression "(int *)(PTR_DAT_000ad2c8 + -0x577c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000ad2c8 + -0x577c)" (( "(") (binary_expression "PTR_DAT_000ad2c8 + -0x577c" (identifier "PTR_DAT_000ad2c8") (+ "+") (number_literal "-0x577c")) () ")")))) (; ";")) (expression_statement "piVar12 = param_1;" (assignment_expression "piVar12 = param_1" (identifier "piVar12") (= "=") (identifier "param_1")) (; ";")) (expression_statement "FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c);" (call_expression "FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c)" (identifier "FUN_0001feb0") (argument_list "(param_1,param_2,puVar15,aiStack_12c)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "puVar15") (, ",") (identifier "aiStack_12c") () ")"))) (; ";")) (if_statement "if (0 < (int)param_6) goto LAB_00020bf4;" (if "if") (parenthesized_expression "(0 < (int)param_6)" (( "(") (binary_expression "0 < (int)param_6" (number_literal "0") (< "<") (cast_expression "(int)param_6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_6"))) () ")")) (goto_statement "goto LAB_00020bf4;" (goto "goto") (statement_identifier "LAB_00020bf4") (; ";"))) (expression_statement "iVar23 = param_1[8];" (assignment_expression "iVar23 = param_1[8]" (identifier "iVar23") (= "=") (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n    if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);\n    if (param_9 != (undefined4 *)0x0) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }\n    (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);\n    if ((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);\n    piVar12 = param_1;\n    (*local_1b0)(param_1,param_2);\n    if (0 < (int)param_6) {\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }\n    iVar23 = param_1[8];\n  }" (else "else") (compound_statement "{\n    if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;\nLAB_00020b58:\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }\n    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);\n    FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);\n    if (param_9 != (undefined4 *)0x0) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }\n    (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);\n    if ((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }\n    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);\n    piVar12 = param_1;\n    (*local_1b0)(param_1,param_2);\n    if (0 < (int)param_6) {\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }\n    iVar23 = param_1[8];\n  }" ({ "{") (if_statement "if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;" (if "if") (parenthesized_expression "((param_1[8] != 3) || (param_4 == 0))" (( "(") (binary_expression "(param_1[8] != 3) || (param_4 == 0)" (parenthesized_expression "(param_1[8] != 3)" (( "(") (binary_expression "param_1[8] != 3" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (!= "!=") (number_literal "3")) () ")")) (|| "||") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_00020d6c;" (goto "goto") (statement_identifier "LAB_00020d6c") (; ";"))) (labeled_statement "LAB_00020b58:\n    if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" (statement_identifier "LAB_00020b58") (: ":") (if_statement "if (param_2 == (int *)0x0) {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }\n    else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" (if "if") (parenthesized_expression "(param_2 == (int *)0x0)" (( "(") (binary_expression "param_2 == (int *)0x0" (identifier "param_2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;\n    }" ({ "{") (expression_statement "puVar15 = PTR_DAT_000ad2c8 + -0x57f8;" (assignment_expression "puVar15 = PTR_DAT_000ad2c8 + -0x57f8" (identifier "puVar15") (= "=") (binary_expression "PTR_DAT_000ad2c8 + -0x57f8" (identifier "PTR_DAT_000ad2c8") (+ "+") (number_literal "-0x57f8"))) (; ";")) (} "}")) (else_clause "else {\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" (else "else") (compound_statement "{\n      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;\n    }" ({ "{") (expression_statement "puVar15 = PTR_DAT_000ad2c8 + -0x57ec;" (assignment_expression "puVar15 = PTR_DAT_000ad2c8 + -0x57ec" (identifier "puVar15") (= "=") (binary_expression "PTR_DAT_000ad2c8 + -0x57ec" (identifier "PTR_DAT_000ad2c8") (+ "+") (number_literal "-0x57ec"))) (; ";")) (} "}"))))) (expression_statement "local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);" (assignment_expression "local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150)" (identifier "local_1b0") (= "=") (cast_expression "(code *)(PTR_LAB_000ad2c4 + -0x150)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_000ad2c4 + -0x150)" (( "(") (binary_expression "PTR_LAB_000ad2c4 + -0x150" (identifier "PTR_LAB_000ad2c4") (+ "+") (number_literal "-0x150")) () ")")))) (; ";")) (expression_statement "FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);" (call_expression "FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15)" (identifier "FUN_0001feb0") (argument_list "(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_DAT_000ad2c8 + -0x57e0" (identifier "PTR_DAT_000ad2c8") (+ "+") (number_literal "-0x57e0")) (, ",") (identifier "puVar15") () ")"))) (; ";")) (if_statement "if (param_9 != (undefined4 *)0x0) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }" (if "if") (parenthesized_expression "(param_9 != (undefined4 *)0x0)" (( "(") (binary_expression "param_9 != (undefined4 *)0x0" (identifier "param_9") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);\n    }" ({ "{") (expression_statement "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);" (call_expression "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9)" (parenthesized_expression "(*local_1b0)" (( "(") (pointer_expression "*local_1b0" (* "*") (identifier "local_1b0")) () ")")) (argument_list "(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_DAT_000ad2c8 + -0x57d4" (identifier "PTR_DAT_000ad2c8") (+ "+") (number_literal "-0x57d4")) (, ",") (pointer_expression "*param_9" (* "*") (identifier "param_9")) () ")"))) (; ";")) (} "}"))) (expression_statement "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);" (call_expression "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4)" (parenthesized_expression "(*local_1b0)" (( "(") (pointer_expression "*local_1b0" (* "*") (identifier "local_1b0")) () ")")) (argument_list "(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_DAT_000ad2c8 + -0x57c8" (identifier "PTR_DAT_000ad2c8") (+ "+") (number_literal "-0x57c8")) (, ",") (identifier "param_3") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (if_statement "if ((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }" (if "if") (parenthesized_expression "((param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0))" (( "(") (binary_expression "(param_10 != 0) &&\n       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)" (parenthesized_expression "(param_10 != 0)" (( "(") (binary_expression "param_10 != 0" (identifier "param_10") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)" (( "(") (comma_expression "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0" (call_expression "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10)" (parenthesized_expression "(*local_1b0)" (( "(") (pointer_expression "*local_1b0" (* "*") (identifier "local_1b0")) () ")")) (argument_list "(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_DAT_000ad2c8 + -0x57b0" (identifier "PTR_DAT_000ad2c8") (+ "+") (number_literal "-0x57b0")) (, ",") (identifier "param_10") () ")"))) (, ",") (binary_expression "param_11 != 0" (identifier "param_11") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);\n    }" ({ "{") (expression_statement "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);" (call_expression "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11)" (parenthesized_expression "(*local_1b0)" (( "(") (pointer_expression "*local_1b0" (* "*") (identifier "local_1b0")) () ")")) (argument_list "(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_DAT_000ad2c8 + -0x57b8" (identifier "PTR_DAT_000ad2c8") (+ "+") (number_literal "-0x57b8")) (, ",") (identifier "param_11") () ")"))) (; ";")) (} "}"))) (expression_statement "param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);" (assignment_expression "param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500)" (identifier "param_2") (= "=") (cast_expression "(int *)(PTR_DAT_000ad2c8 + -0x2500)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000ad2c8 + -0x2500)" (( "(") (binary_expression "PTR_DAT_000ad2c8 + -0x2500" (identifier "PTR_DAT_000ad2c8") (+ "+") (number_literal "-0x2500")) () ")")))) (; ";")) (expression_statement "piVar12 = param_1;" (assignment_expression "piVar12 = param_1" (identifier "piVar12") (= "=") (identifier "param_1")) (; ";")) (expression_statement "(*local_1b0)(param_1,param_2);" (call_expression "(*local_1b0)(param_1,param_2)" (parenthesized_expression "(*local_1b0)" (( "(") (pointer_expression "*local_1b0" (* "*") (identifier "local_1b0")) () ")")) (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (0 < (int)param_6) {\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }" (if "if") (parenthesized_expression "(0 < (int)param_6)" (( "(") (binary_expression "0 < (int)param_6" (number_literal "0") (< "<") (cast_expression "(int)param_6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_6"))) () ")")) (compound_statement "{\nLAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;\n      uVar22 = 0;\n      iVar21 = 0;\n      iVar20 = 0;\n      iVar23 = 0;\n      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;\n      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);\n      puVar6 = PTR_DAT_000ad2d0 + -0x5930;\n      bVar1 = 0 < param_7;\n      do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);\n      if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }\n    }" ({ "{") (labeled_statement "LAB_00020bf4:\n      puVar15 = PTR_DAT_000ad2c8;" (statement_identifier "LAB_00020bf4") (: ":") (expression_statement "puVar15 = PTR_DAT_000ad2c8;" (assignment_expression "puVar15 = PTR_DAT_000ad2c8" (identifier "puVar15") (= "=") (identifier "PTR_DAT_000ad2c8")) (; ";"))) (expression_statement "uVar22 = 0;" (assignment_expression "uVar22 = 0" (identifier "uVar22") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar21 = 0;" (assignment_expression "iVar21 = 0" (identifier "iVar21") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar20 = 0;" (assignment_expression "iVar20 = 0" (identifier "iVar20") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar23 = 0;" (assignment_expression "iVar23 = 0" (identifier "iVar23") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = PTR_DAT_000ad2c8 + -0x22a4;" (assignment_expression "puVar4 = PTR_DAT_000ad2c8 + -0x22a4" (identifier "puVar4") (= "=") (binary_expression "PTR_DAT_000ad2c8 + -0x22a4" (identifier "PTR_DAT_000ad2c8") (+ "+") (number_literal "-0x22a4"))) (; ";")) (expression_statement "pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);" (assignment_expression "pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294)" (identifier "pcVar5") (= "=") (cast_expression "(code *)(PTR_LAB_000ad2c4 + -0x294)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_000ad2c4 + -0x294)" (( "(") (binary_expression "PTR_LAB_000ad2c4 + -0x294" (identifier "PTR_LAB_000ad2c4") (+ "+") (number_literal "-0x294")) () ")")))) (; ";")) (expression_statement "puVar6 = PTR_DAT_000ad2d0 + -0x5930;" (assignment_expression "puVar6 = PTR_DAT_000ad2d0 + -0x5930" (identifier "puVar6") (= "=") (binary_expression "PTR_DAT_000ad2d0 + -0x5930" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x5930"))) (; ";")) (expression_statement "bVar1 = 0 < param_7;" (assignment_expression "bVar1 = 0 < param_7" (identifier "bVar1") (= "=") (binary_expression "0 < param_7" (number_literal "0") (< "<") (identifier "param_7"))) (; ";")) (do_statement "do {\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      } while ((int)uVar22 < (int)param_6);" (do "do") (compound_statement "{\n        if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }\nLAB_00020d3c:\n        uVar22 = uVar22 + 1;\n        bVar1 = iVar23 < param_7;\n      }" ({ "{") (if_statement "if (bVar1) {\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }\n        else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n          piVar10 = (int *)(param_8 + iVar23 * 0xc);\n          iVar13 = *piVar10;\n          piVar12 = (int *)(iVar23 * 0xc + 0xc);\n          if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }\n          if ((int)uVar22 < iVar13) goto LAB_00020e70;\n          iVar13 = piVar10[2];\n          if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }\n          if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }\n          iVar13 = iVar21;\n          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }\n          if (iVar21 == 0) goto LAB_00020ffc;\nLAB_00020e90:\n          param_2 = aiStack_12c;\n          iVar21 = 0;\n          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;\n          local_ef[iVar13 + 2] = 0;\n          local_ef[iVar13 + 1] = 10;\n          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);\n          piVar12 = param_1;\n          (*pcVar5)(param_1,param_2,uVar7);\n        }" ({ "{") (expression_statement "piVar10 = (int *)(param_8 + iVar23 * 0xc);" (assignment_expression "piVar10 = (int *)(param_8 + iVar23 * 0xc)" (identifier "piVar10") (= "=") (cast_expression "(int *)(param_8 + iVar23 * 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_8 + iVar23 * 0xc)" (( "(") (binary_expression "param_8 + iVar23 * 0xc" (identifier "param_8") (+ "+") (binary_expression "iVar23 * 0xc" (identifier "iVar23") (* "*") (number_literal "0xc"))) () ")")))) (; ";")) (expression_statement "iVar13 = *piVar10;" (assignment_expression "iVar13 = *piVar10" (identifier "iVar13") (= "=") (pointer_expression "*piVar10" (* "*") (identifier "piVar10"))) (; ";")) (expression_statement "piVar12 = (int *)(iVar23 * 0xc + 0xc);" (assignment_expression "piVar12 = (int *)(iVar23 * 0xc + 0xc)" (identifier "piVar12") (= "=") (cast_expression "(int *)(iVar23 * 0xc + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar23 * 0xc + 0xc)" (( "(") (binary_expression "iVar23 * 0xc + 0xc" (binary_expression "iVar23 * 0xc" (identifier "iVar23") (* "*") (number_literal "0xc")) (+ "+") (number_literal "0xc")) () ")")))) (; ";")) (if_statement "if (iVar13 + piVar10[1] <= (int)uVar22) {\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }" (if "if") (parenthesized_expression "(iVar13 + piVar10[1] <= (int)uVar22)" (( "(") (binary_expression "iVar13 + piVar10[1] <= (int)uVar22" (binary_expression "iVar13 + piVar10[1]" (identifier "iVar13") (+ "+") (subscript_expression "piVar10[1]" (identifier "piVar10") ([ "[") (number_literal "1") (] "]"))) (<= "<=") (cast_expression "(int)uVar22" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar22"))) () ")")) (compound_statement "{\n            piVar12 = (int *)(param_8 + (int)piVar12);\n            do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);\n          }" ({ "{") (expression_statement "piVar12 = (int *)(param_8 + (int)piVar12);" (assignment_expression "piVar12 = (int *)(param_8 + (int)piVar12)" (identifier "piVar12") (= "=") (cast_expression "(int *)(param_8 + (int)piVar12)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_8 + (int)piVar12)" (( "(") (binary_expression "param_8 + (int)piVar12" (identifier "param_8") (+ "+") (cast_expression "(int)piVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar12"))) () ")")))) (; ";")) (do_statement "do {\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            } while (iVar13 + piVar10[1] <= (int)uVar22);" (do "do") (compound_statement "{\n              piVar10 = piVar12;\n              iVar23 = iVar23 + 1;\n              if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }\n              iVar13 = *piVar10;\n              piVar12 = piVar10 + 3;\n            }" ({ "{") (expression_statement "piVar10 = piVar12;" (assignment_expression "piVar10 = piVar12" (identifier "piVar10") (= "=") (identifier "piVar12")) (; ";")) (expression_statement "iVar23 = iVar23 + 1;" (assignment_expression "iVar23 = iVar23 + 1" (identifier "iVar23") (= "=") (binary_expression "iVar23 + 1" (identifier "iVar23") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (param_7 == iVar23) {\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }" (if "if") (parenthesized_expression "(param_7 == iVar23)" (( "(") (binary_expression "param_7 == iVar23" (identifier "param_7") (== "==") (identifier "iVar23")) () ")")) (compound_statement "{\n                iVar13 = 0;\n                iVar23 = param_7;\n                goto LAB_00020c9c;\n              }" ({ "{") (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" (identifier "iVar13") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar23 = param_7;" (assignment_expression "iVar23 = param_7" (identifier "iVar23") (= "=") (identifier "param_7")) (; ";")) (goto_statement "goto LAB_00020c9c;" (goto "goto") (statement_identifier "LAB_00020c9c") (; ";")) (} "}"))) (expression_statement "iVar13 = *piVar10;" (assignment_expression "iVar13 = *piVar10" (identifier "iVar13") (= "=") (pointer_expression "*piVar10" (* "*") (identifier "piVar10"))) (; ";")) (expression_statement "piVar12 = piVar10 + 3;" (assignment_expression "piVar12 = piVar10 + 3" (identifier "piVar12") (= "=") (binary_expression "piVar10 + 3" (identifier "piVar10") (+ "+") (number_literal "3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar13 + piVar10[1] <= (int)uVar22)" (( "(") (binary_expression "iVar13 + piVar10[1] <= (int)uVar22" (binary_expression "iVar13 + piVar10[1]" (identifier "iVar13") (+ "+") (subscript_expression "piVar10[1]" (identifier "piVar10") ([ "[") (number_literal "1") (] "]"))) (<= "<=") (cast_expression "(int)uVar22" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar22"))) () ")")) (; ";")) (} "}"))) (if_statement "if ((int)uVar22 < iVar13) goto LAB_00020e70;" (if "if") (parenthesized_expression "((int)uVar22 < iVar13)" (( "(") (binary_expression "(int)uVar22 < iVar13" (cast_expression "(int)uVar22" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar22")) (< "<") (identifier "iVar13")) () ")")) (goto_statement "goto LAB_00020e70;" (goto "goto") (statement_identifier "LAB_00020e70") (; ";"))) (expression_statement "iVar13 = piVar10[2];" (assignment_expression "iVar13 = piVar10[2]" (identifier "iVar13") (= "=") (subscript_expression "piVar10[2]" (identifier "piVar10") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (iVar13 != 2) {\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }" (if "if") (parenthesized_expression "(iVar13 != 2)" (( "(") (binary_expression "iVar13 != 2" (identifier "iVar13") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\nLAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;\n            goto joined_r0x00020ddc;\n          }" ({ "{") (labeled_statement "LAB_00020c9c:\n            if (iVar20 != 0) goto LAB_00020dac;" (statement_identifier "LAB_00020c9c") (: ":") (if_statement "if (iVar20 != 0) goto LAB_00020dac;" (if "if") (parenthesized_expression "(iVar20 != 0)" (( "(") (binary_expression "iVar20 != 0" (identifier "iVar20") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00020dac;" (goto "goto") (statement_identifier "LAB_00020dac") (; ";")))) (goto_statement "goto joined_r0x00020ddc;" (goto "goto") (statement_identifier "joined_r0x00020ddc") (; ";")) (} "}"))) (if_statement "if (iVar20 == 0 && iVar21 == 0) {\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }\n          else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }" (if "if") (parenthesized_expression "(iVar20 == 0 && iVar21 == 0)" (( "(") (binary_expression "iVar20 == 0 && iVar21 == 0" (binary_expression "iVar20 == 0" (identifier "iVar20") (== "==") (number_literal "0")) (&& "&&") (binary_expression "iVar21 == 0" (identifier "iVar21") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n            param_2 = (int *)0x1;\n            piVar12 = aiStack_12c;\n            iVar20 = 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);\n          }" ({ "{") (expression_statement "param_2 = (int *)0x1;" (assignment_expression "param_2 = (int *)0x1" (identifier "param_2") (= "=") (cast_expression "(int *)0x1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1"))) (; ";")) (expression_statement "piVar12 = aiStack_12c;" (assignment_expression "piVar12 = aiStack_12c" (identifier "piVar12") (= "=") (identifier "aiStack_12c")) (; ";")) (expression_statement "iVar20 = 1;" (assignment_expression "iVar20 = 1" (identifier "iVar20") (= "=") (number_literal "1")) (; ";")) (expression_statement "(*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);" (call_expression "(*(code *)PTR___sprintf_chk_000adaf0)\n                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_000adaf0)" (( "(") (pointer_expression "*(code *)PTR___sprintf_chk_000adaf0" (* "*") (cast_expression "(code *)PTR___sprintf_chk_000adaf0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___sprintf_chk_000adaf0"))) () ")")) (argument_list "(piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4)" (( "(") (identifier "piVar12") (, ",") (number_literal "1") (, ",") (number_literal "0x50") (, ",") (binary_expression "puVar15 + -0x5750" (identifier "puVar15") (+ "+") (number_literal "-0x5750")) (, ",") (binary_expression "uVar22 & 0xfffffff0" (identifier "uVar22") (& "&") (number_literal "0xfffffff0")) (, ",") (number_literal "0x43") (, ",") (identifier "puVar4") () ")"))) (; ";")) (} "}")) (else_clause "else {\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }" (else "else") (compound_statement "{\n            iVar20 = iVar20 + 1;\n            param_2 = (int *)0x0;\n          }" ({ "{") (expression_statement "iVar20 = iVar20 + 1;" (assignment_expression "iVar20 = iVar20 + 1" (identifier "iVar20") (= "=") (binary_expression "iVar20 + 1" (identifier "iVar20") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_2 = (int *)0x0;" (assignment_expression "param_2 = (int *)0x0" (identifier "param_2") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")))) (expression_statement "iVar13 = iVar21;" (assignment_expression "iVar13 = iVar21" (identifier "iVar13") (= "=") (identifier "iVar21")) (; ";")) (if_statement "if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }" (if "if") (parenthesized_expression "(((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1))" (( "(") (binary_expression "((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)" (parenthesized_expression "((uVar22 + 1 & 0xf) == 0)" (( "(") (binary_expression "(uVar22 + 1 & 0xf) == 0" (parenthesized_expression "(uVar22 + 1 & 0xf)" (( "(") (binary_expression "uVar22 + 1 & 0xf" (binary_expression "uVar22 + 1" (identifier "uVar22") (+ "+") (number_literal "1")) (& "&") (number_literal "0xf")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_6 != uVar22 + 1)" (( "(") (binary_expression "param_6 != uVar22 + 1" (identifier "param_6") (!= "!=") (binary_expression "uVar22 + 1" (identifier "uVar22") (+ "+") (number_literal "1"))) () ")"))) () ")")) (compound_statement "{\n            if (iVar21 != 0) goto LAB_00020e90;\n            goto LAB_00020d3c;\n          }" ({ "{") (if_statement "if (iVar21 != 0) goto LAB_00020e90;" (if "if") (parenthesized_expression "(iVar21 != 0)" (( "(") (binary_expression "iVar21 != 0" (identifier "iVar21") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00020e90;" (goto "goto") (statement_identifier "LAB_00020e90") (; ";"))) (goto_statement "goto LAB_00020d3c;" (goto "goto") (statement_identifier "LAB_00020d3c") (; ";")) (} "}"))) (if_statement "if (iVar21 == 0) goto LAB_00020ffc;" (if "if") (parenthesized_expression "(iVar21 == 0)" (( "(") (binary_expression "iVar21 == 0" (identifier "iVar21") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00020ffc;" (goto "goto") (statement_identifier "LAB_00020ffc") (; ";"))) (labeled_statement "LAB_00020e90:\n          param_2 = aiStack_12c;" (statement_identifier "LAB_00020e90") (: ":") (expression_statement "param_2 = aiStack_12c;" (assignment_expression "param_2 = aiStack_12c" (identifier "param_2") (= "=") (identifier "aiStack_12c")) (; ";"))) (expression_statement "iVar21 = 0;" (assignment_expression "iVar21 = 0" (identifier "iVar21") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;" (assignment_expression "*(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd" (pointer_expression "*(undefined1 *)((int)param_2 + iVar13 + 0x3d)" (* "*") (cast_expression "(undefined1 *)((int)param_2 + iVar13 + 0x3d)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + iVar13 + 0x3d)" (( "(") (binary_expression "(int)param_2 + iVar13 + 0x3d" (binary_expression "(int)param_2 + iVar13" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (identifier "iVar13")) (+ "+") (number_literal "0x3d")) () ")")))) (= "=") (number_literal "0xd")) (; ";")) (expression_statement "local_ef[iVar13 + 2] = 0;" (assignment_expression "local_ef[iVar13 + 2] = 0" (subscript_expression "local_ef[iVar13 + 2]" (identifier "local_ef") ([ "[") (binary_expression "iVar13 + 2" (identifier "iVar13") (+ "+") (number_literal "2")) (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_ef[iVar13 + 1] = 10;" (assignment_expression "local_ef[iVar13 + 1] = 10" (subscript_expression "local_ef[iVar13 + 1]" (identifier "local_ef") ([ "[") (binary_expression "iVar13 + 1" (identifier "iVar13") (+ "+") (number_literal "1")) (] "]")) (= "=") (number_literal "10")) (; ";")) (expression_statement "uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);" (assignment_expression "uVar7 = (*(code *)PTR_strlen_000adc28)(param_2)" (identifier "uVar7") (= "=") (call_expression "(*(code *)PTR_strlen_000adc28)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_000adc28)" (( "(") (pointer_expression "*(code *)PTR_strlen_000adc28" (* "*") (cast_expression "(code *)PTR_strlen_000adc28" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_000adc28"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "piVar12 = param_1;" (assignment_expression "piVar12 = param_1" (identifier "piVar12") (= "=") (identifier "param_1")) (; ";")) (expression_statement "(*pcVar5)(param_1,param_2,uVar7);" (call_expression "(*pcVar5)(param_1,param_2,uVar7)" (parenthesized_expression "(*pcVar5)" (( "(") (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) () ")")) (argument_list "(param_1,param_2,uVar7)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "uVar7") () ")"))) (; ";")) (} "}")) (else_clause "else {\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }" (else "else") (compound_statement "{\nLAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }\n          uVar18 = uVar22 & 0xf;\n          iVar21 = uVar18 + 1;\n          local_120[uVar18 * 3] = local_134._0_1_;\n          local_120[uVar18 * 3 + 1] = (undefined1)local_134;\n          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();\n          param_2 = (int *)0x2e;\n          piVar12 = (int *)(uVar22 + 1 & 0xf);\n          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }\n          local_ef[uVar18] = bVar19;\n          iVar13 = iVar21;\n          if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }\n          iVar20 = 0;\n          if (param_6 == uVar22 + 1) goto LAB_00020e90;\n        }" ({ "{") (labeled_statement "LAB_00020e70:\n          if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }" (statement_identifier "LAB_00020e70") (: ":") (if_statement "if (iVar20 == 0) {\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }\n          else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }" (if "if") (parenthesized_expression "(iVar20 == 0)" (( "(") (binary_expression "iVar20 == 0" (identifier "iVar20") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }\nLAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);\n            iVar20 = (uint)bVar19 << 1;\n            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);\n          }" ({ "{") (if_statement "if (iVar21 == 0) {\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }" (if "if") (parenthesized_expression "(iVar21 == 0)" (( "(") (binary_expression "iVar21 == 0" (identifier "iVar21") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              iVar13 = 0;\n              goto LAB_00020de4;\n            }" ({ "{") (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" (identifier "iVar13") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00020de4;" (goto "goto") (statement_identifier "LAB_00020de4") (; ";")) (} "}"))) (labeled_statement "LAB_00020e30:\n            bVar19 = *(byte *)(param_5 + uVar22);" (statement_identifier "LAB_00020e30") (: ":") (expression_statement "bVar19 = *(byte *)(param_5 + uVar22);" (assignment_expression "bVar19 = *(byte *)(param_5 + uVar22)" (identifier "bVar19") (= "=") (pointer_expression "*(byte *)(param_5 + uVar22)" (* "*") (cast_expression "(byte *)(param_5 + uVar22)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + uVar22)" (( "(") (binary_expression "param_5 + uVar22" (identifier "param_5") (+ "+") (identifier "uVar22")) () ")"))))) (; ";"))) (expression_statement "iVar20 = (uint)bVar19 << 1;" (assignment_expression "iVar20 = (uint)bVar19 << 1" (identifier "iVar20") (= "=") (binary_expression "(uint)bVar19 << 1" (cast_expression "(uint)bVar19" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar19")) (<< "<<") (number_literal "1"))) (; ";")) (expression_statement "(*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);" (call_expression "(*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_000adaf0)" (( "(") (pointer_expression "*(code *)PTR___sprintf_chk_000adaf0" (* "*") (cast_expression "(code *)PTR___sprintf_chk_000adaf0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___sprintf_chk_000adaf0"))) () ")")) (argument_list "(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19)" (( "(") (pointer_expression "&local_134" (& "&") (identifier "local_134")) (, ",") (number_literal "1") (, ",") (number_literal "5") (, ",") (binary_expression "puVar15 + -0x5744" (identifier "puVar15") (+ "+") (number_literal "-0x5744")) (, ",") (cast_expression "(uint)bVar19" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar19")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }" (else "else") (compound_statement "{\n            iVar13 = 0;\nLAB_00020dac:\n            puVar17 = puVar4;\n            if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }\n            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);\njoined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }\n            if (iVar13 != 1) goto LAB_00020e30;\n            local_132 = 0;\n            iVar20 = 0xb0;\n            bVar19 = 0x58;\n            local_134 = 0x5858;\n          }" ({ "{") (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" (identifier "iVar13") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00020dac:\n            puVar17 = puVar4;" (statement_identifier "LAB_00020dac") (: ":") (expression_statement "puVar17 = puVar4;" (assignment_expression "puVar17 = puVar4" (identifier "puVar17") (= "=") (identifier "puVar4")) (; ";"))) (if_statement "if (iVar20 != 1) {\n              puVar17 = puVar6;\n            }" (if "if") (parenthesized_expression "(iVar20 != 1)" (( "(") (binary_expression "iVar20 != 1" (identifier "iVar20") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n              puVar17 = puVar6;\n            }" ({ "{") (expression_statement "puVar17 = puVar6;" (assignment_expression "puVar17 = puVar6" (identifier "puVar17") (= "=") (identifier "puVar6")) (; ";")) (} "}"))) (expression_statement "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);" (call_expression "(*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17)" (parenthesized_expression "(*local_1b0)" (( "(") (pointer_expression "*local_1b0" (* "*") (identifier "local_1b0")) () ")")) (argument_list "(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_DAT_000ad2c8 + -0x5768" (identifier "PTR_DAT_000ad2c8") (+ "+") (number_literal "-0x5768")) (, ",") (identifier "iVar20") (, ",") (identifier "puVar17") () ")"))) (; ";")) (labeled_statement "joined_r0x00020ddc:\n            if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }" (statement_identifier "joined_r0x00020ddc") (: ":") (if_statement "if (iVar21 == 0) {\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }" (if "if") (parenthesized_expression "(iVar21 == 0)" (( "(") (binary_expression "iVar21 == 0" (identifier "iVar21") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);\n            }" ({ "{") (labeled_statement "LAB_00020de4:\n              (*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);" (statement_identifier "LAB_00020de4") (: ":") (expression_statement "(*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);" (call_expression "(*(code *)PTR___sprintf_chk_000adaf0)\n                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_000adaf0)" (( "(") (pointer_expression "*(code *)PTR___sprintf_chk_000adaf0" (* "*") (cast_expression "(code *)PTR___sprintf_chk_000adaf0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___sprintf_chk_000adaf0"))) () ")")) (argument_list "(aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4)" (( "(") (identifier "aiStack_12c") (, ",") (number_literal "1") (, ",") (number_literal "0x50") (, ",") (binary_expression "puVar15 + -0x5750" (identifier "puVar15") (+ "+") (number_literal "-0x5750")) (, ",") (binary_expression "uVar22 - (uVar22 & 0xf)" (identifier "uVar22") (- "-") (parenthesized_expression "(uVar22 & 0xf)" (( "(") (binary_expression "uVar22 & 0xf" (identifier "uVar22") (& "&") (number_literal "0xf")) () ")"))) (, ",") (number_literal "0x43") (, ",") (identifier "puVar4") () ")"))) (; ";"))) (} "}")))) (if_statement "if (iVar13 != 1) goto LAB_00020e30;" (if "if") (parenthesized_expression "(iVar13 != 1)" (( "(") (binary_expression "iVar13 != 1" (identifier "iVar13") (!= "!=") (number_literal "1")) () ")")) (goto_statement "goto LAB_00020e30;" (goto "goto") (statement_identifier "LAB_00020e30") (; ";"))) (expression_statement "local_132 = 0;" (assignment_expression "local_132 = 0" (identifier "local_132") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar20 = 0xb0;" (assignment_expression "iVar20 = 0xb0" (identifier "iVar20") (= "=") (number_literal "0xb0")) (; ";")) (expression_statement "bVar19 = 0x58;" (assignment_expression "bVar19 = 0x58" (identifier "bVar19") (= "=") (number_literal "0x58")) (; ";")) (expression_statement "local_134 = 0x5858;" (assignment_expression "local_134 = 0x5858" (identifier "local_134") (= "=") (number_literal "0x5858")) (; ";")) (} "}"))))) (expression_statement "uVar18 = uVar22 & 0xf;" (assignment_expression "uVar18 = uVar22 & 0xf" (identifier "uVar18") (= "=") (binary_expression "uVar22 & 0xf" (identifier "uVar22") (& "&") (number_literal "0xf"))) (; ";")) (expression_statement "iVar21 = uVar18 + 1;" (assignment_expression "iVar21 = uVar18 + 1" (identifier "iVar21") (= "=") (binary_expression "uVar18 + 1" (identifier "uVar18") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_120[uVar18 * 3] = local_134._0_1_;" (assignment_expression "local_120[uVar18 * 3] = local_134._0_1_" (subscript_expression "local_120[uVar18 * 3]" (identifier "local_120") ([ "[") (binary_expression "uVar18 * 3" (identifier "uVar18") (* "*") (number_literal "3")) (] "]")) (= "=") (field_expression "local_134._0_1_" (identifier "local_134") (. ".") (field_identifier "_0_1_"))) (; ";")) (expression_statement "local_120[uVar18 * 3 + 1] = (undefined1)local_134;" (assignment_expression "local_120[uVar18 * 3 + 1] = (undefined1)local_134" (subscript_expression "local_120[uVar18 * 3 + 1]" (identifier "local_120") ([ "[") (binary_expression "uVar18 * 3 + 1" (binary_expression "uVar18 * 3" (identifier "uVar18") (* "*") (number_literal "3")) (+ "+") (number_literal "1")) (] "]")) (= "=") (cast_expression "(undefined1)local_134" (( "(") (type_descriptor "undefined1" (type_identifier "undefined1")) () ")") (identifier "local_134"))) (; ";")) (expression_statement "piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();" (assignment_expression "piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)()" (identifier "piVar10") (= "=") (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_000adafc)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___ctype_b_loc_000adafc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_000adafc)" (( "(") (pointer_expression "*(code *)PTR___ctype_b_loc_000adafc" (* "*") (cast_expression "(code *)PTR___ctype_b_loc_000adafc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___ctype_b_loc_000adafc"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "param_2 = (int *)0x2e;" (assignment_expression "param_2 = (int *)0x2e" (identifier "param_2") (= "=") (cast_expression "(int *)0x2e" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x2e"))) (; ";")) (expression_statement "piVar12 = (int *)(uVar22 + 1 & 0xf);" (assignment_expression "piVar12 = (int *)(uVar22 + 1 & 0xf)" (identifier "piVar12") (= "=") (cast_expression "(int *)(uVar22 + 1 & 0xf)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar22 + 1 & 0xf)" (( "(") (binary_expression "uVar22 + 1 & 0xf" (binary_expression "uVar22 + 1" (identifier "uVar22") (+ "+") (number_literal "1")) (& "&") (number_literal "0xf")) () ")")))) (; ";")) (if_statement "if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {\n            bVar19 = 0x2e;\n          }" (if "if") (parenthesized_expression "((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0)" (( "(") (binary_expression "(*(ushort *)(*piVar10 + iVar20) & 0x40) == 0" (parenthesized_expression "(*(ushort *)(*piVar10 + iVar20) & 0x40)" (( "(") (binary_expression "*(ushort *)(*piVar10 + iVar20) & 0x40" (pointer_expression "*(ushort *)(*piVar10 + iVar20)" (* "*") (cast_expression "(ushort *)(*piVar10 + iVar20)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar10 + iVar20)" (( "(") (binary_expression "*piVar10 + iVar20" (pointer_expression "*piVar10" (* "*") (identifier "piVar10")) (+ "+") (identifier "iVar20")) () ")")))) (& "&") (number_literal "0x40")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            bVar19 = 0x2e;\n          }" ({ "{") (expression_statement "bVar19 = 0x2e;" (assignment_expression "bVar19 = 0x2e" (identifier "bVar19") (= "=") (number_literal "0x2e")) (; ";")) (} "}"))) (expression_statement "local_ef[uVar18] = bVar19;" (assignment_expression "local_ef[uVar18] = bVar19" (subscript_expression "local_ef[uVar18]" (identifier "local_ef") ([ "[") (identifier "uVar18") (] "]")) (= "=") (identifier "bVar19")) (; ";")) (expression_statement "iVar13 = iVar21;" (assignment_expression "iVar13 = iVar21" (identifier "iVar13") (= "=") (identifier "iVar21")) (; ";")) (if_statement "if (piVar12 == (int *)0x0) {\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }" (if "if") (parenthesized_expression "(piVar12 == (int *)0x0)" (( "(") (binary_expression "piVar12 == (int *)0x0" (identifier "piVar12") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            iVar20 = 0;\n            goto LAB_00020e90;\n          }" ({ "{") (expression_statement "iVar20 = 0;" (assignment_expression "iVar20 = 0" (identifier "iVar20") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00020e90;" (goto "goto") (statement_identifier "LAB_00020e90") (; ";")) (} "}"))) (expression_statement "iVar20 = 0;" (assignment_expression "iVar20 = 0" (identifier "iVar20") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_6 == uVar22 + 1) goto LAB_00020e90;" (if "if") (parenthesized_expression "(param_6 == uVar22 + 1)" (( "(") (binary_expression "param_6 == uVar22 + 1" (identifier "param_6") (== "==") (binary_expression "uVar22 + 1" (identifier "uVar22") (+ "+") (number_literal "1"))) () ")")) (goto_statement "goto LAB_00020e90;" (goto "goto") (statement_identifier "LAB_00020e90") (; ";"))) (} "}")))) (labeled_statement "LAB_00020d3c:\n        uVar22 = uVar22 + 1;" (statement_identifier "LAB_00020d3c") (: ":") (expression_statement "uVar22 = uVar22 + 1;" (assignment_expression "uVar22 = uVar22 + 1" (identifier "uVar22") (= "=") (binary_expression "uVar22 + 1" (identifier "uVar22") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "bVar1 = iVar23 < param_7;" (assignment_expression "bVar1 = iVar23 < param_7" (identifier "bVar1") (= "=") (binary_expression "iVar23 < param_7" (identifier "iVar23") (< "<") (identifier "param_7"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int)uVar22 < (int)param_6)" (( "(") (binary_expression "(int)uVar22 < (int)param_6" (cast_expression "(int)uVar22" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar22")) (< "<") (cast_expression "(int)param_6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_6"))) () ")")) (; ";")) (if_statement "if (iVar20 != 0) {\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }" (if "if") (parenthesized_expression "(iVar20 != 0)" (( "(") (binary_expression "iVar20 != 0" (identifier "iVar20") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }\n        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);\n        piVar12 = param_1;\n        (*local_1b0)(param_1,param_2,iVar20,puVar15);\n      }" ({ "{") (labeled_statement "LAB_00020ffc:\n        if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }" (statement_identifier "LAB_00020ffc") (: ":") (if_statement "if (iVar20 == 1) {\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }\n        else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }" (if "if") (parenthesized_expression "(iVar20 == 1)" (( "(") (binary_expression "iVar20 == 1" (identifier "iVar20") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;\n        }" ({ "{") (expression_statement "puVar15 = PTR_DAT_000ad2c8 + -0x22a4;" (assignment_expression "puVar15 = PTR_DAT_000ad2c8 + -0x22a4" (identifier "puVar15") (= "=") (binary_expression "PTR_DAT_000ad2c8 + -0x22a4" (identifier "PTR_DAT_000ad2c8") (+ "+") (number_literal "-0x22a4"))) (; ";")) (} "}")) (else_clause "else {\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }" (else "else") (compound_statement "{\n          puVar15 = PTR_DAT_000ad2d0 + -0x5930;\n        }" ({ "{") (expression_statement "puVar15 = PTR_DAT_000ad2d0 + -0x5930;" (assignment_expression "puVar15 = PTR_DAT_000ad2d0 + -0x5930" (identifier "puVar15") (= "=") (binary_expression "PTR_DAT_000ad2d0 + -0x5930" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x5930"))) (; ";")) (} "}"))))) (expression_statement "param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);" (assignment_expression "param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768)" (identifier "param_2") (= "=") (cast_expression "(int *)(PTR_DAT_000ad2c8 + -0x5768)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000ad2c8 + -0x5768)" (( "(") (binary_expression "PTR_DAT_000ad2c8 + -0x5768" (identifier "PTR_DAT_000ad2c8") (+ "+") (number_literal "-0x5768")) () ")")))) (; ";")) (expression_statement "piVar12 = param_1;" (assignment_expression "piVar12 = param_1" (identifier "piVar12") (= "=") (identifier "param_1")) (; ";")) (expression_statement "(*local_1b0)(param_1,param_2,iVar20,puVar15);" (call_expression "(*local_1b0)(param_1,param_2,iVar20,puVar15)" (parenthesized_expression "(*local_1b0)" (( "(") (pointer_expression "*local_1b0" (* "*") (identifier "local_1b0")) () ")")) (argument_list "(param_1,param_2,iVar20,puVar15)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "iVar20") (, ",") (identifier "puVar15") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar23 = param_1[8];" (assignment_expression "iVar23 = param_1[8]" (identifier "iVar23") (= "=") (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]"))) (; ";")) (} "}")))) (if_statement "if ((0 < iVar23) && (param_1[1] == 2)) {\n    piVar12 = (int *)*param_1;\n    (*(code *)PTR_fflush_000adcf4)();\n  }" (if "if") (parenthesized_expression "((0 < iVar23) && (param_1[1] == 2))" (( "(") (binary_expression "(0 < iVar23) && (param_1[1] == 2)" (parenthesized_expression "(0 < iVar23)" (( "(") (binary_expression "0 < iVar23" (number_literal "0") (< "<") (identifier "iVar23")) () ")")) (&& "&&") (parenthesized_expression "(param_1[1] == 2)" (( "(") (binary_expression "param_1[1] == 2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\n    piVar12 = (int *)*param_1;\n    (*(code *)PTR_fflush_000adcf4)();\n  }" ({ "{") (expression_statement "piVar12 = (int *)*param_1;" (assignment_expression "piVar12 = (int *)*param_1" (identifier "piVar12") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "(*(code *)PTR_fflush_000adcf4)();" (call_expression "(*(code *)PTR_fflush_000adcf4)()" (parenthesized_expression "(*(code *)PTR_fflush_000adcf4)" (( "(") (pointer_expression "*(code *)PTR_fflush_000adcf4" (* "*") (cast_expression "(code *)PTR_fflush_000adcf4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fflush_000adcf4"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_00020d6c:\n  if (local_2c == *(int **)puVar2) {\n    return *(int **)puVar2;\n  }" (statement_identifier "LAB_00020d6c") (: ":") (if_statement "if (local_2c == *(int **)puVar2) {\n    return *(int **)puVar2;\n  }" (if "if") (parenthesized_expression "(local_2c == *(int **)puVar2)" (( "(") (binary_expression "local_2c == *(int **)puVar2" (identifier "local_2c") (== "==") (pointer_expression "*(int **)puVar2" (* "*") (cast_expression "(int **)puVar2" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar2")))) () ")")) (compound_statement "{\n    return *(int **)puVar2;\n  }" ({ "{") (return_statement "return *(int **)puVar2;" (return "return") (pointer_expression "*(int **)puVar2" (* "*") (cast_expression "(int **)puVar2" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar2"))) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR___stack_chk_fail_000adca4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000adca4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000adca4)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000adca4" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000adca4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000adca4"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar10 = (int *)safemalloc(1,0x24);" (assignment_expression "piVar10 = (int *)safemalloc(1,0x24)" (identifier "piVar10") (= "=") (cast_expression "(int *)safemalloc(1,0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "safemalloc(1,0x24)" (identifier "safemalloc") (argument_list "(1,0x24)" (( "(") (number_literal "1") (, ",") (number_literal "0x24") () ")"))))) (; ";")) (expression_statement "piVar10[6] = (int)piVar12;" (assignment_expression "piVar10[6] = (int)piVar12" (subscript_expression "piVar10[6]" (identifier "piVar10") ([ "[") (number_literal "6") (] "]")) (= "=") (cast_expression "(int)piVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar12"))) (; ";")) (expression_statement "*piVar10 = 0;" (assignment_expression "*piVar10 = 0" (pointer_expression "*piVar10" (* "*") (identifier "piVar10")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar10[1] = 0;" (assignment_expression "piVar10[1] = 0" (subscript_expression "piVar10[1]" (identifier "piVar10") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar23 = conf_copy(param_2);" (assignment_expression "iVar23 = conf_copy(param_2)" (identifier "iVar23") (= "=") (call_expression "conf_copy(param_2)" (identifier "conf_copy") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "piVar10[7] = iVar23;" (assignment_expression "piVar10[7] = iVar23" (subscript_expression "piVar10[7]" (identifier "piVar10") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "iVar23")) (; ";")) (expression_statement "iVar23 = conf_get_int(iVar23,0x78);" (assignment_expression "iVar23 = conf_get_int(iVar23,0x78)" (identifier "iVar23") (= "=") (call_expression "conf_get_int(iVar23,0x78)" (identifier "conf_get_int") (argument_list "(iVar23,0x78)" (( "(") (identifier "iVar23") (, ",") (number_literal "0x78") () ")")))) (; ";")) (expression_statement "piVar10[8] = iVar23;" (assignment_expression "piVar10[8] = iVar23" (subscript_expression "piVar10[8]" (identifier "piVar10") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "iVar23")) (; ";")) (expression_statement "piVar10[5] = 0;" (assignment_expression "piVar10[5] = 0" (subscript_expression "piVar10[5]" (identifier "piVar10") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "bufchain_init(piVar10 + 2);" (call_expression "bufchain_init(piVar10 + 2)" (identifier "bufchain_init") (argument_list "(piVar10 + 2)" (( "(") (binary_expression "piVar10 + 2" (identifier "piVar10") (+ "+") (number_literal "2")) () ")"))) (; ";")) (return_statement "return piVar10;" (return "return") (identifier "piVar10") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator 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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_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 declarator: (abstract_pointer_declarator))) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (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: (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: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (pointer_expression argument: (identifier))))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier)))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_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: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier) (identifier))))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (number_literal) (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))) (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: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (goto_statement label: (statement_identifier)))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) 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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (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))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) consequence: (compound_statement (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (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 (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

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

{
  bool bVar1;
  undefined *puVar2;
  undefined4 *puVar3;
  undefined *puVar4;
  code *pcVar5;
  undefined *puVar6;
  undefined4 uVar7;
  undefined4 *puVar8;
  undefined4 *puVar9;
  int *piVar10;
  undefined4 *puVar11;
  int *piVar12;
  int iVar13;
  undefined4 uVar14;
  undefined *puVar15;
  undefined4 uVar16;
  undefined *puVar17;
  uint uVar18;
  byte bVar19;
  int iVar20;
  int iVar21;
  uint uVar22;
  int iVar23;
  code *local_1b0;
  undefined4 local_190 [8];
  undefined4 auStack_170 [4];
  undefined4 local_160 [11];
  undefined2 local_134;
  undefined1 local_132;
  int aiStack_12c [3];
  undefined1 local_120 [49];
  byte local_ef [195];
  int *local_2c;
  
  puVar2 = PTR___stack_chk_guard_000adcd4;
  piVar12 = *(int **)PTR___stack_chk_guard_000adcd4;
  local_2c = piVar12;
  if (param_1[8] == 4) {
    if (param_4 != 0) goto LAB_00020b58;
    (*(code *)PTR_ltime_000ad4d4)(local_190);
    puVar9 = local_190;
    puVar3 = local_160;
    do {
      puVar11 = puVar3;
      puVar8 = puVar9;
      puVar9 = puVar8 + 4;
      uVar16 = puVar8[1];
      uVar14 = puVar8[2];
      uVar7 = puVar8[3];
      *puVar11 = *puVar8;
      puVar11[1] = uVar16;
      puVar11[2] = uVar14;
      puVar11[3] = uVar7;
      puVar3 = puVar11 + 4;
    } while (puVar9 != auStack_170);
    uVar14 = puVar8[5];
    uVar7 = puVar8[6];
    puVar11[4] = *puVar9;
    puVar11[5] = uVar14;
    puVar11[6] = uVar7;
    (*(code *)PTR_strftime_000adc40)(aiStack_12c,0x18,PTR_DAT_000ad2c8 + -0x5790);
    if (param_2 == (int *)0x0) {
      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;
    }
    else {
      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;
    }
    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);
    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x577c);
    piVar12 = param_1;
    FUN_0001feb0(param_1,param_2,puVar15,aiStack_12c);
    if (0 < (int)param_6) goto LAB_00020bf4;
    iVar23 = param_1[8];
  }
  else {
    if ((param_1[8] != 3) || (param_4 == 0)) goto LAB_00020d6c;
LAB_00020b58:
    if (param_2 == (int *)0x0) {
      puVar15 = PTR_DAT_000ad2c8 + -0x57f8;
    }
    else {
      puVar15 = PTR_DAT_000ad2c8 + -0x57ec;
    }
    local_1b0 = (code *)(PTR_LAB_000ad2c4 + -0x150);
    FUN_0001feb0(param_1,PTR_DAT_000ad2c8 + -0x57e0,puVar15);
    if (param_9 != (undefined4 *)0x0) {
      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57d4,*param_9);
    }
    (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57c8,param_3,param_3,param_4);
    if ((param_10 != 0) &&
       ((*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b0,param_10), param_11 != 0)) {
      (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x57b8,param_11);
    }
    param_2 = (int *)(PTR_DAT_000ad2c8 + -0x2500);
    piVar12 = param_1;
    (*local_1b0)(param_1,param_2);
    if (0 < (int)param_6) {
LAB_00020bf4:
      puVar15 = PTR_DAT_000ad2c8;
      uVar22 = 0;
      iVar21 = 0;
      iVar20 = 0;
      iVar23 = 0;
      puVar4 = PTR_DAT_000ad2c8 + -0x22a4;
      pcVar5 = (code *)(PTR_LAB_000ad2c4 + -0x294);
      puVar6 = PTR_DAT_000ad2d0 + -0x5930;
      bVar1 = 0 < param_7;
      do {
        if (bVar1) {
          piVar10 = (int *)(param_8 + iVar23 * 0xc);
          iVar13 = *piVar10;
          piVar12 = (int *)(iVar23 * 0xc + 0xc);
          if (iVar13 + piVar10[1] <= (int)uVar22) {
            piVar12 = (int *)(param_8 + (int)piVar12);
            do {
              piVar10 = piVar12;
              iVar23 = iVar23 + 1;
              if (param_7 == iVar23) {
                iVar13 = 0;
                iVar23 = param_7;
                goto LAB_00020c9c;
              }
              iVar13 = *piVar10;
              piVar12 = piVar10 + 3;
            } while (iVar13 + piVar10[1] <= (int)uVar22);
          }
          if ((int)uVar22 < iVar13) goto LAB_00020e70;
          iVar13 = piVar10[2];
          if (iVar13 != 2) {
LAB_00020c9c:
            if (iVar20 != 0) goto LAB_00020dac;
            goto joined_r0x00020ddc;
          }
          if (iVar20 == 0 && iVar21 == 0) {
            param_2 = (int *)0x1;
            piVar12 = aiStack_12c;
            iVar20 = 1;
            (*(code *)PTR___sprintf_chk_000adaf0)
                      (piVar12,1,0x50,puVar15 + -0x5750,uVar22 & 0xfffffff0,0x43,puVar4);
          }
          else {
            iVar20 = iVar20 + 1;
            param_2 = (int *)0x0;
          }
          iVar13 = iVar21;
          if (((uVar22 + 1 & 0xf) == 0) || (param_6 != uVar22 + 1)) {
            if (iVar21 != 0) goto LAB_00020e90;
            goto LAB_00020d3c;
          }
          if (iVar21 == 0) goto LAB_00020ffc;
LAB_00020e90:
          param_2 = aiStack_12c;
          iVar21 = 0;
          *(undefined1 *)((int)param_2 + iVar13 + 0x3d) = 0xd;
          local_ef[iVar13 + 2] = 0;
          local_ef[iVar13 + 1] = 10;
          uVar7 = (*(code *)PTR_strlen_000adc28)(param_2);
          piVar12 = param_1;
          (*pcVar5)(param_1,param_2,uVar7);
        }
        else {
LAB_00020e70:
          if (iVar20 == 0) {
            if (iVar21 == 0) {
              iVar13 = 0;
              goto LAB_00020de4;
            }
LAB_00020e30:
            bVar19 = *(byte *)(param_5 + uVar22);
            iVar20 = (uint)bVar19 << 1;
            (*(code *)PTR___sprintf_chk_000adaf0)(&local_134,1,5,puVar15 + -0x5744,(uint)bVar19);
          }
          else {
            iVar13 = 0;
LAB_00020dac:
            puVar17 = puVar4;
            if (iVar20 != 1) {
              puVar17 = puVar6;
            }
            (*local_1b0)(param_1,PTR_DAT_000ad2c8 + -0x5768,iVar20,puVar17);
joined_r0x00020ddc:
            if (iVar21 == 0) {
LAB_00020de4:
              (*(code *)PTR___sprintf_chk_000adaf0)
                        (aiStack_12c,1,0x50,puVar15 + -0x5750,uVar22 - (uVar22 & 0xf),0x43,puVar4);
            }
            if (iVar13 != 1) goto LAB_00020e30;
            local_132 = 0;
            iVar20 = 0xb0;
            bVar19 = 0x58;
            local_134 = 0x5858;
          }
          uVar18 = uVar22 & 0xf;
          iVar21 = uVar18 + 1;
          local_120[uVar18 * 3] = local_134._0_1_;
          local_120[uVar18 * 3 + 1] = (undefined1)local_134;
          piVar10 = (int *)(*(code *)PTR___ctype_b_loc_000adafc)();
          param_2 = (int *)0x2e;
          piVar12 = (int *)(uVar22 + 1 & 0xf);
          if ((*(ushort *)(*piVar10 + iVar20) & 0x40) == 0) {
            bVar19 = 0x2e;
          }
          local_ef[uVar18] = bVar19;
          iVar13 = iVar21;
          if (piVar12 == (int *)0x0) {
            iVar20 = 0;
            goto LAB_00020e90;
          }
          iVar20 = 0;
          if (param_6 == uVar22 + 1) goto LAB_00020e90;
        }
LAB_00020d3c:
        uVar22 = uVar22 + 1;
        bVar1 = iVar23 < param_7;
      } while ((int)uVar22 < (int)param_6);
      if (iVar20 != 0) {
LAB_00020ffc:
        if (iVar20 == 1) {
          puVar15 = PTR_DAT_000ad2c8 + -0x22a4;
        }
        else {
          puVar15 = PTR_DAT_000ad2d0 + -0x5930;
        }
        param_2 = (int *)(PTR_DAT_000ad2c8 + -0x5768);
        piVar12 = param_1;
        (*local_1b0)(param_1,param_2,iVar20,puVar15);
      }
    }
    iVar23 = param_1[8];
  }
  if ((0 < iVar23) && (param_1[1] == 2)) {
    piVar12 = (int *)*param_1;
    (*(code *)PTR_fflush_000adcf4)();
  }
LAB_00020d6c:
  if (local_2c == *(int **)puVar2) {
    return *(int **)puVar2;
  }
  (*(code *)PTR___stack_chk_fail_000adca4)();
  piVar10 = (int *)safemalloc(1,0x24);
  piVar10[6] = (int)piVar12;
  *piVar10 = 0;
  piVar10[1] = 0;
  iVar23 = conf_copy(param_2);
  piVar10[7] = iVar23;
  iVar23 = conf_get_int(iVar23,0x78);
  piVar10[8] = iVar23;
  piVar10[5] = 0;
  bufchain_init(piVar10 + 2);
  return piVar10;
}

