// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/firstcodes-insert.c
// Function: gt_firstcodes_insert_runkmerscan
void gt_firstcodes_insert_runkmerscan(const GtEncseq *encseq,
                                      unsigned int kmersize,
                                      unsigned int minmatchlength,
                                      GtCodeposbuffer *buf)
{
  const GtTwobitencoding *twobitencoding
    = gt_encseq_twobitencoding_export(encseq);
  GtUword totallength, maxunitindex, numofsequences;

  gt_assert(minmatchlength>=kmersize);
  if (gt_encseq_is_mirrored(encseq))
  {
    totallength = (gt_encseq_total_length(encseq)-1)/2;
  } else
  {
    totallength = gt_encseq_total_length(encseq);
  }
  numofsequences = gt_encseq_num_of_sequences(encseq);
  maxunitindex = gt_unitsoftwobitencoding(totallength) - 1;
  if (gt_encseq_accesstype_get(encseq) == GT_ACCESS_TYPE_EQUALLENGTH)
  {
    GtUword equallength = gt_encseq_equallength(encseq);

    gt_assert(equallength >= (GtUword) kmersize);
    gt_firstcodes_insert_kmerscan_eqlen(twobitencoding,
                                        equallength,
                                        totallength,
                                        numofsequences,
                                        maxunitindex,
                                        kmersize,
                                        minmatchlength,
                                        buf);
  } else
  {
    gt_firstcodes_insert_kmerscan(encseq,
                                  twobitencoding,
                                  totallength,
                                  numofsequences,
                                  maxunitindex,
                                  kmersize,
                                  minmatchlength,
                                  buf);
  }
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movl %esi, 0x4c(%rsp)
movl %edx, 0x48(%rsp)
movq %rcx, 0x40(%rsp)
movq 0x50(%rsp), %rdi
callq 0xb5250
movq %rax, 0x38(%rsp)
movl 0x48(%rsp), %eax
cmpl 0x4c(%rsp), %eax
jae 0x4bb0a7
movq 0x180f2a(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x5af93(%rip), %rsi     # 0x516013
leaq 0xfc9d5(%rip), %rdx     # 0x5b7a5c
leaq 0xfc9e7(%rip), %rcx     # 0x5b7a75
leaq 0xfca01(%rip), %r8      # 0x5b7a96
movl $0xc6, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4bb0a9
movq 0x50(%rsp), %rdi
callq 0xc2ec0
testb $0x1, %al
jne 0x4bb0b9
jmp 0x4bb0d1
movq 0x50(%rsp), %rdi
callq 0xa9d00
subq $0x1, %rax
shrq %rax
movq %rax, 0x30(%rsp)
jmp 0x4bb0e0
movq 0x50(%rsp), %rdi
callq 0xa9d00
movq %rax, 0x30(%rsp)
movq 0x50(%rsp), %rdi
callq 0xa9d50
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rdi
callq 0x4bb1e0
subq $0x1, %rax
movq %rax, 0x28(%rsp)
movq 0x50(%rsp), %rdi
callq 0xc2d90
cmpl $0x2, %eax
jne 0x4bb1a4
movq 0x50(%rsp), %rdi
callq 0xc2da0
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movl 0x4c(%rsp), %ecx
cmpq %rcx, %rax
jae 0x4bb16a
movq 0x180e67(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x5aed0(%rip), %rsi     # 0x516013
leaq 0xfc55e(%rip), %rdx     # 0x5b76a8
leaq 0xfc924(%rip), %rcx     # 0x5b7a75
leaq 0xfc93e(%rip), %r8      # 0x5b7a96
movl $0xd4, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4bb16c
movq 0x38(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0x20(%rsp), %rcx
movq 0x28(%rsp), %r8
movl 0x4c(%rsp), %r9d
movl 0x48(%rsp), %r10d
movq 0x40(%rsp), %rax
movl %r10d, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x4bb240
jmp 0x4bb1da
movq 0x50(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0x20(%rsp), %rcx
movq 0x28(%rsp), %r8
movl 0x4c(%rsp), %r9d
movl 0x48(%rsp), %r10d
movq 0x40(%rsp), %rax
movl %r10d, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x4bb310
addq $0x58, %rsp
retq
nop