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>
#include <string.h>
#include <stdlib.h>

int from,to,i,j,k,n;

void print(){printf("%s%d",i==from ? "" : " ",i);}

int main(){
	for(scanf("%d",&n);n>0;n--){
		scanf("%d %d",&from,&to);
		if(from>5){
			i=from;
			while(i!=to){
				print();
				if(i>5){i++;if(i>9)i=5;}
				else i--;
				if(i==0)break;
			}
			while(i!=to){
				print();i++;
			}
			printf(" %d\n",to);
		}
		else{
			if(from>to){for(i=from;i>=to;i--){print();}printf("\n");}
			else{for(i=from;i<=to;i++){print();}printf("\n");}
		}
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	from
	.bss
	.align 4
	.type	from, @object
	.size	from, 4
from:
	.zero	4
	.globl	to
	.align 4
	.type	to, @object
	.size	to, 4
to:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata
.LC0:
	.string	""
.LC1:
	.string	" "
.LC2:
	.string	"%s%d"
	.text
	.globl	print
	.type	print, @function
print:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	i(%rip), %edx
	movl	i(%rip), %ecx
	movl	from(%rip), %eax
	cmpl	%eax, %ecx
	jne	.L2
	leaq	.LC0(%rip), %rax
	jmp	.L3
.L2:
	leaq	.LC1(%rip), %rax
.L3:
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print, .-print
	.section	.rodata
.LC3:
	.string	"%d"
.LC4:
	.string	"%d %d"
.LC5:
	.string	" %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L5
.L20:
	leaq	to(%rip), %rax
	movq	%rax, %rdx
	leaq	from(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	from(%rip), %eax
	cmpl	$5, %eax
	jle	.L6
	movl	from(%rip), %eax
	movl	%eax, i(%rip)
	jmp	.L7
.L11:
	movl	$0, %eax
	call	print
	movl	i(%rip), %eax
	cmpl	$5, %eax
	jle	.L8
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
	movl	i(%rip), %eax
	cmpl	$9, %eax
	jle	.L9
	movl	$5, i(%rip)
	jmp	.L9
.L8:
	movl	i(%rip), %eax
	subl	$1, %eax
	movl	%eax, i(%rip)
.L9:
	movl	i(%rip), %eax
	testl	%eax, %eax
	je	.L22
.L7:
	movl	i(%rip), %edx
	movl	to(%rip), %eax
	cmpl	%eax, %edx
	jne	.L11
	jmp	.L12
.L22:
	nop
	jmp	.L12
.L13:
	movl	$0, %eax
	call	print
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L12:
	movl	i(%rip), %edx
	movl	to(%rip), %eax
	cmpl	%eax, %edx
	jne	.L13
	movl	to(%rip), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L14
.L6:
	movl	from(%rip), %edx
	movl	to(%rip), %eax
	cmpl	%eax, %edx
	jle	.L15
	movl	from(%rip), %eax
	movl	%eax, i(%rip)
	jmp	.L16
.L17:
	movl	$0, %eax
	call	print
	movl	i(%rip), %eax
	subl	$1, %eax
	movl	%eax, i(%rip)
.L16:
	movl	i(%rip), %edx
	movl	to(%rip), %eax
	cmpl	%eax, %edx
	jge	.L17
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L14
.L15:
	movl	from(%rip), %eax
	movl	%eax, i(%rip)
	jmp	.L18
.L19:
	movl	$0, %eax
	call	print
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L18:
	movl	i(%rip), %edx
	movl	to(%rip), %eax
	cmpl	%eax, %edx
	jle	.L19
	movl	$10, %edi
	call	putchar@PLT
.L14:
	movl	n(%rip), %eax
	subl	$1, %eax
	movl	%eax, n(%rip)
.L5:
	movl	n(%rip), %eax
	testl	%eax, %eax
	jg	.L20
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	""
.LC1:
	.string	" "
.LC2:
	.string	"%s%d"
	.text
	.p2align 4
	.globl	print
	.type	print, @function
print:
.LFB51:
	.cfi_startproc
	endbr64
	leaq	.LC1(%rip), %rax
	movl	i(%rip), %ecx
	leaq	.LC0(%rip), %rdx
	cmpl	from(%rip), %ecx
	cmovne	%rax, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE51:
	.size	print, .-print
	.section	.rodata.str1.1
.LC3:
	.string	"%d"
.LC4:
	.string	"%d %d"
.LC5:
	.string	" %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	n(%rip), %rsi
	leaq	.LC3(%rip), %rdi
	xorl	%eax, %eax
	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	$8, %rsp
	.cfi_def_cfa_offset 64
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L34
	leaq	to(%rip), %r15
	leaq	from(%rip), %r14
	leaq	.LC4(%rip), %r13
	leaq	.LC2(%rip), %rbx
	leaq	.LC0(%rip), %r12
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	from(%rip), %ecx
	cmpl	$5, %ecx
	jg	.L11
	cmpl	to(%rip), %ecx
	movl	%ecx, i(%rip)
	movl	%ecx, %eax
	jle	.L27
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L39:
	xorl	%eax, %eax
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	i(%rip), %eax
	leal	-1(%rax), %ecx
	cmpl	%ecx, to(%rip)
	movl	%ecx, i(%rip)
	jg	.L23
.L22:
	movl	from(%rip), %eax
.L24:
	cmpl	%ecx, %eax
	jne	.L39
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	i(%rip), %eax
	leal	-1(%rax), %ecx
	cmpl	to(%rip), %ecx
	movl	%ecx, i(%rip)
	jge	.L22
	.p2align 4,,10
	.p2align 3
.L23:
	movl	$10, %edi
	call	putchar@PLT
.L19:
	movl	n(%rip), %eax
	subl	$1, %eax
	movl	%eax, n(%rip)
	testl	%eax, %eax
	jg	.L6
.L34:
	addq	$8, %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
.L40:
	.cfi_restore_state
	movl	from(%rip), %eax
.L27:
	movq	%rbp, %rdx
	cmpl	%eax, %ecx
	jne	.L38
	movq	%r12, %rdx
.L38:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	i(%rip), %eax
	leal	1(%rax), %ecx
	cmpl	to(%rip), %ecx
	movl	%ecx, i(%rip)
	jle	.L40
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%ecx, i(%rip)
.L8:
	cmpl	%ecx, to(%rip)
	je	.L41
.L16:
	cmpl	%ecx, from(%rip)
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	cmove	%r12, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	i(%rip), %ecx
	cmpl	$5, %ecx
	jle	.L10
	addl	$1, %ecx
	cmpl	$9, %ecx
	jle	.L11
	movl	$5, i(%rip)
	movl	$5, %ecx
	cmpl	%ecx, to(%rip)
	jne	.L16
.L41:
	movl	%ecx, %edx
.L15:
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L10:
	subl	$1, %ecx
	movl	%ecx, i(%rip)
	jne	.L8
	movl	to(%rip), %edx
	testl	%edx, %edx
	je	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%ecx, from(%rip)
	movq	%rbp, %rdx
	jne	.L36
	movq	%r12, %rdx
.L36:
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	i(%rip), %eax
	movl	to(%rip), %edx
	leal	1(%rax), %ecx
	movl	%ecx, i(%rip)
	cmpl	%edx, %ecx
	jne	.L14
	jmp	.L15
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	to
	.align 4
	.type	to, @object
	.size	to, 4
to:
	.zero	4
	.globl	from
	.align 4
	.type	from, @object
	.size	from, 4
from:
	.zero	4
	.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	""
.LC1:
	.string	" "
.LC2:
	.string	"%s%d"
	.text
	.p2align 4
	.globl	print
	.type	print, @function
print:
.LFB51:
	.cfi_startproc
	endbr64
	leaq	.LC1(%rip), %rax
	movl	i(%rip), %ecx
	leaq	.LC0(%rip), %rdx
	cmpl	from(%rip), %ecx
	cmovne	%rax, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE51:
	.size	print, .-print
	.section	.rodata.str1.1
.LC3:
	.string	"%d"
.LC4:
	.string	"%d %d"
.LC5:
	.string	" %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	n(%rip), %rsi
	leaq	.LC3(%rip), %rdi
	xorl	%eax, %eax
	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	$8, %rsp
	.cfi_def_cfa_offset 64
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L34
	leaq	to(%rip), %r15
	leaq	from(%rip), %r14
	leaq	.LC4(%rip), %r13
	leaq	.LC2(%rip), %rbx
	leaq	.LC0(%rip), %r12
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	from(%rip), %ecx
	cmpl	$5, %ecx
	jg	.L11
	cmpl	to(%rip), %ecx
	movl	%ecx, i(%rip)
	movl	%ecx, %eax
	jle	.L27
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L39:
	xorl	%eax, %eax
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	i(%rip), %eax
	leal	-1(%rax), %ecx
	cmpl	%ecx, to(%rip)
	movl	%ecx, i(%rip)
	jg	.L23
.L22:
	movl	from(%rip), %eax
.L24:
	cmpl	%ecx, %eax
	jne	.L39
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	i(%rip), %eax
	leal	-1(%rax), %ecx
	cmpl	to(%rip), %ecx
	movl	%ecx, i(%rip)
	jge	.L22
	.p2align 4,,10
	.p2align 3
.L23:
	movl	$10, %edi
	call	putchar@PLT
.L19:
	movl	n(%rip), %eax
	subl	$1, %eax
	movl	%eax, n(%rip)
	testl	%eax, %eax
	jg	.L6
.L34:
	addq	$8, %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
.L40:
	.cfi_restore_state
	movl	from(%rip), %eax
.L27:
	movq	%rbp, %rdx
	cmpl	%eax, %ecx
	jne	.L38
	movq	%r12, %rdx
.L38:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	i(%rip), %eax
	leal	1(%rax), %ecx
	cmpl	to(%rip), %ecx
	movl	%ecx, i(%rip)
	jle	.L40
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%ecx, i(%rip)
.L8:
	cmpl	%ecx, to(%rip)
	je	.L41
.L16:
	cmpl	%ecx, from(%rip)
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	cmove	%r12, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	i(%rip), %ecx
	cmpl	$5, %ecx
	jle	.L10
	addl	$1, %ecx
	cmpl	$9, %ecx
	jle	.L11
	movl	$5, i(%rip)
	movl	$5, %ecx
	cmpl	%ecx, to(%rip)
	jne	.L16
.L41:
	movl	%ecx, %edx
.L15:
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L10:
	subl	$1, %ecx
	movl	%ecx, i(%rip)
	jne	.L8
	movl	to(%rip), %edx
	testl	%edx, %edx
	je	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%ecx, from(%rip)
	movq	%rbp, %rdx
	jne	.L36
	movq	%r12, %rdx
.L36:
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	i(%rip), %eax
	movl	to(%rip), %edx
	leal	1(%rax), %ecx
	movl	%ecx, i(%rip)
	cmpl	%edx, %ecx
	jne	.L14
	jmp	.L15
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	to
	.align 4
	.type	to, @object
	.size	to, 4
to:
	.zero	4
	.globl	from
	.align 4
	.type	from, @object
	.size	from, 4
from:
	.zero	4
	.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>
#include <string.h>
#include <stdlib.h>

int from,to,i,j,k,n;

void print(){printf("%s%d",i==from ? "" : " ",i);}

int main(){
	for(scanf("%d",&n);n>0;n--){
		scanf("%d %d",&from,&to);
		if(from>5){
			i=from;
			while(i!=to){
				print();
				if(i>5){i++;if(i>9)i=5;}
				else i--;
				if(i==0)break;
			}
			while(i!=to){
				print();i++;
			}
			printf(" %d\n",to);
		}
		else{
			if(from>to){for(i=from;i>=to;i--){print();}printf("\n");}
			else{for(i=from;i<=to;i++){print();}printf("\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>
#include <string.h>
#include <stdlib.h>

int from,to,i,j,k,n;

void print(){printf("%s%d",i==from ? "" : " ",i);}

int main(){
	for(scanf("%d",&n);n>0;n--){
		scanf("%d %d",&from,&to);
		if(from>5){
			i=from;
			while(i!=to){
				print();
				if(i>5){i++;if(i>9)i=5;}
				else i--;
				if(i==0)break;
			}
			while(i!=to){
				print();i++;
			}
			printf(" %d\n",to);
		}
		else{
			if(from>to){for(i=from;i>=to;i--){print();}printf("\n");}
			else{for(i=from;i<=to;i++){print();}printf("\n");}
		}
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	from
	.bss
	.align 4
	.type	from, @object
	.size	from, 4
from:
	.zero	4
	.globl	to
	.align 4
	.type	to, @object
	.size	to, 4
to:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata
.LC0:
	.string	""
.LC1:
	.string	" "
.LC2:
	.string	"%s%d"
	.text
	.globl	print
	.type	print, @function
print:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	i(%rip), %edx
	movl	i(%rip), %ecx
	movl	from(%rip), %eax
	cmpl	%eax, %ecx
	jne	.L2
	leaq	.LC0(%rip), %rax
	jmp	.L3
.L2:
	leaq	.LC1(%rip), %rax
.L3:
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print, .-print
	.section	.rodata
.LC3:
	.string	"%d"
.LC4:
	.string	"%d %d"
.LC5:
	.string	" %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L5
.L20:
	leaq	to(%rip), %rax
	movq	%rax, %rdx
	leaq	from(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	from(%rip), %eax
	cmpl	$5, %eax
	jle	.L6
	movl	from(%rip), %eax
	movl	%eax, i(%rip)
	jmp	.L7
.L11:
	movl	$0, %eax
	call	print
	movl	i(%rip), %eax
	cmpl	$5, %eax
	jle	.L8
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
	movl	i(%rip), %eax
	cmpl	$9, %eax
	jle	.L9
	movl	$5, i(%rip)
	jmp	.L9
.L8:
	movl	i(%rip), %eax
	subl	$1, %eax
	movl	%eax, i(%rip)
.L9:
	movl	i(%rip), %eax
	testl	%eax, %eax
	je	.L22
.L7:
	movl	i(%rip), %edx
	movl	to(%rip), %eax
	cmpl	%eax, %edx
	jne	.L11
	jmp	.L12
.L22:
	nop
	jmp	.L12
.L13:
	movl	$0, %eax
	call	print
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L12:
	movl	i(%rip), %edx
	movl	to(%rip), %eax
	cmpl	%eax, %edx
	jne	.L13
	movl	to(%rip), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L14
.L6:
	movl	from(%rip), %edx
	movl	to(%rip), %eax
	cmpl	%eax, %edx
	jle	.L15
	movl	from(%rip), %eax
	movl	%eax, i(%rip)
	jmp	.L16
.L17:
	movl	$0, %eax
	call	print
	movl	i(%rip), %eax
	subl	$1, %eax
	movl	%eax, i(%rip)
.L16:
	movl	i(%rip), %edx
	movl	to(%rip), %eax
	cmpl	%eax, %edx
	jge	.L17
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L14
.L15:
	movl	from(%rip), %eax
	movl	%eax, i(%rip)
	jmp	.L18
.L19:
	movl	$0, %eax
	call	print
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L18:
	movl	i(%rip), %edx
	movl	to(%rip), %eax
	cmpl	%eax, %edx
	jle	.L19
	movl	$10, %edi
	call	putchar@PLT
.L14:
	movl	n(%rip), %eax
	subl	$1, %eax
	movl	%eax, n(%rip)
.L5:
	movl	n(%rip), %eax
	testl	%eax, %eax
	jg	.L20
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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
	.globl	from
	.bss
	.align 4
	.type	from, @object
	.size	from, 4
from:
	.zero	4
	.globl	to
	.align 4
	.type	to, @object
	.size	to, 4
to:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata
.LC0:
	.string	""
.LC1:
	.string	" "
.LC2:
	.string	"%s%d"
	.text
	.globl	print
	.type	print, @function
print:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	i(%rip), %edx
	movl	i(%rip), %ecx
	movl	from(%rip), %eax
	cmpl	%eax, %ecx
	jne	.L2
	leaq	.LC0(%rip), %rax
	jmp	.L3
.L2:
	leaq	.LC1(%rip), %rax
.L3:
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print, .-print
	.section	.rodata
.LC3:
	.string	"%d"
.LC4:
	.string	"%d %d"
.LC5:
	.string	" %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L5
.L20:
	leaq	to(%rip), %rax
	movq	%rax, %rdx
	leaq	from(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	from(%rip), %eax
	cmpl	$5, %eax
	jle	.L6
	movl	from(%rip), %eax
	movl	%eax, i(%rip)
	jmp	.L7
.L11:
	movl	$0, %eax
	call	print
	movl	i(%rip), %eax
	cmpl	$5, %eax
	jle	.L8
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
	movl	i(%rip), %eax
	cmpl	$9, %eax
	jle	.L9
	movl	$5, i(%rip)
	jmp	.L9
.L8:
	movl	i(%rip), %eax
	subl	$1, %eax
	movl	%eax, i(%rip)
.L9:
	movl	i(%rip), %eax
	testl	%eax, %eax
	je	.L22
.L7:
	movl	i(%rip), %edx
	movl	to(%rip), %eax
	cmpl	%eax, %edx
	jne	.L11
	jmp	.L12
.L22:
	nop
	jmp	.L12
.L13:
	movl	$0, %eax
	call	print
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L12:
	movl	i(%rip), %edx
	movl	to(%rip), %eax
	cmpl	%eax, %edx
	jne	.L13
	movl	to(%rip), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L14
.L6:
	movl	from(%rip), %edx
	movl	to(%rip), %eax
	cmpl	%eax, %edx
	jle	.L15
	movl	from(%rip), %eax
	movl	%eax, i(%rip)
	jmp	.L16
.L17:
	movl	$0, %eax
	call	print
	movl	i(%rip), %eax
	subl	$1, %eax
	movl	%eax, i(%rip)
.L16:
	movl	i(%rip), %edx
	movl	to(%rip), %eax
	cmpl	%eax, %edx
	jge	.L17
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L14
.L15:
	movl	from(%rip), %eax
	movl	%eax, i(%rip)
	jmp	.L18
.L19:
	movl	$0, %eax
	call	print
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L18:
	movl	i(%rip), %edx
	movl	to(%rip), %eax
	cmpl	%eax, %edx
	jle	.L19
	movl	$10, %edi
	call	putchar@PLT
.L14:
	movl	n(%rip), %eax
	subl	$1, %eax
	movl	%eax, n(%rip)
.L5:
	movl	n(%rip), %eax
	testl	%eax, %eax
	jg	.L20
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
