// File: /workspace/github_c_makefile_star2_O3/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
cmpq $0x0, 0x80(%rdi)
je 0x1d276f
movq %rdi, %r14
xorl %r13d, %r13d
xorl %r12d, %r12d
movq 0x70(%r14), %rax
testq %rax, %rax
je 0x1d27c0
cmpq %r12, 0x8(%rax)
jbe 0x1d27c0
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1d27c0
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2f37dc
leaq 0x1(%r12), %rbx
testq %rax, %rax
je 0x1d275d
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x1d2789
xorl %ebp, %ebp
movq %rbx, (%rsp)
cmpq %rbx, 0x8(%rax)
jbe 0x1d2789
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1d2789
movq (%rax), %rdi
movq %rdx, %rsi
imulq %rbx, %rsi
callq 0x2f37dc
movq %rax, %r15
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x1d2784
cmpq %r12, 0x8(%rax)
jbe 0x1d2784
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1d2784
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2f37dc
subq %rax, %r15
cmpq %r15, %rbp
jae 0x1d275d
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x1d278e
cmpq %r12, 0x8(%rax)
jbe 0x1d278e
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1d278e
movq 0x88(%r14), %rbx
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2f37dc
testq %rbx, %rbx
je 0x1d2793
addq %rbp, %rax
cmpq %rax, 0x8(%rbx)
jbe 0x1d2793
movl 0x10(%rbx), %edx
cmpq $0x41, %rdx
jae 0x1d2793
movq (%rbx), %rdi
imulq %rdx, %rax
movq %rax, %rsi
callq 0x2f37dc
movq %rax, %r15
movq 0x90(%r14), %rdi
callq 0x2f09dd
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(%r14), %rax
je 0x1d2747
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x1d279d
cmpq %r12, 0x8(%rax)
jbe 0x1d279d
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1d279d
movq 0x88(%r14), %rbx
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2f37dc
testq %rbx, %rbx
je 0x1d2798
addq %rbp, %rax
cmpq %rax, 0x8(%rbx)
jbe 0x1d2798
movl 0x10(%rbx), %edx
cmpq $0x41, %rdx
jae 0x1d2798
movq (%rbx), %rdi
imulq %rdx, %rax
movq %rax, %rsi
callq 0x2f37dc
testb $0x1, %al
je 0x1d2747
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x1d27a7
cmpq %r12, 0x8(%rax)
jbe 0x1d27a7
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1d27a7
movq %r13, 0x8(%rsp)
movq 0x88(%r14), %rbx
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2f37dc
movq %rax, %r15
movq 0x90(%r14), %rdi
callq 0x2f09dd
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movl %eax, %ecx
shll %cl, %r13d
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x1d27a2
cmpq %r12, 0x8(%rax)
jbe 0x1d27a2
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1d27a2
movq %rbx, 0x10(%rsp)
movq 0x88(%r14), %rbx
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2f37dc
testq %rbx, %rbx
je 0x1d27b6
addq %rbp, %rax
cmpq %rax, 0x8(%rbx)
jbe 0x1d27b6
movl 0x10(%rbx), %edx
cmpq $0x41, %rdx
jae 0x1d27b6
movq (%rbx), %rdi
imulq %rdx, %rax
movq %rax, %rsi
callq 0x2f37dc
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x1d27b1
addq %rbp, %r15
cmpq %r15, 0x8(%rsi)
jbe 0x1d27b1
movl 0x10(%rsi), %edx
cmpq $0x41, %rdx
jae 0x1d27b1
notl %r13d
addl %r13d, %r13d
notl %r13d
movslq %r13d, %rcx
andq %rcx, %rax
movq 0x90(%r14), %rcx
leaq (%rax,%rcx,2), %rcx
movq (%rsi), %rdi
imulq %rdx, %r15
movq %r15, %rsi
callq 0x2f388c
movq 0x70(%r14), %rbx
testq %rbx, %rbx
je 0x1d27ac
cmpq %r12, 0x8(%rbx)
jbe 0x1d27ac
movl 0x10(%rbx), %edx
cmpq $0x41, %rdx
jae 0x1d27ac
movq (%rbx), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2f37dc
cmpq %r12, 0x8(%rbx)
jbe 0x1d27bb
movl 0x10(%rbx), %edx
cmpq $0x41, %rdx
jae 0x1d27bb
decq %rax
movq (%rbx), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
movq %rax, %rcx
callq 0x2f388c
movq 0x8(%rsp), %r13
incq %r13
movq (%rsp), %rbx
incq %rbp
movq 0x60(%r14), %rax
testq %rax, %rax
jne 0x1d244b
jmp 0x1d2789
movq %rbx, %r12
cmpq 0x80(%r14), %rbx
jb 0x1d23f7
jmp 0x1d2772
xorl %r13d, %r13d
movq %r13, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x6e8a0
callq 0x6e8d9
callq 0x6e867
callq 0x6e82e
callq 0x6e7bc
callq 0x6e7f5
callq 0x6e74a
callq 0x6e783
callq 0x6e69f
callq 0x6e6d8
callq 0x6e711
callq 0x6e666
callq 0x6e912