// File: /workspace/github_c_makefile_star2_O3/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, %r12d
movq %r8, %r13
movq %rcx, %r14
movl %edx, %ebp
movq %rsi, 0x20(%rsp)
movq %rdi, %rbx
callq 0x11ac6c
testq %rbx, %rbx
je 0x1cfc3c
movq %rax, %r15
testq %r14, %r14
je 0x1cf7c6
leaq 0x493(%rip), %rax       # 0x1cfc41
movq %rax, 0x30(%rsp)
movq %r14, 0x28(%rsp)
movq %rbx, 0x38(%rsp)
movq $0x0, 0x40(%rsp)
movb %bpl, 0x28(%rbx)
testl %r12d, %r12d
je 0x1cf883
testq %r14, %r14
leaq -0x19ab(%rip), %rax     # 0x1cde32
cmoveq 0x2e97f3(%rip), %rax    # 0x4b8fd8
movq %rax, 0x10(%rsp)
leaq 0x28(%rsp), %r14
cmoveq %rbx, %r14
movq %r13, 0x8(%rsp)
movl %r12d, 0x1c(%rsp)
xorl %r12d, %r12d
movq 0x20(%rsp), %r13
movq %r15, %rdi
movq 0x8(%rsp), %rsi
callq 0x11acf3
movq %r15, %rdi
movl $0x2e, %esi
callq 0x11af23
movq %r15, %rdi
movl %r12d, %esi
callq 0x11b054
movq %r15, %rdi
movq 0x80(%rsp), %rsi
callq 0x11acf3
movq %r15, %rdi
callq 0x11b0a1
movq %rax, %rdi
movq %r13, %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rcx
movq 0x88(%rsp), %r8
callq 0x1cc8a8
movl %eax, %ebp
movq %r15, %rdi
callq 0x11b132
incl %r12d
cmpl %r12d, 0x1c(%rsp)
jne 0x1cf805
movq %r15, %rdi
callq 0x11bdbf
testl %ebp, %ebp
jne 0x1cfbea
jmp 0x1cf88b
movq %r15, %rdi
callq 0x11bdbf
cmpq $0x0, 0x80(%rbx)
je 0x1cfbe8
xorl %r12d, %r12d
movq 0x70(%rbx), %rax
testq %rax, %rax
je 0x1cfc19
cmpq %r12, 0x8(%rax)
jbe 0x1cfc19
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1cfc19
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2f37dc
movq %rax, %r14
movq 0x60(%rbx), %rax
testq %rax, %rax
je 0x1cfc14
leaq 0x1(%r12), %r13
cmpq %r13, 0x8(%rax)
jbe 0x1cfc14
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1cfc14
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r13, %rsi
callq 0x2f37dc
movq %rax, %r15
movq 0x60(%rbx), %rax
testq %rax, %rax
je 0x1cfc1e
cmpq %r12, 0x8(%rax)
jbe 0x1cfc1e
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1cfc1e
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2f37dc
subq %rax, %r15
cmpq %r15, %r14
ja 0x1cfc37
movq 0x60(%rbx), %rax
testq %rax, %rax
je 0x1cfc23
cmpq %r13, 0x8(%rax)
jbe 0x1cfc23
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1cfc23
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r13, %rsi
callq 0x2f37dc
movq %rax, %r14
movq 0x60(%rbx), %rax
testq %rax, %rax
je 0x1cfc28
cmpq %r12, 0x8(%rax)
jbe 0x1cfc28
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1cfc28
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2f37dc
movq %rax, %r15
movq 0x70(%rbx), %rax
testq %rax, %rax
je 0x1cfc2d
cmpq %r12, 0x8(%rax)
jbe 0x1cfc2d
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1cfc2d
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2f37dc
addq %r15, %rax
cmpq %rax, %r14
jne 0x1cfa08
movq %r13, %r12
cmpq 0x80(%rbx), %r13
jb 0x1cf89c
jmp 0x1cfbe8
movq 0x70(%rbx), %rax
testq %rax, %rax
je 0x1cfc32
cmpq %r12, 0x8(%rax)
jbe 0x1cfc32
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1cfc32
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2f37dc
movq %rax, %r14
movq 0x60(%rbx), %rax
testq %rax, %rax
je 0x1cfbe3
movq %r12, 0x10(%rsp)
movq %r13, 0x8(%rsp)
cmpq %r13, 0x8(%rax)
jbe 0x1cfbe3
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1cfbe3
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r13, %rsi
callq 0x2f37dc
movq %rax, %r15
movq 0x60(%rbx), %rax
testq %rax, %rax
je 0x1cfbfb
cmpq %r12, 0x8(%rax)
jbe 0x1cfbfb
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1cfbfb
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2f37dc
subq %rax, %r15
cmpq %r15, %r14
jae 0x1cf9f3
movq 0x60(%rbx), %rax
testq %rax, %rax
je 0x1cfc0a
cmpq %r12, 0x8(%rax)
jbe 0x1cfc0a
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1cfc0a
movq 0x88(%rbx), %rbp
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r12, %rsi
callq 0x2f37dc
movq %rax, %r15
movq 0x90(%rbx), %rdi
callq 0x2f09dd
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movl %eax, %ecx
shll %cl, %r13d
movq 0x60(%rbx), %rax
testq %rax, %rax
je 0x1cfc0f
cmpq %r12, 0x8(%rax)
jbe 0x1cfc0f
movl 0x10(%rax), %edx
cmpq $0x41, %rdx
jae 0x1cfc0f
movq %r12, %rcx
movq %rbx, %r12
movq 0x88(%rbx), %rbx
movq (%rax), %rdi
movq %rdx, %rsi
imulq %rcx, %rsi
callq 0x2f37dc
testq %rbx, %rbx
je 0x1cfc00
addq %r14, %rax
cmpq %rax, 0x8(%rbx)
jbe 0x1cfc00
movl 0x10(%rbx), %edx
cmpq $0x41, %rdx
jae 0x1cfc00
movq (%rbx), %rdi
imulq %rdx, %rax
movq %rax, %rsi
callq 0x2f37dc
testq %rbp, %rbp
je 0x1cfc05
addq %r14, %r15
cmpq %r15, 0x8(%rbp)
jbe 0x1cfc05
movl 0x10(%rbp), %edx
cmpq $0x41, %rdx
jae 0x1cfc05
notl %r13d
addl %r13d, %r13d
notl %r13d
movslq %r13d, %rcx
andq %rcx, %rax
movq %r12, %rbx
movq 0x90(%r12), %rcx
leaq (%rax,%rcx,2), %rcx
movq (%rbp), %rdi
imulq %rdx, %r15
movq %r15, %rsi
callq 0x2f388c
incq %r14
movq 0x60(%r12), %rax
testq %rax, %rax
movq 0x10(%rsp), %r12
movq 0x8(%rsp), %r13
jne 0x1cfa55
callq 0x6c890
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x6c857
callq 0x6c7ac
callq 0x6c773
callq 0x6c81e
callq 0x6c7e5
callq 0x6ca1f
callq 0x6ca58
callq 0x6c9e6
callq 0x6c974
callq 0x6c93b
callq 0x6c902
callq 0x6c8c9
callq 0x6c9ad
callq 0x6ca91