// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/rdj-strgraph.c
// Function: gt_strgraph_load_spm_from_file
int gt_strgraph_load_spm_from_file(GtStrgraph *strgraph,
    GtUword min_length, bool load_self_spm, GtBitsequence *contained,
    const char *indexname, unsigned int nspmfiles, const char *suffix,
    GtError *err)
{
  int had_err = 0;
  GtStr *filename = gt_str_new();
  GtSpmprocSkipData skipdata;
  unsigned int i;

  gt_assert(strgraph != NULL);
  if (contained != NULL)
  {
    skipdata.out.e.proc = gt_spmproc_strgraph_add;
    skipdata.to_skip = contained;
    skipdata.out.e.data = strgraph;
    skipdata.skipped_counter = 0;
  }
  strgraph->load_self_spm = load_self_spm;
  for (i = 0; i < nspmfiles; i++)
  {
    gt_str_append_cstr(filename, indexname);
    gt_str_append_char(filename, '.');
    gt_str_append_uint(filename, i);
    gt_str_append_cstr(filename, suffix);
    had_err = gt_spmlist_parse(gt_str_get(filename), min_length,
        contained != NULL ? gt_spmproc_skip : gt_spmproc_strgraph_add,
        contained != NULL ? (void*)&skipdata : (void*)strgraph, err);
    gt_str_reset(filename);
  }
  gt_str_delete(filename);
  if (!had_err)
    gt_strgraph_mark_empty_edges(strgraph);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r9d, 0x8(%rsp)
movq %r8, 0x18(%rsp)
movq %rcx, %r15
movl %edx, %r14d
movq %rsi, %r12
movq %rdi, %rbx
callq 0xacb84
testq %rbx, %rbx
je 0x18103d
movq %rax, %r13
testq %r15, %r15
je 0x180e15
leaq 0x275(%rip), %rax       # 0x18106b
leaq 0x28(%rsp), %rbp
movq %rax, 0x8(%rbp)
movq %r15, (%rbp)
movq %rbx, 0x10(%rbp)
andq $0x0, 0x18(%rbp)
leaq -0x1ead(%rip), %r15     # 0x17ef66
jmp 0x180e1f
leaq 0x24f(%rip), %r15       # 0x18106b
movq %rbx, %rbp
movb %r14b, 0x28(%rbx)
movl $0x0, 0x14(%rsp)
xorl %r14d, %r14d
cmpl %r14d, 0x8(%rsp)
je 0x180e9a
movq %r13, %rdi
movq 0x18(%rsp), %rsi
callq 0xacbfb
movq %r13, %rdi
pushq $0x2e
popq %rsi
callq 0xaced9
movq %r13, %rdi
movl %r14d, %esi
callq 0xad151
movq %r13, %rdi
movq 0x80(%rsp), %rsi
callq 0xacbfb
movq %r13, %rdi
callq 0xad1fa
movq %rax, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %rbp, %rcx
movq 0x88(%rsp), %r8
callq 0x17d808
movl %eax, 0x14(%rsp)
movq %r13, %rdi
callq 0xad357
incl %r14d
jmp 0x180e2e
movq %r13, %rdi
callq 0xae103
cmpl $0x0, 0x14(%rsp)
je 0x180ebc
movl 0x14(%rsp), %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
movq %rbp, 0x8(%rsp)
cmpq 0x80(%rbx), %rbp
jae 0x180ea9
movq 0x70(%rbx), %rdi
movq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0x17ffcd
movq %rax, %r12
movq 0x60(%rbx), %rdi
leaq 0x1(%r14), %rbp
movq %rbp, %rsi
callq 0x17ffcd
movq %rax, %r13
movq 0x60(%rbx), %rdi
movq %r14, %rsi
callq 0x17ffcd
subq %rax, %r13
cmpq %r13, %r12
ja 0x181005
movq 0x60(%rbx), %rdi
movq %rbp, %rsi
callq 0x17ffcd
movq %rax, %r12
movq 0x60(%rbx), %rdi
movq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0x17ffcd
movq %rax, %r13
movq 0x70(%rbx), %rdi
movq %r14, %rsi
callq 0x17ffcd
addq %r13, %rax
cmpq %rax, %r12
je 0x180ebe
movq 0x70(%rbx), %rdi
movq 0x8(%rsp), %rsi
callq 0x17ffcd
movq %rax, %r12
movq 0x60(%rbx), %rdi
movq %rbp, %rsi
callq 0x17ffcd
movq %rax, %r13
movq 0x60(%rbx), %rdi
movq 0x8(%rsp), %rsi
callq 0x17ffcd
subq %rax, %r13
cmpq %r13, %r12
jae 0x180ebe
movq 0x60(%rbx), %rdi
movq 0x88(%rbx), %rax
movq %rax, 0x18(%rsp)
movq 0x8(%rsp), %r13
movq %r13, %rsi
callq 0x17ffcd
addq %r12, %rax
movq %rax, 0x20(%rsp)
movq 0x90(%rbx), %rdi
callq 0x28a939
pushq $-0x1
popq %rdx
movl %eax, %ecx
shll %cl, %edx
notl %edx
addl %edx, %edx
notl %edx
movslq %edx, %r14
movq 0x60(%rbx), %rdi
movq 0x88(%rbx), %r15
movq %r13, %rsi
callq 0x17ffcd
leaq (%rax,%r12), %rsi
movq %r15, %rdi
callq 0x17ffcd
andq %r14, %rax
movq 0x90(%rbx), %rcx
leaq (%rax,%rcx,2), %rdx
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x180026
incq %r12
jmp 0x180f57
movq 0x2b6f5c(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x163ffd(%rip), %rsi    # 0x2e5013
leaq 0x1cf6fa(%rip), %rdx    # 0x350717
leaq 0x1cf73c(%rip), %rcx    # 0x350760
leaq 0x1ce74a(%rip), %r8     # 0x34f775
movl $0x2c8, %r9d            # imm = 0x2C8
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x2b6f24(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x163fc5(%rip), %rsi    # 0x2e5013
leaq 0x1ce7e4(%rip), %rdx    # 0x34f839
leaq 0x1ceb6e(%rip), %rcx    # 0x34fbca
leaq 0x1ce712(%rip), %r8     # 0x34f775
movl $0x2e0, %r9d            # imm = 0x2E0
jmp 0x181031