// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/hpol_processor.c
// Function: gt_hpol_processor_output_segment
static void gt_hpol_processor_output_segment(GtAlignedSegment *as,
    bool may_be_gapped, GtFile *outfp, const char *desc)
{
  GtUword slen;
  if (may_be_gapped)
    gt_aligned_segment_ungap_seq_and_qual(as);
  slen = (GtUword)strlen(gt_aligned_segment_seq(as));
  gt_assert(slen == (GtUword)strlen(gt_aligned_segment_qual(as)));
  if (gt_aligned_segment_is_reverse(as))
  {
    GtError *err = gt_error_new();
    char *q = gt_aligned_segment_qual(as), tmp;
    GtUword i;
    for (i = 0; i < (slen + 1UL) >> 1; i++)
    {
      tmp = q[i];
      q[i] = q[slen - i - 1UL];
      q[slen - i - 1UL] = tmp;
    }
    gt_assert((GtUword)strlen(gt_aligned_segment_qual(as)) == slen);
    if (gt_reverse_complement(gt_aligned_segment_seq(as), slen, err) != 0)
    {
      fprintf(stderr, "error: %s", gt_error_get(err));
      exit(EXIT_FAILURE);
    }
    gt_error_delete(err);
  }
  gt_fastq_show_entry((desc != NULL) ? desc :
      gt_aligned_segment_description(as), gt_aligned_segment_seq(as),
      gt_aligned_segment_qual(as), slen, 0, false, outfp);
}

// Assembly:
subq $0x78, %rsp
movb %sil, %al
movq %rdi, 0x70(%rsp)
andb $0x1, %al
movb %al, 0x6f(%rsp)
movq %rdx, 0x60(%rsp)
movq %rcx, 0x58(%rsp)
testb $0x1, 0x6f(%rsp)
je 0x18fa1d
movq 0x70(%rsp), %rdi
callq 0x4889b0
movq 0x70(%rsp), %rdi
callq 0x488210
movq %rax, %rdi
callq 0x192b0
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x70(%rsp), %rdi
callq 0x488260
movq %rax, %rdi
callq 0x192b0
movq %rax, %rcx
movq 0x28(%rsp), %rax
cmpq %rcx, %rax
je 0x18fa95
movq 0x4ac53c(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3865a5(%rip), %rsi    # 0x516013
leaq 0x3c6516(%rip), %rdx    # 0x555f8b
leaq 0x3c6544(%rip), %rcx    # 0x555fc0
leaq 0x3c627d(%rip), %r8     # 0x555d00
movl $0x71, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x18fa97
movq 0x70(%rsp), %rdi
callq 0x4883f0
testb $0x1, %al
jne 0x18faaa
jmp 0x18fbf9
callq 0xd88a0
movq %rax, 0x48(%rsp)
movq 0x70(%rsp), %rdi
callq 0x488260
movq %rax, 0x40(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq 0x50(%rsp), %rcx
addq $0x1, %rcx
shrq %rcx
cmpq %rcx, %rax
jae 0x18fb40
movq 0x40(%rsp), %rax
movq 0x30(%rsp), %rcx
movb (%rax,%rcx), %al
movb %al, 0x3f(%rsp)
movq 0x40(%rsp), %rax
movq 0x50(%rsp), %rcx
subq 0x30(%rsp), %rcx
subq $0x1, %rcx
movb (%rax,%rcx), %dl
movq 0x40(%rsp), %rax
movq 0x30(%rsp), %rcx
movb %dl, (%rax,%rcx)
movb 0x3f(%rsp), %dl
movq 0x40(%rsp), %rax
movq 0x50(%rsp), %rcx
subq 0x30(%rsp), %rcx
subq $0x1, %rcx
movb %dl, (%rax,%rcx)
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
jmp 0x18facc
jmp 0x18fb42
movq 0x70(%rsp), %rdi
callq 0x488260
movq %rax, %rdi
callq 0x192b0
cmpq 0x50(%rsp), %rax
je 0x18fb93
movq 0x4ac43e(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3864a7(%rip), %rsi    # 0x516013
leaq 0x3c646e(%rip), %rdx    # 0x555fe1
leaq 0x3c6446(%rip), %rcx    # 0x555fc0
leaq 0x3c617f(%rip), %r8     # 0x555d00
movl $0x7d, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x18fb95
movq 0x70(%rsp), %rdi
callq 0x488210
movq %rax, %rdi
movq 0x50(%rsp), %rsi
movq 0x48(%rsp), %rdx
callq 0x1cb4f0
cmpl $0x0, %eax
je 0x18fbef
movq 0x4ac3e3(%rip), %rax    # 0x63bfa0
movq (%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x48(%rsp), %rdi
callq 0xd8b20
movq 0x20(%rsp), %rdi
movq %rax, %rdx
leaq 0x3be9b0(%rip), %rsi    # 0x54e58e
movb $0x0, %al
callq 0x199f0
movl $0x1, %edi
callq 0x19890
movq 0x48(%rsp), %rdi
callq 0xd8c80
cmpq $0x0, 0x58(%rsp)
je 0x18fc0d
movq 0x58(%rsp), %rax
movq %rax, 0x18(%rsp)
jmp 0x18fc1c
movq 0x70(%rsp), %rdi
callq 0x488bd0
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x70(%rsp), %rdi
callq 0x488210
movq %rax, 0x10(%rsp)
movq 0x70(%rsp), %rdi
callq 0x488260
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %rax, %rdx
movq 0x50(%rsp), %rcx
movq 0x60(%rsp), %rax
xorl %r8d, %r8d
xorl %r9d, %r9d
movq %rax, (%rsp)
callq 0xdcef0
addq $0x78, %rsp
retq
nopw (%rax,%rax)