// File: /workspace/github_c_makefile_star2_O3/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, %rbx
movq %rdi, %r14
cmpb $0x0, (%rsi)
je 0x130760
movl 0x138(%r14), %ecx
addq 0xd8(%r14), %rcx
xorl %eax, %eax
cmpq 0xd0(%r14), %rcx
jbe 0x130a38
movq %r14, %rdi
movq %rbx, %rsi
callq 0x130c41
movl %eax, %ecx
movl $0x3, %eax
cmpl $0x3, %ecx
je 0x130a38
movl $0x0, 0xc4(%r14)
movl %ecx, %eax
jmp 0x130a38
movq 0x8(%r14), %rax
movq 0x8(%rsi), %rdx
leaq 0x40(%rsp), %rdi
movq %rax, %rsi
callq 0x157b70
movl 0xc0(%r14), %eax
testq %rax, %rax
jne 0x130799
movl 0xc4(%r14), %ecx
testl %ecx, %ecx
je 0x130799
cmpl 0x13c(%r14), %ecx
jne 0x130a47
movq 0xb0(%r14), %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(%r14), %ecx
movl 0xc4(%r14), %eax
incl %ecx
movl 0x13c(%r14), %edx
xorl %esi, %esi
cmpl %edx, %ecx
cmovnel %ecx, %esi
movl %esi, 0xc0(%r14)
cmpl %edx, %eax
jae 0x1307e9
incl %eax
movl %eax, 0xc4(%r14)
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rsi
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, (%rsi)
movq %r14, %rdi
movq %rbx, %rdx
callq *0x50(%r14)
movl %eax, %ecx
movl $0x3, %eax
testl %ecx, %ecx
jne 0x130a38
movl 0x30(%rsp), %ecx
xorl %eax, %eax
cmpq %rcx, 0x100(%r14)
ja 0x130a38
movq 0x68(%r14), %r12
movq 0x70(%r14), %rdi
movq 0x98(%r14), %r13
movq 0xa0(%r14), %rsi
cmpq $0x0, (%rsi)
jne 0x13084b
cmpq $0x0, 0x8(%rsi)
je 0x1308f1
callq 0x203ed7
movq %rax, %r15
cmpq $0x0, (%r13)
je 0x13087d
movq %r12, %rdi
movq %r13, %rsi
callq 0x203ed7
movq %rax, %r12
movq %r15, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x16225c
movq %r12, %rdi
callq 0x161e59
movq 0xc8(%r14), %rsi
movq 0x28(%rsp), %rcx
movq %rcx, %r12
subq %rsi, %r12
jbe 0x130920
movl 0x138(%r14), %eax
cmpq %rax, %r12
jbe 0x1308cd
movq %r12, %rax
shrq $0x20, %rax
je 0x1308fb
leaq 0x2494bb(%rip), %rsi    # 0x379d6c
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0xfcb67
movl $0x3, %eax
jmp 0x130a38
movq %r12, %r13
movq %r15, %rdi
callq 0x161fca
decq %r13
jne 0x1308d0
movq 0x28(%rsp), %rcx
subq %r12, %rcx
movq %rcx, 0x28(%rsp)
addl %r12d, 0x30(%rsp)
jmp 0x130920
callq 0x161d3c
jmp 0x130850
movq 0x28(%r14), %rdi
movl %r12d, %edx
callq 0x12c16d
movq 0xc8(%r14), %rsi
movq 0x28(%rsp), %rdx
movq %r14, %rdi
callq 0x130afa
movq 0x28(%rsp), %rcx
movq 0xf0(%r14), %rax
movl 0x30(%rsp), %r12d
addq %rcx, %r12
cmpq %r12, %rax
jae 0x130951
movq %r14, %rdi
movq %r12, %rsi
callq 0x130b32
movl %eax, %ebp
movq 0xc8(%r14), %r12
movq 0xf0(%r14), %rax
jmp 0x130965
movq %r12, 0xc8(%r14)
movq $0x0, 0xc0(%r14)
xorl %ebp, %ebp
addq 0xd0(%r14), %r12
addq 0xd8(%r14), %rax
subq %rax, %r12
je 0x1309da
movl 0x138(%r14), %eax
cmpq %rax, %r12
ja 0x1309dd
xorl %ebp, %ebp
callq 0x161d3c
movq %rax, %r13
movq %r13, %rdi
callq 0x161fca
incq %rbp
cmpq %r12, %rbp
jb 0x13098e
movq %r13, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x16225c
movq %r15, %rdi
callq 0x161e59
addl 0x30(%rsp), %r12d
movl %r12d, 0x30(%rsp)
addq 0x28(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x130b32
movl %eax, %ebp
xorl %r12d, %r12d
movq %r13, %r15
jmp 0x1309dd
xorl %r12d, %r12d
movq (%r14), %rdi
movq 0x28(%rsp), %rdx
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x1377d5
movq %rax, 0x20(%rsp)
movq %r15, %rdi
callq 0x161e59
movq 0x28(%r14), %rdi
movaps 0x20(%rsp), %xmm0
movaps 0x30(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x12c2a8
movl $0x1, %eax
cmpl $0x1, %ebp
je 0x130a38
movl %ebp, %eax
cmpq 0x100(%r14), %r12
jae 0x130a38
movq %r14, %rdi
movq %rbx, %rsi
callq 0x130c41
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3e399