// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/editscript.c
// Function: gt_editscript_show
void gt_editscript_show(const GtEditscript *editscript, GtAlphabet *alphabet)
{
  GtEditscriptPos pos;
  GtBitsequence elem;
  uint32_t matchcount,
           elems_served = 0;

  editscript_pos_reset(&pos);

  printf("|");
  if (editscript->num_elems != 0) {
    elem = editscript_space_get_next(editscript, &pos);
    elems_served++;
    while (elems_served < editscript->num_elems) {
      gt_assert(elem <= GT_EDITSCRIPT_INS_SYM(editscript));
      matchcount = (uint32_t) editscript_space_get_length(editscript, &pos,
                                                          &elems_served);
      if (elem == GT_EDITSCRIPT_INS_SYM(editscript)) {
        if (matchcount != 0) {
          printf("M(%u)|Ins:|", matchcount);
        }
        else {
          printf("Ins:|");
        }
        while (elems_served < editscript->num_elems) {
          elem = editscript_space_get_next(editscript, &pos);
          elems_served++;
          gt_assert(elem != (GtBitsequence) editscript->del);
          if (elem > (GtBitsequence) editscript->del) {
            break;
          }
          elem = (elem == (GtBitsequence) editscript->del - 1) ?
            (GtBitsequence) GT_WILDCARD :
            elem;
          printf("%c|", (int) gt_alphabet_pretty_symbol(alphabet,
                                                        (uint32_t) elem));
        }
      }
      else {
        gt_assert(elem == GT_EDITSCRIPT_MISDEL_SYM(editscript));
        if (matchcount != 0) {
          printf("M(%u)|Misdel:|", matchcount);
        }
        else {
          printf("Misdel:|");
        }
        while (elems_served < editscript->num_elems) {
          elem = editscript_space_get_next(editscript, &pos);
          elems_served++;
          if (elem > (GtBitsequence) editscript->del) {
            break;
          }
          if (elem < (GtBitsequence) editscript->del) {
            elem = (elem == (GtBitsequence) editscript->del - 1) ?
              (GtBitsequence) GT_WILDCARD :
              elem;
            printf("%c|", (int) gt_alphabet_pretty_symbol(alphabet,
                                                          (uint32_t) elem));
          }
          else
            printf("-|");
        }
      }
    }
  }
  if (editscript->trailing_matches != 0) {
    printf("M(%u)|\n", editscript->trailing_matches);
  }
  else
    printf("\n");
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movl $0x0, 0x10(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x15ad60
leaq 0x3f1817(%rip), %rdi    # 0x54de2e
movb $0x0, %al
callq 0x19070
movq 0x30(%rsp), %rax
cmpl $0x0, 0xc(%rax)
je 0x15c950
movq 0x30(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x15ad80
movq %rax, 0x18(%rsp)
movl 0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10(%rsp)
movl 0x10(%rsp), %eax
movq 0x30(%rsp), %rcx
cmpl 0xc(%rcx), %eax
jae 0x15c94e
jmp 0x15c660
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
movzbl 0x14(%rcx), %ecx
addq $0x2, %rcx
cmpq %rcx, %rax
jbe 0x15c6af
movq 0x4df922(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3b998b(%rip), %rsi    # 0x516013
leaq 0x3f1631(%rip), %rdx    # 0x54dcc0
leaq 0x3f1710(%rip), %rcx    # 0x54dda6
leaq 0x3f137b(%rip), %r8     # 0x54da18
movl $0x308, %r9d            # imm = 0x308
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x15c6b1
movq 0x30(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0x10(%rsp), %rdx
callq 0x15ae90
movl %eax, 0x14(%rsp)
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
movzbl 0x14(%rcx), %ecx
addq $0x2, %rcx
cmpq %rcx, %rax
jne 0x15c805
cmpl $0x0, 0x14(%rsp)
je 0x15c6ff
movl 0x14(%rsp), %esi
leaq 0x3f16c3(%rip), %rdi    # 0x54ddb9
movb $0x0, %al
callq 0x19070
jmp 0x15c70d
leaq 0x3f16b9(%rip), %rdi    # 0x54ddbf
movb $0x0, %al
callq 0x19070
jmp 0x15c70f
movl 0x10(%rsp), %eax
movq 0x30(%rsp), %rcx
cmpl 0xc(%rcx), %eax
jae 0x15c800
movq 0x30(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x15ad80
movq %rax, 0x18(%rsp)
movl 0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
movzbl 0x14(%rcx), %ecx
cmpq %rcx, %rax
jne 0x15c78b
movq 0x4df846(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3b98af(%rip), %rsi    # 0x516013
leaq 0x3f165a(%rip), %rdx    # 0x54ddc5
leaq 0x3f1634(%rip), %rcx    # 0x54dda6
leaq 0x3f129f(%rip), %r8     # 0x54da18
movl $0x315, %r9d            # imm = 0x315
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x15c78d
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
movzbl 0x14(%rcx), %ecx
cmpq %rcx, %rax
jbe 0x15c7a2
jmp 0x15c800
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
movzbl 0x14(%rcx), %ecx
subq $0x1, %rcx
cmpq %rcx, %rax
jne 0x15c7c5
movl $0xfe, %eax
movq %rax, 0x8(%rsp)
jmp 0x15c7cf
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x28(%rsp), %rdi
movq 0x18(%rsp), %rax
movl %eax, %esi
callq 0x7f130
movzbl %al, %esi
leaq 0x3f15f9(%rip), %rdi    # 0x54dded
movb $0x0, %al
callq 0x19070
jmp 0x15c70f
jmp 0x15c949
jmp 0x15c807
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
movzbl 0x14(%rcx), %ecx
addq $0x1, %rcx
cmpq %rcx, %rax
je 0x15c856
movq 0x4df77b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3b97e4(%rip), %rsi    # 0x516013
leaq 0x3f15bb(%rip), %rdx    # 0x54ddf1
leaq 0x3f1569(%rip), %rcx    # 0x54dda6
leaq 0x3f11d4(%rip), %r8     # 0x54da18
movl $0x321, %r9d            # imm = 0x321
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x15c858
cmpl $0x0, 0x14(%rsp)
je 0x15c873
movl 0x14(%rsp), %esi
leaq 0x3f15b4(%rip), %rdi    # 0x54de1e
movb $0x0, %al
callq 0x19070
jmp 0x15c881
leaq 0x3f15aa(%rip), %rdi    # 0x54de24
movb $0x0, %al
callq 0x19070
jmp 0x15c883
movl 0x10(%rsp), %eax
movq 0x30(%rsp), %rcx
cmpl 0xc(%rcx), %eax
jae 0x15c947
movq 0x30(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x15ad80
movq %rax, 0x18(%rsp)
movl 0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
movzbl 0x14(%rcx), %ecx
cmpq %rcx, %rax
jbe 0x15c8c9
jmp 0x15c947
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
movzbl 0x14(%rcx), %ecx
cmpq %rcx, %rax
jae 0x15c934
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
movzbl 0x14(%rcx), %ecx
subq $0x1, %rcx
cmpq %rcx, %rax
jne 0x15c8fe
movl $0xfe, %eax
movq %rax, (%rsp)
jmp 0x15c907
movq 0x18(%rsp), %rax
movq %rax, (%rsp)
movq (%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x28(%rsp), %rdi
movq 0x18(%rsp), %rax
movl %eax, %esi
callq 0x7f130
movzbl %al, %esi
leaq 0x3f14c2(%rip), %rdi    # 0x54dded
movb $0x0, %al
callq 0x19070
jmp 0x15c942
leaq 0x3f14f2(%rip), %rdi    # 0x54de2d
movb $0x0, %al
callq 0x19070
jmp 0x15c883
jmp 0x15c949
jmp 0x15c64c
jmp 0x15c950
movq 0x30(%rsp), %rax
cmpl $0x0, 0x10(%rax)
je 0x15c973
movq 0x30(%rsp), %rax
movl 0x10(%rax), %esi
leaq 0x3f14c6(%rip), %rdi    # 0x54de30
movb $0x0, %al
callq 0x19070
jmp 0x15c981
leaq 0x4368f9(%rip), %rdi    # 0x593273
movb $0x0, %al
callq 0x19070
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)