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

```c
#include<stdio.h>
int main(){
	int n,k;
	int i,j,u[5],v=0;
	int a[100000],sum=0,w=0;
	while(scanf("%d%d",&n,&k),n!=0 && k!=0){
		for(i=0;i<n;i++) scanf("%d",&a[i]);
		for(i=0;i<n-k+1;i++){
			for(j=i;j<k+i;j++) sum+=a[j];
			if(sum>w) w=sum;
			sum=0;
		}
		u[v]=w,v++;
	}
	for(i=0;i<v;i++) printf("%d\n",u[i]);
	return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2776, %rsp
	.cfi_def_cfa_offset 400144
	xorl	%ebp, %ebp
	xorl	%r13d, %r13d
	leaq	.LC0(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 400072(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	28(%rsp), %r15
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	movl	%ebp, %r14d
	leaq	.LC1(%rip), %rdi
	movl	%ebp, %r12d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L11
	movl	28(%rsp), %edx
	testl	%edx, %edx
	je	.L11
	leaq	64(%rsp), %r14
	xorl	%r12d, %r12d
	testl	%r8d, %r8d
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r8d
	addq	$4, %r14
	cmpl	%r12d, %r8d
	jg	.L3
	movl	28(%rsp), %edx
.L13:
	subl	%edx, %r8d
	js	.L4
	leaq	64(%rsp), %r9
	addl	$1, %r8d
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	cmpl	%edx, %esi
	jge	.L10
	movl	%edx, %r10d
	subl	%esi, %r10d
	leal	-1(%r10), %eax
	cmpl	$2, %eax
	jbe	.L18
	movl	%r10d, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%r9,%rax), %rdi
	movq	%r9, %rax
	.p2align 4,,10
	.p2align 3
.L7:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rdi, %rax
	jne	.L7
	movdqa	%xmm0, %xmm1
	movl	%r10d, %r11d
	psrldq	$8, %xmm1
	andl	$-4, %r11d
	paddd	%xmm1, %xmm0
	leal	(%r11,%rsi), %edi
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	%r11d, %r10d
	je	.L10
.L6:
	movslq	%edi, %r10
	addl	64(%rsp,%r10,4), %eax
	leal	1(%rdi), %r10d
	cmpl	%edx, %r10d
	jge	.L10
	movslq	%r10d, %r10
	addl	$2, %edi
	addl	64(%rsp,%r10,4), %eax
	cmpl	%edx, %edi
	jge	.L10
	movslq	%edi, %rdi
	addl	64(%rsp,%rdi,4), %eax
.L10:
	cmpl	%eax, %r13d
	cmovl	%eax, %r13d
	addl	$1, %esi
	addl	$1, %edx
	addq	$4, %r9
	cmpl	%r8d, %esi
	jne	.L5
.L4:
	movl	%r13d, 32(%rsp,%rbp,4)
	addq	$1, %rbp
	jmp	.L2
.L18:
	movl	%esi, %edi
	xorl	%eax, %eax
	jmp	.L6
.L11:
	testl	%r12d, %r12d
	je	.L16
	movl	%r14d, %eax
	leaq	32(%rsp), %rbx
	leaq	.LC2(%rip), %rbp
	subl	$1, %eax
	leaq	36(%rsp,%rax,4), %r12
.L15:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%r12, %rbx
	jne	.L15
.L16:
	movq	400072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$400088, %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
.L32:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2776, %rsp
	.cfi_def_cfa_offset 400144
	xorl	%ebp, %ebp
	xorl	%r13d, %r13d
	leaq	.LC0(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 400072(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	28(%rsp), %r15
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	movl	%ebp, %r14d
	leaq	.LC1(%rip), %rdi
	movl	%ebp, %r12d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L11
	movl	28(%rsp), %edx
	testl	%edx, %edx
	je	.L11
	leaq	64(%rsp), %r14
	xorl	%r12d, %r12d
	testl	%r8d, %r8d
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r8d
	addq	$4, %r14
	cmpl	%r12d, %r8d
	jg	.L3
	movl	28(%rsp), %edx
.L13:
	subl	%edx, %r8d
	js	.L4
	leaq	64(%rsp), %r9
	addl	$1, %r8d
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	cmpl	%edx, %esi
	jge	.L10
	movl	%edx, %r10d
	subl	%esi, %r10d
	leal	-1(%r10), %eax
	cmpl	$2, %eax
	jbe	.L18
	movl	%r10d, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%r9,%rax), %rdi
	movq	%r9, %rax
	.p2align 4,,10
	.p2align 3
.L7:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rdi, %rax
	jne	.L7
	movdqa	%xmm0, %xmm1
	movl	%r10d, %r11d
	psrldq	$8, %xmm1
	andl	$-4, %r11d
	paddd	%xmm1, %xmm0
	leal	(%r11,%rsi), %edi
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	%r11d, %r10d
	je	.L10
.L6:
	movslq	%edi, %r10
	addl	64(%rsp,%r10,4), %eax
	leal	1(%rdi), %r10d
	cmpl	%edx, %r10d
	jge	.L10
	movslq	%r10d, %r10
	addl	$2, %edi
	addl	64(%rsp,%r10,4), %eax
	cmpl	%edx, %edi
	jge	.L10
	movslq	%edi, %rdi
	addl	64(%rsp,%rdi,4), %eax
.L10:
	cmpl	%eax, %r13d
	cmovl	%eax, %r13d
	addl	$1, %esi
	addl	$1, %edx
	addq	$4, %r9
	cmpl	%r8d, %esi
	jne	.L5
.L4:
	movl	%r13d, 32(%rsp,%rbp,4)
	addq	$1, %rbp
	jmp	.L2
.L18:
	movl	%esi, %edi
	xorl	%eax, %eax
	jmp	.L6
.L11:
	testl	%r12d, %r12d
	je	.L16
	movl	%r14d, %eax
	leaq	32(%rsp), %rbx
	leaq	.LC2(%rip), %rbp
	subl	$1, %eax
	leaq	36(%rsp,%rax,4), %r12
.L15:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%r12, %rbx
	jne	.L15
.L16:
	movq	400072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$400088, %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
.L32:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2776, %rsp
	.cfi_def_cfa_offset 400144
	xorl	%ebp, %ebp
	xorl	%r13d, %r13d
	leaq	.LC0(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 400072(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	28(%rsp), %r15
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	movl	%ebp, %r14d
	leaq	.LC1(%rip), %rdi
	movl	%ebp, %r12d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L11
	movl	28(%rsp), %edx
	testl	%edx, %edx
	je	.L11
	leaq	64(%rsp), %r14
	xorl	%r12d, %r12d
	testl	%r8d, %r8d
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r8d
	addq	$4, %r14
	cmpl	%r12d, %r8d
	jg	.L3
	movl	28(%rsp), %edx
.L13:
	subl	%edx, %r8d
	js	.L4
	leaq	64(%rsp), %r9
	addl	$1, %r8d
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	cmpl	%edx, %esi
	jge	.L10
	movl	%edx, %r10d
	subl	%esi, %r10d
	leal	-1(%r10), %eax
	cmpl	$2, %eax
	jbe	.L18
	movl	%r10d, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%r9,%rax), %rdi
	movq	%r9, %rax
	.p2align 4,,10
	.p2align 3
.L7:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rdi, %rax
	jne	.L7
	movdqa	%xmm0, %xmm1
	movl	%r10d, %r11d
	psrldq	$8, %xmm1
	andl	$-4, %r11d
	paddd	%xmm1, %xmm0
	leal	(%r11,%rsi), %edi
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	%r11d, %r10d
	je	.L10
.L6:
	movslq	%edi, %r10
	addl	64(%rsp,%r10,4), %eax
	leal	1(%rdi), %r10d
	cmpl	%edx, %r10d
	jge	.L10
	movslq	%r10d, %r10
	addl	$2, %edi
	addl	64(%rsp,%r10,4), %eax
	cmpl	%edx, %edi
	jge	.L10
	movslq	%edi, %rdi
	addl	64(%rsp,%rdi,4), %eax
.L10:
	cmpl	%eax, %r13d
	cmovl	%eax, %r13d
	addl	$1, %esi
	addl	$1, %edx
	addq	$4, %r9
	cmpl	%r8d, %esi
	jne	.L5
.L4:
	movl	%r13d, 32(%rsp,%rbp,4)
	addq	$1, %rbp
	jmp	.L2
.L18:
	movl	%esi, %edi
	xorl	%eax, %eax
	jmp	.L6
.L11:
	testl	%r12d, %r12d
	je	.L16
	movl	%r14d, %eax
	leaq	32(%rsp), %rbx
	leaq	.LC2(%rip), %rbp
	subl	$1, %eax
	leaq	36(%rsp,%rax,4), %r12
.L15:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%r12, %rbx
	jne	.L15
.L16:
	movq	400072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$400088, %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
.L32:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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
#include<stdio.h>
int main(){
	int n,k;
	int i,j,u[5],v=0;
	int a[100000],sum=0,w=0;
	while(scanf("%d%d",&n,&k),n!=0 && k!=0){
		for(i=0;i<n;i++) scanf("%d",&a[i]);
		for(i=0;i<n-k+1;i++){
			for(j=i;j<k+i;j++) sum+=a[j];
			if(sum>w) w=sum;
			sum=0;
		}
		u[v]=w,v++;
	}
	for(i=0;i<v;i++) printf("%d\n",u[i]);
	return 0;
}

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

```c
#include<stdio.h>
int main(){
	int n,k;
	int i,j,u[5],v=0;
	int a[100000],sum=0,w=0;
	while(scanf("%d%d",&n,&k),n!=0 && k!=0){
		for(i=0;i<n;i++) scanf("%d",&a[i]);
		for(i=0;i<n-k+1;i++){
			for(j=i;j<k+i;j++) sum+=a[j];
			if(sum>w) w=sum;
			sum=0;
		}
		u[v]=w,v++;
	}
	for(i=0;i<v;i++) printf("%d\n",u[i]);
	return 0;
}

```

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:

5 3
2
5
-4
8
3
0 0
 5 3
2
5
-4
12
3
0 0
 5 3
2
5
-4
14
3
0 0
 5 3
2
9
-4
14
1
0 0
 5 3
1
9
-4
2
1
0 0
 5 3
2
8
-4
12
3
0 0
 5 1
2
9
-4
14
1
0 0
 5 3
1
9
-4
13
1
0 0
 5 3
1
2
-4
13
1
0 0
 5 3
2
5
-4
5
3
0 0

9
 13
 15
 19
 7
 16
 14
 18
 11
 6

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

```c
#include<stdio.h>
int main(){
	int n,k;
	int i,j,u[5],v=0;
	int a[100000],sum=0,w=0;
	while(scanf("%d%d",&n,&k),n!=0 && k!=0){
		for(i=0;i<n;i++) scanf("%d",&a[i]);
		for(i=0;i<n-k+1;i++){
			for(j=i;j<k+i;j++) sum+=a[j];
			if(sum>w) w=sum;
			sum=0;
		}
		u[v]=w,v++;
	}
	for(i=0;i<v;i++) printf("%d\n",u[i]);
	return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2776, %rsp
	.cfi_def_cfa_offset 400144
	xorl	%ebp, %ebp
	xorl	%r13d, %r13d
	leaq	.LC0(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 400072(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	28(%rsp), %r15
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	movl	%ebp, %r14d
	leaq	.LC1(%rip), %rdi
	movl	%ebp, %r12d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L11
	movl	28(%rsp), %edx
	testl	%edx, %edx
	je	.L11
	leaq	64(%rsp), %r14
	xorl	%r12d, %r12d
	testl	%r8d, %r8d
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r8d
	addq	$4, %r14
	cmpl	%r12d, %r8d
	jg	.L3
	movl	28(%rsp), %edx
.L13:
	subl	%edx, %r8d
	js	.L4
	leaq	64(%rsp), %r9
	addl	$1, %r8d
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	cmpl	%edx, %esi
	jge	.L10
	movl	%edx, %r10d
	subl	%esi, %r10d
	leal	-1(%r10), %eax
	cmpl	$2, %eax
	jbe	.L18
	movl	%r10d, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%r9,%rax), %rdi
	movq	%r9, %rax
	.p2align 4,,10
	.p2align 3
.L7:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rdi, %rax
	jne	.L7
	movdqa	%xmm0, %xmm1
	movl	%r10d, %r11d
	psrldq	$8, %xmm1
	andl	$-4, %r11d
	paddd	%xmm1, %xmm0
	leal	(%r11,%rsi), %edi
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	%r11d, %r10d
	je	.L10
.L6:
	movslq	%edi, %r10
	addl	64(%rsp,%r10,4), %eax
	leal	1(%rdi), %r10d
	cmpl	%edx, %r10d
	jge	.L10
	movslq	%r10d, %r10
	addl	$2, %edi
	addl	64(%rsp,%r10,4), %eax
	cmpl	%edx, %edi
	jge	.L10
	movslq	%edi, %rdi
	addl	64(%rsp,%rdi,4), %eax
.L10:
	cmpl	%eax, %r13d
	cmovl	%eax, %r13d
	addl	$1, %esi
	addl	$1, %edx
	addq	$4, %r9
	cmpl	%r8d, %esi
	jne	.L5
.L4:
	movl	%r13d, 32(%rsp,%rbp,4)
	addq	$1, %rbp
	jmp	.L2
.L18:
	movl	%esi, %edi
	xorl	%eax, %eax
	jmp	.L6
.L11:
	testl	%r12d, %r12d
	je	.L16
	movl	%r14d, %eax
	leaq	32(%rsp), %rbx
	leaq	.LC2(%rip), %rbp
	subl	$1, %eax
	leaq	36(%rsp,%rax,4), %r12
.L15:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%r12, %rbx
	jne	.L15
.L16:
	movq	400072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$400088, %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
.L32:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2776, %rsp
	.cfi_def_cfa_offset 400144
	xorl	%ebp, %ebp
	xorl	%r13d, %r13d
	leaq	.LC0(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 400072(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	28(%rsp), %r15
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	movl	%ebp, %r14d
	leaq	.LC1(%rip), %rdi
	movl	%ebp, %r12d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L11
	movl	28(%rsp), %edx
	testl	%edx, %edx
	je	.L11
	leaq	64(%rsp), %r14
	xorl	%r12d, %r12d
	testl	%r8d, %r8d
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r8d
	addq	$4, %r14
	cmpl	%r12d, %r8d
	jg	.L3
	movl	28(%rsp), %edx
.L13:
	subl	%edx, %r8d
	js	.L4
	leaq	64(%rsp), %r9
	addl	$1, %r8d
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	cmpl	%edx, %esi
	jge	.L10
	movl	%edx, %r10d
	subl	%esi, %r10d
	leal	-1(%r10), %eax
	cmpl	$2, %eax
	jbe	.L18
	movl	%r10d, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%r9,%rax), %rdi
	movq	%r9, %rax
	.p2align 4,,10
	.p2align 3
.L7:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rdi, %rax
	jne	.L7
	movdqa	%xmm0, %xmm1
	movl	%r10d, %r11d
	psrldq	$8, %xmm1
	andl	$-4, %r11d
	paddd	%xmm1, %xmm0
	leal	(%r11,%rsi), %edi
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	%r11d, %r10d
	je	.L10
.L6:
	movslq	%edi, %r10
	addl	64(%rsp,%r10,4), %eax
	leal	1(%rdi), %r10d
	cmpl	%edx, %r10d
	jge	.L10
	movslq	%r10d, %r10
	addl	$2, %edi
	addl	64(%rsp,%r10,4), %eax
	cmpl	%edx, %edi
	jge	.L10
	movslq	%edi, %rdi
	addl	64(%rsp,%rdi,4), %eax
.L10:
	cmpl	%eax, %r13d
	cmovl	%eax, %r13d
	addl	$1, %esi
	addl	$1, %edx
	addq	$4, %r9
	cmpl	%r8d, %esi
	jne	.L5
.L4:
	movl	%r13d, 32(%rsp,%rbp,4)
	addq	$1, %rbp
	jmp	.L2
.L18:
	movl	%esi, %edi
	xorl	%eax, %eax
	jmp	.L6
.L11:
	testl	%r12d, %r12d
	je	.L16
	movl	%r14d, %eax
	leaq	32(%rsp), %rbx
	leaq	.LC2(%rip), %rbp
	subl	$1, %eax
	leaq	36(%rsp,%rax,4), %r12
.L15:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%r12, %rbx
	jne	.L15
.L16:
	movq	400072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$400088, %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
.L32:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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:
```