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

```c
#include <stdio.h>
int main(void)
{
	int a[10], c, d=10, e=0, i, j;
	
	for(i=0;i<5;i++) scanf("%d",&a[i]);
	
	for(i=0;i<5;i++){
	    c=a[i]%10;
	    if(c!=0){
	        if(c<d){
	            d=c;
	            j=i;
	        }
	    }
	}
	for(i=0;i<5;i++){
	    if(i!=j){
	        c=a[i]%10;
	        if(c!=0) a[i]=a[i]+10-c;
	        e+=a[i];
	    }
	}
	e=e+a[j];
	printf("%d\n",e);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$10, -68(%rbp)
	movl	$0, -64(%rbp)
	movl	$0, -60(%rbp)
	jmp	.L2
.L3:
	leaq	-48(%rbp), %rdx
	movl	-60(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -60(%rbp)
.L2:
	cmpl	$4, -60(%rbp)
	jle	.L3
	movl	$0, -60(%rbp)
	jmp	.L4
.L6:
	movl	-60(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, -52(%rbp)
	movl	-52(%rbp), %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	subl	%eax, %edx
	movl	%edx, -52(%rbp)
	cmpl	$0, -52(%rbp)
	je	.L5
	movl	-52(%rbp), %eax
	cmpl	-68(%rbp), %eax
	jge	.L5
	movl	-52(%rbp), %eax
	movl	%eax, -68(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -56(%rbp)
.L5:
	addl	$1, -60(%rbp)
.L4:
	cmpl	$4, -60(%rbp)
	jle	.L6
	movl	$0, -60(%rbp)
	jmp	.L7
.L10:
	movl	-60(%rbp), %eax
	cmpl	-56(%rbp), %eax
	je	.L8
	movl	-60(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, -52(%rbp)
	movl	-52(%rbp), %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	subl	%eax, %edx
	movl	%edx, -52(%rbp)
	cmpl	$0, -52(%rbp)
	je	.L9
	movl	-60(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	addl	$10, %eax
	subl	-52(%rbp), %eax
	movl	%eax, %edx
	movl	-60(%rbp), %eax
	cltq
	movl	%edx, -48(%rbp,%rax,4)
.L9:
	movl	-60(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	addl	%eax, -64(%rbp)
.L8:
	addl	$1, -60(%rbp)
.L7:
	cmpl	$4, -60(%rbp)
	jle	.L10
	movl	-56(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	addl	%eax, -64(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$48, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	leaq	20(%rsp), %r12
.L2:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r12, %rbx
	jne	.L2
	movslq	(%rsp), %r9
	movslq	4(%rsp), %rdi
	movl	$10, %r11d
	movq	%r9, %rcx
	imulq	$1717986919, %r9, %r9
	movq	%rdi, %rbx
	movl	%ecx, %eax
	sarl	$31, %eax
	sarq	$34, %r9
	subl	%eax, %r9d
	leal	(%r9,%r9,4), %eax
	movl	%ecx, %r9d
	addl	%eax, %eax
	subl	%eax, %r9d
	movl	%ebx, %eax
	cmovne	%r9d, %r11d
	imulq	$1717986919, %rdi, %rdi
	sarl	$31, %eax
	sarq	$34, %rdi
	subl	%eax, %edi
	leal	(%rdi,%rdi,4), %eax
	movl	%ebx, %edi
	addl	%eax, %eax
	subl	%eax, %edi
	cmpl	%edi, %r11d
	jle	.L39
	testl	%edi, %edi
	je	.L39
	movl	%edi, %r11d
	movl	$1, %r10d
.L4:
	movslq	8(%rsp), %rsi
	movq	%rsi, %rbp
	imulq	$1717986919, %rsi, %rsi
	movl	%ebp, %eax
	sarl	$31, %eax
	sarq	$34, %rsi
	subl	%eax, %esi
	leal	(%rsi,%rsi,4), %eax
	movl	%ebp, %esi
	addl	%eax, %eax
	subl	%eax, %esi
	cmpl	%esi, %r11d
	jle	.L6
	testl	%esi, %esi
	setne	%al
	testb	%al, %al
	movl	$2, %eax
	cmovne	%esi, %r11d
	cmovne	%rax, %r10
.L6:
	movslq	12(%rsp), %r8
	movq	%r8, %r12
	imulq	$1717986919, %r8, %r8
	movl	%r12d, %eax
	sarl	$31, %eax
	sarq	$34, %r8
	subl	%eax, %r8d
	leal	(%r8,%r8,4), %eax
	movl	%r12d, %r8d
	addl	%eax, %eax
	subl	%eax, %r8d
	cmpl	%r8d, %r11d
	jle	.L40
	testl	%r8d, %r8d
	je	.L40
	movslq	16(%rsp), %rdx
	movq	%rdx, %r13
	imulq	$1717986919, %rdx, %rdx
	movl	%r13d, %eax
	sarl	$31, %eax
	sarq	$34, %rdx
	subl	%eax, %edx
	leal	(%rdx,%rdx,4), %eax
	movl	%r13d, %edx
	addl	%eax, %eax
	subl	%eax, %edx
	setne	%al
	cmpl	%r8d, %edx
	jge	.L41
	testb	%al, %al
	je	.L41
.L32:
	movl	$1, %eax
	movl	$4, %r10d
.L11:
	testl	%r9d, %r9d
	je	.L14
.L13:
	addl	$10, %ecx
	subl	%r9d, %ecx
	movl	%ecx, (%rsp)
.L16:
	cmpl	$1, %r10d
	jne	.L14
	testl	%esi, %esi
	jne	.L21
	addl	%ebp, %ecx
.L22:
	testl	%r8d, %r8d
	je	.L28
.L25:
	addl	$10, %r12d
	subl	%r8d, %r12d
	movl	%r12d, 12(%rsp)
.L28:
	addl	%r12d, %ecx
	cmpl	$4, %r10d
	je	.L27
.L23:
	testb	%al, %al
	jne	.L71
.L29:
	addl	%r13d, %ecx
.L27:
	addl	(%rsp,%r10,4), %ecx
	xorl	%eax, %eax
	movl	$1, %edi
	movl	%ecx, %edx
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L72
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	testl	%edi, %edi
	je	.L20
.L17:
	addl	$10, %ebx
	subl	%edi, %ebx
	movl	%ebx, 4(%rsp)
.L20:
	addl	%ebx, %ecx
	cmpl	$2, %r10d
	je	.L73
.L18:
	testl	%esi, %esi
	je	.L24
.L21:
	addl	$10, %ebp
	subl	%esi, %ebp
	movl	%ebp, 8(%rsp)
.L24:
	addl	%ebp, %ecx
	cmpl	$3, %r10d
	jne	.L22
	jmp	.L23
.L71:
	addl	$10, %r13d
	subl	%edx, %r13d
	movl	%r13d, 16(%rsp)
	jmp	.L29
.L73:
	testl	%r8d, %r8d
	jne	.L25
	addl	%r12d, %ecx
	jmp	.L23
.L40:
	movl	16(%rsp), %r13d
	movl	$10, %r14d
	movl	%r13d, %eax
	cltd
	idivl	%r14d
	testl	%edx, %edx
	setne	%al
	cmpl	%r11d, %edx
	jge	.L10
	testb	%al, %al
	jne	.L32
.L10:
	testl	%r10d, %r10d
	jne	.L74
	movl	%ebx, %ecx
	testl	%edi, %edi
	je	.L18
	xorl	%ecx, %ecx
	jmp	.L17
.L39:
	xorl	%r10d, %r10d
	jmp	.L4
.L41:
	movl	$3, %r10d
	jmp	.L11
.L72:
	call	__stack_chk_fail@PLT
.L74:
	testl	%r9d, %r9d
	jne	.L13
	jmp	.L16
	.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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$48, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	leaq	20(%rsp), %r12
.L2:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r12, %rbx
	jne	.L2
	movslq	(%rsp), %r9
	movslq	4(%rsp), %rdi
	movl	$10, %r11d
	movq	%r9, %rcx
	imulq	$1717986919, %r9, %r9
	movq	%rdi, %rbx
	movl	%ecx, %eax
	sarl	$31, %eax
	sarq	$34, %r9
	subl	%eax, %r9d
	leal	(%r9,%r9,4), %eax
	movl	%ecx, %r9d
	addl	%eax, %eax
	subl	%eax, %r9d
	movl	%ebx, %eax
	cmovne	%r9d, %r11d
	imulq	$1717986919, %rdi, %rdi
	sarl	$31, %eax
	sarq	$34, %rdi
	subl	%eax, %edi
	leal	(%rdi,%rdi,4), %eax
	movl	%ebx, %edi
	addl	%eax, %eax
	subl	%eax, %edi
	cmpl	%edi, %r11d
	jle	.L39
	testl	%edi, %edi
	je	.L39
	movl	%edi, %r11d
	movl	$1, %r10d
.L4:
	movslq	8(%rsp), %rsi
	movq	%rsi, %rbp
	imulq	$1717986919, %rsi, %rsi
	movl	%ebp, %eax
	sarl	$31, %eax
	sarq	$34, %rsi
	subl	%eax, %esi
	leal	(%rsi,%rsi,4), %eax
	movl	%ebp, %esi
	addl	%eax, %eax
	subl	%eax, %esi
	cmpl	%esi, %r11d
	jle	.L6
	testl	%esi, %esi
	setne	%al
	testb	%al, %al
	movl	$2, %eax
	cmovne	%esi, %r11d
	cmovne	%rax, %r10
.L6:
	movslq	12(%rsp), %r8
	movq	%r8, %r12
	imulq	$1717986919, %r8, %r8
	movl	%r12d, %eax
	sarl	$31, %eax
	sarq	$34, %r8
	subl	%eax, %r8d
	leal	(%r8,%r8,4), %eax
	movl	%r12d, %r8d
	addl	%eax, %eax
	subl	%eax, %r8d
	cmpl	%r8d, %r11d
	jle	.L40
	testl	%r8d, %r8d
	je	.L40
	movslq	16(%rsp), %rdx
	movq	%rdx, %r13
	imulq	$1717986919, %rdx, %rdx
	movl	%r13d, %eax
	sarl	$31, %eax
	sarq	$34, %rdx
	subl	%eax, %edx
	leal	(%rdx,%rdx,4), %eax
	movl	%r13d, %edx
	addl	%eax, %eax
	subl	%eax, %edx
	setne	%al
	cmpl	%r8d, %edx
	jge	.L41
	testb	%al, %al
	je	.L41
.L32:
	movl	$1, %eax
	movl	$4, %r10d
.L11:
	testl	%r9d, %r9d
	je	.L14
.L13:
	addl	$10, %ecx
	subl	%r9d, %ecx
	movl	%ecx, (%rsp)
.L16:
	cmpl	$1, %r10d
	jne	.L14
	testl	%esi, %esi
	jne	.L21
	addl	%ebp, %ecx
.L22:
	testl	%r8d, %r8d
	je	.L28
.L25:
	addl	$10, %r12d
	subl	%r8d, %r12d
	movl	%r12d, 12(%rsp)
.L28:
	addl	%r12d, %ecx
	cmpl	$4, %r10d
	je	.L27
.L23:
	testb	%al, %al
	jne	.L71
.L29:
	addl	%r13d, %ecx
.L27:
	addl	(%rsp,%r10,4), %ecx
	xorl	%eax, %eax
	movl	$1, %edi
	movl	%ecx, %edx
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L72
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	testl	%edi, %edi
	je	.L20
.L17:
	addl	$10, %ebx
	subl	%edi, %ebx
	movl	%ebx, 4(%rsp)
.L20:
	addl	%ebx, %ecx
	cmpl	$2, %r10d
	je	.L73
.L18:
	testl	%esi, %esi
	je	.L24
.L21:
	addl	$10, %ebp
	subl	%esi, %ebp
	movl	%ebp, 8(%rsp)
.L24:
	addl	%ebp, %ecx
	cmpl	$3, %r10d
	jne	.L22
	jmp	.L23
.L71:
	addl	$10, %r13d
	subl	%edx, %r13d
	movl	%r13d, 16(%rsp)
	jmp	.L29
.L73:
	testl	%r8d, %r8d
	jne	.L25
	addl	%r12d, %ecx
	jmp	.L23
.L40:
	movl	16(%rsp), %r13d
	movl	$10, %r14d
	movl	%r13d, %eax
	cltd
	idivl	%r14d
	testl	%edx, %edx
	setne	%al
	cmpl	%r11d, %edx
	jge	.L10
	testb	%al, %al
	jne	.L32
.L10:
	testl	%r10d, %r10d
	jne	.L74
	movl	%ebx, %ecx
	testl	%edi, %edi
	je	.L18
	xorl	%ecx, %ecx
	jmp	.L17
.L39:
	xorl	%r10d, %r10d
	jmp	.L4
.L41:
	movl	$3, %r10d
	jmp	.L11
.L72:
	call	__stack_chk_fail@PLT
.L74:
	testl	%r9d, %r9d
	jne	.L13
	jmp	.L16
	.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:

#include <stdio.h>
int main(void)
{
	int a[10], c, d=10, e=0, i, j;
	
	for(i=0;i<5;i++) scanf("%d",&a[i]);
	
	for(i=0;i<5;i++){
	    c=a[i]%10;
	    if(c!=0){
	        if(c<d){
	            d=c;
	            j=i;
	        }
	    }
	}
	for(i=0;i<5;i++){
	    if(i!=j){
	        c=a[i]%10;
	        if(c!=0) a[i]=a[i]+10-c;
	        e+=a[i];
	    }
	}
	e=e+a[j];
	printf("%d\n",e);
	return 0;
}
123
123
161
123
123
 29
20
13
35
120
 101
86
119
108
92
 123
123
161
123
163
 29
20
9
35
120
 101
86
119
125
92
 123
123
161
123
263
 29
20
4
35
120
 101
26
119
125
92
 123
123
40
123
263

681
 223
 521
 721
 215
 541
 821
 214
 481
 693

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

```c
#include <stdio.h>
int main(void)
{
	int a[10], c, d=10, e=0, i, j;
	
	for(i=0;i<5;i++) scanf("%d",&a[i]);
	
	for(i=0;i<5;i++){
	    c=a[i]%10;
	    if(c!=0){
	        if(c<d){
	            d=c;
	            j=i;
	        }
	    }
	}
	for(i=0;i<5;i++){
	    if(i!=j){
	        c=a[i]%10;
	        if(c!=0) a[i]=a[i]+10-c;
	        e+=a[i];
	    }
	}
	e=e+a[j];
	printf("%d\n",e);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$10, -68(%rbp)
	movl	$0, -64(%rbp)
	movl	$0, -60(%rbp)
	jmp	.L2
.L3:
	leaq	-48(%rbp), %rdx
	movl	-60(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -60(%rbp)
.L2:
	cmpl	$4, -60(%rbp)
	jle	.L3
	movl	$0, -60(%rbp)
	jmp	.L4
.L6:
	movl	-60(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, -52(%rbp)
	movl	-52(%rbp), %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	subl	%eax, %edx
	movl	%edx, -52(%rbp)
	cmpl	$0, -52(%rbp)
	je	.L5
	movl	-52(%rbp), %eax
	cmpl	-68(%rbp), %eax
	jge	.L5
	movl	-52(%rbp), %eax
	movl	%eax, -68(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -56(%rbp)
.L5:
	addl	$1, -60(%rbp)
.L4:
	cmpl	$4, -60(%rbp)
	jle	.L6
	movl	$0, -60(%rbp)
	jmp	.L7
.L10:
	movl	-60(%rbp), %eax
	cmpl	-56(%rbp), %eax
	je	.L8
	movl	-60(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, -52(%rbp)
	movl	-52(%rbp), %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	subl	%eax, %edx
	movl	%edx, -52(%rbp)
	cmpl	$0, -52(%rbp)
	je	.L9
	movl	-60(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	addl	$10, %eax
	subl	-52(%rbp), %eax
	movl	%eax, %edx
	movl	-60(%rbp), %eax
	cltq
	movl	%edx, -48(%rbp,%rax,4)
.L9:
	movl	-60(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	addl	%eax, -64(%rbp)
.L8:
	addl	$1, -60(%rbp)
.L7:
	cmpl	$4, -60(%rbp)
	jle	.L10
	movl	-56(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	addl	%eax, -64(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$10, -68(%rbp)
	movl	$0, -64(%rbp)
	movl	$0, -60(%rbp)
	jmp	.L2
.L3:
	leaq	-48(%rbp), %rdx
	movl	-60(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -60(%rbp)
.L2:
	cmpl	$4, -60(%rbp)
	jle	.L3
	movl	$0, -60(%rbp)
	jmp	.L4
.L6:
	movl	-60(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, -52(%rbp)
	movl	-52(%rbp), %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	subl	%eax, %edx
	movl	%edx, -52(%rbp)
	cmpl	$0, -52(%rbp)
	je	.L5
	movl	-52(%rbp), %eax
	cmpl	-68(%rbp), %eax
	jge	.L5
	movl	-52(%rbp), %eax
	movl	%eax, -68(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -56(%rbp)
.L5:
	addl	$1, -60(%rbp)
.L4:
	cmpl	$4, -60(%rbp)
	jle	.L6
	movl	$0, -60(%rbp)
	jmp	.L7
.L10:
	movl	-60(%rbp), %eax
	cmpl	-56(%rbp), %eax
	je	.L8
	movl	-60(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, -52(%rbp)
	movl	-52(%rbp), %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	subl	%eax, %edx
	movl	%edx, -52(%rbp)
	cmpl	$0, -52(%rbp)
	je	.L9
	movl	-60(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	addl	$10, %eax
	subl	-52(%rbp), %eax
	movl	%eax, %edx
	movl	-60(%rbp), %eax
	cltq
	movl	%edx, -48(%rbp,%rax,4)
.L9:
	movl	-60(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	addl	%eax, -64(%rbp)
.L8:
	addl	$1, -60(%rbp)
.L7:
	cmpl	$4, -60(%rbp)
	jle	.L10
	movl	-56(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	addl	%eax, -64(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
