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 = 1;
	int i;
	int array;
	int sort[8];
	
	while (1){
	scanf("%d", &n);
	if (n == 0){
		break;
	}
	for (i = 0; i < 8; i++){
		sort[i] = 0;
	}
	
	for (i = 0; i < n; i++){
		scanf("%d", &array);
		if (array >= 60){
			sort[7]++;
		}
		else if (array >= 50){
			sort[6]++;
		}
		else if (array >= 40){
			sort[5]++;
		}
		else if (array >= 30){
			sort[4]++;
		}
		else if (array >= 20){
			sort[3]++;
		}
		else if (array >= 10){
			sort[2]++;
		}
		else if (array < 10){
			sort[1]++;
		}
	}
	for (i = 1; i < 8; i++){
		printf("%d\n", sort[i]);
	}
	}
	return (0);
}```

Assembly Code:

```assembly
	.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	%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
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	movl	$1, 8(%rsp)
	leaq	8(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	pxor	%xmm0, %xmm0
	movl	$0, %ebx
	leaq	12(%rsp), %r12
	movq	$0, 36(%rsp)
	movl	$0, 44(%rsp)
	movl	$0, %r15d
	movups	%xmm0, 20(%rsp)
	jg	.L3
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L21:
	addl	$1, 44(%rsp)
.L6:
	addl	$1, %ebx
	cmpl	%ebx, 8(%rsp)
	jle	.L12
.L3:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	cmpl	$59, %eax
	jg	.L21
	cmpl	$49, %eax
	jle	.L7
	addl	$1, 40(%rsp)
	addl	$1, %ebx
	cmpl	%ebx, 8(%rsp)
	jg	.L3
.L12:
	leaq	20(%rsp), %rbx
	leaq	48(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movl	(%rbx), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %r12
	jne	.L4
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$39, %eax
	jle	.L8
	addl	$1, 36(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	$29, %eax
	jle	.L9
	addl	$1, 32(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	$19, %eax
	jle	.L10
	addl	$1, 28(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	$9, %eax
	jle	.L11
	addl	$1, 24(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	addl	$1, %r15d
	movl	%r15d, 20(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$72, %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
.L22:
	.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\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
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	movl	$1, 8(%rsp)
	leaq	8(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	pxor	%xmm0, %xmm0
	movl	$0, %ebx
	leaq	12(%rsp), %r12
	movq	$0, 36(%rsp)
	movl	$0, 44(%rsp)
	movl	$0, %r15d
	movups	%xmm0, 20(%rsp)
	jg	.L3
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L21:
	addl	$1, 44(%rsp)
.L6:
	addl	$1, %ebx
	cmpl	%ebx, 8(%rsp)
	jle	.L12
.L3:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	cmpl	$59, %eax
	jg	.L21
	cmpl	$49, %eax
	jle	.L7
	addl	$1, 40(%rsp)
	addl	$1, %ebx
	cmpl	%ebx, 8(%rsp)
	jg	.L3
.L12:
	leaq	20(%rsp), %rbx
	leaq	48(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movl	(%rbx), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %r12
	jne	.L4
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$39, %eax
	jle	.L8
	addl	$1, 36(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	$29, %eax
	jle	.L9
	addl	$1, 32(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	$19, %eax
	jle	.L10
	addl	$1, 28(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	$9, %eax
	jle	.L11
	addl	$1, 24(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	addl	$1, %r15d
	movl	%r15d, 20(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$72, %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
.L22:
	.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\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
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	movl	$1, 8(%rsp)
	leaq	8(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	pxor	%xmm0, %xmm0
	movl	$0, %ebx
	leaq	12(%rsp), %r12
	movq	$0, 36(%rsp)
	movl	$0, 44(%rsp)
	movl	$0, %r15d
	movups	%xmm0, 20(%rsp)
	jg	.L3
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L21:
	addl	$1, 44(%rsp)
.L6:
	addl	$1, %ebx
	cmpl	%ebx, 8(%rsp)
	jle	.L12
.L3:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	cmpl	$59, %eax
	jg	.L21
	cmpl	$49, %eax
	jle	.L7
	addl	$1, 40(%rsp)
	addl	$1, %ebx
	cmpl	%ebx, 8(%rsp)
	jg	.L3
.L12:
	leaq	20(%rsp), %rbx
	leaq	48(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movl	(%rbx), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %r12
	jne	.L4
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$39, %eax
	jle	.L8
	addl	$1, 36(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	$29, %eax
	jle	.L9
	addl	$1, 32(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	$19, %eax
	jle	.L10
	addl	$1, 28(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	$9, %eax
	jle	.L11
	addl	$1, 24(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	addl	$1, %r15d
	movl	%r15d, 20(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$72, %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
.L22:
	.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 = 1;
	int i;
	int array;
	int sort[8];
	
	while (1){
	scanf("%d", &n);
	if (n == 0){
		break;
	}
	for (i = 0; i < 8; i++){
		sort[i] = 0;
	}
	
	for (i = 0; i < n; i++){
		scanf("%d", &array);
		if (array >= 60){
			sort[7]++;
		}
		else if (array >= 50){
			sort[6]++;
		}
		else if (array >= 40){
			sort[5]++;
		}
		else if (array >= 30){
			sort[4]++;
		}
		else if (array >= 20){
			sort[3]++;
		}
		else if (array >= 10){
			sort[2]++;
		}
		else if (array < 10){
			sort[1]++;
		}
	}
	for (i = 1; i < 8; i++){
		printf("%d\n", sort[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(void)
{
	int n = 1;
	int i;
	int array;
	int sort[8];
	
	while (1){
	scanf("%d", &n);
	if (n == 0){
		break;
	}
	for (i = 0; i < 8; i++){
		sort[i] = 0;
	}
	
	for (i = 0; i < n; i++){
		scanf("%d", &array);
		if (array >= 60){
			sort[7]++;
		}
		else if (array >= 50){
			sort[6]++;
		}
		else if (array >= 40){
			sort[5]++;
		}
		else if (array >= 30){
			sort[4]++;
		}
		else if (array >= 20){
			sort[3]++;
		}
		else if (array >= 10){
			sort[2]++;
		}
		else if (array < 10){
			sort[1]++;
		}
	}
	for (i = 1; i < 8; i++){
		printf("%d\n", sort[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:

8
71
34
65
11
41
39
3
5
4
67
81
78
65
0
 8
71
34
65
11
12
39
6
5
4
67
81
78
65
0
 8
71
34
65
0
41
39
3
5
4
67
81
78
65
0
 8
71
34
65
11
12
39
6
5
4
16
81
78
65
0
 8
71
34
65
0
41
39
3
5
4
67
81
78
21
0
 8
71
34
65
11
1
39
6
5
4
16
81
78
65
0
 8
71
67
65
0
41
39
3
5
4
67
81
78
21
0
 8
71
34
65
11
37
39
6
5
4
67
81
78
65
0
 8
71
34
65
0
41
39
3
5
4
67
13
78
21
0
 8
71
67
65
0
41
7
3
5
4
67
81
78
21
0

2
1
0
2
1
0
2
0
0
0
0
0
0
4
 2
2
0
2
0
0
2
0
0
0
0
0
0
4
 3
0
0
2
1
0
2
0
0
0
0
0
0
4
 2
2
0
2
0
0
2
0
1
0
0
0
0
3
 3
0
0
2
1
0
2
0
0
1
0
0
0
3
 3
1
0
2
0
0
2
0
1
0
0
0
0
3
 3
0
0
1
1
0
3
0
0
1
0
0
0
3
 2
1
0
3
0
0
2
0
0
0
0
0
0
4
 3
0
0
2
1
0
2
0
1
1
0
0
0
2
 4
0
0
0
1
0
3
0
0
1
0
0
0
3

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 = 1;
	int i;
	int array;
	int sort[8];
	
	while (1){
	scanf("%d", &n);
	if (n == 0){
		break;
	}
	for (i = 0; i < 8; i++){
		sort[i] = 0;
	}
	
	for (i = 0; i < n; i++){
		scanf("%d", &array);
		if (array >= 60){
			sort[7]++;
		}
		else if (array >= 50){
			sort[6]++;
		}
		else if (array >= 40){
			sort[5]++;
		}
		else if (array >= 30){
			sort[4]++;
		}
		else if (array >= 20){
			sort[3]++;
		}
		else if (array >= 10){
			sort[2]++;
		}
		else if (array < 10){
			sort[1]++;
		}
	}
	for (i = 1; i < 8; i++){
		printf("%d\n", sort[i]);
	}
	}
	return (0);
}```

Assembly Code:

```assembly
	.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	%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
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	movl	$1, 8(%rsp)
	leaq	8(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	pxor	%xmm0, %xmm0
	movl	$0, %ebx
	leaq	12(%rsp), %r12
	movq	$0, 36(%rsp)
	movl	$0, 44(%rsp)
	movl	$0, %r15d
	movups	%xmm0, 20(%rsp)
	jg	.L3
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L21:
	addl	$1, 44(%rsp)
.L6:
	addl	$1, %ebx
	cmpl	%ebx, 8(%rsp)
	jle	.L12
.L3:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	cmpl	$59, %eax
	jg	.L21
	cmpl	$49, %eax
	jle	.L7
	addl	$1, 40(%rsp)
	addl	$1, %ebx
	cmpl	%ebx, 8(%rsp)
	jg	.L3
.L12:
	leaq	20(%rsp), %rbx
	leaq	48(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movl	(%rbx), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %r12
	jne	.L4
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$39, %eax
	jle	.L8
	addl	$1, 36(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	$29, %eax
	jle	.L9
	addl	$1, 32(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	$19, %eax
	jle	.L10
	addl	$1, 28(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	$9, %eax
	jle	.L11
	addl	$1, 24(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	addl	$1, %r15d
	movl	%r15d, 20(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$72, %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
.L22:
	.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\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
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	movl	$1, 8(%rsp)
	leaq	8(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	pxor	%xmm0, %xmm0
	movl	$0, %ebx
	leaq	12(%rsp), %r12
	movq	$0, 36(%rsp)
	movl	$0, 44(%rsp)
	movl	$0, %r15d
	movups	%xmm0, 20(%rsp)
	jg	.L3
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L21:
	addl	$1, 44(%rsp)
.L6:
	addl	$1, %ebx
	cmpl	%ebx, 8(%rsp)
	jle	.L12
.L3:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	cmpl	$59, %eax
	jg	.L21
	cmpl	$49, %eax
	jle	.L7
	addl	$1, 40(%rsp)
	addl	$1, %ebx
	cmpl	%ebx, 8(%rsp)
	jg	.L3
.L12:
	leaq	20(%rsp), %rbx
	leaq	48(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movl	(%rbx), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %r12
	jne	.L4
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$39, %eax
	jle	.L8
	addl	$1, 36(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	$29, %eax
	jle	.L9
	addl	$1, 32(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	$19, %eax
	jle	.L10
	addl	$1, 28(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	$9, %eax
	jle	.L11
	addl	$1, 24(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	addl	$1, %r15d
	movl	%r15d, 20(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$72, %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
.L22:
	.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:
```