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>
// route[i][0]はs>eの際に参照する(0へ向かう)
// route[1][1]はs<eの際に参照する
int route[10][2] = {
    {1,1}, //0
    {0,2}, //1
    {1,3}, //2
    {2,4}, //3
    {3,5}, //4
    {4,6}, //5
    {7,7},//6
    {8,8},//7
    {9,9},//8
    {5,5},//9
};

int
main(void) {
    char line[10];
    int n;
    int i, l, t;
    int s, e;
   
    fgets(line, 10, stdin);
    sscanf(line, "%d", &n);

    for (l = 0; l < n; l++) {
        if (fgets(line, 10, stdin) == NULL)
            break;
        sscanf(line, "%d %d", &s, &e);
       
        t = s < e;
        i = s;
        while (i != e) {
            printf("%d ", i);
            i = route[i][t ? 1 : 0];
            if (i == 0)
                t = !t;
        }
        printf("%d\n", i);
    }

    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d "
.LC3:
	.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
	movl	$10, %esi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	14(%rsp), %r13
	movq	%r13, %rdi
	call	fgets@PLT
	movq	%rsp, %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	leaq	.LC2(%rip), %rbp
	leaq	route(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	stdin(%rip), %rdx
	movl	$10, %esi
	movq	%r13, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L2
	xorl	%eax, %eax
	leaq	8(%rsp), %rcx
	leaq	4(%rsp), %rdx
	movq	%r13, %rdi
	leaq	.LC1(%rip), %rsi
	xorl	%r15d, %r15d
	call	__isoc99_sscanf@PLT
	movl	4(%rsp), %r14d
	movl	8(%rsp), %eax
	cmpl	%eax, %r14d
	setl	%r15b
	je	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%r14d, %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movslq	%r15d, %rax
	movslq	%r14d, %rdx
	leaq	(%rax,%rdx,2), %rax
	movl	(%rbx,%rax,4), %r14d
	movl	%r15d, %eax
	xorl	$1, %eax
	testl	%r14d, %r14d
	cmove	%eax, %r15d
	cmpl	%r14d, 8(%rsp)
	jne	.L5
.L3:
	movl	%r14d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__printf_chk@PLT
	cmpl	%r12d, (%rsp)
	jg	.L6
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$40, %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
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	route
	.data
	.align 32
	.type	route, @object
	.size	route, 80
route:
	.long	1
	.long	1
	.long	0
	.long	2
	.long	1
	.long	3
	.long	2
	.long	4
	.long	3
	.long	5
	.long	4
	.long	6
	.long	7
	.long	7
	.long	8
	.long	8
	.long	9
	.long	9
	.long	5
	.long	5
	.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 %d"
.LC2:
	.string	"%d "
.LC3:
	.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
	movl	$10, %esi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	14(%rsp), %r13
	movq	%r13, %rdi
	call	fgets@PLT
	movq	%rsp, %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	leaq	.LC2(%rip), %rbp
	leaq	route(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	stdin(%rip), %rdx
	movl	$10, %esi
	movq	%r13, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L2
	xorl	%eax, %eax
	leaq	8(%rsp), %rcx
	leaq	4(%rsp), %rdx
	movq	%r13, %rdi
	leaq	.LC1(%rip), %rsi
	xorl	%r15d, %r15d
	call	__isoc99_sscanf@PLT
	movl	4(%rsp), %r14d
	movl	8(%rsp), %eax
	cmpl	%eax, %r14d
	setl	%r15b
	je	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%r14d, %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movslq	%r15d, %rax
	movslq	%r14d, %rdx
	leaq	(%rax,%rdx,2), %rax
	movl	(%rbx,%rax,4), %r14d
	movl	%r15d, %eax
	xorl	$1, %eax
	testl	%r14d, %r14d
	cmove	%eax, %r15d
	cmpl	%r14d, 8(%rsp)
	jne	.L5
.L3:
	movl	%r14d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__printf_chk@PLT
	cmpl	%r12d, (%rsp)
	jg	.L6
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$40, %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
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	route
	.data
	.align 32
	.type	route, @object
	.size	route, 80
route:
	.long	1
	.long	1
	.long	0
	.long	2
	.long	1
	.long	3
	.long	2
	.long	4
	.long	3
	.long	5
	.long	4
	.long	6
	.long	7
	.long	7
	.long	8
	.long	8
	.long	9
	.long	9
	.long	5
	.long	5
	.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 %d"
.LC2:
	.string	"%d "
.LC3:
	.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
	movl	$10, %esi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	14(%rsp), %r13
	movq	%r13, %rdi
	call	fgets@PLT
	movq	%rsp, %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	leaq	.LC2(%rip), %rbp
	leaq	route(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	stdin(%rip), %rdx
	movl	$10, %esi
	movq	%r13, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L2
	xorl	%eax, %eax
	leaq	8(%rsp), %rcx
	leaq	4(%rsp), %rdx
	movq	%r13, %rdi
	leaq	.LC1(%rip), %rsi
	xorl	%r15d, %r15d
	call	__isoc99_sscanf@PLT
	movl	4(%rsp), %r14d
	movl	8(%rsp), %eax
	cmpl	%eax, %r14d
	setl	%r15b
	je	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%r14d, %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movslq	%r15d, %rax
	movslq	%r14d, %rdx
	leaq	(%rax,%rdx,2), %rax
	movl	(%rbx,%rax,4), %r14d
	movl	%r15d, %eax
	xorl	$1, %eax
	testl	%r14d, %r14d
	cmove	%eax, %r15d
	cmpl	%r14d, 8(%rsp)
	jne	.L5
.L3:
	movl	%r14d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__printf_chk@PLT
	cmpl	%r12d, (%rsp)
	jg	.L6
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$40, %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
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	route
	.data
	.align 32
	.type	route, @object
	.size	route, 80
route:
	.long	1
	.long	1
	.long	0
	.long	2
	.long	1
	.long	3
	.long	2
	.long	4
	.long	3
	.long	5
	.long	4
	.long	6
	.long	7
	.long	7
	.long	8
	.long	8
	.long	9
	.long	9
	.long	5
	.long	5
	.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>
// route[i][0]はs>eの際に参照する(0へ向かう)
// route[1][1]はs<eの際に参照する
int route[10][2] = {
    {1,1}, //0
    {0,2}, //1
    {1,3}, //2
    {2,4}, //3
    {3,5}, //4
    {4,6}, //5
    {7,7},//6
    {8,8},//7
    {9,9},//8
    {5,5},//9
};

int
main(void) {
    char line[10];
    int n;
    int i, l, t;
    int s, e;
   
    fgets(line, 10, stdin);
    sscanf(line, "%d", &n);

    for (l = 0; l < n; l++) {
        if (fgets(line, 10, stdin) == NULL)
            break;
        sscanf(line, "%d %d", &s, &e);
       
        t = s < e;
        i = s;
        while (i != e) {
            printf("%d ", i);
            i = route[i][t ? 1 : 0];
            if (i == 0)
                t = !t;
        }
        printf("%d\n", i);
    }

    return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
// route[i][0]はs>eの際に参照する(0へ向かう)
// route[1][1]はs<eの際に参照する
int route[10][2] = {
    {1,1}, //0
    {0,2}, //1
    {1,3}, //2
    {2,4}, //3
    {3,5}, //4
    {4,6}, //5
    {7,7},//6
    {8,8},//7
    {9,9},//8
    {5,5},//9
};

int
main(void) {
    char line[10];
    int n;
    int i, l, t;
    int s, e;
   
    fgets(line, 10, stdin);
    sscanf(line, "%d", &n);

    for (l = 0; l < n; l++) {
        if (fgets(line, 10, stdin) == NULL)
            break;
        sscanf(line, "%d %d", &s, &e);
       
        t = s < e;
        i = s;
        while (i != e) {
            printf("%d ", i);
            i = route[i][t ? 1 : 0];
            if (i == 0)
                t = !t;
        }
        printf("%d\n", i);
    }

    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:

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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
// route[i][0]はs>eの際に参照する(0へ向かう)
// route[1][1]はs<eの際に参照する
int route[10][2] = {
    {1,1}, //0
    {0,2}, //1
    {1,3}, //2
    {2,4}, //3
    {3,5}, //4
    {4,6}, //5
    {7,7},//6
    {8,8},//7
    {9,9},//8
    {5,5},//9
};

int
main(void) {
    char line[10];
    int n;
    int i, l, t;
    int s, e;
   
    fgets(line, 10, stdin);
    sscanf(line, "%d", &n);

    for (l = 0; l < n; l++) {
        if (fgets(line, 10, stdin) == NULL)
            break;
        sscanf(line, "%d %d", &s, &e);
       
        t = s < e;
        i = s;
        while (i != e) {
            printf("%d ", i);
            i = route[i][t ? 1 : 0];
            if (i == 0)
                t = !t;
        }
        printf("%d\n", i);
    }

    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d "
.LC3:
	.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
	movl	$10, %esi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	14(%rsp), %r13
	movq	%r13, %rdi
	call	fgets@PLT
	movq	%rsp, %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	leaq	.LC2(%rip), %rbp
	leaq	route(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	stdin(%rip), %rdx
	movl	$10, %esi
	movq	%r13, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L2
	xorl	%eax, %eax
	leaq	8(%rsp), %rcx
	leaq	4(%rsp), %rdx
	movq	%r13, %rdi
	leaq	.LC1(%rip), %rsi
	xorl	%r15d, %r15d
	call	__isoc99_sscanf@PLT
	movl	4(%rsp), %r14d
	movl	8(%rsp), %eax
	cmpl	%eax, %r14d
	setl	%r15b
	je	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%r14d, %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movslq	%r15d, %rax
	movslq	%r14d, %rdx
	leaq	(%rax,%rdx,2), %rax
	movl	(%rbx,%rax,4), %r14d
	movl	%r15d, %eax
	xorl	$1, %eax
	testl	%r14d, %r14d
	cmove	%eax, %r15d
	cmpl	%r14d, 8(%rsp)
	jne	.L5
.L3:
	movl	%r14d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__printf_chk@PLT
	cmpl	%r12d, (%rsp)
	jg	.L6
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$40, %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
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	route
	.data
	.align 32
	.type	route, @object
	.size	route, 80
route:
	.long	1
	.long	1
	.long	0
	.long	2
	.long	1
	.long	3
	.long	2
	.long	4
	.long	3
	.long	5
	.long	4
	.long	6
	.long	7
	.long	7
	.long	8
	.long	8
	.long	9
	.long	9
	.long	5
	.long	5
	.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 %d"
.LC2:
	.string	"%d "
.LC3:
	.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
	movl	$10, %esi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	14(%rsp), %r13
	movq	%r13, %rdi
	call	fgets@PLT
	movq	%rsp, %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	leaq	.LC2(%rip), %rbp
	leaq	route(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	stdin(%rip), %rdx
	movl	$10, %esi
	movq	%r13, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L2
	xorl	%eax, %eax
	leaq	8(%rsp), %rcx
	leaq	4(%rsp), %rdx
	movq	%r13, %rdi
	leaq	.LC1(%rip), %rsi
	xorl	%r15d, %r15d
	call	__isoc99_sscanf@PLT
	movl	4(%rsp), %r14d
	movl	8(%rsp), %eax
	cmpl	%eax, %r14d
	setl	%r15b
	je	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%r14d, %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movslq	%r15d, %rax
	movslq	%r14d, %rdx
	leaq	(%rax,%rdx,2), %rax
	movl	(%rbx,%rax,4), %r14d
	movl	%r15d, %eax
	xorl	$1, %eax
	testl	%r14d, %r14d
	cmove	%eax, %r15d
	cmpl	%r14d, 8(%rsp)
	jne	.L5
.L3:
	movl	%r14d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__printf_chk@PLT
	cmpl	%r12d, (%rsp)
	jg	.L6
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$40, %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
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	route
	.data
	.align 32
	.type	route, @object
	.size	route, 80
route:
	.long	1
	.long	1
	.long	0
	.long	2
	.long	1
	.long	3
	.long	2
	.long	4
	.long	3
	.long	5
	.long	4
	.long	6
	.long	7
	.long	7
	.long	8
	.long	8
	.long	9
	.long	9
	.long	5
	.long	5
	.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:
```