// File: /workspace/github_c_makefile_star2_O2/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 0x2cb9c9
movq %r14, %rdi
callq 0x89eb7
testb %al, %al
jne 0x2cbca5
leaq 0x21f51(%rip), %rsi     # 0x2ed921
leaq 0x2a11a(%rip), %rdx     # 0x2f5af1
leaq 0xba10e(%rip), %rcx     # 0x385aec
pushq $0x63
popq %r8
movq %rbp, %rdi
movq %r14, %r9
callq 0x8a449
movq %rax, %r14
testq %rax, %rax
je 0x2cbc8e
movq %rbx, %rdi
callq 0x7055e
leaq 0xba0fb(%rip), %rsi     # 0x385b03
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x17a50
movq %rbx, %rdi
callq 0x760bc
leaq 0xba0f0(%rip), %rbp     # 0x385b14
leaq 0x8e9b3(%rip), %rdx     # 0x35a3de
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17a50
movq %rbx, %rdi
callq 0x760d4
leaq 0x38dda(%rip), %rdx     # 0x304824
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17a50
movq %rbx, %rdi
callq 0x76238
leaq 0x78bf5(%rip), %rdx     # 0x34465e
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17a50
movq %rbx, %rdi
callq 0x7627b
leaq 0x38f96(%rip), %rdx     # 0x304a1e
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17a50
movq %rbx, %rdi
callq 0x76283
leaq 0x38fc9(%rip), %rdx     # 0x304a70
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17a50
movq %rbx, %rdi
callq 0x7628b
leaq 0x2ccc5(%rip), %rdx     # 0x2f878b
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17a50
movq %rbx, %rdi
callq 0x7629c
leaq 0x78b8f(%rip), %rdx     # 0x344674
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17a50
movq %rbx, %rdi
callq 0x762ad
leaq 0x78b6c(%rip), %rdx     # 0x344670
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17a50
movq %rbx, %rdi
callq 0x762be
leaq 0x78b60(%rip), %rdx     # 0x344683
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17a50
movq %rbx, %rdi
callq 0x762c6
leaq 0x78b58(%rip), %rdx     # 0x34469a
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17a50
movq %rbx, %rdi
callq 0x705a1
movq %rax, %rbp
leaq 0xb9fb8(%rip), %rsi     # 0x385b1c
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x17a50
leaq 0xb9fb8(%rip), %rsi     # 0x385b30
movq %r14, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x17a50
leaq 0xb9fba(%rip), %rdi     # 0x385b46
pushq $0x16
popq %rsi
pushq $0x1
popq %rdx
movq %r14, %rcx
callq 0x17f00
leaq 0xb9fbc(%rip), %rsi     # 0x385b5d
movq %r14, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x17a50
movq 0x58(%rsp), %rax
cmpb $0x1, (%rax)
jne 0x2cbbcd
movq 0x8(%rax), %rdx
leaq 0x7b0c8(%rip), %rsi     # 0x346c8b
movq %r14, %rdi
xorl %eax, %eax
callq 0x17a50
leaq 0xb9fa8(%rip), %rsi     # 0x385b7c
movq %r14, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0x17a50
leaq 0xb9fa5(%rip), %rsi     # 0x385b8d
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x17a50
leaq 0xb9fa5(%rip), %rsi     # 0x385ba1
movq %r14, %rdi
movsd 0x10(%rsp), %xmm0
movb $0x1, %al
callq 0x17a50
leaq 0xb9f9f(%rip), %rsi     # 0x385bb2
movq %r14, %rdi
movq 0x50(%rsp), %rdx
xorl %eax, %eax
callq 0x17a50
leaq 0xb9f9d(%rip), %rsi     # 0x385bc6
pushq $0x40
popq %rdx
movq %r14, %rdi
xorl %eax, %eax
callq 0x17a50
callq 0x29447c
movzbl %al, %edx
orl $0x30, %edx
leaq 0xb9f8e(%rip), %rsi     # 0x385bd6
movq %r14, %rdi
xorl %eax, %eax
callq 0x17a50
leaq 0xb9f8e(%rip), %rsi     # 0x385be7
movq %r14, %rdi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x17a50
movq %rbx, %rdi
callq 0x81dea
movzbl %al, %edx
orl $0x30, %edx
leaq 0xb9f78(%rip), %rsi     # 0x385bf4
movq %r14, %rdi
xorl %eax, %eax
callq 0x17a50
movq %r14, %rdi
callq 0x8a5e5
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
movq 0x16c2bc(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1935d(%rip), %rsi     # 0x2e5013
leaq 0x19502(%rip), %rdx     # 0x2e51bf
leaq 0xb9e1a(%rip), %rcx     # 0x385ade
leaq 0xb9e21(%rip), %r8      # 0x385aec
pushq $0x62
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nop