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;
    int s;
    int sum=0;
    int min=100;
    int i=0;
    
    
    for(;~scanf("%d",&s);){
        i&&s%10&&(min=fmin(min,s));
        i++&&(sum+=s);
        
    }
    
    
    min>=100&&(sum=min);
    printf("%d",sum%10?sum:sum-min);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.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
	movl	$100, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r13, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L14
	testl	%ebx, %ebx
	je	.L9
	movl	4(%rsp), %r15d
	imull	$-858993459, %r15d, %eax
	addl	$429496728, %eax
	rorl	%eax
	cmpl	$429496728, %eax
	jbe	.L4
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r14d, %xmm0
	cvtsi2sdl	%r15d, %xmm1
	call	fmin@PLT
	cvttsd2sil	%xmm0, %r14d
.L4:
	addl	$1, %ebx
	addl	%r15d, %r12d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$1, %ebx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	$100, %r14d
	movq	%rbp, %rsi
	movl	$1, %edi
	cmovge	%r14d, %r12d
	imull	$-858993459, %r12d, %eax
	movl	%r12d, %edx
	subl	%r14d, %edx
	addl	$429496728, %eax
	rorl	%eax
	cmpl	$429496729, %eax
	cmovb	%edx, %r12d
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	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
.L15:
	.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"
	.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
	movl	$100, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r13, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L14
	testl	%ebx, %ebx
	je	.L9
	movl	4(%rsp), %r15d
	imull	$-858993459, %r15d, %eax
	addl	$429496728, %eax
	rorl	%eax
	cmpl	$429496728, %eax
	jbe	.L4
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r14d, %xmm0
	cvtsi2sdl	%r15d, %xmm1
	call	fmin@PLT
	cvttsd2sil	%xmm0, %r14d
.L4:
	addl	$1, %ebx
	addl	%r15d, %r12d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$1, %ebx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	$100, %r14d
	movq	%rbp, %rsi
	movl	$1, %edi
	cmovge	%r14d, %r12d
	imull	$-858993459, %r12d, %eax
	movl	%r12d, %edx
	subl	%r14d, %edx
	addl	$429496728, %eax
	rorl	%eax
	cmpl	$429496729, %eax
	cmovb	%edx, %r12d
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	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
.L15:
	.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"
	.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
	movl	$100, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r13, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L14
	testl	%ebx, %ebx
	je	.L9
	movl	4(%rsp), %r15d
	imull	$-858993459, %r15d, %eax
	addl	$429496728, %eax
	rorl	%eax
	cmpl	$429496728, %eax
	jbe	.L4
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r14d, %xmm0
	cvtsi2sdl	%r15d, %xmm1
	call	fmin@PLT
	cvttsd2sil	%xmm0, %r14d
.L4:
	addl	$1, %ebx
	addl	%r15d, %r12d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$1, %ebx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	$100, %r14d
	movq	%rbp, %rsi
	movl	$1, %edi
	cmovge	%r14d, %r12d
	imull	$-858993459, %r12d, %eax
	movl	%r12d, %edx
	subl	%r14d, %edx
	addl	$429496728, %eax
	rorl	%eax
	cmpl	$429496729, %eax
	cmovb	%edx, %r12d
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	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
.L15:
	.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(void){
    int n;
    int s;
    int sum=0;
    int min=100;
    int i=0;
    
    
    for(;~scanf("%d",&s);){
        i&&s%10&&(min=fmin(min,s));
        i++&&(sum+=s);
        
    }
    
    
    min>=100&&(sum=min);
    printf("%d",sum%10?sum:sum-min);
}
```
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;
    int s;
    int sum=0;
    int min=100;
    int i=0;
    
    
    for(;~scanf("%d",&s);){
        i&&s%10&&(min=fmin(min,s));
        i++&&(sum+=s);
        
    }
    
    
    min>=100&&(sum=min);
    printf("%d",sum%10?sum:sum-min);
}
```

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
4
10
15
 3
10
20
40
 3
5
10
12
 3
8
10
15
 3
7
20
40
 3
5
10
8
 3
1
10
15
 3
7
34
40
 3
5
10
10
 3
7
38
40

29 0 27 33 67 23 26 81 25 85
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;
    int s;
    int sum=0;
    int min=100;
    int i=0;
    
    
    for(;~scanf("%d",&s);){
        i&&s%10&&(min=fmin(min,s));
        i++&&(sum+=s);
        
    }
    
    
    min>=100&&(sum=min);
    printf("%d",sum%10?sum:sum-min);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.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
	movl	$100, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r13, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L14
	testl	%ebx, %ebx
	je	.L9
	movl	4(%rsp), %r15d
	imull	$-858993459, %r15d, %eax
	addl	$429496728, %eax
	rorl	%eax
	cmpl	$429496728, %eax
	jbe	.L4
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r14d, %xmm0
	cvtsi2sdl	%r15d, %xmm1
	call	fmin@PLT
	cvttsd2sil	%xmm0, %r14d
.L4:
	addl	$1, %ebx
	addl	%r15d, %r12d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$1, %ebx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	$100, %r14d
	movq	%rbp, %rsi
	movl	$1, %edi
	cmovge	%r14d, %r12d
	imull	$-858993459, %r12d, %eax
	movl	%r12d, %edx
	subl	%r14d, %edx
	addl	$429496728, %eax
	rorl	%eax
	cmpl	$429496729, %eax
	cmovb	%edx, %r12d
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	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
.L15:
	.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"
	.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
	movl	$100, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r13, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L14
	testl	%ebx, %ebx
	je	.L9
	movl	4(%rsp), %r15d
	imull	$-858993459, %r15d, %eax
	addl	$429496728, %eax
	rorl	%eax
	cmpl	$429496728, %eax
	jbe	.L4
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r14d, %xmm0
	cvtsi2sdl	%r15d, %xmm1
	call	fmin@PLT
	cvttsd2sil	%xmm0, %r14d
.L4:
	addl	$1, %ebx
	addl	%r15d, %r12d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$1, %ebx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	$100, %r14d
	movq	%rbp, %rsi
	movl	$1, %edi
	cmovge	%r14d, %r12d
	imull	$-858993459, %r12d, %eax
	movl	%r12d, %edx
	subl	%r14d, %edx
	addl	$429496728, %eax
	rorl	%eax
	cmpl	$429496729, %eax
	cmovb	%edx, %r12d
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	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
.L15:
	.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:
```