// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/rdj-contigs-writer.c
// Function: gt_contigs_writer_start
void gt_contigs_writer_start(GtContigsWriter *contigs_writer,
    GtUword seqnum)
{
  GtUword pos, nofchars, i;
  gt_assert(contigs_writer != NULL);
  pos = gt_encseq_seqstartpos(contigs_writer->reads, seqnum);
  nofchars = gt_encseq_seqlength(contigs_writer->reads, seqnum);
  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++;
  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));
  if (contigs_writer->rcn != NULL)
  {
    contigs_writer->depthinfo.firstread_copynum = (float)contigs_writer->rcn[
      GT_CONTIGS_WRITER_READNUM(seqnum, contigs_writer->nofseqs)];
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x178ff4
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x74d9c
movq %rax, %r15
movq (%rbx), %rdi
movq %r14, (%rsp)
movq %r14, %rsi
callq 0x75173
movq %rax, %r12
leaq 0x18536e(%rip), %r14    # 0x2fe234
subq $0x1, %r12
jb 0x178f36
movq 0x30(%rbx), %rsi
cmpq %rsi, 0x38(%rbx)
jae 0x178edc
movq 0x28(%rbx), %rbp
jmp 0x178f03
addq $0x4000, %rsi           # imm = 0x4000
movq %rsi, 0x30(%rbx)
movq 0x28(%rbx), %rdi
leaq 0x1d5328(%rip), %rdx    # 0x34e21a
movl $0x11f, %ecx            # imm = 0x11F
callq 0x93472
movq %rax, %rbp
movq %rax, 0x28(%rbx)
testq %rbp, %rbp
je 0x178fbc
movq (%rbx), %rdi
movq 0x38(%rbx), %r13
leaq 0x1(%r13), %rax
movq %rax, 0x38(%rbx)
movq %r15, %rsi
xorl %edx, %edx
callq 0x70bf6
movzbl %al, %eax
movb (%rax,%r14), %al
movb %al, (%rbp,%r13)
incq %r15
jmp 0x178ec6
incq 0x78(%rbx)
movq 0x48(%rbx), %rdi
movq 0x60(%rbx), %rsi
movq %rsi, %rax
shrq %rax
movq (%rsp), %r15
movq %r15, %r14
notq %r14
addq %r14, %rsi
cmpq %r15, %rax
cmovaq %r15, %rsi
callq 0xace26
movq 0x48(%rbx), %rdi
movq 0x60(%rbx), %rax
shrq %rax
xorl %ecx, %ecx
cmpq %r15, %rax
seta %cl
leal (%rcx,%rcx,2), %esi
addl $0x42, %esi
callq 0xaced9
movq 0x98(%rbx), %rax
testq %rax, %rax
je 0x178fad
movq 0x60(%rbx), %rcx
addq %rcx, %r14
shrq %rcx
cmpq %r15, %rcx
cmovaq %r15, %r14
movzbl (%rax,%r14), %eax
cvtsi2ss %eax, %xmm0
movss %xmm0, 0x88(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2befa5(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x16c046(%rip), %rsi    # 0x2e5013
leaq 0x1d5308(%rip), %rdx    # 0x34e2dc
leaq 0x1d5335(%rip), %rcx    # 0x34e310
leaq 0x1d5238(%rip), %r8     # 0x34e21a
movl $0x11f, %r9d            # imm = 0x11F
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x2bef6d(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x16c00e(%rip), %rsi    # 0x2e5013
leaq 0x1d5241(%rip), %rdx    # 0x34e24d
leaq 0x1d52fd(%rip), %rcx    # 0x34e310
leaq 0x1d5200(%rip), %r8     # 0x34e21a
movl $0x118, %r9d            # imm = 0x118
jmp 0x178fe8