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 x;
   while(1){
   scanf("%d",&x);
   if(x==0) break;
   int a,m=0,n=0,o=0,p=0,q=0,r=0,s=0;
   for(int i=0;i<x;i++){
       scanf("%d",&a);
       if(a<10) m++;
       if(10<=a&&a<20) n++;
       if(20<=a&&a<30) o++;
       if(30<=a&&a<40) p++;
       if(40<=a&&a<50) q++;
       if(50<=a&&a<60) r++;
       if(60<=a) s++;
   }
   printf("%d\n",m);
    printf("%d\n",n);
     printf("%d\n",o);
      printf("%d\n",p);
       printf("%d\n",q);
        printf("%d\n",r);
   printf("%d\n",s);
 
}
 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
	leaq	.LC1(%rip), %r15
	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
	jle	.L14
	movl	$0, 4(%rsp)
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movl	$0, 8(%rsp)
	leaq	36(%rsp), %rbp
	movl	$0, 16(%rsp)
	movl	$0, 12(%rsp)
	movl	$0, 20(%rsp)
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %r14d
.L5:
	leal	-30(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L7
	addl	$1, 12(%rsp)
.L9:
	cmpl	$59, %eax
	jle	.L10
	addl	$1, 4(%rsp)
.L10:
	addl	$1, %r12d
	cmpl	%r12d, 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
	jle	.L18
	leal	-10(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L6
	addl	$1, %r13d
.L7:
	leal	-40(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L8
	addl	$1, 16(%rsp)
	addl	$1, %r12d
	cmpl	%r12d, 32(%rsp)
	jg	.L11
.L3:
	movl	%r14d, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%r13d, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	20(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	12(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	16(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	8(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	4(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L12
.L6:
	leal	-20(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L5
	addl	$1, 20(%rsp)
.L8:
	leal	-50(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L9
	addl	$1, 8(%rsp)
	jmp	.L10
	.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
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	movl	$0, 4(%rsp)
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movl	$0, 8(%rsp)
	movl	$0, 16(%rsp)
	movl	$0, 12(%rsp)
	movl	$0, 20(%rsp)
	jmp	.L3
.L19:
	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
	leaq	.LC1(%rip), %r15
	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
	jle	.L14
	movl	$0, 4(%rsp)
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movl	$0, 8(%rsp)
	leaq	36(%rsp), %rbp
	movl	$0, 16(%rsp)
	movl	$0, 12(%rsp)
	movl	$0, 20(%rsp)
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %r14d
.L5:
	leal	-30(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L7
	addl	$1, 12(%rsp)
.L9:
	cmpl	$59, %eax
	jle	.L10
	addl	$1, 4(%rsp)
.L10:
	addl	$1, %r12d
	cmpl	%r12d, 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
	jle	.L18
	leal	-10(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L6
	addl	$1, %r13d
.L7:
	leal	-40(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L8
	addl	$1, 16(%rsp)
	addl	$1, %r12d
	cmpl	%r12d, 32(%rsp)
	jg	.L11
.L3:
	movl	%r14d, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%r13d, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	20(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	12(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	16(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	8(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	4(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L12
.L6:
	leal	-20(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L5
	addl	$1, 20(%rsp)
.L8:
	leal	-50(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L9
	addl	$1, 8(%rsp)
	jmp	.L10
	.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
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	movl	$0, 4(%rsp)
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movl	$0, 8(%rsp)
	movl	$0, 16(%rsp)
	movl	$0, 12(%rsp)
	movl	$0, 20(%rsp)
	jmp	.L3
.L19:
	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
	leaq	.LC1(%rip), %r15
	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
	jle	.L14
	movl	$0, 4(%rsp)
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movl	$0, 8(%rsp)
	leaq	36(%rsp), %rbp
	movl	$0, 16(%rsp)
	movl	$0, 12(%rsp)
	movl	$0, 20(%rsp)
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %r14d
.L5:
	leal	-30(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L7
	addl	$1, 12(%rsp)
.L9:
	cmpl	$59, %eax
	jle	.L10
	addl	$1, 4(%rsp)
.L10:
	addl	$1, %r12d
	cmpl	%r12d, 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
	jle	.L18
	leal	-10(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L6
	addl	$1, %r13d
.L7:
	leal	-40(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L8
	addl	$1, 16(%rsp)
	addl	$1, %r12d
	cmpl	%r12d, 32(%rsp)
	jg	.L11
.L3:
	movl	%r14d, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%r13d, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	20(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	12(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	16(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	8(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	4(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L12
.L6:
	leal	-20(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L5
	addl	$1, 20(%rsp)
.L8:
	leal	-50(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L9
	addl	$1, 8(%rsp)
	jmp	.L10
	.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
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	movl	$0, 4(%rsp)
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movl	$0, 8(%rsp)
	movl	$0, 16(%rsp)
	movl	$0, 12(%rsp)
	movl	$0, 20(%rsp)
	jmp	.L3
.L19:
	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 x;
   while(1){
   scanf("%d",&x);
   if(x==0) break;
   int a,m=0,n=0,o=0,p=0,q=0,r=0,s=0;
   for(int i=0;i<x;i++){
       scanf("%d",&a);
       if(a<10) m++;
       if(10<=a&&a<20) n++;
       if(20<=a&&a<30) o++;
       if(30<=a&&a<40) p++;
       if(40<=a&&a<50) q++;
       if(50<=a&&a<60) r++;
       if(60<=a) s++;
   }
   printf("%d\n",m);
    printf("%d\n",n);
     printf("%d\n",o);
      printf("%d\n",p);
       printf("%d\n",q);
        printf("%d\n",r);
   printf("%d\n",s);
 
}
 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 x;
   while(1){
   scanf("%d",&x);
   if(x==0) break;
   int a,m=0,n=0,o=0,p=0,q=0,r=0,s=0;
   for(int i=0;i<x;i++){
       scanf("%d",&a);
       if(a<10) m++;
       if(10<=a&&a<20) n++;
       if(20<=a&&a<30) o++;
       if(30<=a&&a<40) p++;
       if(40<=a&&a<50) q++;
       if(50<=a&&a<60) r++;
       if(60<=a) s++;
   }
   printf("%d\n",m);
    printf("%d\n",n);
     printf("%d\n",o);
      printf("%d\n",p);
       printf("%d\n",q);
        printf("%d\n",r);
   printf("%d\n",s);
 
}
 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 x;
   while(1){
   scanf("%d",&x);
   if(x==0) break;
   int a,m=0,n=0,o=0,p=0,q=0,r=0,s=0;
   for(int i=0;i<x;i++){
       scanf("%d",&a);
       if(a<10) m++;
       if(10<=a&&a<20) n++;
       if(20<=a&&a<30) o++;
       if(30<=a&&a<40) p++;
       if(40<=a&&a<50) q++;
       if(50<=a&&a<60) r++;
       if(60<=a) s++;
   }
   printf("%d\n",m);
    printf("%d\n",n);
     printf("%d\n",o);
      printf("%d\n",p);
       printf("%d\n",q);
        printf("%d\n",r);
   printf("%d\n",s);
 
}
 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
	leaq	.LC1(%rip), %r15
	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
	jle	.L14
	movl	$0, 4(%rsp)
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movl	$0, 8(%rsp)
	leaq	36(%rsp), %rbp
	movl	$0, 16(%rsp)
	movl	$0, 12(%rsp)
	movl	$0, 20(%rsp)
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %r14d
.L5:
	leal	-30(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L7
	addl	$1, 12(%rsp)
.L9:
	cmpl	$59, %eax
	jle	.L10
	addl	$1, 4(%rsp)
.L10:
	addl	$1, %r12d
	cmpl	%r12d, 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
	jle	.L18
	leal	-10(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L6
	addl	$1, %r13d
.L7:
	leal	-40(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L8
	addl	$1, 16(%rsp)
	addl	$1, %r12d
	cmpl	%r12d, 32(%rsp)
	jg	.L11
.L3:
	movl	%r14d, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%r13d, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	20(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	12(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	16(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	8(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	4(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L12
.L6:
	leal	-20(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L5
	addl	$1, 20(%rsp)
.L8:
	leal	-50(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L9
	addl	$1, 8(%rsp)
	jmp	.L10
	.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
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	movl	$0, 4(%rsp)
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movl	$0, 8(%rsp)
	movl	$0, 16(%rsp)
	movl	$0, 12(%rsp)
	movl	$0, 20(%rsp)
	jmp	.L3
.L19:
	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
	leaq	.LC1(%rip), %r15
	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
	jle	.L14
	movl	$0, 4(%rsp)
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movl	$0, 8(%rsp)
	leaq	36(%rsp), %rbp
	movl	$0, 16(%rsp)
	movl	$0, 12(%rsp)
	movl	$0, 20(%rsp)
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %r14d
.L5:
	leal	-30(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L7
	addl	$1, 12(%rsp)
.L9:
	cmpl	$59, %eax
	jle	.L10
	addl	$1, 4(%rsp)
.L10:
	addl	$1, %r12d
	cmpl	%r12d, 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
	jle	.L18
	leal	-10(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L6
	addl	$1, %r13d
.L7:
	leal	-40(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L8
	addl	$1, 16(%rsp)
	addl	$1, %r12d
	cmpl	%r12d, 32(%rsp)
	jg	.L11
.L3:
	movl	%r14d, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%r13d, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	20(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	12(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	16(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	8(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	4(%rsp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L12
.L6:
	leal	-20(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L5
	addl	$1, 20(%rsp)
.L8:
	leal	-50(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L9
	addl	$1, 8(%rsp)
	jmp	.L10
	.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
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	movl	$0, 4(%rsp)
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movl	$0, 8(%rsp)
	movl	$0, 16(%rsp)
	movl	$0, 12(%rsp)
	movl	$0, 20(%rsp)
	jmp	.L3
.L19:
	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:
```