// File: /workspace/github_c_makefile_star2_O2/DReichLab[P]adna/trim.c
// Function: lt_sc_add_core
void lt_sc_add_core(lt_seqcloud_t *sc, uint64_t s)
{
	int i, absent;
	sc->s = s = s & ((1ULL<<sc->l*2) - 1);
	for (i = 0; i < sc->l; ++i) {
		int i2 = i * 2, a, c = s>>i2&3;
		for (a = 1; a < 4; ++a) {
			uint64_t x = (s & ~(3ULL << i2)) | (uint64_t)((a+c)&3) << i2;
			kh_put(s64, sc->mm, x, &absent);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl (%rdi), %eax
leal (%rax,%rax), %ecx
pushq $-0x1
popq %rdx
shlq %cl, %rdx
notq %rdx
andq %rsi, %rdx
movq %rdx, 0x18(%rsp)
movq %rdx, 0x8(%rdi)
xorl %ecx, %ecx
pcmpeqd %xmm1, %xmm1
movsd 0x2858(%rip), %xmm2     # 0x5008
movsd 0x2858(%rip), %xmm3     # 0x5010
pushq $0x2
popq %r14
movq %rdi, 0x8(%rsp)
cltq
cmpq %rax, %rcx
jge 0x2bb0
movq %rcx, 0x20(%rsp)
leaq (%rcx,%rcx), %rdx
movq 0x18(%rsp), %rax
movq %rax, %rsi
movl %edx, %ecx
shrq %cl, %rsi
movq %rsi, 0x48(%rsp)
pushq $0x3
popq %rsi
movq %rdx, 0x50(%rsp)
shlq %cl, %rsi
notq %rsi
andq %rax, %rsi
movq %rsi, 0x40(%rsp)
pushq $0x1
popq %rax
movl %eax, %r10d
cmpl $0x4, %r10d
je 0x2ba1
movq 0x48(%rsp), %rax
leal (%r10,%rax), %ebx
andl $0x3, %ebx
movq 0x50(%rsp), %rcx
shlq %cl, %rbx
movq 0x10(%rdi), %r13
movl (%r13), %eax
movl 0x8(%r13), %ecx
cmpl 0xc(%r13), %ecx
jb 0x29e6
movl 0x4(%r13), %ecx
leal (%rcx,%rcx), %edx
cmpl %eax, %edx
movl $0x0, %edx
sbbl %edx, %edx
orl $0x1, %edx
addl %eax, %edx
decl %edx
movl %edx, %esi
shrl %esi
orl %edx, %esi
movl %esi, %edx
shrl $0x2, %edx
orl %esi, %edx
movl %edx, %esi
shrl $0x4, %esi
orl %edx, %esi
movl %esi, %r8d
shrl $0x8, %r8d
orl %esi, %r8d
movl %r8d, %edx
shrl $0x10, %edx
orl %r8d, %edx
incl %edx
cmpl $0x5, %edx
pushq $0x4
popq %rsi
movl %esi, %r8d
cmovael %edx, %r8d
cvtsi2sd %r8, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm3, %xmm0
cvttsd2si %xmm0, %r9
cmpl %r9d, %ecx
jae 0x29e6
movq %r9, 0x30(%rsp)
movq %r10, 0x38(%rsp)
movl %r8d, %r12d
shrl $0x2, %r12d
andl $-0x4, %r12d
cmpl $0x10, %edx
cmovbl %esi, %r12d
movq %r12, %rdi
movq %r8, %rbp
callq 0x21b0
movq %rax, %r15
movq %rax, %rdi
movl $0xaa, %esi
movq %r12, %rdx
callq 0x2110
movl (%r13), %r8d
movl %ebp, %r12d
movq %rbp, 0x10(%rsp)
cmpl %ebp, %r8d
jae 0x2903
movq 0x18(%r13), %rdi
leaq (,%r12,8), %rsi
callq 0x21d0
movq %rax, 0x18(%r13)
movl (%r13), %r8d
movq %r12, 0x28(%rsp)
movq 0x10(%rsp), %rax
leal -0x1(%rax), %r12d
xorl %eax, %eax
cmpl %r8d, %eax
je 0x29ef
movq 0x10(%r13), %rdx
movl %eax, %esi
shrl $0x4, %esi
movl (%rdx,%rsi,4), %r9d
leal (%rax,%rax), %ecx
andl $0x1e, %ecx
movl %r9d, %edi
shrl %cl, %edi
testb $0x3, %dil
jne 0x29df
leaq (%rdx,%rsi,4), %r8
movq 0x18(%r13), %rsi
movl %eax, %edi
movq (%rsi,%rdi,8), %rdi
btsl %ecx, %r9d
movl %r9d, (%r8)
movq %rdi, %r8
shrq $0x21, %r8
movl %edi, %ecx
shll $0xb, %ecx
xorl %ecx, %r8d
xorl %edi, %r8d
movl %r12d, %r9d
andl %r8d, %r9d
movl %r8d, %ecx
shrl $0x3, %ecx
shll $0x3, %r8d
xorl %ecx, %r8d
orl $0x1, %r8d
andl %r12d, %r8d
movl %r9d, %r10d
shrl $0x4, %r10d
movl (%r15,%r10,4), %r11d
leal (%r9,%r9), %ecx
andl $0x1e, %ecx
movl %r14d, %ebp
shll %cl, %ebp
testl %r11d, %ebp
jne 0x29a3
addl %r8d, %r9d
andl %r12d, %r9d
jmp 0x297f
notl %ebp
andl %ebp, %r11d
movl %r11d, (%r15,%r10,4)
movl (%r13), %r8d
movl %r9d, %r11d
cmpl %r8d, %r9d
jae 0x29db
movl (%rdx,%r10,4), %r9d
movl %r9d, %ebp
shrl %cl, %ebp
testb $0x3, %bpl
jne 0x29db
leaq (%rdx,%r10,4), %r8
movq (%rsi,%r11,8), %r10
movq %rdi, (%rsi,%r11,8)
movq %r10, %rdi
jmp 0x294c
movq %rdi, (%rsi,%r11,8)
incl %eax
jmp 0x2913
leal -0x1(%rax), %r12d
movl %eax, %r8d
jmp 0x2a51
cmpl 0x10(%rsp), %r8d
jbe 0x2a0c
movq 0x18(%r13), %rdi
movq 0x28(%rsp), %rsi
shlq $0x3, %rsi
callq 0x21d0
movq %rax, 0x18(%r13)
movq 0x10(%r13), %rdi
callq 0x2050
movq %r15, 0x10(%r13)
movq 0x10(%rsp), %r8
movl %r8d, (%r13)
movl 0x4(%r13), %eax
movl %eax, 0x8(%r13)
movq 0x30(%rsp), %rax
movl %eax, 0xc(%r13)
movq 0x8(%rsp), %rdi
pcmpeqd %xmm1, %xmm1
movsd 0x25c4(%rip), %xmm2     # 0x5008
movsd 0x25c4(%rip), %xmm3     # 0x5010
movq 0x38(%rsp), %r10
orq 0x40(%rsp), %rbx
movq %rbx, %r15
shrq $0x21, %r15
movl %ebx, %eax
shll $0xb, %eax
xorl %eax, %r15d
xorl %ebx, %r15d
movl %r12d, %edx
andl %r15d, %edx
movq 0x10(%r13), %rax
movl %edx, %ecx
shrl $0x4, %ecx
movl (%rax,%rcx,4), %esi
leal (%rdx,%rdx), %ecx
shrl %cl, %esi
testb $0x2, %sil
je 0x2a8c
movl %edx, %esi
jmp 0x2b2e
movq %r10, %rdi
movl %r15d, %ecx
shrl $0x3, %ecx
shll $0x3, %r15d
xorl %ecx, %r15d
orl $0x1, %r15d
andl %r12d, %r15d
movq %r8, %rbp
movl %r8d, %esi
movl %edx, %r8d
movl %r8d, %ecx
shrl $0x4, %ecx
movl (%rax,%rcx,4), %r9d
leal (%r8,%r8), %ecx
andl $0x1e, %ecx
movl %r9d, %r10d
shrl %cl, %r10d
testb $0x2, %r10b
jne 0x2b06
testb $0x1, %r10b
jne 0x2adc
movq 0x18(%r13), %r10
movl %r8d, %r11d
cmpq %rbx, (%r10,%r11,8)
je 0x2b06
btl %ecx, %r9d
cmovbl %r8d, %esi
addl %r15d, %r8d
andl %r12d, %r8d
cmpl %edx, %r8d
jne 0x2aac
movb $0x1, %cl
movq %rbp, %r9
movl %ebp, %r8d
cmpl %r9d, %esi
movq %rdi, %r10
movq 0x8(%rsp), %rdi
je 0x2b1e
jmp 0x2b2e
shrl %cl, %r9d
testb $0x2, %r9b
sete %cl
movl %r8d, %edx
movl %esi, %r8d
movq %rdi, %r10
movq 0x8(%rsp), %rdi
cmpl %ebp, %r8d
cmovel %edx, %r8d
testb %cl, %cl
cmovnel %edx, %r8d
movl %r8d, %esi
movl %esi, %edx
shrl $0x4, %edx
movl (%rax,%rdx,4), %r9d
leal (%rsi,%rsi), %ecx
andl $0x1e, %ecx
movl %r9d, %r8d
shrl %cl, %r8d
movl %esi, %esi
testb $0x2, %r8b
jne 0x2b70
testb $0x1, %r8b
je 0x2b99
pushq $0x3
popq %r8
shll %cl, %r8d
movq 0x18(%r13), %rcx
movq %rbx, (%rcx,%rsi,8)
notl %r8d
andl %r8d, %r9d
movl %r9d, (%rax,%rdx,4)
incl 0x4(%r13)
jmp 0x2b99
pushq $0x3
popq %r8
shll %cl, %r8d
movq 0x18(%r13), %rcx
movq %rbx, (%rcx,%rsi,8)
notl %r8d
andl %r8d, %r9d
movl %r9d, (%rax,%rdx,4)
movq 0x4(%r13), %xmm0
psubd %xmm1, %xmm0
movq %xmm0, 0x4(%r13)
incl %r10d
jmp 0x2803
movq 0x20(%rsp), %rcx
incq %rcx
movl (%rdi), %eax
jmp 0x27c1
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq