// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/sfx-run.c
// Function: initoutfileinfo
static int initoutfileinfo(Outfileinfo *outfileinfo,
                           unsigned int prefixlength,
                           const GtEncseq *encseq,
                           const Suffixeratoroptions *so,
                           bool compressedoutput,
                           GenomediffInfo *gd_info,
                           GtError *err)
{
  bool haserr = false;

  if (so->outlcptab)
  {

    gt_assert(gt_str_get(so->indexname) != NULL || so->genomediff);
    if (so->genomediff)
    {
      outfileinfo->bustate_shulen =
        gt_sfx_multiesashulengthdist_new(encseq,gd_info);
    }
    outfileinfo->outlcpinfo
      = gt_Outlcpinfo_new(so->genomediff ? NULL : gt_str_get(so->indexname),
                          gt_encseq_alphabetnumofchars(encseq),
                          prefixlength,
                          gt_index_options_lcpdist_value(so->idxopts),
                          gt_index_options_swallow_tail_value(so->idxopts),
                          so->genomediff ? gt_suflcptab2genomediff
                                        : NULL,
                          outfileinfo->bustate_shulen,
                          err);
    if (outfileinfo->outlcpinfo == NULL)
    {
      haserr = true;
    }
  } else
  {
    outfileinfo->outlcpinfo = NULL;
  }
  INITOUTFILEPTR(outfileinfo->outfpsuftab,
                 gt_index_options_outsuftab_value(so->idxopts),
                 compressedoutput ? GT_SUFTABSUFFIX_BYTECOMPRESSED
                                  : GT_SUFTABSUFFIX);
  INITOUTFILEPTR(outfileinfo->outfpbwttab,
                 gt_index_options_outbwttab_value(so->idxopts),
                 GT_BWTTABSUFFIX);
  INITOUTFILEPTR(outfileinfo->outfpbcktab,
                 gt_index_options_outbcktab_value(so->idxopts),
                 GT_BCKTABSUFFIX);
  if (gt_index_options_outsuftab_value(so->idxopts)
        || gt_index_options_outbwttab_value(so->idxopts)
        || so->outlcptab
        || gt_index_options_outbcktab_value(so->idxopts))
  {
    outfileinfo->encseq = encseq;
  } else
  {
    outfileinfo->encseq = NULL;
  }
  return haserr  ? -1 : 0;
}

// Assembly:
subq $0x68, %rsp
movb %r8b, %al
movq 0x70(%rsp), %r8
movq %rdi, 0x60(%rsp)
movl %esi, 0x5c(%rsp)
movq %rdx, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
andb $0x1, %al
movb %al, 0x47(%rsp)
movq %r9, 0x38(%rsp)
movb $0x0, 0x37(%rsp)
movq 0x48(%rsp), %rax
testb $0x1, 0x3(%rax)
je 0x2cfa9f
jmp 0x2cf940
movq 0x48(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
cmpq $0x0, %rax
jne 0x2cf997
movq 0x48(%rsp), %rax
testb $0x1, 0x2(%rax)
jne 0x2cf997
movq 0x36c63a(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2466a3(%rip), %rsi    # 0x516013
leaq 0x2bc55c(%rip), %rdx    # 0x58bed3
leaq 0x2bc589(%rip), %rcx    # 0x58bf07
leaq 0x2bc40e(%rip), %r8     # 0x58bd93
movl $0x7e, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2cf999
movq 0x48(%rsp), %rax
testb $0x1, 0x2(%rax)
je 0x2cf9bf
movq 0x50(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x23d8c0
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x40(%rax)
movq 0x48(%rsp), %rax
testb $0x1, 0x2(%rax)
je 0x2cf9d3
xorl %eax, %eax
movq %rax, 0x28(%rsp)
jmp 0x2cf9e6
movq 0x48(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x50(%rsp), %rdi
callq 0xb0e80
movl %eax, 0x20(%rsp)
movl 0x5c(%rsp), %eax
movl %eax, 0x24(%rsp)
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x25ccc0
movb %al, 0x17(%rsp)
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x25cf50
movb 0x17(%rsp), %cl
movq 0x18(%rsp), %rdi
movl 0x20(%rsp), %esi
movl 0x24(%rsp), %edx
movq 0x48(%rsp), %r8
movb 0x2(%r8), %r10b
xorl %r8d, %r8d
movl %r8d, %r9d
leaq 0x9c3(%rip), %r8        # 0x2d0410
testb $0x1, %r10b
cmovneq %r8, %r9
movq 0x60(%rsp), %r8
movq 0x40(%r8), %r10
movq 0x70(%rsp), %r11
movq %rsp, %r8
movq %r11, 0x8(%r8)
movq %r10, (%r8)
movzbl %cl, %ecx
andl $0x1, %ecx
movzbl %al, %r8d
andl $0x1, %r8d
callq 0x2c5ef0
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x38(%rax)
movq 0x60(%rsp), %rax
cmpq $0x0, 0x38(%rax)
jne 0x2cfa9d
movb $0x1, 0x37(%rsp)
jmp 0x2cfaac
movq 0x60(%rsp), %rax
movq $0x0, 0x38(%rax)
testb $0x1, 0x37(%rsp)
jne 0x2cfb2c
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x25cb50
testb $0x1, %al
jne 0x2cfac7
jmp 0x2cfb2c
movq 0x48(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movb 0x47(%rsp), %cl
leaq 0x289e0e(%rip), %rsi    # 0x5598f1
leaq 0x25b05f(%rip), %rax    # 0x52ab49
testb $0x1, %cl
cmovneq %rax, %rsi
movq 0x70(%rsp), %r9
leaq 0x2570a0(%rip), %rdx    # 0x526b9d
leaq 0x2bc28f(%rip), %rcx    # 0x58bd93
movl $0x99, %r8d
callq 0xd92c0
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, (%rax)
movq 0x60(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x2cfb2a
movb $0x1, 0x37(%rsp)
jmp 0x2cfb2c
testb $0x1, 0x37(%rsp)
jne 0x2cfb9c
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x25c9d0
testb $0x1, %al
jne 0x2cfb47
jmp 0x2cfb9c
movq 0x48(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x70(%rsp), %r9
leaq 0x2a6f18(%rip), %rsi    # 0x576a7c
leaq 0x257032(%rip), %rdx    # 0x526b9d
leaq 0x2bc221(%rip), %rcx    # 0x58bd93
movl $0x9c, %r8d
callq 0xd92c0
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x60(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x2cfb9a
movb $0x1, 0x37(%rsp)
jmp 0x2cfb9c
testb $0x1, 0x37(%rsp)
jne 0x2cfc0c
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x25c910
testb $0x1, %al
jne 0x2cfbb7
jmp 0x2cfc0c
movq 0x48(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x70(%rsp), %r9
leaq 0x2a17c2(%rip), %rsi    # 0x571396
leaq 0x256fc2(%rip), %rdx    # 0x526b9d
leaq 0x2bc1b1(%rip), %rcx    # 0x58bd93
movl $0x9f, %r8d
callq 0xd92c0
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x60(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x2cfc0a
movb $0x1, 0x37(%rsp)
jmp 0x2cfc0c
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x25cb50
testb $0x1, %al
jne 0x2cfc4f
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x25c9d0
testb $0x1, %al
jne 0x2cfc4f
movq 0x48(%rsp), %rax
testb $0x1, 0x3(%rax)
jne 0x2cfc4f
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x25c910
testb $0x1, %al
jne 0x2cfc4f
jmp 0x2cfc5f
movq 0x50(%rsp), %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x20(%rax)
jmp 0x2cfc6c
movq 0x60(%rsp), %rax
movq $0x0, 0x20(%rax)
movb 0x37(%rsp), %dl
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
testb $0x1, %dl
cmovnel %ecx, %eax
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)