// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x88, %rsp
movb %dl, %al
movq 0x98(%rsp), %rdx
movq 0x90(%rsp), %rdx
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
andb $0x1, %al
movb %al, 0x77(%rsp)
movq %rcx, 0x68(%rsp)
movq %r8, 0x60(%rsp)
movl %r9d, 0x5c(%rsp)
movl $0x0, 0x58(%rsp)
callq 0x11d4a0
movq %rax, 0x50(%rsp)
cmpq $0x0, 0x80(%rsp)
jne 0x292100
movq 0x3a9ed1(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x283f3a(%rip), %rsi    # 0x516013
leaq 0x2f0024(%rip), %rdx    # 0x582104
leaq 0x2f03ed(%rip), %rcx    # 0x5824d4
leaq 0x2eff52(%rip), %r8     # 0x582040
movl $0x2e0, %r9d            # imm = 0x2E0
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x292102
cmpq $0x0, 0x68(%rsp)
je 0x292136
leaq 0x14f(%rip), %rax       # 0x292260
movq %rax, 0x38(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x40(%rsp)
movq $0x0, 0x48(%rsp)
movb 0x77(%rsp), %cl
movq 0x80(%rsp), %rax
andb $0x1, %cl
movb %cl, 0x28(%rax)
movl $0x0, 0x2c(%rsp)
movl 0x2c(%rsp), %eax
cmpl 0x5c(%rsp), %eax
jae 0x292235
movq 0x50(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x11d550
movq 0x50(%rsp), %rdi
movl $0x2e, %esi
callq 0x11da70
movq 0x50(%rsp), %rdi
movl 0x2c(%rsp), %esi
callq 0x11de00
movq 0x50(%rsp), %rdi
movq 0x90(%rsp), %rsi
callq 0x11d550
movq 0x50(%rsp), %rdi
callq 0x11dee0
movq %rax, 0x10(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x68(%rsp), %rdx
leaq 0x9f(%rip), %rax        # 0x292260
leaq -0x3528(%rip), %rcx     # 0x28eca0
cmpq $0x0, %rdx
cmovneq %rcx, %rax
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x68(%rsp)
je 0x2921e9
leaq 0x30(%rsp), %rax
movq %rax, 0x8(%rsp)
jmp 0x2921f6
movq 0x80(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rdx
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rcx
movq 0x98(%rsp), %r8
callq 0x28bd10
movl %eax, 0x58(%rsp)
movq 0x50(%rsp), %rdi
callq 0x11e110
movl 0x2c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2c(%rsp)
jmp 0x292150
movq 0x50(%rsp), %rdi
callq 0x11f560
cmpl $0x0, 0x58(%rsp)
jne 0x292253
movq 0x80(%rsp), %rdi
callq 0x292480
movl 0x58(%rsp), %eax
addq $0x88, %rsp
retq
nop