// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/rdj-strgraph.c
// Function: gt_strgraph_find_connecting_path_from_vertex
static int gt_strgraph_find_connecting_path_from_vertex(GtStrgraph *strgraph,
    GtStrgraphVnumAndDepth vd, GtStrgraphVEdgenum nofedges, GtUword to,
    GtStrgraphVtype to_vt, GtUword minlen, GtUword maxlen, bool first_path_only,
    GtContigsWriter *cw, GtLogger *logger)
{
  GtArray *path;
  GtStrgraphVEdgenum j;
  int found = -1;
  GtUword count_too_long = 0, count_too_short = 0,
          count_found = 0, count_circular = 0,
          count_redundant = 0;

  path = gt_array_new(sizeof (GtStrgraphVnumAndDepth));
  gt_array_add(path, vd);
  for (j = 0; j < nofedges; j++)
  {
    if (!GT_STRGRAPH_EDGE_IS_REDUCED(strgraph, vd.v, j))
    {
      int retcode;
      retcode = gt_strgraph_add_edge_to_connecting_path(strgraph, vd.v, j,
          to, to_vt, vd.d, minlen, maxlen, path, first_path_only,
          &count_too_long, &count_too_short, &count_found, &count_circular,
          &count_redundant, cw, logger);
      if (retcode == 0)
      {
        found = retcode;
        if (first_path_only)
          break;
      }
    }
  }
  gt_array_delete(path);
  gt_logger_log(logger, "Paths interrupted as too long:  "GT_WU,
      count_too_long);
  gt_logger_log(logger, "Paths interrupted as circular:  "GT_WU,
      count_circular);
  gt_logger_log(logger, "Paths interrupted as redundant: "GT_WU,
      count_redundant);
  gt_logger_log(logger, "Paths discarded as too short:   "GT_WU,
      count_too_short);
  gt_logger_log(logger, "Paths output:                   "GT_WU,
      count_found);
  return found;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %r9d, 0xc(%rsp)
movq %r8, 0x40(%rsp)
movq %rcx, %r12
movq %rdi, %r13
movb 0xa0(%rsp), %bl
leaq 0x48(%rsp), %r14
movq %rsi, (%r14)
movq %rdx, 0x8(%r14)
leaq 0x38(%rsp), %rax
andq $0x0, (%rax)
leaq 0x30(%rsp), %rax
andq $0x0, (%rax)
leaq 0x28(%rsp), %rax
andq $0x0, (%rax)
leaq 0x20(%rsp), %rax
andq $0x0, (%rax)
leaq 0x18(%rsp), %rax
andq $0x0, (%rax)
pushq $0x10
popq %rbp
movq %rbp, %rdi
callq 0x5809c
movq %rax, 0x10(%rsp)
movq %rax, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x5851d
pushq $-0x1
popq %rbp
xorl %r14d, %r14d
movzbl %bl, %ebx
cmpq %r14, %r12
je 0x183e88
movq 0x60(%r13), %rdi
movq 0x88(%r13), %r15
movq 0x48(%rsp), %rsi
callq 0x17ffcd
leaq (%rax,%r14), %rsi
movq %r15, %rdi
callq 0x17ffcd
movq %rax, %r15
movq 0x90(%r13), %rdi
callq 0x28a939
pushq $-0x1
popq %rdx
movl %eax, %ecx
shll %cl, %edx
notl %edx
addl %edx, %edx
movslq %edx, %rax
andq %r15, %rax
shrq %rax
cmpq 0x90(%r13), %rax
je 0x183e7e
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %r9
subq $0x8, %rsp
movq %r13, %rdi
movq %r14, %rdx
movq 0x48(%rsp), %rcx
movl 0x14(%rsp), %r8d
pushq 0xb8(%rsp)
pushq 0xb8(%rsp)
leaq 0x30(%rsp), %rax
pushq %rax
leaq 0x40(%rsp), %rax
pushq %rax
leaq 0x50(%rsp), %rax
pushq %rax
leaq 0x60(%rsp), %rax
pushq %rax
leaq 0x70(%rsp), %rax
pushq %rax
pushq %rbx
pushq 0x58(%rsp)
pushq 0xe8(%rsp)
pushq 0xe8(%rsp)
callq 0x18738b
addq $0x60, %rsp
testl %eax, %eax
sete %cl
cmovel %eax, %ebp
testb %bl, %cl
jne 0x183e86
incq %r14
jmp 0x183db6
xorl %ebp, %ebp
movq 0x10(%rsp), %rdi
callq 0x58eb9
movq 0x38(%rsp), %rdx
leaq 0x1cc97e(%rip), %rsi    # 0x35081c
movq 0xb0(%rsp), %rbx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x92e71
movq 0x20(%rsp), %rdx
leaq 0x1cc984(%rip), %rsi    # 0x350840
movq %rbx, %rdi
xorl %eax, %eax
callq 0x92e71
movq 0x18(%rsp), %rdx
leaq 0x1cc992(%rip), %rsi    # 0x350864
movq %rbx, %rdi
xorl %eax, %eax
callq 0x92e71
movq 0x30(%rsp), %rdx
leaq 0x1cc9a0(%rip), %rsi    # 0x350888
movq %rbx, %rdi
xorl %eax, %eax
callq 0x92e71
movq 0x28(%rsp), %rdx
leaq 0x1cc9ae(%rip), %rsi    # 0x3508ac
movq %rbx, %rdi
xorl %eax, %eax
callq 0x92e71
movl %ebp, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq