// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/fmi-save.c
// Function: writefmascii
static int writefmascii(const char *indexname,
                        const Fmindex *fm,
                        const GtSpecialcharinfo *specialcharinfo,
                        bool storeindexpos,
                        GtError *err)
{
  FILE *fmafp;

  gt_error_check(err);
  fmafp = gt_fa_fopen_with_suffix(indexname,FMASCIIFILESUFFIX,"wb",err);
  if (fmafp == NULL)
  {
    return -1;
  }
  fprintf (fmafp, "bwtlength=" GT_WU "\n",
           fm->bwtlength);
  fprintf (fmafp, "longest=" GT_WU "\n",
                   fm->longestsuffixpos);
  fprintf (fmafp, "storeindexpos=%d\n", storeindexpos ? 1 : 0);
  fprintf (fmafp, "log2blocksize=%u\n", fm->log2bsize);
  fprintf (fmafp, "log2markdist=%u\n", fm->log2markdist);
  fprintf (fmafp, "specialcharacters=" GT_WU "\n",
           specialcharinfo->specialcharacters);
  fprintf (fmafp, "specialranges=" GT_WU "\n",specialcharinfo->specialranges);
  fprintf (fmafp, "realspecialranges=" GT_WU "\n",
           specialcharinfo->realspecialranges);
  fprintf (fmafp, "lengthofspecialprefix=" GT_WU "\n",
           specialcharinfo->lengthofspecialprefix);
  fprintf (fmafp, "lengthofspecialsuffix=" GT_WU "\n",
           specialcharinfo->lengthofspecialsuffix);
  fprintf (fmafp, "wildcards=" GT_WU "\n",specialcharinfo->wildcards);
  fprintf (fmafp, "wildcardranges=" GT_WU "\n",specialcharinfo->wildcardranges);
  fprintf (fmafp, "realwildcardranges=" GT_WU "\n",
                   specialcharinfo->realwildcardranges);
  fprintf (fmafp, "lengthofwildcardprefix=" GT_WU "\n",
           specialcharinfo->lengthofwildcardprefix);
  fprintf (fmafp, "lengthofwildcardsuffix=" GT_WU "\n",
           specialcharinfo->lengthofwildcardsuffix);
  fprintf (fmafp, "suffixlength=%u\n", fm->suffixlength);
  gt_fa_xfclose(fmafp);
  return 0;
}

// Assembly:
subq $0x38, %rsp
movb %cl, %al
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
andb $0x1, %al
movb %al, 0x17(%rsp)
movq %r8, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
je 0x24db60
movq 0x8(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x24db28
jmp 0x24db60
movq 0x3ee471(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2c84da(%rip), %rsi    # 0x516013
leaq 0x2c867f(%rip), %rdx    # 0x5161bf
leaq 0x32b58c(%rip), %rcx    # 0x5790d3
leaq 0x32b570(%rip), %r8     # 0x5790be
movl $0x21, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x24db62
movq 0x28(%rsp), %rdi
movq 0x8(%rsp), %r9
leaq 0x32b247(%rip), %rsi    # 0x578dba
leaq 0x2d9023(%rip), %rdx    # 0x526b9d
leaq 0x32b53d(%rip), %rcx    # 0x5790be
movl $0x22, %r8d
callq 0xd92c0
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
jne 0x24dba4
movl $0xffffffff, 0x34(%rsp) # imm = 0xFFFFFFFF
jmp 0x24dd72
movq (%rsp), %rdi
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rdx
leaq 0x32b528(%rip), %rsi    # 0x5790e0
movb $0x0, %al
callq 0x199f0
movq (%rsp), %rdi
movq 0x20(%rsp), %rax
movq 0x30(%rax), %rdx
leaq 0x32b51c(%rip), %rsi    # 0x5790ef
movb $0x0, %al
callq 0x199f0
movq (%rsp), %rdi
movb 0x17(%rsp), %cl
xorl %edx, %edx
movl $0x1, %eax
testb $0x1, %cl
cmovnel %eax, %edx
leaq 0x32b506(%rip), %rsi    # 0x5790fc
movb $0x0, %al
callq 0x199f0
movq (%rsp), %rdi
movq 0x20(%rsp), %rax
movl 0x88(%rax), %edx
leaq 0x32b4fb(%rip), %rsi    # 0x57910e
movb $0x0, %al
callq 0x199f0
movq (%rsp), %rdi
movq 0x20(%rsp), %rax
movl 0x94(%rax), %edx
leaq 0x32b4f0(%rip), %rsi    # 0x579120
movb $0x0, %al
callq 0x199f0
movq (%rsp), %rdi
movq 0x18(%rsp), %rax
movq (%rax), %rdx
leaq 0x32b4e7(%rip), %rsi    # 0x579131
movb $0x0, %al
callq 0x199f0
movq (%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rdx
leaq 0x32b4e7(%rip), %rsi    # 0x57914c
movb $0x0, %al
callq 0x199f0
movq (%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rdx
leaq 0x32b4c8(%rip), %rsi    # 0x579148
movb $0x0, %al
callq 0x199f0
movq (%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rdx
leaq 0x32b4c4(%rip), %rsi    # 0x57915f
movb $0x0, %al
callq 0x199f0
movq (%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rdx
leaq 0x32b4c4(%rip), %rsi    # 0x57917a
movb $0x0, %al
callq 0x199f0
movq (%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x28(%rax), %rdx
leaq 0x32b4c4(%rip), %rsi    # 0x579195
movb $0x0, %al
callq 0x199f0
movq (%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x30(%rax), %rdx
leaq 0x32b4bc(%rip), %rsi    # 0x5791a8
movb $0x0, %al
callq 0x199f0
movq (%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x38(%rax), %rdx
leaq 0x32b49d(%rip), %rsi    # 0x5791a4
movb $0x0, %al
callq 0x199f0
movq (%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x40(%rax), %rdx
leaq 0x32b49a(%rip), %rsi    # 0x5791bc
movb $0x0, %al
callq 0x199f0
movq (%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdx
leaq 0x32b49b(%rip), %rsi    # 0x5791d8
movb $0x0, %al
callq 0x199f0
movq (%rsp), %rdi
movq 0x20(%rsp), %rax
movl 0x98(%rax), %edx
leaq 0x32b49a(%rip), %rsi    # 0x5791f4
movb $0x0, %al
callq 0x199f0
movq (%rsp), %rdi
callq 0xd9570
movl $0x0, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopl (%rax,%rax)