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 i;
	int age;
	int than_ten, ten, twen, thir, four, fif, six;
	
	while (1){
		scanf("%d", &n);
		
		if (n == 0){
			break;
		}
		
		than_ten = ten = twen = thir = four = fif = six = 0;
		
		for (i = 0; i < n; i++){
			scanf("%d", &age);
			if (age >= 0 && age < 10){
				than_ten++;
			}
			else if (age < 20){
				ten++;
			}
			else if (age < 30){
				twen++;
			}
			else if (age < 40){
				thir++;
			}
			else if (age < 50){
				four++;
			}
			else if (age < 60){
				fif++;
			}
			else if (age >= 60){
				six++;
			}
		}
		
		printf("%d\n%d\n%d\n%d\n%d\n%d\n%d\n", than_ten, ten, twen, thir, four, fif, six);
		
	}
	
	return (0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n%d\n%d\n%d\n%d\n%d\n%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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L12:
	movq	24(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movl	$0, 20(%rsp)
	movl	$0, %r14d
	movl	$0, %r13d
	movl	$0, %r12d
	movl	$0, 16(%rsp)
	movl	$0, 12(%rsp)
	movl	$0, 8(%rsp)
	jle	.L3
	xorl	%r15d, %r15d
	leaq	36(%rsp), %rbp
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %r12d
.L5:
	addl	$1, %r15d
	cmpl	%r15d, 32(%rsp)
	jle	.L3
.L11:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	cmpl	$9, %eax
	jbe	.L18
	cmpl	$19, %eax
	jg	.L6
	addl	$1, %r13d
	addl	$1, %r15d
	cmpl	%r15d, 32(%rsp)
	jg	.L11
.L3:
	subq	$8, %rsp
	.cfi_def_cfa_offset 120
	movl	%r14d, %r8d
	movl	%r13d, %ecx
	movl	%r12d, %edx
	movl	28(%rsp), %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	pushq	%rax
	.cfi_def_cfa_offset 128
	movl	32(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 136
	movl	36(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 144
	movl	40(%rsp), %r9d
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 112
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	$29, %eax
	jg	.L7
	addl	$1, %r14d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$39, %eax
	jg	.L8
	addl	$1, 8(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	$49, %eax
	jg	.L9
	addl	$1, 12(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	$59, %eax
	jg	.L10
	addl	$1, 16(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, 20(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$56, %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
.L19:
	.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%d\n%d\n%d\n%d\n%d\n%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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L12:
	movq	24(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movl	$0, 20(%rsp)
	movl	$0, %r14d
	movl	$0, %r13d
	movl	$0, %r12d
	movl	$0, 16(%rsp)
	movl	$0, 12(%rsp)
	movl	$0, 8(%rsp)
	jle	.L3
	xorl	%r15d, %r15d
	leaq	36(%rsp), %rbp
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %r12d
.L5:
	addl	$1, %r15d
	cmpl	%r15d, 32(%rsp)
	jle	.L3
.L11:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	cmpl	$9, %eax
	jbe	.L18
	cmpl	$19, %eax
	jg	.L6
	addl	$1, %r13d
	addl	$1, %r15d
	cmpl	%r15d, 32(%rsp)
	jg	.L11
.L3:
	subq	$8, %rsp
	.cfi_def_cfa_offset 120
	movl	%r14d, %r8d
	movl	%r13d, %ecx
	movl	%r12d, %edx
	movl	28(%rsp), %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	pushq	%rax
	.cfi_def_cfa_offset 128
	movl	32(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 136
	movl	36(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 144
	movl	40(%rsp), %r9d
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 112
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	$29, %eax
	jg	.L7
	addl	$1, %r14d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$39, %eax
	jg	.L8
	addl	$1, 8(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	$49, %eax
	jg	.L9
	addl	$1, 12(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	$59, %eax
	jg	.L10
	addl	$1, 16(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, 20(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$56, %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
.L19:
	.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%d\n%d\n%d\n%d\n%d\n%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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L12:
	movq	24(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movl	$0, 20(%rsp)
	movl	$0, %r14d
	movl	$0, %r13d
	movl	$0, %r12d
	movl	$0, 16(%rsp)
	movl	$0, 12(%rsp)
	movl	$0, 8(%rsp)
	jle	.L3
	xorl	%r15d, %r15d
	leaq	36(%rsp), %rbp
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %r12d
.L5:
	addl	$1, %r15d
	cmpl	%r15d, 32(%rsp)
	jle	.L3
.L11:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	cmpl	$9, %eax
	jbe	.L18
	cmpl	$19, %eax
	jg	.L6
	addl	$1, %r13d
	addl	$1, %r15d
	cmpl	%r15d, 32(%rsp)
	jg	.L11
.L3:
	subq	$8, %rsp
	.cfi_def_cfa_offset 120
	movl	%r14d, %r8d
	movl	%r13d, %ecx
	movl	%r12d, %edx
	movl	28(%rsp), %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	pushq	%rax
	.cfi_def_cfa_offset 128
	movl	32(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 136
	movl	36(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 144
	movl	40(%rsp), %r9d
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 112
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	$29, %eax
	jg	.L7
	addl	$1, %r14d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$39, %eax
	jg	.L8
	addl	$1, 8(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	$49, %eax
	jg	.L9
	addl	$1, 12(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	$59, %eax
	jg	.L10
	addl	$1, 16(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, 20(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$56, %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
.L19:
	.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 i;
	int age;
	int than_ten, ten, twen, thir, four, fif, six;
	
	while (1){
		scanf("%d", &n);
		
		if (n == 0){
			break;
		}
		
		than_ten = ten = twen = thir = four = fif = six = 0;
		
		for (i = 0; i < n; i++){
			scanf("%d", &age);
			if (age >= 0 && age < 10){
				than_ten++;
			}
			else if (age < 20){
				ten++;
			}
			else if (age < 30){
				twen++;
			}
			else if (age < 40){
				thir++;
			}
			else if (age < 50){
				four++;
			}
			else if (age < 60){
				fif++;
			}
			else if (age >= 60){
				six++;
			}
		}
		
		printf("%d\n%d\n%d\n%d\n%d\n%d\n%d\n", than_ten, ten, twen, thir, four, fif, six);
		
	}
	
	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;
	int i;
	int age;
	int than_ten, ten, twen, thir, four, fif, six;
	
	while (1){
		scanf("%d", &n);
		
		if (n == 0){
			break;
		}
		
		than_ten = ten = twen = thir = four = fif = six = 0;
		
		for (i = 0; i < n; i++){
			scanf("%d", &age);
			if (age >= 0 && age < 10){
				than_ten++;
			}
			else if (age < 20){
				ten++;
			}
			else if (age < 30){
				twen++;
			}
			else if (age < 40){
				thir++;
			}
			else if (age < 50){
				four++;
			}
			else if (age < 60){
				fif++;
			}
			else if (age >= 60){
				six++;
			}
		}
		
		printf("%d\n%d\n%d\n%d\n%d\n%d\n%d\n", than_ten, ten, twen, thir, four, fif, six);
		
	}
	
	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;
	int i;
	int age;
	int than_ten, ten, twen, thir, four, fif, six;
	
	while (1){
		scanf("%d", &n);
		
		if (n == 0){
			break;
		}
		
		than_ten = ten = twen = thir = four = fif = six = 0;
		
		for (i = 0; i < n; i++){
			scanf("%d", &age);
			if (age >= 0 && age < 10){
				than_ten++;
			}
			else if (age < 20){
				ten++;
			}
			else if (age < 30){
				twen++;
			}
			else if (age < 40){
				thir++;
			}
			else if (age < 50){
				four++;
			}
			else if (age < 60){
				fif++;
			}
			else if (age >= 60){
				six++;
			}
		}
		
		printf("%d\n%d\n%d\n%d\n%d\n%d\n%d\n", than_ten, ten, twen, thir, four, fif, six);
		
	}
	
	return (0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n%d\n%d\n%d\n%d\n%d\n%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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L12:
	movq	24(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movl	$0, 20(%rsp)
	movl	$0, %r14d
	movl	$0, %r13d
	movl	$0, %r12d
	movl	$0, 16(%rsp)
	movl	$0, 12(%rsp)
	movl	$0, 8(%rsp)
	jle	.L3
	xorl	%r15d, %r15d
	leaq	36(%rsp), %rbp
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %r12d
.L5:
	addl	$1, %r15d
	cmpl	%r15d, 32(%rsp)
	jle	.L3
.L11:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	cmpl	$9, %eax
	jbe	.L18
	cmpl	$19, %eax
	jg	.L6
	addl	$1, %r13d
	addl	$1, %r15d
	cmpl	%r15d, 32(%rsp)
	jg	.L11
.L3:
	subq	$8, %rsp
	.cfi_def_cfa_offset 120
	movl	%r14d, %r8d
	movl	%r13d, %ecx
	movl	%r12d, %edx
	movl	28(%rsp), %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	pushq	%rax
	.cfi_def_cfa_offset 128
	movl	32(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 136
	movl	36(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 144
	movl	40(%rsp), %r9d
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 112
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	$29, %eax
	jg	.L7
	addl	$1, %r14d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$39, %eax
	jg	.L8
	addl	$1, 8(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	$49, %eax
	jg	.L9
	addl	$1, 12(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	$59, %eax
	jg	.L10
	addl	$1, 16(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, 20(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$56, %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
.L19:
	.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%d\n%d\n%d\n%d\n%d\n%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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L12:
	movq	24(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movl	$0, 20(%rsp)
	movl	$0, %r14d
	movl	$0, %r13d
	movl	$0, %r12d
	movl	$0, 16(%rsp)
	movl	$0, 12(%rsp)
	movl	$0, 8(%rsp)
	jle	.L3
	xorl	%r15d, %r15d
	leaq	36(%rsp), %rbp
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %r12d
.L5:
	addl	$1, %r15d
	cmpl	%r15d, 32(%rsp)
	jle	.L3
.L11:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	cmpl	$9, %eax
	jbe	.L18
	cmpl	$19, %eax
	jg	.L6
	addl	$1, %r13d
	addl	$1, %r15d
	cmpl	%r15d, 32(%rsp)
	jg	.L11
.L3:
	subq	$8, %rsp
	.cfi_def_cfa_offset 120
	movl	%r14d, %r8d
	movl	%r13d, %ecx
	movl	%r12d, %edx
	movl	28(%rsp), %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	pushq	%rax
	.cfi_def_cfa_offset 128
	movl	32(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 136
	movl	36(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 144
	movl	40(%rsp), %r9d
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 112
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	$29, %eax
	jg	.L7
	addl	$1, %r14d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$39, %eax
	jg	.L8
	addl	$1, 8(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	$49, %eax
	jg	.L9
	addl	$1, 12(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	$59, %eax
	jg	.L10
	addl	$1, 16(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, 20(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$56, %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
.L19:
	.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:
```