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(void)
{
    int i;
    int s, e;
    int n;
    
    scanf("%d", &n);
    
    while (n--){
        scanf("%d%d", &s, &e);
        
        if (e > s){
            for (i = s; i <= e; i++){
                printf("%d%c", i, i == e ? '\n' : ' ');
            }
        }
        else {
            if ((0 <= s && s <= 5)){
                for (i = s; i >= e; i--){
                    printf("%d%c", i, i == e ? '\n' : ' ');
                }
            }
            else {
                for (i = s; i <= 9; i++){
                    printf("%d ", i);
                }
                if (0 <= e && e <= 5){
                    for (i = 5; i >= e; i--){
                        printf("%d%c", i, i == e ? '\n' : ' ');
                    }
                }
                else {
                    printf("5 4 3 2 1 0 ");
                    for (i = 1; i <= e; i++){
                        printf("%d%c", i, i == e ? '\n' : ' ');
                    }
                }
            }
        }
    }
    
    return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d%c"
.LC3:
	.string	"%d "
.LC4:
	.string	"5 4 3 2 1 0 "
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L24:
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L3
	movl	-24(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L4
.L7:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L5
	movl	$10, %edx
	jmp	.L6
.L5:
	movl	$32, %edx
.L6:
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -12(%rbp)
.L4:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L7
	jmp	.L2
.L3:
	movl	-24(%rbp), %eax
	testl	%eax, %eax
	js	.L8
	movl	-24(%rbp), %eax
	cmpl	$5, %eax
	jg	.L8
	movl	-24(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L9
.L12:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L10
	movl	$10, %edx
	jmp	.L11
.L10:
	movl	$32, %edx
.L11:
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	subl	$1, -12(%rbp)
.L9:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L12
	jmp	.L2
.L8:
	movl	-24(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L13
.L14:
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -12(%rbp)
.L13:
	cmpl	$9, -12(%rbp)
	jle	.L14
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	js	.L15
	movl	-20(%rbp), %eax
	cmpl	$5, %eax
	jg	.L15
	movl	$5, -12(%rbp)
	jmp	.L16
.L19:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L17
	movl	$10, %edx
	jmp	.L18
.L17:
	movl	$32, %edx
.L18:
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	subl	$1, -12(%rbp)
.L16:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L19
	jmp	.L2
.L15:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -12(%rbp)
	jmp	.L20
.L23:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L21
	movl	$10, %edx
	jmp	.L22
.L21:
	movl	$32, %edx
.L22:
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -12(%rbp)
.L20:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L23
.L2:
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -16(%rbp)
	testl	%eax, %eax
	jne	.L24
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	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
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d%c"
.LC3:
	.string	"%d "
.LC4:
	.string	"5 4 3 2 1 0 "
	.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	.LC0(%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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 36(%rsp)
	testl	%eax, %eax
	je	.L2
	leaq	32(%rsp), %r15
	leaq	28(%rsp), %r14
	leaq	.LC3(%rip), %rbp
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L20:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %eax
	movl	28(%rsp), %r13d
	movl	%eax, %r12d
	cmpl	%r13d, %eax
	jg	.L36
	cmpl	$5, %r13d
	jbe	.L8
	cmpl	$9, %r13d
	jg	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%r13d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addl	$1, %r13d
	cmpl	$10, %r13d
	jne	.L9
	movl	32(%rsp), %eax
.L10:
	movl	%eax, %r12d
	cmpl	$5, %eax
	ja	.L13
	movl	$5, %r13d
	.p2align 4,,10
	.p2align 3
.L16:
	cmpl	%r13d, %r12d
	je	.L14
	movl	%r13d, %edx
	movl	$32, %ecx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	subl	$1, %r13d
	call	__printf_chk@PLT
	movl	32(%rsp), %r12d
	cmpl	%r13d, %r12d
	jle	.L16
.L7:
	movl	36(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 36(%rsp)
	testl	%eax, %eax
	jne	.L20
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	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
.L11:
	.cfi_restore_state
	movl	%r12d, %edx
	movl	$10, %ecx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	leal	-1(%r12), %r13d
	call	__printf_chk@PLT
	movl	32(%rsp), %r12d
	cmpl	%r13d, %r12d
	jg	.L7
.L8:
	cmpl	%r13d, %r12d
	je	.L11
	movl	%r13d, %edx
	movl	$32, %ecx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	subl	$1, %r13d
	call	__printf_chk@PLT
	movl	32(%rsp), %r12d
	cmpl	%r13d, %r12d
	jle	.L8
	movl	36(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 36(%rsp)
	testl	%eax, %eax
	jne	.L20
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	movl	%r12d, %edx
	movl	$10, %ecx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	leal	-1(%r12), %r13d
	call	__printf_chk@PLT
	movl	32(%rsp), %r12d
	cmpl	%r13d, %r12d
	jle	.L16
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L36:
	movl	$32, %ecx
	movl	$10, %r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$32, %ecx
	cmove	%r12d, %ecx
.L3:
	movl	%r13d, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__printf_chk@PLT
	cmpl	%r13d, 32(%rsp)
	jge	.L6
	movl	36(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 36(%rsp)
	testl	%eax, %eax
	jne	.L20
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	32(%rsp), %edx
	testl	%edx, %edx
	jle	.L7
	movl	$1, %r12d
.L19:
	cmpl	%r12d, %edx
	je	.L17
.L38:
	movl	%r12d, %edx
	movl	$32, %ecx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__printf_chk@PLT
	movl	32(%rsp), %edx
	cmpl	%r12d, %edx
	jl	.L7
	cmpl	%r12d, %edx
	jne	.L38
.L17:
	movl	$10, %ecx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%edx, 12(%rsp)
	call	__printf_chk@PLT
	movl	12(%rsp), %edx
	leal	1(%rdx), %r12d
	movl	32(%rsp), %edx
	cmpl	%r12d, %edx
	jge	.L19
	jmp	.L7
.L37:
	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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d%c"
.LC3:
	.string	"%d "
.LC4:
	.string	"5 4 3 2 1 0 "
	.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	.LC0(%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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 36(%rsp)
	testl	%eax, %eax
	je	.L2
	leaq	32(%rsp), %r15
	leaq	28(%rsp), %r14
	leaq	.LC3(%rip), %rbp
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L20:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %eax
	movl	28(%rsp), %r13d
	movl	%eax, %r12d
	cmpl	%r13d, %eax
	jg	.L36
	cmpl	$5, %r13d
	jbe	.L8
	cmpl	$9, %r13d
	jg	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%r13d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addl	$1, %r13d
	cmpl	$10, %r13d
	jne	.L9
	movl	32(%rsp), %eax
.L10:
	movl	%eax, %r12d
	cmpl	$5, %eax
	ja	.L13
	movl	$5, %r13d
	.p2align 4,,10
	.p2align 3
.L16:
	cmpl	%r13d, %r12d
	je	.L14
	movl	%r13d, %edx
	movl	$32, %ecx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	subl	$1, %r13d
	call	__printf_chk@PLT
	movl	32(%rsp), %r12d
	cmpl	%r13d, %r12d
	jle	.L16
.L7:
	movl	36(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 36(%rsp)
	testl	%eax, %eax
	jne	.L20
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	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
.L11:
	.cfi_restore_state
	movl	%r12d, %edx
	movl	$10, %ecx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	leal	-1(%r12), %r13d
	call	__printf_chk@PLT
	movl	32(%rsp), %r12d
	cmpl	%r13d, %r12d
	jg	.L7
.L8:
	cmpl	%r13d, %r12d
	je	.L11
	movl	%r13d, %edx
	movl	$32, %ecx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	subl	$1, %r13d
	call	__printf_chk@PLT
	movl	32(%rsp), %r12d
	cmpl	%r13d, %r12d
	jle	.L8
	movl	36(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 36(%rsp)
	testl	%eax, %eax
	jne	.L20
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	movl	%r12d, %edx
	movl	$10, %ecx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	leal	-1(%r12), %r13d
	call	__printf_chk@PLT
	movl	32(%rsp), %r12d
	cmpl	%r13d, %r12d
	jle	.L16
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L36:
	movl	$32, %ecx
	movl	$10, %r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$32, %ecx
	cmove	%r12d, %ecx
.L3:
	movl	%r13d, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__printf_chk@PLT
	cmpl	%r13d, 32(%rsp)
	jge	.L6
	movl	36(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 36(%rsp)
	testl	%eax, %eax
	jne	.L20
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	32(%rsp), %edx
	testl	%edx, %edx
	jle	.L7
	movl	$1, %r12d
.L19:
	cmpl	%r12d, %edx
	je	.L17
.L38:
	movl	%r12d, %edx
	movl	$32, %ecx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__printf_chk@PLT
	movl	32(%rsp), %edx
	cmpl	%r12d, %edx
	jl	.L7
	cmpl	%r12d, %edx
	jne	.L38
.L17:
	movl	$10, %ecx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%edx, 12(%rsp)
	call	__printf_chk@PLT
	movl	12(%rsp), %edx
	leal	1(%rdx), %r12d
	movl	32(%rsp), %edx
	cmpl	%r12d, %edx
	jge	.L19
	jmp	.L7
.L37:
	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:

#include <stdio.h>

int main(void)
{
    int i;
    int s, e;
    int n;
    
    scanf("%d", &n);
    
    while (n--){
        scanf("%d%d", &s, &e);
        
        if (e > s){
            for (i = s; i <= e; i++){
                printf("%d%c", i, i == e ? '\n' : ' ');
            }
        }
        else {
            if ((0 <= s && s <= 5)){
                for (i = s; i >= e; i--){
                    printf("%d%c", i, i == e ? '\n' : ' ');
                }
            }
            else {
                for (i = s; i <= 9; i++){
                    printf("%d ", i);
                }
                if (0 <= e && e <= 5){
                    for (i = 5; i >= e; i--){
                        printf("%d%c", i, i == e ? '\n' : ' ');
                    }
                }
                else {
                    printf("5 4 3 2 1 0 ");
                    for (i = 1; i <= e; i++){
                        printf("%d%c", i, i == e ? '\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
 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(void)
{
    int i;
    int s, e;
    int n;
    
    scanf("%d", &n);
    
    while (n--){
        scanf("%d%d", &s, &e);
        
        if (e > s){
            for (i = s; i <= e; i++){
                printf("%d%c", i, i == e ? '\n' : ' ');
            }
        }
        else {
            if ((0 <= s && s <= 5)){
                for (i = s; i >= e; i--){
                    printf("%d%c", i, i == e ? '\n' : ' ');
                }
            }
            else {
                for (i = s; i <= 9; i++){
                    printf("%d ", i);
                }
                if (0 <= e && e <= 5){
                    for (i = 5; i >= e; i--){
                        printf("%d%c", i, i == e ? '\n' : ' ');
                    }
                }
                else {
                    printf("5 4 3 2 1 0 ");
                    for (i = 1; i <= e; i++){
                        printf("%d%c", i, i == e ? '\n' : ' ');
                    }
                }
            }
        }
    }
    
    return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d%c"
.LC3:
	.string	"%d "
.LC4:
	.string	"5 4 3 2 1 0 "
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L24:
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L3
	movl	-24(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L4
.L7:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L5
	movl	$10, %edx
	jmp	.L6
.L5:
	movl	$32, %edx
.L6:
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -12(%rbp)
.L4:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L7
	jmp	.L2
.L3:
	movl	-24(%rbp), %eax
	testl	%eax, %eax
	js	.L8
	movl	-24(%rbp), %eax
	cmpl	$5, %eax
	jg	.L8
	movl	-24(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L9
.L12:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L10
	movl	$10, %edx
	jmp	.L11
.L10:
	movl	$32, %edx
.L11:
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	subl	$1, -12(%rbp)
.L9:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L12
	jmp	.L2
.L8:
	movl	-24(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L13
.L14:
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -12(%rbp)
.L13:
	cmpl	$9, -12(%rbp)
	jle	.L14
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	js	.L15
	movl	-20(%rbp), %eax
	cmpl	$5, %eax
	jg	.L15
	movl	$5, -12(%rbp)
	jmp	.L16
.L19:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L17
	movl	$10, %edx
	jmp	.L18
.L17:
	movl	$32, %edx
.L18:
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	subl	$1, -12(%rbp)
.L16:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L19
	jmp	.L2
.L15:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -12(%rbp)
	jmp	.L20
.L23:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L21
	movl	$10, %edx
	jmp	.L22
.L21:
	movl	$32, %edx
.L22:
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -12(%rbp)
.L20:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L23
.L2:
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -16(%rbp)
	testl	%eax, %eax
	jne	.L24
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	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	"%d%c"
.LC3:
	.string	"%d "
.LC4:
	.string	"5 4 3 2 1 0 "
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L24:
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L3
	movl	-24(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L4
.L7:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L5
	movl	$10, %edx
	jmp	.L6
.L5:
	movl	$32, %edx
.L6:
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -12(%rbp)
.L4:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L7
	jmp	.L2
.L3:
	movl	-24(%rbp), %eax
	testl	%eax, %eax
	js	.L8
	movl	-24(%rbp), %eax
	cmpl	$5, %eax
	jg	.L8
	movl	-24(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L9
.L12:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L10
	movl	$10, %edx
	jmp	.L11
.L10:
	movl	$32, %edx
.L11:
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	subl	$1, -12(%rbp)
.L9:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L12
	jmp	.L2
.L8:
	movl	-24(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L13
.L14:
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -12(%rbp)
.L13:
	cmpl	$9, -12(%rbp)
	jle	.L14
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	js	.L15
	movl	-20(%rbp), %eax
	cmpl	$5, %eax
	jg	.L15
	movl	$5, -12(%rbp)
	jmp	.L16
.L19:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L17
	movl	$10, %edx
	jmp	.L18
.L17:
	movl	$32, %edx
.L18:
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	subl	$1, -12(%rbp)
.L16:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L19
	jmp	.L2
.L15:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -12(%rbp)
	jmp	.L20
.L23:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L21
	movl	$10, %edx
	jmp	.L22
.L21:
	movl	$32, %edx
.L22:
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -12(%rbp)
.L20:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L23
.L2:
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -16(%rbp)
	testl	%eax, %eax
	jne	.L24
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	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:
