// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/aligned_segment.c
// Function: gt_aligned_segment_ungap_seq_and_qual
void gt_aligned_segment_ungap_seq_and_qual(GtAlignedSegment *as)
{
  GtUword pos, srcpos;
  gt_assert(as != NULL);
  for (srcpos = 0, pos = 0; srcpos < as->alen; srcpos++)
  {
    if (as->s[srcpos] != '-')
    {
      if (pos != srcpos)
      {
        gt_assert(pos < srcpos);
        as->s[pos] = as->s[srcpos];
        gt_assert(as->q[srcpos] != GT_UNDEF_CHAR);
        as->q[pos] = as->q[srcpos];
      }
      pos++;
    }
  }
  gt_assert(pos <= as->alen + 1UL);
  if (pos <= as->alen)
  {
    as->s[pos] = '\0';
    as->q[pos] = '\0';
  }
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
jne 0x4889f9
movq 0x1b35d8(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x8d641(%rip), %rsi     # 0x516013
leaq 0x91cc1(%rip), %rdx     # 0x51a69a
leaq 0x128f82(%rip), %rcx    # 0x5b1962
leaq 0x128d09(%rip), %r8     # 0x5b16f0
movl $0x162, %r9d            # imm = 0x162
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4889fb
movq $0x0, (%rsp)
movq $0x0, 0x8(%rsp)
movq (%rsp), %rax
movq 0x10(%rsp), %rcx
cmpq 0x20(%rcx), %rax
jae 0x488b3f
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq (%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2d, %eax
je 0x488b2c
movq 0x8(%rsp), %rax
cmpq (%rsp), %rax
je 0x488b1e
jmp 0x488a49
movq 0x8(%rsp), %rax
cmpq (%rsp), %rax
jb 0x488a8c
movq 0x1b3545(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x8d5ae(%rip), %rsi     # 0x516013
leaq 0x128ed3(%rip), %rdx    # 0x5b193f
leaq 0x128eef(%rip), %rcx    # 0x5b1962
leaq 0x128c76(%rip), %r8     # 0x5b16f0
movl $0x169, %r9d            # imm = 0x169
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x488a8e
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq (%rsp), %rcx
movb (%rax,%rcx), %dl
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rsp), %rcx
movb %dl, (%rax,%rcx)
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq (%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x7f, %eax
jne 0x488afb
movq 0x1b34d6(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x8d53f(%rip), %rsi     # 0x516013
leaq 0x128ead(%rip), %rdx    # 0x5b1988
leaq 0x128e80(%rip), %rcx    # 0x5b1962
leaq 0x128c07(%rip), %r8     # 0x5b16f0
movl $0x16b, %r9d            # imm = 0x16B
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x488afd
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq (%rsp), %rcx
movb (%rax,%rcx), %dl
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rsp), %rcx
movb %dl, (%rax,%rcx)
movq 0x8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x488b2e
movq (%rsp), %rax
addq $0x1, %rax
movq %rax, (%rsp)
jmp 0x488a0c
jmp 0x488b41
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
movq 0x20(%rcx), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
jbe 0x488b90
movq 0x1b3441(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x8d4aa(%rip), %rsi     # 0x516013
leaq 0x128ddc(%rip), %rdx    # 0x5b194c
leaq 0x128deb(%rip), %rcx    # 0x5b1962
leaq 0x128b72(%rip), %r8     # 0x5b16f0
movl $0x171, %r9d            # imm = 0x171
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x488b92
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
cmpq 0x20(%rcx), %rax
ja 0x488bc5
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rsp), %rcx
movb $0x0, (%rax,%rcx)
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rsp), %rcx
movb $0x0, (%rax,%rcx)
addq $0x18, %rsp
retq
nopw (%rax,%rax)