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(void){
	int N,i,min=101;
	int s[100];
	int point=0;
	
	scanf("%d",&N);
	
	i=0;
	
	while(i<N){
		scanf("%d",&s[i]);
		if(s[i]%10!=0 && min>s[i]){
			min=s[i];
		}
		i++;
	}       
	
	for(i=0;i<N;i++){
		point+=s[i];
	}
	
	if(point%10!=0){
		printf("%d\n",point);
	}else if(min!=101){
		printf("%d\n",point-min);
	}else{
		printf("0\n");
	}
	
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"0"
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$432, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebp, %ebp
	movl	$101, %r12d
	leaq	16(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	(%r14,%rbp,4), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	movq	%r14, %r13
	call	__isoc99_scanf@PLT
	movl	(%r14,%rbp,4), %eax
	imull	$-858993459, %eax, %edx
	addl	$429496728, %edx
	rorl	%edx
	cmpl	%eax, %r12d
	cmovle	%r12d, %eax
	cmpl	$429496728, %edx
	cmova	%eax, %r12d
	movl	12(%rsp), %eax
	addq	$1, %rbp
	cmpl	%ebp, %eax
	jg	.L4
	testl	%eax, %eax
	jle	.L11
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L12
	movl	%eax, %edx
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	leal	-1(%rdx), %ecx
	leaq	16(%r14), %rdx
	salq	$4, %rcx
	addq	%rdx, %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L22:
	addq	$16, %rdx
.L7:
	paddd	0(%r13), %xmm0
	movq	%rdx, %r13
	cmpq	%rcx, %rdx
	jne	.L22
	movdqa	%xmm0, %xmm1
	movl	%eax, %ecx
	psrldq	$8, %xmm1
	andl	$-4, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testb	$3, %al
	je	.L8
.L6:
	movslq	%ecx, %rsi
	addl	16(%rsp,%rsi,4), %edx
	leal	1(%rcx), %esi
	cmpl	%esi, %eax
	jle	.L8
	movslq	%esi, %rsi
	addl	$2, %ecx
	addl	16(%rsp,%rsi,4), %edx
	cmpl	%ecx, %eax
	jle	.L8
	movslq	%ecx, %rcx
	addl	16(%rsp,%rcx,4), %edx
.L8:
	imull	$-858993459, %edx, %eax
	addl	$429496728, %eax
	rorl	%eax
	cmpl	$429496728, %eax
	ja	.L20
.L5:
	cmpl	$101, %r12d
	je	.L2
	subl	%r12d, %edx
.L20:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$432, %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
.L2:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L11:
	xorl	%edx, %edx
	jmp	.L5
.L12:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L6
.L23:
	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\n"
.LC2:
	.string	"0"
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$432, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebp, %ebp
	movl	$101, %r12d
	leaq	16(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	(%r14,%rbp,4), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	movq	%r14, %r13
	call	__isoc99_scanf@PLT
	movl	(%r14,%rbp,4), %eax
	imull	$-858993459, %eax, %edx
	addl	$429496728, %edx
	rorl	%edx
	cmpl	%eax, %r12d
	cmovle	%r12d, %eax
	cmpl	$429496728, %edx
	cmova	%eax, %r12d
	movl	12(%rsp), %eax
	addq	$1, %rbp
	cmpl	%ebp, %eax
	jg	.L4
	testl	%eax, %eax
	jle	.L11
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L12
	movl	%eax, %edx
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	leal	-1(%rdx), %ecx
	leaq	16(%r14), %rdx
	salq	$4, %rcx
	addq	%rdx, %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L22:
	addq	$16, %rdx
.L7:
	paddd	0(%r13), %xmm0
	movq	%rdx, %r13
	cmpq	%rcx, %rdx
	jne	.L22
	movdqa	%xmm0, %xmm1
	movl	%eax, %ecx
	psrldq	$8, %xmm1
	andl	$-4, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testb	$3, %al
	je	.L8
.L6:
	movslq	%ecx, %rsi
	addl	16(%rsp,%rsi,4), %edx
	leal	1(%rcx), %esi
	cmpl	%esi, %eax
	jle	.L8
	movslq	%esi, %rsi
	addl	$2, %ecx
	addl	16(%rsp,%rsi,4), %edx
	cmpl	%ecx, %eax
	jle	.L8
	movslq	%ecx, %rcx
	addl	16(%rsp,%rcx,4), %edx
.L8:
	imull	$-858993459, %edx, %eax
	addl	$429496728, %eax
	rorl	%eax
	cmpl	$429496728, %eax
	ja	.L20
.L5:
	cmpl	$101, %r12d
	je	.L2
	subl	%r12d, %edx
.L20:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$432, %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
.L2:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L11:
	xorl	%edx, %edx
	jmp	.L5
.L12:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L6
.L23:
	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\n"
.LC2:
	.string	"0"
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$432, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebp, %ebp
	movl	$101, %r12d
	leaq	16(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	(%r14,%rbp,4), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	movq	%r14, %r13
	call	__isoc99_scanf@PLT
	movl	(%r14,%rbp,4), %eax
	imull	$-858993459, %eax, %edx
	addl	$429496728, %edx
	rorl	%edx
	cmpl	%eax, %r12d
	cmovle	%r12d, %eax
	cmpl	$429496728, %edx
	cmova	%eax, %r12d
	movl	12(%rsp), %eax
	addq	$1, %rbp
	cmpl	%ebp, %eax
	jg	.L4
	testl	%eax, %eax
	jle	.L11
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L12
	movl	%eax, %edx
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	leal	-1(%rdx), %ecx
	leaq	16(%r14), %rdx
	salq	$4, %rcx
	addq	%rdx, %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L22:
	addq	$16, %rdx
.L7:
	paddd	0(%r13), %xmm0
	movq	%rdx, %r13
	cmpq	%rcx, %rdx
	jne	.L22
	movdqa	%xmm0, %xmm1
	movl	%eax, %ecx
	psrldq	$8, %xmm1
	andl	$-4, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testb	$3, %al
	je	.L8
.L6:
	movslq	%ecx, %rsi
	addl	16(%rsp,%rsi,4), %edx
	leal	1(%rcx), %esi
	cmpl	%esi, %eax
	jle	.L8
	movslq	%esi, %rsi
	addl	$2, %ecx
	addl	16(%rsp,%rsi,4), %edx
	cmpl	%ecx, %eax
	jle	.L8
	movslq	%ecx, %rcx
	addl	16(%rsp,%rcx,4), %edx
.L8:
	imull	$-858993459, %edx, %eax
	addl	$429496728, %eax
	rorl	%eax
	cmpl	$429496728, %eax
	ja	.L20
.L5:
	cmpl	$101, %r12d
	je	.L2
	subl	%r12d, %edx
.L20:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$432, %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
.L2:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L11:
	xorl	%edx, %edx
	jmp	.L5
.L12:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L6
.L23:
	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(void){
	int N,i,min=101;
	int s[100];
	int point=0;
	
	scanf("%d",&N);
	
	i=0;
	
	while(i<N){
		scanf("%d",&s[i]);
		if(s[i]%10!=0 && min>s[i]){
			min=s[i];
		}
		i++;
	}       
	
	for(i=0;i<N;i++){
		point+=s[i];
	}
	
	if(point%10!=0){
		printf("%d\n",point);
	}else if(min!=101){
		printf("%d\n",point-min);
	}else{
		printf("0\n");
	}
	
	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(void){
	int N,i,min=101;
	int s[100];
	int point=0;
	
	scanf("%d",&N);
	
	i=0;
	
	while(i<N){
		scanf("%d",&s[i]);
		if(s[i]%10!=0 && min>s[i]){
			min=s[i];
		}
		i++;
	}       
	
	for(i=0;i<N;i++){
		point+=s[i];
	}
	
	if(point%10!=0){
		printf("%d\n",point);
	}else if(min!=101){
		printf("%d\n",point-min);
	}else{
		printf("0\n");
	}
	
	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:

3
5
10
15

25

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(void){
	int N,i,min=101;
	int s[100];
	int point=0;
	
	scanf("%d",&N);
	
	i=0;
	
	while(i<N){
		scanf("%d",&s[i]);
		if(s[i]%10!=0 && min>s[i]){
			min=s[i];
		}
		i++;
	}       
	
	for(i=0;i<N;i++){
		point+=s[i];
	}
	
	if(point%10!=0){
		printf("%d\n",point);
	}else if(min!=101){
		printf("%d\n",point-min);
	}else{
		printf("0\n");
	}
	
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"0"
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$432, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebp, %ebp
	movl	$101, %r12d
	leaq	16(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	(%r14,%rbp,4), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	movq	%r14, %r13
	call	__isoc99_scanf@PLT
	movl	(%r14,%rbp,4), %eax
	imull	$-858993459, %eax, %edx
	addl	$429496728, %edx
	rorl	%edx
	cmpl	%eax, %r12d
	cmovle	%r12d, %eax
	cmpl	$429496728, %edx
	cmova	%eax, %r12d
	movl	12(%rsp), %eax
	addq	$1, %rbp
	cmpl	%ebp, %eax
	jg	.L4
	testl	%eax, %eax
	jle	.L11
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L12
	movl	%eax, %edx
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	leal	-1(%rdx), %ecx
	leaq	16(%r14), %rdx
	salq	$4, %rcx
	addq	%rdx, %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L22:
	addq	$16, %rdx
.L7:
	paddd	0(%r13), %xmm0
	movq	%rdx, %r13
	cmpq	%rcx, %rdx
	jne	.L22
	movdqa	%xmm0, %xmm1
	movl	%eax, %ecx
	psrldq	$8, %xmm1
	andl	$-4, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testb	$3, %al
	je	.L8
.L6:
	movslq	%ecx, %rsi
	addl	16(%rsp,%rsi,4), %edx
	leal	1(%rcx), %esi
	cmpl	%esi, %eax
	jle	.L8
	movslq	%esi, %rsi
	addl	$2, %ecx
	addl	16(%rsp,%rsi,4), %edx
	cmpl	%ecx, %eax
	jle	.L8
	movslq	%ecx, %rcx
	addl	16(%rsp,%rcx,4), %edx
.L8:
	imull	$-858993459, %edx, %eax
	addl	$429496728, %eax
	rorl	%eax
	cmpl	$429496728, %eax
	ja	.L20
.L5:
	cmpl	$101, %r12d
	je	.L2
	subl	%r12d, %edx
.L20:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$432, %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
.L2:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L11:
	xorl	%edx, %edx
	jmp	.L5
.L12:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L6
.L23:
	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\n"
.LC2:
	.string	"0"
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$432, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebp, %ebp
	movl	$101, %r12d
	leaq	16(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	(%r14,%rbp,4), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	movq	%r14, %r13
	call	__isoc99_scanf@PLT
	movl	(%r14,%rbp,4), %eax
	imull	$-858993459, %eax, %edx
	addl	$429496728, %edx
	rorl	%edx
	cmpl	%eax, %r12d
	cmovle	%r12d, %eax
	cmpl	$429496728, %edx
	cmova	%eax, %r12d
	movl	12(%rsp), %eax
	addq	$1, %rbp
	cmpl	%ebp, %eax
	jg	.L4
	testl	%eax, %eax
	jle	.L11
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L12
	movl	%eax, %edx
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	leal	-1(%rdx), %ecx
	leaq	16(%r14), %rdx
	salq	$4, %rcx
	addq	%rdx, %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L22:
	addq	$16, %rdx
.L7:
	paddd	0(%r13), %xmm0
	movq	%rdx, %r13
	cmpq	%rcx, %rdx
	jne	.L22
	movdqa	%xmm0, %xmm1
	movl	%eax, %ecx
	psrldq	$8, %xmm1
	andl	$-4, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testb	$3, %al
	je	.L8
.L6:
	movslq	%ecx, %rsi
	addl	16(%rsp,%rsi,4), %edx
	leal	1(%rcx), %esi
	cmpl	%esi, %eax
	jle	.L8
	movslq	%esi, %rsi
	addl	$2, %ecx
	addl	16(%rsp,%rsi,4), %edx
	cmpl	%ecx, %eax
	jle	.L8
	movslq	%ecx, %rcx
	addl	16(%rsp,%rcx,4), %edx
.L8:
	imull	$-858993459, %edx, %eax
	addl	$429496728, %eax
	rorl	%eax
	cmpl	$429496728, %eax
	ja	.L20
.L5:
	cmpl	$101, %r12d
	je	.L2
	subl	%r12d, %edx
.L20:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$432, %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
.L2:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L11:
	xorl	%edx, %edx
	jmp	.L5
.L12:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L6
.L23:
	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:
```