// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/diagbandseed.c
// Function: gt_kmerpos_list_add
static void gt_kmerpos_list_add(GtKmerPosList *kmerpos_list,
                                const GtDiagbandseedKmerPos *kmerpos_entry)
{
  gt_assert(kmerpos_list != NULL);
  if (kmerpos_list->nextfree >= kmerpos_list->allocated)
  {
    kmerpos_list->allocated = kmerpos_list->allocated * 1.2 + 256;
    if (kmerpos_list->encode_info != NULL)
    {
      kmerpos_list->spaceGtUword
        = gt_realloc(kmerpos_list->spaceGtUword,
                     sizeof *kmerpos_list->spaceGtUword *
                     kmerpos_list->allocated);
    } else
    {
      kmerpos_list->spaceGtDiagbandseedKmerPos
        = gt_realloc(kmerpos_list->spaceGtDiagbandseedKmerPos,
                     sizeof *kmerpos_list->spaceGtDiagbandseedKmerPos *
                     kmerpos_list->allocated);
    }
  }
  if (kmerpos_list->encode_info != NULL)
  {
    GtUword seqnum;
    const GtKmerPosListEncodeInfo *encode_info = kmerpos_list->encode_info;

    gt_assert(encode_info->first_seqnum <= kmerpos_entry->seqnum);
    seqnum = kmerpos_entry->seqnum - encode_info->first_seqnum;
    kmerpos_list->spaceGtUword[kmerpos_list->nextfree++]
      = (kmerpos_entry->code << encode_info->shift_code) |
        (seqnum << encode_info->shift_seqnum) |
        ((GtUword) kmerpos_entry->endpos << encode_info->shift_endpos);
  } else
  {
    kmerpos_list->spaceGtDiagbandseedKmerPos[kmerpos_list->nextfree++]
      = *kmerpos_entry;
  }
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x214e8e
movq 0x427143(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3011ac(%rip), %rsi    # 0x516013
leaq 0x35d695(%rip), %rdx    # 0x572503
leaq 0x35d6a3(%rip), %rcx    # 0x572518
leaq 0x35d118(%rip), %r8     # 0x571f94
movl $0x1ca, %r9d            # imm = 0x1CA
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x214e90
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rsp), %rcx
cmpq 0x10(%rcx), %rax
jb 0x214f8f
movq 0x20(%rsp), %rax
movq 0x10(%rax), %xmm0
movaps 0x303a77(%rip), %xmm1   # 0x518930
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x303a7b(%rip), %xmm1   # 0x518940
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd 0x303e8c(%rip), %xmm1   # 0x518d68
mulsd %xmm1, %xmm0
movsd 0x35d008(%rip), %xmm1   # 0x571ef0
addsd %xmm1, %xmm0
movaps %xmm0, %xmm1
cvttsd2si %xmm1, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
movsd 0x303e6d(%rip), %xmm1   # 0x518d70
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
andq %rdx, %rax
orq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x20(%rsp), %rax
cmpq $0x0, 0x28(%rax)
je 0x214f5c
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rsi
shlq $0x3, %rsi
leaq 0x35d050(%rip), %rdx    # 0x571f94
movl $0x1d3, %ecx            # imm = 0x1D3
callq 0xe8540
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x8(%rax)
jmp 0x214f8d
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rsi
shlq $0x4, %rsi
leaq 0x35d01c(%rip), %rdx    # 0x571f94
movl $0x1d9, %ecx            # imm = 0x1D9
callq 0xe8540
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, (%rax)
jmp 0x214f8f
movq 0x20(%rsp), %rax
cmpq $0x0, 0x28(%rax)
je 0x215074
movq 0x20(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x18(%rsp), %rcx
movl 0x8(%rcx), %ecx
cmpq %rcx, %rax
jbe 0x214ffb
movq 0x426fd6(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x30103f(%rip), %rsi    # 0x516013
leaq 0x35d551(%rip), %rdx    # 0x57252c
leaq 0x35d536(%rip), %rcx    # 0x572518
leaq 0x35cfab(%rip), %r8     # 0x571f94
movl $0x1e1, %r9d            # imm = 0x1E1
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x214ffd
movq 0x18(%rsp), %rax
movl 0x8(%rax), %eax
movq 0x8(%rsp), %rcx
subq 0x8(%rcx), %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq (%rax), %rdx
movq 0x8(%rsp), %rax
movl 0x20(%rax), %eax
movl %eax, %ecx
shlq %cl, %rdx
movq 0x10(%rsp), %rax
movq 0x8(%rsp), %rcx
movl 0x24(%rcx), %ecx
shlq %cl, %rax
orq %rax, %rdx
movq 0x18(%rsp), %rax
movl 0xc(%rax), %eax
movq 0x8(%rsp), %rcx
movl 0x28(%rcx), %ecx
shlq %cl, %rax
orq %rax, %rdx
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rsp), %rsi
movq 0x18(%rsi), %rcx
movq %rcx, %rdi
addq $0x1, %rdi
movq %rdi, 0x18(%rsi)
movq %rdx, (%rax,%rcx,8)
jmp 0x2150aa
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq 0x20(%rsp), %rdx
movq 0x18(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x18(%rdx)
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x18(%rsp), %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
addq $0x28, %rsp
retq
nop