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 numbers_num;
	int start,prev,now;
	int i;
	int isfirst;
	while(1) {
		scanf("%d",&numbers_num);
		if(numbers_num==0)break;
		scanf("%d",&start);
		prev=start;
		isfirst=1;
		for(i=1;i<numbers_num;i++) {
			scanf("%d",&now);
			if(prev+1!=now) {
				if(!isfirst)putchar(' ');
				printf("%d",start);
				if(start<prev)printf("-%d",prev);
				start=now;
				isfirst=0;
			}
			prev=now;
		}
		if(!isfirst)putchar(' ');
		printf("%d",start);
		if(start<prev)printf("-%d",prev);
		putchar('\n');
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.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
	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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	movq	8(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	xorl	%eax, %eax
	leaq	32(%rsp), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 28(%rsp)
	movl	32(%rsp), %r12d
	jle	.L12
	movl	$1, %r13d
	movl	$1, %ebx
	leaq	36(%rsp), %r14
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	testl	%r13d, %r13d
	je	.L18
.L5:
	movl	32(%rsp), %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpl	%r12d, 32(%rsp)
	jl	.L19
.L6:
	movl	36(%rsp), %r12d
	xorl	%r13d, %r13d
	addl	$1, %ebx
	movl	%r12d, 32(%rsp)
	cmpl	%ebx, 28(%rsp)
	jle	.L20
.L7:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leal	1(%r12), %eax
	cmpl	36(%rsp), %eax
	jne	.L21
	movl	%eax, %r12d
	addl	$1, %ebx
	cmpl	%ebx, 28(%rsp)
	jg	.L7
.L20:
	testl	%r13d, %r13d
	jne	.L16
	movq	stdout(%rip), %rsi
	movl	$32, %edi
	call	putc@PLT
.L16:
	movl	32(%rsp), %edx
.L3:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpl	%r12d, 32(%rsp)
	jl	.L22
.L9:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L19:
	movl	%r12d, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	movq	stdout(%rip), %rsi
	movl	$32, %edi
	call	putc@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L22:
	movl	%r12d, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	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
.L12:
	.cfi_restore_state
	movl	%r12d, %edx
	jmp	.L3
.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"
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	movq	8(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	xorl	%eax, %eax
	leaq	32(%rsp), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 28(%rsp)
	movl	32(%rsp), %r12d
	jle	.L12
	movl	$1, %r13d
	movl	$1, %ebx
	leaq	36(%rsp), %r14
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	testl	%r13d, %r13d
	je	.L18
.L5:
	movl	32(%rsp), %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpl	%r12d, 32(%rsp)
	jl	.L19
.L6:
	movl	36(%rsp), %r12d
	xorl	%r13d, %r13d
	addl	$1, %ebx
	movl	%r12d, 32(%rsp)
	cmpl	%ebx, 28(%rsp)
	jle	.L20
.L7:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leal	1(%r12), %eax
	cmpl	36(%rsp), %eax
	jne	.L21
	movl	%eax, %r12d
	addl	$1, %ebx
	cmpl	%ebx, 28(%rsp)
	jg	.L7
.L20:
	testl	%r13d, %r13d
	jne	.L16
	movq	stdout(%rip), %rsi
	movl	$32, %edi
	call	putc@PLT
.L16:
	movl	32(%rsp), %edx
.L3:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpl	%r12d, 32(%rsp)
	jl	.L22
.L9:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L19:
	movl	%r12d, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	movq	stdout(%rip), %rsi
	movl	$32, %edi
	call	putc@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L22:
	movl	%r12d, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	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
.L12:
	.cfi_restore_state
	movl	%r12d, %edx
	jmp	.L3
.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"
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	movq	8(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	xorl	%eax, %eax
	leaq	32(%rsp), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 28(%rsp)
	movl	32(%rsp), %r12d
	jle	.L12
	movl	$1, %r13d
	movl	$1, %ebx
	leaq	36(%rsp), %r14
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	testl	%r13d, %r13d
	je	.L18
.L5:
	movl	32(%rsp), %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpl	%r12d, 32(%rsp)
	jl	.L19
.L6:
	movl	36(%rsp), %r12d
	xorl	%r13d, %r13d
	addl	$1, %ebx
	movl	%r12d, 32(%rsp)
	cmpl	%ebx, 28(%rsp)
	jle	.L20
.L7:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leal	1(%r12), %eax
	cmpl	36(%rsp), %eax
	jne	.L21
	movl	%eax, %r12d
	addl	$1, %ebx
	cmpl	%ebx, 28(%rsp)
	jg	.L7
.L20:
	testl	%r13d, %r13d
	jne	.L16
	movq	stdout(%rip), %rsi
	movl	$32, %edi
	call	putc@PLT
.L16:
	movl	32(%rsp), %edx
.L3:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpl	%r12d, 32(%rsp)
	jl	.L22
.L9:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L19:
	movl	%r12d, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	movq	stdout(%rip), %rsi
	movl	$32, %edi
	call	putc@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L22:
	movl	%r12d, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	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
.L12:
	.cfi_restore_state
	movl	%r12d, %edx
	jmp	.L3
.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 numbers_num;
	int start,prev,now;
	int i;
	int isfirst;
	while(1) {
		scanf("%d",&numbers_num);
		if(numbers_num==0)break;
		scanf("%d",&start);
		prev=start;
		isfirst=1;
		for(i=1;i<numbers_num;i++) {
			scanf("%d",&now);
			if(prev+1!=now) {
				if(!isfirst)putchar(' ');
				printf("%d",start);
				if(start<prev)printf("-%d",prev);
				start=now;
				isfirst=0;
			}
			prev=now;
		}
		if(!isfirst)putchar(' ');
		printf("%d",start);
		if(start<prev)printf("-%d",prev);
		putchar('\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 numbers_num;
	int start,prev,now;
	int i;
	int isfirst;
	while(1) {
		scanf("%d",&numbers_num);
		if(numbers_num==0)break;
		scanf("%d",&start);
		prev=start;
		isfirst=1;
		for(i=1;i<numbers_num;i++) {
			scanf("%d",&now);
			if(prev+1!=now) {
				if(!isfirst)putchar(' ');
				printf("%d",start);
				if(start<prev)printf("-%d",prev);
				start=now;
				isfirst=0;
			}
			prev=now;
		}
		if(!isfirst)putchar(' ');
		printf("%d",start);
		if(start<prev)printf("-%d",prev);
		putchar('\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:

5
1 1 3 5 6
3
7 8 9
0
 5
1 1 6 5 6
3
7 8 9
0
 5
1 1 6 4 6
3
7 8 9
0
 5
1 1 6 4 9
3
7 8 9
0
 5
1 1 2 4 9
3
7 8 9
0
 5
1 2 2 4 9
3
7 8 9
0
 5
1 2 2 4 9
3
7 14 9
0
 5
1 2 2 4 9
3
7 14 16
0
 5
1 2 1 4 9
3
7 14 16
0
 5
1 2 1 4 9
3
7 28 16
0

1 1 3 5-6
7-9
 1 1 6 5-6
7-9
 1 1 6 4 6
7-9
 1 1 6 4 9
7-9
 1 1-2 4 9
7-9
 1-2 2 4 9
7-9
 1-2 2 4 9
7 14 9
 1-2 2 4 9
7 14 16
 1-2 1 4 9
7 14 16
 1-2 1 4 9
7 28 16

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 numbers_num;
	int start,prev,now;
	int i;
	int isfirst;
	while(1) {
		scanf("%d",&numbers_num);
		if(numbers_num==0)break;
		scanf("%d",&start);
		prev=start;
		isfirst=1;
		for(i=1;i<numbers_num;i++) {
			scanf("%d",&now);
			if(prev+1!=now) {
				if(!isfirst)putchar(' ');
				printf("%d",start);
				if(start<prev)printf("-%d",prev);
				start=now;
				isfirst=0;
			}
			prev=now;
		}
		if(!isfirst)putchar(' ');
		printf("%d",start);
		if(start<prev)printf("-%d",prev);
		putchar('\n');
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.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
	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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	movq	8(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	xorl	%eax, %eax
	leaq	32(%rsp), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 28(%rsp)
	movl	32(%rsp), %r12d
	jle	.L12
	movl	$1, %r13d
	movl	$1, %ebx
	leaq	36(%rsp), %r14
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	testl	%r13d, %r13d
	je	.L18
.L5:
	movl	32(%rsp), %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpl	%r12d, 32(%rsp)
	jl	.L19
.L6:
	movl	36(%rsp), %r12d
	xorl	%r13d, %r13d
	addl	$1, %ebx
	movl	%r12d, 32(%rsp)
	cmpl	%ebx, 28(%rsp)
	jle	.L20
.L7:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leal	1(%r12), %eax
	cmpl	36(%rsp), %eax
	jne	.L21
	movl	%eax, %r12d
	addl	$1, %ebx
	cmpl	%ebx, 28(%rsp)
	jg	.L7
.L20:
	testl	%r13d, %r13d
	jne	.L16
	movq	stdout(%rip), %rsi
	movl	$32, %edi
	call	putc@PLT
.L16:
	movl	32(%rsp), %edx
.L3:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpl	%r12d, 32(%rsp)
	jl	.L22
.L9:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L19:
	movl	%r12d, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	movq	stdout(%rip), %rsi
	movl	$32, %edi
	call	putc@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L22:
	movl	%r12d, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	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
.L12:
	.cfi_restore_state
	movl	%r12d, %edx
	jmp	.L3
.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"
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	movq	8(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	xorl	%eax, %eax
	leaq	32(%rsp), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 28(%rsp)
	movl	32(%rsp), %r12d
	jle	.L12
	movl	$1, %r13d
	movl	$1, %ebx
	leaq	36(%rsp), %r14
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	testl	%r13d, %r13d
	je	.L18
.L5:
	movl	32(%rsp), %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpl	%r12d, 32(%rsp)
	jl	.L19
.L6:
	movl	36(%rsp), %r12d
	xorl	%r13d, %r13d
	addl	$1, %ebx
	movl	%r12d, 32(%rsp)
	cmpl	%ebx, 28(%rsp)
	jle	.L20
.L7:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leal	1(%r12), %eax
	cmpl	36(%rsp), %eax
	jne	.L21
	movl	%eax, %r12d
	addl	$1, %ebx
	cmpl	%ebx, 28(%rsp)
	jg	.L7
.L20:
	testl	%r13d, %r13d
	jne	.L16
	movq	stdout(%rip), %rsi
	movl	$32, %edi
	call	putc@PLT
.L16:
	movl	32(%rsp), %edx
.L3:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpl	%r12d, 32(%rsp)
	jl	.L22
.L9:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L19:
	movl	%r12d, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	movq	stdout(%rip), %rsi
	movl	$32, %edi
	call	putc@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L22:
	movl	%r12d, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	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
.L12:
	.cfi_restore_state
	movl	%r12d, %edx
	jmp	.L3
.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:
```