// File: /workspace/github_c_makefile_star2_O0/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 $0xf8, %rsp
movq 0x150(%rsp), %rax
movq 0x148(%rsp), %rax
movb 0x140(%rsp), %al
movq 0x138(%rsp), %r10
movq 0x130(%rsp), %r10
movq %rsi, 0xe8(%rsp)
movq %rdx, 0xf0(%rsp)
movq %rdi, 0xe0(%rsp)
movq %rcx, 0xd8(%rsp)
movq %r8, 0xd0(%rsp)
movl %r9d, 0xcc(%rsp)
andb $0x1, %al
movb %al, 0xcb(%rsp)
movl $0xffffffff, 0xb4(%rsp) # imm = 0xFFFFFFFF
movq $0x0, 0xa8(%rsp)
movq $0x0, 0xa0(%rsp)
movq $0x0, 0x98(%rsp)
movq $0x0, 0x90(%rsp)
movq $0x0, 0x88(%rsp)
movl $0x10, %edi
callq 0x80990
movq %rax, 0xc0(%rsp)
movq 0xc0(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
movl $0x10, %edx
callq 0x81100
movq $0x0, 0xb8(%rsp)
movq 0xb8(%rsp), %rax
cmpq 0xd8(%rsp), %rax
jae 0x297f30
movq 0xe0(%rsp), %rax
movq 0x88(%rax), %rax
movq %rax, 0x70(%rsp)
movq 0xe0(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0xe8(%rsp), %rsi
callq 0x290730
movq 0x70(%rsp), %rdi
movq %rax, %rsi
addq 0xb8(%rsp), %rsi
callq 0x290730
movq %rax, 0x78(%rsp)
movq 0xe0(%rsp), %rax
movq 0x90(%rax), %rdi
callq 0x46ec80
movl %eax, %ecx
movq 0x78(%rsp), %rax
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
subl $0x1, %ecx
shll %ecx
movslq %ecx, %rcx
andq %rcx, %rax
shrq %rax
movq 0xe0(%rsp), %rcx
cmpq 0x90(%rcx), %rax
jne 0x297dfc
movb $0x1, %al
testb $0x1, %al
jne 0x297f15
jmp 0x297e08
xorl %eax, %eax
testb $0x1, %al
jne 0x297f15
jmp 0x297e08
movq 0xe0(%rsp), %rdi
movq 0xe8(%rsp), %rsi
movq 0xb8(%rsp), %rdx
movq 0xd0(%rsp), %rcx
movl 0xcc(%rsp), %r8d
movq 0xf0(%rsp), %r9
movq 0x130(%rsp), %rax
movq 0x138(%rsp), %r10
movq %r10, 0x60(%rsp)
movq 0xc0(%rsp), %r13
movb 0xcb(%rsp), %bpl
movq 0x148(%rsp), %r10
movq 0x150(%rsp), %r11
movq %r11, 0x68(%rsp)
leaq 0xa8(%rsp), %r12
leaq 0xa0(%rsp), %r15
leaq 0x98(%rsp), %r14
leaq 0x90(%rsp), %rbx
leaq 0x88(%rsp), %r11
andb $0x1, %bpl
movq %rax, (%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x68(%rsp), %rax
movq %r13, 0x10(%rsp)
movzbl %bpl, %ebp
movl %ebp, 0x18(%rsp)
movq %r12, 0x20(%rsp)
movq %r15, 0x28(%rsp)
movq %r14, 0x30(%rsp)
movq %rbx, 0x38(%rsp)
movq %r11, 0x40(%rsp)
movq %r10, 0x48(%rsp)
movq %rax, 0x50(%rsp)
callq 0x29db90
movl %eax, 0x84(%rsp)
cmpl $0x0, 0x84(%rsp)
jne 0x297f13
movl 0x84(%rsp), %eax
movl %eax, 0xb4(%rsp)
testb $0x1, 0xcb(%rsp)
je 0x297f11
jmp 0x297f30
jmp 0x297f13
jmp 0x297f15
jmp 0x297f17
movq 0xb8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xb8(%rsp)
jmp 0x297d50
movq 0xc0(%rsp), %rdi
callq 0x81f80
movq 0x150(%rsp), %rdi
movq 0xa8(%rsp), %rdx
leaq 0x2eb221(%rip), %rsi    # 0x583175
movb $0x0, %al
callq 0xe7cd0
movq 0x150(%rsp), %rdi
movq 0x90(%rsp), %rdx
leaq 0x2eb227(%rip), %rsi    # 0x583199
movb $0x0, %al
callq 0xe7cd0
movq 0x150(%rsp), %rdi
movq 0x88(%rsp), %rdx
leaq 0x2eb22d(%rip), %rsi    # 0x5831bd
movb $0x0, %al
callq 0xe7cd0
movq 0x150(%rsp), %rdi
movq 0xa0(%rsp), %rdx
leaq 0x2eb233(%rip), %rsi    # 0x5831e1
movb $0x0, %al
callq 0xe7cd0
movq 0x150(%rsp), %rdi
movq 0x98(%rsp), %rdx
leaq 0x2eb239(%rip), %rsi    # 0x583205
movb $0x0, %al
callq 0xe7cd0
movl 0xb4(%rsp), %eax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)