// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/rdj-strgraph.c
// Function: gt_strgraph_reduce_marked_edges
static GtUword gt_strgraph_reduce_marked_edges(GtStrgraph *strgraph)
{
  GtStrgraphVnum i;
  GtUword counter = 0;
  GtStrgraphVEdgenum j;

  for (i = 0; i < GT_STRGRAPH_NOFVERTICES(strgraph); i++)
  {
    if (GT_STRGRAPH_V_OUTDEG(strgraph, i) == 0)
      continue;
    for (j = 0; j < GT_STRGRAPH_V_NOFEDGES(strgraph, i); j++)
    {
      if (GT_STRGRAPH_EDGE_IS_REDUCED(strgraph, i, j))
        continue;
      if (GT_STRGRAPH_EDGE_HAS_MARK(strgraph, i, j))
      {
        GT_STRGRAPH_EDGE_REDUCE(strgraph, i, j);
        GT_STRGRAPH_V_DEC_OUTDEG(strgraph, i);
        counter++;
      }
    }
  }
  return counter;
}

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x70(%rsp)
movq $0x0, 0x60(%rsp)
movq $0x0, 0x68(%rsp)
movq 0x68(%rsp), %rax
movq 0x70(%rsp), %rcx
cmpq 0x80(%rcx), %rax
jae 0x295060
movq 0x70(%rsp), %rax
movq 0x70(%rax), %rdi
movq 0x68(%rsp), %rsi
callq 0x290730
cmpq $0x0, %rax
jne 0x294df0
jmp 0x29504d
movq $0x0, 0x58(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x70(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0x68(%rsp), %rsi
addq $0x1, %rsi
callq 0x290730
movq %rax, 0x48(%rsp)
movq 0x70(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0x68(%rsp), %rsi
callq 0x290730
movq 0x48(%rsp), %rcx
movq %rax, %rdx
movq 0x50(%rsp), %rax
subq %rdx, %rcx
cmpq %rcx, %rax
jae 0x29504b
movq 0x70(%rsp), %rax
movq 0x88(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x70(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0x68(%rsp), %rsi
callq 0x290730
movq 0x38(%rsp), %rdi
movq %rax, %rsi
addq 0x58(%rsp), %rsi
callq 0x290730
movq %rax, 0x40(%rsp)
movq 0x70(%rsp), %rax
movq 0x90(%rax), %rdi
callq 0x46ec80
movl %eax, %ecx
movq 0x40(%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 0x70(%rsp), %rcx
cmpq 0x90(%rcx), %rax
jne 0x294ecb
movb $0x1, %al
testb $0x1, %al
jne 0x294ed3
jmp 0x294ed8
xorl %eax, %eax
testb $0x1, %al
jne 0x294ed3
jmp 0x294ed8
jmp 0x295038
movq 0x70(%rsp), %rax
movq 0x88(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x70(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0x68(%rsp), %rsi
callq 0x290730
movq 0x30(%rsp), %rdi
movq %rax, %rsi
addq 0x58(%rsp), %rsi
callq 0x290730
andq $0x1, %rax
shrq $0x0, %rax
cmpq $0x0, %rax
je 0x294f27
movb $0x1, %al
testb $0x1, %al
jne 0x294f32
jmp 0x295036
xorl %eax, %eax
testb $0x1, %al
jne 0x294f32
jmp 0x295036
movq 0x70(%rsp), %rax
movq 0x88(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x70(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0x68(%rsp), %rsi
callq 0x290730
addq 0x58(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x70(%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, 0x8(%rsp)
movq 0x70(%rsp), %rax
movq 0x88(%rax), %rax
movq %rax, (%rsp)
movq 0x70(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0x68(%rsp), %rsi
callq 0x290730
movq (%rsp), %rdi
movq %rax, %rsi
addq 0x58(%rsp), %rsi
callq 0x290730
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
andq %rax, %rdx
movq 0x70(%rsp), %rax
movq 0x90(%rax), %rax
shlq %rax
addq %rax, %rdx
callq 0x2907d0
movq 0x70(%rsp), %rax
movq 0x70(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x70(%rsp), %rax
movq 0x70(%rax), %rdi
movq 0x68(%rsp), %rsi
callq 0x290730
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq %rax, %rdx
subq $0x1, %rdx
callq 0x2907d0
movq 0x60(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x60(%rsp)
jmp 0x295038
movq 0x58(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x58(%rsp)
jmp 0x294df9
jmp 0x29504d
movq 0x68(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x68(%rsp)
jmp 0x294dbb
movq 0x60(%rsp), %rax
addq $0x78, %rsp
retq
nopw (%rax,%rax)