// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/rdj-contigs-writer.c
// Function: gt_contigs_writer_append
void gt_contigs_writer_append(GtContigsWriter *contigs_writer,
    GtUword seqnum, GtUword nofchars)
{
  GtUword pos, i;
  gt_assert(contigs_writer != NULL);
  pos = gt_encseq_seqstartpos(contigs_writer->reads, seqnum) +
      gt_encseq_seqlength(contigs_writer->reads, seqnum) - nofchars;
  for (i = 0; i < nofchars; i++, pos++)
  {
    char *c;
    GT_GETNEXTFREEINARRAY(c, &contigs_writer->contig, char,
        GT_CONTIGS_WRITER_CONTIG_INC);
    *c = gt_encseq_get_encoded_char_nospecial(contigs_writer->reads, pos,
        GT_READMODE_FORWARD)["acgt"];
  }
  contigs_writer->depthinfo.depth++;
  if (contigs_writer->rcn != NULL)
  {
    contigs_writer->depthinfo.internal_copynum += contigs_writer->rcn[
      GT_CONTIGS_WRITER_READNUM(seqnum, contigs_writer->nofseqs)];
  }
  if (contigs_writer->show_paths)
  {
    gt_str_append_cstr(contigs_writer->path_desc, "-(");
    gt_str_append_uword(contigs_writer->path_desc, nofchars);
    gt_str_append_cstr(contigs_writer->path_desc, ")->");
    gt_str_append_uword(contigs_writer->path_desc,
        GT_CONTIGS_WRITER_READNUM(seqnum, contigs_writer->nofseqs));
    gt_str_append_char(contigs_writer->path_desc,
        GT_CONTIGS_WRITER_LETTER(seqnum, contigs_writer->nofseqs));
  }
  else
  {
    contigs_writer->lastseqnum = seqnum;
  }
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdx, 0x50(%rsp)
cmpq $0x0, 0x60(%rsp)
jne 0x2824a3
movq 0x3b9b2e(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x293b97(%rip), %rsi    # 0x516013
leaq 0x2fe572(%rip), %rdx    # 0x5809f5
leaq 0x2fe5e1(%rip), %rcx    # 0x580a6b
leaq 0x2fe531(%rip), %r8     # 0x5809c2
movl $0xf3, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2824a5
movq 0x60(%rsp), %rax
movq (%rax), %rdi
movq 0x58(%rsp), %rsi
callq 0xb0530
movq %rax, 0x28(%rsp)
movq 0x60(%rsp), %rax
movq (%rax), %rdi
movq 0x58(%rsp), %rsi
callq 0xb09f0
movq %rax, %rcx
movq 0x28(%rsp), %rax
addq %rcx, %rax
subq 0x50(%rsp), %rax
movq %rax, 0x48(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x40(%rsp), %rax
cmpq 0x50(%rsp), %rax
jae 0x282667
jmp 0x2824fe
jmp 0x282500
movq 0x60(%rsp), %rax
movq 0x38(%rax), %rax
addq $0x0, %rax
movq 0x60(%rsp), %rcx
cmpq 0x30(%rcx), %rax
jb 0x2825ad
movq $0x4000, 0x30(%rsp)     # imm = 0x4000
xorl %eax, %eax
cmpq 0x30(%rsp), %rax
jbe 0x282566
movq 0x3b9a6b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x293ad4(%rip), %rsi    # 0x516013
leaq 0x296c61(%rip), %rdx    # 0x5191a7
leaq 0x2fe51e(%rip), %rcx    # 0x580a6b
leaq 0x2fe46e(%rip), %r8     # 0x5809c2
movl $0xfa, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x282568
movq 0x30(%rsp), %rcx
movq 0x60(%rsp), %rax
addq 0x30(%rax), %rcx
movq %rcx, 0x30(%rax)
movq 0x60(%rsp), %rax
movq 0x28(%rax), %rdi
movq 0x60(%rsp), %rax
movq 0x30(%rax), %rsi
shlq $0x0, %rsi
leaq 0x2fe42b(%rip), %rdx    # 0x5809c2
movl $0xfa, %ecx
callq 0xe8540
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x28(%rax)
jmp 0x2825af
movq 0x60(%rsp), %rax
cmpq $0x0, 0x28(%rax)
jne 0x2825f3
movq 0x3b99de(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x293a47(%rip), %rsi    # 0x516013
leaq 0x2fe4b1(%rip), %rdx    # 0x580a84
leaq 0x2fe491(%rip), %rcx    # 0x580a6b
leaq 0x2fe3e1(%rip), %r8     # 0x5809c2
movl $0xfa, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2825f5
jmp 0x2825f7
movq 0x60(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x60(%rsp), %rdx
movq 0x38(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x38(%rdx)
addq %rcx, %rax
movq %rax, 0x38(%rsp)
movq 0x60(%rsp), %rax
movq (%rax), %rdi
movq 0x48(%rsp), %rsi
xorl %edx, %edx
callq 0xaa7f0
movzbl %al, %eax
movl %eax, %ecx
leaq 0x2ace00(%rip), %rax    # 0x52f43c
movb (%rax,%rcx), %cl
movq 0x38(%rsp), %rax
movb %cl, (%rax)
movq 0x40(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x40(%rsp)
movq 0x48(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x48(%rsp)
jmp 0x2824ec
movq 0x60(%rsp), %rax
movq 0x78(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x78(%rax)
movq 0x60(%rsp), %rax
cmpq $0x0, 0x98(%rax)
je 0x2826f8
movq 0x60(%rsp), %rax
movq 0x98(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x58(%rsp), %rax
movq 0x60(%rsp), %rcx
movq 0x60(%rcx), %rcx
shrq %rcx
cmpq %rcx, %rax
jae 0x2826ba
movq 0x58(%rsp), %rax
movq %rax, 0x18(%rsp)
jmp 0x2826d1
movq 0x60(%rsp), %rax
movq 0x60(%rax), %rax
subq 0x58(%rsp), %rax
subq $0x1, %rax
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq 0x18(%rsp), %rcx
movzbl (%rax,%rcx), %eax
cvtsi2ss %eax, %xmm0
movq 0x60(%rsp), %rax
addss 0x8c(%rax), %xmm0
movss %xmm0, 0x8c(%rax)
movq 0x60(%rsp), %rax
testb $0x1, 0x10(%rax)
je 0x2827ce
movq 0x60(%rsp), %rax
movq 0x48(%rax), %rdi
leaq 0x2fe39a(%rip), %rsi    # 0x580ab1
callq 0x11d550
movq 0x60(%rsp), %rax
movq 0x48(%rax), %rdi
movq 0x50(%rsp), %rsi
callq 0x11d930
movq 0x60(%rsp), %rax
movq 0x48(%rax), %rdi
leaq 0x2fe375(%rip), %rsi    # 0x580ab4
callq 0x11d550
movq 0x60(%rsp), %rax
movq 0x48(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x58(%rsp), %rax
movq 0x60(%rsp), %rcx
movq 0x60(%rcx), %rcx
shrq %rcx
cmpq %rcx, %rax
jae 0x282774
movq 0x58(%rsp), %rax
movq %rax, 0x8(%rsp)
jmp 0x28278b
movq 0x60(%rsp), %rax
movq 0x60(%rax), %rax
subq 0x58(%rsp), %rax
subq $0x1, %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x11d930
movq 0x60(%rsp), %rax
movq 0x48(%rax), %rdi
movq 0x58(%rsp), %rdx
movq 0x60(%rsp), %rax
movq 0x60(%rax), %rsi
shrq %rsi
movl $0x42, %eax
movl $0x45, %ecx
cmpq %rsi, %rdx
cmovbl %ecx, %eax
movsbl %al, %esi
callq 0x11da70
jmp 0x2827dc
movq 0x58(%rsp), %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x58(%rax)
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)