// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/rdj-contigs-graph.c
// Function: gt_contigs_graph_output_paths
void gt_contigs_graph_output_paths(GtContigsGraph *cg, FILE *fp)
{
  GtContigpathElem cnum;
  uint64_t unum;
  GtContigpathElem elems[2];
  GtContigsGraphSeqUnit *unit;
  gt_assert(cg != NULL);
  gt_assert(fp != NULL);
  elems[0] = 0;
  gt_log_log("nof_simple_v: "GT_WU"", cg->nof_simple_v);
  gt_log_log("nof_v: "GT_WU"", cg->nof_v);
  for (cnum = 0; cnum < (uint32_t)cg->nof_simple_v; cnum++)
  {
    if (cg->v_m[cnum].deleted || cg->v_m[cnum].optional)
      continue;
    elems[1] = cnum;
    (void)gt_xfwrite(&elems, sizeof (*elems), (size_t)2, fp);
  }
  for (cnum = (uint32_t)cg->nof_simple_v; cnum < (uint32_t)cg->nof_v; cnum++)
  {
    if (cg->v_m[cnum].deleted || cg->v_m[cnum].optional)
      continue;
    for (unum = 0; unum < cg->v_cmp[cnum - cg->nof_simple_v].deg; unum++)
    {
      unit = cg->units + cg->v_cmp[cnum - cg->nof_simple_v].ptr + unum;
      gt_assert(cg->v_d[unit->seqnum].length >= unit->offset);
      elems[0] = (unum == 0)
        ? 0
        : (uint32_t) cg->v_d[unit->seqnum].length - unit->offset;
      elems[1] = unit->revcomp
        ? (uint32_t) GT_MULT2(cg->nof_simple_v) - 1 - unit->seqnum
        : (uint32_t) unit->seqnum;
      (void)gt_xfwrite(&elems, sizeof (*elems), (size_t)2, fp);
    }
  }
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
cmpq $0x0, 0x40(%rsp)
jne 0x27d22e
movq 0x3beda3(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x298e0c(%rip), %rsi    # 0x516013
leaq 0x302afa(%rip), %rdx    # 0x57fd08
leaq 0x302afe(%rip), %rcx    # 0x57fd13
leaq 0x302b15(%rip), %r8     # 0x57fd31
movl $0xc8, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x27d230
jmp 0x27d232
cmpq $0x0, 0x38(%rsp)
jne 0x27d272
movq 0x3bed5f(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x298dc8(%rip), %rsi    # 0x516013
leaq 0x2ce02e(%rip), %rdx    # 0x54b280
leaq 0x302aba(%rip), %rcx    # 0x57fd13
leaq 0x302ad1(%rip), %r8     # 0x57fd31
movl $0xc9, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x27d274
movl $0x0, 0x20(%rsp)
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rsi
leaq 0x302ac3(%rip), %rdi    # 0x57fd4f
movb $0x0, %al
callq 0xe7740
movq 0x40(%rsp), %rax
movq (%rax), %rsi
leaq 0x302abf(%rip), %rdi    # 0x57fd61
movb $0x0, %al
callq 0xe7740
movl $0x0, 0x34(%rsp)
movl 0x34(%rsp), %eax
movq 0x40(%rsp), %rcx
movq 0x10(%rcx), %rcx
cmpl %ecx, %eax
jae 0x27d320
movq 0x40(%rsp), %rax
movq 0x38(%rax), %rax
movl 0x34(%rsp), %ecx
movb (%rax,%rcx), %al
andb $0x1, %al
testb $0x1, %al
jne 0x27d2f0
movq 0x40(%rsp), %rax
movq 0x38(%rax), %rax
movl 0x34(%rsp), %ecx
movb (%rax,%rcx), %al
shrb %al
andb $0x1, %al
testb $0x1, %al
je 0x27d2f2
jmp 0x27d313
movl 0x34(%rsp), %eax
movl %eax, 0x24(%rsp)
movq 0x38(%rsp), %rcx
leaq 0x20(%rsp), %rdi
movl $0x4, %esi
movl $0x2, %edx
callq 0x126d30
movl 0x34(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x34(%rsp)
jmp 0x27d2b1
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movl %eax, 0x34(%rsp)
movl 0x34(%rsp), %eax
movq 0x40(%rsp), %rcx
movq (%rcx), %rcx
cmpl %ecx, %eax
jae 0x27d547
movq 0x40(%rsp), %rax
movq 0x38(%rax), %rax
movl 0x34(%rsp), %ecx
movb (%rax,%rcx), %al
andb $0x1, %al
testb $0x1, %al
jne 0x27d36f
movq 0x40(%rsp), %rax
movq 0x38(%rax), %rax
movl 0x34(%rsp), %ecx
movb (%rax,%rcx), %al
shrb %al
andb $0x1, %al
testb $0x1, %al
je 0x27d374
jmp 0x27d537
movq $0x0, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq 0x40(%rsp), %rcx
movq 0x40(%rcx), %rcx
movl 0x34(%rsp), %edx
movq 0x40(%rsp), %rsi
subq 0x10(%rsi), %rdx
movq (%rcx,%rdx,8), %rcx
andq $0xffff, %rcx           # imm = 0xFFFF
cmpq %rcx, %rax
jae 0x27d535
movq 0x40(%rsp), %rax
movq 0x58(%rax), %rax
movq 0x40(%rsp), %rcx
movq 0x40(%rcx), %rcx
movl 0x34(%rsp), %edx
movq 0x40(%rsp), %rsi
subq 0x10(%rsi), %rdx
movq (%rcx,%rdx,8), %rcx
shrq $0x10, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x28(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, 0x18(%rsp)
movq 0x40(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x18(%rsp), %rdx
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
andq (%rdx), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq 0x18(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jae 0x27d454
movq 0x3beb7d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x298be6(%rip), %rsi    # 0x516013
leaq 0x302938(%rip), %rdx    # 0x57fd6c
leaq 0x3028d8(%rip), %rcx    # 0x57fd13
leaq 0x3028ef(%rip), %r8     # 0x57fd31
movl $0xdb, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x27d456
cmpq $0x0, 0x28(%rsp)
jne 0x27d467
xorl %eax, %eax
movq %rax, 0x10(%rsp)
jmp 0x27d49d
movq 0x40(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x18(%rsp), %rdx
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
andq (%rdx), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movl %eax, %eax
movq 0x18(%rsp), %rcx
subq 0x8(%rcx), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movl %eax, 0x20(%rsp)
movq 0x18(%rsp), %rax
movq (%rax), %rax
shrq $0x3f, %rax
testq $0x1, %rax
je 0x27d4e7
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
shlq %rax
subl $0x1, %eax
movl %eax, %eax
movq 0x18(%rsp), %rdx
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
andq (%rdx), %rcx
subq %rcx, %rax
movq %rax, 0x8(%rsp)
jmp 0x27d500
movq 0x18(%rsp), %rcx
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
andq (%rcx), %rax
movl %eax, %eax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movl %eax, 0x24(%rsp)
movq 0x38(%rsp), %rcx
leaq 0x20(%rsp), %rdi
movl $0x4, %esi
movl $0x2, %edx
callq 0x126d30
movq 0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x28(%rsp)
jmp 0x27d37d
jmp 0x27d537
movl 0x34(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x34(%rsp)
jmp 0x27d32d
addq $0x48, %rsp
retq
nopl (%rax)