// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/rdj-strgraph.c
// Function: gt_strgraph_dot_show_context
static int gt_strgraph_dot_show_context(GtStrgraph *strgraph,
    GtStrgraphFormat format, GtFile *outfp, GtUword *readnums,
    GtUword nofreadnums, GtUword maxdepth, bool extend,
    GtUword group, GtError *err)
{
  int had_err = 0;
  GtArray *stack;
  GtStrgraphVnumAndDepth to_add, *current;
  GtStrgraphVnum v, w;
  GtStrgraphVEdgenum j;
  GtUword d;
  GtUword sn1, sn2, readnum, i;
  bool is_e1, is_e2;

  gt_assert(format == GT_STRGRAPH_DOT || format == GT_STRGRAPH_DOT_BI);
  stack = gt_array_new(sizeof (GtStrgraphVnumAndDepth));
  for (i = 0; i < nofreadnums; i++)
  {
    readnum = readnums[i];
    if (readnum >= (GtUword)GT_STRGRAPH_NOFREADS(strgraph))
    {
      had_err = -1;
      gt_error_set(err, "Can't show context of read "GT_WU" "
          "because the readset has "FormatGtStrgraphVnum" reads", readnum,
          GT_STRGRAPH_NOFREADS(strgraph));
      break;
    }
    to_add.v = GT_STRGRAPH_V_B(readnum);
    to_add.d = 1UL;
    gt_array_add(stack, to_add);
    gt_strgraph_dot_show_vertex(outfp, format, strgraph, to_add.v, 1UL, group);
    to_add.v = GT_STRGRAPH_V_E(readnum);
    to_add.d = 1UL;
    gt_array_add(stack, to_add);
    gt_strgraph_dot_show_vertex(outfp, format, strgraph, to_add.v, 1UL, group);
  }
  if (had_err)
  {
    gt_array_delete(stack);
    return had_err;
  }
  while (gt_array_size(stack) > 0)
  {
    current = gt_array_pop(stack);
    v = current->v;
    d = current->d;
    if (!GT_STRGRAPH_DOT_VISITED(v))
    {
      sn1 = GT_STRGRAPH_V_READNUM(v);
      if (d > 1UL)
      {
        gt_strgraph_dot_show_vertex(outfp, format, strgraph, v, d, 0);
      }
      if (GT_STRGRAPH_V_OUTDEG(strgraph, v) > 0)
      {
        is_e1 = GT_STRGRAPH_V_IS_E(v);
        for (j = 0; j < GT_STRGRAPH_V_NOFEDGES(strgraph, v); j++)
        {
          if (!GT_STRGRAPH_EDGE_IS_REDUCED(strgraph, v, j))
          {
            w = GT_STRGRAPH_EDGE_DEST(strgraph, v, j);
            sn2 = GT_STRGRAPH_V_READNUM(w);
            is_e2 = GT_STRGRAPH_V_IS_E(w);
            if (format == GT_STRGRAPH_DOT)
            {
              gt_strgraph_dot_show_edge(outfp, v, w,
                  GT_STRGRAPH_EDGE_LEN(strgraph, v, j));
            }
            else
            {
              gt_strgraph_dot_bi_show_edge(outfp, sn1, !is_e1, sn2, is_e2);
            }
            if (d < maxdepth ||
                (extend && GT_STRGRAPH_V_IS_INTERNAL(strgraph, v)))
            {
              if (!GT_STRGRAPH_DOT_VISITED(w))
              {
                to_add.v = w;
                to_add.d = d + 1;
                gt_array_add(stack, to_add);
              }
              w = GT_STRGRAPH_V_OTHER(w);
              if (!GT_STRGRAPH_DOT_VISITED(w))
              {
                to_add.v = w;
                to_add.d = d + 1;
                gt_array_add(stack, to_add);
              }
            }
          }
        }
      }
    }
    GT_STRGRAPH_DOT_SET_VISITED(v, d);
  }
  gt_array_delete(stack);
  return had_err;
}

// Assembly:
subq $0x128, %rsp            # imm = 0x128
movq 0x140(%rsp), %rax
movq 0x138(%rsp), %rax
movb 0x130(%rsp), %al
movq %rdi, 0x118(%rsp)
movl %esi, 0x114(%rsp)
movq %rdx, 0x108(%rsp)
movq %rcx, 0x100(%rsp)
movq %r8, 0xf8(%rsp)
movq %r9, 0xf0(%rsp)
andb $0x1, %al
movb %al, 0xef(%rsp)
movl $0x0, 0xe8(%rsp)
cmpl $0x0, 0x114(%rsp)
je 0x29a85d
cmpl $0x1, 0x114(%rsp)
je 0x29a85d
movq 0x3a1774(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x27b7dd(%rip), %rsi    # 0x516013
leaq 0x2e81ff(%rip), %rdx    # 0x582a3c
leaq 0x2e8ada(%rip), %rcx    # 0x58331e
leaq 0x2e77f5(%rip), %r8     # 0x582040
movl $0x60b, %r9d            # imm = 0x60B
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x29a85f
movl $0x10, %edi
callq 0x80990
movq %rax, 0xe0(%rsp)
movq $0x0, 0x88(%rsp)
movq 0x88(%rsp), %rax
cmpq 0xf8(%rsp), %rax
jae 0x29aa01
movq 0x100(%rsp), %rax
movq 0x88(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rax
movq 0x118(%rsp), %rcx
movq 0x80(%rcx), %rcx
shrq %rcx
cmpq %rcx, %rax
jb 0x29a90e
movl $0xffffffff, 0xe8(%rsp) # imm = 0xFFFFFFFF
movq 0x140(%rsp), %rdi
movq 0x90(%rsp), %rdx
movq 0x118(%rsp), %rax
movq 0x80(%rax), %rcx
shrq %rcx
leaq 0x2e8a39(%rip), %rsi    # 0x58333b
movb $0x0, %al
callq 0xd88c0
jmp 0x29aa01
movq 0x90(%rsp), %rax
shlq %rax
movq %rax, 0xd0(%rsp)
movq $0x1, 0xd8(%rsp)
movq 0xe0(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
movl $0x10, %edx
callq 0x81100
movq 0x108(%rsp), %rdi
movl 0x114(%rsp), %esi
movq 0x118(%rsp), %rdx
movq 0xd0(%rsp), %rcx
movq 0x138(%rsp), %r9
movl $0x1, %r8d
callq 0x29e4d0
movq 0x90(%rsp), %rax
shlq %rax
addq $0x1, %rax
movq %rax, 0xd0(%rsp)
movq $0x1, 0xd8(%rsp)
movq 0xe0(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
movl $0x10, %edx
callq 0x81100
movq 0x108(%rsp), %rdi
movl 0x114(%rsp), %esi
movq 0x118(%rsp), %rdx
movq 0xd0(%rsp), %rcx
movq 0x138(%rsp), %r9
movl $0x1, %r8d
callq 0x29e4d0
movq 0x88(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x88(%rsp)
jmp 0x29a87d
cmpl $0x0, 0xe8(%rsp)
je 0x29aa2b
movq 0xe0(%rsp), %rdi
callq 0x81f80
movl 0xe8(%rsp), %eax
movl %eax, 0x124(%rsp)
jmp 0x29b0bb
jmp 0x29aa2d
movq 0xe0(%rsp), %rdi
callq 0x81370
cmpq $0x0, %rax
jbe 0x29b0a0
movq 0xe0(%rsp), %rdi
callq 0x80c70
movq %rax, 0xc8(%rsp)
movq 0xc8(%rsp), %rax
movq (%rax), %rax
movq %rax, 0xc0(%rsp)
movq 0xc8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0xa8(%rsp)
movq 0x118(%rsp), %rax
movq 0x58(%rax), %rdi
movq 0xc0(%rsp), %rsi
callq 0x290730
cmpl $0x2, %eax
je 0x29b052
movq 0x118(%rsp), %rax
movq 0x58(%rax), %rdi
movq 0xc0(%rsp), %rsi
callq 0x290730
cmpl $0x3, %eax
je 0x29b052
movq 0xc0(%rsp), %rax
shrq %rax
movq %rax, 0xa0(%rsp)
cmpq $0x1, 0xa8(%rsp)
jbe 0x29ab13
movq 0x108(%rsp), %rdi
movl 0x114(%rsp), %esi
movq 0x118(%rsp), %rdx
movq 0xc0(%rsp), %rcx
movq 0xa8(%rsp), %r8
xorl %eax, %eax
movl %eax, %r9d
callq 0x29e4d0
movq 0x118(%rsp), %rax
movq 0x70(%rax), %rdi
movq 0xc0(%rsp), %rsi
callq 0x290730
cmpq $0x0, %rax
jbe 0x29b050
movq 0xc0(%rsp), %rax
andq $0x1, %rax
cmpq $0x1, %rax
sete %al
andb $0x1, %al
movb %al, 0x87(%rsp)
movq $0x0, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x118(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0xc0(%rsp), %rsi
addq $0x1, %rsi
callq 0x290730
movq %rax, 0x70(%rsp)
movq 0x118(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0xc0(%rsp), %rsi
callq 0x290730
movq 0x70(%rsp), %rcx
movq %rax, %rdx
movq 0x78(%rsp), %rax
subq %rdx, %rcx
cmpq %rcx, %rax
jae 0x29b04e
movq 0x118(%rsp), %rax
movq 0x88(%rax), %rax
movq %rax, 0x60(%rsp)
movq 0x118(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0xc0(%rsp), %rsi
callq 0x290730
movq 0x60(%rsp), %rdi
movq %rax, %rsi
addq 0xb0(%rsp), %rsi
callq 0x290730
movq %rax, 0x68(%rsp)
movq 0x118(%rsp), %rax
movq 0x90(%rax), %rdi
callq 0x46ec80
movl %eax, %ecx
movq 0x68(%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 0x118(%rsp), %rcx
cmpq 0x90(%rcx), %rax
jne 0x29ac55
movb $0x1, %al
testb $0x1, %al
jne 0x29b033
jmp 0x29ac61
xorl %eax, %eax
testb $0x1, %al
jne 0x29b033
jmp 0x29ac61
movq 0x118(%rsp), %rax
movq 0x88(%rax), %rax
movq %rax, 0x40(%rsp)
movq 0x118(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0xc0(%rsp), %rsi
callq 0x290730
movq 0x40(%rsp), %rdi
movq %rax, %rsi
addq 0xb0(%rsp), %rsi
callq 0x290730
movq %rax, 0x50(%rsp)
movq 0x118(%rsp), %rax
movq 0x80(%rax), %rdi
callq 0x46ec80
movl %eax, %ecx
movl $0x1, %eax
shll %cl, %eax
subl $0x1, %eax
movl %eax, 0x4c(%rsp)
movq 0x118(%rsp), %rax
movq 0x90(%rax), %rdi
callq 0x46ec80
movl 0x4c(%rsp), %edx
movl %eax, %ecx
movq 0x50(%rsp), %rax
addl $0x1, %ecx
shll %cl, %edx
movl %edx, %ecx
movslq %ecx, %rcx
andq %rcx, %rax
movq %rax, 0x58(%rsp)
movq 0x118(%rsp), %rax
movq 0x90(%rax), %rdi
callq 0x46ec80
movl %eax, %ecx
movq 0x58(%rsp), %rax
addl $0x1, %ecx
movl %ecx, %ecx
shrq %cl, %rax
movq %rax, 0xb8(%rsp)
movq 0xb8(%rsp), %rax
shrq %rax
movq %rax, 0x98(%rsp)
movq 0xb8(%rsp), %rax
andq $0x1, %rax
cmpq $0x1, %rax
sete %al
andb $0x1, %al
movb %al, 0x86(%rsp)
cmpl $0x0, 0x114(%rsp)
jne 0x29ae18
movq 0x108(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0xc0(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x118(%rsp), %rax
movq 0x88(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x118(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0xc0(%rsp), %rsi
callq 0x290730
movq 0x18(%rsp), %rdi
movq %rax, %rsi
addq 0xb0(%rsp), %rsi
callq 0x290730
movq %rax, 0x38(%rsp)
movq 0x118(%rsp), %rax
movq 0x90(%rax), %rdi
callq 0x46ec80
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movl %eax, %ecx
movl $0x1, %eax
shll %cl, %eax
movq 0x38(%rsp), %rcx
subl $0x1, %eax
shll %eax
cltq
andq %rax, %rcx
shrq %rcx
callq 0x29e3d0
jmp 0x29ae54
movq 0x108(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movb 0x87(%rsp), %dl
xorb $-0x1, %dl
movq 0x98(%rsp), %rcx
movb 0x86(%rsp), %al
movzbl %dl, %edx
andl $0x1, %edx
movzbl %al, %r8d
andl $0x1, %r8d
callq 0x29e450
movq 0xa8(%rsp), %rax
cmpq 0xf0(%rsp), %rax
jb 0x29aefb
testb $0x1, 0xef(%rsp)
je 0x29b031
movq 0x118(%rsp), %rax
movq 0x70(%rax), %rdi
movq 0xc0(%rsp), %rsi
callq 0x290730
cmpq $0x1, %rax
jne 0x29b031
movq 0x118(%rsp), %rax
movq 0x70(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0xc0(%rsp), %rax
andq $0x1, %rax
cmpq $0x1, %rax
jne 0x29aed1
movq 0xc0(%rsp), %rax
subq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x29aee2
movq 0xc0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x290730
cmpq $0x1, %rax
jne 0x29b031
movq 0x118(%rsp), %rax
movq 0x58(%rax), %rdi
movq 0xb8(%rsp), %rsi
callq 0x290730
cmpl $0x2, %eax
je 0x29af75
movq 0x118(%rsp), %rax
movq 0x58(%rax), %rdi
movq 0xb8(%rsp), %rsi
callq 0x290730
cmpl $0x3, %eax
je 0x29af75
movq 0xb8(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0xa8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xd8(%rsp)
movq 0xe0(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
movl $0x10, %edx
callq 0x81100
movq 0xb8(%rsp), %rax
andq $0x1, %rax
cmpq $0x1, %rax
jne 0x29af99
movq 0xb8(%rsp), %rax
subq $0x1, %rax
movq %rax, (%rsp)
jmp 0x29afa9
movq 0xb8(%rsp), %rax
addq $0x1, %rax
movq %rax, (%rsp)
movq (%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x118(%rsp), %rax
movq 0x58(%rax), %rdi
movq 0xb8(%rsp), %rsi
callq 0x290730
cmpl $0x2, %eax
je 0x29b02f
movq 0x118(%rsp), %rax
movq 0x58(%rax), %rdi
movq 0xb8(%rsp), %rsi
callq 0x290730
cmpl $0x3, %eax
je 0x29b02f
movq 0xb8(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0xa8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xd8(%rsp)
movq 0xe0(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
movl $0x10, %edx
callq 0x81100
jmp 0x29b031
jmp 0x29b033
jmp 0x29b035
movq 0xb0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xb0(%rsp)
jmp 0x29ab5e
jmp 0x29b050
jmp 0x29b052
cmpq $0x1, 0xa8(%rsp)
jne 0x29b07d
movq 0x118(%rsp), %rax
movq 0x58(%rax), %rdi
movq 0xc0(%rsp), %rsi
movl $0x3, %edx
callq 0x2907d0
jmp 0x29b09b
movq 0x118(%rsp), %rax
movq 0x58(%rax), %rdi
movq 0xc0(%rsp), %rsi
movl $0x2, %edx
callq 0x2907d0
jmp 0x29aa2d
movq 0xe0(%rsp), %rdi
callq 0x81f80
movl 0xe8(%rsp), %eax
movl %eax, 0x124(%rsp)
movl 0x124(%rsp), %eax
addq $0x128, %rsp            # imm = 0x128
retq
nopw (%rax,%rax)