// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/fmi-save.c
// Function: gt_saveFmindex
int gt_saveFmindex(const char *indexname,Fmindex *fm,
                   const GtSpecialcharinfo *specialcharinfo,
                   bool storeindexpos,GtError *err)
{
  gt_error_check(err);
  if (writefmascii(indexname, fm, specialcharinfo,storeindexpos,err) != 0)
  {
    return -1;
  }
  if (writefmdata (indexname, fm, storeindexpos,err) != 0)
  {
    return -2;
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movl %ecx, %ebp
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
testq %r8, %r8
je 0x15be76
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x15c08e
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x15c0b8
leaq 0x1eaad9(%rip), %rsi    # 0x346956
leaq 0x199c6d(%rip), %rdx    # 0x2f5af1
leaq 0x1eadcf(%rip), %rcx    # 0x346c5a
pushq $0x22
popq %r8
movq %r15, %rdi
movq %rbx, %r9
callq 0x8a449
testq %rax, %rax
je 0x15c078
movq %rax, %r13
movq 0x10(%r14), %rdx
leaq 0x1eadcb(%rip), %rsi    # 0x346c7c
movq %rax, %rdi
xorl %eax, %eax
callq 0x17a50
movq 0x30(%r14), %rdx
leaq 0x1eadc5(%rip), %rsi    # 0x346c8b
movq %r13, %rdi
xorl %eax, %eax
callq 0x17a50
movzbl %bpl, %ebp
leaq 0x1eadbd(%rip), %rsi    # 0x346c98
movq %r13, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x17a50
movl 0x88(%r14), %edx
leaq 0x1eadb5(%rip), %rsi    # 0x346caa
movq %r13, %rdi
xorl %eax, %eax
callq 0x17a50
movl 0x94(%r14), %edx
leaq 0x1eadaf(%rip), %rsi    # 0x346cbc
movq %r13, %rdi
xorl %eax, %eax
callq 0x17a50
movq (%r12), %rdx
leaq 0x1eadab(%rip), %rsi    # 0x346ccd
movq %r13, %rdi
xorl %eax, %eax
callq 0x17a50
movq 0x8(%r12), %rdx
leaq 0x1eadb0(%rip), %rsi    # 0x346ce8
movq %r13, %rdi
xorl %eax, %eax
callq 0x17a50
movq 0x10(%r12), %rdx
leaq 0x1ead96(%rip), %rsi    # 0x346ce4
movq %r13, %rdi
xorl %eax, %eax
callq 0x17a50
movq 0x18(%r12), %rdx
leaq 0x1ead97(%rip), %rsi    # 0x346cfb
movq %r13, %rdi
xorl %eax, %eax
callq 0x17a50
movq 0x20(%r12), %rdx
leaq 0x1ead9c(%rip), %rsi    # 0x346d16
movq %r13, %rdi
xorl %eax, %eax
callq 0x17a50
movq 0x28(%r12), %rdx
leaq 0x1eada1(%rip), %rsi    # 0x346d31
movq %r13, %rdi
xorl %eax, %eax
callq 0x17a50
movq 0x30(%r12), %rdx
leaq 0x1ead9e(%rip), %rsi    # 0x346d44
movq %r13, %rdi
xorl %eax, %eax
callq 0x17a50
movq 0x38(%r12), %rdx
leaq 0x1ead84(%rip), %rsi    # 0x346d40
movq %r13, %rdi
xorl %eax, %eax
callq 0x17a50
movq 0x40(%r12), %rdx
leaq 0x1ead86(%rip), %rsi    # 0x346d58
movq %r13, %rdi
xorl %eax, %eax
callq 0x17a50
movq 0x48(%r12), %rdx
leaq 0x1ead8c(%rip), %rsi    # 0x346d74
movq %r13, %rdi
xorl %eax, %eax
callq 0x17a50
movl 0x98(%r14), %edx
leaq 0x1ead90(%rip), %rsi    # 0x346d90
movq %r13, %rdi
xorl %eax, %eax
callq 0x17a50
movq %r13, %rdi
callq 0x8a5e5
testq %rbx, %rbx
je 0x15c027
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x15c0e2
leaq 0x1ea92d(%rip), %rsi    # 0x34695b
leaq 0x199abc(%rip), %rdx    # 0x2f5af1
leaq 0x1eac1e(%rip), %rcx    # 0x346c5a
pushq $0x4c
popq %r8
movq %r15, %rdi
movq %rbx, %r9
callq 0x8a449
pushq $-0x2
popq %r15
testq %rax, %rax
je 0x15c07c
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
movl %ebp, %edx
movq %rbx, %rcx
callq 0x15b740
testl %eax, %eax
jne 0x15c07c
movq %r12, %rdi
callq 0x8a5e5
xorl %r15d, %r15d
jmp 0x15c07c
pushq $-0x1
popq %r15
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2dbed3(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x188f74(%rip), %rsi    # 0x2e5013
leaq 0x189119(%rip), %rdx    # 0x2e51bf
leaq 0x1eab9e(%rip), %rcx    # 0x346c4b
leaq 0x1eaba6(%rip), %r8     # 0x346c5a
pushq $0x5d
jmp 0x15c10a
movq 0x2dbea9(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x188f4a(%rip), %rsi    # 0x2e5013
leaq 0x1890ef(%rip), %rdx    # 0x2e51bf
leaq 0x1eab98(%rip), %rcx    # 0x346c6f
leaq 0x1eab7c(%rip), %r8     # 0x346c5a
pushq $0x21
jmp 0x15c10a
movq 0x2dbe7f(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x188f20(%rip), %rsi    # 0x2e5013
leaq 0x1890c5(%rip), %rdx    # 0x2e51bf
leaq 0x1eaca0(%rip), %rcx    # 0x346da1
leaq 0x1eab52(%rip), %r8     # 0x346c5a
pushq $0x4b
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390