// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/sfx-outprj.c
// Function: gt_outprjfile
int gt_outprjfile(const char *indexname,
                  GtReadmode readmode,
                  const GtEncseq *encseq,
                  GtUword numberofallsortedsuffixes,
                  unsigned int prefixlength,
                  GtUword numoflargelcpvalues,
                  double averagelcp,
                  GtUword maxbranchdepth,
                  const Definedunsignedlong *longest,
                  GtError *err)
{
  FILE *prjfp;
  bool haserr = false;

  gt_error_check(err);
  prjfp = gt_fa_fopen_with_suffix(indexname,GT_PROJECTFILESUFFIX,"wb",err);
  if (prjfp == NULL)
  {
    haserr = true;
  }
  if (!haserr)
  {
    showprjinfo(prjfp,
                readmode,
                encseq,
                numberofallsortedsuffixes,
                prefixlength,
                numoflargelcpvalues,
                averagelcp,
                maxbranchdepth,
                longest);
    gt_fa_xfclose(prjfp);
  }
  return haserr ? -1 : 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movsd %xmm0, 0x10(%rsp)
movq %r9, %r15
movl %r8d, %r12d
movq %rcx, %r13
movq %rdx, %rbx
movl %esi, 0xc(%rsp)
movq %rdi, %rbp
movq 0x60(%rsp), %r14
testq %r14, %r14
je 0x32a19d
movq %r14, %rdi
callq 0xfcc32
testb %al, %al
jne 0x32a481
leaq 0x2377d(%rip), %rsi     # 0x34d921
leaq 0x2b936(%rip), %rdx     # 0x355ae1
leaq 0xbb53a(%rip), %rcx     # 0x3e56ec
movq %rbp, %rdi
movl $0x63, %r8d
movq %r14, %r9
callq 0xfcf97
movq %rax, %r14
testq %rax, %rax
je 0x32a46a
movq %rbx, %rdi
callq 0xe7b9c
leaq 0xbb525(%rip), %rsi     # 0x3e5703
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xec58b
leaq 0xbb51a(%rip), %rbp     # 0x3e5714
leaq 0x8fd7d(%rip), %rdx     # 0x3b9f7e
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xec5a3
leaq 0x3a6d4(%rip), %rdx     # 0x3648f4
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xec63b
leaq 0x7a0af(%rip), %rdx     # 0x3a42ee
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xec67e
leaq 0x3a890(%rip), %rdx     # 0x364aee
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xec686
leaq 0x3a8c3(%rip), %rdx     # 0x364b40
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xec68e
leaq 0x2e4df(%rip), %rdx     # 0x35877b
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xec69f
leaq 0x7a049(%rip), %rdx     # 0x3a4304
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xec6b0
leaq 0x7a026(%rip), %rdx     # 0x3a4300
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xec6c1
leaq 0x7a01a(%rip), %rdx     # 0x3a4313
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xec6c9
leaq 0x7a012(%rip), %rdx     # 0x3a432a
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xe7bac
movq %rax, %rbp
leaq 0xbb3e2(%rip), %rsi     # 0x3e571c
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x17ab0
leaq 0xbb3e2(%rip), %rsi     # 0x3e5730
movq %r14, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x17ab0
leaq 0xbb3e4(%rip), %rdi     # 0x3e5746
movl $0x16, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x17fa0
leaq 0xbb3e2(%rip), %rsi     # 0x3e575d
movq %r14, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x17ab0
movq 0x58(%rsp), %rax
cmpb $0x1, (%rax)
jne 0x32a3a7
movq 0x8(%rax), %rdx
leaq 0x7c56e(%rip), %rsi     # 0x3a690b
movq %r14, %rdi
xorl %eax, %eax
callq 0x17ab0
leaq 0xbb3ce(%rip), %rsi     # 0x3e577c
movq %r14, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0x17ab0
leaq 0xbb3cb(%rip), %rsi     # 0x3e578d
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x17ab0
leaq 0xbb3cb(%rip), %rsi     # 0x3e57a1
movq %r14, %rdi
movsd 0x10(%rsp), %xmm0
movb $0x1, %al
callq 0x17ab0
leaq 0xbb3c5(%rip), %rsi     # 0x3e57b2
movq %r14, %rdi
movq 0x50(%rsp), %rdx
xorl %eax, %eax
callq 0x17ab0
leaq 0xbb3c3(%rip), %rsi     # 0x3e57c6
movq %r14, %rdi
movl $0x40, %edx
xorl %eax, %eax
callq 0x17ab0
callq 0x2f8f20
movzbl %al, %edx
orl $0x30, %edx
leaq 0xbb3b2(%rip), %rsi     # 0x3e57d6
movq %r14, %rdi
xorl %eax, %eax
callq 0x17ab0
leaq 0xbb3b2(%rip), %rsi     # 0x3e57e7
movq %r14, %rdi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xf6567
movzbl %al, %edx
orl $0x30, %edx
leaq 0xbb39c(%rip), %rsi     # 0x3e57f4
movq %r14, %rdi
xorl %eax, %eax
callq 0x17ab0
movq %r14, %rdi
callq 0xfd09a
xorl %eax, %eax
cmpq $0x1, %r14
sbbl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x955a8
nop