Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
t[80000],j,c;main(i){for(;++i<256;)for(j=i;t[j+=i]=j<4e4;);for(;j=scanf("%d",&i)*i/2;c=!printf("%d\n",c))for(;j>1;)c+=!t[j]&!t[i-j--];}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	addl	$1, %edi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	cmpl	$255, %edi
	jg	.L2
	movslq	%edi, %r8
	leaq	t(%rip), %rax
	leaq	(%rax,%r8,8), %r9
	salq	$2, %r8
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r9, %rsi
	movl	%edi, %edx
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	$39999, %edx
	setle	%al
	addl	%edi, %ecx
	addl	%edi, %edx
	movzbl	%al, %eax
	movl	%eax, (%rsi)
	addq	%r8, %rsi
	cmpl	$39999, %ecx
	jle	.L3
	addl	$1, %edi
	addq	$8, %r9
	addq	$4, %r8
	cmpl	$256, %edi
	jne	.L4
	movl	%edx, j(%rip)
	movl	$256, 12(%rsp)
.L2:
	leaq	12(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	xorl	%r13d, %r13d
	leaq	t(%rip), %r14
	leaq	.LC0(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movq	%rbp, %rsi
	call	scanf@PLT
	movl	12(%rsp), %edi
	imull	%edi, %eax
	movl	%eax, %edx
	movl	%eax, %r8d
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%edx, j(%rip)
	je	.L9
	movl	c(%rip), %r9d
	cmpl	$3, %eax
	jle	.L11
	leal	-1(%rdx), %r10d
	cmpl	$9, %r8d
	jle	.L12
	movslq	%edx, %rcx
	movslq	%edi, %rax
	pxor	%xmm1, %xmm1
	movl	%r10d, %r11d
	leaq	-12(%r14,%rcx,4), %rsi
	subq	%rcx, %rax
	shrl	$2, %r11d
	leal	-1(%r11), %r15d
	leaq	(%r14,%rax,4), %rcx
	leaq	-16(%rsi), %rax
	salq	$4, %r15
	movq	%rax, %r11
	subq	%r15, %r11
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	subq	$16, %rax
.L7:
	movdqu	(%rsi), %xmm0
	movdqu	(%rcx), %xmm2
	pxor	%xmm3, %xmm3
	movq	%rax, %rsi
	addq	$16, %rcx
	pshufd	$27, %xmm0, %xmm0
	por	%xmm2, %xmm0
	pcmpeqd	%xmm3, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%r11, %rax
	jne	.L25
	movdqa	%xmm1, %xmm0
	movl	%r10d, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %r9d
	movl	%edx, %eax
	subl	%ecx, %eax
	cmpl	%r10d, %ecx
	je	.L8
.L6:
	movl	%edi, %esi
	movslq	%eax, %r11
	leal	-1(%rax), %ecx
	subl	%eax, %esi
	movslq	%esi, %rsi
	movl	(%r14,%rsi,4), %esi
	orl	(%r14,%r11,4), %esi
	cmpl	$1, %esi
	adcl	$0, %r9d
	cmpl	$2, %eax
	je	.L8
	movl	%edi, %r11d
	leal	-2(%rax), %esi
	subl	%ecx, %r11d
	movslq	%ecx, %rcx
	movslq	%r11d, %r11
	movl	(%r14,%r11,4), %r11d
	orl	(%r14,%rcx,4), %r11d
	cmpl	$1, %r11d
	adcl	$0, %r9d
	cmpl	$3, %eax
	je	.L8
	subl	%esi, %edi
	movslq	%esi, %rsi
	movslq	%edi, %rdi
	movl	(%r14,%rdi,4), %eax
	orl	(%r14,%rsi,4), %eax
	cmpl	$1, %eax
	adcl	$0, %r9d
.L8:
	subl	$2, %edx
	movl	%r9d, c(%rip)
	negl	%edx
	cmpl	$3, %r8d
	cmovle	%r13d, %edx
	addl	%r10d, %edx
	movl	%edx, j(%rip)
.L11:
	xorl	%eax, %eax
	movl	%r9d, %esi
	movq	%r12, %rdi
	call	printf@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movl	%eax, c(%rip)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	movl	%edx, %eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	c
	.bss
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 320000
t:
	.zero	320000
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	addl	$1, %edi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	cmpl	$255, %edi
	jg	.L2
	movslq	%edi, %r8
	leaq	t(%rip), %rax
	leaq	(%rax,%r8,8), %r9
	salq	$2, %r8
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r9, %rsi
	movl	%edi, %edx
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	$39999, %edx
	setle	%al
	addl	%edi, %ecx
	addl	%edi, %edx
	movzbl	%al, %eax
	movl	%eax, (%rsi)
	addq	%r8, %rsi
	cmpl	$39999, %ecx
	jle	.L3
	addl	$1, %edi
	addq	$8, %r9
	addq	$4, %r8
	cmpl	$256, %edi
	jne	.L4
	movl	%edx, j(%rip)
	movl	$256, 12(%rsp)
.L2:
	leaq	12(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	xorl	%r13d, %r13d
	leaq	t(%rip), %r14
	leaq	.LC0(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movq	%rbp, %rsi
	call	scanf@PLT
	movl	12(%rsp), %edi
	imull	%edi, %eax
	movl	%eax, %edx
	movl	%eax, %r8d
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%edx, j(%rip)
	je	.L9
	movl	c(%rip), %r9d
	cmpl	$3, %eax
	jle	.L11
	leal	-1(%rdx), %r10d
	cmpl	$9, %r8d
	jle	.L12
	movslq	%edx, %rcx
	movslq	%edi, %rax
	pxor	%xmm1, %xmm1
	movl	%r10d, %r11d
	leaq	-12(%r14,%rcx,4), %rsi
	subq	%rcx, %rax
	shrl	$2, %r11d
	leal	-1(%r11), %r15d
	leaq	(%r14,%rax,4), %rcx
	leaq	-16(%rsi), %rax
	salq	$4, %r15
	movq	%rax, %r11
	subq	%r15, %r11
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	subq	$16, %rax
.L7:
	movdqu	(%rsi), %xmm0
	movdqu	(%rcx), %xmm2
	pxor	%xmm3, %xmm3
	movq	%rax, %rsi
	addq	$16, %rcx
	pshufd	$27, %xmm0, %xmm0
	por	%xmm2, %xmm0
	pcmpeqd	%xmm3, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%r11, %rax
	jne	.L25
	movdqa	%xmm1, %xmm0
	movl	%r10d, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %r9d
	movl	%edx, %eax
	subl	%ecx, %eax
	cmpl	%r10d, %ecx
	je	.L8
.L6:
	movl	%edi, %esi
	movslq	%eax, %r11
	leal	-1(%rax), %ecx
	subl	%eax, %esi
	movslq	%esi, %rsi
	movl	(%r14,%rsi,4), %esi
	orl	(%r14,%r11,4), %esi
	cmpl	$1, %esi
	adcl	$0, %r9d
	cmpl	$2, %eax
	je	.L8
	movl	%edi, %r11d
	leal	-2(%rax), %esi
	subl	%ecx, %r11d
	movslq	%ecx, %rcx
	movslq	%r11d, %r11
	movl	(%r14,%r11,4), %r11d
	orl	(%r14,%rcx,4), %r11d
	cmpl	$1, %r11d
	adcl	$0, %r9d
	cmpl	$3, %eax
	je	.L8
	subl	%esi, %edi
	movslq	%esi, %rsi
	movslq	%edi, %rdi
	movl	(%r14,%rdi,4), %eax
	orl	(%r14,%rsi,4), %eax
	cmpl	$1, %eax
	adcl	$0, %r9d
.L8:
	subl	$2, %edx
	movl	%r9d, c(%rip)
	negl	%edx
	cmpl	$3, %r8d
	cmovle	%r13d, %edx
	addl	%r10d, %edx
	movl	%edx, j(%rip)
.L11:
	xorl	%eax, %eax
	movl	%r9d, %esi
	movq	%r12, %rdi
	call	printf@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movl	%eax, c(%rip)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	movl	%edx, %eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	c
	.bss
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 320000
t:
	.zero	320000
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```
rule
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	addl	$1, %edi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	cmpl	$255, %edi
	jg	.L2
	movslq	%edi, %r8
	leaq	t(%rip), %rax
	leaq	(%rax,%r8,8), %r9
	salq	$2, %r8
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r9, %rsi
	movl	%edi, %edx
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	$39999, %edx
	setle	%al
	addl	%edi, %ecx
	addl	%edi, %edx
	movzbl	%al, %eax
	movl	%eax, (%rsi)
	addq	%r8, %rsi
	cmpl	$39999, %ecx
	jle	.L3
	addl	$1, %edi
	addq	$8, %r9
	addq	$4, %r8
	cmpl	$256, %edi
	jne	.L4
	movl	%edx, j(%rip)
	movl	$256, 12(%rsp)
.L2:
	leaq	12(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	xorl	%r13d, %r13d
	leaq	t(%rip), %r14
	leaq	.LC0(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movq	%rbp, %rsi
	call	scanf@PLT
	movl	12(%rsp), %edi
	imull	%edi, %eax
	movl	%eax, %edx
	movl	%eax, %r8d
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%edx, j(%rip)
	je	.L9
	movl	c(%rip), %r9d
	cmpl	$3, %eax
	jle	.L11
	leal	-1(%rdx), %r10d
	cmpl	$9, %r8d
	jle	.L12
	movslq	%edx, %rcx
	movslq	%edi, %rax
	pxor	%xmm1, %xmm1
	movl	%r10d, %r11d
	leaq	-12(%r14,%rcx,4), %rsi
	subq	%rcx, %rax
	shrl	$2, %r11d
	leal	-1(%r11), %r15d
	leaq	(%r14,%rax,4), %rcx
	leaq	-16(%rsi), %rax
	salq	$4, %r15
	movq	%rax, %r11
	subq	%r15, %r11
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	subq	$16, %rax
.L7:
	movdqu	(%rsi), %xmm0
	movdqu	(%rcx), %xmm2
	pxor	%xmm3, %xmm3
	movq	%rax, %rsi
	addq	$16, %rcx
	pshufd	$27, %xmm0, %xmm0
	por	%xmm2, %xmm0
	pcmpeqd	%xmm3, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%r11, %rax
	jne	.L25
	movdqa	%xmm1, %xmm0
	movl	%r10d, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %r9d
	movl	%edx, %eax
	subl	%ecx, %eax
	cmpl	%r10d, %ecx
	je	.L8
.L6:
	movl	%edi, %esi
	movslq	%eax, %r11
	leal	-1(%rax), %ecx
	subl	%eax, %esi
	movslq	%esi, %rsi
	movl	(%r14,%rsi,4), %esi
	orl	(%r14,%r11,4), %esi
	cmpl	$1, %esi
	adcl	$0, %r9d
	cmpl	$2, %eax
	je	.L8
	movl	%edi, %r11d
	leal	-2(%rax), %esi
	subl	%ecx, %r11d
	movslq	%ecx, %rcx
	movslq	%r11d, %r11
	movl	(%r14,%r11,4), %r11d
	orl	(%r14,%rcx,4), %r11d
	cmpl	$1, %r11d
	adcl	$0, %r9d
	cmpl	$3, %eax
	je	.L8
	subl	%esi, %edi
	movslq	%esi, %rsi
	movslq	%edi, %rdi
	movl	(%r14,%rdi,4), %eax
	orl	(%r14,%rsi,4), %eax
	cmpl	$1, %eax
	adcl	$0, %r9d
.L8:
	subl	$2, %edx
	movl	%r9d, c(%rip)
	negl	%edx
	cmpl	$3, %r8d
	cmovle	%r13d, %edx
	addl	%r10d, %edx
	movl	%edx, j(%rip)
.L11:
	xorl	%eax, %eax
	movl	%r9d, %esi
	movq	%r12, %rdi
	call	printf@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movl	%eax, c(%rip)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	movl	%edx, %eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	c
	.bss
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 320000
t:
	.zero	320000
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```
```c
t[80000],j,c;main(i){for(;++i<256;)for(j=i;t[j+=i]=j<4e4;);for(;j=scanf("%d",&i)*i/2;c=!printf("%d\n",c))for(;j>1;)c+=!t[j]&!t[i-j--];}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
t[80000],j,c;main(i){for(;++i<256;)for(j=i;t[j+=i]=j<4e4;);for(;j=scanf("%d",&i)*i/2;c=!printf("%d\n",c))for(;j>1;)c+=!t[j]&!t[i-j--];}```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

6
1
12
0
 6
10
8
0
 6
4
12
0
 6
1
3
0
 6
4
2
0
 6
0
2
0
 6
4
0
0
 6
2
14
0
 6
1
0
0
 6
16
0
0

1
 1
2
1
 1
1
1
 1
 1
1
0
 1
 1
1
 1
0
2
 1
 1
2

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
t[80000],j,c;main(i){for(;++i<256;)for(j=i;t[j+=i]=j<4e4;);for(;j=scanf("%d",&i)*i/2;c=!printf("%d\n",c))for(;j>1;)c+=!t[j]&!t[i-j--];}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	addl	$1, %edi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	cmpl	$255, %edi
	jg	.L2
	movslq	%edi, %r8
	leaq	t(%rip), %rax
	leaq	(%rax,%r8,8), %r9
	salq	$2, %r8
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r9, %rsi
	movl	%edi, %edx
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	$39999, %edx
	setle	%al
	addl	%edi, %ecx
	addl	%edi, %edx
	movzbl	%al, %eax
	movl	%eax, (%rsi)
	addq	%r8, %rsi
	cmpl	$39999, %ecx
	jle	.L3
	addl	$1, %edi
	addq	$8, %r9
	addq	$4, %r8
	cmpl	$256, %edi
	jne	.L4
	movl	%edx, j(%rip)
	movl	$256, 12(%rsp)
.L2:
	leaq	12(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	xorl	%r13d, %r13d
	leaq	t(%rip), %r14
	leaq	.LC0(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movq	%rbp, %rsi
	call	scanf@PLT
	movl	12(%rsp), %edi
	imull	%edi, %eax
	movl	%eax, %edx
	movl	%eax, %r8d
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%edx, j(%rip)
	je	.L9
	movl	c(%rip), %r9d
	cmpl	$3, %eax
	jle	.L11
	leal	-1(%rdx), %r10d
	cmpl	$9, %r8d
	jle	.L12
	movslq	%edx, %rcx
	movslq	%edi, %rax
	pxor	%xmm1, %xmm1
	movl	%r10d, %r11d
	leaq	-12(%r14,%rcx,4), %rsi
	subq	%rcx, %rax
	shrl	$2, %r11d
	leal	-1(%r11), %r15d
	leaq	(%r14,%rax,4), %rcx
	leaq	-16(%rsi), %rax
	salq	$4, %r15
	movq	%rax, %r11
	subq	%r15, %r11
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	subq	$16, %rax
.L7:
	movdqu	(%rsi), %xmm0
	movdqu	(%rcx), %xmm2
	pxor	%xmm3, %xmm3
	movq	%rax, %rsi
	addq	$16, %rcx
	pshufd	$27, %xmm0, %xmm0
	por	%xmm2, %xmm0
	pcmpeqd	%xmm3, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%r11, %rax
	jne	.L25
	movdqa	%xmm1, %xmm0
	movl	%r10d, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %r9d
	movl	%edx, %eax
	subl	%ecx, %eax
	cmpl	%r10d, %ecx
	je	.L8
.L6:
	movl	%edi, %esi
	movslq	%eax, %r11
	leal	-1(%rax), %ecx
	subl	%eax, %esi
	movslq	%esi, %rsi
	movl	(%r14,%rsi,4), %esi
	orl	(%r14,%r11,4), %esi
	cmpl	$1, %esi
	adcl	$0, %r9d
	cmpl	$2, %eax
	je	.L8
	movl	%edi, %r11d
	leal	-2(%rax), %esi
	subl	%ecx, %r11d
	movslq	%ecx, %rcx
	movslq	%r11d, %r11
	movl	(%r14,%r11,4), %r11d
	orl	(%r14,%rcx,4), %r11d
	cmpl	$1, %r11d
	adcl	$0, %r9d
	cmpl	$3, %eax
	je	.L8
	subl	%esi, %edi
	movslq	%esi, %rsi
	movslq	%edi, %rdi
	movl	(%r14,%rdi,4), %eax
	orl	(%r14,%rsi,4), %eax
	cmpl	$1, %eax
	adcl	$0, %r9d
.L8:
	subl	$2, %edx
	movl	%r9d, c(%rip)
	negl	%edx
	cmpl	$3, %r8d
	cmovle	%r13d, %edx
	addl	%r10d, %edx
	movl	%edx, j(%rip)
.L11:
	xorl	%eax, %eax
	movl	%r9d, %esi
	movq	%r12, %rdi
	call	printf@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movl	%eax, c(%rip)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	movl	%edx, %eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	c
	.bss
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 320000
t:
	.zero	320000
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	addl	$1, %edi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	cmpl	$255, %edi
	jg	.L2
	movslq	%edi, %r8
	leaq	t(%rip), %rax
	leaq	(%rax,%r8,8), %r9
	salq	$2, %r8
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r9, %rsi
	movl	%edi, %edx
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	$39999, %edx
	setle	%al
	addl	%edi, %ecx
	addl	%edi, %edx
	movzbl	%al, %eax
	movl	%eax, (%rsi)
	addq	%r8, %rsi
	cmpl	$39999, %ecx
	jle	.L3
	addl	$1, %edi
	addq	$8, %r9
	addq	$4, %r8
	cmpl	$256, %edi
	jne	.L4
	movl	%edx, j(%rip)
	movl	$256, 12(%rsp)
.L2:
	leaq	12(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	xorl	%r13d, %r13d
	leaq	t(%rip), %r14
	leaq	.LC0(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movq	%rbp, %rsi
	call	scanf@PLT
	movl	12(%rsp), %edi
	imull	%edi, %eax
	movl	%eax, %edx
	movl	%eax, %r8d
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%edx, j(%rip)
	je	.L9
	movl	c(%rip), %r9d
	cmpl	$3, %eax
	jle	.L11
	leal	-1(%rdx), %r10d
	cmpl	$9, %r8d
	jle	.L12
	movslq	%edx, %rcx
	movslq	%edi, %rax
	pxor	%xmm1, %xmm1
	movl	%r10d, %r11d
	leaq	-12(%r14,%rcx,4), %rsi
	subq	%rcx, %rax
	shrl	$2, %r11d
	leal	-1(%r11), %r15d
	leaq	(%r14,%rax,4), %rcx
	leaq	-16(%rsi), %rax
	salq	$4, %r15
	movq	%rax, %r11
	subq	%r15, %r11
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	subq	$16, %rax
.L7:
	movdqu	(%rsi), %xmm0
	movdqu	(%rcx), %xmm2
	pxor	%xmm3, %xmm3
	movq	%rax, %rsi
	addq	$16, %rcx
	pshufd	$27, %xmm0, %xmm0
	por	%xmm2, %xmm0
	pcmpeqd	%xmm3, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%r11, %rax
	jne	.L25
	movdqa	%xmm1, %xmm0
	movl	%r10d, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %r9d
	movl	%edx, %eax
	subl	%ecx, %eax
	cmpl	%r10d, %ecx
	je	.L8
.L6:
	movl	%edi, %esi
	movslq	%eax, %r11
	leal	-1(%rax), %ecx
	subl	%eax, %esi
	movslq	%esi, %rsi
	movl	(%r14,%rsi,4), %esi
	orl	(%r14,%r11,4), %esi
	cmpl	$1, %esi
	adcl	$0, %r9d
	cmpl	$2, %eax
	je	.L8
	movl	%edi, %r11d
	leal	-2(%rax), %esi
	subl	%ecx, %r11d
	movslq	%ecx, %rcx
	movslq	%r11d, %r11
	movl	(%r14,%r11,4), %r11d
	orl	(%r14,%rcx,4), %r11d
	cmpl	$1, %r11d
	adcl	$0, %r9d
	cmpl	$3, %eax
	je	.L8
	subl	%esi, %edi
	movslq	%esi, %rsi
	movslq	%edi, %rdi
	movl	(%r14,%rdi,4), %eax
	orl	(%r14,%rsi,4), %eax
	cmpl	$1, %eax
	adcl	$0, %r9d
.L8:
	subl	$2, %edx
	movl	%r9d, c(%rip)
	negl	%edx
	cmpl	$3, %r8d
	cmovle	%r13d, %edx
	addl	%r10d, %edx
	movl	%edx, j(%rip)
.L11:
	xorl	%eax, %eax
	movl	%r9d, %esi
	movq	%r12, %rdi
	call	printf@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movl	%eax, c(%rip)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	movl	%edx, %eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	c
	.bss
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 320000
t:
	.zero	320000
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```