// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/rdj-strgraph.c
// Function: gt_strgraph_redwithrc
GtUword gt_strgraph_redwithrc(GtStrgraph *strgraph, bool show_progressbar)
{
  GtStrgraphVnum vnum;
  GtStrgraphVEdgenum edgenum;
  GtUword counter = 0;
  GtUint64 progress = 0;

  gt_assert(strgraph != NULL);

  if (show_progressbar)
    gt_progressbar_start(&progress,
        (GtUint64)GT_STRGRAPH_NOFVERTICES(strgraph));

  counter = 0;
  if (show_progressbar)
    gt_progressbar_start(&(progress),
        (GtUint64)GT_STRGRAPH_NOFVERTICES(strgraph));
  for (vnum = 0; vnum < GT_STRGRAPH_NOFVERTICES(strgraph); vnum++)
  {
    if (GT_STRGRAPH_V_OUTDEG(strgraph, vnum) > 0)
    {
      for (edgenum = 0; edgenum < GT_STRGRAPH_V_NOFEDGES(strgraph, vnum);
          edgenum++)
      {
        if (!GT_STRGRAPH_EDGE_IS_REDUCED(strgraph, vnum, edgenum) &&
            GT_STRGRAPH_EDGE_DEST(strgraph, vnum, edgenum) ==
            GT_STRGRAPH_V_OTHER(vnum))
        {
          counter++;
          GT_STRGRAPH_EDGE_REDUCE(strgraph, vnum, edgenum);
          GT_STRGRAPH_V_DEC_OUTDEG(strgraph, vnum);
        }
      }
    }
    if (show_progressbar)
      progress++;
  }
  if (show_progressbar)
    gt_progressbar_stop();

  gt_log_log("withrc-matches counter: "GT_WU"", counter);
  /* withrc matches shoud be found twice, check number is even */
  gt_assert((counter & 1) == 0);
#ifndef NDEBUG
  gt_strgraph_check_outdegs(strgraph);
#endif
  return (counter >> 1);
}

// Assembly:
subq $0xb8, %rsp
movb %sil, %al
movq %rdi, 0xb0(%rsp)
andb $0x1, %al
movb %al, 0xaf(%rsp)
movq $0x0, 0x90(%rsp)
movq $0x0, 0x88(%rsp)
cmpq $0x0, 0xb0(%rsp)
jne 0x293a36
movq 0x3a859b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x282604(%rip), %rsi    # 0x516013
leaq 0x2ee6ee(%rip), %rdx    # 0x582104
leaq 0x2eeb89(%rip), %rcx    # 0x5825a6
leaq 0x2ee61c(%rip), %r8     # 0x582040
movl $0x3b1, %r9d            # imm = 0x3B1
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x293a38
testb $0x1, 0xaf(%rsp)
je 0x293a5e
movq 0xb0(%rsp), %rax
movq 0x80(%rax), %rsi
leaq 0x88(%rsp), %rdi
callq 0xf9830
movq $0x0, 0x90(%rsp)
testb $0x1, 0xaf(%rsp)
je 0x293a90
movq 0xb0(%rsp), %rax
movq 0x80(%rax), %rsi
leaq 0x88(%rsp), %rdi
callq 0xf9830
movq $0x0, 0xa0(%rsp)
movq 0xa0(%rsp), %rax
movq 0xb0(%rsp), %rcx
cmpq 0x80(%rcx), %rax
jae 0x293e8a
movq 0xb0(%rsp), %rax
movq 0x70(%rax), %rdi
movq 0xa0(%rsp), %rsi
callq 0x290730
cmpq $0x0, %rax
jbe 0x293e51
movq $0x0, 0x98(%rsp)
movq 0x98(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0xb0(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0xa0(%rsp), %rsi
addq $0x1, %rsi
callq 0x290730
movq %rax, 0x78(%rsp)
movq 0xb0(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0xa0(%rsp), %rsi
callq 0x290730
movq 0x78(%rsp), %rcx
movq %rax, %rdx
movq 0x80(%rsp), %rax
subq %rdx, %rcx
cmpq %rcx, %rax
jae 0x293e4f
movq 0xb0(%rsp), %rax
movq 0x88(%rax), %rax
movq %rax, 0x68(%rsp)
movq 0xb0(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0xa0(%rsp), %rsi
callq 0x290730
movq 0x68(%rsp), %rdi
movq %rax, %rsi
addq 0x98(%rsp), %rsi
callq 0x290730
movq %rax, 0x70(%rsp)
movq 0xb0(%rsp), %rax
movq 0x90(%rax), %rdi
callq 0x46ec80
movl %eax, %ecx
movq 0x70(%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 0xb0(%rsp), %rcx
cmpq 0x90(%rcx), %rax
jne 0x293be5
movb $0x1, %al
testb $0x1, %al
jne 0x293e34
jmp 0x293bf1
xorl %eax, %eax
testb $0x1, %al
jne 0x293e34
jmp 0x293bf1
movq 0xb0(%rsp), %rax
movq 0x88(%rax), %rax
movq %rax, 0x40(%rsp)
movq 0xb0(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0xa0(%rsp), %rsi
callq 0x290730
movq 0x40(%rsp), %rdi
movq %rax, %rsi
addq 0x98(%rsp), %rsi
callq 0x290730
movq %rax, 0x50(%rsp)
movq 0xb0(%rsp), %rax
movq 0x80(%rax), %rdi
callq 0x46ec80
movl %eax, %ecx
movl $0x1, %eax
shll %cl, %eax
subl $0x1, %eax
movl %eax, 0x4c(%rsp)
movq 0xb0(%rsp), %rax
movq 0x90(%rax), %rdi
callq 0x46ec80
movl 0x4c(%rsp), %edx
movl %eax, %ecx
movq 0x50(%rsp), %rax
addl $0x1, %ecx
shll %cl, %edx
movl %edx, %ecx
movslq %ecx, %rcx
andq %rcx, %rax
movq %rax, 0x58(%rsp)
movq 0xb0(%rsp), %rax
movq 0x90(%rax), %rdi
callq 0x46ec80
movl %eax, %ecx
movq 0x58(%rsp), %rax
addl $0x1, %ecx
movl %ecx, %ecx
shrq %cl, %rax
movq %rax, 0x60(%rsp)
movq 0xa0(%rsp), %rax
andq $0x1, %rax
cmpq $0x1, %rax
jne 0x293cda
movq 0xa0(%rsp), %rax
subq $0x1, %rax
movq %rax, 0x38(%rsp)
jmp 0x293ceb
movq 0xa0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x38(%rsp)
movq 0x60(%rsp), %rax
movq 0x38(%rsp), %rcx
cmpq %rcx, %rax
jne 0x293e34
movq 0x90(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x90(%rsp)
movq 0xb0(%rsp), %rax
movq 0x88(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0xb0(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0xa0(%rsp), %rsi
callq 0x290730
addq 0x98(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0xb0(%rsp), %rax
movq 0x90(%rax), %rdi
callq 0x46ec80
movl %eax, %ecx
movl $0x1, %eax
shll %cl, %eax
subl $0x1, %eax
shll %eax
cltq
xorq $-0x1, %rax
movq %rax, 0x10(%rsp)
movq 0xb0(%rsp), %rax
movq 0x88(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0xb0(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0xa0(%rsp), %rsi
callq 0x290730
movq 0x8(%rsp), %rdi
movq %rax, %rsi
addq 0x98(%rsp), %rsi
callq 0x290730
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
andq %rax, %rdx
movq 0xb0(%rsp), %rax
movq 0x90(%rax), %rax
shlq %rax
addq %rax, %rdx
callq 0x2907d0
movq 0xb0(%rsp), %rax
movq 0x70(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0xb0(%rsp), %rax
movq 0x70(%rax), %rdi
movq 0xa0(%rsp), %rsi
callq 0x290730
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq %rax, %rdx
subq $0x1, %rdx
callq 0x2907d0
jmp 0x293e36
movq 0x98(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x98(%rsp)
jmp 0x293ae8
jmp 0x293e51
testb $0x1, 0xaf(%rsp)
je 0x293e6f
movq 0x88(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x88(%rsp)
jmp 0x293e71
movq 0xa0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xa0(%rsp)
jmp 0x293a9c
testb $0x1, 0xaf(%rsp)
je 0x293e99
callq 0xfa220
movq 0x90(%rsp), %rsi
leaq 0x2ee714(%rip), %rdi    # 0x5825bc
movb $0x0, %al
callq 0xe7740
movq 0x90(%rsp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x293ef9
movq 0x3a80d8(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x282141(%rip), %rsi    # 0x516013
leaq 0x2ee6ba(%rip), %rdx    # 0x582593
leaq 0x2ee6c6(%rip), %rcx    # 0x5825a6
leaq 0x2ee159(%rip), %r8     # 0x582040
movl $0x3d4, %r9d            # imm = 0x3D4
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x293efb
movq 0xb0(%rsp), %rdi
callq 0x293800
movq 0x90(%rsp), %rax
shrq %rax
addq $0xb8, %rsp
retq
nopl (%rax,%rax)