// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/rdj-strgraph.c
// Function: gt_strgraph_asqg_show
static void gt_strgraph_asqg_show(const GtStrgraph *strgraph,
    const char *indexname, GtFile *outfp)
{
  GtUword sn1, sn2;
  GtStrgraphVnum i, v2;
  GtUword sl2, spm_len;
  GtStrgraphVEdgenum j;
  bool is_e1, is_e2;
  GtError *err;
  int had_err = 0;
  GtAsqgWriter *aw = NULL;

  err = gt_error_new();
  gt_assert(strgraph->encseq != NULL);
  aw = gt_asqg_writer_new(outfp, strgraph->encseq);
  had_err = gt_asqg_writer_show_header(aw, 0.0, (GtUword)
      strgraph->minmatchlen, indexname, false, false, err);
  if (!had_err)
    had_err = gt_asqg_writer_show_vertices(aw, err);
  for (i = 0; i < GT_STRGRAPH_NOFVERTICES(strgraph) && !had_err; i++)
  {
    if (GT_STRGRAPH_V_OUTDEG(strgraph, i) > 0)
    {
      sn1 = GT_STRGRAPH_V_READNUM(i);
      is_e1 = GT_STRGRAPH_V_IS_E(i);
      for (j = 0; j < GT_STRGRAPH_V_NOFEDGES(strgraph, i) && !had_err; j++)
      {
        if (!GT_STRGRAPH_EDGE_IS_REDUCED(strgraph, i, j))
        {
          v2 = GT_STRGRAPH_EDGE_DEST(strgraph, i, j);
          sn2 = GT_STRGRAPH_V_READNUM(v2);
          sl2 = (GtUword)GT_STRGRAPH_SEQLEN(strgraph, sn2);
          spm_len = sl2 - (GtUword)GT_STRGRAPH_EDGE_LEN(strgraph, i, j);
          is_e2 = GT_STRGRAPH_V_IS_E(v2);
          if ((is_e1 && is_e2 && (sn1 >= sn2)) ||
              (!is_e1 && !is_e2 && (sn1 > sn2)) ||
              (is_e1 && !is_e2 && (sn1 >= sn2)) ||
              (!is_e1 &&  is_e2 && (sn1 > sn2)))
          {
            /* other E->B / B->E cases, as well as all B-B
               are not considered to avoid double output */
            gt_spmproc_show_asqg(sn1, sn2, spm_len, is_e1, is_e2, aw);
          }
        }
      }
    }
  }
  if (had_err)
  {
    fprintf(stderr, "%s", gt_error_get(err));
    exit(EXIT_FAILURE);
  }
  gt_asqg_writer_delete(aw);
  gt_error_delete(err);
}

// Assembly:
subq $0xe8, %rsp
movq %rdi, 0xe0(%rsp)
movq %rsi, 0xd8(%rsp)
movq %rdx, 0xd0(%rsp)
movl $0x0, 0x84(%rsp)
movq $0x0, 0x78(%rsp)
callq 0xd88a0
movq %rax, 0x88(%rsp)
movq 0xe0(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x2993a6
movq 0x3a2c2b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x27cc94(%rip), %rsi    # 0x516013
leaq 0x2e8c88(%rip), %rdx    # 0x58200e
leaq 0x2e9f55(%rip), %rcx    # 0x5832e2
leaq 0x2e8cac(%rip), %r8     # 0x582040
movl $0x7cb, %r9d            # imm = 0x7CB
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2993a8
movq 0xd0(%rsp), %rdi
movq 0xe0(%rsp), %rax
movq (%rax), %rsi
callq 0x201df0
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rdi
movq 0xe0(%rsp), %rax
movq 0x30(%rax), %rsi
movq 0xd8(%rsp), %rdx
movq 0x88(%rsp), %r9
xorps %xmm0, %xmm0
xorl %r8d, %r8d
movl %r8d, %ecx
callq 0x201e40
movl %eax, 0x84(%rsp)
cmpl $0x0, 0x84(%rsp)
jne 0x29941e
movq 0x78(%rsp), %rdi
movq 0x88(%rsp), %rsi
callq 0x201f20
movl %eax, 0x84(%rsp)
movq $0x0, 0xb8(%rsp)
movq 0xb8(%rsp), %rcx
movq 0xe0(%rsp), %rdx
xorl %eax, %eax
cmpq 0x80(%rdx), %rcx
movb %al, 0x77(%rsp)
jae 0x29945a
cmpl $0x0, 0x84(%rsp)
setne %al
xorb $-0x1, %al
movb %al, 0x77(%rsp)
movb 0x77(%rsp), %al
testb $0x1, %al
jne 0x299467
jmp 0x2998c9
movq 0xe0(%rsp), %rax
movq 0x70(%rax), %rdi
movq 0xb8(%rsp), %rsi
callq 0x290730
cmpq $0x0, %rax
jbe 0x2998ae
movq 0xb8(%rsp), %rax
shrq %rax
movq %rax, 0xc8(%rsp)
movq 0xb8(%rsp), %rax
andq $0x1, %rax
cmpq $0x1, %rax
sete %al
andb $0x1, %al
movb %al, 0x97(%rsp)
movq $0x0, 0x98(%rsp)
movq 0x98(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0xe0(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0xb8(%rsp), %rsi
addq $0x1, %rsi
callq 0x290730
movq %rax, 0x60(%rsp)
movq 0xe0(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0xb8(%rsp), %rsi
callq 0x290730
movq 0x60(%rsp), %rdx
movq 0x68(%rsp), %rcx
subq %rax, %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, 0x76(%rsp)
jae 0x299536
cmpl $0x0, 0x84(%rsp)
setne %al
xorb $-0x1, %al
movb %al, 0x76(%rsp)
movb 0x76(%rsp), %al
testb $0x1, %al
jne 0x299543
jmp 0x2998ac
movq 0xe0(%rsp), %rax
movq 0x88(%rax), %rax
movq %rax, 0x50(%rsp)
movq 0xe0(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0xb8(%rsp), %rsi
callq 0x290730
movq 0x50(%rsp), %rdi
movq %rax, %rsi
addq 0x98(%rsp), %rsi
callq 0x290730
movq %rax, 0x58(%rsp)
movq 0xe0(%rsp), %rax
movq 0x90(%rax), %rdi
callq 0x46ec80
movl %eax, %ecx
movq 0x58(%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 0xe0(%rsp), %rcx
cmpq 0x90(%rcx), %rax
jne 0x2995d9
movb $0x1, %al
testb $0x1, %al
jne 0x299891
jmp 0x2995e5
xorl %eax, %eax
testb $0x1, %al
jne 0x299891
jmp 0x2995e5
movq 0xe0(%rsp), %rax
movq 0x88(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0xe0(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0xb8(%rsp), %rsi
callq 0x290730
movq 0x30(%rsp), %rdi
movq %rax, %rsi
addq 0x98(%rsp), %rsi
callq 0x290730
movq %rax, 0x40(%rsp)
movq 0xe0(%rsp), %rax
movq 0x80(%rax), %rdi
callq 0x46ec80
movl %eax, %ecx
movl $0x1, %eax
shll %cl, %eax
subl $0x1, %eax
movl %eax, 0x3c(%rsp)
movq 0xe0(%rsp), %rax
movq 0x90(%rax), %rdi
callq 0x46ec80
movl 0x3c(%rsp), %edx
movl %eax, %ecx
movq 0x40(%rsp), %rax
addl $0x1, %ecx
shll %cl, %edx
movl %edx, %ecx
movslq %ecx, %rcx
andq %rcx, %rax
movq %rax, 0x48(%rsp)
movq 0xe0(%rsp), %rax
movq 0x90(%rax), %rdi
callq 0x46ec80
movl %eax, %ecx
movq 0x48(%rsp), %rax
addl $0x1, %ecx
movl %ecx, %ecx
shrq %cl, %rax
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
shrq %rax
movq %rax, 0xc0(%rsp)
movq 0xe0(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jbe 0x2996e1
movq 0xe0(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x28(%rsp)
jmp 0x2996fe
movq 0xe0(%rsp), %rax
movq (%rax), %rdi
movq 0xc0(%rsp), %rsi
callq 0xb09f0
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0xe0(%rsp), %rax
movq 0x88(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0xe0(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0xb8(%rsp), %rsi
callq 0x290730
movq 0x10(%rsp), %rdi
movq %rax, %rsi
addq 0x98(%rsp), %rsi
callq 0x290730
movq %rax, 0x20(%rsp)
movq 0xe0(%rsp), %rax
movq 0x90(%rax), %rdi
callq 0x46ec80
movl %eax, %ecx
movq 0x18(%rsp), %rax
movl $0x1, %edx
shll %cl, %edx
movq 0x20(%rsp), %rcx
subl $0x1, %edx
shll %edx
movslq %edx, %rdx
andq %rdx, %rcx
shrq %rcx
subq %rcx, %rax
movq %rax, 0xa0(%rsp)
movq 0xb0(%rsp), %rax
andq $0x1, %rax
cmpq $0x1, %rax
sete %al
andb $0x1, %al
movb %al, 0x96(%rsp)
testb $0x1, 0x97(%rsp)
je 0x2997e1
testb $0x1, 0x96(%rsp)
je 0x2997e1
movq 0xc8(%rsp), %rax
cmpq 0xc0(%rsp), %rax
jae 0x299853
testb $0x1, 0x97(%rsp)
jne 0x299807
testb $0x1, 0x96(%rsp)
jne 0x299807
movq 0xc8(%rsp), %rax
cmpq 0xc0(%rsp), %rax
ja 0x299853
testb $0x1, 0x97(%rsp)
je 0x29982d
testb $0x1, 0x96(%rsp)
jne 0x29982d
movq 0xc8(%rsp), %rax
cmpq 0xc0(%rsp), %rax
jae 0x299853
testb $0x1, 0x97(%rsp)
jne 0x29988f
testb $0x1, 0x96(%rsp)
je 0x29988f
movq 0xc8(%rsp), %rax
cmpq 0xc0(%rsp), %rax
jbe 0x29988f
movq 0xc8(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movq 0xa0(%rsp), %rdx
movb 0x97(%rsp), %cl
movb 0x96(%rsp), %al
movq 0x78(%rsp), %r9
andb $0x1, %cl
andb $0x1, %al
movzbl %cl, %ecx
movzbl %al, %r8d
callq 0x202200
jmp 0x299891
jmp 0x299893
movq 0x98(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x98(%rsp)
jmp 0x2994c5
jmp 0x2998ae
jmp 0x2998b0
movq 0xb8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xb8(%rsp)
jmp 0x29942a
cmpl $0x0, 0x84(%rsp)
je 0x29990f
movq 0x3a26c6(%rip), %rax    # 0x63bfa0
movq (%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x88(%rsp), %rdi
callq 0xd8b20
movq 0x8(%rsp), %rdi
movq %rax, %rdx
leaq 0x302723(%rip), %rsi    # 0x59c021
movb $0x0, %al
callq 0x199f0
movl $0x1, %edi
callq 0x19890
movq 0x78(%rsp), %rdi
callq 0x202520
movq 0x88(%rsp), %rdi
callq 0xd8c80
addq $0xe8, %rsp
retq
nop