// File: /workspace/github_c_makefile_star2_O1/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 $0x48, %rsp
movl %r9d, 0x4(%rsp)
movq %r8, 0x30(%rsp)
movq %rcx, %r12
movq %rdi, %r13
leaq 0x38(%rsp), %r14
movq %rsi, (%r14)
movq %rdx, 0x8(%r14)
xorl %eax, %eax
movq %rax, 0x28(%rsp)
movq %rax, 0x20(%rsp)
movq %rax, 0x18(%rsp)
movq %rax, 0x10(%rsp)
movq %rax, 0x8(%rsp)
movl $0x10, %edi
callq 0xd46fc
movq %rax, %rbx
movl $0x10, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0xd49ce
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %r12, %r12
je 0x1de6b5
xorl %r14d, %r14d
movq 0x60(%r13), %rax
testq %rax, %rax
je 0x1de749
movq 0x38(%rsp), %rsi
cmpq %rsi, 0x8(%rax)
jbe 0x1de749
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1de749
movq 0x88(%r13), %r15
movq (%rax), %rdi
imulq %rdx, %rsi
callq 0x2fcc2c
testq %r15, %r15
je 0x1de744
addq %r14, %rax
cmpq %rax, 0x8(%r15)
jbe 0x1de744
movl 0x10(%r15), %edx
cmpq $0x41, %rdx
jae 0x1de744
movq (%r15), %rdi
imulq %rdx, %rax
movq %rax, %rsi
callq 0x2fcc2c
movq %rax, %r15
movq 0x90(%r13), %rdi
callq 0x2f9d41
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %eax, %ecx
shll %cl, %edx
notl %edx
addl %edx, %edx
movslq %edx, %rax
andq %r15, %rax
shrq %rax
cmpq 0x90(%r13), %rax
je 0x1de6a9
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %r9
subq $0x8, %rsp
movzbl 0x98(%rsp), %r15d
movq %r13, %rdi
movq %r14, %rdx
movq 0x38(%rsp), %rcx
movl 0xc(%rsp), %r8d
pushq 0xa8(%rsp)
pushq 0xa8(%rsp)
leaq 0x20(%rsp), %rax
pushq %rax
leaq 0x30(%rsp), %rax
pushq %rax
leaq 0x40(%rsp), %rax
pushq %rax
leaq 0x50(%rsp), %rax
pushq %rax
leaq 0x60(%rsp), %rax
pushq %rax
pushq %r15
pushq %rbx
pushq 0xd8(%rsp)
pushq 0xd8(%rsp)
callq 0x1e2b6c
addq $0x60, %rsp
testl %eax, %eax
sete %cl
cmovel %eax, %ebp
testb %r15b, %cl
jne 0x1de6b5
incq %r14
cmpq %r14, %r12
jne 0x1de592
movq %rbx, %rdi
callq 0xd4ef4
movq 0x28(%rsp), %rdx
leaq 0x1db30b(%rip), %rsi    # 0x3b99d4
movq 0xa0(%rsp), %rbx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10906e
movq 0x10(%rsp), %rdx
leaq 0x1db311(%rip), %rsi    # 0x3b99f8
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10906e
movq 0x8(%rsp), %rdx
leaq 0x1db31f(%rip), %rsi    # 0x3b9a1c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10906e
movq 0x20(%rsp), %rdx
leaq 0x1db32d(%rip), %rsi    # 0x3b9a40
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10906e
movq 0x18(%rsp), %rdx
leaq 0x1db33b(%rip), %rsi    # 0x3b9a64
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10906e
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x71cec
callq 0x71d25