
int read_history_range(char *filename,int from,int to)

{
  bool bVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined *puVar4;
  undefined *puVar5;
  undefined *puVar6;
  char *filename_00;
  char *pcVar7;
  int iVar8;
  int iVar9;
  char *pcVar10;
  int *piVar11;
  undefined4 *puVar12;
  char cVar13;
  char *pcVar14;
  char *pcVar15;
  char *pcVar16;
  char *pcVar17;
  char *local_ec;
  stat finfo;
  
  puVar6 = PTR___stack_chk_guard_001464dc;
  puVar3 = PTR_history_lines_read_from_file_001454a8;
  *(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0;
  filename_00 = *(char **)puVar6;
  pcVar7 = history_filename(filename);
  if (pcVar7 == (char *)0x0) {
    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();
    iVar9 = *piVar11;
    if (iVar9 == 0) {
      iVar9 = 5;
    }
    goto LAB_0010ea9c;
  }
  iVar8 = (*(code *)PTR_open64_00146378)(pcVar7,0,0x1b6);
  if (iVar8 < 0) {
    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();
    iVar9 = *piVar11;
    if (iVar9 == 0) {
      iVar9 = 5;
      (*(code *)PTR_free_001464fc)(pcVar7);
      goto LAB_0010ea9c;
    }
    pcVar10 = (char *)0x0;
  }
  else {
    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,&finfo);
    if (iVar9 == -1) {
      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();
      iVar9 = *piVar11;
      if (iVar9 == 0) {
        iVar9 = 5;
        pcVar10 = (char *)0x0;
      }
      else {
        pcVar10 = (char *)0x0;
      }
    }
    else if ((finfo.st_mode & 0xf000) == 0x8000) {
      if ((finfo.st_size._0_4_ == 0) && (finfo.st_size._4_4_ != -1)) {
        if (finfo.st_size._4_4_ == 0) {
          iVar9 = 0;
          (*(code *)PTR_free_001464fc)(pcVar7);
          goto LAB_0010ea9c;
        }
        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(finfo.st_size._4_4_ + 1);
        if (pcVar10 == (char *)0x0) {
          iVar9 = 0x1b;
          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();
          *puVar12 = 0x1b;
        }
        else {
          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,finfo.st_size._4_4_);
          if (-1 < iVar9) {
            (*(code *)PTR_close_0014620c)(iVar8);
            puVar2 = PTR_history_comment_char_00144f48;
            if (to < 0) {
              to = iVar9;
            }
            pcVar17 = pcVar10 + iVar9;
            *pcVar17 = '\0';
            cVar13 = *puVar2;
            if ((cVar13 == '\0') && (*pcVar10 == '#')) {
              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();
              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {
                cVar13 = '#';
                *puVar2 = 0x23;
                bVar1 = true;
LAB_0010ea18:
                iVar9 = 1;
                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;
                goto LAB_0010eb08;
              }
              bVar1 = false;
              if (pcVar10 < pcVar17) goto LAB_0010eb1c;
              *(undefined4 *)puVar3 = 0;
            }
            else {
              if (cVar13 == *pcVar10) {
                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();
                bVar1 = false;
                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)
                goto LAB_0010ea18;
              }
              else {
                bVar1 = false;
              }
LAB_0010eb04:
              iVar9 = 0;
LAB_0010eb08:
              *(int *)PTR_history_multiline_entries_001461b0 =
                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;
              if (pcVar10 < pcVar17) {
LAB_0010eb1c:
                iVar9 = 0;
                pcVar14 = pcVar10;
                pcVar15 = pcVar10;
                if (0 < from) {
                  do {
                    pcVar16 = pcVar15 + 1;
                    if ((*pcVar15 == '\n') &&
                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||
                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),
                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {
                      iVar9 = iVar9 + 1;
                    }
                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));
                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;
                }
                puVar5 = PTR_history_multiline_entries_001461b0;
                puVar4 = PTR_history_length_001454d0;
                local_ec = (char *)0x0;
                pcVar15 = pcVar14;
                do {
                  pcVar16 = pcVar15 + 1;
                  if (*pcVar15 == '\n') {
                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {
                      pcVar15[-1] = '\0';
                    }
                    else {
                      *pcVar15 = '\0';
                    }
                    if (*pcVar14 == '\0') {
                      iVar9 = iVar9 + 1;
                      pcVar14 = local_ec;
                    }
                    else if ((*puVar2 != *pcVar14) ||
                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),
                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {
                      iVar9 = iVar9 + 1;
                      if (local_ec == (char *)0x0) {
                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {
                          add_history(pcVar14);
                          pcVar14 = local_ec;
                        }
                        else {
                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);
                          pcVar14 = local_ec;
                        }
                      }
                      else {
                        add_history(pcVar14);
                        add_history_time(local_ec);
                        local_ec = (char *)0x0;
                        pcVar14 = local_ec;
                      }
                    }
                    local_ec = pcVar14;
                    pcVar14 = pcVar16;
                    if (to <= iVar9) break;
                  }
                  pcVar15 = pcVar16;
                } while (pcVar16 < pcVar17);
              }
              else {
                iVar9 = 0;
              }
LAB_0010ed48:
              *(int *)puVar3 = iVar9;
              if (bVar1) {
                *puVar2 = 0;
              }
            }
            iVar9 = 0;
            (*(code *)PTR_free_001464fc)(pcVar7);
            (*(code *)PTR_free_001464fc)(pcVar10);
            goto LAB_0010ea9c;
          }
          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();
          iVar9 = *piVar11;
          if (iVar9 == 0) {
            iVar9 = 5;
          }
        }
      }
      else {
        iVar9 = 0x1b;
        pcVar10 = (char *)0x0;
        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();
        *puVar12 = 0x1b;
      }
    }
    else {
      iVar9 = 0x16;
      pcVar10 = (char *)0x0;
      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();
      *puVar12 = 0x16;
    }
    (*(code *)PTR_close_0014620c)(iVar8);
  }
  (*(code *)PTR_free_001464fc)(pcVar7);
  if (pcVar10 != (char *)0x0) {
    (*(code *)PTR_free_001464fc)(pcVar10);
  }
LAB_0010ea9c:
  if (filename_00 != *(char **)puVar6) {
    (*(code *)PTR___stack_chk_fail_00146488)();
    iVar9 = read_history_range(filename_00,0,-1);
    return iVar9;
  }
  return iVar9;
}



int read_history_range(undefined4 param_1,int param_2,int param_3)

{
  bool bVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined *puVar4;
  undefined *puVar5;
  undefined *puVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  char *pcVar10;
  int *piVar11;
  undefined4 *puVar12;
  char cVar13;
  char *pcVar14;
  char *pcVar15;
  char *pcVar16;
  char *pcVar17;
  char *local_ec;
  undefined1 auStack_d0 [24];
  uint local_b8;
  int local_98;
  int local_94;
  int local_2c;
  
  puVar6 = PTR___stack_chk_guard_001464dc;
  puVar3 = PTR_history_lines_read_from_file_001454a8;
  *(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0;
  local_2c = *(int *)puVar6;
  iVar7 = FUN_0010e214();
  if (iVar7 == 0) {
    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();
    iVar9 = *piVar11;
    if (iVar9 == 0) {
      iVar9 = 5;
    }
    goto LAB_0010ea9c;
  }
  iVar8 = (*(code *)PTR_open64_00146378)(iVar7,0,0x1b6);
  if (iVar8 < 0) {
    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();
    iVar9 = *piVar11;
    if (iVar9 == 0) {
      iVar9 = 5;
      (*(code *)PTR_free_001464fc)(iVar7);
      goto LAB_0010ea9c;
    }
    pcVar10 = (char *)0x0;
  }
  else {
    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);
    if (iVar9 == -1) {
      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();
      iVar9 = *piVar11;
      if (iVar9 == 0) {
        iVar9 = 5;
        pcVar10 = (char *)0x0;
      }
      else {
        pcVar10 = (char *)0x0;
      }
    }
    else if ((local_b8 & 0xf000) == 0x8000) {
      if ((local_98 == 0) && (local_94 != -1)) {
        if (local_94 == 0) {
          iVar9 = 0;
          (*(code *)PTR_free_001464fc)(iVar7);
          goto LAB_0010ea9c;
        }
        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);
        if (pcVar10 == (char *)0x0) {
          iVar9 = 0x1b;
          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();
          *puVar12 = 0x1b;
        }
        else {
          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);
          if (-1 < iVar9) {
            (*(code *)PTR_close_0014620c)(iVar8);
            puVar2 = PTR_history_comment_char_00144f48;
            if (param_3 < 0) {
              param_3 = iVar9;
            }
            pcVar17 = pcVar10 + iVar9;
            *pcVar17 = '\0';
            cVar13 = *puVar2;
            if ((cVar13 == '\0') && (*pcVar10 == '#')) {
              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();
              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {
                cVar13 = '#';
                *puVar2 = 0x23;
                bVar1 = true;
LAB_0010ea18:
                iVar9 = 1;
                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;
                goto LAB_0010eb08;
              }
              bVar1 = false;
              if (pcVar10 < pcVar17) goto LAB_0010eb1c;
              *(undefined4 *)puVar3 = 0;
            }
            else {
              if (cVar13 == *pcVar10) {
                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();
                bVar1 = false;
                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)
                goto LAB_0010ea18;
              }
              else {
                bVar1 = false;
              }
LAB_0010eb04:
              iVar9 = 0;
LAB_0010eb08:
              *(int *)PTR_history_multiline_entries_001461b0 =
                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;
              if (pcVar10 < pcVar17) {
LAB_0010eb1c:
                iVar9 = 0;
                pcVar14 = pcVar10;
                pcVar15 = pcVar10;
                if (0 < param_2) {
                  do {
                    pcVar16 = pcVar15 + 1;
                    if ((*pcVar15 == '\n') &&
                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||
                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),
                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {
                      iVar9 = iVar9 + 1;
                    }
                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));
                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;
                }
                puVar5 = PTR_history_multiline_entries_001461b0;
                puVar4 = PTR_history_length_001454d0;
                local_ec = (char *)0x0;
                pcVar15 = pcVar14;
                do {
                  pcVar16 = pcVar15 + 1;
                  if (*pcVar15 == '\n') {
                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {
                      pcVar15[-1] = '\0';
                    }
                    else {
                      *pcVar15 = '\0';
                    }
                    if (*pcVar14 == '\0') {
                      iVar9 = iVar9 + 1;
                      pcVar14 = local_ec;
                    }
                    else if ((*puVar2 != *pcVar14) ||
                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),
                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {
                      iVar9 = iVar9 + 1;
                      if (local_ec == (char *)0x0) {
                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {
                          add_history(pcVar14);
                          pcVar14 = local_ec;
                        }
                        else {
                          _hs_append_history_line(*(int *)puVar4 + -1);
                          pcVar14 = local_ec;
                        }
                      }
                      else {
                        add_history(pcVar14);
                        add_history_time(local_ec);
                        local_ec = (char *)0x0;
                        pcVar14 = local_ec;
                      }
                    }
                    local_ec = pcVar14;
                    pcVar14 = pcVar16;
                    if (param_3 <= iVar9) break;
                  }
                  pcVar15 = pcVar16;
                } while (pcVar16 < pcVar17);
              }
              else {
                iVar9 = 0;
              }
LAB_0010ed48:
              *(int *)puVar3 = iVar9;
              if (bVar1) {
                *puVar2 = 0;
              }
            }
            iVar9 = 0;
            (*(code *)PTR_free_001464fc)(iVar7);
            (*(code *)PTR_free_001464fc)(pcVar10);
            goto LAB_0010ea9c;
          }
          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();
          iVar9 = *piVar11;
          if (iVar9 == 0) {
            iVar9 = 5;
          }
        }
      }
      else {
        iVar9 = 0x1b;
        pcVar10 = (char *)0x0;
        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();
        *puVar12 = 0x1b;
      }
    }
    else {
      iVar9 = 0x16;
      pcVar10 = (char *)0x0;
      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();
      *puVar12 = 0x16;
    }
    (*(code *)PTR_close_0014620c)(iVar8);
  }
  (*(code *)PTR_free_001464fc)(iVar7);
  if (pcVar10 != (char *)0x0) {
    (*(code *)PTR_free_001464fc)(pcVar10);
  }
LAB_0010ea9c:
  if (local_2c != *(int *)puVar6) {
    (*(code *)PTR___stack_chk_fail_00146488)();
    iVar7 = read_history_range();
    return iVar7;
  }
  return iVar9;
}


lui gp,0x4
addiu gp,gp,-0x2344
addu gp,gp,t9
addiu sp,sp,-0x108
lw t9,-0x7fc8(gp)
sw s1,0xe4(sp)
addiu t9,t9,-0x1dec
sw s3,0xec(sp)
lw s1,-0x6064(gp)
lw s3,-0x7098(gp)
sw gp,0x10(sp)
sw s5,0xf4(sp)
or s5,a1,zero
sw s4,0xf0(sp)
or s4,a2,zero
sw ra,0x104(sp)
sw s8,0x100(sp)
sw s7,0xfc(sp)
sw s6,0xf8(sp)
sw s2,0xe8(sp)
sw s0,0xe0(sp)
sw zero,0x0(s3)
lw v0,0x0(s1)
sw v0,0xdc(sp)
bal 0x0010e214
_nop
beq v0,zero,0x0010eb88
_lw gp,0x10(sp)
lw t9,-0x61c8(gp)
li a2,0x1b6
or a1,zero,zero
or a0,v0,zero
jalr t9
_or s0,v0,zero
lw gp,0x10(sp)
bltz v0,0x0010ea2c
_or s6,v0,zero
lw t9,-0x610c(gp)
addiu a2,sp,0x38
li a0,0x3
jalr t9
_or a1,v0,zero
li v1,-0x1
beq v0,v1,0x0010eba8
_lw gp,0x10(sp)
lw v0,0x50(sp)
ori a0,zero,0x8000
andi v0,v0,0xf000
bne v0,a0,0x0010ea4c
_lw v0,0x70(sp)
bne v0,zero,0x0010eb68
_lw s7,0x74(sp)
beq s7,v1,0x0010eb6c
_lw t9,-0x6204(gp)
beq s7,zero,0x0010ebcc
_lw t9,-0x6158(gp)
jalr t9
_addiu a0,s7,0x1
lw gp,0x10(sp)
beq v0,zero,0x0010ee14
_or s2,v0,zero
lw t9,-0x600c(gp)
or a2,s7,zero
or a1,v0,zero
jalr t9
_or a0,s6,zero
lw gp,0x10(sp)
bltz v0,0x0010edf4
_or s8,v0,zero
lw t9,-0x6334(gp)
jalr t9
_or a0,s6,zero
bltz s4,0x0010ec24
_lw gp,0x10(sp)
lw v0,-0x75f8(gp)
addu s8,s2,s8
sb zero,0x0(s8)
sw v0,0x20(sp)
lb a0,0x0(v0)
bne a0,zero,0x0010eaf4
_lb s7,0x0(s2)
li v0,0x23
bne s7,v0,0x0010eaf4
_lw t9,-0x6344(gp)
jalr t9
_sw a0,0x1c(sp)
lbu v1,0x1(s2)
lw v0,0x0(v0)
lw gp,0x10(sp)
sll v1,v1,0x1
addu v0,v0,v1
lhu v0,0x0(v0)
andi v0,v0,0x8
beq v0,zero,0x0010ee48
_lw a0,0x1c(sp)
lw v0,0x20(sp)
li a0,0x23
sb s7,0x0(v0)
li v0,0x1
sw v0,0x28(sp)
lw v0,-0x75f4(gp)
lw v0,0x0(v0)
beq v0,zero,0x0010eb00
_li a2,0x1
b 0x0010eb08
_lw a1,-0x6390(gp)
lw t9,-0x6204(gp)
jalr t9
_nop
lw s3,0x0(v0)
beq s3,zero,0x0010eadc
_lw gp,0x10(sp)
b 0x0010ea78
_or s2,zero,zero
lw t9,-0x6204(gp)
li s3,0x16
jalr t9
_or s2,zero,zero
li v1,0x16
lw gp,0x10(sp)
sw v1,0x0(v0)
lw t9,-0x6334(gp)
jalr t9
_or a0,s6,zero
lw gp,0x10(sp)
lw t9,-0x6044(gp)
jalr t9
_or a0,s0,zero
beq s2,zero,0x0010ea9c
_lw gp,0x10(sp)
lw t9,-0x6044(gp)
jalr t9
_or a0,s2,zero
lw gp,0x10(sp)
lw a0,0xdc(sp)
or v0,s3,zero
lw v1,0x0(s1)
bne a0,v1,0x0010ee64
_lw ra,0x104(sp)
lw s8,0x100(sp)
lw s7,0xfc(sp)
lw s6,0xf8(sp)
lw s5,0xf4(sp)
lw s4,0xf0(sp)
lw s3,0xec(sp)
lw s2,0xe8(sp)
lw s1,0xe4(sp)
lw s0,0xe0(sp)
jr ra
_addiu sp,sp,0x108
lw t9,-0x6044(gp)
or a0,s0,zero
jalr t9
_li s3,0x5
b 0x0010ea9c
_lw gp,0x10(sp)
beq a0,s7,0x0010ec2c
_lw t9,-0x6344(gp)
sw zero,0x28(sp)
or a2,zero,zero
lw a1,-0x6390(gp)
sltu v0,s2,s8
lw v1,0x0(a1)
addu v1,v1,a2
beq v0,zero,0x0010ed40
_sw v1,0x0(a1)
blez s5,0x0010ee5c
_or s6,zero,zero
li v1,0xa
or s7,s2,zero
b 0x0010eb44
_or a1,s2,zero
beq s8,s7,0x0010ec68
_slt v0,s6,s5
beq v0,zero,0x0010ec6c
_sltu v0,a1,s8
lb v0,0x0(s7)
bne v0,v1,0x0010eb34
_addiu s7,s7,0x1
lb v0,0x0(s7)
beq v0,a0,0x0010ebe4
_lw t9,-0x6344(gp)
addiu s6,s6,0x1
b 0x0010eb34
_or a1,s7,zero
lw t9,-0x6204(gp)
li s3,0x1b
jalr t9
_or s2,zero,zero
li v1,0x1b
lw gp,0x10(sp)
b 0x0010ea68
_sw v1,0x0(v0)
lw t9,-0x6204(gp)
jalr t9
_nop
lw s3,0x0(v0)
bne s3,zero,0x0010ea9c
_lw gp,0x10(sp)
b 0x0010ea9c
_li s3,0x5
lw t9,-0x6204(gp)
jalr t9
_nop
lw s3,0x0(v0)
bne s3,zero,0x0010ec1c
_lw gp,0x10(sp)
li s3,0x5
b 0x0010ea68
_or s2,zero,zero
lw t9,-0x6044(gp)
or a0,s0,zero
jalr t9
_or s3,zero,zero
b 0x0010ea9c
_lw gp,0x10(sp)
jalr t9
_sw a0,0x1c(sp)
li v1,0xa
lbu a1,0x1(s7)
lw v0,0x0(v0)
lw gp,0x10(sp)
sll a1,a1,0x1
addu v0,v0,a1
lhu v0,0x0(v0)
andi v0,v0,0x8
beq v0,zero,0x0010eb5c
_lw a0,0x1c(sp)
b 0x0010eb34
_or a1,s7,zero
b 0x0010ea68
_or s2,zero,zero
b 0x0010e9ac
_or s4,s8,zero
jalr t9
_sw a0,0x1c(sp)
lbu v1,0x1(s2)
lw v0,0x0(v0)
lw gp,0x10(sp)
sll v1,v1,0x1
lw a0,0x1c(sp)
sw zero,0x28(sp)
addu v0,v0,v1
lhu v0,0x0(v0)
andi v0,v0,0x8
beq v0,zero,0x0010eb04
_or a2,zero,zero
b 0x0010ea18
_lw v0,-0x75f4(gp)
sltu v0,a1,s8
beq v0,zero,0x0010ed48
_lw v0,0x28(sp)
lw v0,-0x7070(gp)
addiu s5,a1,0x1
sw zero,0x1c(sp)
li s7,0xa
sw v0,0x2c(sp)
lw v0,-0x6390(gp)
b 0x0010eca0
_sw v0,0x34(sp)
sltu a2,a2,s8
beq a2,zero,0x0010ed44
_addiu s5,s5,0x1
lb a0,-0x1(s5)
bne a0,s7,0x0010ec94
_or a2,s5,zero
addiu v0,s5,-0x1
sltu v0,a1,v0
beq v0,zero,0x0010ecc8
_li v1,0xd
lb v0,-0x2(s5)
beq v0,v1,0x0010ecf0
_nop
sb zero,-0x1(s5)
lb v0,0x0(a1)
bne v0,zero,0x0010ecf8
_lw v1,0x20(sp)
addiu s6,s6,0x1
slt v0,s6,s4
beq v0,zero,0x0010ed44
_or a1,s5,zero
b 0x0010ec98
_sltu a2,a2,s8
b 0x0010eccc
_sb zero,-0x2(s5)
lb a0,0x0(v1)
beq a0,v0,0x0010edb8
_lw t9,-0x6344(gp)
lw v0,0x1c(sp)
beq v0,zero,0x0010ed80
_addiu s6,s6,0x1
lw t9,-0x7048(gp)
or a0,a1,zero
bal 0x0010a204
_sw a2,0x24(sp)
lw gp,0x10(sp)
lw t9,-0x638c(gp)
bal 0x0010a0d4
_lw a0,0x1c(sp)
lw gp,0x10(sp)
lw a2,0x24(sp)
b 0x0010ecdc
_sw zero,0x1c(sp)
or s6,zero,zero
lw v0,0x28(sp)
beq v0,zero,0x0010ed58
_sw s6,0x0(s3)
lw v0,0x20(sp)
sb zero,0x0(v0)
lw t9,-0x6044(gp)
or a0,s0,zero
jalr t9
_or s3,zero,zero
lw gp,0x10(sp)
lw t9,-0x6044(gp)
jalr t9
_or a0,s2,zero
b 0x0010ea9c
_lw gp,0x10(sp)
lw v0,0x2c(sp)
lw a0,0x0(v0)
blez a0,0x0010ed9c
_lw v0,0x34(sp)
lw v0,0x0(v0)
bne v0,zero,0x0010ee30
_lw t9,-0x6388(gp)
lw t9,-0x7048(gp)
or a0,a1,zero
bal 0x0010a204
_sw a2,0x24(sp)
lw gp,0x10(sp)
b 0x0010ecdc
_lw a2,0x24(sp)
sw a2,0x30(sp)
jalr t9
_sw a1,0x24(sp)
lw a1,0x24(sp)
lw v0,0x0(v0)
lw gp,0x10(sp)
lbu a0,0x1(a1)
sll a0,a0,0x1
addu v0,v0,a0
lhu v0,0x0(v0)
andi v0,v0,0x8
beq v0,zero,0x0010ed04
_lw a2,0x30(sp)
b 0x0010ecdc
_sw a1,0x1c(sp)
lw t9,-0x6204(gp)
jalr t9
_nop
lw s3,0x0(v0)
bne s3,zero,0x0010ea68
_lw gp,0x10(sp)
b 0x0010ea68
_li s3,0x5
lw t9,-0x6204(gp)
jalr t9
_li s3,0x1b
li v1,0x1b
lw gp,0x10(sp)
b 0x0010ea68
_sw v1,0x0(v0)
addiu a0,a0,-0x1
bal 0x0010a678
_sw a2,0x24(sp)
lw gp,0x10(sp)
b 0x0010ecdc
_lw a2,0x24(sp)
sltu v0,s2,s8
bne v0,zero,0x0010eb1c
_sw zero,0x28(sp)
b 0x0010ed58
_sw zero,0x0(s3)
b 0x0010ec74
_or a1,s2,zero
lw t9,-0x60b8(gp)
jalr t9
_nop
(translation_unit "int read_history_range(undefined4 param_1,int param_2,int param_3)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  char *pcVar10;\n  int *piVar11;\n  undefined4 *puVar12;\n  char cVar13;\n  char *pcVar14;\n  char *pcVar15;\n  char *pcVar16;\n  char *pcVar17;\n  char *local_ec;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_98;\n  int local_94;\n  int local_2c;\n  \n  puVar6 = PTR___stack_chk_guard_001464dc;\n  puVar3 = PTR_history_lines_read_from_file_001454a8;\n  *(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0;\n  local_2c = *(int *)puVar6;\n  iVar7 = FUN_0010e214();\n  if (iVar7 == 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n    }\n    goto LAB_0010ea9c;\n  }\n  iVar8 = (*(code *)PTR_open64_00146378)(iVar7,0,0x1b6);\n  if (iVar8 < 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(iVar7);\n      goto LAB_0010ea9c;\n    }\n    pcVar10 = (char *)0x0;\n  }\n  else {\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }\n  (*(code *)PTR_free_001464fc)(iVar7);\n  if (pcVar10 != (char *)0x0) {\n    (*(code *)PTR_free_001464fc)(pcVar10);\n  }\nLAB_0010ea9c:\n  if (local_2c != *(int *)puVar6) {\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar7 = read_history_range();\n    return iVar7;\n  }\n  return iVar9;\n}\n\n" (function_definition "int read_history_range(undefined4 param_1,int param_2,int param_3)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  char *pcVar10;\n  int *piVar11;\n  undefined4 *puVar12;\n  char cVar13;\n  char *pcVar14;\n  char *pcVar15;\n  char *pcVar16;\n  char *pcVar17;\n  char *local_ec;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_98;\n  int local_94;\n  int local_2c;\n  \n  puVar6 = PTR___stack_chk_guard_001464dc;\n  puVar3 = PTR_history_lines_read_from_file_001454a8;\n  *(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0;\n  local_2c = *(int *)puVar6;\n  iVar7 = FUN_0010e214();\n  if (iVar7 == 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n    }\n    goto LAB_0010ea9c;\n  }\n  iVar8 = (*(code *)PTR_open64_00146378)(iVar7,0,0x1b6);\n  if (iVar8 < 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(iVar7);\n      goto LAB_0010ea9c;\n    }\n    pcVar10 = (char *)0x0;\n  }\n  else {\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }\n  (*(code *)PTR_free_001464fc)(iVar7);\n  if (pcVar10 != (char *)0x0) {\n    (*(code *)PTR_free_001464fc)(pcVar10);\n  }\nLAB_0010ea9c:\n  if (local_2c != *(int *)puVar6) {\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar7 = read_history_range();\n    return iVar7;\n  }\n  return iVar9;\n}" primitive_type (function_declarator "read_history_range(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  char *pcVar10;\n  int *piVar11;\n  undefined4 *puVar12;\n  char cVar13;\n  char *pcVar14;\n  char *pcVar15;\n  char *pcVar16;\n  char *pcVar17;\n  char *local_ec;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_98;\n  int local_94;\n  int local_2c;\n  \n  puVar6 = PTR___stack_chk_guard_001464dc;\n  puVar3 = PTR_history_lines_read_from_file_001454a8;\n  *(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0;\n  local_2c = *(int *)puVar6;\n  iVar7 = FUN_0010e214();\n  if (iVar7 == 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n    }\n    goto LAB_0010ea9c;\n  }\n  iVar8 = (*(code *)PTR_open64_00146378)(iVar7,0,0x1b6);\n  if (iVar8 < 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(iVar7);\n      goto LAB_0010ea9c;\n    }\n    pcVar10 = (char *)0x0;\n  }\n  else {\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }\n  (*(code *)PTR_free_001464fc)(iVar7);\n  if (pcVar10 != (char *)0x0) {\n    (*(code *)PTR_free_001464fc)(pcVar10);\n  }\nLAB_0010ea9c:\n  if (local_2c != *(int *)puVar6) {\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar7 = read_history_range();\n    return iVar7;\n  }\n  return iVar9;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int *piVar11;" primitive_type (pointer_declarator "*piVar11" * identifier) ;) (declaration "undefined4 *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "char cVar13;" primitive_type identifier ;) (declaration "char *pcVar14;" primitive_type (pointer_declarator "*pcVar14" * identifier) ;) (declaration "char *pcVar15;" primitive_type (pointer_declarator "*pcVar15" * identifier) ;) (declaration "char *pcVar16;" primitive_type (pointer_declarator "*pcVar16" * identifier) ;) (declaration "char *pcVar17;" primitive_type (pointer_declarator "*pcVar17" * identifier) ;) (declaration "char *local_ec;" primitive_type (pointer_declarator "*local_ec" * identifier) ;) (declaration "undefined1 auStack_d0 [24];" type_identifier (array_declarator "auStack_d0 [24]" identifier [ number_literal ]) ;) (declaration "uint local_b8;" type_identifier identifier ;) (declaration "int local_98;" primitive_type identifier ;) (declaration "int local_94;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar6 = PTR___stack_chk_guard_001464dc;" (assignment_expression "puVar6 = PTR___stack_chk_guard_001464dc" identifier = identifier) ;) (expression_statement "puVar3 = PTR_history_lines_read_from_file_001454a8;" (assignment_expression "puVar3 = PTR_history_lines_read_from_file_001454a8" identifier = identifier) ;) (expression_statement "*(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0;" (assignment_expression "*(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0" (pointer_expression "*(undefined4 *)PTR_history_lines_read_from_file_001454a8" * (cast_expression "(undefined4 *)PTR_history_lines_read_from_file_001454a8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "local_2c = *(int *)puVar6;" (assignment_expression "local_2c = *(int *)puVar6" identifier = (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar7 = FUN_0010e214();" (assignment_expression "iVar7 = FUN_0010e214()" identifier = (call_expression "FUN_0010e214()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar7 == 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n    }\n    goto LAB_0010ea9c;\n  }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n    }\n    goto LAB_0010ea9c;\n  }" { (expression_statement "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar9 = *piVar11;" (assignment_expression "iVar9 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (if_statement "if (iVar9 == 0) {\n      iVar9 = 5;\n    }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar9 = 5;\n    }" { (expression_statement "iVar9 = 5;" (assignment_expression "iVar9 = 5" identifier = number_literal) ;) })) (goto_statement "goto LAB_0010ea9c;" goto statement_identifier ;) })) (expression_statement "iVar8 = (*(code *)PTR_open64_00146378)(iVar7,0,0x1b6);" (assignment_expression "iVar8 = (*(code *)PTR_open64_00146378)(iVar7,0,0x1b6)" identifier = (call_expression "(*(code *)PTR_open64_00146378)(iVar7,0,0x1b6)" (parenthesized_expression "(*(code *)PTR_open64_00146378)" ( (pointer_expression "*(code *)PTR_open64_00146378" * (cast_expression "(code *)PTR_open64_00146378" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,0,0x1b6)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar8 < 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(iVar7);\n      goto LAB_0010ea9c;\n    }\n    pcVar10 = (char *)0x0;\n  }\n  else {\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }" if (parenthesized_expression "(iVar8 < 0)" ( (binary_expression "iVar8 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(iVar7);\n      goto LAB_0010ea9c;\n    }\n    pcVar10 = (char *)0x0;\n  }" { (expression_statement "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar9 = *piVar11;" (assignment_expression "iVar9 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (if_statement "if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(iVar7);\n      goto LAB_0010ea9c;\n    }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(iVar7);\n      goto LAB_0010ea9c;\n    }" { (expression_statement "iVar9 = 5;" (assignment_expression "iVar9 = 5" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_free_001464fc)(iVar7);" (call_expression "(*(code *)PTR_free_001464fc)(iVar7)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7)" ( identifier ))) ;) (goto_statement "goto LAB_0010ea9c;" goto statement_identifier ;) })) (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }" else (compound_statement "{\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }" { (expression_statement "iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);" (assignment_expression "iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0)" identifier = (call_expression "(*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0)" (parenthesized_expression "(*(code *)PTR___fxstat64_00146434)" ( (pointer_expression "*(code *)PTR___fxstat64_00146434" * (cast_expression "(code *)PTR___fxstat64_00146434" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,iVar8,auStack_d0)" ( number_literal , identifier , identifier )))) ;) (if_statement "if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }" if (parenthesized_expression "(iVar9 == -1)" ( (binary_expression "iVar9 == -1" identifier == number_literal) )) (compound_statement "{\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }" { (expression_statement "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar9 = *piVar11;" (assignment_expression "iVar9 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (if_statement "if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }" { (expression_statement "iVar9 = 5;" (assignment_expression "iVar9 = 5" identifier = number_literal) ;) (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n        pcVar10 = (char *)0x0;\n      }" else (compound_statement "{\n        pcVar10 = (char *)0x0;\n      }" { (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) }) (else_clause "else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }" else (if_statement "if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }" if (parenthesized_expression "((local_b8 & 0xf000) == 0x8000)" ( (binary_expression "(local_b8 & 0xf000) == 0x8000" (parenthesized_expression "(local_b8 & 0xf000)" ( (binary_expression "local_b8 & 0xf000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }" { (if_statement "if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }" if (parenthesized_expression "((local_98 == 0) && (local_94 != -1))" ( (binary_expression "(local_98 == 0) && (local_94 != -1)" (parenthesized_expression "(local_98 == 0)" ( (binary_expression "local_98 == 0" identifier == number_literal) )) && (parenthesized_expression "(local_94 != -1)" ( (binary_expression "local_94 != -1" identifier != number_literal) ))) )) (compound_statement "{\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }" { (if_statement "if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }" if (parenthesized_expression "(local_94 == 0)" ( (binary_expression "local_94 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_free_001464fc)(iVar7);" (call_expression "(*(code *)PTR_free_001464fc)(iVar7)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7)" ( identifier ))) ;) (goto_statement "goto LAB_0010ea9c;" goto statement_identifier ;) })) (expression_statement "pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);" (assignment_expression "pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1)" identifier = (cast_expression "(char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_001463e8)(local_94 + 1)" (parenthesized_expression "(*(code *)PTR_malloc_001463e8)" ( (pointer_expression "*(code *)PTR_malloc_001463e8" * (cast_expression "(code *)PTR_malloc_001463e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_94 + 1)" ( (binary_expression "local_94 + 1" identifier + number_literal) ))))) ;) (if_statement "if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }" if (parenthesized_expression "(pcVar10 == (char *)0x0)" ( (binary_expression "pcVar10 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }" { (expression_statement "iVar9 = 0x1b;" (assignment_expression "iVar9 = 0x1b" identifier = number_literal) ;) (expression_statement "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar12 = 0x1b;" (assignment_expression "*puVar12 = 0x1b" (pointer_expression "*puVar12" * identifier) = number_literal) ;) }) (else_clause "else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }" else (compound_statement "{\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }" { (expression_statement "iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);" (assignment_expression "iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94)" identifier = (call_expression "(*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94)" (parenthesized_expression "(*(code *)PTR_read_00146534)" ( (pointer_expression "*(code *)PTR_read_00146534" * (cast_expression "(code *)PTR_read_00146534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar8,pcVar10,local_94)" ( identifier , identifier , identifier )))) ;) (if_statement "if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }" if (parenthesized_expression "(-1 < iVar9)" ( (binary_expression "-1 < iVar9" number_literal < identifier) )) (compound_statement "{\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }" { (expression_statement "(*(code *)PTR_close_0014620c)(iVar8);" (call_expression "(*(code *)PTR_close_0014620c)(iVar8)" (parenthesized_expression "(*(code *)PTR_close_0014620c)" ( (pointer_expression "*(code *)PTR_close_0014620c" * (cast_expression "(code *)PTR_close_0014620c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar8)" ( identifier ))) ;) (expression_statement "puVar2 = PTR_history_comment_char_00144f48;" (assignment_expression "puVar2 = PTR_history_comment_char_00144f48" identifier = identifier) ;) (if_statement "if (param_3 < 0) {\n              param_3 = iVar9;\n            }" if (parenthesized_expression "(param_3 < 0)" ( (binary_expression "param_3 < 0" identifier < number_literal) )) (compound_statement "{\n              param_3 = iVar9;\n            }" { (expression_statement "param_3 = iVar9;" (assignment_expression "param_3 = iVar9" identifier = identifier) ;) })) (expression_statement "pcVar17 = pcVar10 + iVar9;" (assignment_expression "pcVar17 = pcVar10 + iVar9" identifier = (binary_expression "pcVar10 + iVar9" identifier + identifier)) ;) (expression_statement "*pcVar17 = '\0';" (assignment_expression "*pcVar17 = '\0'" (pointer_expression "*pcVar17" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "cVar13 = *puVar2;" (assignment_expression "cVar13 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (if_statement "if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }" if (parenthesized_expression "((cVar13 == '\0') && (*pcVar10 == '#'))" ( (binary_expression "(cVar13 == '\0') && (*pcVar10 == '#')" (parenthesized_expression "(cVar13 == '\0')" ( (binary_expression "cVar13 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(*pcVar10 == '#')" ( (binary_expression "*pcVar10 == '#'" (pointer_expression "*pcVar10" * identifier) == (char_literal "'#'" ' character ')) ))) )) (compound_statement "{\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }" { (expression_statement "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_001461fc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_001461fc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_001461fc)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_001461fc" * (cast_expression "(code *)PTR___ctype_b_loc_001461fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }" if (parenthesized_expression "((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)" ( (binary_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0" (parenthesized_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8)" ( (binary_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8" (pointer_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2)" * (cast_expression "(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar11 + (uint)(byte)pcVar10[1] * 2)" ( (binary_expression "*piVar11 + (uint)(byte)pcVar10[1] * 2" (pointer_expression "*piVar11" * identifier) + (binary_expression "(uint)(byte)pcVar10[1] * 2" (cast_expression "(uint)(byte)pcVar10[1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)pcVar10[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pcVar10[1]" identifier [ number_literal ]))) * number_literal)) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }" { (expression_statement "cVar13 = '#';" (assignment_expression "cVar13 = '#'" identifier = (char_literal "'#'" ' character ')) ;) (expression_statement "*puVar2 = 0x23;" (assignment_expression "*puVar2 = 0x23" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (labeled_statement "LAB_0010ea18:\n                iVar9 = 1;" statement_identifier : (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;)) (if_statement "if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;" if (parenthesized_expression "(*(int *)PTR_history_write_timestamps_00144f4c == 0)" ( (binary_expression "*(int *)PTR_history_write_timestamps_00144f4c == 0" (pointer_expression "*(int *)PTR_history_write_timestamps_00144f4c" * (cast_expression "(int *)PTR_history_write_timestamps_00144f4c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (goto_statement "goto LAB_0010eb04;" goto statement_identifier ;)) (goto_statement "goto LAB_0010eb08;" goto statement_identifier ;) })) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (if_statement "if (pcVar10 < pcVar17) goto LAB_0010eb1c;" if (parenthesized_expression "(pcVar10 < pcVar17)" ( (binary_expression "pcVar10 < pcVar17" identifier < identifier) )) (goto_statement "goto LAB_0010eb1c;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)puVar3 = 0;" (assignment_expression "*(undefined4 *)puVar3 = 0" (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) }) (else_clause "else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }" else (compound_statement "{\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }" { (if_statement "if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }" if (parenthesized_expression "(cVar13 == *pcVar10)" ( (binary_expression "cVar13 == *pcVar10" identifier == (pointer_expression "*pcVar10" * identifier)) )) (compound_statement "{\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }" { (expression_statement "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_001461fc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_001461fc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_001461fc)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_001461fc" * (cast_expression "(code *)PTR___ctype_b_loc_001461fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (if_statement "if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;" if (parenthesized_expression "((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)" ( (binary_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0" (parenthesized_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8)" ( (binary_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8" (pointer_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2)" * (cast_expression "(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar11 + (uint)(byte)pcVar10[1] * 2)" ( (binary_expression "*piVar11 + (uint)(byte)pcVar10[1] * 2" (pointer_expression "*piVar11" * identifier) + (binary_expression "(uint)(byte)pcVar10[1] * 2" (cast_expression "(uint)(byte)pcVar10[1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)pcVar10[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pcVar10[1]" identifier [ number_literal ]))) * number_literal)) )))) & number_literal) )) != number_literal) )) (goto_statement "goto LAB_0010ea18;" goto statement_identifier ;)) }) (else_clause "else {\n                bVar1 = false;\n              }" else (compound_statement "{\n                bVar1 = false;\n              }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) }))) (labeled_statement "LAB_0010eb04:\n              iVar9 = 0;" statement_identifier : (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;)) (labeled_statement "LAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;" statement_identifier : (expression_statement "*(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;" (assignment_expression "*(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9" (pointer_expression "*(int *)PTR_history_multiline_entries_001461b0" * (cast_expression "(int *)PTR_history_multiline_entries_001461b0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(int *)PTR_history_multiline_entries_001461b0 + iVar9" (pointer_expression "*(int *)PTR_history_multiline_entries_001461b0" * (cast_expression "(int *)PTR_history_multiline_entries_001461b0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier)) ;)) (if_statement "if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }" if (parenthesized_expression "(pcVar10 < pcVar17)" ( (binary_expression "pcVar10 < pcVar17" identifier < identifier) )) (compound_statement "{\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }" { (labeled_statement "LAB_0010eb1c:\n                iVar9 = 0;" statement_identifier : (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;)) (expression_statement "pcVar14 = pcVar10;" (assignment_expression "pcVar14 = pcVar10" identifier = identifier) ;) (expression_statement "pcVar15 = pcVar10;" (assignment_expression "pcVar15 = pcVar10" identifier = identifier) ;) (if_statement "if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }" { (do_statement "do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));" do (compound_statement "{\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  }" { (expression_statement "pcVar16 = pcVar15 + 1;" (assignment_expression "pcVar16 = pcVar15 + 1" identifier = (binary_expression "pcVar15 + 1" identifier + number_literal)) ;) (if_statement "if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }" if (parenthesized_expression "((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0))))" ( (binary_expression "(*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))" (parenthesized_expression "(*pcVar15 == '\n')" ( (binary_expression "*pcVar15 == '\n'" (pointer_expression "*pcVar15" * identifier) == (char_literal "'\n'" ' escape_sequence ')) )) && (parenthesized_expression "((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))" ( (parenthesized_expression "(pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0))" ( (comma_expression "pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)" (assignment_expression "pcVar14 = pcVar16" identifier = identifier) , (binary_expression "*pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)" (binary_expression "*pcVar16 != cVar13" (pointer_expression "*pcVar16" * identifier) != identifier) || (parenthesized_expression "(piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)" ( (comma_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0" (assignment_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_001461fc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_001461fc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_001461fc)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_001461fc" * (cast_expression "(code *)PTR___ctype_b_loc_001461fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0" (parenthesized_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8)" ( (binary_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8" (pointer_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2)" * (cast_expression "(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar11 + (uint)(byte)pcVar15[2] * 2)" ( (binary_expression "*piVar11 + (uint)(byte)pcVar15[2] * 2" (pointer_expression "*piVar11" * identifier) + (binary_expression "(uint)(byte)pcVar15[2] * 2" (cast_expression "(uint)(byte)pcVar15[2]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)pcVar15[2]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pcVar15[2]" identifier [ number_literal ]))) * number_literal)) )))) & number_literal) )) == number_literal)) )))) )) ))) )) (compound_statement "{\n                      iVar9 = iVar9 + 1;\n                    }" { (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) })) }) while (parenthesized_expression "((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2))" ( (binary_expression "(pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2)" (parenthesized_expression "(pcVar17 != pcVar16)" ( (binary_expression "pcVar17 != pcVar16" identifier != identifier) )) && (parenthesized_expression "(pcVar15 = pcVar16, iVar9 < param_2)" ( (comma_expression "pcVar15 = pcVar16, iVar9 < param_2" (assignment_expression "pcVar15 = pcVar16" identifier = identifier) , (binary_expression "iVar9 < param_2" identifier < identifier)) ))) )) ;) (if_statement "if (pcVar17 <= pcVar14) goto LAB_0010ed48;" if (parenthesized_expression "(pcVar17 <= pcVar14)" ( (binary_expression "pcVar17 <= pcVar14" identifier <= identifier) )) (goto_statement "goto LAB_0010ed48;" goto statement_identifier ;)) })) (expression_statement "puVar5 = PTR_history_multiline_entries_001461b0;" (assignment_expression "puVar5 = PTR_history_multiline_entries_001461b0" identifier = identifier) ;) (expression_statement "puVar4 = PTR_history_length_001454d0;" (assignment_expression "puVar4 = PTR_history_length_001454d0" identifier = identifier) ;) (expression_statement "local_ec = (char *)0x0;" (assignment_expression "local_ec = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar15 = pcVar14;" (assignment_expression "pcVar15 = pcVar14" identifier = identifier) ;) (do_statement "do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);" do (compound_statement "{\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                }" { (expression_statement "pcVar16 = pcVar15 + 1;" (assignment_expression "pcVar16 = pcVar15 + 1" identifier = (binary_expression "pcVar15 + 1" identifier + number_literal)) ;) (if_statement "if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }" if (parenthesized_expression "(*pcVar15 == '\n')" ( (binary_expression "*pcVar15 == '\n'" (pointer_expression "*pcVar15" * identifier) == (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }" { (if_statement "if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }" if (parenthesized_expression "((pcVar14 < pcVar15) && (pcVar15[-1] == '\r'))" ( (binary_expression "(pcVar14 < pcVar15) && (pcVar15[-1] == '\r')" (parenthesized_expression "(pcVar14 < pcVar15)" ( (binary_expression "pcVar14 < pcVar15" identifier < identifier) )) && (parenthesized_expression "(pcVar15[-1] == '\r')" ( (binary_expression "pcVar15[-1] == '\r'" (subscript_expression "pcVar15[-1]" identifier [ number_literal ]) == (char_literal "'\r'" ' escape_sequence ')) ))) )) (compound_statement "{\n                      pcVar15[-1] = '\0';\n                    }" { (expression_statement "pcVar15[-1] = '\0';" (assignment_expression "pcVar15[-1] = '\0'" (subscript_expression "pcVar15[-1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n                      *pcVar15 = '\0';\n                    }" else (compound_statement "{\n                      *pcVar15 = '\0';\n                    }" { (expression_statement "*pcVar15 = '\0';" (assignment_expression "*pcVar15 = '\0'" (pointer_expression "*pcVar15" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (if_statement "if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }" if (parenthesized_expression "(*pcVar14 == '\0')" ( (binary_expression "*pcVar14 == '\0'" (pointer_expression "*pcVar14" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }" { (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "pcVar14 = local_ec;" (assignment_expression "pcVar14 = local_ec" identifier = identifier) ;) }) (else_clause "else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }" else (if_statement "if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }" if (parenthesized_expression "((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0))" ( (binary_expression "(*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)" (parenthesized_expression "(*puVar2 != *pcVar14)" ( (binary_expression "*puVar2 != *pcVar14" (pointer_expression "*puVar2" * identifier) != (pointer_expression "*pcVar14" * identifier)) )) || (parenthesized_expression "(piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)" ( (comma_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0" (assignment_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_001461fc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_001461fc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_001461fc)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_001461fc" * (cast_expression "(code *)PTR___ctype_b_loc_001461fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0" (parenthesized_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8)" ( (binary_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8" (pointer_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2)" * (cast_expression "(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar11 + (uint)(byte)pcVar14[1] * 2)" ( (binary_expression "*piVar11 + (uint)(byte)pcVar14[1] * 2" (pointer_expression "*piVar11" * identifier) + (binary_expression "(uint)(byte)pcVar14[1] * 2" (cast_expression "(uint)(byte)pcVar14[1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)pcVar14[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pcVar14[1]" identifier [ number_literal ]))) * number_literal)) )))) & number_literal) )) == number_literal)) ))) )) (compound_statement "{\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }" { (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (if_statement "if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }" if (parenthesized_expression "(local_ec == (char *)0x0)" ( (binary_expression "local_ec == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }" { (if_statement "if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }" if (parenthesized_expression "((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0))" ( (binary_expression "(*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)" (parenthesized_expression "(*(int *)puVar4 < 1)" ( (binary_expression "*(int *)puVar4 < 1" (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) < number_literal) )) || (parenthesized_expression "(*(int *)puVar5 == 0)" ( (binary_expression "*(int *)puVar5 == 0" (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) ))) )) (compound_statement "{\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }" { (expression_statement "add_history(pcVar14);" (call_expression "add_history(pcVar14)" identifier (argument_list "(pcVar14)" ( identifier ))) ;) (expression_statement "pcVar14 = local_ec;" (assignment_expression "pcVar14 = local_ec" identifier = identifier) ;) }) (else_clause "else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }" else (compound_statement "{\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }" { (expression_statement "_hs_append_history_line(*(int *)puVar4 + -1);" (call_expression "_hs_append_history_line(*(int *)puVar4 + -1)" identifier (argument_list "(*(int *)puVar4 + -1)" ( (binary_expression "*(int *)puVar4 + -1" (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))) ;) (expression_statement "pcVar14 = local_ec;" (assignment_expression "pcVar14 = local_ec" identifier = identifier) ;) }))) }) (else_clause "else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }" else (compound_statement "{\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }" { (expression_statement "add_history(pcVar14);" (call_expression "add_history(pcVar14)" identifier (argument_list "(pcVar14)" ( identifier ))) ;) (expression_statement "add_history_time(local_ec);" (call_expression "add_history_time(local_ec)" identifier (argument_list "(local_ec)" ( identifier ))) ;) (expression_statement "local_ec = (char *)0x0;" (assignment_expression "local_ec = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar14 = local_ec;" (assignment_expression "pcVar14 = local_ec" identifier = identifier) ;) }))) })))) (expression_statement "local_ec = pcVar14;" (assignment_expression "local_ec = pcVar14" identifier = identifier) ;) (expression_statement "pcVar14 = pcVar16;" (assignment_expression "pcVar14 = pcVar16" identifier = identifier) ;) (if_statement "if (param_3 <= iVar9) break;" if (parenthesized_expression "(param_3 <= iVar9)" ( (binary_expression "param_3 <= iVar9" identifier <= identifier) )) (break_statement "break;" break ;)) })) (expression_statement "pcVar15 = pcVar16;" (assignment_expression "pcVar15 = pcVar16" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar16 < pcVar17)" ( (binary_expression "pcVar16 < pcVar17" identifier < identifier) )) ;) }) (else_clause "else {\n                iVar9 = 0;\n              }" else (compound_statement "{\n                iVar9 = 0;\n              }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) }))) (labeled_statement "LAB_0010ed48:\n              *(int *)puVar3 = iVar9;" statement_identifier : (expression_statement "*(int *)puVar3 = iVar9;" (assignment_expression "*(int *)puVar3 = iVar9" (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;)) (if_statement "if (bVar1) {\n                *puVar2 = 0;\n              }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n                *puVar2 = 0;\n              }" { (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) })) }))) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_free_001464fc)(iVar7);" (call_expression "(*(code *)PTR_free_001464fc)(iVar7)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_free_001464fc)(pcVar10);" (call_expression "(*(code *)PTR_free_001464fc)(pcVar10)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar10)" ( identifier ))) ;) (goto_statement "goto LAB_0010ea9c;" goto statement_identifier ;) })) (expression_statement "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar9 = *piVar11;" (assignment_expression "iVar9 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (if_statement "if (iVar9 == 0) {\n            iVar9 = 5;\n          }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar9 = 5;\n          }" { (expression_statement "iVar9 = 5;" (assignment_expression "iVar9 = 5" identifier = number_literal) ;) })) }))) }) (else_clause "else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }" else (compound_statement "{\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }" { (expression_statement "iVar9 = 0x1b;" (assignment_expression "iVar9 = 0x1b" identifier = number_literal) ;) (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar12 = 0x1b;" (assignment_expression "*puVar12 = 0x1b" (pointer_expression "*puVar12" * identifier) = number_literal) ;) }))) }) (else_clause "else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }" else (compound_statement "{\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }" { (expression_statement "iVar9 = 0x16;" (assignment_expression "iVar9 = 0x16" identifier = number_literal) ;) (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar12 = 0x16;" (assignment_expression "*puVar12 = 0x16" (pointer_expression "*puVar12" * identifier) = number_literal) ;) }))))) (expression_statement "(*(code *)PTR_close_0014620c)(iVar8);" (call_expression "(*(code *)PTR_close_0014620c)(iVar8)" (parenthesized_expression "(*(code *)PTR_close_0014620c)" ( (pointer_expression "*(code *)PTR_close_0014620c" * (cast_expression "(code *)PTR_close_0014620c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar8)" ( identifier ))) ;) }))) (expression_statement "(*(code *)PTR_free_001464fc)(iVar7);" (call_expression "(*(code *)PTR_free_001464fc)(iVar7)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7)" ( identifier ))) ;) (if_statement "if (pcVar10 != (char *)0x0) {\n    (*(code *)PTR_free_001464fc)(pcVar10);\n  }" if (parenthesized_expression "(pcVar10 != (char *)0x0)" ( (binary_expression "pcVar10 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_free_001464fc)(pcVar10);\n  }" { (expression_statement "(*(code *)PTR_free_001464fc)(pcVar10);" (call_expression "(*(code *)PTR_free_001464fc)(pcVar10)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar10)" ( identifier ))) ;) })) (labeled_statement "LAB_0010ea9c:\n  if (local_2c != *(int *)puVar6) {\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar7 = read_history_range();\n    return iVar7;\n  }" statement_identifier : (if_statement "if (local_2c != *(int *)puVar6) {\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar7 = read_history_range();\n    return iVar7;\n  }" if (parenthesized_expression "(local_2c != *(int *)puVar6)" ( (binary_expression "local_2c != *(int *)puVar6" identifier != (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar7 = read_history_range();\n    return iVar7;\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_00146488)();" (call_expression "(*(code *)PTR___stack_chk_fail_00146488)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00146488)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00146488" * (cast_expression "(code *)PTR___stack_chk_fail_00146488" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar7 = read_history_range();" (assignment_expression "iVar7 = read_history_range()" identifier = (call_expression "read_history_range()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar7;" return identifier ;) }))) (return_statement "return iVar9;" return identifier ;) })))
(translation_unit "int read_history_range(char *filename,int from,int to)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  char *filename_00;\n  char *pcVar7;\n  int iVar8;\n  int iVar9;\n  char *pcVar10;\n  int *piVar11;\n  undefined4 *puVar12;\n  char cVar13;\n  char *pcVar14;\n  char *pcVar15;\n  char *pcVar16;\n  char *pcVar17;\n  char *local_ec;\n  stat finfo;\n  \n  puVar6 = PTR___stack_chk_guard_001464dc;\n  puVar3 = PTR_history_lines_read_from_file_001454a8;\n  *(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0;\n  filename_00 = *(char **)puVar6;\n  pcVar7 = history_filename(filename);\n  if (pcVar7 == (char *)0x0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n    }\n    goto LAB_0010ea9c;\n  }\n  iVar8 = (*(code *)PTR_open64_00146378)(pcVar7,0,0x1b6);\n  if (iVar8 < 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(pcVar7);\n      goto LAB_0010ea9c;\n    }\n    pcVar10 = (char *)0x0;\n  }\n  else {\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,&finfo);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((finfo.st_mode & 0xf000) == 0x8000) {\n      if ((finfo.st_size._0_4_ == 0) && (finfo.st_size._4_4_ != -1)) {\n        if (finfo.st_size._4_4_ == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(pcVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(finfo.st_size._4_4_ + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,finfo.st_size._4_4_);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (to < 0) {\n              to = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(pcVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }\n  (*(code *)PTR_free_001464fc)(pcVar7);\n  if (pcVar10 != (char *)0x0) {\n    (*(code *)PTR_free_001464fc)(pcVar10);\n  }\nLAB_0010ea9c:\n  if (filename_00 != *(char **)puVar6) {\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar9 = read_history_range(filename_00,0,-1);\n    return iVar9;\n  }\n  return iVar9;\n}\n\n" (function_definition "int read_history_range(char *filename,int from,int to)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  char *filename_00;\n  char *pcVar7;\n  int iVar8;\n  int iVar9;\n  char *pcVar10;\n  int *piVar11;\n  undefined4 *puVar12;\n  char cVar13;\n  char *pcVar14;\n  char *pcVar15;\n  char *pcVar16;\n  char *pcVar17;\n  char *local_ec;\n  stat finfo;\n  \n  puVar6 = PTR___stack_chk_guard_001464dc;\n  puVar3 = PTR_history_lines_read_from_file_001454a8;\n  *(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0;\n  filename_00 = *(char **)puVar6;\n  pcVar7 = history_filename(filename);\n  if (pcVar7 == (char *)0x0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n    }\n    goto LAB_0010ea9c;\n  }\n  iVar8 = (*(code *)PTR_open64_00146378)(pcVar7,0,0x1b6);\n  if (iVar8 < 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(pcVar7);\n      goto LAB_0010ea9c;\n    }\n    pcVar10 = (char *)0x0;\n  }\n  else {\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,&finfo);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((finfo.st_mode & 0xf000) == 0x8000) {\n      if ((finfo.st_size._0_4_ == 0) && (finfo.st_size._4_4_ != -1)) {\n        if (finfo.st_size._4_4_ == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(pcVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(finfo.st_size._4_4_ + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,finfo.st_size._4_4_);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (to < 0) {\n              to = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(pcVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }\n  (*(code *)PTR_free_001464fc)(pcVar7);\n  if (pcVar10 != (char *)0x0) {\n    (*(code *)PTR_free_001464fc)(pcVar10);\n  }\nLAB_0010ea9c:\n  if (filename_00 != *(char **)puVar6) {\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar9 = read_history_range(filename_00,0,-1);\n    return iVar9;\n  }\n  return iVar9;\n}" primitive_type (function_declarator "read_history_range(char *filename,int from,int to)" identifier (parameter_list "(char *filename,int from,int to)" ( (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) , (parameter_declaration "int from" primitive_type identifier) , (parameter_declaration "int to" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  char *filename_00;\n  char *pcVar7;\n  int iVar8;\n  int iVar9;\n  char *pcVar10;\n  int *piVar11;\n  undefined4 *puVar12;\n  char cVar13;\n  char *pcVar14;\n  char *pcVar15;\n  char *pcVar16;\n  char *pcVar17;\n  char *local_ec;\n  stat finfo;\n  \n  puVar6 = PTR___stack_chk_guard_001464dc;\n  puVar3 = PTR_history_lines_read_from_file_001454a8;\n  *(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0;\n  filename_00 = *(char **)puVar6;\n  pcVar7 = history_filename(filename);\n  if (pcVar7 == (char *)0x0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n    }\n    goto LAB_0010ea9c;\n  }\n  iVar8 = (*(code *)PTR_open64_00146378)(pcVar7,0,0x1b6);\n  if (iVar8 < 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(pcVar7);\n      goto LAB_0010ea9c;\n    }\n    pcVar10 = (char *)0x0;\n  }\n  else {\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,&finfo);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((finfo.st_mode & 0xf000) == 0x8000) {\n      if ((finfo.st_size._0_4_ == 0) && (finfo.st_size._4_4_ != -1)) {\n        if (finfo.st_size._4_4_ == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(pcVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(finfo.st_size._4_4_ + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,finfo.st_size._4_4_);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (to < 0) {\n              to = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(pcVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }\n  (*(code *)PTR_free_001464fc)(pcVar7);\n  if (pcVar10 != (char *)0x0) {\n    (*(code *)PTR_free_001464fc)(pcVar10);\n  }\nLAB_0010ea9c:\n  if (filename_00 != *(char **)puVar6) {\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar9 = read_history_range(filename_00,0,-1);\n    return iVar9;\n  }\n  return iVar9;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "char *filename_00;" primitive_type (pointer_declarator "*filename_00" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int *piVar11;" primitive_type (pointer_declarator "*piVar11" * identifier) ;) (declaration "undefined4 *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "char cVar13;" primitive_type identifier ;) (declaration "char *pcVar14;" primitive_type (pointer_declarator "*pcVar14" * identifier) ;) (declaration "char *pcVar15;" primitive_type (pointer_declarator "*pcVar15" * identifier) ;) (declaration "char *pcVar16;" primitive_type (pointer_declarator "*pcVar16" * identifier) ;) (declaration "char *pcVar17;" primitive_type (pointer_declarator "*pcVar17" * identifier) ;) (declaration "char *local_ec;" primitive_type (pointer_declarator "*local_ec" * identifier) ;) (declaration "stat finfo;" type_identifier identifier ;) (expression_statement "puVar6 = PTR___stack_chk_guard_001464dc;" (assignment_expression "puVar6 = PTR___stack_chk_guard_001464dc" identifier = identifier) ;) (expression_statement "puVar3 = PTR_history_lines_read_from_file_001454a8;" (assignment_expression "puVar3 = PTR_history_lines_read_from_file_001454a8" identifier = identifier) ;) (expression_statement "*(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0;" (assignment_expression "*(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0" (pointer_expression "*(undefined4 *)PTR_history_lines_read_from_file_001454a8" * (cast_expression "(undefined4 *)PTR_history_lines_read_from_file_001454a8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "filename_00 = *(char **)puVar6;" (assignment_expression "filename_00 = *(char **)puVar6" identifier = (pointer_expression "*(char **)puVar6" * (cast_expression "(char **)puVar6" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pcVar7 = history_filename(filename);" (assignment_expression "pcVar7 = history_filename(filename)" identifier = (call_expression "history_filename(filename)" identifier (argument_list "(filename)" ( identifier )))) ;) (if_statement "if (pcVar7 == (char *)0x0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n    }\n    goto LAB_0010ea9c;\n  }" if (parenthesized_expression "(pcVar7 == (char *)0x0)" ( (binary_expression "pcVar7 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n    }\n    goto LAB_0010ea9c;\n  }" { (expression_statement "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar9 = *piVar11;" (assignment_expression "iVar9 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (if_statement "if (iVar9 == 0) {\n      iVar9 = 5;\n    }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar9 = 5;\n    }" { (expression_statement "iVar9 = 5;" (assignment_expression "iVar9 = 5" identifier = number_literal) ;) })) (goto_statement "goto LAB_0010ea9c;" goto statement_identifier ;) })) (expression_statement "iVar8 = (*(code *)PTR_open64_00146378)(pcVar7,0,0x1b6);" (assignment_expression "iVar8 = (*(code *)PTR_open64_00146378)(pcVar7,0,0x1b6)" identifier = (call_expression "(*(code *)PTR_open64_00146378)(pcVar7,0,0x1b6)" (parenthesized_expression "(*(code *)PTR_open64_00146378)" ( (pointer_expression "*(code *)PTR_open64_00146378" * (cast_expression "(code *)PTR_open64_00146378" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar7,0,0x1b6)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar8 < 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(pcVar7);\n      goto LAB_0010ea9c;\n    }\n    pcVar10 = (char *)0x0;\n  }\n  else {\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,&finfo);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((finfo.st_mode & 0xf000) == 0x8000) {\n      if ((finfo.st_size._0_4_ == 0) && (finfo.st_size._4_4_ != -1)) {\n        if (finfo.st_size._4_4_ == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(pcVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(finfo.st_size._4_4_ + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,finfo.st_size._4_4_);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (to < 0) {\n              to = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(pcVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }" if (parenthesized_expression "(iVar8 < 0)" ( (binary_expression "iVar8 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(pcVar7);\n      goto LAB_0010ea9c;\n    }\n    pcVar10 = (char *)0x0;\n  }" { (expression_statement "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar9 = *piVar11;" (assignment_expression "iVar9 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (if_statement "if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(pcVar7);\n      goto LAB_0010ea9c;\n    }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(pcVar7);\n      goto LAB_0010ea9c;\n    }" { (expression_statement "iVar9 = 5;" (assignment_expression "iVar9 = 5" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_free_001464fc)(pcVar7);" (call_expression "(*(code *)PTR_free_001464fc)(pcVar7)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar7)" ( identifier ))) ;) (goto_statement "goto LAB_0010ea9c;" goto statement_identifier ;) })) (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,&finfo);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((finfo.st_mode & 0xf000) == 0x8000) {\n      if ((finfo.st_size._0_4_ == 0) && (finfo.st_size._4_4_ != -1)) {\n        if (finfo.st_size._4_4_ == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(pcVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(finfo.st_size._4_4_ + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,finfo.st_size._4_4_);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (to < 0) {\n              to = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(pcVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }" else (compound_statement "{\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,&finfo);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((finfo.st_mode & 0xf000) == 0x8000) {\n      if ((finfo.st_size._0_4_ == 0) && (finfo.st_size._4_4_ != -1)) {\n        if (finfo.st_size._4_4_ == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(pcVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(finfo.st_size._4_4_ + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,finfo.st_size._4_4_);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (to < 0) {\n              to = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(pcVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }" { (expression_statement "iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,&finfo);" (assignment_expression "iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,&finfo)" identifier = (call_expression "(*(code *)PTR___fxstat64_00146434)(3,iVar8,&finfo)" (parenthesized_expression "(*(code *)PTR___fxstat64_00146434)" ( (pointer_expression "*(code *)PTR___fxstat64_00146434" * (cast_expression "(code *)PTR___fxstat64_00146434" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,iVar8,&finfo)" ( number_literal , identifier , (pointer_expression "&finfo" & identifier) )))) ;) (if_statement "if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((finfo.st_mode & 0xf000) == 0x8000) {\n      if ((finfo.st_size._0_4_ == 0) && (finfo.st_size._4_4_ != -1)) {\n        if (finfo.st_size._4_4_ == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(pcVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(finfo.st_size._4_4_ + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,finfo.st_size._4_4_);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (to < 0) {\n              to = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(pcVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }" if (parenthesized_expression "(iVar9 == -1)" ( (binary_expression "iVar9 == -1" identifier == number_literal) )) (compound_statement "{\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }" { (expression_statement "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar9 = *piVar11;" (assignment_expression "iVar9 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (if_statement "if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }" { (expression_statement "iVar9 = 5;" (assignment_expression "iVar9 = 5" identifier = number_literal) ;) (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n        pcVar10 = (char *)0x0;\n      }" else (compound_statement "{\n        pcVar10 = (char *)0x0;\n      }" { (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) }) (else_clause "else if ((finfo.st_mode & 0xf000) == 0x8000) {\n      if ((finfo.st_size._0_4_ == 0) && (finfo.st_size._4_4_ != -1)) {\n        if (finfo.st_size._4_4_ == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(pcVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(finfo.st_size._4_4_ + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,finfo.st_size._4_4_);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (to < 0) {\n              to = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(pcVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }" else (if_statement "if ((finfo.st_mode & 0xf000) == 0x8000) {\n      if ((finfo.st_size._0_4_ == 0) && (finfo.st_size._4_4_ != -1)) {\n        if (finfo.st_size._4_4_ == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(pcVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(finfo.st_size._4_4_ + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,finfo.st_size._4_4_);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (to < 0) {\n              to = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(pcVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }" if (parenthesized_expression "((finfo.st_mode & 0xf000) == 0x8000)" ( (binary_expression "(finfo.st_mode & 0xf000) == 0x8000" (parenthesized_expression "(finfo.st_mode & 0xf000)" ( (binary_expression "finfo.st_mode & 0xf000" (field_expression "finfo.st_mode" identifier . field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((finfo.st_size._0_4_ == 0) && (finfo.st_size._4_4_ != -1)) {\n        if (finfo.st_size._4_4_ == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(pcVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(finfo.st_size._4_4_ + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,finfo.st_size._4_4_);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (to < 0) {\n              to = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(pcVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }" { (if_statement "if ((finfo.st_size._0_4_ == 0) && (finfo.st_size._4_4_ != -1)) {\n        if (finfo.st_size._4_4_ == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(pcVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(finfo.st_size._4_4_ + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,finfo.st_size._4_4_);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (to < 0) {\n              to = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(pcVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }" if (parenthesized_expression "((finfo.st_size._0_4_ == 0) && (finfo.st_size._4_4_ != -1))" ( (binary_expression "(finfo.st_size._0_4_ == 0) && (finfo.st_size._4_4_ != -1)" (parenthesized_expression "(finfo.st_size._0_4_ == 0)" ( (binary_expression "finfo.st_size._0_4_ == 0" (field_expression "finfo.st_size._0_4_" (field_expression "finfo.st_size" identifier . field_identifier) . field_identifier) == number_literal) )) && (parenthesized_expression "(finfo.st_size._4_4_ != -1)" ( (binary_expression "finfo.st_size._4_4_ != -1" (field_expression "finfo.st_size._4_4_" (field_expression "finfo.st_size" identifier . field_identifier) . field_identifier) != number_literal) ))) )) (compound_statement "{\n        if (finfo.st_size._4_4_ == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(pcVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(finfo.st_size._4_4_ + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,finfo.st_size._4_4_);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (to < 0) {\n              to = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(pcVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }" { (if_statement "if (finfo.st_size._4_4_ == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(pcVar7);\n          goto LAB_0010ea9c;\n        }" if (parenthesized_expression "(finfo.st_size._4_4_ == 0)" ( (binary_expression "finfo.st_size._4_4_ == 0" (field_expression "finfo.st_size._4_4_" (field_expression "finfo.st_size" identifier . field_identifier) . field_identifier) == number_literal) )) (compound_statement "{\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(pcVar7);\n          goto LAB_0010ea9c;\n        }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_free_001464fc)(pcVar7);" (call_expression "(*(code *)PTR_free_001464fc)(pcVar7)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar7)" ( identifier ))) ;) (goto_statement "goto LAB_0010ea9c;" goto statement_identifier ;) })) (expression_statement "pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(finfo.st_size._4_4_ + 1);" (assignment_expression "pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(finfo.st_size._4_4_ + 1)" identifier = (cast_expression "(char *)(*(code *)PTR_malloc_001463e8)(finfo.st_size._4_4_ + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_001463e8)(finfo.st_size._4_4_ + 1)" (parenthesized_expression "(*(code *)PTR_malloc_001463e8)" ( (pointer_expression "*(code *)PTR_malloc_001463e8" * (cast_expression "(code *)PTR_malloc_001463e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(finfo.st_size._4_4_ + 1)" ( (binary_expression "finfo.st_size._4_4_ + 1" (field_expression "finfo.st_size._4_4_" (field_expression "finfo.st_size" identifier . field_identifier) . field_identifier) + number_literal) ))))) ;) (if_statement "if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,finfo.st_size._4_4_);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (to < 0) {\n              to = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(pcVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }" if (parenthesized_expression "(pcVar10 == (char *)0x0)" ( (binary_expression "pcVar10 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }" { (expression_statement "iVar9 = 0x1b;" (assignment_expression "iVar9 = 0x1b" identifier = number_literal) ;) (expression_statement "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar12 = 0x1b;" (assignment_expression "*puVar12 = 0x1b" (pointer_expression "*puVar12" * identifier) = number_literal) ;) }) (else_clause "else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,finfo.st_size._4_4_);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (to < 0) {\n              to = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(pcVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }" else (compound_statement "{\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,finfo.st_size._4_4_);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (to < 0) {\n              to = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(pcVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }" { (expression_statement "iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,finfo.st_size._4_4_);" (assignment_expression "iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,finfo.st_size._4_4_)" identifier = (call_expression "(*(code *)PTR_read_00146534)(iVar8,pcVar10,finfo.st_size._4_4_)" (parenthesized_expression "(*(code *)PTR_read_00146534)" ( (pointer_expression "*(code *)PTR_read_00146534" * (cast_expression "(code *)PTR_read_00146534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar8,pcVar10,finfo.st_size._4_4_)" ( identifier , identifier , (field_expression "finfo.st_size._4_4_" (field_expression "finfo.st_size" identifier . field_identifier) . field_identifier) )))) ;) (if_statement "if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (to < 0) {\n              to = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(pcVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }" if (parenthesized_expression "(-1 < iVar9)" ( (binary_expression "-1 < iVar9" number_literal < identifier) )) (compound_statement "{\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (to < 0) {\n              to = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(pcVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }" { (expression_statement "(*(code *)PTR_close_0014620c)(iVar8);" (call_expression "(*(code *)PTR_close_0014620c)(iVar8)" (parenthesized_expression "(*(code *)PTR_close_0014620c)" ( (pointer_expression "*(code *)PTR_close_0014620c" * (cast_expression "(code *)PTR_close_0014620c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar8)" ( identifier ))) ;) (expression_statement "puVar2 = PTR_history_comment_char_00144f48;" (assignment_expression "puVar2 = PTR_history_comment_char_00144f48" identifier = identifier) ;) (if_statement "if (to < 0) {\n              to = iVar9;\n            }" if (parenthesized_expression "(to < 0)" ( (binary_expression "to < 0" identifier < number_literal) )) (compound_statement "{\n              to = iVar9;\n            }" { (expression_statement "to = iVar9;" (assignment_expression "to = iVar9" identifier = identifier) ;) })) (expression_statement "pcVar17 = pcVar10 + iVar9;" (assignment_expression "pcVar17 = pcVar10 + iVar9" identifier = (binary_expression "pcVar10 + iVar9" identifier + identifier)) ;) (expression_statement "*pcVar17 = '\0';" (assignment_expression "*pcVar17 = '\0'" (pointer_expression "*pcVar17" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "cVar13 = *puVar2;" (assignment_expression "cVar13 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (if_statement "if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }" if (parenthesized_expression "((cVar13 == '\0') && (*pcVar10 == '#'))" ( (binary_expression "(cVar13 == '\0') && (*pcVar10 == '#')" (parenthesized_expression "(cVar13 == '\0')" ( (binary_expression "cVar13 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(*pcVar10 == '#')" ( (binary_expression "*pcVar10 == '#'" (pointer_expression "*pcVar10" * identifier) == (char_literal "'#'" ' character ')) ))) )) (compound_statement "{\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }" { (expression_statement "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_001461fc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_001461fc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_001461fc)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_001461fc" * (cast_expression "(code *)PTR___ctype_b_loc_001461fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }" if (parenthesized_expression "((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)" ( (binary_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0" (parenthesized_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8)" ( (binary_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8" (pointer_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2)" * (cast_expression "(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar11 + (uint)(byte)pcVar10[1] * 2)" ( (binary_expression "*piVar11 + (uint)(byte)pcVar10[1] * 2" (pointer_expression "*piVar11" * identifier) + (binary_expression "(uint)(byte)pcVar10[1] * 2" (cast_expression "(uint)(byte)pcVar10[1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)pcVar10[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pcVar10[1]" identifier [ number_literal ]))) * number_literal)) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }" { (expression_statement "cVar13 = '#';" (assignment_expression "cVar13 = '#'" identifier = (char_literal "'#'" ' character ')) ;) (expression_statement "*puVar2 = 0x23;" (assignment_expression "*puVar2 = 0x23" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (labeled_statement "LAB_0010ea18:\n                iVar9 = 1;" statement_identifier : (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;)) (if_statement "if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;" if (parenthesized_expression "(*(int *)PTR_history_write_timestamps_00144f4c == 0)" ( (binary_expression "*(int *)PTR_history_write_timestamps_00144f4c == 0" (pointer_expression "*(int *)PTR_history_write_timestamps_00144f4c" * (cast_expression "(int *)PTR_history_write_timestamps_00144f4c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (goto_statement "goto LAB_0010eb04;" goto statement_identifier ;)) (goto_statement "goto LAB_0010eb08;" goto statement_identifier ;) })) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (if_statement "if (pcVar10 < pcVar17) goto LAB_0010eb1c;" if (parenthesized_expression "(pcVar10 < pcVar17)" ( (binary_expression "pcVar10 < pcVar17" identifier < identifier) )) (goto_statement "goto LAB_0010eb1c;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)puVar3 = 0;" (assignment_expression "*(undefined4 *)puVar3 = 0" (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) }) (else_clause "else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }" else (compound_statement "{\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }" { (if_statement "if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }" if (parenthesized_expression "(cVar13 == *pcVar10)" ( (binary_expression "cVar13 == *pcVar10" identifier == (pointer_expression "*pcVar10" * identifier)) )) (compound_statement "{\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }" { (expression_statement "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_001461fc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_001461fc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_001461fc)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_001461fc" * (cast_expression "(code *)PTR___ctype_b_loc_001461fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (if_statement "if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;" if (parenthesized_expression "((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)" ( (binary_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0" (parenthesized_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8)" ( (binary_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8" (pointer_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2)" * (cast_expression "(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar11 + (uint)(byte)pcVar10[1] * 2)" ( (binary_expression "*piVar11 + (uint)(byte)pcVar10[1] * 2" (pointer_expression "*piVar11" * identifier) + (binary_expression "(uint)(byte)pcVar10[1] * 2" (cast_expression "(uint)(byte)pcVar10[1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)pcVar10[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pcVar10[1]" identifier [ number_literal ]))) * number_literal)) )))) & number_literal) )) != number_literal) )) (goto_statement "goto LAB_0010ea18;" goto statement_identifier ;)) }) (else_clause "else {\n                bVar1 = false;\n              }" else (compound_statement "{\n                bVar1 = false;\n              }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) }))) (labeled_statement "LAB_0010eb04:\n              iVar9 = 0;" statement_identifier : (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;)) (labeled_statement "LAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;" statement_identifier : (expression_statement "*(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;" (assignment_expression "*(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9" (pointer_expression "*(int *)PTR_history_multiline_entries_001461b0" * (cast_expression "(int *)PTR_history_multiline_entries_001461b0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(int *)PTR_history_multiline_entries_001461b0 + iVar9" (pointer_expression "*(int *)PTR_history_multiline_entries_001461b0" * (cast_expression "(int *)PTR_history_multiline_entries_001461b0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier)) ;)) (if_statement "if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }" if (parenthesized_expression "(pcVar10 < pcVar17)" ( (binary_expression "pcVar10 < pcVar17" identifier < identifier) )) (compound_statement "{\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }" { (labeled_statement "LAB_0010eb1c:\n                iVar9 = 0;" statement_identifier : (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;)) (expression_statement "pcVar14 = pcVar10;" (assignment_expression "pcVar14 = pcVar10" identifier = identifier) ;) (expression_statement "pcVar15 = pcVar10;" (assignment_expression "pcVar15 = pcVar10" identifier = identifier) ;) (if_statement "if (0 < from) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }" if (parenthesized_expression "(0 < from)" ( (binary_expression "0 < from" number_literal < identifier) )) (compound_statement "{\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }" { (do_statement "do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from));" do (compound_statement "{\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  }" { (expression_statement "pcVar16 = pcVar15 + 1;" (assignment_expression "pcVar16 = pcVar15 + 1" identifier = (binary_expression "pcVar15 + 1" identifier + number_literal)) ;) (if_statement "if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }" if (parenthesized_expression "((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0))))" ( (binary_expression "(*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))" (parenthesized_expression "(*pcVar15 == '\n')" ( (binary_expression "*pcVar15 == '\n'" (pointer_expression "*pcVar15" * identifier) == (char_literal "'\n'" ' escape_sequence ')) )) && (parenthesized_expression "((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))" ( (parenthesized_expression "(pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0))" ( (comma_expression "pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)" (assignment_expression "pcVar14 = pcVar16" identifier = identifier) , (binary_expression "*pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)" (binary_expression "*pcVar16 != cVar13" (pointer_expression "*pcVar16" * identifier) != identifier) || (parenthesized_expression "(piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)" ( (comma_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0" (assignment_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_001461fc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_001461fc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_001461fc)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_001461fc" * (cast_expression "(code *)PTR___ctype_b_loc_001461fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0" (parenthesized_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8)" ( (binary_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8" (pointer_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2)" * (cast_expression "(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar11 + (uint)(byte)pcVar15[2] * 2)" ( (binary_expression "*piVar11 + (uint)(byte)pcVar15[2] * 2" (pointer_expression "*piVar11" * identifier) + (binary_expression "(uint)(byte)pcVar15[2] * 2" (cast_expression "(uint)(byte)pcVar15[2]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)pcVar15[2]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pcVar15[2]" identifier [ number_literal ]))) * number_literal)) )))) & number_literal) )) == number_literal)) )))) )) ))) )) (compound_statement "{\n                      iVar9 = iVar9 + 1;\n                    }" { (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) })) }) while (parenthesized_expression "((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from))" ( (binary_expression "(pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < from)" (parenthesized_expression "(pcVar17 != pcVar16)" ( (binary_expression "pcVar17 != pcVar16" identifier != identifier) )) && (parenthesized_expression "(pcVar15 = pcVar16, iVar9 < from)" ( (comma_expression "pcVar15 = pcVar16, iVar9 < from" (assignment_expression "pcVar15 = pcVar16" identifier = identifier) , (binary_expression "iVar9 < from" identifier < identifier)) ))) )) ;) (if_statement "if (pcVar17 <= pcVar14) goto LAB_0010ed48;" if (parenthesized_expression "(pcVar17 <= pcVar14)" ( (binary_expression "pcVar17 <= pcVar14" identifier <= identifier) )) (goto_statement "goto LAB_0010ed48;" goto statement_identifier ;)) })) (expression_statement "puVar5 = PTR_history_multiline_entries_001461b0;" (assignment_expression "puVar5 = PTR_history_multiline_entries_001461b0" identifier = identifier) ;) (expression_statement "puVar4 = PTR_history_length_001454d0;" (assignment_expression "puVar4 = PTR_history_length_001454d0" identifier = identifier) ;) (expression_statement "local_ec = (char *)0x0;" (assignment_expression "local_ec = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar15 = pcVar14;" (assignment_expression "pcVar15 = pcVar14" identifier = identifier) ;) (do_statement "do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);" do (compound_statement "{\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                }" { (expression_statement "pcVar16 = pcVar15 + 1;" (assignment_expression "pcVar16 = pcVar15 + 1" identifier = (binary_expression "pcVar15 + 1" identifier + number_literal)) ;) (if_statement "if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }" if (parenthesized_expression "(*pcVar15 == '\n')" ( (binary_expression "*pcVar15 == '\n'" (pointer_expression "*pcVar15" * identifier) == (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (to <= iVar9) break;\n                  }" { (if_statement "if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }" if (parenthesized_expression "((pcVar14 < pcVar15) && (pcVar15[-1] == '\r'))" ( (binary_expression "(pcVar14 < pcVar15) && (pcVar15[-1] == '\r')" (parenthesized_expression "(pcVar14 < pcVar15)" ( (binary_expression "pcVar14 < pcVar15" identifier < identifier) )) && (parenthesized_expression "(pcVar15[-1] == '\r')" ( (binary_expression "pcVar15[-1] == '\r'" (subscript_expression "pcVar15[-1]" identifier [ number_literal ]) == (char_literal "'\r'" ' escape_sequence ')) ))) )) (compound_statement "{\n                      pcVar15[-1] = '\0';\n                    }" { (expression_statement "pcVar15[-1] = '\0';" (assignment_expression "pcVar15[-1] = '\0'" (subscript_expression "pcVar15[-1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n                      *pcVar15 = '\0';\n                    }" else (compound_statement "{\n                      *pcVar15 = '\0';\n                    }" { (expression_statement "*pcVar15 = '\0';" (assignment_expression "*pcVar15 = '\0'" (pointer_expression "*pcVar15" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (if_statement "if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }" if (parenthesized_expression "(*pcVar14 == '\0')" ( (binary_expression "*pcVar14 == '\0'" (pointer_expression "*pcVar14" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }" { (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "pcVar14 = local_ec;" (assignment_expression "pcVar14 = local_ec" identifier = identifier) ;) }) (else_clause "else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }" else (if_statement "if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }" if (parenthesized_expression "((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0))" ( (binary_expression "(*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)" (parenthesized_expression "(*puVar2 != *pcVar14)" ( (binary_expression "*puVar2 != *pcVar14" (pointer_expression "*puVar2" * identifier) != (pointer_expression "*pcVar14" * identifier)) )) || (parenthesized_expression "(piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)" ( (comma_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0" (assignment_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_001461fc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_001461fc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_001461fc)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_001461fc" * (cast_expression "(code *)PTR___ctype_b_loc_001461fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0" (parenthesized_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8)" ( (binary_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8" (pointer_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2)" * (cast_expression "(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar11 + (uint)(byte)pcVar14[1] * 2)" ( (binary_expression "*piVar11 + (uint)(byte)pcVar14[1] * 2" (pointer_expression "*piVar11" * identifier) + (binary_expression "(uint)(byte)pcVar14[1] * 2" (cast_expression "(uint)(byte)pcVar14[1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)pcVar14[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pcVar14[1]" identifier [ number_literal ]))) * number_literal)) )))) & number_literal) )) == number_literal)) ))) )) (compound_statement "{\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }" { (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (if_statement "if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }" if (parenthesized_expression "(local_ec == (char *)0x0)" ( (binary_expression "local_ec == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                      }" { (if_statement "if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }" if (parenthesized_expression "((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0))" ( (binary_expression "(*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)" (parenthesized_expression "(*(int *)puVar4 < 1)" ( (binary_expression "*(int *)puVar4 < 1" (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) < number_literal) )) || (parenthesized_expression "(*(int *)puVar5 == 0)" ( (binary_expression "*(int *)puVar5 == 0" (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) ))) )) (compound_statement "{\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }" { (expression_statement "add_history(pcVar14);" (call_expression "add_history(pcVar14)" identifier (argument_list "(pcVar14)" ( identifier ))) ;) (expression_statement "pcVar14 = local_ec;" (assignment_expression "pcVar14 = local_ec" identifier = identifier) ;) }) (else_clause "else {\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }" else (compound_statement "{\n                          _hs_append_history_line(*(int *)puVar4 + -1,pcVar14);\n                          pcVar14 = local_ec;\n                        }" { (expression_statement "_hs_append_history_line(*(int *)puVar4 + -1,pcVar14);" (call_expression "_hs_append_history_line(*(int *)puVar4 + -1,pcVar14)" identifier (argument_list "(*(int *)puVar4 + -1,pcVar14)" ( (binary_expression "*(int *)puVar4 + -1" (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) , identifier ))) ;) (expression_statement "pcVar14 = local_ec;" (assignment_expression "pcVar14 = local_ec" identifier = identifier) ;) }))) }) (else_clause "else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }" else (compound_statement "{\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }" { (expression_statement "add_history(pcVar14);" (call_expression "add_history(pcVar14)" identifier (argument_list "(pcVar14)" ( identifier ))) ;) (expression_statement "add_history_time(local_ec);" (call_expression "add_history_time(local_ec)" identifier (argument_list "(local_ec)" ( identifier ))) ;) (expression_statement "local_ec = (char *)0x0;" (assignment_expression "local_ec = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar14 = local_ec;" (assignment_expression "pcVar14 = local_ec" identifier = identifier) ;) }))) })))) (expression_statement "local_ec = pcVar14;" (assignment_expression "local_ec = pcVar14" identifier = identifier) ;) (expression_statement "pcVar14 = pcVar16;" (assignment_expression "pcVar14 = pcVar16" identifier = identifier) ;) (if_statement "if (to <= iVar9) break;" if (parenthesized_expression "(to <= iVar9)" ( (binary_expression "to <= iVar9" identifier <= identifier) )) (break_statement "break;" break ;)) })) (expression_statement "pcVar15 = pcVar16;" (assignment_expression "pcVar15 = pcVar16" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar16 < pcVar17)" ( (binary_expression "pcVar16 < pcVar17" identifier < identifier) )) ;) }) (else_clause "else {\n                iVar9 = 0;\n              }" else (compound_statement "{\n                iVar9 = 0;\n              }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) }))) (labeled_statement "LAB_0010ed48:\n              *(int *)puVar3 = iVar9;" statement_identifier : (expression_statement "*(int *)puVar3 = iVar9;" (assignment_expression "*(int *)puVar3 = iVar9" (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;)) (if_statement "if (bVar1) {\n                *puVar2 = 0;\n              }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n                *puVar2 = 0;\n              }" { (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) })) }))) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_free_001464fc)(pcVar7);" (call_expression "(*(code *)PTR_free_001464fc)(pcVar7)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar7)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_free_001464fc)(pcVar10);" (call_expression "(*(code *)PTR_free_001464fc)(pcVar10)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar10)" ( identifier ))) ;) (goto_statement "goto LAB_0010ea9c;" goto statement_identifier ;) })) (expression_statement "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar9 = *piVar11;" (assignment_expression "iVar9 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (if_statement "if (iVar9 == 0) {\n            iVar9 = 5;\n          }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar9 = 5;\n          }" { (expression_statement "iVar9 = 5;" (assignment_expression "iVar9 = 5" identifier = number_literal) ;) })) }))) }) (else_clause "else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }" else (compound_statement "{\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }" { (expression_statement "iVar9 = 0x1b;" (assignment_expression "iVar9 = 0x1b" identifier = number_literal) ;) (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar12 = 0x1b;" (assignment_expression "*puVar12 = 0x1b" (pointer_expression "*puVar12" * identifier) = number_literal) ;) }))) }) (else_clause "else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }" else (compound_statement "{\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }" { (expression_statement "iVar9 = 0x16;" (assignment_expression "iVar9 = 0x16" identifier = number_literal) ;) (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar12 = 0x16;" (assignment_expression "*puVar12 = 0x16" (pointer_expression "*puVar12" * identifier) = number_literal) ;) }))))) (expression_statement "(*(code *)PTR_close_0014620c)(iVar8);" (call_expression "(*(code *)PTR_close_0014620c)(iVar8)" (parenthesized_expression "(*(code *)PTR_close_0014620c)" ( (pointer_expression "*(code *)PTR_close_0014620c" * (cast_expression "(code *)PTR_close_0014620c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar8)" ( identifier ))) ;) }))) (expression_statement "(*(code *)PTR_free_001464fc)(pcVar7);" (call_expression "(*(code *)PTR_free_001464fc)(pcVar7)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar7)" ( identifier ))) ;) (if_statement "if (pcVar10 != (char *)0x0) {\n    (*(code *)PTR_free_001464fc)(pcVar10);\n  }" if (parenthesized_expression "(pcVar10 != (char *)0x0)" ( (binary_expression "pcVar10 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_free_001464fc)(pcVar10);\n  }" { (expression_statement "(*(code *)PTR_free_001464fc)(pcVar10);" (call_expression "(*(code *)PTR_free_001464fc)(pcVar10)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar10)" ( identifier ))) ;) })) (labeled_statement "LAB_0010ea9c:\n  if (filename_00 != *(char **)puVar6) {\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar9 = read_history_range(filename_00,0,-1);\n    return iVar9;\n  }" statement_identifier : (if_statement "if (filename_00 != *(char **)puVar6) {\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar9 = read_history_range(filename_00,0,-1);\n    return iVar9;\n  }" if (parenthesized_expression "(filename_00 != *(char **)puVar6)" ( (binary_expression "filename_00 != *(char **)puVar6" identifier != (pointer_expression "*(char **)puVar6" * (cast_expression "(char **)puVar6" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar9 = read_history_range(filename_00,0,-1);\n    return iVar9;\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_00146488)();" (call_expression "(*(code *)PTR___stack_chk_fail_00146488)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00146488)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00146488" * (cast_expression "(code *)PTR___stack_chk_fail_00146488" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar9 = read_history_range(filename_00,0,-1);" (assignment_expression "iVar9 = read_history_range(filename_00,0,-1)" identifier = (call_expression "read_history_range(filename_00,0,-1)" identifier (argument_list "(filename_00,0,-1)" ( identifier , number_literal , number_literal )))) ;) (return_statement "return iVar9;" return identifier ;) }))) (return_statement "return iVar9;" return identifier ;) })))
(translation_unit "int read_history_range(undefined4 param_1,int param_2,int param_3)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  char *pcVar10;\n  int *piVar11;\n  undefined4 *puVar12;\n  char cVar13;\n  char *pcVar14;\n  char *pcVar15;\n  char *pcVar16;\n  char *pcVar17;\n  char *local_ec;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_98;\n  int local_94;\n  int local_2c;\n  \n  puVar6 = PTR___stack_chk_guard_001464dc;\n  puVar3 = PTR_history_lines_read_from_file_001454a8;\n  *(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0;\n  local_2c = *(int *)puVar6;\n  iVar7 = FUN_0010e214();\n  if (iVar7 == 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n    }\n    goto LAB_0010ea9c;\n  }\n  iVar8 = (*(code *)PTR_open64_00146378)(iVar7,0,0x1b6);\n  if (iVar8 < 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(iVar7);\n      goto LAB_0010ea9c;\n    }\n    pcVar10 = (char *)0x0;\n  }\n  else {\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }\n  (*(code *)PTR_free_001464fc)(iVar7);\n  if (pcVar10 != (char *)0x0) {\n    (*(code *)PTR_free_001464fc)(pcVar10);\n  }\nLAB_0010ea9c:\n  if (local_2c != *(int *)puVar6) {\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar7 = read_history_range();\n    return iVar7;\n  }\n  return iVar9;\n}\n\n" (function_definition "int read_history_range(undefined4 param_1,int param_2,int param_3)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  char *pcVar10;\n  int *piVar11;\n  undefined4 *puVar12;\n  char cVar13;\n  char *pcVar14;\n  char *pcVar15;\n  char *pcVar16;\n  char *pcVar17;\n  char *local_ec;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_98;\n  int local_94;\n  int local_2c;\n  \n  puVar6 = PTR___stack_chk_guard_001464dc;\n  puVar3 = PTR_history_lines_read_from_file_001454a8;\n  *(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0;\n  local_2c = *(int *)puVar6;\n  iVar7 = FUN_0010e214();\n  if (iVar7 == 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n    }\n    goto LAB_0010ea9c;\n  }\n  iVar8 = (*(code *)PTR_open64_00146378)(iVar7,0,0x1b6);\n  if (iVar8 < 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(iVar7);\n      goto LAB_0010ea9c;\n    }\n    pcVar10 = (char *)0x0;\n  }\n  else {\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }\n  (*(code *)PTR_free_001464fc)(iVar7);\n  if (pcVar10 != (char *)0x0) {\n    (*(code *)PTR_free_001464fc)(pcVar10);\n  }\nLAB_0010ea9c:\n  if (local_2c != *(int *)puVar6) {\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar7 = read_history_range();\n    return iVar7;\n  }\n  return iVar9;\n}" primitive_type (function_declarator "read_history_range(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  char *pcVar10;\n  int *piVar11;\n  undefined4 *puVar12;\n  char cVar13;\n  char *pcVar14;\n  char *pcVar15;\n  char *pcVar16;\n  char *pcVar17;\n  char *local_ec;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_98;\n  int local_94;\n  int local_2c;\n  \n  puVar6 = PTR___stack_chk_guard_001464dc;\n  puVar3 = PTR_history_lines_read_from_file_001454a8;\n  *(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0;\n  local_2c = *(int *)puVar6;\n  iVar7 = FUN_0010e214();\n  if (iVar7 == 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n    }\n    goto LAB_0010ea9c;\n  }\n  iVar8 = (*(code *)PTR_open64_00146378)(iVar7,0,0x1b6);\n  if (iVar8 < 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(iVar7);\n      goto LAB_0010ea9c;\n    }\n    pcVar10 = (char *)0x0;\n  }\n  else {\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }\n  (*(code *)PTR_free_001464fc)(iVar7);\n  if (pcVar10 != (char *)0x0) {\n    (*(code *)PTR_free_001464fc)(pcVar10);\n  }\nLAB_0010ea9c:\n  if (local_2c != *(int *)puVar6) {\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar7 = read_history_range();\n    return iVar7;\n  }\n  return iVar9;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int *piVar11;" primitive_type (pointer_declarator "*piVar11" * identifier) ;) (declaration "undefined4 *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "char cVar13;" primitive_type identifier ;) (declaration "char *pcVar14;" primitive_type (pointer_declarator "*pcVar14" * identifier) ;) (declaration "char *pcVar15;" primitive_type (pointer_declarator "*pcVar15" * identifier) ;) (declaration "char *pcVar16;" primitive_type (pointer_declarator "*pcVar16" * identifier) ;) (declaration "char *pcVar17;" primitive_type (pointer_declarator "*pcVar17" * identifier) ;) (declaration "char *local_ec;" primitive_type (pointer_declarator "*local_ec" * identifier) ;) (declaration "undefined1 auStack_d0 [24];" type_identifier (array_declarator "auStack_d0 [24]" identifier [ number_literal ]) ;) (declaration "uint local_b8;" type_identifier identifier ;) (declaration "int local_98;" primitive_type identifier ;) (declaration "int local_94;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar6 = PTR___stack_chk_guard_001464dc;" (assignment_expression "puVar6 = PTR___stack_chk_guard_001464dc" identifier = identifier) ;) (expression_statement "puVar3 = PTR_history_lines_read_from_file_001454a8;" (assignment_expression "puVar3 = PTR_history_lines_read_from_file_001454a8" identifier = identifier) ;) (expression_statement "*(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0;" (assignment_expression "*(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0" (pointer_expression "*(undefined4 *)PTR_history_lines_read_from_file_001454a8" * (cast_expression "(undefined4 *)PTR_history_lines_read_from_file_001454a8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "local_2c = *(int *)puVar6;" (assignment_expression "local_2c = *(int *)puVar6" identifier = (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar7 = FUN_0010e214();" (assignment_expression "iVar7 = FUN_0010e214()" identifier = (call_expression "FUN_0010e214()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar7 == 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n    }\n    goto LAB_0010ea9c;\n  }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n    }\n    goto LAB_0010ea9c;\n  }" { (expression_statement "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar9 = *piVar11;" (assignment_expression "iVar9 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (if_statement "if (iVar9 == 0) {\n      iVar9 = 5;\n    }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar9 = 5;\n    }" { (expression_statement "iVar9 = 5;" (assignment_expression "iVar9 = 5" identifier = number_literal) ;) })) (goto_statement "goto LAB_0010ea9c;" goto statement_identifier ;) })) (expression_statement "iVar8 = (*(code *)PTR_open64_00146378)(iVar7,0,0x1b6);" (assignment_expression "iVar8 = (*(code *)PTR_open64_00146378)(iVar7,0,0x1b6)" identifier = (call_expression "(*(code *)PTR_open64_00146378)(iVar7,0,0x1b6)" (parenthesized_expression "(*(code *)PTR_open64_00146378)" ( (pointer_expression "*(code *)PTR_open64_00146378" * (cast_expression "(code *)PTR_open64_00146378" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,0,0x1b6)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar8 < 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(iVar7);\n      goto LAB_0010ea9c;\n    }\n    pcVar10 = (char *)0x0;\n  }\n  else {\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }" if (parenthesized_expression "(iVar8 < 0)" ( (binary_expression "iVar8 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(iVar7);\n      goto LAB_0010ea9c;\n    }\n    pcVar10 = (char *)0x0;\n  }" { (expression_statement "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar9 = *piVar11;" (assignment_expression "iVar9 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (if_statement "if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(iVar7);\n      goto LAB_0010ea9c;\n    }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(iVar7);\n      goto LAB_0010ea9c;\n    }" { (expression_statement "iVar9 = 5;" (assignment_expression "iVar9 = 5" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_free_001464fc)(iVar7);" (call_expression "(*(code *)PTR_free_001464fc)(iVar7)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7)" ( identifier ))) ;) (goto_statement "goto LAB_0010ea9c;" goto statement_identifier ;) })) (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }" else (compound_statement "{\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }" { (expression_statement "iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);" (assignment_expression "iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0)" identifier = (call_expression "(*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0)" (parenthesized_expression "(*(code *)PTR___fxstat64_00146434)" ( (pointer_expression "*(code *)PTR___fxstat64_00146434" * (cast_expression "(code *)PTR___fxstat64_00146434" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,iVar8,auStack_d0)" ( number_literal , identifier , identifier )))) ;) (if_statement "if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }" if (parenthesized_expression "(iVar9 == -1)" ( (binary_expression "iVar9 == -1" identifier == number_literal) )) (compound_statement "{\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }" { (expression_statement "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar9 = *piVar11;" (assignment_expression "iVar9 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (if_statement "if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }" { (expression_statement "iVar9 = 5;" (assignment_expression "iVar9 = 5" identifier = number_literal) ;) (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n        pcVar10 = (char *)0x0;\n      }" else (compound_statement "{\n        pcVar10 = (char *)0x0;\n      }" { (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) }) (else_clause "else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }" else (if_statement "if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }" if (parenthesized_expression "((local_b8 & 0xf000) == 0x8000)" ( (binary_expression "(local_b8 & 0xf000) == 0x8000" (parenthesized_expression "(local_b8 & 0xf000)" ( (binary_expression "local_b8 & 0xf000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }" { (if_statement "if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }" if (parenthesized_expression "((local_98 == 0) && (local_94 != -1))" ( (binary_expression "(local_98 == 0) && (local_94 != -1)" (parenthesized_expression "(local_98 == 0)" ( (binary_expression "local_98 == 0" identifier == number_literal) )) && (parenthesized_expression "(local_94 != -1)" ( (binary_expression "local_94 != -1" identifier != number_literal) ))) )) (compound_statement "{\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }" { (if_statement "if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }" if (parenthesized_expression "(local_94 == 0)" ( (binary_expression "local_94 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_free_001464fc)(iVar7);" (call_expression "(*(code *)PTR_free_001464fc)(iVar7)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7)" ( identifier ))) ;) (goto_statement "goto LAB_0010ea9c;" goto statement_identifier ;) })) (expression_statement "pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);" (assignment_expression "pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1)" identifier = (cast_expression "(char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_001463e8)(local_94 + 1)" (parenthesized_expression "(*(code *)PTR_malloc_001463e8)" ( (pointer_expression "*(code *)PTR_malloc_001463e8" * (cast_expression "(code *)PTR_malloc_001463e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_94 + 1)" ( (binary_expression "local_94 + 1" identifier + number_literal) ))))) ;) (if_statement "if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }" if (parenthesized_expression "(pcVar10 == (char *)0x0)" ( (binary_expression "pcVar10 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }" { (expression_statement "iVar9 = 0x1b;" (assignment_expression "iVar9 = 0x1b" identifier = number_literal) ;) (expression_statement "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar12 = 0x1b;" (assignment_expression "*puVar12 = 0x1b" (pointer_expression "*puVar12" * identifier) = number_literal) ;) }) (else_clause "else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }" else (compound_statement "{\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }" { (expression_statement "iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);" (assignment_expression "iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94)" identifier = (call_expression "(*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94)" (parenthesized_expression "(*(code *)PTR_read_00146534)" ( (pointer_expression "*(code *)PTR_read_00146534" * (cast_expression "(code *)PTR_read_00146534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar8,pcVar10,local_94)" ( identifier , identifier , identifier )))) ;) (if_statement "if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }" if (parenthesized_expression "(-1 < iVar9)" ( (binary_expression "-1 < iVar9" number_literal < identifier) )) (compound_statement "{\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }" { (expression_statement "(*(code *)PTR_close_0014620c)(iVar8);" (call_expression "(*(code *)PTR_close_0014620c)(iVar8)" (parenthesized_expression "(*(code *)PTR_close_0014620c)" ( (pointer_expression "*(code *)PTR_close_0014620c" * (cast_expression "(code *)PTR_close_0014620c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar8)" ( identifier ))) ;) (expression_statement "puVar2 = PTR_history_comment_char_00144f48;" (assignment_expression "puVar2 = PTR_history_comment_char_00144f48" identifier = identifier) ;) (if_statement "if (param_3 < 0) {\n              param_3 = iVar9;\n            }" if (parenthesized_expression "(param_3 < 0)" ( (binary_expression "param_3 < 0" identifier < number_literal) )) (compound_statement "{\n              param_3 = iVar9;\n            }" { (expression_statement "param_3 = iVar9;" (assignment_expression "param_3 = iVar9" identifier = identifier) ;) })) (expression_statement "pcVar17 = pcVar10 + iVar9;" (assignment_expression "pcVar17 = pcVar10 + iVar9" identifier = (binary_expression "pcVar10 + iVar9" identifier + identifier)) ;) (expression_statement "*pcVar17 = '\0';" (assignment_expression "*pcVar17 = '\0'" (pointer_expression "*pcVar17" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "cVar13 = *puVar2;" (assignment_expression "cVar13 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (if_statement "if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }" if (parenthesized_expression "((cVar13 == '\0') && (*pcVar10 == '#'))" ( (binary_expression "(cVar13 == '\0') && (*pcVar10 == '#')" (parenthesized_expression "(cVar13 == '\0')" ( (binary_expression "cVar13 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(*pcVar10 == '#')" ( (binary_expression "*pcVar10 == '#'" (pointer_expression "*pcVar10" * identifier) == (char_literal "'#'" ' character ')) ))) )) (compound_statement "{\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }" { (expression_statement "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_001461fc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_001461fc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_001461fc)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_001461fc" * (cast_expression "(code *)PTR___ctype_b_loc_001461fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }" if (parenthesized_expression "((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)" ( (binary_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0" (parenthesized_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8)" ( (binary_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8" (pointer_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2)" * (cast_expression "(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar11 + (uint)(byte)pcVar10[1] * 2)" ( (binary_expression "*piVar11 + (uint)(byte)pcVar10[1] * 2" (pointer_expression "*piVar11" * identifier) + (binary_expression "(uint)(byte)pcVar10[1] * 2" (cast_expression "(uint)(byte)pcVar10[1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)pcVar10[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pcVar10[1]" identifier [ number_literal ]))) * number_literal)) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }" { (expression_statement "cVar13 = '#';" (assignment_expression "cVar13 = '#'" identifier = (char_literal "'#'" ' character ')) ;) (expression_statement "*puVar2 = 0x23;" (assignment_expression "*puVar2 = 0x23" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (labeled_statement "LAB_0010ea18:\n                iVar9 = 1;" statement_identifier : (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;)) (if_statement "if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;" if (parenthesized_expression "(*(int *)PTR_history_write_timestamps_00144f4c == 0)" ( (binary_expression "*(int *)PTR_history_write_timestamps_00144f4c == 0" (pointer_expression "*(int *)PTR_history_write_timestamps_00144f4c" * (cast_expression "(int *)PTR_history_write_timestamps_00144f4c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (goto_statement "goto LAB_0010eb04;" goto statement_identifier ;)) (goto_statement "goto LAB_0010eb08;" goto statement_identifier ;) })) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (if_statement "if (pcVar10 < pcVar17) goto LAB_0010eb1c;" if (parenthesized_expression "(pcVar10 < pcVar17)" ( (binary_expression "pcVar10 < pcVar17" identifier < identifier) )) (goto_statement "goto LAB_0010eb1c;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)puVar3 = 0;" (assignment_expression "*(undefined4 *)puVar3 = 0" (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) }) (else_clause "else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }" else (compound_statement "{\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }" { (if_statement "if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }" if (parenthesized_expression "(cVar13 == *pcVar10)" ( (binary_expression "cVar13 == *pcVar10" identifier == (pointer_expression "*pcVar10" * identifier)) )) (compound_statement "{\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }" { (expression_statement "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_001461fc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_001461fc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_001461fc)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_001461fc" * (cast_expression "(code *)PTR___ctype_b_loc_001461fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (if_statement "if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;" if (parenthesized_expression "((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)" ( (binary_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0" (parenthesized_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8)" ( (binary_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8" (pointer_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2)" * (cast_expression "(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar11 + (uint)(byte)pcVar10[1] * 2)" ( (binary_expression "*piVar11 + (uint)(byte)pcVar10[1] * 2" (pointer_expression "*piVar11" * identifier) + (binary_expression "(uint)(byte)pcVar10[1] * 2" (cast_expression "(uint)(byte)pcVar10[1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)pcVar10[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pcVar10[1]" identifier [ number_literal ]))) * number_literal)) )))) & number_literal) )) != number_literal) )) (goto_statement "goto LAB_0010ea18;" goto statement_identifier ;)) }) (else_clause "else {\n                bVar1 = false;\n              }" else (compound_statement "{\n                bVar1 = false;\n              }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) }))) (labeled_statement "LAB_0010eb04:\n              iVar9 = 0;" statement_identifier : (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;)) (labeled_statement "LAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;" statement_identifier : (expression_statement "*(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;" (assignment_expression "*(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9" (pointer_expression "*(int *)PTR_history_multiline_entries_001461b0" * (cast_expression "(int *)PTR_history_multiline_entries_001461b0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(int *)PTR_history_multiline_entries_001461b0 + iVar9" (pointer_expression "*(int *)PTR_history_multiline_entries_001461b0" * (cast_expression "(int *)PTR_history_multiline_entries_001461b0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier)) ;)) (if_statement "if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }" if (parenthesized_expression "(pcVar10 < pcVar17)" ( (binary_expression "pcVar10 < pcVar17" identifier < identifier) )) (compound_statement "{\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }" { (labeled_statement "LAB_0010eb1c:\n                iVar9 = 0;" statement_identifier : (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;)) (expression_statement "pcVar14 = pcVar10;" (assignment_expression "pcVar14 = pcVar10" identifier = identifier) ;) (expression_statement "pcVar15 = pcVar10;" (assignment_expression "pcVar15 = pcVar10" identifier = identifier) ;) (if_statement "if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }" { (do_statement "do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));" do (compound_statement "{\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  }" { (expression_statement "pcVar16 = pcVar15 + 1;" (assignment_expression "pcVar16 = pcVar15 + 1" identifier = (binary_expression "pcVar15 + 1" identifier + number_literal)) ;) (if_statement "if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }" if (parenthesized_expression "((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0))))" ( (binary_expression "(*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))" (parenthesized_expression "(*pcVar15 == '\n')" ( (binary_expression "*pcVar15 == '\n'" (pointer_expression "*pcVar15" * identifier) == (char_literal "'\n'" ' escape_sequence ')) )) && (parenthesized_expression "((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))" ( (parenthesized_expression "(pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0))" ( (comma_expression "pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)" (assignment_expression "pcVar14 = pcVar16" identifier = identifier) , (binary_expression "*pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)" (binary_expression "*pcVar16 != cVar13" (pointer_expression "*pcVar16" * identifier) != identifier) || (parenthesized_expression "(piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)" ( (comma_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0" (assignment_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_001461fc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_001461fc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_001461fc)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_001461fc" * (cast_expression "(code *)PTR___ctype_b_loc_001461fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0" (parenthesized_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8)" ( (binary_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8" (pointer_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2)" * (cast_expression "(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar11 + (uint)(byte)pcVar15[2] * 2)" ( (binary_expression "*piVar11 + (uint)(byte)pcVar15[2] * 2" (pointer_expression "*piVar11" * identifier) + (binary_expression "(uint)(byte)pcVar15[2] * 2" (cast_expression "(uint)(byte)pcVar15[2]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)pcVar15[2]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pcVar15[2]" identifier [ number_literal ]))) * number_literal)) )))) & number_literal) )) == number_literal)) )))) )) ))) )) (compound_statement "{\n                      iVar9 = iVar9 + 1;\n                    }" { (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) })) }) while (parenthesized_expression "((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2))" ( (binary_expression "(pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2)" (parenthesized_expression "(pcVar17 != pcVar16)" ( (binary_expression "pcVar17 != pcVar16" identifier != identifier) )) && (parenthesized_expression "(pcVar15 = pcVar16, iVar9 < param_2)" ( (comma_expression "pcVar15 = pcVar16, iVar9 < param_2" (assignment_expression "pcVar15 = pcVar16" identifier = identifier) , (binary_expression "iVar9 < param_2" identifier < identifier)) ))) )) ;) (if_statement "if (pcVar17 <= pcVar14) goto LAB_0010ed48;" if (parenthesized_expression "(pcVar17 <= pcVar14)" ( (binary_expression "pcVar17 <= pcVar14" identifier <= identifier) )) (goto_statement "goto LAB_0010ed48;" goto statement_identifier ;)) })) (expression_statement "puVar5 = PTR_history_multiline_entries_001461b0;" (assignment_expression "puVar5 = PTR_history_multiline_entries_001461b0" identifier = identifier) ;) (expression_statement "puVar4 = PTR_history_length_001454d0;" (assignment_expression "puVar4 = PTR_history_length_001454d0" identifier = identifier) ;) (expression_statement "local_ec = (char *)0x0;" (assignment_expression "local_ec = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar15 = pcVar14;" (assignment_expression "pcVar15 = pcVar14" identifier = identifier) ;) (do_statement "do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);" do (compound_statement "{\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                }" { (expression_statement "pcVar16 = pcVar15 + 1;" (assignment_expression "pcVar16 = pcVar15 + 1" identifier = (binary_expression "pcVar15 + 1" identifier + number_literal)) ;) (if_statement "if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }" if (parenthesized_expression "(*pcVar15 == '\n')" ( (binary_expression "*pcVar15 == '\n'" (pointer_expression "*pcVar15" * identifier) == (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }" { (if_statement "if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }" if (parenthesized_expression "((pcVar14 < pcVar15) && (pcVar15[-1] == '\r'))" ( (binary_expression "(pcVar14 < pcVar15) && (pcVar15[-1] == '\r')" (parenthesized_expression "(pcVar14 < pcVar15)" ( (binary_expression "pcVar14 < pcVar15" identifier < identifier) )) && (parenthesized_expression "(pcVar15[-1] == '\r')" ( (binary_expression "pcVar15[-1] == '\r'" (subscript_expression "pcVar15[-1]" identifier [ number_literal ]) == (char_literal "'\r'" ' escape_sequence ')) ))) )) (compound_statement "{\n                      pcVar15[-1] = '\0';\n                    }" { (expression_statement "pcVar15[-1] = '\0';" (assignment_expression "pcVar15[-1] = '\0'" (subscript_expression "pcVar15[-1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n                      *pcVar15 = '\0';\n                    }" else (compound_statement "{\n                      *pcVar15 = '\0';\n                    }" { (expression_statement "*pcVar15 = '\0';" (assignment_expression "*pcVar15 = '\0'" (pointer_expression "*pcVar15" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (if_statement "if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }" if (parenthesized_expression "(*pcVar14 == '\0')" ( (binary_expression "*pcVar14 == '\0'" (pointer_expression "*pcVar14" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }" { (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "pcVar14 = local_ec;" (assignment_expression "pcVar14 = local_ec" identifier = identifier) ;) }) (else_clause "else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }" else (if_statement "if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }" if (parenthesized_expression "((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0))" ( (binary_expression "(*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)" (parenthesized_expression "(*puVar2 != *pcVar14)" ( (binary_expression "*puVar2 != *pcVar14" (pointer_expression "*puVar2" * identifier) != (pointer_expression "*pcVar14" * identifier)) )) || (parenthesized_expression "(piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)" ( (comma_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0" (assignment_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_001461fc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_001461fc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_001461fc)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_001461fc" * (cast_expression "(code *)PTR___ctype_b_loc_001461fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0" (parenthesized_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8)" ( (binary_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8" (pointer_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2)" * (cast_expression "(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar11 + (uint)(byte)pcVar14[1] * 2)" ( (binary_expression "*piVar11 + (uint)(byte)pcVar14[1] * 2" (pointer_expression "*piVar11" * identifier) + (binary_expression "(uint)(byte)pcVar14[1] * 2" (cast_expression "(uint)(byte)pcVar14[1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)pcVar14[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pcVar14[1]" identifier [ number_literal ]))) * number_literal)) )))) & number_literal) )) == number_literal)) ))) )) (compound_statement "{\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }" { (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (if_statement "if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }" if (parenthesized_expression "(local_ec == (char *)0x0)" ( (binary_expression "local_ec == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }" { (if_statement "if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }" if (parenthesized_expression "((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0))" ( (binary_expression "(*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)" (parenthesized_expression "(*(int *)puVar4 < 1)" ( (binary_expression "*(int *)puVar4 < 1" (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) < number_literal) )) || (parenthesized_expression "(*(int *)puVar5 == 0)" ( (binary_expression "*(int *)puVar5 == 0" (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) ))) )) (compound_statement "{\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }" { (expression_statement "add_history(pcVar14);" (call_expression "add_history(pcVar14)" identifier (argument_list "(pcVar14)" ( identifier ))) ;) (expression_statement "pcVar14 = local_ec;" (assignment_expression "pcVar14 = local_ec" identifier = identifier) ;) }) (else_clause "else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }" else (compound_statement "{\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }" { (expression_statement "_hs_append_history_line(*(int *)puVar4 + -1);" (call_expression "_hs_append_history_line(*(int *)puVar4 + -1)" identifier (argument_list "(*(int *)puVar4 + -1)" ( (binary_expression "*(int *)puVar4 + -1" (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))) ;) (expression_statement "pcVar14 = local_ec;" (assignment_expression "pcVar14 = local_ec" identifier = identifier) ;) }))) }) (else_clause "else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }" else (compound_statement "{\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }" { (expression_statement "add_history(pcVar14);" (call_expression "add_history(pcVar14)" identifier (argument_list "(pcVar14)" ( identifier ))) ;) (expression_statement "add_history_time(local_ec);" (call_expression "add_history_time(local_ec)" identifier (argument_list "(local_ec)" ( identifier ))) ;) (expression_statement "local_ec = (char *)0x0;" (assignment_expression "local_ec = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar14 = local_ec;" (assignment_expression "pcVar14 = local_ec" identifier = identifier) ;) }))) })))) (expression_statement "local_ec = pcVar14;" (assignment_expression "local_ec = pcVar14" identifier = identifier) ;) (expression_statement "pcVar14 = pcVar16;" (assignment_expression "pcVar14 = pcVar16" identifier = identifier) ;) (if_statement "if (param_3 <= iVar9) break;" if (parenthesized_expression "(param_3 <= iVar9)" ( (binary_expression "param_3 <= iVar9" identifier <= identifier) )) (break_statement "break;" break ;)) })) (expression_statement "pcVar15 = pcVar16;" (assignment_expression "pcVar15 = pcVar16" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar16 < pcVar17)" ( (binary_expression "pcVar16 < pcVar17" identifier < identifier) )) ;) }) (else_clause "else {\n                iVar9 = 0;\n              }" else (compound_statement "{\n                iVar9 = 0;\n              }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) }))) (labeled_statement "LAB_0010ed48:\n              *(int *)puVar3 = iVar9;" statement_identifier : (expression_statement "*(int *)puVar3 = iVar9;" (assignment_expression "*(int *)puVar3 = iVar9" (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;)) (if_statement "if (bVar1) {\n                *puVar2 = 0;\n              }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n                *puVar2 = 0;\n              }" { (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) })) }))) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_free_001464fc)(iVar7);" (call_expression "(*(code *)PTR_free_001464fc)(iVar7)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_free_001464fc)(pcVar10);" (call_expression "(*(code *)PTR_free_001464fc)(pcVar10)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar10)" ( identifier ))) ;) (goto_statement "goto LAB_0010ea9c;" goto statement_identifier ;) })) (expression_statement "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar9 = *piVar11;" (assignment_expression "iVar9 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (if_statement "if (iVar9 == 0) {\n            iVar9 = 5;\n          }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar9 = 5;\n          }" { (expression_statement "iVar9 = 5;" (assignment_expression "iVar9 = 5" identifier = number_literal) ;) })) }))) }) (else_clause "else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }" else (compound_statement "{\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }" { (expression_statement "iVar9 = 0x1b;" (assignment_expression "iVar9 = 0x1b" identifier = number_literal) ;) (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar12 = 0x1b;" (assignment_expression "*puVar12 = 0x1b" (pointer_expression "*puVar12" * identifier) = number_literal) ;) }))) }) (else_clause "else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }" else (compound_statement "{\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }" { (expression_statement "iVar9 = 0x16;" (assignment_expression "iVar9 = 0x16" identifier = number_literal) ;) (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar12 = 0x16;" (assignment_expression "*puVar12 = 0x16" (pointer_expression "*puVar12" * identifier) = number_literal) ;) }))))) (expression_statement "(*(code *)PTR_close_0014620c)(iVar8);" (call_expression "(*(code *)PTR_close_0014620c)(iVar8)" (parenthesized_expression "(*(code *)PTR_close_0014620c)" ( (pointer_expression "*(code *)PTR_close_0014620c" * (cast_expression "(code *)PTR_close_0014620c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar8)" ( identifier ))) ;) }))) (expression_statement "(*(code *)PTR_free_001464fc)(iVar7);" (call_expression "(*(code *)PTR_free_001464fc)(iVar7)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7)" ( identifier ))) ;) (if_statement "if (pcVar10 != (char *)0x0) {\n    (*(code *)PTR_free_001464fc)(pcVar10);\n  }" if (parenthesized_expression "(pcVar10 != (char *)0x0)" ( (binary_expression "pcVar10 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_free_001464fc)(pcVar10);\n  }" { (expression_statement "(*(code *)PTR_free_001464fc)(pcVar10);" (call_expression "(*(code *)PTR_free_001464fc)(pcVar10)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar10)" ( identifier ))) ;) })) (labeled_statement "LAB_0010ea9c:\n  if (local_2c != *(int *)puVar6) {\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar7 = read_history_range();\n    return iVar7;\n  }" statement_identifier : (if_statement "if (local_2c != *(int *)puVar6) {\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar7 = read_history_range();\n    return iVar7;\n  }" if (parenthesized_expression "(local_2c != *(int *)puVar6)" ( (binary_expression "local_2c != *(int *)puVar6" identifier != (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar7 = read_history_range();\n    return iVar7;\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_00146488)();" (call_expression "(*(code *)PTR___stack_chk_fail_00146488)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00146488)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00146488" * (cast_expression "(code *)PTR___stack_chk_fail_00146488" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar7 = read_history_range();" (assignment_expression "iVar7 = read_history_range()" identifier = (call_expression "read_history_range()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar7;" return identifier ;) }))) (return_statement "return iVar9;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE 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 IDENT ;) (declaration TYPE 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 (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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 = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (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 = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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 = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }))) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (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) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (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) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) ))) )) (compound_statement { (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 ( ))))) ;) (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) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) * LIT)) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) )) (compound_statement { (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 = BOOL) ;) (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) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) * LIT)) )))) & LIT) )) != LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + IDENT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (binary_expression (pointer_expression * IDENT) != IDENT) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) , (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) * LIT)) )))) & LIT) )) == LIT)) )))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT < IDENT)) ))) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (pointer_expression * IDENT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) , (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) * LIT)) )))) & LIT) )) == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) < LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (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 = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (break_statement break ;)) })) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;)) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) }))) (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 ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression 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 = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (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 *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (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 *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) }))) (return_statement return IDENT ;) })))
(function_definition "int read_history_range(undefined4 param_1,int param_2,int param_3)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  char *pcVar10;\n  int *piVar11;\n  undefined4 *puVar12;\n  char cVar13;\n  char *pcVar14;\n  char *pcVar15;\n  char *pcVar16;\n  char *pcVar17;\n  char *local_ec;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_98;\n  int local_94;\n  int local_2c;\n  \n  puVar6 = PTR___stack_chk_guard_001464dc;\n  puVar3 = PTR_history_lines_read_from_file_001454a8;\n  *(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0;\n  local_2c = *(int *)puVar6;\n  iVar7 = FUN_0010e214();\n  if (iVar7 == 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n    }\n    goto LAB_0010ea9c;\n  }\n  iVar8 = (*(code *)PTR_open64_00146378)(iVar7,0,0x1b6);\n  if (iVar8 < 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(iVar7);\n      goto LAB_0010ea9c;\n    }\n    pcVar10 = (char *)0x0;\n  }\n  else {\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }\n  (*(code *)PTR_free_001464fc)(iVar7);\n  if (pcVar10 != (char *)0x0) {\n    (*(code *)PTR_free_001464fc)(pcVar10);\n  }\nLAB_0010ea9c:\n  if (local_2c != *(int *)puVar6) {\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar7 = read_history_range();\n    return iVar7;\n  }\n  return iVar9;\n}" (primitive_type "int") (function_declarator "read_history_range(undefined4 param_1,int param_2,int param_3)" (identifier "read_history_range") (parameter_list "(undefined4 param_1,int param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  char *pcVar10;\n  int *piVar11;\n  undefined4 *puVar12;\n  char cVar13;\n  char *pcVar14;\n  char *pcVar15;\n  char *pcVar16;\n  char *pcVar17;\n  char *local_ec;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_98;\n  int local_94;\n  int local_2c;\n  \n  puVar6 = PTR___stack_chk_guard_001464dc;\n  puVar3 = PTR_history_lines_read_from_file_001454a8;\n  *(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0;\n  local_2c = *(int *)puVar6;\n  iVar7 = FUN_0010e214();\n  if (iVar7 == 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n    }\n    goto LAB_0010ea9c;\n  }\n  iVar8 = (*(code *)PTR_open64_00146378)(iVar7,0,0x1b6);\n  if (iVar8 < 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(iVar7);\n      goto LAB_0010ea9c;\n    }\n    pcVar10 = (char *)0x0;\n  }\n  else {\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }\n  (*(code *)PTR_free_001464fc)(iVar7);\n  if (pcVar10 != (char *)0x0) {\n    (*(code *)PTR_free_001464fc)(pcVar10);\n  }\nLAB_0010ea9c:\n  if (local_2c != *(int *)puVar6) {\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar7 = read_history_range();\n    return iVar7;\n  }\n  return iVar9;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "char *pcVar10;" (primitive_type "char") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "int *piVar11;" (primitive_type "int") (pointer_declarator "*piVar11" (* "*") (identifier "piVar11")) (; ";")) (declaration "undefined4 *puVar12;" (type_identifier "undefined4") (pointer_declarator "*puVar12" (* "*") (identifier "puVar12")) (; ";")) (declaration "char cVar13;" (primitive_type "char") (identifier "cVar13") (; ";")) (declaration "char *pcVar14;" (primitive_type "char") (pointer_declarator "*pcVar14" (* "*") (identifier "pcVar14")) (; ";")) (declaration "char *pcVar15;" (primitive_type "char") (pointer_declarator "*pcVar15" (* "*") (identifier "pcVar15")) (; ";")) (declaration "char *pcVar16;" (primitive_type "char") (pointer_declarator "*pcVar16" (* "*") (identifier "pcVar16")) (; ";")) (declaration "char *pcVar17;" (primitive_type "char") (pointer_declarator "*pcVar17" (* "*") (identifier "pcVar17")) (; ";")) (declaration "char *local_ec;" (primitive_type "char") (pointer_declarator "*local_ec" (* "*") (identifier "local_ec")) (; ";")) (declaration "undefined1 auStack_d0 [24];" (type_identifier "undefined1") (array_declarator "auStack_d0 [24]" (identifier "auStack_d0") ([ "[") (number_literal "24") (] "]")) (; ";")) (declaration "uint local_b8;" (type_identifier "uint") (identifier "local_b8") (; ";")) (declaration "int local_98;" (primitive_type "int") (identifier "local_98") (; ";")) (declaration "int local_94;" (primitive_type "int") (identifier "local_94") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar6 = PTR___stack_chk_guard_001464dc;" (assignment_expression "puVar6 = PTR___stack_chk_guard_001464dc" (identifier "puVar6") (= "=") (identifier "PTR___stack_chk_guard_001464dc")) (; ";")) (expression_statement "puVar3 = PTR_history_lines_read_from_file_001454a8;" (assignment_expression "puVar3 = PTR_history_lines_read_from_file_001454a8" (identifier "puVar3") (= "=") (identifier "PTR_history_lines_read_from_file_001454a8")) (; ";")) (expression_statement "*(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0;" (assignment_expression "*(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0" (pointer_expression "*(undefined4 *)PTR_history_lines_read_from_file_001454a8" (* "*") (cast_expression "(undefined4 *)PTR_history_lines_read_from_file_001454a8" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_history_lines_read_from_file_001454a8"))) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c = *(int *)puVar6;" (assignment_expression "local_2c = *(int *)puVar6" (identifier "local_2c") (= "=") (pointer_expression "*(int *)puVar6" (* "*") (cast_expression "(int *)puVar6" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar6")))) (; ";")) (expression_statement "iVar7 = FUN_0010e214();" (assignment_expression "iVar7 = FUN_0010e214()" (identifier "iVar7") (= "=") (call_expression "FUN_0010e214()" (identifier "FUN_0010e214") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar7 == 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n    }\n    goto LAB_0010ea9c;\n  }" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n    }\n    goto LAB_0010ea9c;\n  }" ({ "{") (expression_statement "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)()" (identifier "piVar11") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_0014633c)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0014633c" (* "*") (cast_expression "(code *)PTR___errno_location_0014633c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0014633c"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar9 = *piVar11;" (assignment_expression "iVar9 = *piVar11" (identifier "iVar9") (= "=") (pointer_expression "*piVar11" (* "*") (identifier "piVar11"))) (; ";")) (if_statement "if (iVar9 == 0) {\n      iVar9 = 5;\n    }" (if "if") (parenthesized_expression "(iVar9 == 0)" (( "(") (binary_expression "iVar9 == 0" (identifier "iVar9") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar9 = 5;\n    }" ({ "{") (expression_statement "iVar9 = 5;" (assignment_expression "iVar9 = 5" (identifier "iVar9") (= "=") (number_literal "5")) (; ";")) (} "}"))) (goto_statement "goto LAB_0010ea9c;" (goto "goto") (statement_identifier "LAB_0010ea9c") (; ";")) (} "}"))) (expression_statement "iVar8 = (*(code *)PTR_open64_00146378)(iVar7,0,0x1b6);" (assignment_expression "iVar8 = (*(code *)PTR_open64_00146378)(iVar7,0,0x1b6)" (identifier "iVar8") (= "=") (call_expression "(*(code *)PTR_open64_00146378)(iVar7,0,0x1b6)" (parenthesized_expression "(*(code *)PTR_open64_00146378)" (( "(") (pointer_expression "*(code *)PTR_open64_00146378" (* "*") (cast_expression "(code *)PTR_open64_00146378" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_open64_00146378"))) () ")")) (argument_list "(iVar7,0,0x1b6)" (( "(") (identifier "iVar7") (, ",") (number_literal "0") (, ",") (number_literal "0x1b6") () ")")))) (; ";")) (if_statement "if (iVar8 < 0) {\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(iVar7);\n      goto LAB_0010ea9c;\n    }\n    pcVar10 = (char *)0x0;\n  }\n  else {\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }" (if "if") (parenthesized_expression "(iVar8 < 0)" (( "(") (binary_expression "iVar8 < 0" (identifier "iVar8") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n    iVar9 = *piVar11;\n    if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(iVar7);\n      goto LAB_0010ea9c;\n    }\n    pcVar10 = (char *)0x0;\n  }" ({ "{") (expression_statement "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)()" (identifier "piVar11") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_0014633c)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0014633c" (* "*") (cast_expression "(code *)PTR___errno_location_0014633c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0014633c"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar9 = *piVar11;" (assignment_expression "iVar9 = *piVar11" (identifier "iVar9") (= "=") (pointer_expression "*piVar11" (* "*") (identifier "piVar11"))) (; ";")) (if_statement "if (iVar9 == 0) {\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(iVar7);\n      goto LAB_0010ea9c;\n    }" (if "if") (parenthesized_expression "(iVar9 == 0)" (( "(") (binary_expression "iVar9 == 0" (identifier "iVar9") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar9 = 5;\n      (*(code *)PTR_free_001464fc)(iVar7);\n      goto LAB_0010ea9c;\n    }" ({ "{") (expression_statement "iVar9 = 5;" (assignment_expression "iVar9 = 5" (identifier "iVar9") (= "=") (number_literal "5")) (; ";")) (expression_statement "(*(code *)PTR_free_001464fc)(iVar7);" (call_expression "(*(code *)PTR_free_001464fc)(iVar7)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" (( "(") (pointer_expression "*(code *)PTR_free_001464fc" (* "*") (cast_expression "(code *)PTR_free_001464fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_001464fc"))) () ")")) (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")"))) (; ";")) (goto_statement "goto LAB_0010ea9c;" (goto "goto") (statement_identifier "LAB_0010ea9c") (; ";")) (} "}"))) (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" (identifier "pcVar10") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }" (else "else") (compound_statement "{\n    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);\n    if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }\n    (*(code *)PTR_close_0014620c)(iVar8);\n  }" ({ "{") (expression_statement "iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);" (assignment_expression "iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0)" (identifier "iVar9") (= "=") (call_expression "(*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0)" (parenthesized_expression "(*(code *)PTR___fxstat64_00146434)" (( "(") (pointer_expression "*(code *)PTR___fxstat64_00146434" (* "*") (cast_expression "(code *)PTR___fxstat64_00146434" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fxstat64_00146434"))) () ")")) (argument_list "(3,iVar8,auStack_d0)" (( "(") (number_literal "3") (, ",") (identifier "iVar8") (, ",") (identifier "auStack_d0") () ")")))) (; ";")) (if_statement "if (iVar9 == -1) {\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }\n    else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }" (if "if") (parenthesized_expression "(iVar9 == -1)" (( "(") (binary_expression "iVar9 == -1" (identifier "iVar9") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n      iVar9 = *piVar11;\n      if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }\n    }" ({ "{") (expression_statement "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)()" (identifier "piVar11") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_0014633c)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0014633c" (* "*") (cast_expression "(code *)PTR___errno_location_0014633c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0014633c"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar9 = *piVar11;" (assignment_expression "iVar9 = *piVar11" (identifier "iVar9") (= "=") (pointer_expression "*piVar11" (* "*") (identifier "piVar11"))) (; ";")) (if_statement "if (iVar9 == 0) {\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }\n      else {\n        pcVar10 = (char *)0x0;\n      }" (if "if") (parenthesized_expression "(iVar9 == 0)" (( "(") (binary_expression "iVar9 == 0" (identifier "iVar9") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar9 = 5;\n        pcVar10 = (char *)0x0;\n      }" ({ "{") (expression_statement "iVar9 = 5;" (assignment_expression "iVar9 = 5" (identifier "iVar9") (= "=") (number_literal "5")) (; ";")) (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" (identifier "pcVar10") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n        pcVar10 = (char *)0x0;\n      }" (else "else") (compound_statement "{\n        pcVar10 = (char *)0x0;\n      }" ({ "{") (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" (identifier "pcVar10") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")))) (} "}")) (else_clause "else if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }" (else "else") (if_statement "if ((local_b8 & 0xf000) == 0x8000) {\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }\n    else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }" (if "if") (parenthesized_expression "((local_b8 & 0xf000) == 0x8000)" (( "(") (binary_expression "(local_b8 & 0xf000) == 0x8000" (parenthesized_expression "(local_b8 & 0xf000)" (( "(") (binary_expression "local_b8 & 0xf000" (identifier "local_b8") (& "&") (number_literal "0xf000")) () ")")) (== "==") (number_literal "0x8000")) () ")")) (compound_statement "{\n      if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }\n    }" ({ "{") (if_statement "if ((local_98 == 0) && (local_94 != -1)) {\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }\n      else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }" (if "if") (parenthesized_expression "((local_98 == 0) && (local_94 != -1))" (( "(") (binary_expression "(local_98 == 0) && (local_94 != -1)" (parenthesized_expression "(local_98 == 0)" (( "(") (binary_expression "local_98 == 0" (identifier "local_98") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(local_94 != -1)" (( "(") (binary_expression "local_94 != -1" (identifier "local_94") (!= "!=") (number_literal "-1")) () ")"))) () ")")) (compound_statement "{\n        if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }\n        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);\n        if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }\n      }" ({ "{") (if_statement "if (local_94 == 0) {\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }" (if "if") (parenthesized_expression "(local_94 == 0)" (( "(") (binary_expression "local_94 == 0" (identifier "local_94") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          iVar9 = 0;\n          (*(code *)PTR_free_001464fc)(iVar7);\n          goto LAB_0010ea9c;\n        }" ({ "{") (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)PTR_free_001464fc)(iVar7);" (call_expression "(*(code *)PTR_free_001464fc)(iVar7)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" (( "(") (pointer_expression "*(code *)PTR_free_001464fc" (* "*") (cast_expression "(code *)PTR_free_001464fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_001464fc"))) () ")")) (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")"))) (; ";")) (goto_statement "goto LAB_0010ea9c;" (goto "goto") (statement_identifier "LAB_0010ea9c") (; ";")) (} "}"))) (expression_statement "pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);" (assignment_expression "pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1)" (identifier "pcVar10") (= "=") (cast_expression "(char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_malloc_001463e8)(local_94 + 1)" (parenthesized_expression "(*(code *)PTR_malloc_001463e8)" (( "(") (pointer_expression "*(code *)PTR_malloc_001463e8" (* "*") (cast_expression "(code *)PTR_malloc_001463e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_001463e8"))) () ")")) (argument_list "(local_94 + 1)" (( "(") (binary_expression "local_94 + 1" (identifier "local_94") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (if_statement "if (pcVar10 == (char *)0x0) {\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }\n        else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }" (if "if") (parenthesized_expression "(pcVar10 == (char *)0x0)" (( "(") (binary_expression "pcVar10 == (char *)0x0" (identifier "pcVar10") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          iVar9 = 0x1b;\n          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n          *puVar12 = 0x1b;\n        }" ({ "{") (expression_statement "iVar9 = 0x1b;" (assignment_expression "iVar9 = 0x1b" (identifier "iVar9") (= "=") (number_literal "0x1b")) (; ";")) (expression_statement "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)()" (identifier "puVar12") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0014633c)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0014633c" (* "*") (cast_expression "(code *)PTR___errno_location_0014633c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0014633c"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar12 = 0x1b;" (assignment_expression "*puVar12 = 0x1b" (pointer_expression "*puVar12" (* "*") (identifier "puVar12")) (= "=") (number_literal "0x1b")) (; ";")) (} "}")) (else_clause "else {\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }" (else "else") (compound_statement "{\n          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);\n          if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }\n          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();\n          iVar9 = *piVar11;\n          if (iVar9 == 0) {\n            iVar9 = 5;\n          }\n        }" ({ "{") (expression_statement "iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);" (assignment_expression "iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94)" (identifier "iVar9") (= "=") (call_expression "(*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94)" (parenthesized_expression "(*(code *)PTR_read_00146534)" (( "(") (pointer_expression "*(code *)PTR_read_00146534" (* "*") (cast_expression "(code *)PTR_read_00146534" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_read_00146534"))) () ")")) (argument_list "(iVar8,pcVar10,local_94)" (( "(") (identifier "iVar8") (, ",") (identifier "pcVar10") (, ",") (identifier "local_94") () ")")))) (; ";")) (if_statement "if (-1 < iVar9) {\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }" (if "if") (parenthesized_expression "(-1 < iVar9)" (( "(") (binary_expression "-1 < iVar9" (number_literal "-1") (< "<") (identifier "iVar9")) () ")")) (compound_statement "{\n            (*(code *)PTR_close_0014620c)(iVar8);\n            puVar2 = PTR_history_comment_char_00144f48;\n            if (param_3 < 0) {\n              param_3 = iVar9;\n            }\n            pcVar17 = pcVar10 + iVar9;\n            *pcVar17 = '\0';\n            cVar13 = *puVar2;\n            if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }\n            iVar9 = 0;\n            (*(code *)PTR_free_001464fc)(iVar7);\n            (*(code *)PTR_free_001464fc)(pcVar10);\n            goto LAB_0010ea9c;\n          }" ({ "{") (expression_statement "(*(code *)PTR_close_0014620c)(iVar8);" (call_expression "(*(code *)PTR_close_0014620c)(iVar8)" (parenthesized_expression "(*(code *)PTR_close_0014620c)" (( "(") (pointer_expression "*(code *)PTR_close_0014620c" (* "*") (cast_expression "(code *)PTR_close_0014620c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_0014620c"))) () ")")) (argument_list "(iVar8)" (( "(") (identifier "iVar8") () ")"))) (; ";")) (expression_statement "puVar2 = PTR_history_comment_char_00144f48;" (assignment_expression "puVar2 = PTR_history_comment_char_00144f48" (identifier "puVar2") (= "=") (identifier "PTR_history_comment_char_00144f48")) (; ";")) (if_statement "if (param_3 < 0) {\n              param_3 = iVar9;\n            }" (if "if") (parenthesized_expression "(param_3 < 0)" (( "(") (binary_expression "param_3 < 0" (identifier "param_3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n              param_3 = iVar9;\n            }" ({ "{") (expression_statement "param_3 = iVar9;" (assignment_expression "param_3 = iVar9" (identifier "param_3") (= "=") (identifier "iVar9")) (; ";")) (} "}"))) (expression_statement "pcVar17 = pcVar10 + iVar9;" (assignment_expression "pcVar17 = pcVar10 + iVar9" (identifier "pcVar17") (= "=") (binary_expression "pcVar10 + iVar9" (identifier "pcVar10") (+ "+") (identifier "iVar9"))) (; ";")) (expression_statement "*pcVar17 = '\0';" (assignment_expression "*pcVar17 = '\0'" (pointer_expression "*pcVar17" (* "*") (identifier "pcVar17")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "cVar13 = *puVar2;" (assignment_expression "cVar13 = *puVar2" (identifier "cVar13") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (if_statement "if ((cVar13 == '\0') && (*pcVar10 == '#')) {\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }\n            else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }" (if "if") (parenthesized_expression "((cVar13 == '\0') && (*pcVar10 == '#'))" (( "(") (binary_expression "(cVar13 == '\0') && (*pcVar10 == '#')" (parenthesized_expression "(cVar13 == '\0')" (( "(") (binary_expression "cVar13 == '\0'" (identifier "cVar13") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(*pcVar10 == '#')" (( "(") (binary_expression "*pcVar10 == '#'" (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) (== "==") (char_literal "'#'" (' "'") (character "#") (' "'"))) () ")"))) () ")")) (compound_statement "{\n              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }\n              bVar1 = false;\n              if (pcVar10 < pcVar17) goto LAB_0010eb1c;\n              *(undefined4 *)puVar3 = 0;\n            }" ({ "{") (expression_statement "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)()" (identifier "piVar11") (= "=") (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_001461fc)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___ctype_b_loc_001461fc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_001461fc)" (( "(") (pointer_expression "*(code *)PTR___ctype_b_loc_001461fc" (* "*") (cast_expression "(code *)PTR___ctype_b_loc_001461fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___ctype_b_loc_001461fc"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }" (if "if") (parenthesized_expression "((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)" (( "(") (binary_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0" (parenthesized_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8)" (( "(") (binary_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8" (pointer_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2)" (* "*") (cast_expression "(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar11 + (uint)(byte)pcVar10[1] * 2)" (( "(") (binary_expression "*piVar11 + (uint)(byte)pcVar10[1] * 2" (pointer_expression "*piVar11" (* "*") (identifier "piVar11")) (+ "+") (binary_expression "(uint)(byte)pcVar10[1] * 2" (cast_expression "(uint)(byte)pcVar10[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)pcVar10[1]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "pcVar10[1]" (identifier "pcVar10") ([ "[") (number_literal "1") (] "]")))) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                cVar13 = '#';\n                *puVar2 = 0x23;\n                bVar1 = true;\nLAB_0010ea18:\n                iVar9 = 1;\n                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;\n                goto LAB_0010eb08;\n              }" ({ "{") (expression_statement "cVar13 = '#';" (assignment_expression "cVar13 = '#'" (identifier "cVar13") (= "=") (char_literal "'#'" (' "'") (character "#") (' "'"))) (; ";")) (expression_statement "*puVar2 = 0x23;" (assignment_expression "*puVar2 = 0x23" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0x23")) (; ";")) (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" (identifier "bVar1") (= "=") (true "true")) (; ";")) (labeled_statement "LAB_0010ea18:\n                iVar9 = 1;" (statement_identifier "LAB_0010ea18") (: ":") (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" (identifier "iVar9") (= "=") (number_literal "1")) (; ";"))) (if_statement "if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;" (if "if") (parenthesized_expression "(*(int *)PTR_history_write_timestamps_00144f4c == 0)" (( "(") (binary_expression "*(int *)PTR_history_write_timestamps_00144f4c == 0" (pointer_expression "*(int *)PTR_history_write_timestamps_00144f4c" (* "*") (cast_expression "(int *)PTR_history_write_timestamps_00144f4c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_history_write_timestamps_00144f4c"))) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0010eb04;" (goto "goto") (statement_identifier "LAB_0010eb04") (; ";"))) (goto_statement "goto LAB_0010eb08;" (goto "goto") (statement_identifier "LAB_0010eb08") (; ";")) (} "}"))) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" (identifier "bVar1") (= "=") (false "false")) (; ";")) (if_statement "if (pcVar10 < pcVar17) goto LAB_0010eb1c;" (if "if") (parenthesized_expression "(pcVar10 < pcVar17)" (( "(") (binary_expression "pcVar10 < pcVar17" (identifier "pcVar10") (< "<") (identifier "pcVar17")) () ")")) (goto_statement "goto LAB_0010eb1c;" (goto "goto") (statement_identifier "LAB_0010eb1c") (; ";"))) (expression_statement "*(undefined4 *)puVar3 = 0;" (assignment_expression "*(undefined4 *)puVar3 = 0" (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }" (else "else") (compound_statement "{\n              if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }\nLAB_0010eb04:\n              iVar9 = 0;\nLAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;\n              if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }\nLAB_0010ed48:\n              *(int *)puVar3 = iVar9;\n              if (bVar1) {\n                *puVar2 = 0;\n              }\n            }" ({ "{") (if_statement "if (cVar13 == *pcVar10) {\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }\n              else {\n                bVar1 = false;\n              }" (if "if") (parenthesized_expression "(cVar13 == *pcVar10)" (( "(") (binary_expression "cVar13 == *pcVar10" (identifier "cVar13") (== "==") (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10"))) () ")")) (compound_statement "{\n                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n                bVar1 = false;\n                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;\n              }" ({ "{") (expression_statement "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)()" (identifier "piVar11") (= "=") (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_001461fc)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___ctype_b_loc_001461fc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_001461fc)" (( "(") (pointer_expression "*(code *)PTR___ctype_b_loc_001461fc" (* "*") (cast_expression "(code *)PTR___ctype_b_loc_001461fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___ctype_b_loc_001461fc"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" (identifier "bVar1") (= "=") (false "false")) (; ";")) (if_statement "if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)\n                goto LAB_0010ea18;" (if "if") (parenthesized_expression "((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)" (( "(") (binary_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0" (parenthesized_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8)" (( "(") (binary_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8" (pointer_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2)" (* "*") (cast_expression "(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar11 + (uint)(byte)pcVar10[1] * 2)" (( "(") (binary_expression "*piVar11 + (uint)(byte)pcVar10[1] * 2" (pointer_expression "*piVar11" (* "*") (identifier "piVar11")) (+ "+") (binary_expression "(uint)(byte)pcVar10[1] * 2" (cast_expression "(uint)(byte)pcVar10[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)pcVar10[1]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "pcVar10[1]" (identifier "pcVar10") ([ "[") (number_literal "1") (] "]")))) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0010ea18;" (goto "goto") (statement_identifier "LAB_0010ea18") (; ";"))) (} "}")) (else_clause "else {\n                bVar1 = false;\n              }" (else "else") (compound_statement "{\n                bVar1 = false;\n              }" ({ "{") (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" (identifier "bVar1") (= "=") (false "false")) (; ";")) (} "}")))) (labeled_statement "LAB_0010eb04:\n              iVar9 = 0;" (statement_identifier "LAB_0010eb04") (: ":") (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";"))) (labeled_statement "LAB_0010eb08:\n              *(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;" (statement_identifier "LAB_0010eb08") (: ":") (expression_statement "*(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;" (assignment_expression "*(int *)PTR_history_multiline_entries_001461b0 =\n                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9" (pointer_expression "*(int *)PTR_history_multiline_entries_001461b0" (* "*") (cast_expression "(int *)PTR_history_multiline_entries_001461b0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_history_multiline_entries_001461b0"))) (= "=") (binary_expression "*(int *)PTR_history_multiline_entries_001461b0 + iVar9" (pointer_expression "*(int *)PTR_history_multiline_entries_001461b0" (* "*") (cast_expression "(int *)PTR_history_multiline_entries_001461b0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_history_multiline_entries_001461b0"))) (+ "+") (identifier "iVar9"))) (; ";"))) (if_statement "if (pcVar10 < pcVar17) {\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }\n              else {\n                iVar9 = 0;\n              }" (if "if") (parenthesized_expression "(pcVar10 < pcVar17)" (( "(") (binary_expression "pcVar10 < pcVar17" (identifier "pcVar10") (< "<") (identifier "pcVar17")) () ")")) (compound_statement "{\nLAB_0010eb1c:\n                iVar9 = 0;\n                pcVar14 = pcVar10;\n                pcVar15 = pcVar10;\n                if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }\n                puVar5 = PTR_history_multiline_entries_001461b0;\n                puVar4 = PTR_history_length_001454d0;\n                local_ec = (char *)0x0;\n                pcVar15 = pcVar14;\n                do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);\n              }" ({ "{") (labeled_statement "LAB_0010eb1c:\n                iVar9 = 0;" (statement_identifier "LAB_0010eb1c") (: ":") (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";"))) (expression_statement "pcVar14 = pcVar10;" (assignment_expression "pcVar14 = pcVar10" (identifier "pcVar14") (= "=") (identifier "pcVar10")) (; ";")) (expression_statement "pcVar15 = pcVar10;" (assignment_expression "pcVar15 = pcVar10" (identifier "pcVar15") (= "=") (identifier "pcVar10")) (; ";")) (if_statement "if (0 < param_2) {\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }" (if "if") (parenthesized_expression "(0 < param_2)" (( "(") (binary_expression "0 < param_2" (number_literal "0") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n                  do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));\n                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;\n                }" ({ "{") (do_statement "do {\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));" (do "do") (compound_statement "{\n                    pcVar16 = pcVar15 + 1;\n                    if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }\n                  }" ({ "{") (expression_statement "pcVar16 = pcVar15 + 1;" (assignment_expression "pcVar16 = pcVar15 + 1" (identifier "pcVar16") (= "=") (binary_expression "pcVar15 + 1" (identifier "pcVar15") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {\n                      iVar9 = iVar9 + 1;\n                    }" (if "if") (parenthesized_expression "((*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0))))" (( "(") (binary_expression "(*pcVar15 == '\n') &&\n                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))" (parenthesized_expression "(*pcVar15 == '\n')" (( "(") (binary_expression "*pcVar15 == '\n'" (pointer_expression "*pcVar15" (* "*") (identifier "pcVar15")) (== "==") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "((pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))" (( "(") (parenthesized_expression "(pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0))" (( "(") (comma_expression "pcVar14 = pcVar16, *pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)" (assignment_expression "pcVar14 = pcVar16" (identifier "pcVar14") (= "=") (identifier "pcVar16")) (, ",") (binary_expression "*pcVar16 != cVar13 ||\n                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)" (binary_expression "*pcVar16 != cVar13" (pointer_expression "*pcVar16" (* "*") (identifier "pcVar16")) (!= "!=") (identifier "cVar13")) (|| "||") (parenthesized_expression "(piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)" (( "(") (comma_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0" (assignment_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)()" (identifier "piVar11") (= "=") (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_001461fc)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___ctype_b_loc_001461fc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_001461fc)" (( "(") (pointer_expression "*(code *)PTR___ctype_b_loc_001461fc" (* "*") (cast_expression "(code *)PTR___ctype_b_loc_001461fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___ctype_b_loc_001461fc"))) () ")")) (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0" (parenthesized_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8)" (( "(") (binary_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8" (pointer_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2)" (* "*") (cast_expression "(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar11 + (uint)(byte)pcVar15[2] * 2)" (( "(") (binary_expression "*piVar11 + (uint)(byte)pcVar15[2] * 2" (pointer_expression "*piVar11" (* "*") (identifier "piVar11")) (+ "+") (binary_expression "(uint)(byte)pcVar15[2] * 2" (cast_expression "(uint)(byte)pcVar15[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)pcVar15[2]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "pcVar15[2]" (identifier "pcVar15") ([ "[") (number_literal "2") (] "]")))) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0"))) () ")")))) () ")")) () ")"))) () ")")) (compound_statement "{\n                      iVar9 = iVar9 + 1;\n                    }" ({ "{") (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2))" (( "(") (binary_expression "(pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2)" (parenthesized_expression "(pcVar17 != pcVar16)" (( "(") (binary_expression "pcVar17 != pcVar16" (identifier "pcVar17") (!= "!=") (identifier "pcVar16")) () ")")) (&& "&&") (parenthesized_expression "(pcVar15 = pcVar16, iVar9 < param_2)" (( "(") (comma_expression "pcVar15 = pcVar16, iVar9 < param_2" (assignment_expression "pcVar15 = pcVar16" (identifier "pcVar15") (= "=") (identifier "pcVar16")) (, ",") (binary_expression "iVar9 < param_2" (identifier "iVar9") (< "<") (identifier "param_2"))) () ")"))) () ")")) (; ";")) (if_statement "if (pcVar17 <= pcVar14) goto LAB_0010ed48;" (if "if") (parenthesized_expression "(pcVar17 <= pcVar14)" (( "(") (binary_expression "pcVar17 <= pcVar14" (identifier "pcVar17") (<= "<=") (identifier "pcVar14")) () ")")) (goto_statement "goto LAB_0010ed48;" (goto "goto") (statement_identifier "LAB_0010ed48") (; ";"))) (} "}"))) (expression_statement "puVar5 = PTR_history_multiline_entries_001461b0;" (assignment_expression "puVar5 = PTR_history_multiline_entries_001461b0" (identifier "puVar5") (= "=") (identifier "PTR_history_multiline_entries_001461b0")) (; ";")) (expression_statement "puVar4 = PTR_history_length_001454d0;" (assignment_expression "puVar4 = PTR_history_length_001454d0" (identifier "puVar4") (= "=") (identifier "PTR_history_length_001454d0")) (; ";")) (expression_statement "local_ec = (char *)0x0;" (assignment_expression "local_ec = (char *)0x0" (identifier "local_ec") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "pcVar15 = pcVar14;" (assignment_expression "pcVar15 = pcVar14" (identifier "pcVar15") (= "=") (identifier "pcVar14")) (; ";")) (do_statement "do {\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                } while (pcVar16 < pcVar17);" (do "do") (compound_statement "{\n                  pcVar16 = pcVar15 + 1;\n                  if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }\n                  pcVar15 = pcVar16;\n                }" ({ "{") (expression_statement "pcVar16 = pcVar15 + 1;" (assignment_expression "pcVar16 = pcVar15 + 1" (identifier "pcVar16") (= "=") (binary_expression "pcVar15 + 1" (identifier "pcVar15") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (*pcVar15 == '\n') {\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }" (if "if") (parenthesized_expression "(*pcVar15 == '\n')" (( "(") (binary_expression "*pcVar15 == '\n'" (pointer_expression "*pcVar15" (* "*") (identifier "pcVar15")) (== "==") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")")) (compound_statement "{\n                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }\n                    if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }\n                    local_ec = pcVar14;\n                    pcVar14 = pcVar16;\n                    if (param_3 <= iVar9) break;\n                  }" ({ "{") (if_statement "if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {\n                      pcVar15[-1] = '\0';\n                    }\n                    else {\n                      *pcVar15 = '\0';\n                    }" (if "if") (parenthesized_expression "((pcVar14 < pcVar15) && (pcVar15[-1] == '\r'))" (( "(") (binary_expression "(pcVar14 < pcVar15) && (pcVar15[-1] == '\r')" (parenthesized_expression "(pcVar14 < pcVar15)" (( "(") (binary_expression "pcVar14 < pcVar15" (identifier "pcVar14") (< "<") (identifier "pcVar15")) () ")")) (&& "&&") (parenthesized_expression "(pcVar15[-1] == '\r')" (( "(") (binary_expression "pcVar15[-1] == '\r'" (subscript_expression "pcVar15[-1]" (identifier "pcVar15") ([ "[") (number_literal "-1") (] "]")) (== "==") (char_literal "'\r'" (' "'") (escape_sequence "\r") (' "'"))) () ")"))) () ")")) (compound_statement "{\n                      pcVar15[-1] = '\0';\n                    }" ({ "{") (expression_statement "pcVar15[-1] = '\0';" (assignment_expression "pcVar15[-1] = '\0'" (subscript_expression "pcVar15[-1]" (identifier "pcVar15") ([ "[") (number_literal "-1") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}")) (else_clause "else {\n                      *pcVar15 = '\0';\n                    }" (else "else") (compound_statement "{\n                      *pcVar15 = '\0';\n                    }" ({ "{") (expression_statement "*pcVar15 = '\0';" (assignment_expression "*pcVar15 = '\0'" (pointer_expression "*pcVar15" (* "*") (identifier "pcVar15")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}")))) (if_statement "if (*pcVar14 == '\0') {\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }\n                    else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }" (if "if") (parenthesized_expression "(*pcVar14 == '\0')" (( "(") (binary_expression "*pcVar14 == '\0'" (pointer_expression "*pcVar14" (* "*") (identifier "pcVar14")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n                      iVar9 = iVar9 + 1;\n                      pcVar14 = local_ec;\n                    }" ({ "{") (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar14 = local_ec;" (assignment_expression "pcVar14 = local_ec" (identifier "pcVar14") (= "=") (identifier "local_ec")) (; ";")) (} "}")) (else_clause "else if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }" (else "else") (if_statement "if ((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }" (if "if") (parenthesized_expression "((*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0))" (( "(") (binary_expression "(*puVar2 != *pcVar14) ||\n                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)" (parenthesized_expression "(*puVar2 != *pcVar14)" (( "(") (binary_expression "*puVar2 != *pcVar14" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (!= "!=") (pointer_expression "*pcVar14" (* "*") (identifier "pcVar14"))) () ")")) (|| "||") (parenthesized_expression "(piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)" (( "(") (comma_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),\n                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0" (assignment_expression "piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)()" (identifier "piVar11") (= "=") (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_001461fc)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___ctype_b_loc_001461fc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_001461fc)" (( "(") (pointer_expression "*(code *)PTR___ctype_b_loc_001461fc" (* "*") (cast_expression "(code *)PTR___ctype_b_loc_001461fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___ctype_b_loc_001461fc"))) () ")")) (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0" (parenthesized_expression "(*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8)" (( "(") (binary_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8" (pointer_expression "*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2)" (* "*") (cast_expression "(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar11 + (uint)(byte)pcVar14[1] * 2)" (( "(") (binary_expression "*piVar11 + (uint)(byte)pcVar14[1] * 2" (pointer_expression "*piVar11" (* "*") (identifier "piVar11")) (+ "+") (binary_expression "(uint)(byte)pcVar14[1] * 2" (cast_expression "(uint)(byte)pcVar14[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)pcVar14[1]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "pcVar14[1]" (identifier "pcVar14") ([ "[") (number_literal "1") (] "]")))) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n                      iVar9 = iVar9 + 1;\n                      if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }\n                    }" ({ "{") (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (local_ec == (char *)0x0) {\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }\n                      else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }" (if "if") (parenthesized_expression "(local_ec == (char *)0x0)" (( "(") (binary_expression "local_ec == (char *)0x0" (identifier "local_ec") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }\n                      }" ({ "{") (if_statement "if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }\n                        else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }" (if "if") (parenthesized_expression "((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0))" (( "(") (binary_expression "(*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)" (parenthesized_expression "(*(int *)puVar4 < 1)" (( "(") (binary_expression "*(int *)puVar4 < 1" (pointer_expression "*(int *)puVar4" (* "*") (cast_expression "(int *)puVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4"))) (< "<") (number_literal "1")) () ")")) (|| "||") (parenthesized_expression "(*(int *)puVar5 == 0)" (( "(") (binary_expression "*(int *)puVar5 == 0" (pointer_expression "*(int *)puVar5" (* "*") (cast_expression "(int *)puVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5"))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n                          add_history(pcVar14);\n                          pcVar14 = local_ec;\n                        }" ({ "{") (expression_statement "add_history(pcVar14);" (call_expression "add_history(pcVar14)" (identifier "add_history") (argument_list "(pcVar14)" (( "(") (identifier "pcVar14") () ")"))) (; ";")) (expression_statement "pcVar14 = local_ec;" (assignment_expression "pcVar14 = local_ec" (identifier "pcVar14") (= "=") (identifier "local_ec")) (; ";")) (} "}")) (else_clause "else {\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }" (else "else") (compound_statement "{\n                          _hs_append_history_line(*(int *)puVar4 + -1);\n                          pcVar14 = local_ec;\n                        }" ({ "{") (expression_statement "_hs_append_history_line(*(int *)puVar4 + -1);" (call_expression "_hs_append_history_line(*(int *)puVar4 + -1)" (identifier "_hs_append_history_line") (argument_list "(*(int *)puVar4 + -1)" (( "(") (binary_expression "*(int *)puVar4 + -1" (pointer_expression "*(int *)puVar4" (* "*") (cast_expression "(int *)puVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4"))) (+ "+") (number_literal "-1")) () ")"))) (; ";")) (expression_statement "pcVar14 = local_ec;" (assignment_expression "pcVar14 = local_ec" (identifier "pcVar14") (= "=") (identifier "local_ec")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }" (else "else") (compound_statement "{\n                        add_history(pcVar14);\n                        add_history_time(local_ec);\n                        local_ec = (char *)0x0;\n                        pcVar14 = local_ec;\n                      }" ({ "{") (expression_statement "add_history(pcVar14);" (call_expression "add_history(pcVar14)" (identifier "add_history") (argument_list "(pcVar14)" (( "(") (identifier "pcVar14") () ")"))) (; ";")) (expression_statement "add_history_time(local_ec);" (call_expression "add_history_time(local_ec)" (identifier "add_history_time") (argument_list "(local_ec)" (( "(") (identifier "local_ec") () ")"))) (; ";")) (expression_statement "local_ec = (char *)0x0;" (assignment_expression "local_ec = (char *)0x0" (identifier "local_ec") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "pcVar14 = local_ec;" (assignment_expression "pcVar14 = local_ec" (identifier "pcVar14") (= "=") (identifier "local_ec")) (; ";")) (} "}")))) (} "}"))))) (expression_statement "local_ec = pcVar14;" (assignment_expression "local_ec = pcVar14" (identifier "local_ec") (= "=") (identifier "pcVar14")) (; ";")) (expression_statement "pcVar14 = pcVar16;" (assignment_expression "pcVar14 = pcVar16" (identifier "pcVar14") (= "=") (identifier "pcVar16")) (; ";")) (if_statement "if (param_3 <= iVar9) break;" (if "if") (parenthesized_expression "(param_3 <= iVar9)" (( "(") (binary_expression "param_3 <= iVar9" (identifier "param_3") (<= "<=") (identifier "iVar9")) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}"))) (expression_statement "pcVar15 = pcVar16;" (assignment_expression "pcVar15 = pcVar16" (identifier "pcVar15") (= "=") (identifier "pcVar16")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar16 < pcVar17)" (( "(") (binary_expression "pcVar16 < pcVar17" (identifier "pcVar16") (< "<") (identifier "pcVar17")) () ")")) (; ";")) (} "}")) (else_clause "else {\n                iVar9 = 0;\n              }" (else "else") (compound_statement "{\n                iVar9 = 0;\n              }" ({ "{") (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";")) (} "}")))) (labeled_statement "LAB_0010ed48:\n              *(int *)puVar3 = iVar9;" (statement_identifier "LAB_0010ed48") (: ":") (expression_statement "*(int *)puVar3 = iVar9;" (assignment_expression "*(int *)puVar3 = iVar9" (pointer_expression "*(int *)puVar3" (* "*") (cast_expression "(int *)puVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (= "=") (identifier "iVar9")) (; ";"))) (if_statement "if (bVar1) {\n                *puVar2 = 0;\n              }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n                *puVar2 = 0;\n              }" ({ "{") (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)PTR_free_001464fc)(iVar7);" (call_expression "(*(code *)PTR_free_001464fc)(iVar7)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" (( "(") (pointer_expression "*(code *)PTR_free_001464fc" (* "*") (cast_expression "(code *)PTR_free_001464fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_001464fc"))) () ")")) (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_free_001464fc)(pcVar10);" (call_expression "(*(code *)PTR_free_001464fc)(pcVar10)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" (( "(") (pointer_expression "*(code *)PTR_free_001464fc" (* "*") (cast_expression "(code *)PTR_free_001464fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_001464fc"))) () ")")) (argument_list "(pcVar10)" (( "(") (identifier "pcVar10") () ")"))) (; ";")) (goto_statement "goto LAB_0010ea9c;" (goto "goto") (statement_identifier "LAB_0010ea9c") (; ";")) (} "}"))) (expression_statement "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)()" (identifier "piVar11") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_0014633c)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0014633c" (* "*") (cast_expression "(code *)PTR___errno_location_0014633c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0014633c"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar9 = *piVar11;" (assignment_expression "iVar9 = *piVar11" (identifier "iVar9") (= "=") (pointer_expression "*piVar11" (* "*") (identifier "piVar11"))) (; ";")) (if_statement "if (iVar9 == 0) {\n            iVar9 = 5;\n          }" (if "if") (parenthesized_expression "(iVar9 == 0)" (( "(") (binary_expression "iVar9 == 0" (identifier "iVar9") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            iVar9 = 5;\n          }" ({ "{") (expression_statement "iVar9 = 5;" (assignment_expression "iVar9 = 5" (identifier "iVar9") (= "=") (number_literal "5")) (; ";")) (} "}"))) (} "}")))) (} "}")) (else_clause "else {\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }" (else "else") (compound_statement "{\n        iVar9 = 0x1b;\n        pcVar10 = (char *)0x0;\n        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n        *puVar12 = 0x1b;\n      }" ({ "{") (expression_statement "iVar9 = 0x1b;" (assignment_expression "iVar9 = 0x1b" (identifier "iVar9") (= "=") (number_literal "0x1b")) (; ";")) (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" (identifier "pcVar10") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)()" (identifier "puVar12") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0014633c)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0014633c" (* "*") (cast_expression "(code *)PTR___errno_location_0014633c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0014633c"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar12 = 0x1b;" (assignment_expression "*puVar12 = 0x1b" (pointer_expression "*puVar12" (* "*") (identifier "puVar12")) (= "=") (number_literal "0x1b")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }" (else "else") (compound_statement "{\n      iVar9 = 0x16;\n      pcVar10 = (char *)0x0;\n      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n      *puVar12 = 0x16;\n    }" ({ "{") (expression_statement "iVar9 = 0x16;" (assignment_expression "iVar9 = 0x16" (identifier "iVar9") (= "=") (number_literal "0x16")) (; ";")) (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" (identifier "pcVar10") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)()" (identifier "puVar12") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0014633c)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0014633c" (* "*") (cast_expression "(code *)PTR___errno_location_0014633c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0014633c"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar12 = 0x16;" (assignment_expression "*puVar12 = 0x16" (pointer_expression "*puVar12" (* "*") (identifier "puVar12")) (= "=") (number_literal "0x16")) (; ";")) (} "}")))))) (expression_statement "(*(code *)PTR_close_0014620c)(iVar8);" (call_expression "(*(code *)PTR_close_0014620c)(iVar8)" (parenthesized_expression "(*(code *)PTR_close_0014620c)" (( "(") (pointer_expression "*(code *)PTR_close_0014620c" (* "*") (cast_expression "(code *)PTR_close_0014620c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_0014620c"))) () ")")) (argument_list "(iVar8)" (( "(") (identifier "iVar8") () ")"))) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR_free_001464fc)(iVar7);" (call_expression "(*(code *)PTR_free_001464fc)(iVar7)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" (( "(") (pointer_expression "*(code *)PTR_free_001464fc" (* "*") (cast_expression "(code *)PTR_free_001464fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_001464fc"))) () ")")) (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")"))) (; ";")) (if_statement "if (pcVar10 != (char *)0x0) {\n    (*(code *)PTR_free_001464fc)(pcVar10);\n  }" (if "if") (parenthesized_expression "(pcVar10 != (char *)0x0)" (( "(") (binary_expression "pcVar10 != (char *)0x0" (identifier "pcVar10") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    (*(code *)PTR_free_001464fc)(pcVar10);\n  }" ({ "{") (expression_statement "(*(code *)PTR_free_001464fc)(pcVar10);" (call_expression "(*(code *)PTR_free_001464fc)(pcVar10)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" (( "(") (pointer_expression "*(code *)PTR_free_001464fc" (* "*") (cast_expression "(code *)PTR_free_001464fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_001464fc"))) () ")")) (argument_list "(pcVar10)" (( "(") (identifier "pcVar10") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_0010ea9c:\n  if (local_2c != *(int *)puVar6) {\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar7 = read_history_range();\n    return iVar7;\n  }" (statement_identifier "LAB_0010ea9c") (: ":") (if_statement "if (local_2c != *(int *)puVar6) {\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar7 = read_history_range();\n    return iVar7;\n  }" (if "if") (parenthesized_expression "(local_2c != *(int *)puVar6)" (( "(") (binary_expression "local_2c != *(int *)puVar6" (identifier "local_2c") (!= "!=") (pointer_expression "*(int *)puVar6" (* "*") (cast_expression "(int *)puVar6" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar6")))) () ")")) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_00146488)();\n    iVar7 = read_history_range();\n    return iVar7;\n  }" ({ "{") (expression_statement "(*(code *)PTR___stack_chk_fail_00146488)();" (call_expression "(*(code *)PTR___stack_chk_fail_00146488)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00146488)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00146488" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00146488" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00146488"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar7 = read_history_range();" (assignment_expression "iVar7 = read_history_range()" (identifier "iVar7") (= "=") (call_expression "read_history_range()" (identifier "read_history_range") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar7;" (return "return") (identifier "iVar7") (; ";")) (} "}")))) (return_statement "return iVar9;" (return "return") (identifier "iVar9") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) 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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (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: (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: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal))))) (if_statement condition: (parenthesized_expression (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: (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: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (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: (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: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (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))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (pointer_expression argument: (identifier)) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (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 (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))))) consequence: (compound_statement (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))))) (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: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal)))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (true))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (false))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (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: (false))) (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: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal)))))) right: (number_literal))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (false)))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)) right: (parenthesized_expression (comma_expression left: (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)))) right: (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: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal)))))) right: (number_literal))) right: (number_literal)))))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) right: (parenthesized_expression (comma_expression left: (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)))) right: (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: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal)))))) right: (number_literal))) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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 (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (break_statement)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier)))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))))) (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)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (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: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (cast_expression type: (type_descriptor type: (type_identifier) 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: (pointer_expression argument: (identifier)) right: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_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: (cast_expression type: (type_descriptor type: (type_identifier) 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: (pointer_expression argument: (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))))))) (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)))) (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 (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (identifier))))) (return_statement (identifier)))))

int MASKED(undefined4 param_1,int param_2,int param_3)

{
  bool bVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined *puVar4;
  undefined *puVar5;
  undefined *puVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  char *pcVar10;
  int *piVar11;
  undefined4 *puVar12;
  char cVar13;
  char *pcVar14;
  char *pcVar15;
  char *pcVar16;
  char *pcVar17;
  char *local_ec;
  undefined1 auStack_d0 [24];
  uint local_b8;
  int local_98;
  int local_94;
  int local_2c;
  
  puVar6 = PTR___stack_chk_guard_001464dc;
  puVar3 = PTR_history_lines_read_from_file_001454a8;
  *(undefined4 *)PTR_history_lines_read_from_file_001454a8 = 0;
  local_2c = *(int *)puVar6;
  iVar7 = FUN_0010e214();
  if (iVar7 == 0) {
    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();
    iVar9 = *piVar11;
    if (iVar9 == 0) {
      iVar9 = 5;
    }
    goto LAB_0010ea9c;
  }
  iVar8 = (*(code *)PTR_open64_00146378)(iVar7,0,0x1b6);
  if (iVar8 < 0) {
    piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();
    iVar9 = *piVar11;
    if (iVar9 == 0) {
      iVar9 = 5;
      (*(code *)PTR_free_001464fc)(iVar7);
      goto LAB_0010ea9c;
    }
    pcVar10 = (char *)0x0;
  }
  else {
    iVar9 = (*(code *)PTR___fxstat64_00146434)(3,iVar8,auStack_d0);
    if (iVar9 == -1) {
      piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();
      iVar9 = *piVar11;
      if (iVar9 == 0) {
        iVar9 = 5;
        pcVar10 = (char *)0x0;
      }
      else {
        pcVar10 = (char *)0x0;
      }
    }
    else if ((local_b8 & 0xf000) == 0x8000) {
      if ((local_98 == 0) && (local_94 != -1)) {
        if (local_94 == 0) {
          iVar9 = 0;
          (*(code *)PTR_free_001464fc)(iVar7);
          goto LAB_0010ea9c;
        }
        pcVar10 = (char *)(*(code *)PTR_malloc_001463e8)(local_94 + 1);
        if (pcVar10 == (char *)0x0) {
          iVar9 = 0x1b;
          puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();
          *puVar12 = 0x1b;
        }
        else {
          iVar9 = (*(code *)PTR_read_00146534)(iVar8,pcVar10,local_94);
          if (-1 < iVar9) {
            (*(code *)PTR_close_0014620c)(iVar8);
            puVar2 = PTR_history_comment_char_00144f48;
            if (param_3 < 0) {
              param_3 = iVar9;
            }
            pcVar17 = pcVar10 + iVar9;
            *pcVar17 = '\0';
            cVar13 = *puVar2;
            if ((cVar13 == '\0') && (*pcVar10 == '#')) {
              piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();
              if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0) {
                cVar13 = '#';
                *puVar2 = 0x23;
                bVar1 = true;
LAB_0010ea18:
                iVar9 = 1;
                if (*(int *)PTR_history_write_timestamps_00144f4c == 0) goto LAB_0010eb04;
                goto LAB_0010eb08;
              }
              bVar1 = false;
              if (pcVar10 < pcVar17) goto LAB_0010eb1c;
              *(undefined4 *)puVar3 = 0;
            }
            else {
              if (cVar13 == *pcVar10) {
                piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();
                bVar1 = false;
                if ((*(ushort *)(*piVar11 + (uint)(byte)pcVar10[1] * 2) & 8) != 0)
                goto LAB_0010ea18;
              }
              else {
                bVar1 = false;
              }
LAB_0010eb04:
              iVar9 = 0;
LAB_0010eb08:
              *(int *)PTR_history_multiline_entries_001461b0 =
                   *(int *)PTR_history_multiline_entries_001461b0 + iVar9;
              if (pcVar10 < pcVar17) {
LAB_0010eb1c:
                iVar9 = 0;
                pcVar14 = pcVar10;
                pcVar15 = pcVar10;
                if (0 < param_2) {
                  do {
                    pcVar16 = pcVar15 + 1;
                    if ((*pcVar15 == '\n') &&
                       ((pcVar14 = pcVar16, *pcVar16 != cVar13 ||
                        (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),
                        (*(ushort *)(*piVar11 + (uint)(byte)pcVar15[2] * 2) & 8) == 0)))) {
                      iVar9 = iVar9 + 1;
                    }
                  } while ((pcVar17 != pcVar16) && (pcVar15 = pcVar16, iVar9 < param_2));
                  if (pcVar17 <= pcVar14) goto LAB_0010ed48;
                }
                puVar5 = PTR_history_multiline_entries_001461b0;
                puVar4 = PTR_history_length_001454d0;
                local_ec = (char *)0x0;
                pcVar15 = pcVar14;
                do {
                  pcVar16 = pcVar15 + 1;
                  if (*pcVar15 == '\n') {
                    if ((pcVar14 < pcVar15) && (pcVar15[-1] == '\r')) {
                      pcVar15[-1] = '\0';
                    }
                    else {
                      *pcVar15 = '\0';
                    }
                    if (*pcVar14 == '\0') {
                      iVar9 = iVar9 + 1;
                      pcVar14 = local_ec;
                    }
                    else if ((*puVar2 != *pcVar14) ||
                            (piVar11 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)(),
                            (*(ushort *)(*piVar11 + (uint)(byte)pcVar14[1] * 2) & 8) == 0)) {
                      iVar9 = iVar9 + 1;
                      if (local_ec == (char *)0x0) {
                        if ((*(int *)puVar4 < 1) || (*(int *)puVar5 == 0)) {
                          add_history(pcVar14);
                          pcVar14 = local_ec;
                        }
                        else {
                          _hs_append_history_line(*(int *)puVar4 + -1);
                          pcVar14 = local_ec;
                        }
                      }
                      else {
                        add_history(pcVar14);
                        add_history_time(local_ec);
                        local_ec = (char *)0x0;
                        pcVar14 = local_ec;
                      }
                    }
                    local_ec = pcVar14;
                    pcVar14 = pcVar16;
                    if (param_3 <= iVar9) break;
                  }
                  pcVar15 = pcVar16;
                } while (pcVar16 < pcVar17);
              }
              else {
                iVar9 = 0;
              }
LAB_0010ed48:
              *(int *)puVar3 = iVar9;
              if (bVar1) {
                *puVar2 = 0;
              }
            }
            iVar9 = 0;
            (*(code *)PTR_free_001464fc)(iVar7);
            (*(code *)PTR_free_001464fc)(pcVar10);
            goto LAB_0010ea9c;
          }
          piVar11 = (int *)(*(code *)PTR___errno_location_0014633c)();
          iVar9 = *piVar11;
          if (iVar9 == 0) {
            iVar9 = 5;
          }
        }
      }
      else {
        iVar9 = 0x1b;
        pcVar10 = (char *)0x0;
        puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();
        *puVar12 = 0x1b;
      }
    }
    else {
      iVar9 = 0x16;
      pcVar10 = (char *)0x0;
      puVar12 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();
      *puVar12 = 0x16;
    }
    (*(code *)PTR_close_0014620c)(iVar8);
  }
  (*(code *)PTR_free_001464fc)(iVar7);
  if (pcVar10 != (char *)0x0) {
    (*(code *)PTR_free_001464fc)(pcVar10);
  }
LAB_0010ea9c:
  if (local_2c != *(int *)puVar6) {
    (*(code *)PTR___stack_chk_fail_00146488)();
    iVar7 = MASKED();
    return iVar7;
  }
  return iVar9;
}

