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

  gt_assert(skipshorter>=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_randomcodes_insert_kmerscan_eqlen(twobitencoding,
                                        equallength,
                                        totallength,
                                        numofsequences,
                                        maxunitindex,
                                        kmersize,
                                        skipshorter,
                                        buf);
  } else
  {
    gt_randomcodes_insert_kmerscan(encseq,
                                  twobitencoding,
                                  totallength,
                                  numofsequences,
                                  maxunitindex,
                                  kmersize,
                                  skipshorter,
                                  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 0x4d5f07
movq 0x1660ca(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x40133(%rip), %rsi     # 0x516013
leaq 0xe4261(%rip), %rdx     # 0x5ba148
leaq 0xe4270(%rip), %rcx     # 0x5ba15e
leaq 0xe428b(%rip), %r8      # 0x5ba180
movl $0xc7, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4d5f09
movq 0x50(%rsp), %rdi
callq 0xc2ec0
testb $0x1, %al
jne 0x4d5f19
jmp 0x4d5f31
movq 0x50(%rsp), %rdi
callq 0xa9d00
subq $0x1, %rax
shrq %rax
movq %rax, 0x30(%rsp)
jmp 0x4d5f40
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 0x4d6040
subq $0x1, %rax
movq %rax, 0x28(%rsp)
movq 0x50(%rsp), %rdi
callq 0xc2d90
cmpl $0x2, %eax
jne 0x4d6004
movq 0x50(%rsp), %rdi
callq 0xc2da0
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movl 0x4c(%rsp), %ecx
cmpq %rcx, %rax
jae 0x4d5fca
movq 0x166007(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x40070(%rip), %rsi     # 0x516013
leaq 0xe16fe(%rip), %rdx     # 0x5b76a8
leaq 0xe41ad(%rip), %rcx     # 0x5ba15e
leaq 0xe41c8(%rip), %r8      # 0x5ba180
movl $0xd5, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4d5fcc
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 0x4d60a0
jmp 0x4d603a
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 0x4d6170
addq $0x58, %rsp
retq
nop