// File: /workspace/github_c_makefile_star2_O1/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 0x334d51
movq %r14, %rdi
callq 0x101a9a
testb %al, %al
jne 0x335035
leaq 0x21bf9(%rip), %rsi     # 0x356951
leaq 0x29dae(%rip), %rdx     # 0x35eb0d
leaq 0xba146(%rip), %rcx     # 0x3eeeac
movq %rbp, %rdi
movl $0x63, %r8d
movq %r14, %r9
callq 0x101dff
movq %rax, %r14
testq %rax, %rax
je 0x33501e
movq %rbx, %rdi
callq 0xec1d8
leaq 0xba131(%rip), %rsi     # 0x3eeec3
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xf0b87
leaq 0xba126(%rip), %rbp     # 0x3eeed4
leaq 0x8e82d(%rip), %rdx     # 0x3c35e2
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xf0b9f
leaq 0x38cd4(%rip), %rdx     # 0x36daa8
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xf0c37
leaq 0x78a9a(%rip), %rdx     # 0x3ad88d
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xf0c7a
leaq 0x38e90(%rip), %rdx     # 0x36dca2
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xf0c82
leaq 0x38ec3(%rip), %rdx     # 0x36dcf4
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xf0c8a
leaq 0x2c97e(%rip), %rdx     # 0x3617ce
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xf0c9b
leaq 0x78a34(%rip), %rdx     # 0x3ad8a3
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xf0cac
leaq 0x78a11(%rip), %rdx     # 0x3ad89f
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xf0cbd
leaq 0x78a05(%rip), %rdx     # 0x3ad8b2
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xf0cc5
leaq 0x789fd(%rip), %rdx     # 0x3ad8c9
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xec1e8
movq %rax, %rbp
leaq 0xb9fee(%rip), %rsi     # 0x3eeedc
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x17ab0
leaq 0xb9fee(%rip), %rsi     # 0x3eeef0
movq %r14, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x17ab0
leaq 0xb9ff0(%rip), %rdi     # 0x3eef06
movl $0x16, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x17fa0
leaq 0xb9fee(%rip), %rsi     # 0x3eef1d
movq %r14, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x17ab0
movq 0x58(%rsp), %rax
cmpb $0x1, (%rax)
jne 0x334f5b
movq 0x8(%rax), %rdx
leaq 0x7af5e(%rip), %rsi     # 0x3afeaf
movq %r14, %rdi
xorl %eax, %eax
callq 0x17ab0
leaq 0xb9fda(%rip), %rsi     # 0x3eef3c
movq %r14, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0x17ab0
leaq 0xb9fd7(%rip), %rsi     # 0x3eef4d
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x17ab0
leaq 0xb9fd7(%rip), %rsi     # 0x3eef61
movq %r14, %rdi
movsd 0x10(%rsp), %xmm0
movb $0x1, %al
callq 0x17ab0
leaq 0xb9fd1(%rip), %rsi     # 0x3eef72
movq %r14, %rdi
movq 0x50(%rsp), %rdx
xorl %eax, %eax
callq 0x17ab0
leaq 0xb9fcf(%rip), %rsi     # 0x3eef86
movq %r14, %rdi
movl $0x40, %edx
xorl %eax, %eax
callq 0x17ab0
callq 0x302bdc
movzbl %al, %edx
orl $0x30, %edx
leaq 0xb9fbe(%rip), %rsi     # 0x3eef96
movq %r14, %rdi
xorl %eax, %eax
callq 0x17ab0
leaq 0xb9fbe(%rip), %rsi     # 0x3eefa7
movq %r14, %rdi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x17ab0
movq %rbx, %rdi
callq 0xfac80
movzbl %al, %edx
orl $0x30, %edx
leaq 0xb9fa8(%rip), %rsi     # 0x3eefb4
movq %r14, %rdi
xorl %eax, %eax
callq 0x17ab0
movq %r14, %rdi
callq 0x101f02
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 0x9759f
nop