// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/tools/gt_readjoiner_graph.c
// Function: gt_readjoiner_graph_show_subgraph
static int gt_readjoiner_graph_show_subgraph(GtStrgraph *strgraph,
    GtStrArray *subgraph, GtStrArray *subgraph_other,
    GtUword subgraph_depth, bool subgraph_mono, bool subgraph_extend,
    const char *readsetname, GtLogger *default_logger, GtTimer *timer,
    GtError *err)
{
  int had_err = 0;
  GtUword i, *rlist, rlistsize = gt_str_array_size(subgraph),
                *olist = NULL, olistsize = gt_str_array_size(subgraph_other);
  const char *num;
  gt_assert(rlistsize > 0);
  if (gt_showtime_enabled())
    gt_timer_show_progress(timer, GT_READJOINER_GRAPH_MSG_SDOTSG, stdout);
  gt_logger_log(default_logger, GT_READJOINER_GRAPH_MSG_SDOTSG);
  rlist = gt_malloc(sizeof (*rlist) * rlistsize);
  for (i = 0; i < rlistsize && !had_err; i++)
  {
    num = gt_str_array_get(subgraph, i);
    if (sscanf(num, ""GT_WU"", rlist + i) != 1)
    {
      gt_error_set(err, GT_READJOINER_GRAPH_ERR_SUBGRAPH);
      had_err = -1;
    }
  }
  if (olistsize > 0)
  {
    olist = gt_malloc(sizeof (*olist) * olistsize);
    for (i = 0; i < olistsize && !had_err; i++)
    {
      num = gt_str_array_get(subgraph_other, i);
      if (sscanf(num, ""GT_WU"", olist + i) != 1)
      {
        gt_error_set(err, GT_READJOINER_GRAPH_ERR_SOTHER);
        had_err = -1;
      }
    }
  }
  if (!had_err)
    had_err = gt_strgraph_show_context(strgraph, subgraph_mono ?
        GT_STRGRAPH_DOT : GT_STRGRAPH_DOT_BI, readsetname,
        GT_READJOINER_SUFFIX_SG_SUB_DOT, rlist, rlistsize,
        olist, olistsize, subgraph_depth == 0 ? ULONG_MAX : subgraph_depth,
        subgraph_extend, err);
  gt_free(rlist);
  gt_free(olist);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r9d, %ebx
movl %r8d, 0xc(%rsp)
movq %rcx, %r15
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, %r14
movq %rsi, %rdi
callq 0x121e78
movq %rax, %r12
movq %r13, 0x30(%rsp)
movq %r13, %rdi
callq 0x121e78
testq %r12, %r12
je 0xbb7be
movq %r15, 0x20(%rsp)
movq %r14, 0x28(%rsp)
movq %rax, (%rsp)
movl %ebx, 0x8(%rsp)
movq 0x78(%rsp), %r14
callq 0x11ed94
testb %al, %al
je 0xbb5f7
movq 0x80(%rsp), %rdi
movq 0x408900(%rip), %rax    # 0x4c3ee8
movq (%rax), %rdx
leaq 0x2a1972(%rip), %rsi    # 0x35cf64
callq 0x1229c8
leaq 0x2a1966(%rip), %rsi    # 0x35cf64
movq %r14, %rdi
xorl %eax, %eax
callq 0x10906e
leaq (,%r12,8), %rdi
leaq 0x2a1291(%rip), %rsi    # 0x35c8a8
movl $0x187, %edx            # imm = 0x187
callq 0x1092b2
movq %rax, %r13
movl $0x1, %r14d
leaq 0x309ffb(%rip), %r15    # 0x3c562c
movq %rax, 0x18(%rsp)
xorl %ebx, %ebx
leaq -0x1(%r14), %rsi
movq %rbp, %rdi
callq 0x121cfa
movq %rax, %rdi
movq %r15, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x177f0
cmpl $0x1, %eax
je 0xbb674
movq 0x88(%rsp), %rdi
leaq 0x2a1929(%rip), %rsi    # 0x35cf91
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpq %r12, %r14
jae 0xbb684
incq %r14
addq $0x8, %r13
testl %ebx, %ebx
je 0xbb638
movq (%rsp), %r15
testq %r15, %r15
je 0xbb71f
leaq (,%r15,8), %rdi
leaq 0x2a1208(%rip), %rsi    # 0x35c8a8
movl $0x193, %edx            # imm = 0x193
callq 0x1092b2
movq %rax, %r13
testl %ebx, %ebx
jne 0xbb722
movl $0x1, %ebp
leaq 0x309f6f(%rip), %r15    # 0x3c562c
leaq 0x2a1901(%rip), %r14    # 0x35cfc5
movq %r13, 0x10(%rsp)
leaq -0x1(%rbp), %rsi
movq 0x30(%rsp), %rdi
callq 0x121cfa
movq %rax, %rdi
movq %r15, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x177f0
cmpl $0x1, %eax
je 0xbb703
movq 0x88(%rsp), %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpq (%rsp), %rbp
jae 0xbb714
incq %rbp
addq $0x8, %r13
testl %ebx, %ebx
je 0xbb6c9
movq (%rsp), %r15
movq 0x10(%rsp), %r13
jmp 0xbb722
xorl %r13d, %r13d
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
testl %ebx, %ebx
jne 0xbb783
movl 0xc(%rsp), %eax
xorb $0x1, %al
movzbl %al, %esi
xorl %eax, %eax
movq 0x20(%rsp), %rcx
cmpq $0x1, %rcx
sbbq %rax, %rax
orq %rcx, %rax
subq $0x8, %rsp
movzbl 0x10(%rsp), %r10d
leaq 0x2a0c7a(%rip), %rcx    # 0x35c3d1
movq 0x30(%rsp), %rdi
movq 0x78(%rsp), %rdx
movq 0x20(%rsp), %r8
movq %r12, %r9
pushq 0x90(%rsp)
pushq %r10
pushq %rax
pushq %r15
pushq %r13
callq 0x1e0629
addq $0x30, %rsp
movl %eax, %r14d
leaq 0x2a111e(%rip), %rbx    # 0x35c8a8
movq 0x18(%rsp), %rdi
movq %rbx, %rsi
movl $0x1a4, %edx            # imm = 0x1A4
callq 0x109670
movq %r13, %rdi
movq %rbx, %rsi
movl $0x1a5, %edx            # imm = 0x1A5
callq 0x109670
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1df53
nop