// File: /workspace/github_c_makefile_star2_O1/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 0x1dbed8
movq %rdi, %r14
xorl %r13d, %r13d
xorl %r12d, %r12d
movq 0x70(%r14), %rax
testq %rax, %rax
je 0x1dbf29
cmpq %r12, 0x8(%rax)
jbe 0x1dbf29
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1dbf29
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2fcc2c
testq %rax, %rax
je 0x1dbec6
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x1dbef2
leaq 0x1(%r12), %rbx
xorl %ebp, %ebp
movq %rbx, (%rsp)
cmpq %rbx, 0x8(%rax)
jbe 0x1dbef2
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1dbef2
movq (%rax), %rdi
movq %rdx, %rsi
imulq %rbx, %rsi
callq 0x2fcc2c
movq %rax, %r15
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x1dbeed
cmpq %r12, 0x8(%rax)
jbe 0x1dbeed
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1dbeed
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2fcc2c
subq %rax, %r15
cmpq %r15, %rbp
jae 0x1dbec6
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x1dbef7
cmpq %r12, 0x8(%rax)
jbe 0x1dbef7
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1dbef7
movq 0x88(%r14), %rbx
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2fcc2c
testq %rbx, %rbx
je 0x1dbefc
addq %rbp, %rax
cmpq %rax, 0x8(%rbx)
jbe 0x1dbefc
movl 0x10(%rbx), %edx
cmpq $0x41, %rdx
jae 0x1dbefc
movq (%rbx), %rdi
imulq %rdx, %rax
movq %rax, %rsi
callq 0x2fcc2c
movq %rax, %r15
movq 0x90(%r14), %rdi
callq 0x2f9d41
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 0x1dbeb0
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x1dbf06
cmpq %r12, 0x8(%rax)
jbe 0x1dbf06
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1dbf06
movq 0x88(%r14), %rbx
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2fcc2c
testq %rbx, %rbx
je 0x1dbf01
addq %rbp, %rax
cmpq %rax, 0x8(%rbx)
jbe 0x1dbf01
movl 0x10(%rbx), %edx
cmpq $0x41, %rdx
jae 0x1dbf01
movq (%rbx), %rdi
imulq %rdx, %rax
movq %rax, %rsi
callq 0x2fcc2c
testb $0x1, %al
je 0x1dbeb0
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x1dbf10
cmpq %r12, 0x8(%rax)
jbe 0x1dbf10
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1dbf10
movq %r13, 0x8(%rsp)
movq 0x88(%r14), %rbx
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2fcc2c
movq %rax, %r15
movq 0x90(%r14), %rdi
callq 0x2f9d41
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movl %eax, %ecx
shll %cl, %r13d
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x1dbf0b
cmpq %r12, 0x8(%rax)
jbe 0x1dbf0b
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1dbf0b
movq %rbx, 0x10(%rsp)
movq 0x88(%r14), %rbx
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2fcc2c
testq %rbx, %rbx
je 0x1dbf1f
addq %rbp, %rax
cmpq %rax, 0x8(%rbx)
jbe 0x1dbf1f
movl 0x10(%rbx), %edx
cmpq $0x41, %rdx
jae 0x1dbf1f
movq (%rbx), %rdi
imulq %rdx, %rax
movq %rax, %rsi
callq 0x2fcc2c
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x1dbf1a
addq %rbp, %r15
cmpq %r15, 0x8(%rsi)
jbe 0x1dbf1a
movl 0x10(%rsi), %edx
cmpq $0x41, %rdx
jae 0x1dbf1a
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 0x2fcd13
movq 0x70(%r14), %rbx
testq %rbx, %rbx
je 0x1dbf15
cmpq %r12, 0x8(%rbx)
jbe 0x1dbf15
movl 0x10(%rbx), %edx
cmpq $0x41, %rdx
jae 0x1dbf15
movq (%rbx), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2fcc2c
cmpq %r12, 0x8(%rbx)
jbe 0x1dbf24
movl 0x10(%rbx), %edx
cmpq $0x41, %rdx
jae 0x1dbf24
decq %rax
movq (%rbx), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
movq %rax, %rcx
callq 0x2fcd13
movq 0x8(%rsp), %r13
incq %r13
movq (%rsp), %rbx
incq %rbp
movq 0x60(%r14), %rax
testq %rax, %rax
jne 0x1dbbb4
jmp 0x1dbef2
incq %r12
cmpq 0x80(%r14), %r12
jb 0x1dbb60
jmp 0x1dbedb
xorl %r13d, %r13d
movq %r13, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x704a7
callq 0x704e0
callq 0x7046e
callq 0x70435
callq 0x703c3
callq 0x703fc
callq 0x70351
callq 0x7038a
callq 0x702a6
callq 0x702df
callq 0x70318
callq 0x7026d
callq 0x70519