// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/aligned_segment.c
// Function: gt_aligned_segment_fetch_s_and_q_from_sa
static void gt_aligned_segment_fetch_s_and_q_from_sa(GtAlignedSegment *as,
    GtSamAlignment *sa)
{
  GtUword alen = as->alen, slen = gt_sam_alignment_read_length(sa);
  GtUchar *s = (GtUchar*) (as->s + (alen - slen)),
          *q = (GtUchar*) (as->q + (alen - slen));
  GtAlphabet *alpha;
  gt_sam_alignment_sequence_external_buffer(sa, &s, &alen);
  gt_assert(as->alen == alen);
  gt_assert(s == (GtUchar*) (as->s + (alen - slen)));
  gt_sam_alignment_qualitystring_external_buffer(sa, &q,
      &alen);
  gt_assert(as->alen == alen);
  gt_assert(q == (GtUchar*) (as->q + (alen - slen)));
  alpha = gt_alphabet_new_dna();
  gt_alphabet_decode_seq_to_cstr(alpha, (char*) s, s, slen);
  gt_alphabet_delete(alpha);
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq 0x30(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rdi
callq 0x1ce180
movq %rax, 0x18(%rsp)
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq 0x20(%rsp), %rcx
subq 0x18(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rsp), %rcx
subq 0x18(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0x28(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x20(%rsp), %rdx
callq 0x1ce3a0
movq 0x30(%rsp), %rax
movq 0x20(%rax), %rax
cmpq 0x20(%rsp), %rax
je 0x48919c
movq 0x1b2e35(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x8ce9e(%rip), %rsi     # 0x516013
leaq 0x128952(%rip), %rdx    # 0x5b1ace
leaq 0x12895c(%rip), %rcx    # 0x5b1adf
leaq 0x128566(%rip), %r8     # 0x5b16f0
movl $0x44, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x48919e
jmp 0x4891a0
movq 0x10(%rsp), %rax
movq 0x30(%rsp), %rcx
movq (%rcx), %rcx
movq 0x20(%rsp), %rdx
subq 0x18(%rsp), %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
je 0x4891f7
movq 0x1b2dda(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x8ce43(%rip), %rsi     # 0x516013
leaq 0x128931(%rip), %rdx    # 0x5b1b08
leaq 0x128901(%rip), %rcx    # 0x5b1adf
leaq 0x12850b(%rip), %r8     # 0x5b16f0
movl $0x45, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4891f9
movq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x20(%rsp), %rdx
callq 0x1ce620
movq 0x30(%rsp), %rax
movq 0x20(%rax), %rax
cmpq 0x20(%rsp), %rax
je 0x489255
movq 0x1b2d7c(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x8cde5(%rip), %rsi     # 0x516013
leaq 0x128899(%rip), %rdx    # 0x5b1ace
leaq 0x1288a3(%rip), %rcx    # 0x5b1adf
leaq 0x1284ad(%rip), %r8     # 0x5b16f0
movl $0x48, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x489257
jmp 0x489259
movq 0x8(%rsp), %rax
movq 0x30(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq 0x20(%rsp), %rdx
subq 0x18(%rsp), %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
je 0x4892b1
movq 0x1b2d20(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x8cd89(%rip), %rsi     # 0x516013
leaq 0x12889f(%rip), %rdx    # 0x5b1b30
leaq 0x128847(%rip), %rcx    # 0x5b1adf
leaq 0x128451(%rip), %r8     # 0x5b16f0
movl $0x49, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4892b3
callq 0x7e4b0
movq %rax, (%rsp)
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rcx
callq 0x7eeb0
movq (%rsp), %rdi
callq 0x7e3d0
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)