// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movabsq $0x4000000000, %rax     # imm = 0x4000000000
movq %rax, 0x10(%rsp)
pushq $0x7c
popq %rdi
callq 0x179c0
movl 0xc(%rbx), %ebp
testl %ebp, %ebp
je 0xcfc3d
leaq 0x10(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0xceb8d
movq %rax, %r12
leaq 0xc(%rsp), %rax
movl $0x1, (%rax)
pushq $0x1
popq %r13
cmpl %ebp, %r13d
jae 0xcfc3d
movzbl 0x14(%rbx), %r13d
leaq 0x2(%r13), %rbp
cmpq %rbp, %r12
ja 0xcfcae
movq %rbx, %rdi
movq %r15, %rsi
leaq 0xc(%rsp), %rdx
callq 0xcebdc
cmpq %rbp, %r12
jne 0xcfb26
testl %eax, %eax
je 0xcfb4c
leaq 0x24c119(%rip), %rdi    # 0x31bc34
movl %eax, %esi
xorl %eax, %eax
callq 0x17070
jmp 0xcfb5a
incq %r13
cmpq %r13, %r12
jne 0xcfcdc
testl %eax, %eax
je 0xcfbbc
leaq 0x24c158(%rip), %rdi    # 0x31bc99
movl %eax, %esi
xorl %eax, %eax
callq 0x17070
jmp 0xcfbca
leaq 0x24c0e7(%rip), %rdi    # 0x31bc3a
xorl %eax, %eax
callq 0x17070
movl 0xc(%rsp), %r13d
movl 0xc(%rbx), %ebp
cmpl %ebp, %r13d
jae 0xcfc33
movq %rbx, %rdi
movq %r15, %rsi
callq 0xceb8d
movq %rax, %r12
movzbl 0x14(%rbx), %eax
cmpq %rax, %r12
je 0xcfc76
ja 0xcfc30
decq %rax
cmpq %rax, %r12
movl $0xfe, %eax
cmoveq %rax, %r12
movq %r14, %rdi
movl %r12d, %esi
callq 0x5728b
movzbl %al, %esi
leaq 0x24c0b8(%rip), %rdi    # 0x31bc68
xorl %eax, %eax
callq 0x17070
incl %r13d
jmp 0xcfb5f
leaq 0x24c0dc(%rip), %rdi    # 0x31bc9f
xorl %eax, %eax
callq 0x17070
movl 0xc(%rsp), %r13d
movl 0xc(%rbx), %ebp
cmpl %ebp, %r13d
jae 0xcfc33
movq %rbx, %rdi
movq %r15, %rsi
callq 0xceb8d
movq %rax, %r12
movzbl 0x14(%rbx), %eax
cmpq %rax, %r12
ja 0xcfc30
jae 0xcfc1d
decq %rax
cmpq %rax, %r12
movl $0xfe, %eax
cmoveq %rax, %r12
movq %r14, %rdi
movl %r12d, %esi
callq 0x5728b
movzbl %al, %esi
leaq 0x24c054(%rip), %rdi    # 0x31bc68
xorl %eax, %eax
callq 0x17070
jmp 0xcfc2b
leaq 0x24c084(%rip), %rdi    # 0x31bca8
xorl %eax, %eax
callq 0x17070
incl %r13d
jmp 0xcfbcf
incl %r13d
movl %r13d, 0xc(%rsp)
jmp 0xcfae0
movl 0x10(%rbx), %esi
testl %esi, %esi
je 0xcfc60
leaq 0x24c060(%rip), %rdi    # 0x31bcab
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17070
pushq $0xa
popq %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x179c0
movq 0x3682eb(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x21538c(%rip), %rsi    # 0x2e5013
leaq 0x24bfb2(%rip), %rdx    # 0x31bc40
leaq 0x24bf8c(%rip), %rcx    # 0x31bc21
leaq 0x24bc1c(%rip), %r8     # 0x31b8b8
movl $0x315, %r9d            # imm = 0x315
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x3682b3(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x215354(%rip), %rsi    # 0x2e5013
leaq 0x24be75(%rip), %rdx    # 0x31bb3b
leaq 0x24bf54(%rip), %rcx    # 0x31bc21
leaq 0x24bbe4(%rip), %r8     # 0x31b8b8
movl $0x308, %r9d            # imm = 0x308
jmp 0xcfca2
movq 0x368285(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x215326(%rip), %rsi    # 0x2e5013
leaq 0x24bf78(%rip), %rdx    # 0x31bc6c
leaq 0x24bf26(%rip), %rcx    # 0x31bc21
leaq 0x24bbb6(%rip), %r8     # 0x31b8b8
movl $0x321, %r9d            # imm = 0x321
jmp 0xcfca2