// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/rdj-strgraph.c
// Function: gt_strgraph_compact
void gt_strgraph_compact(GtStrgraph *strgraph, bool show_progressbar)
{
  GtStrgraphVnum i;
  GtStrgraphEdgenum old_offset, next_free_edge, new_offset;
  GtStrgraphVEdgenum old_nofedges, j;
  GtUint64 progress = 0;

  gt_assert(strgraph != NULL);

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

  next_free_edge = 0;
  for (i = 0; i < GT_STRGRAPH_NOFVERTICES(strgraph); i++)
  {
    new_offset = next_free_edge;
    old_offset = GT_STRGRAPH_V_OFFSET(strgraph, i);
    old_nofedges = GT_STRGRAPH_V_NOFEDGES(strgraph, i);
    for (j = 0; j < old_nofedges; j++)
    {
      if (!GT_STRGRAPH_EDGE_IS_REDUCED(strgraph, i, j))
      {
        GT_STRGRAPH_COPY_EDGE(strgraph, old_offset + j, next_free_edge);
        next_free_edge++;
      }
    }
    GT_STRGRAPH_V_SET_OFFSET(strgraph, i, new_offset);
    gt_assert(next_free_edge - GT_STRGRAPH_V_OFFSET(strgraph, i) ==
        (GtStrgraphEdgenum)GT_STRGRAPH_V_OUTDEG(strgraph, i));
    if (show_progressbar)
      progress++;
  }
  GT_STRGRAPH_V_SET_OFFSET(strgraph, GT_STRGRAPH_NOFVERTICES(strgraph),
      next_free_edge);
  if (next_free_edge < GT_STRGRAPH_NOFEDGES(strgraph))
  {
    GT_STRGRAPH_SHRINK_EDGES(strgraph, next_free_edge);
  }

  if (show_progressbar)
    gt_progressbar_stop();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq $0x0, 0x10(%rsp)
testq %rdi, %rdi
je 0x1cebce
movl %esi, %ebp
movq %rdi, %r14
testb %bpl, %bpl
je 0x1ce828
movq 0x80(%r14), %rsi
leaq 0x10(%rsp), %rdi
callq 0x10ba28
cmpq $0x0, 0x80(%r14)
je 0x1ceaee
xorl %r15d, %r15d
movq $0x0, (%rsp)
movl %ebp, 0xc(%rsp)
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x1cebab
cmpq %r15, 0x8(%rax)
jbe 0x1cebab
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1cebab
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r15, %rsi
callq 0x2f37dc
movq %rax, 0x20(%rsp)
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x1ceba6
leaq 0x1(%r15), %rcx
cmpq %rcx, 0x8(%rax)
jbe 0x1ceba6
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1ceba6
movq (%rax), %rdi
movq %rdx, %rsi
movq %rcx, 0x18(%rsp)
imulq %rcx, %rsi
callq 0x2f37dc
movq %rax, %rbx
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x1cebb0
cmpq %r15, 0x8(%rax)
jbe 0x1cebb0
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1cebb0
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r15, %rsi
callq 0x2f37dc
movq (%rsp), %r12
subq %rax, %rbx
je 0x1cea16
xorl %ebp, %ebp
movq (%rsp), %r12
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x1ceb97
cmpq %r15, 0x8(%rax)
jbe 0x1ceb97
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1ceb97
movq 0x88(%r14), %r13
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r15, %rsi
callq 0x2f37dc
testq %r13, %r13
je 0x1ceb92
addq %rbp, %rax
cmpq %rax, 0x8(%r13)
jbe 0x1ceb92
movl 0x10(%r13), %edx
cmpq $0x41, %rdx
jae 0x1ceb92
movq (%r13), %rdi
imulq %rdx, %rax
movq %rax, %rsi
callq 0x2f37dc
movq %rax, %r13
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 %r13, %rax
shrq %rax
cmpq 0x90(%r14), %rax
je 0x1cea0a
movq 0x88(%r14), %r13
testq %r13, %r13
je 0x1ceb9c
movq 0x20(%rsp), %rax
leaq (%rax,%rbp), %rsi
cmpq %rsi, 0x8(%r13)
jbe 0x1ceb9c
movl 0x10(%r13), %edx
cmpq $0x41, %rdx
jae 0x1ceb9c
movq (%r13), %rdi
imulq %rdx, %rsi
callq 0x2f37dc
cmpq %r12, 0x8(%r13)
jbe 0x1ceba1
movl 0x10(%r13), %edx
cmpq $0x41, %rdx
jae 0x1ceba1
movq (%r13), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
movq %rax, %rcx
callq 0x2f388c
incq %r12
incq %rbp
cmpq %rbp, %rbx
jne 0x1ce902
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x1cebb5
cmpq %r15, 0x8(%rax)
jbe 0x1cebb5
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1cebb5
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r15, %rsi
movq (%rsp), %rcx
callq 0x2f388c
movq 0x60(%r14), %rax
testq %rax, %rax
movl 0xc(%rsp), %ebp
je 0x1cebba
cmpq %r15, 0x8(%rax)
jbe 0x1cebba
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1cebba
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r15, %rsi
callq 0x2f37dc
movq 0x70(%r14), %rcx
testq %rcx, %rcx
je 0x1cebbf
cmpq %r15, 0x8(%rcx)
jbe 0x1cebbf
movl 0x10(%rcx), %edx
cmpq $0x41, %rdx
jae 0x1cebbf
movq %r12, %rbx
subq %rax, %rbx
movq (%rcx), %rdi
imulq %rdx, %r15
movq %r15, %rsi
callq 0x2f37dc
cmpq %rax, %rbx
jne 0x1cebc4
testb %bpl, %bpl
movq 0x18(%rsp), %rax
je 0x1cead5
incq 0x10(%rsp)
movq 0x80(%r14), %rsi
movq %rax, %r15
movq %r12, (%rsp)
cmpq %rsi, %rax
jb 0x1ce845
jmp 0x1ceaf3
xorl %r12d, %r12d
xorl %esi, %esi
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x1cebc9
cmpq %rsi, 0x8(%rax)
jbe 0x1cebc9
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1cebc9
movq (%rax), %rdi
imulq %rdx, %rsi
movq %r12, %rcx
callq 0x2f388c
cmpq 0x98(%r14), %r12
jae 0x1ceb79
movq %r12, 0x98(%r14)
testq %r12, %r12
jne 0x1ceb79
movq 0x88(%r14), %rbx
testq %rbx, %rbx
je 0x1ceb6e
movq (%rbx), %rdi
leaq 0x192187(%rip), %r15    # 0x360cd8
movq %r15, %rsi
movl $0x5d, %edx
callq 0x1045eb
movq %rbx, %rdi
movq %r15, %rsi
movl $0x5e, %edx
callq 0x1045eb
movq $0x0, 0x88(%r14)
testb %bpl, %bpl
je 0x1ceb83
callq 0x10bf8a
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x6bd89
callq 0x6bdc2
callq 0x6bd50
callq 0x6bd17
callq 0x6bf18
callq 0x6bf51
callq 0x6bedf
callq 0x6bea6
callq 0x6be6d
callq 0x6be34
callq 0x6bdfb
callq 0x6bf8a
callq 0x6bfc3