Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
int main()
{
	int b[]={0,1,2,3,4,5,6,7,8,9,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9};
	int i,j,k,d,s,t,s1,d1;
	scanf("%d",&i);
	for(;i>0;i--)
	{
		scanf("%d%d",&s,&t);
		for(j=0,d=99;j<25;j++)
		{
			if(b[j]==s)
			{
				k=j+1;
				for(;k<=25&&b[k]!=t;k++);
				if(k<26&&d>k-j)
				{
					s1=j;
					d1=k;
					d=k-j;
				}
			}
		}
		for(j=s1;j<=d1;j++)
			printf("%d%s",b[j],j==d1?"\n":" ");
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"\n"
.LC3:
	.string	" "
.LC4:
	.string	"%d%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$144, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -112(%rbp)
	movl	$1, -108(%rbp)
	movl	$2, -104(%rbp)
	movl	$3, -100(%rbp)
	movl	$4, -96(%rbp)
	movl	$5, -92(%rbp)
	movl	$6, -88(%rbp)
	movl	$7, -84(%rbp)
	movl	$8, -80(%rbp)
	movl	$9, -76(%rbp)
	movl	$5, -72(%rbp)
	movl	$4, -68(%rbp)
	movl	$3, -64(%rbp)
	movl	$2, -60(%rbp)
	movl	$1, -56(%rbp)
	movl	$0, -52(%rbp)
	movl	$1, -48(%rbp)
	movl	$2, -44(%rbp)
	movl	$3, -40(%rbp)
	movl	$4, -36(%rbp)
	movl	$5, -32(%rbp)
	movl	$6, -28(%rbp)
	movl	$7, -24(%rbp)
	movl	$8, -20(%rbp)
	movl	$9, -16(%rbp)
	leaq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L13:
	leaq	-136(%rbp), %rdx
	leaq	-140(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -132(%rbp)
	movl	$99, -124(%rbp)
	jmp	.L3
.L8:
	movl	-132(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %edx
	movl	-140(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-132(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -128(%rbp)
	jmp	.L5
.L7:
	addl	$1, -128(%rbp)
.L5:
	cmpl	$25, -128(%rbp)
	jg	.L6
	movl	-128(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %edx
	movl	-136(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L7
.L6:
	cmpl	$25, -128(%rbp)
	jg	.L4
	movl	-128(%rbp), %eax
	subl	-132(%rbp), %eax
	cmpl	%eax, -124(%rbp)
	jle	.L4
	movl	-132(%rbp), %eax
	movl	%eax, -120(%rbp)
	movl	-128(%rbp), %eax
	movl	%eax, -116(%rbp)
	movl	-128(%rbp), %eax
	subl	-132(%rbp), %eax
	movl	%eax, -124(%rbp)
.L4:
	addl	$1, -132(%rbp)
.L3:
	cmpl	$24, -132(%rbp)
	jle	.L8
	movl	-120(%rbp), %eax
	movl	%eax, -132(%rbp)
	jmp	.L9
.L12:
	movl	-132(%rbp), %eax
	cmpl	-116(%rbp), %eax
	jne	.L10
	leaq	.LC2(%rip), %rax
	jmp	.L11
.L10:
	leaq	.LC3(%rip), %rax
.L11:
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	-112(%rbp,%rdx,4), %ecx
	movq	%rax, %rdx
	movl	%ecx, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -132(%rbp)
.L9:
	movl	-132(%rbp), %eax
	cmpl	-116(%rbp), %eax
	jle	.L12
	movl	-144(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -144(%rbp)
.L2:
	movl	-144(%rbp), %eax
	testl	%eax, %eax
	jg	.L13
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC6:
	.string	"%d"
.LC7:
	.string	"%d%d"
.LC8:
	.string	" "
.LC9:
	.string	"%d%s"
.LC10:
	.string	"\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	.LC6(%rip), %rdi
	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
	subq	$168, %rsp
	.cfi_def_cfa_offset 224
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rsi
	movl	$9, 144(%rsp)
	movaps	%xmm0, 48(%rsp)
	movdqa	.LC1(%rip), %xmm0
	movaps	%xmm0, 64(%rsp)
	movdqa	.LC2(%rip), %xmm0
	movaps	%xmm0, 80(%rsp)
	movdqa	.LC3(%rip), %xmm0
	movaps	%xmm0, 96(%rsp)
	movdqa	.LC4(%rip), %xmm0
	movaps	%xmm0, 112(%rsp)
	movdqa	.LC5(%rip), %xmm0
	movaps	%xmm0, 128(%rsp)
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	jle	.L9
	leaq	44(%rsp), %rax
	leaq	48(%rsp), %r15
	movq	%rax, 24(%rsp)
	leaq	40(%rsp), %rax
	leaq	.LC9(%rip), %rbp
	movq	%rax, 16(%rsp)
	leaq	.LC10(%rip), %r14
	leaq	.LC8(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	16(%rsp), %rsi
	movq	24(%rsp), %rdx
	leaq	.LC7(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %r9d
	movl	44(%rsp), %esi
	xorl	%eax, %eax
	movl	$99, %r10d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rdx, %rax
	cmpq	$25, %rdx
	je	.L28
.L7:
	movl	%eax, %edi
	leaq	1(%rax), %rdx
	cmpl	%r9d, (%r15,%rax,4)
	jne	.L3
	movq	%rdx, %rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rax
	cmpl	$26, %eax
	je	.L3
.L4:
	movl	%eax, %ecx
	cmpl	%esi, (%r15,%rax,4)
	jne	.L5
	subl	%edi, %ecx
	cmpl	%r10d, %ecx
	jge	.L3
	movl	%eax, %ebx
	movl	%edi, 12(%rsp)
	movl	%ecx, %r10d
	movq	%rdx, %rax
	cmpq	$25, %rdx
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L28:
	movslq	12(%rsp), %r13
	cmpl	%ebx, %r13d
	jle	.L13
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L26:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r13
	call	__printf_chk@PLT
	cmpl	%r13d, %ebx
	jl	.L12
.L13:
	movl	(%r15,%r13,4), %edx
	movq	%r12, %rcx
	cmpl	%r13d, %ebx
	jne	.L26
	movq	%r14, %rcx
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L12:
	movl	36(%rsp), %eax
	subl	$1, %eax
	movl	%eax, 36(%rsp)
	testl	%eax, %eax
	jg	.L2
.L9:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$168, %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
.L29:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC1:
	.long	4
	.long	5
	.long	6
	.long	7
	.align 16
.LC2:
	.long	8
	.long	9
	.long	5
	.long	4
	.align 16
.LC3:
	.long	3
	.long	2
	.long	1
	.long	0
	.align 16
.LC4:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC5:
	.long	5
	.long	6
	.long	7
	.long	8
	.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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC6:
	.string	"%d"
.LC7:
	.string	"%d%d"
.LC8:
	.string	" "
.LC9:
	.string	"%d%s"
.LC10:
	.string	"\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	.LC6(%rip), %rdi
	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
	subq	$168, %rsp
	.cfi_def_cfa_offset 224
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rsi
	movl	$9, 144(%rsp)
	movaps	%xmm0, 48(%rsp)
	movdqa	.LC1(%rip), %xmm0
	movaps	%xmm0, 64(%rsp)
	movdqa	.LC2(%rip), %xmm0
	movaps	%xmm0, 80(%rsp)
	movdqa	.LC3(%rip), %xmm0
	movaps	%xmm0, 96(%rsp)
	movdqa	.LC4(%rip), %xmm0
	movaps	%xmm0, 112(%rsp)
	movdqa	.LC5(%rip), %xmm0
	movaps	%xmm0, 128(%rsp)
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	jle	.L9
	leaq	44(%rsp), %rax
	leaq	48(%rsp), %r15
	movq	%rax, 24(%rsp)
	leaq	40(%rsp), %rax
	leaq	.LC9(%rip), %rbp
	movq	%rax, 16(%rsp)
	leaq	.LC10(%rip), %r14
	leaq	.LC8(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	16(%rsp), %rsi
	movq	24(%rsp), %rdx
	leaq	.LC7(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %r9d
	movl	44(%rsp), %esi
	xorl	%eax, %eax
	movl	$99, %r10d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rdx, %rax
	cmpq	$25, %rdx
	je	.L28
.L7:
	movl	%eax, %edi
	leaq	1(%rax), %rdx
	cmpl	%r9d, (%r15,%rax,4)
	jne	.L3
	movq	%rdx, %rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rax
	cmpl	$26, %eax
	je	.L3
.L4:
	movl	%eax, %ecx
	cmpl	%esi, (%r15,%rax,4)
	jne	.L5
	subl	%edi, %ecx
	cmpl	%r10d, %ecx
	jge	.L3
	movl	%eax, %ebx
	movl	%edi, 12(%rsp)
	movl	%ecx, %r10d
	movq	%rdx, %rax
	cmpq	$25, %rdx
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L28:
	movslq	12(%rsp), %r13
	cmpl	%ebx, %r13d
	jle	.L13
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L26:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r13
	call	__printf_chk@PLT
	cmpl	%r13d, %ebx
	jl	.L12
.L13:
	movl	(%r15,%r13,4), %edx
	movq	%r12, %rcx
	cmpl	%r13d, %ebx
	jne	.L26
	movq	%r14, %rcx
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L12:
	movl	36(%rsp), %eax
	subl	$1, %eax
	movl	%eax, 36(%rsp)
	testl	%eax, %eax
	jg	.L2
.L9:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$168, %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
.L29:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC1:
	.long	4
	.long	5
	.long	6
	.long	7
	.align 16
.LC2:
	.long	8
	.long	9
	.long	5
	.long	4
	.align 16
.LC3:
	.long	3
	.long	2
	.long	1
	.long	0
	.align 16
.LC4:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC5:
	.long	5
	.long	6
	.long	7
	.long	8
	.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:

#include<stdio.h>
int main()
{
	int b[]={0,1,2,3,4,5,6,7,8,9,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9};
	int i,j,k,d,s,t,s1,d1;
	scanf("%d",&i);
	for(;i>0;i--)
	{
		scanf("%d%d",&s,&t);
		for(j=0,d=99;j<25;j++)
		{
			if(b[j]==s)
			{
				k=j+1;
				for(;k<=25&&b[k]!=t;k++);
				if(k<26&&d>k-j)
				{
					s1=j;
					d1=k;
					d=k-j;
				}
			}
		}
		for(j=s1;j<=d1;j++)
			printf("%d%s",b[j],j==d1?"\n":" ");
	}
	return 0;
}
2
2 5
4 2
 2
2 1
4 2
 2
2 0
4 2
 2
1 4
4 2
 2
2 0
4 0
 2
2 0
4 1
 2
1 8
4 2
 2
2 0
3 0
 2
2 0
1 1
 2
1 8
4 0

2 3 4 5
4 3 2
 2 1
4 3 2
 2 1 0
4 3 2
 1 2 3 4
4 3 2
 2 1 0
4 3 2 1 0
 2 1 0
4 3 2 1
 1 2 3 4 5 6 7 8
4 3 2
 2 1 0
3 2 1 0
 2 1 0
1 0 1
 1 2 3 4 5 6 7 8
4 3 2 1 0

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
int main()
{
	int b[]={0,1,2,3,4,5,6,7,8,9,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9};
	int i,j,k,d,s,t,s1,d1;
	scanf("%d",&i);
	for(;i>0;i--)
	{
		scanf("%d%d",&s,&t);
		for(j=0,d=99;j<25;j++)
		{
			if(b[j]==s)
			{
				k=j+1;
				for(;k<=25&&b[k]!=t;k++);
				if(k<26&&d>k-j)
				{
					s1=j;
					d1=k;
					d=k-j;
				}
			}
		}
		for(j=s1;j<=d1;j++)
			printf("%d%s",b[j],j==d1?"\n":" ");
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"\n"
.LC3:
	.string	" "
.LC4:
	.string	"%d%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$144, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -112(%rbp)
	movl	$1, -108(%rbp)
	movl	$2, -104(%rbp)
	movl	$3, -100(%rbp)
	movl	$4, -96(%rbp)
	movl	$5, -92(%rbp)
	movl	$6, -88(%rbp)
	movl	$7, -84(%rbp)
	movl	$8, -80(%rbp)
	movl	$9, -76(%rbp)
	movl	$5, -72(%rbp)
	movl	$4, -68(%rbp)
	movl	$3, -64(%rbp)
	movl	$2, -60(%rbp)
	movl	$1, -56(%rbp)
	movl	$0, -52(%rbp)
	movl	$1, -48(%rbp)
	movl	$2, -44(%rbp)
	movl	$3, -40(%rbp)
	movl	$4, -36(%rbp)
	movl	$5, -32(%rbp)
	movl	$6, -28(%rbp)
	movl	$7, -24(%rbp)
	movl	$8, -20(%rbp)
	movl	$9, -16(%rbp)
	leaq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L13:
	leaq	-136(%rbp), %rdx
	leaq	-140(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -132(%rbp)
	movl	$99, -124(%rbp)
	jmp	.L3
.L8:
	movl	-132(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %edx
	movl	-140(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-132(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -128(%rbp)
	jmp	.L5
.L7:
	addl	$1, -128(%rbp)
.L5:
	cmpl	$25, -128(%rbp)
	jg	.L6
	movl	-128(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %edx
	movl	-136(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L7
.L6:
	cmpl	$25, -128(%rbp)
	jg	.L4
	movl	-128(%rbp), %eax
	subl	-132(%rbp), %eax
	cmpl	%eax, -124(%rbp)
	jle	.L4
	movl	-132(%rbp), %eax
	movl	%eax, -120(%rbp)
	movl	-128(%rbp), %eax
	movl	%eax, -116(%rbp)
	movl	-128(%rbp), %eax
	subl	-132(%rbp), %eax
	movl	%eax, -124(%rbp)
.L4:
	addl	$1, -132(%rbp)
.L3:
	cmpl	$24, -132(%rbp)
	jle	.L8
	movl	-120(%rbp), %eax
	movl	%eax, -132(%rbp)
	jmp	.L9
.L12:
	movl	-132(%rbp), %eax
	cmpl	-116(%rbp), %eax
	jne	.L10
	leaq	.LC2(%rip), %rax
	jmp	.L11
.L10:
	leaq	.LC3(%rip), %rax
.L11:
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	-112(%rbp,%rdx,4), %ecx
	movq	%rax, %rdx
	movl	%ecx, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -132(%rbp)
.L9:
	movl	-132(%rbp), %eax
	cmpl	-116(%rbp), %eax
	jle	.L12
	movl	-144(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -144(%rbp)
.L2:
	movl	-144(%rbp), %eax
	testl	%eax, %eax
	jg	.L13
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"\n"
.LC3:
	.string	" "
.LC4:
	.string	"%d%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$144, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -112(%rbp)
	movl	$1, -108(%rbp)
	movl	$2, -104(%rbp)
	movl	$3, -100(%rbp)
	movl	$4, -96(%rbp)
	movl	$5, -92(%rbp)
	movl	$6, -88(%rbp)
	movl	$7, -84(%rbp)
	movl	$8, -80(%rbp)
	movl	$9, -76(%rbp)
	movl	$5, -72(%rbp)
	movl	$4, -68(%rbp)
	movl	$3, -64(%rbp)
	movl	$2, -60(%rbp)
	movl	$1, -56(%rbp)
	movl	$0, -52(%rbp)
	movl	$1, -48(%rbp)
	movl	$2, -44(%rbp)
	movl	$3, -40(%rbp)
	movl	$4, -36(%rbp)
	movl	$5, -32(%rbp)
	movl	$6, -28(%rbp)
	movl	$7, -24(%rbp)
	movl	$8, -20(%rbp)
	movl	$9, -16(%rbp)
	leaq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L13:
	leaq	-136(%rbp), %rdx
	leaq	-140(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -132(%rbp)
	movl	$99, -124(%rbp)
	jmp	.L3
.L8:
	movl	-132(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %edx
	movl	-140(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-132(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -128(%rbp)
	jmp	.L5
.L7:
	addl	$1, -128(%rbp)
.L5:
	cmpl	$25, -128(%rbp)
	jg	.L6
	movl	-128(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %edx
	movl	-136(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L7
.L6:
	cmpl	$25, -128(%rbp)
	jg	.L4
	movl	-128(%rbp), %eax
	subl	-132(%rbp), %eax
	cmpl	%eax, -124(%rbp)
	jle	.L4
	movl	-132(%rbp), %eax
	movl	%eax, -120(%rbp)
	movl	-128(%rbp), %eax
	movl	%eax, -116(%rbp)
	movl	-128(%rbp), %eax
	subl	-132(%rbp), %eax
	movl	%eax, -124(%rbp)
.L4:
	addl	$1, -132(%rbp)
.L3:
	cmpl	$24, -132(%rbp)
	jle	.L8
	movl	-120(%rbp), %eax
	movl	%eax, -132(%rbp)
	jmp	.L9
.L12:
	movl	-132(%rbp), %eax
	cmpl	-116(%rbp), %eax
	jne	.L10
	leaq	.LC2(%rip), %rax
	jmp	.L11
.L10:
	leaq	.LC3(%rip), %rax
.L11:
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	-112(%rbp,%rdx,4), %ecx
	movq	%rax, %rdx
	movl	%ecx, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -132(%rbp)
.L9:
	movl	-132(%rbp), %eax
	cmpl	-116(%rbp), %eax
	jle	.L12
	movl	-144(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -144(%rbp)
.L2:
	movl	-144(%rbp), %eax
	testl	%eax, %eax
	jg	.L13
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
