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(){
    int A[5],min=0,res=0,i;
    scanf("%d%d%d%d%d",&A[0],&A[1],&A[2],&A[3],&A[4]);
    for(i=0;i<5;i++){
        if(A[i]%10==0){
            res+=A[i];
            continue;
        }
        if(min<10-A[i]%10) min=10-A[i]%10;
        res+=(A[i]/10)*10+10;
    }
    printf("%d",res-min);
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d%d%d"
.LC1:
	.string	"%d"
	.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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -44(%rbp)
	movl	$0, -40(%rbp)
	leaq	-32(%rbp), %rax
	leaq	16(%rax), %rdi
	leaq	-32(%rbp), %rax
	leaq	12(%rax), %rsi
	leaq	-32(%rbp), %rax
	leaq	8(%rax), %rcx
	leaq	-32(%rbp), %rax
	leaq	4(%rax), %rdx
	leaq	-32(%rbp), %rax
	movq	%rdi, %r9
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L2
.L6:
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	jne	.L3
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	addl	%eax, -40(%rbp)
	jmp	.L4
.L3:
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	$10, %eax
	subl	%ecx, %eax
	cmpl	%eax, -44(%rbp)
	jge	.L5
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	$10, %eax
	subl	%ecx, %eax
	movl	%eax, -44(%rbp)
.L5:
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	leal	1(%rax), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	addl	%eax, -40(%rbp)
.L4:
	addl	$1, -36(%rbp)
.L2:
	cmpl	$4, -36(%rbp)
	jle	.L6
	movl	-40(%rbp), %eax
	subl	-44(%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	.L8
	call	__stack_chk_fail@PLT
.L8:
	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%d%d%d%d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	8(%rsp), %rcx
	leaq	4(%rsp), %rdx
	leaq	16(%rsp), %r9
	leaq	12(%rsp), %r8
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rax
	movq	%rax, %rcx
	imulq	$1717986919, %rax, %rax
	movl	%ecx, %edx
	sarl	$31, %edx
	sarq	$34, %rax
	subl	%edx, %eax
	leal	(%rax,%rax,4), %edx
	movl	%eax, %esi
	movl	%ecx, %eax
	addl	%edx, %edx
	subl	%edx, %eax
	je	.L2
	movl	$10, %edx
	leal	5(%rsi,%rsi,4), %ecx
	subl	%eax, %edx
	addl	%ecx, %ecx
	movl	%edx, %eax
.L2:
	movslq	4(%rsp), %rdx
	movq	%rdx, %rsi
	imulq	$1717986919, %rdx, %rdx
	movl	%esi, %edi
	leal	(%rcx,%rsi), %r9d
	sarl	$31, %edi
	sarq	$34, %rdx
	subl	%edi, %edx
	leal	(%rdx,%rdx,4), %edi
	movl	%edx, %r8d
	addl	%edi, %edi
	subl	%edi, %esi
	movl	%esi, %edx
	je	.L4
	movl	$10, %esi
	subl	%edx, %esi
	leal	5(%r8,%r8,4), %edx
	cmpl	%esi, %eax
	leal	(%rcx,%rdx,2), %r9d
	cmovl	%esi, %eax
.L4:
	movslq	8(%rsp), %rdx
	movq	%rdx, %rcx
	imulq	$1717986919, %rdx, %rdx
	movl	%ecx, %esi
	leal	(%r9,%rcx), %r8d
	sarl	$31, %esi
	sarq	$34, %rdx
	subl	%esi, %edx
	leal	(%rdx,%rdx,4), %esi
	movl	%edx, %edi
	addl	%esi, %esi
	subl	%esi, %ecx
	movl	%ecx, %edx
	je	.L6
	movl	$10, %ecx
	subl	%edx, %ecx
	leal	5(%rdi,%rdi,4), %edx
	cmpl	%ecx, %eax
	leal	(%r9,%rdx,2), %r8d
	cmovl	%ecx, %eax
.L6:
	movslq	12(%rsp), %rdx
	movq	%rdx, %rcx
	imulq	$1717986919, %rdx, %rdx
	movl	%ecx, %esi
	leal	(%r8,%rcx), %r9d
	sarl	$31, %esi
	sarq	$34, %rdx
	subl	%esi, %edx
	leal	(%rdx,%rdx,4), %esi
	movl	%edx, %edi
	addl	%esi, %esi
	subl	%esi, %ecx
	movl	%ecx, %edx
	je	.L8
	movl	$10, %ecx
	subl	%edx, %ecx
	leal	5(%rdi,%rdi,4), %edx
	cmpl	%ecx, %eax
	leal	(%r8,%rdx,2), %r9d
	cmovl	%ecx, %eax
.L8:
	movslq	16(%rsp), %rdx
	movq	%rdx, %rcx
	imulq	$1717986919, %rdx, %rdx
	movl	%ecx, %esi
	sarl	$31, %esi
	sarq	$34, %rdx
	subl	%esi, %edx
	leal	(%rdx,%rdx,4), %esi
	movl	%edx, %edi
	movl	%ecx, %edx
	addl	%esi, %esi
	subl	%esi, %edx
	je	.L20
	movl	$10, %ecx
	subl	%edx, %ecx
	leal	5(%rdi,%rdi,4), %edx
	cmpl	%ecx, %eax
	leal	(%r9,%rdx,2), %edx
	cmovl	%ecx, %eax
.L10:
	subl	%eax, %edx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	leal	(%rcx,%r9), %edx
	jmp	.L10
.L21:
	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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d%d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	8(%rsp), %rcx
	leaq	4(%rsp), %rdx
	leaq	16(%rsp), %r9
	leaq	12(%rsp), %r8
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rax
	movq	%rax, %rcx
	imulq	$1717986919, %rax, %rax
	movl	%ecx, %edx
	sarl	$31, %edx
	sarq	$34, %rax
	subl	%edx, %eax
	leal	(%rax,%rax,4), %edx
	movl	%eax, %esi
	movl	%ecx, %eax
	addl	%edx, %edx
	subl	%edx, %eax
	je	.L2
	movl	$10, %edx
	leal	5(%rsi,%rsi,4), %ecx
	subl	%eax, %edx
	addl	%ecx, %ecx
	movl	%edx, %eax
.L2:
	movslq	4(%rsp), %rdx
	movq	%rdx, %rsi
	imulq	$1717986919, %rdx, %rdx
	movl	%esi, %edi
	leal	(%rcx,%rsi), %r9d
	sarl	$31, %edi
	sarq	$34, %rdx
	subl	%edi, %edx
	leal	(%rdx,%rdx,4), %edi
	movl	%edx, %r8d
	addl	%edi, %edi
	subl	%edi, %esi
	movl	%esi, %edx
	je	.L4
	movl	$10, %esi
	subl	%edx, %esi
	leal	5(%r8,%r8,4), %edx
	cmpl	%esi, %eax
	leal	(%rcx,%rdx,2), %r9d
	cmovl	%esi, %eax
.L4:
	movslq	8(%rsp), %rdx
	movq	%rdx, %rcx
	imulq	$1717986919, %rdx, %rdx
	movl	%ecx, %esi
	leal	(%r9,%rcx), %r8d
	sarl	$31, %esi
	sarq	$34, %rdx
	subl	%esi, %edx
	leal	(%rdx,%rdx,4), %esi
	movl	%edx, %edi
	addl	%esi, %esi
	subl	%esi, %ecx
	movl	%ecx, %edx
	je	.L6
	movl	$10, %ecx
	subl	%edx, %ecx
	leal	5(%rdi,%rdi,4), %edx
	cmpl	%ecx, %eax
	leal	(%r9,%rdx,2), %r8d
	cmovl	%ecx, %eax
.L6:
	movslq	12(%rsp), %rdx
	movq	%rdx, %rcx
	imulq	$1717986919, %rdx, %rdx
	movl	%ecx, %esi
	leal	(%r8,%rcx), %r9d
	sarl	$31, %esi
	sarq	$34, %rdx
	subl	%esi, %edx
	leal	(%rdx,%rdx,4), %esi
	movl	%edx, %edi
	addl	%esi, %esi
	subl	%esi, %ecx
	movl	%ecx, %edx
	je	.L8
	movl	$10, %ecx
	subl	%edx, %ecx
	leal	5(%rdi,%rdi,4), %edx
	cmpl	%ecx, %eax
	leal	(%r8,%rdx,2), %r9d
	cmovl	%ecx, %eax
.L8:
	movslq	16(%rsp), %rdx
	movq	%rdx, %rcx
	imulq	$1717986919, %rdx, %rdx
	movl	%ecx, %esi
	sarl	$31, %esi
	sarq	$34, %rdx
	subl	%esi, %edx
	leal	(%rdx,%rdx,4), %esi
	movl	%edx, %edi
	movl	%ecx, %edx
	addl	%esi, %esi
	subl	%esi, %edx
	je	.L20
	movl	$10, %ecx
	subl	%edx, %ecx
	leal	5(%rdi,%rdi,4), %edx
	cmpl	%ecx, %eax
	leal	(%r9,%rdx,2), %edx
	cmovl	%ecx, %eax
.L10:
	subl	%eax, %edx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	leal	(%rcx,%r9), %edx
	jmp	.L10
.L21:
	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:

#include"stdio.h"
int main(){
    int A[5],min=0,res=0,i;
    scanf("%d%d%d%d%d",&A[0],&A[1],&A[2],&A[3],&A[4]);
    for(i=0;i<5;i++){
        if(A[i]%10==0){
            res+=A[i];
            continue;
        }
        if(min<10-A[i]%10) min=10-A[i]%10;
        res+=(A[i]/10)*10+10;
    }
    printf("%d",res-min);
    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(){
    int A[5],min=0,res=0,i;
    scanf("%d%d%d%d%d",&A[0],&A[1],&A[2],&A[3],&A[4]);
    for(i=0;i<5;i++){
        if(A[i]%10==0){
            res+=A[i];
            continue;
        }
        if(min<10-A[i]%10) min=10-A[i]%10;
        res+=(A[i]/10)*10+10;
    }
    printf("%d",res-min);
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d%d%d"
.LC1:
	.string	"%d"
	.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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -44(%rbp)
	movl	$0, -40(%rbp)
	leaq	-32(%rbp), %rax
	leaq	16(%rax), %rdi
	leaq	-32(%rbp), %rax
	leaq	12(%rax), %rsi
	leaq	-32(%rbp), %rax
	leaq	8(%rax), %rcx
	leaq	-32(%rbp), %rax
	leaq	4(%rax), %rdx
	leaq	-32(%rbp), %rax
	movq	%rdi, %r9
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L2
.L6:
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	jne	.L3
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	addl	%eax, -40(%rbp)
	jmp	.L4
.L3:
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	$10, %eax
	subl	%ecx, %eax
	cmpl	%eax, -44(%rbp)
	jge	.L5
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	$10, %eax
	subl	%ecx, %eax
	movl	%eax, -44(%rbp)
.L5:
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	leal	1(%rax), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	addl	%eax, -40(%rbp)
.L4:
	addl	$1, -36(%rbp)
.L2:
	cmpl	$4, -36(%rbp)
	jle	.L6
	movl	-40(%rbp), %eax
	subl	-44(%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	.L8
	call	__stack_chk_fail@PLT
.L8:
	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%d%d%d%d"
.LC1:
	.string	"%d"
	.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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -44(%rbp)
	movl	$0, -40(%rbp)
	leaq	-32(%rbp), %rax
	leaq	16(%rax), %rdi
	leaq	-32(%rbp), %rax
	leaq	12(%rax), %rsi
	leaq	-32(%rbp), %rax
	leaq	8(%rax), %rcx
	leaq	-32(%rbp), %rax
	leaq	4(%rax), %rdx
	leaq	-32(%rbp), %rax
	movq	%rdi, %r9
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L2
.L6:
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	jne	.L3
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	addl	%eax, -40(%rbp)
	jmp	.L4
.L3:
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	$10, %eax
	subl	%ecx, %eax
	cmpl	%eax, -44(%rbp)
	jge	.L5
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	$10, %eax
	subl	%ecx, %eax
	movl	%eax, -44(%rbp)
.L5:
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	leal	1(%rax), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	addl	%eax, -40(%rbp)
.L4:
	addl	$1, -36(%rbp)
.L2:
	cmpl	$4, -36(%rbp)
	jle	.L6
	movl	-40(%rbp), %eax
	subl	-44(%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	.L8
	call	__stack_chk_fail@PLT
.L8:
	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:
