// File: /workspace/github_c_makefile_star2_O1/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 0x1b743f
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0x1b765b
testq %rbx, %rbx
je 0x1b743f
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0x1b7660
leaq 0x1f8734(%rip), %rsi    # 0x3afb7a
leaq 0x1a76c0(%rip), %rdx    # 0x35eb0d
leaq 0x1f8a2a(%rip), %rcx    # 0x3afe7e
movq %r15, %rdi
movl $0x22, %r8d
movq %rbx, %r9
callq 0x101dff
testq %rax, %rax
je 0x1b7643
movq %rax, %r13
movq 0x10(%r14), %rdx
leaq 0x1f8a24(%rip), %rsi    # 0x3afea0
movq %rax, %rdi
xorl %eax, %eax
callq 0x17ab0
movq 0x30(%r14), %rdx
leaq 0x1f8a1e(%rip), %rsi    # 0x3afeaf
movq %r13, %rdi
xorl %eax, %eax
callq 0x17ab0
movzbl %bpl, %ebp
leaq 0x1f8a16(%rip), %rsi    # 0x3afebc
movq %r13, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x17ab0
movl 0x88(%r14), %edx
leaq 0x1f8a0e(%rip), %rsi    # 0x3afece
movq %r13, %rdi
xorl %eax, %eax
callq 0x17ab0
movl 0x94(%r14), %edx
leaq 0x1f8a08(%rip), %rsi    # 0x3afee0
movq %r13, %rdi
xorl %eax, %eax
callq 0x17ab0
movq (%r12), %rdx
leaq 0x1f8a04(%rip), %rsi    # 0x3afef1
movq %r13, %rdi
xorl %eax, %eax
callq 0x17ab0
movq 0x8(%r12), %rdx
leaq 0x1f8a09(%rip), %rsi    # 0x3aff0c
movq %r13, %rdi
xorl %eax, %eax
callq 0x17ab0
movq 0x10(%r12), %rdx
leaq 0x1f89ef(%rip), %rsi    # 0x3aff08
movq %r13, %rdi
xorl %eax, %eax
callq 0x17ab0
movq 0x18(%r12), %rdx
leaq 0x1f89f0(%rip), %rsi    # 0x3aff1f
movq %r13, %rdi
xorl %eax, %eax
callq 0x17ab0
movq 0x20(%r12), %rdx
leaq 0x1f89f5(%rip), %rsi    # 0x3aff3a
movq %r13, %rdi
xorl %eax, %eax
callq 0x17ab0
movq 0x28(%r12), %rdx
leaq 0x1f89fa(%rip), %rsi    # 0x3aff55
movq %r13, %rdi
xorl %eax, %eax
callq 0x17ab0
movq 0x30(%r12), %rdx
leaq 0x1f89f7(%rip), %rsi    # 0x3aff68
movq %r13, %rdi
xorl %eax, %eax
callq 0x17ab0
movq 0x38(%r12), %rdx
leaq 0x1f89dd(%rip), %rsi    # 0x3aff64
movq %r13, %rdi
xorl %eax, %eax
callq 0x17ab0
movq 0x40(%r12), %rdx
leaq 0x1f89df(%rip), %rsi    # 0x3aff7c
movq %r13, %rdi
xorl %eax, %eax
callq 0x17ab0
movq 0x48(%r12), %rdx
leaq 0x1f89e5(%rip), %rsi    # 0x3aff98
movq %r13, %rdi
xorl %eax, %eax
callq 0x17ab0
movl 0x98(%r14), %edx
leaq 0x1f89e9(%rip), %rsi    # 0x3affb4
movq %r13, %rdi
xorl %eax, %eax
callq 0x17ab0
movq %r13, %rdi
callq 0x101f02
testq %rbx, %rbx
je 0x1b75ee
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0x1b7665
leaq 0x1f858a(%rip), %rsi    # 0x3afb7f
leaq 0x1a7511(%rip), %rdx    # 0x35eb0d
leaq 0x1f887b(%rip), %rcx    # 0x3afe7e
movq %r15, %rdi
movl $0x4c, %r8d
movq %rbx, %r9
callq 0x101dff
movl $0xfffffffe, %r15d      # imm = 0xFFFFFFFE
testq %rax, %rax
je 0x1b7649
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
movl %ebp, %edx
movq %rbx, %rcx
callq 0x1b6e04
testl %eax, %eax
jne 0x1b7649
movq %r12, %rdi
callq 0x101f02
xorl %r15d, %r15d
jmp 0x1b7649
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x66017
callq 0x65fe0
callq 0x6604e
nop