// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/rdj-strgraph.c
// Function: gt_strgraph_sort_edges_by_len
void gt_strgraph_sort_edges_by_len(GtStrgraph *strgraph, bool show_progressbar)
{
  GtStrgraphVnum i;
  GtUint64 progress = 0;

  gt_assert(strgraph != NULL);

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

  for (i = 0; i < GT_STRGRAPH_NOFVERTICES(strgraph); i++)
  {
    GT_STRGRAPH_SORT_V_EDGES(strgraph, i);
    if (show_progressbar)
      progress++;
  }

  strgraph->state = GT_STRGRAPH_SORTED_BY_L;

  if (show_progressbar)
    gt_progressbar_stop();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
andq $0x0, 0x38(%rsp)
testq %rdi, %rdi
je 0x1817c1
movl %esi, %r12d
movq %rdi, %r14
testb %r12b, %r12b
je 0x181401
movq 0x80(%r14), %rsi
leaq 0x38(%rsp), %rdi
callq 0x9c79c
xorl %r13d, %r13d
leaq 0x1ce36a(%rip), %r15    # 0x34f775
pushq $-0x1
popq %rbp
movl %r12d, 0x24(%rsp)
cmpq 0x80(%r14), %r13
jae 0x1817a0
movq 0x60(%r14), %rdi
leaq 0x1(%r13), %rsi
movq %rsi, 0x40(%rsp)
callq 0x17ffcd
movq %rax, %rbx
movq 0x60(%r14), %rdi
movq %r13, %rsi
callq 0x17ffcd
subq %rax, %rbx
cmpq $0x2, %rbx
jb 0x181782
imulq $0x18, %rbx, %rdi
movq %r15, %rsi
movl $0x348, %edx            # imm = 0x348
callq 0x93160
movq %rax, 0x28(%rsp)
movq %rax, %r15
addq $0x10, %r15
movq %r15, 0x18(%rsp)
xorl %r12d, %r12d
movq %r13, 0x10(%rsp)
movq %rbx, 0x30(%rsp)
cmpq %r12, %rbx
je 0x18156c
movq 0x60(%r14), %rdi
movq 0x88(%r14), %rbx
movq %r13, %rsi
callq 0x17ffcd
leaq (%rax,%r12), %rsi
movq %rbx, %rdi
callq 0x17ffcd
movq %rax, %rbx
movq 0x80(%r14), %rdi
callq 0x28a939
movl %ebp, %r13d
movl %eax, %ecx
shll %cl, %r13d
notl %r13d
movq 0x90(%r14), %rdi
callq 0x28a939
leal 0x1(%rax), %ecx
shll %cl, %r13d
movslq %r13d, %r13
andq %rbx, %r13
movq 0x90(%r14), %rdi
callq 0x28a939
leal 0x1(%rax), %ecx
shrq %cl, %r13
movq %r13, -0x10(%r15)
movq 0x10(%rsp), %r13
movq 0x60(%r14), %rdi
movq 0x88(%r14), %rbx
movq %r13, %rsi
callq 0x17ffcd
leaq (%rax,%r12), %rsi
movq %rbx, %rdi
callq 0x17ffcd
movq %rax, %rbx
movq 0x90(%r14), %rdi
callq 0x28a939
movl %ebp, %edx
movl %eax, %ecx
shll %cl, %edx
notl %edx
addl %edx, %edx
movslq %edx, %rax
andq %rbx, %rax
shrq %rax
movq %rax, -0x8(%r15)
movq 0x60(%r14), %rdi
movq 0x88(%r14), %rbx
movq %r13, %rsi
callq 0x17ffcd
leaq (%rax,%r12), %rsi
movq %rbx, %rdi
movq 0x30(%rsp), %rbx
callq 0x17ffcd
andb $0x1, %al
movb %al, (%r15)
incq %r12
addq $0x18, %r15
jmp 0x18147d
movq 0x28(%rsp), %rdi
movq %rbx, %rsi
pushq $0x18
popq %rdx
leaq -0x1f94(%rip), %rcx     # 0x17f5ea
callq 0x17ed0
xorl %r13d, %r13d
cmpq %r13, %rbx
je 0x181764
movq 0x60(%r14), %rdi
movq 0x88(%r14), %rax
movq %rax, (%rsp)
movq 0x10(%rsp), %r15
movq %r15, %rsi
callq 0x17ffcd
addq %r13, %rax
movq %rax, 0x8(%rsp)
movq 0x80(%r14), %rdi
callq 0x28a939
movl %ebp, %ebx
movl %eax, %ecx
shll %cl, %ebx
notl %ebx
movq 0x90(%r14), %rdi
callq 0x28a939
leal 0x1(%rax), %ecx
shll %cl, %ebx
notl %ebx
movslq %ebx, %rbx
movq 0x60(%r14), %rdi
movq 0x88(%r14), %r12
movq %r15, %rsi
callq 0x17ffcd
leaq (%rax,%r13), %rsi
movq %r12, %rdi
callq 0x17ffcd
andq %rax, %rbx
movq 0x18(%rsp), %rax
movq -0x10(%rax), %r12
movq 0x90(%r14), %rdi
callq 0x28a939
leal 0x1(%rax), %ecx
shlq %cl, %r12
addq %rbx, %r12
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %r12, %rdx
callq 0x180026
movq 0x60(%r14), %rdi
movq 0x88(%r14), %rax
movq %rax, (%rsp)
movq %r15, %rbx
movq %r15, %rsi
callq 0x17ffcd
leaq (%rax,%r13), %r15
movq 0x90(%r14), %rdi
callq 0x28a939
movl %eax, %ecx
shll %cl, %ebp
notl %ebp
addl %ebp, %ebp
notl %ebp
movslq %ebp, %rbp
movq 0x60(%r14), %rdi
movq 0x88(%r14), %r12
movq %rbx, %rsi
callq 0x17ffcd
leaq (%rax,%r13), %rsi
movq %r12, %rdi
callq 0x17ffcd
andq %rbp, %rax
movq 0x18(%rsp), %rbp
movq -0x8(%rbp), %rcx
leaq (%rax,%rcx,2), %rdx
movq (%rsp), %rdi
movq %r15, %rsi
callq 0x180026
movq 0x60(%r14), %rdi
movq 0x88(%r14), %rax
movq %rax, 0x8(%rsp)
movq %rbx, %rsi
callq 0x17ffcd
leaq (%rax,%r13), %r15
movq 0x60(%r14), %rdi
movq 0x88(%r14), %r12
movq %rbx, %rsi
callq 0x17ffcd
movq %r13, (%rsp)
leaq (%rax,%r13), %rsi
movq %r12, %rdi
callq 0x17ffcd
andq $-0x2, %rax
movq 0x8(%rsp), %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x180026
cmpb $0x1, (%rbp)
jne 0x18174a
movq 0x60(%r14), %rdi
movq 0x88(%r14), %rbx
movq 0x10(%rsp), %r13
movq %r13, %rsi
callq 0x17ffcd
movq (%rsp), %rbp
leaq (%rax,%rbp), %r15
movq 0x60(%r14), %rdi
movq 0x88(%r14), %r12
movq %r13, %rsi
callq 0x17ffcd
leaq (%rax,%rbp), %rsi
movq %r12, %rdi
callq 0x17ffcd
orq $0x1, %rax
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x180026
movq (%rsp), %r13
incq %r13
addq $0x18, 0x18(%rsp)
pushq $-0x1
popq %rbp
movq 0x30(%rsp), %rbx
jmp 0x181586
movq 0x28(%rsp), %rdi
leaq 0x1ce005(%rip), %r15    # 0x34f775
movq %r15, %rsi
movl $0x348, %edx            # imm = 0x348
callq 0x936f9
movl 0x24(%rsp), %r12d
movq 0x40(%rsp), %rax
movq %rax, %r13
testb %r12b, %r12b
je 0x181413
incq 0x38(%rsp)
movq %rax, %r13
jmp 0x181413
movl $0x2, 0x10(%r14)
testb %r12b, %r12b
je 0x1817b2
callq 0x9cce9
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2b67a0(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x163841(%rip), %rsi    # 0x2e5013
leaq 0x1ce060(%rip), %rdx    # 0x34f839
leaq 0x1ce45d(%rip), %rcx    # 0x34fc3d
leaq 0x1cdf8e(%rip), %r8     # 0x34f775
movl $0x340, %r9d            # imm = 0x340
xorl %eax, %eax
callq 0x17a50
callq 0x17390