// File: /workspace/github_c_makefile_star2_O3/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, (%rsp)
movq %r8, 0x30(%rsp)
movq %rcx, %r13
movq %rdi, %rbx
leaq 0x38(%rsp), %rbp
movq %rsi, (%rbp)
movq %rdx, 0x8(%rbp)
xorl %r15d, %r15d
movq %r15, 0x28(%rsp)
movq %r15, 0x20(%rsp)
movq %r15, 0x18(%rsp)
movq %r15, 0x10(%rsp)
movq %r15, 0x8(%rsp)
movl $0x10, %edi
callq 0xd214c
movq %rax, %r14
movl $0x10, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0xd2410
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %r13, %r13
je 0x1d4f24
xorl %r15d, %r15d
movq 0x60(%rbx), %rax
testq %rax, %rax
je 0x1d4fdb
movq 0x38(%rsp), %rsi
cmpq %rsi, 0x8(%rax)
jbe 0x1d4fdb
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1d4fdb
movq 0x88(%rbx), %r12
movq (%rax), %rdi
imulq %rdx, %rsi
callq 0x2f37dc
testq %r12, %r12
je 0x1d4fe0
addq %r15, %rax
cmpq %rax, 0x8(%r12)
jbe 0x1d4fe0
movl 0x10(%r12), %edx
cmpq $0x41, %rdx
jae 0x1d4fe0
movq (%r12), %rdi
imulq %rdx, %rax
movq %rax, %rsi
callq 0x2f37dc
movq %rax, %r12
movq 0x90(%rbx), %rdi
callq 0x2f09dd
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %eax, %ecx
shll %cl, %edx
notl %edx
addl %edx, %edx
movslq %edx, %rax
andq %r12, %rax
shrq %rax
cmpq 0x90(%rbx), %rax
je 0x1d4f16
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %r9
subq $0x8, %rsp
movzbl 0x98(%rsp), %r12d
movq %rbx, %rdi
movq %r15, %rdx
movq 0x38(%rsp), %rcx
movl 0x8(%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 %r12
pushq %r14
pushq 0xd8(%rsp)
pushq 0xd8(%rsp)
callq 0x1d932a
addq $0x60, %rsp
testl %eax, %eax
sete %cl
cmovel %eax, %ebp
testb %r12b, %cl
jne 0x1d4f36
incq %r15
cmpq %r15, %r13
jne 0x1d4dfb
jmp 0x1d4f38
movq $0x0, (%rsp)
xorl %r12d, %r12d
xorl %r13d, %r13d
xorl %ebx, %ebx
jmp 0x1d4f55
xorl %ebp, %ebp
movq 0x28(%rsp), %rbx
movq 0x10(%rsp), %r13
movq 0x8(%rsp), %r12
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
movq 0x18(%rsp), %r15
movq %r14, %rdi
callq 0xd2938
leaq 0x1db470(%rip), %rsi    # 0x3b03d4
movq 0xa0(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x103fe1
leaq 0x1db478(%rip), %rsi    # 0x3b03f8
movq %r14, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x103fe1
leaq 0x1db488(%rip), %rsi    # 0x3b041c
movq %r14, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x103fe1
leaq 0x1db498(%rip), %rsi    # 0x3b0440
movq %r14, %rdi
movq (%rsp), %rdx
xorl %eax, %eax
callq 0x103fe1
leaq 0x1db4a7(%rip), %rsi    # 0x3b0464
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x103fe1
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x7011e
callq 0x700e5