// File: /workspace/github_c_makefile_star2_O3/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 $0x48, %rsp
movl (%rdi), %eax
leal (%rax,%rax), %ecx
movq $-0x1, %rdx
shlq %cl, %rdx
notq %rdx
andq %rsi, %rdx
movq %rdi, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq %rdx, 0x8(%rdi)
testl %eax, %eax
jle 0x2bc8
xorl %ecx, %ecx
pcmpeqd %xmm1, %xmm1
movsd 0x3827(%rip), %xmm2     # 0x6008
movsd 0x3827(%rip), %xmm3     # 0x6010
movq %rcx, 0x20(%rsp)
addq %rcx, %rcx
movq 0x18(%rsp), %rax
movq %rax, %rdx
shrq %cl, %rdx
movq %rdx, 0x38(%rsp)
movl $0x3, %edx
movq %rcx, 0x40(%rsp)
shlq %cl, %rdx
notq %rdx
andq %rax, %rdx
movq %rdx, 0x30(%rsp)
movl $0x1, %ebx
movq 0x38(%rsp), %rax
leal (%rbx,%rax), %r13d
andl $0x3, %r13d
movq 0x40(%rsp), %rcx
shlq %cl, %r13
movq 0x10(%rsp), %rax
movq 0x10(%rax), %r14
movl (%r14), %eax
movl 0x8(%r14), %ecx
cmpl 0xc(%r14), %ecx
jb 0x2a70
movl 0x4(%r14), %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, %edi
shrl $0x8, %edi
orl %esi, %edi
movl %edi, %edx
shrl $0x10, %edx
orl %edi, %edx
incl %edx
cmpl $0x5, %edx
movl $0x4, %esi
cmovael %edx, %esi
xorps %xmm0, %xmm0
cvtsi2sd %rsi, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm3, %xmm0
cvttsd2si %xmm0, %rdi
cmpl %edi, %ecx
jae 0x2a70
movq %rdi, 0x28(%rsp)
movl %esi, %r12d
shrl $0x2, %r12d
andl $-0x4, %r12d
cmpl $0x10, %edx
movl $0x4, %eax
cmovbl %eax, %r12d
movq %r12, %rdi
movq %rsi, 0x8(%rsp)
callq 0x21b0
movq %rax, %r15
movq %rax, %rdi
movl $0xaa, %esi
movq %r12, %rdx
callq 0x2110
movq 0x8(%rsp), %r12
movl (%r14), %r11d
cmpl %r12d, %r11d
jae 0x291f
movq 0x18(%r14), %rdi
movl 0x8(%rsp), %esi
shlq $0x3, %rsi
callq 0x21d0
movq 0x8(%rsp), %r12
movq %rax, 0x18(%r14)
movl (%r14), %r11d
testl %r11d, %r11d
je 0x2a38
movq 0x10(%r14), %rax
leal -0x1(%r12), %edx
xorl %esi, %esi
movl %esi, %edi
shrl $0x4, %edi
movl (%rax,%rdi,4), %r9d
leal (%rsi,%rsi), %ecx
andl $0x1e, %ecx
movl %r9d, %r8d
shrl %cl, %r8d
testb $0x3, %r8b
jne 0x2a09
leaq (%rax,%rdi,4), %r10
movq 0x18(%r14), %rdi
movl %esi, %r8d
movq (%rdi,%r8,8), %r8
btsl %ecx, %r9d
movl %r9d, (%r10)
movq %r8, %r11
shrq $0x21, %r11
movl %r8d, %ecx
shll $0xb, %ecx
xorl %ecx, %r11d
xorl %r8d, %r11d
movl %edx, %r9d
andl %r11d, %r9d
movl %r9d, %r10d
shrl $0x4, %r10d
movl (%r15,%r10,4), %r12d
leal (%r9,%r9), %ecx
andl $0x1e, %ecx
movl $0x2, %ebp
shll %cl, %ebp
testl %r12d, %ebp
jne 0x29ce
movl %r11d, %ecx
shrl $0x3, %ecx
shll $0x3, %r11d
xorl %ecx, %r11d
orl $0x1, %r11d
andl %edx, %r11d
addl %r11d, %r9d
andl %edx, %r9d
movl %r9d, %r10d
shrl $0x4, %r10d
movl (%r15,%r10,4), %r12d
leal (%r9,%r9), %ecx
andl $0x1e, %ecx
movl $0x2, %ebp
shll %cl, %ebp
testl %r12d, %ebp
je 0x29aa
notl %ebp
andl %r12d, %ebp
movl %ebp, (%r15,%r10,4)
movl (%r14), %r11d
movl %r9d, %r12d
cmpl %r11d, %r9d
jae 0x2a05
movl (%rax,%r10,4), %r9d
movl %r9d, %ebp
shrl %cl, %ebp
testb $0x3, %bpl
jne 0x2a05
leaq (%rax,%r10,4), %r10
movq (%rdi,%r12,8), %r11
movq %r8, (%rdi,%r12,8)
movq %r11, %r8
jmp 0x2958
movq %r8, (%rdi,%r12,8)
incl %esi
cmpl %r11d, %esi
jne 0x292a
movq 0x8(%rsp), %r12
cmpl %r12d, %r11d
jbe 0x2a38
movq 0x18(%r14), %rdi
movl 0x8(%rsp), %esi
shlq $0x3, %rsi
callq 0x21d0
movq 0x8(%rsp), %r12
movq %rax, 0x18(%r14)
movq 0x10(%r14), %rdi
callq 0x2050
movq %r15, 0x10(%r14)
movl %r12d, (%r14)
movl 0x4(%r14), %eax
movl %eax, 0x8(%r14)
movq 0x28(%rsp), %rax
movl %eax, 0xc(%r14)
movl %r12d, %eax
pcmpeqd %xmm1, %xmm1
movsd 0x35a0(%rip), %xmm2     # 0x6008
movsd 0x35a0(%rip), %xmm3     # 0x6010
orq 0x30(%rsp), %r13
leal -0x1(%rax), %r8d
movq %r13, %r9
shrq $0x21, %r9
movl %r13d, %ecx
shll $0xb, %ecx
xorl %ecx, %r9d
xorl %r13d, %r9d
movl %r8d, %edi
andl %r9d, %edi
movq 0x10(%r14), %rdx
movl %edi, %ecx
shrl $0x4, %ecx
movl (%rdx,%rcx,4), %esi
leal (%rdi,%rdi), %ecx
shrl %cl, %esi
testb $0x2, %sil
je 0x2ab0
movl %edi, %esi
jmp 0x2b36
movl %r9d, %ecx
shrl $0x3, %ecx
shll $0x3, %r9d
xorl %ecx, %r9d
orl $0x1, %r9d
andl %r8d, %r9d
movl %eax, %esi
movl %edi, %r10d
movl %r10d, %ecx
shrl $0x4, %ecx
movl (%rdx,%rcx,4), %r11d
leal (%r10,%r10), %ecx
andl $0x1e, %ecx
movl %r11d, %ebp
shrl %cl, %ebp
testb $0x2, %bpl
jne 0x2b16
testb $0x1, %bpl
jne 0x2af8
movq 0x18(%r14), %r15
movl %r10d, %r12d
cmpq %r13, (%r15,%r12,8)
je 0x2b16
btl %ecx, %r11d
cmovbl %r10d, %esi
addl %r9d, %r10d
andl %r8d, %r10d
cmpl %edi, %r10d
jne 0x2ac9
movb $0x1, %cl
movl %eax, %r8d
cmpl %eax, %esi
je 0x2b26
jmp 0x2b36
shrl %cl, %r11d
testb $0x2, %r11b
sete %cl
movl %r10d, %edi
movl %esi, %r8d
cmpl %eax, %r8d
cmovel %edi, %r8d
testb %cl, %cl
cmovnel %edi, %r8d
movl %r8d, %esi
movl %esi, %eax
shrl $0x4, %eax
movl (%rdx,%rax,4), %edi
leal (%rsi,%rsi), %ecx
andl $0x1e, %ecx
movl %edi, %r8d
shrl %cl, %r8d
testb $0x2, %r8b
jne 0x2b78
testb $0x1, %r8b
je 0x2ba4
movq 0x18(%r14), %r8
movl $0x3, %r9d
shll %cl, %r9d
movl %esi, %ecx
movq %r13, (%r8,%rcx,8)
notl %r9d
andl %r9d, %edi
movl %edi, (%rdx,%rax,4)
incl 0x4(%r14)
jmp 0x2ba4
movq 0x18(%r14), %r8
movl $0x3, %r9d
shll %cl, %r9d
movl %esi, %ecx
movq %r13, (%r8,%rcx,8)
notl %r9d
andl %r9d, %edi
movl %edi, (%rdx,%rax,4)
movq 0x4(%r14), %xmm0
psubd %xmm1, %xmm0
movq %xmm0, 0x4(%r14)
incl %ebx
cmpl $0x4, %ebx
jne 0x281e
movq 0x20(%rsp), %rcx
incq %rcx
movq 0x10(%rsp), %rax
movslq (%rax), %rax
cmpq %rax, %rcx
jl 0x27e9
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq