// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/condenseq_creator.c
// Function: ces_c_process_kmer
static CesCState ces_c_process_kmer(GtCondenseqCreator *ces_c,
                                    const GtKmercode *main_kmercode,
                                    GtError *err)
{
  CesCState state = GT_CONDENSEQ_CREATOR_CONT;
  if (!main_kmercode->definedspecialposition) {
    GtKmerStartpos positions =
      gt_kmer_database_get_startpos(ces_c->kmer_db,
                                    main_kmercode->code);
    ces_c_advance_window(ces_c, positions);
    state = ces_c_extend_seed_kmer(ces_c, err);
  }
  /* check if special in kmer is end of sequence, we can add previous kmers and
     the current unique to the database */
  else if (ces_c->current_seq_pos + ces_c->kmersize > ces_c->current_seq_len) {
    state = ces_c_handle_seqend(ces_c, err);
    if (state != GT_CONDENSEQ_CREATOR_ERROR) {
      ces_c->window.count = 0;
      gt_assert(state == GT_CONDENSEQ_CREATOR_RESET ||
                state == GT_CONDENSEQ_CREATOR_EOD);
    }
  }
  return state;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r14
movq %rdi, %rbx
cmpb $0x0, (%rsi)
je 0x13699b
movl 0x138(%rbx), %ecx
addq 0xd8(%rbx), %rcx
xorl %eax, %eax
cmpq 0xd0(%rbx), %rcx
jbe 0x136c6f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x136e87
movl %eax, %ecx
movl $0x3, %eax
cmpl $0x3, %ecx
je 0x136c6f
movl $0x0, 0xc4(%rbx)
movl %ecx, %eax
jmp 0x136c6f
movq 0x8(%rbx), %rax
movq 0x8(%rsi), %rdx
leaq 0x40(%rsp), %rdi
movq %rax, %rsi
callq 0x15f76e
movl 0xc0(%rbx), %eax
testq %rax, %rax
jne 0x1369d1
movl 0xc4(%rbx), %ecx
testl %ecx, %ecx
je 0x1369d1
cmpl 0x13c(%rbx), %ecx
jne 0x136c88
movq 0xb0(%rbx), %rcx
leaq (%rax,%rax,2), %rax
movups 0x40(%rsp), %xmm0
movq 0x50(%rsp), %rdx
movq %rdx, 0x10(%rcx,%rax,8)
movups %xmm0, (%rcx,%rax,8)
movl 0xc0(%rbx), %ecx
movl 0xc4(%rbx), %eax
incl %ecx
movl 0x13c(%rbx), %edx
xorl %esi, %esi
cmpl %edx, %ecx
cmovnel %ecx, %esi
movl %esi, 0xc0(%rbx)
cmpl %edx, %eax
jae 0x136a1c
incl %eax
movl %eax, 0xc4(%rbx)
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rsi
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, (%rsi)
movq %rbx, %rdi
movq %r14, %rdx
callq *0x50(%rbx)
movl %eax, %ecx
movl $0x3, %eax
testl %ecx, %ecx
jne 0x136c6f
movl 0x30(%rsp), %ecx
xorl %eax, %eax
cmpq %rcx, 0x100(%rbx)
ja 0x136c6f
movq 0x68(%rbx), %r12
movq 0x70(%rbx), %rdi
movq 0x98(%rbx), %r13
movq 0xa0(%rbx), %rsi
cmpq $0x0, (%rsi)
jne 0x136a7d
cmpq $0x0, 0x8(%rsi)
je 0x136c7e
callq 0x20d829
movq %rax, %r15
cmpq $0x0, (%r13)
je 0x136aaf
movq %r12, %rdi
movq %r13, %rsi
callq 0x20d829
movq %rax, %r12
movq %r15, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x16a0d1
movq %r12, %rdi
callq 0x169cb5
movq 0xc8(%rbx), %rax
movq 0x28(%rsp), %rcx
xorl %ebp, %ebp
movq %rcx, %r12
subq %rax, %r12
jbe 0x136b51
movl 0x138(%rbx), %edx
cmpq %rdx, %r12
jbe 0x136b32
xorl %eax, %eax
movq %r12, %r13
shrq $0x20, %r13
je 0x136afd
leaq 0x24c5a4(%rip), %rsi    # 0x38308a
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x1019cf
movl $0x3, %eax
movl $0x3, %ebp
testq %r13, %r13
jne 0x136b51
movq 0x28(%rbx), %rdi
movq 0xc8(%rbx), %rsi
movl %r12d, %edx
movl %eax, %ebp
callq 0x13218c
movq 0xc8(%rbx), %rsi
movq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x136d40
jmp 0x136b51
cmpq %rax, %rcx
je 0x136b47
movq %r12, %r13
movq %r15, %rdi
callq 0x169e32
decq %r13
jne 0x136b3a
subq %r12, 0x28(%rsp)
addl %r12d, 0x30(%rsp)
movl $0x3, %eax
cmpl $0x3, %ebp
je 0x136c6f
movl 0x30(%rsp), %esi
addq 0x28(%rsp), %rsi
cmpq %rsi, 0xf0(%rbx)
jae 0x136b7d
movq %rbx, %rdi
callq 0x136d78
movl %eax, %ebp
jmp 0x136b8f
movq %rsi, 0xc8(%rbx)
movq $0x0, 0xc0(%rbx)
movq 0xd0(%rbx), %r12
addq 0xc8(%rbx), %r12
movq 0xd8(%rbx), %rax
addq 0xf0(%rbx), %rax
subq %rax, %r12
je 0x136c11
movl 0x138(%rbx), %eax
cmpq %rax, %r12
ja 0x136c14
xorl %ebp, %ebp
callq 0x169b94
movq %rax, %r13
movq %r13, %rdi
callq 0x169e32
incq %rbp
cmpq %r12, %rbp
jb 0x136bc5
movq %r13, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x16a0d1
movq %r15, %rdi
callq 0x169cb5
addl 0x30(%rsp), %r12d
movl %r12d, 0x30(%rsp)
addq 0x28(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x136d78
movl %eax, %ebp
xorl %r12d, %r12d
movq %r13, %r15
jmp 0x136c14
xorl %r12d, %r12d
movq (%rbx), %rdi
movq 0x28(%rsp), %rdx
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x13deb1
movq %rax, 0x20(%rsp)
movq %r15, %rdi
callq 0x169cb5
movq 0x28(%rbx), %rdi
movaps 0x20(%rsp), %xmm0
movaps 0x30(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x1322d9
movl $0x1, %eax
cmpl $0x1, %ebp
je 0x136c6f
movl %ebp, %eax
cmpq 0x100(%rbx), %r12
jae 0x136c6f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x136e87
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x169b94
jmp 0x136a82
callq 0x3ee17