// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/tyr-mkindex.c
// Function: outputsortedstring2indexviafileptr
static int outputsortedstring2indexviafileptr(const GtEncseq *encseq,
                                              GtUword mersize,
                                              GtUchar *bytebuffer,
                                              GtUword sizeofbuffer,
                                              FILE *merindexfpout,
                                              FILE *countsfilefpout,
                                              GtUword position,
                                              GtUword countocc,
                                              GtArrayLargecount *largecounts,
                                              GtUword countoutputmers,
                                              GT_UNUSED GtError *err)
{
  gt_encseq_sequence2bytecode(bytebuffer,encseq,position,mersize);
  gt_xfwrite(bytebuffer, sizeof (*bytebuffer), (size_t) sizeofbuffer,
             merindexfpout);
  if (countsfilefpout != NULL)
  {
    GtUchar smallcount;

    if (countocc <= MAXSMALLMERCOUNT)
    {
      smallcount = (GtUchar) countocc;
    } else
    {
      Largecount *lc;

      GT_GETNEXTFREEINARRAY(lc,largecounts,Largecount,32);
      lc->idx = countoutputmers;
      lc->value = countocc;
      smallcount = 0;
    }
    gt_xfwrite(&smallcount, sizeof (smallcount),(size_t) 1,countsfilefpout);
  }
  return 0;
}

// Assembly:
subq $0x48, %rsp
movq 0x70(%rsp), %rax
movq 0x68(%rsp), %rax
movq 0x60(%rsp), %rax
movq 0x58(%rsp), %rax
movq 0x50(%rsp), %rax
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movq %r8, 0x20(%rsp)
movq %r9, 0x18(%rsp)
movq 0x30(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x38(%rsp), %rcx
callq 0xa9550
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rdx
movq 0x20(%rsp), %rcx
movl $0x1, %esi
callq 0x126d30
cmpq $0x0, 0x18(%rsp)
je 0x2f6976
cmpq $0xff, 0x58(%rsp)
ja 0x2f6822
movq 0x58(%rsp), %rax
movb %al, 0x17(%rsp)
jmp 0x2f695f
jmp 0x2f6824
jmp 0x2f6826
movq 0x60(%rsp), %rax
movq 0x10(%rax), %rax
addq $0x0, %rax
movq 0x60(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jb 0x2f68ce
movq $0x20, (%rsp)
xorl %eax, %eax
cmpq (%rsp), %rax
jbe 0x2f688a
movq 0x345747(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x21f7b0(%rip), %rsi    # 0x516013
leaq 0x22293d(%rip), %rdx    # 0x5191a7
leaq 0x2993b6(%rip), %rcx    # 0x58fc27
leaq 0x2992c4(%rip), %r8     # 0x58fb3c
movl $0x175, %r9d            # imm = 0x175
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2f688c
movq (%rsp), %rcx
movq 0x60(%rsp), %rax
addq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x60(%rsp), %rax
movq (%rax), %rdi
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rsi
shlq $0x4, %rsi
leaq 0x299283(%rip), %rdx    # 0x58fb3c
movl $0x175, %ecx            # imm = 0x175
callq 0xe8540
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, (%rax)
jmp 0x2f68d0
movq 0x60(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x2f6913
movq 0x3456be(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x21f727(%rip), %rsi    # 0x516013
leaq 0x299357(%rip), %rdx    # 0x58fc4a
leaq 0x29932d(%rip), %rcx    # 0x58fc27
leaq 0x29923b(%rip), %r8     # 0x58fb3c
movl $0x175, %r9d            # imm = 0x175
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2f6915
jmp 0x2f6917
movq 0x60(%rsp), %rax
movq (%rax), %rax
movq 0x60(%rsp), %rdx
movq 0x10(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x10(%rdx)
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0x68(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, (%rax)
movq 0x58(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x8(%rax)
movb $0x0, 0x17(%rsp)
movq 0x18(%rsp), %rcx
leaq 0x17(%rsp), %rdi
movl $0x1, %edx
movq %rdx, %rsi
callq 0x126d30
xorl %eax, %eax
addq $0x48, %rsp
retq
nopl (%rax)