// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_readjoiner_assembly.c
// Function: gt_readjoiner_assembly_build_graph
static int gt_readjoiner_assembly_build_graph(
    GtReadjoinerAssemblyArguments *arguments, GtStrgraph **strgraph,
    GtEncseq *reads, const char *readset, bool eqlen, GtUword rlen,
    GtUword nreads, GtBitsequence *contained, GtLogger *default_logger,
    GtLogger *verbose_logger, GtTimer *timer, GtError *err)
{
  int had_err = 0;
  *strgraph = gt_strgraph_new(nreads);

  if (arguments->minmatchlength > 0)
    gt_logger_log(verbose_logger, "SPM length cutoff = %u",
        arguments->minmatchlength);

  had_err = gt_readjoiner_assembly_count_spm(readset, eqlen,
      arguments->minmatchlength, arguments->nspmfiles, *strgraph, contained,
      default_logger, err);
  gt_readjoiner_assembly_show_current_space("(edges counted)");
  if (gt_showtime_enabled())
    gt_timer_show_progress(timer, GT_READJOINER_ASSEMBLY_MSG_BUILDSG, stdout);
  gt_logger_log(default_logger, GT_READJOINER_ASSEMBLY_MSG_BUILDSG);

  if (had_err == 0)
  {
    gt_assert((eqlen && rlen > 0 && reads == NULL) ||
        (!eqlen && rlen == 0 && reads != NULL));
    gt_strgraph_allocate_graph(*strgraph, rlen, reads);
    gt_readjoiner_assembly_show_current_space("(graph allocated)");
    had_err = gt_strgraph_load_spm_from_file(*strgraph,
        (GtUword)arguments->minmatchlength, arguments->redtrans,
        contained, readset, arguments->nspmfiles,
        GT_READJOINER_SUFFIX_SPMLIST, err);
  }
  return had_err;
}

// Assembly:
subq $0x48, %rsp
movb %r8b, %al
movq 0x78(%rsp), %r8
movq 0x70(%rsp), %r8
movq 0x68(%rsp), %r8
movq 0x60(%rsp), %r8
movq 0x58(%rsp), %r8
movq 0x50(%rsp), %r8
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
andb $0x1, %al
movb %al, 0x27(%rsp)
movq %r9, 0x18(%rsp)
movl $0x0, 0x14(%rsp)
movq 0x50(%rsp), %rdi
callq 0x28fae0
movq %rax, %rcx
movq 0x38(%rsp), %rax
movq %rcx, (%rax)
movq 0x40(%rsp), %rax
cmpl $0x0, 0x4(%rax)
jbe 0x4e897
movq 0x68(%rsp), %rdi
movq 0x40(%rsp), %rax
movl 0x4(%rax), %edx
leaq 0x4d4f9e(%rip), %rsi    # 0x52382e
movb $0x0, %al
callq 0xe7cd0
movq 0x28(%rsp), %rdi
movb 0x27(%rsp), %sil
movq 0x40(%rsp), %rax
movl 0x4(%rax), %edx
movq 0x40(%rsp), %rax
movl 0x48(%rax), %ecx
movq 0x38(%rsp), %rax
movq (%rax), %r8
movq 0x58(%rsp), %r9
movq 0x60(%rsp), %r10
movq 0x78(%rsp), %rax
andb $0x1, %sil
movzbl %sil, %esi
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x4eff0
movl %eax, 0x14(%rsp)
leaq 0x4d568d(%rip), %rdi    # 0x523f76
callq 0x4ec70
callq 0x11aa90
testb $0x1, %al
jne 0x4e8f9
jmp 0x4e914
movq 0x70(%rsp), %rdi
movq 0x5ed633(%rip), %rax    # 0x63bf38
movq (%rax), %rdx
leaq 0x4d5677(%rip), %rsi    # 0x523f86
callq 0x121930
movq 0x60(%rsp), %rdi
leaq 0x4d5666(%rip), %rsi    # 0x523f86
movb $0x0, %al
callq 0xe7cd0
cmpl $0x0, 0x14(%rsp)
jne 0x4ea10
jmp 0x4e934
testb $0x1, 0x27(%rsp)
je 0x4e94b
cmpq $0x0, 0x18(%rsp)
jbe 0x4e94b
cmpq $0x0, 0x30(%rsp)
je 0x4e99a
testb $0x1, 0x27(%rsp)
jne 0x4e962
cmpq $0x0, 0x18(%rsp)
jne 0x4e962
cmpq $0x0, 0x30(%rsp)
jne 0x4e99a
movq 0x5ed637(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4c76a0(%rip), %rsi    # 0x516013
leaq 0x4d561f(%rip), %rdx    # 0x523f99
leaq 0x4d5667(%rip), %rcx    # 0x523fe8
leaq 0x4d4fd1(%rip), %r8     # 0x523959
movl $0x1aa, %r9d            # imm = 0x1AA
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4e99c
movq 0x38(%rsp), %rax
movq (%rax), %rdi
movq 0x18(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq 0x28fbf0
leaq 0x4d5651(%rip), %rdi    # 0x52400b
callq 0x4ec70
movq 0x38(%rsp), %rax
movq (%rax), %rdi
movq 0x40(%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, %esi
movq 0x40(%rsp), %rax
movb 0x22(%rax), %dl
movq 0x58(%rsp), %rcx
movq 0x28(%rsp), %r8
movq 0x40(%rsp), %rax
movl 0x48(%rax), %r9d
movq 0x78(%rsp), %rax
leaq 0x4d65d8(%rip), %r10    # 0x524fd0
andb $0x1, %dl
movzbl %dl, %edx
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x292070
movl %eax, 0x14(%rsp)
movl 0x14(%rsp), %eax
addq $0x48, %rsp
retq
nopl (%rax)