// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/rdj-contigs-graph.c
// Function: gt_contigs_graph_show_dot_subgraph
int gt_contigs_graph_show_dot_subgraph(GtContigsGraph *cg,
    GtFile *outfp, GtUword *cnums, GtUword nofcnums,
    GtUword maxdepth, GtError *err)
{
  GtArray *stack;
  struct { GtUword v, d; } to_add, *current;
  GtUword next, cnum, i, v, d;
  GtContigsGraphSpmEdge *edge;
  unsigned int dir;

  stack = gt_array_new(sizeof (to_add));
  for (cnum = 0; cnum < cg->nof_v; cnum++)
  {
    cg->v_m[cnum].selected = false;
    cg->v_m[cnum].processed = false;
  }
  for (i = 0; i < nofcnums; i++)
  {
    cnum = cnums[i];
    if (cnum >= cg->nof_v)
    {
      gt_error_set(err, "Error by context output for contig "GT_WU": "
          "number of contigs is "GT_WU"", cnum, cg->nof_v);
      gt_array_delete(stack);
      return -1;
    }
    to_add.v = cnum;
    cg->v_m[cnum].selected = true;
    to_add.d = 1UL;
    gt_array_add(stack, to_add);
  }
  gt_file_xprintf(outfp, GT_CONTIGS_GRAPH_DOT_HEADER);
  for (next = 0; next < gt_array_size(stack); next++)
  {
    current = gt_array_get(stack, next);
    v = current->v;
    d = current->d;
    gt_contigs_graph_show_dot_for_contig(cg, v, outfp);
    cg->v_m[v].processed = true;
    to_add.d = d + 1UL;
    for (dir = 0; dir < 2U; dir++)
    {
      for (GT_CONTIGS_GRAPH_EACH_SPM_EDGE(cg, v, dir, edge))
      {
        if (cg->dot_show_deleted || !edge->deleted)
        {
          if (!cg->v_m[edge->dest].selected)
          {
            if (d < maxdepth)
            {
              to_add.v = (GtUword)edge->dest;
              gt_array_add(stack, to_add);
              cg->v_m[edge->dest].selected = true;
            }
            else
            {
              gt_file_xprintf(outfp, "  %u [style=invisible];\n", edge->dest);
            }
          }
        }
      }
    }
  }
  gt_array_delete(stack);
  gt_file_xprintf(outfp, GT_CONTIGS_GRAPH_DOT_FOOTER);
  return 0;
}

// Assembly:
subq $0x98, %rsp
movq %rdi, 0x88(%rsp)
movq %rsi, 0x80(%rsp)
movq %rdx, 0x78(%rsp)
movq %rcx, 0x70(%rsp)
movq %r8, 0x68(%rsp)
movq %r9, 0x60(%rsp)
movl $0x10, %edi
callq 0x80990
movq %rax, 0x58(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq 0x88(%rsp), %rcx
cmpq (%rcx), %rax
jae 0x2812ef
movq 0x88(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x30(%rsp), %rcx
movb (%rax,%rcx), %dl
andb $-0x5, %dl
orb $0x0, %dl
movb %dl, (%rax,%rcx)
movq 0x88(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x30(%rsp), %rcx
movb (%rax,%rcx), %dl
andb $-0x9, %dl
orb $0x0, %dl
movb %dl, (%rax,%rcx)
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
jmp 0x281293
movq $0x0, 0x28(%rsp)
movq 0x28(%rsp), %rax
cmpq 0x70(%rsp), %rax
jae 0x2813c1
movq 0x78(%rsp), %rax
movq 0x28(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq 0x88(%rsp), %rcx
cmpq (%rcx), %rax
jb 0x28136a
movq 0x60(%rsp), %rdi
movq 0x30(%rsp), %rdx
movq 0x88(%rsp), %rax
movq (%rax), %rcx
leaq 0x2ff07a(%rip), %rsi    # 0x5803c3
movb $0x0, %al
callq 0xd88c0
movq 0x58(%rsp), %rdi
callq 0x81f80
movl $0xffffffff, 0x94(%rsp) # imm = 0xFFFFFFFF
jmp 0x28162e
movq 0x30(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x88(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x30(%rsp), %rcx
movb (%rax,%rcx), %dl
andb $-0x5, %dl
orb $0x4, %dl
movb %dl, (%rax,%rcx)
movq $0x1, 0x50(%rsp)
movq 0x58(%rsp), %rdi
leaq 0x48(%rsp), %rsi
movl $0x10, %edx
callq 0x81100
movq 0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x28(%rsp)
jmp 0x2812f8
movq 0x80(%rsp), %rdi
leaq 0x2feaa0(%rip), %rsi    # 0x57fe70
movb $0x0, %al
callq 0xddca0
movq $0x0, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq %rax, (%rsp)
movq 0x58(%rsp), %rdi
callq 0x81370
movq %rax, %rcx
movq (%rsp), %rax
cmpq %rcx, %rax
jae 0x281603
movq 0x58(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x80b60
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x88(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x80(%rsp), %rdx
callq 0x27eb00
movq 0x88(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x20(%rsp), %rcx
movb (%rax,%rcx), %dl
andb $-0x9, %dl
orb $0x8, %dl
movb %dl, (%rax,%rcx)
movq 0x18(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x50(%rsp)
movl $0x0, 0xc(%rsp)
cmpl $0x2, 0xc(%rsp)
jae 0x2815ee
movq 0x88(%rsp), %rax
movl 0xc(%rsp), %ecx
movq 0x80(%rax,%rcx,8), %rax
movq 0x88(%rsp), %rcx
movl 0xc(%rsp), %edx
movq 0x18(%rcx,%rdx,8), %rcx
movq 0x20(%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
shrq $0x10, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x88(%rsp), %rcx
movl 0xc(%rsp), %edx
movq 0x80(%rcx,%rdx,8), %rcx
movq 0x88(%rsp), %rdx
movl 0xc(%rsp), %esi
movq 0x18(%rdx,%rsi,8), %rdx
movq 0x20(%rsp), %rsi
movq 0x8(%rdx,%rsi,8), %rdx
shrq $0x10, %rdx
shlq $0x3, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
jae 0x2815dc
movq 0x88(%rsp), %rax
testb $0x1, 0xa8(%rax)
jne 0x28153a
movq 0x10(%rsp), %rax
movl 0x4(%rax), %eax
shrl $0x1e, %eax
andl $0x1, %eax
testl $0x1, %eax
jne 0x2815c7
movq 0x88(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %rcx
movl (%rcx), %ecx
movb (%rax,%rcx), %al
shrb $0x2, %al
andb $0x1, %al
testb $0x1, %al
jne 0x2815c5
movq 0x18(%rsp), %rax
cmpq 0x68(%rsp), %rax
jae 0x2815a6
movq 0x10(%rsp), %rax
movl (%rax), %eax
movq %rax, 0x48(%rsp)
movq 0x58(%rsp), %rdi
leaq 0x48(%rsp), %rsi
movl $0x10, %edx
callq 0x81100
movq 0x88(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %rcx
movl (%rcx), %ecx
movb (%rax,%rcx), %dl
andb $-0x5, %dl
orb $0x4, %dl
movb %dl, (%rax,%rcx)
jmp 0x2815c3
movq 0x80(%rsp), %rdi
movq 0x10(%rsp), %rax
movl (%rax), %edx
leaq 0x2fee48(%rip), %rsi    # 0x580404
movb $0x0, %al
callq 0xddca0
jmp 0x2815c5
jmp 0x2815c7
jmp 0x2815c9
movq 0x10(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x10(%rsp)
jmp 0x2814c8
jmp 0x2815de
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x28147f
jmp 0x2815f0
movq 0x38(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x38(%rsp)
jmp 0x2813e0
movq 0x58(%rsp), %rdi
callq 0x81f80
movq 0x80(%rsp), %rdi
leaq 0x303694(%rip), %rsi    # 0x584cb0
movb $0x0, %al
callq 0xddca0
movl $0x0, 0x94(%rsp)
movl 0x94(%rsp), %eax
addq $0x98, %rsp
retq
nopl (%rax)