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

#define INF 999999

int x,y,t,n,m,route[2][20][20];
int i,j,k,l;

int main(){
	while(scanf("%d",&m)*m){
		n=0;
		for(i=0;i<11;i++){
			for(j=0;j<11;j++){
				if(i!=j)route[0][i][j]=INF;
			}
		}

		for(i=0;i<m;i++){
			scanf("%d %d %d",&x,&y,&t);
			if(x+1>n)n=x+1;
			if(y+1>n)n=y+1;
			route[0][x][y]=t;
			route[0][y][x]=t;
		}

		for(l=1;pow(2.0,l-1)<n-1;l++){
			for(i=0;i<n;i++){
				for(j=0;j<n;j++){
					route[l%2][i][j]=route[(l+1)%2][i][j];
					for(k=0;k<n;k++){
						if(route[l%2][i][j]>route[(l+1)%2][i][k]+route[(l+1)%2][k][j]){
							route[l%2][i][j]=route[(l+1)%2][i][k]+route[(l+1)%2][k][j];
						}
					}
				}
			}
		}

		l=(l-1)%2;

		x=INF;
		for(i=0;i<n;i++){
			k=0;
			for(j=0;j<n;j++)k+=route[l][i][j];
			if(k<x){
				x=k;
				y=i;
			}
		}

		printf("%d %d\n",y,x);

	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	x
	.bss
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	route
	.align 32
	.type	route, @object
	.size	route, 3200
route:
	.zero	3200
	.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	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC2:
	.string	"%d %d\n"
.LC3:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	jmp	.L2
.L26:
	movl	$0, n(%rip)
	movl	$0, i(%rip)
	jmp	.L3
.L7:
	movl	$0, j(%rip)
	jmp	.L4
.L6:
	movl	i(%rip), %edx
	movl	j(%rip), %eax
	cmpl	%eax, %edx
	je	.L5
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	$999999, (%rdx,%rax)
.L5:
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L4:
	movl	j(%rip), %eax
	cmpl	$10, %eax
	jle	.L6
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L3:
	movl	i(%rip), %eax
	cmpl	$10, %eax
	jle	.L7
	movl	$0, i(%rip)
	jmp	.L8
.L11:
	leaq	t(%rip), %rax
	movq	%rax, %rcx
	leaq	y(%rip), %rax
	movq	%rax, %rdx
	leaq	x(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	x(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L9
	movl	x(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
.L9:
	movl	y(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L10
	movl	y(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
.L10:
	movl	x(%rip), %eax
	movl	y(%rip), %ecx
	movl	t(%rip), %edx
	movslq	%ecx, %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	route(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	y(%rip), %eax
	movl	x(%rip), %ecx
	movl	t(%rip), %edx
	movslq	%ecx, %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	route(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L8:
	movl	i(%rip), %edx
	movl	m(%rip), %eax
	cmpl	%eax, %edx
	jl	.L11
	movl	$1, l(%rip)
	jmp	.L12
.L20:
	movl	$0, i(%rip)
	jmp	.L13
.L19:
	movl	$0, j(%rip)
	jmp	.L14
.L18:
	movl	l(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %r10d
	movl	i(%rip), %ecx
	movl	j(%rip), %edx
	movl	l(%rip), %eax
	movl	%eax, %esi
	sarl	$31, %esi
	shrl	$31, %esi
	addl	%esi, %eax
	andl	$1, %eax
	subl	%esi, %eax
	movl	%eax, %r9d
	movl	i(%rip), %esi
	movl	j(%rip), %edi
	movslq	%edx, %r8
	movslq	%r10d, %rdx
	movslq	%ecx, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movslq	%edi, %rdi
	movslq	%r9d, %rdx
	movslq	%esi, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rsi, %rdx
	salq	$2, %rdx
	addq	%rsi, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	$0, k(%rip)
	jmp	.L15
.L17:
	movl	l(%rip), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rsi
	movslq	%ecx, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	l(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	i(%rip), %eax
	movl	k(%rip), %edx
	movslq	%edx, %rdi
	movslq	%ecx, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %edi
	movl	l(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	k(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %r8
	movslq	%ecx, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%edi, %eax
	cmpl	%eax, %esi
	jle	.L16
	movl	l(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	i(%rip), %eax
	movl	k(%rip), %edx
	movslq	%edx, %rsi
	movslq	%ecx, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	l(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	k(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rdi
	movslq	%ecx, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	l(%rip), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %r8d
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	addl	%ecx, %esi
	movslq	%edx, %rdi
	movslq	%r8d, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	%esi, (%rdx,%rax)
.L16:
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L15:
	movl	k(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L17
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L14:
	movl	j(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L18
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L13:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L19
	movl	l(%rip), %eax
	addl	$1, %eax
	movl	%eax, l(%rip)
.L12:
	movl	l(%rip), %eax
	subl	$1, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movq	.LC1(%rip), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movl	n(%rip), %eax
	subl	$1, %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	comisd	%xmm0, %xmm1
	ja	.L20
	movl	l(%rip), %eax
	subl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, l(%rip)
	movl	$999999, x(%rip)
	movl	$0, i(%rip)
	jmp	.L21
.L25:
	movl	$0, k(%rip)
	movl	$0, j(%rip)
	jmp	.L22
.L23:
	movl	l(%rip), %edx
	movl	i(%rip), %eax
	movl	j(%rip), %ecx
	movslq	%ecx, %rsi
	movslq	%edx, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	k(%rip), %eax
	addl	%edx, %eax
	movl	%eax, k(%rip)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L22:
	movl	j(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L23
	movl	k(%rip), %edx
	movl	x(%rip), %eax
	cmpl	%eax, %edx
	jge	.L24
	movl	k(%rip), %eax
	movl	%eax, x(%rip)
	movl	i(%rip), %eax
	movl	%eax, y(%rip)
.L24:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L21:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L25
	movl	x(%rip), %edx
	movl	y(%rip), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	m(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	m(%rip), %edx
	imull	%edx, %eax
	testl	%eax, %eax
	jne	.L26
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1073741824
	.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
.LC2:
	.string	"%d %d %d"
.LC4:
	.string	"%d %d\n"
.LC5:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	$24, %rsp
	.cfi_def_cfa_offset 80
.L2:
	xorl	%eax, %eax
	leaq	m(%rip), %rsi
	leaq	.LC5(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	m(%rip), %edx
	movdqa	.LC0(%rip), %xmm2
	imull	%edx, %eax
	testl	%eax, %eax
	je	.L46
	movq	.LC1(%rip), %rax
	movl	$0, n(%rip)
	movl	$999999, 80+route(%rip)
	movq	%rax, 36+route(%rip)
	movl	$999999, 120+route(%rip)
	movq	%rax, 160+route(%rip)
	movq	%rax, 240+route(%rip)
	movl	$999999, 248+route(%rip)
	movq	%rax, 272+route(%rip)
	movl	$999999, 280+route(%rip)
	movq	%rax, 356+route(%rip)
	movl	$999999, 416+route(%rip)
	movl	$999999, 440+route(%rip)
	movq	%rax, 496+route(%rip)
	movq	%rax, 576+route(%rip)
	movl	$999999, 584+route(%rip)
	movq	%rax, 592+route(%rip)
	movl	$999999, 600+route(%rip)
	movups	%xmm2, 4+route(%rip)
	movups	%xmm2, 20+route(%rip)
	movups	%xmm2, 88+route(%rip)
	movups	%xmm2, 104+route(%rip)
	movups	%xmm2, 172+route(%rip)
	movups	%xmm2, 188+route(%rip)
	movaps	%xmm2, 256+route(%rip)
	movaps	%xmm2, 320+route(%rip)
	movups	%xmm2, 340+route(%rip)
	movaps	%xmm2, 400+route(%rip)
	movups	%xmm2, 424+route(%rip)
	movaps	%xmm2, 480+route(%rip)
	movups	%xmm2, 508+route(%rip)
	movaps	%xmm2, 560+route(%rip)
	movaps	%xmm2, 640+route(%rip)
	movq	%rax, 676+route(%rip)
	movl	$999999, 752+route(%rip)
	movl	$999999, 760+route(%rip)
	movq	%rax, 832+route(%rip)
	movl	$11, j(%rip)
	movl	$0, i(%rip)
	movaps	%xmm2, 656+route(%rip)
	movaps	%xmm2, 720+route(%rip)
	movaps	%xmm2, 736+route(%rip)
	movaps	%xmm2, 800+route(%rip)
	movaps	%xmm2, 816+route(%rip)
	testl	%edx, %edx
	jle	.L24
	leaq	t(%rip), %r15
	leaq	y(%rip), %r14
	leaq	x(%rip), %r13
	leaq	.LC2(%rip), %r12
	leaq	route(%rip), %rbx
.L8:
	movq	%r15, %rcx
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	x(%rip), %rax
	movl	n(%rip), %ebp
	cmpl	%ebp, %eax
	jl	.L4
	leal	1(%rax), %ebp
	movl	%ebp, n(%rip)
.L4:
	movslq	y(%rip), %rdx
	cmpl	%ebp, %edx
	jl	.L5
	leaq	(%rax,%rax,4), %rsi
	movl	t(%rip), %ecx
	leal	1(%rdx), %ebp
	leaq	(%rdx,%rsi,4), %rsi
	leaq	(%rdx,%rdx,4), %rdx
	movl	%ebp, n(%rip)
	leaq	(%rax,%rdx,4), %rax
	movl	%ecx, (%rbx,%rsi,4)
	movl	%ecx, (%rbx,%rax,4)
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	%eax, m(%rip)
	movl	%eax, i(%rip)
	jg	.L8
.L7:
	leal	-1(%rbp), %r15d
	movl	%r15d, %eax
.L3:
	pxor	%xmm3, %xmm3
	movl	%r15d, %ebx
	movl	%r15d, 4(%rsp)
	xorl	%r12d, %r12d
	cvtsi2sdl	%eax, %xmm3
	leaq	5(%rbx,%rbx,4), %r14
	salq	$4, %r14
.L9:
	pxor	%xmm1, %xmm1
	movq	.LC3(%rip), %rax
	leal	1(%r12), %r15d
	movsd	%xmm3, 8(%rsp)
	cvtsi2sdl	%r12d, %xmm1
	movl	%r15d, l(%rip)
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	8(%rsp), %xmm3
	comisd	%xmm0, %xmm3
	jbe	.L47
	movl	$0, i(%rip)
	testl	%ebp, %ebp
	jle	.L10
	addl	$2, %r12d
	leaq	route(%rip), %rdi
	xorl	%r10d, %r10d
	movl	%r12d, %edx
	shrl	$31, %edx
	leal	(%r12,%rdx), %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%r15d, %edx
	cltq
	andl	$1, %edx
	leaq	(%rax,%rax,4), %rax
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rax,4), %rax
	leaq	(%rdx,%rdx,4), %r12
	movq	%rax, %r13
	salq	$4, %rax
	leaq	4(%rdi), %rdx
	salq	$6, %r13
	salq	$6, %r12
	addq	%rbx, %rax
	addq	%rdi, %r13
	addq	%rdi, %r12
	leaq	(%rdx,%rax,4), %r11
	movq	%r13, %rdi
	.p2align 4,,10
	.p2align 3
.L14:
	leaq	(%r12,%r10), %r8
	movq	%r13, %r9
	.p2align 4,,10
	.p2align 3
.L13:
	movl	(%r9,%r10), %esi
	movq	%r9, %rcx
	xorl	%edx, %edx
	movl	%esi, (%r8)
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L25:
	movq	%rax, %rdx
.L12:
	movl	(%rcx), %eax
	addl	(%rdi,%rdx,4), %eax
	cmpl	%esi, %eax
	jge	.L11
	movl	%eax, (%r8)
	movl	%eax, %esi
.L11:
	leaq	1(%rdx), %rax
	addq	$80, %rcx
	cmpq	%rbx, %rdx
	jne	.L25
	addq	$4, %r9
	addq	$4, %r8
	cmpq	%r9, %r11
	jne	.L13
	addq	$80, %r10
	addq	$80, %rdi
	cmpq	%r10, %r14
	jne	.L14
	movl	%ebp, k(%rip)
	movl	%ebp, j(%rip)
.L10:
	movl	%r15d, %r12d
	jmp	.L9
.L5:
	leaq	(%rax,%rax,4), %rsi
	movl	t(%rip), %ecx
	leaq	(%rdx,%rsi,4), %rsi
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %rax
	movl	%ecx, (%rbx,%rsi,4)
	movl	%ecx, (%rbx,%rax,4)
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	m(%rip), %eax
	movl	%eax, i(%rip)
	jl	.L8
	jmp	.L7
.L47:
	movl	%r12d, %eax
	movl	4(%rsp), %r15d
	movl	$999999, x(%rip)
	movl	$0, i(%rip)
	andl	$1, %eax
	movl	%eax, l(%rip)
	testl	%ebp, %ebp
	jle	.L26
	cltq
	leaq	route(%rip), %rbx
	movl	%ebp, %r9d
	movl	%ebp, %r12d
	leaq	(%rax,%rax,4), %rax
	shrl	$2, %r9d
	andl	$-4, %r12d
	xorl	%esi, %esi
	leaq	(%rax,%rax,4), %r8
	xorl	%r11d, %r11d
	movl	$999999, %r10d
	movq	%r8, %rdx
	salq	$4, %r8
	salq	$6, %rdx
	addq	%rbx, %rdx
.L21:
	cmpl	$2, %r15d
	jbe	.L27
	movdqa	(%rdx), %xmm0
	cmpl	$1, %r9d
	jbe	.L18
	paddd	16(%rdx), %xmm0
	cmpl	$2, %r9d
	je	.L18
	paddd	32(%rdx), %xmm0
	cmpl	$3, %r9d
	je	.L18
	paddd	48(%rdx), %xmm0
	cmpl	$4, %r9d
	je	.L18
	paddd	64(%rdx), %xmm0
.L18:
	movdqa	%xmm0, %xmm1
	movl	%r12d, %ecx
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	%ebp, %r12d
	je	.L19
.L17:
	movslq	%esi, %rdi
	movslq	%ecx, %r13
	leaq	(%rdi,%rdi,4), %rdi
	leaq	(%r8,%rdi,4), %rdi
	addq	%rdi, %r13
	addl	(%rbx,%r13,4), %eax
	leal	1(%rcx), %r13d
	cmpl	%r13d, %ebp
	jle	.L19
	movslq	%r13d, %r13
	addl	$2, %ecx
	addq	%rdi, %r13
	addl	(%rbx,%r13,4), %eax
	cmpl	%ecx, %ebp
	jle	.L19
	movslq	%ecx, %rcx
	addq	%rcx, %rdi
	addl	(%rbx,%rdi,4), %eax
.L19:
	cmpl	%r10d, %eax
	jge	.L20
	movl	%esi, (%rsp)
	movl	%eax, %r10d
	movl	$1, %r11d
.L20:
	addl	$1, %esi
	addq	$80, %rdx
	cmpl	%esi, %ebp
	jne	.L21
	movl	%ebp, i(%rip)
	movl	%eax, k(%rip)
	testb	%r11b, %r11b
	je	.L22
	movl	(%rsp), %eax
	movl	%r10d, x(%rip)
	movl	%eax, y(%rip)
.L22:
	movl	%ebp, j(%rip)
	movl	x(%rip), %ecx
.L16:
	movl	y(%rip), %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L27:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	.L17
.L26:
	movl	$999999, %ecx
	jmp	.L16
.L24:
	movl	$-1, %eax
	xorl	%ebp, %ebp
	movl	$-1, %r15d
	jmp	.L3
.L46:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	l
	.bss
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.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	route
	.align 32
	.type	route, @object
	.size	route, 3200
route:
	.zero	3200
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	999999
	.long	999999
	.long	999999
	.long	999999
	.set	.LC1,.LC0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1073741824
	.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
.LC2:
	.string	"%d %d %d"
.LC4:
	.string	"%d %d\n"
.LC5:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	$24, %rsp
	.cfi_def_cfa_offset 80
.L2:
	xorl	%eax, %eax
	leaq	m(%rip), %rsi
	leaq	.LC5(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	m(%rip), %edx
	movdqa	.LC0(%rip), %xmm2
	imull	%edx, %eax
	testl	%eax, %eax
	je	.L46
	movq	.LC1(%rip), %rax
	movl	$0, n(%rip)
	movl	$999999, 80+route(%rip)
	movq	%rax, 36+route(%rip)
	movl	$999999, 120+route(%rip)
	movq	%rax, 160+route(%rip)
	movq	%rax, 240+route(%rip)
	movl	$999999, 248+route(%rip)
	movq	%rax, 272+route(%rip)
	movl	$999999, 280+route(%rip)
	movq	%rax, 356+route(%rip)
	movl	$999999, 416+route(%rip)
	movl	$999999, 440+route(%rip)
	movq	%rax, 496+route(%rip)
	movq	%rax, 576+route(%rip)
	movl	$999999, 584+route(%rip)
	movq	%rax, 592+route(%rip)
	movl	$999999, 600+route(%rip)
	movups	%xmm2, 4+route(%rip)
	movups	%xmm2, 20+route(%rip)
	movups	%xmm2, 88+route(%rip)
	movups	%xmm2, 104+route(%rip)
	movups	%xmm2, 172+route(%rip)
	movups	%xmm2, 188+route(%rip)
	movaps	%xmm2, 256+route(%rip)
	movaps	%xmm2, 320+route(%rip)
	movups	%xmm2, 340+route(%rip)
	movaps	%xmm2, 400+route(%rip)
	movups	%xmm2, 424+route(%rip)
	movaps	%xmm2, 480+route(%rip)
	movups	%xmm2, 508+route(%rip)
	movaps	%xmm2, 560+route(%rip)
	movaps	%xmm2, 640+route(%rip)
	movq	%rax, 676+route(%rip)
	movl	$999999, 752+route(%rip)
	movl	$999999, 760+route(%rip)
	movq	%rax, 832+route(%rip)
	movl	$11, j(%rip)
	movl	$0, i(%rip)
	movaps	%xmm2, 656+route(%rip)
	movaps	%xmm2, 720+route(%rip)
	movaps	%xmm2, 736+route(%rip)
	movaps	%xmm2, 800+route(%rip)
	movaps	%xmm2, 816+route(%rip)
	testl	%edx, %edx
	jle	.L24
	leaq	t(%rip), %r15
	leaq	y(%rip), %r14
	leaq	x(%rip), %r13
	leaq	.LC2(%rip), %r12
	leaq	route(%rip), %rbx
.L8:
	movq	%r15, %rcx
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	x(%rip), %rax
	movl	n(%rip), %ebp
	cmpl	%ebp, %eax
	jl	.L4
	leal	1(%rax), %ebp
	movl	%ebp, n(%rip)
.L4:
	movslq	y(%rip), %rdx
	cmpl	%ebp, %edx
	jl	.L5
	leaq	(%rax,%rax,4), %rsi
	movl	t(%rip), %ecx
	leal	1(%rdx), %ebp
	leaq	(%rdx,%rsi,4), %rsi
	leaq	(%rdx,%rdx,4), %rdx
	movl	%ebp, n(%rip)
	leaq	(%rax,%rdx,4), %rax
	movl	%ecx, (%rbx,%rsi,4)
	movl	%ecx, (%rbx,%rax,4)
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	%eax, m(%rip)
	movl	%eax, i(%rip)
	jg	.L8
.L7:
	leal	-1(%rbp), %r15d
	movl	%r15d, %eax
.L3:
	pxor	%xmm3, %xmm3
	movl	%r15d, %ebx
	movl	%r15d, 4(%rsp)
	xorl	%r12d, %r12d
	cvtsi2sdl	%eax, %xmm3
	leaq	5(%rbx,%rbx,4), %r14
	salq	$4, %r14
.L9:
	pxor	%xmm1, %xmm1
	movq	.LC3(%rip), %rax
	leal	1(%r12), %r15d
	movsd	%xmm3, 8(%rsp)
	cvtsi2sdl	%r12d, %xmm1
	movl	%r15d, l(%rip)
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	8(%rsp), %xmm3
	comisd	%xmm0, %xmm3
	jbe	.L47
	movl	$0, i(%rip)
	testl	%ebp, %ebp
	jle	.L10
	addl	$2, %r12d
	leaq	route(%rip), %rdi
	xorl	%r10d, %r10d
	movl	%r12d, %edx
	shrl	$31, %edx
	leal	(%r12,%rdx), %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%r15d, %edx
	cltq
	andl	$1, %edx
	leaq	(%rax,%rax,4), %rax
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rax,4), %rax
	leaq	(%rdx,%rdx,4), %r12
	movq	%rax, %r13
	salq	$4, %rax
	leaq	4(%rdi), %rdx
	salq	$6, %r13
	salq	$6, %r12
	addq	%rbx, %rax
	addq	%rdi, %r13
	addq	%rdi, %r12
	leaq	(%rdx,%rax,4), %r11
	movq	%r13, %rdi
	.p2align 4,,10
	.p2align 3
.L14:
	leaq	(%r12,%r10), %r8
	movq	%r13, %r9
	.p2align 4,,10
	.p2align 3
.L13:
	movl	(%r9,%r10), %esi
	movq	%r9, %rcx
	xorl	%edx, %edx
	movl	%esi, (%r8)
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L25:
	movq	%rax, %rdx
.L12:
	movl	(%rcx), %eax
	addl	(%rdi,%rdx,4), %eax
	cmpl	%esi, %eax
	jge	.L11
	movl	%eax, (%r8)
	movl	%eax, %esi
.L11:
	leaq	1(%rdx), %rax
	addq	$80, %rcx
	cmpq	%rbx, %rdx
	jne	.L25
	addq	$4, %r9
	addq	$4, %r8
	cmpq	%r9, %r11
	jne	.L13
	addq	$80, %r10
	addq	$80, %rdi
	cmpq	%r10, %r14
	jne	.L14
	movl	%ebp, k(%rip)
	movl	%ebp, j(%rip)
.L10:
	movl	%r15d, %r12d
	jmp	.L9
.L5:
	leaq	(%rax,%rax,4), %rsi
	movl	t(%rip), %ecx
	leaq	(%rdx,%rsi,4), %rsi
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %rax
	movl	%ecx, (%rbx,%rsi,4)
	movl	%ecx, (%rbx,%rax,4)
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	m(%rip), %eax
	movl	%eax, i(%rip)
	jl	.L8
	jmp	.L7
.L47:
	movl	%r12d, %eax
	movl	4(%rsp), %r15d
	movl	$999999, x(%rip)
	movl	$0, i(%rip)
	andl	$1, %eax
	movl	%eax, l(%rip)
	testl	%ebp, %ebp
	jle	.L26
	cltq
	leaq	route(%rip), %rbx
	movl	%ebp, %r9d
	movl	%ebp, %r12d
	leaq	(%rax,%rax,4), %rax
	shrl	$2, %r9d
	andl	$-4, %r12d
	xorl	%esi, %esi
	leaq	(%rax,%rax,4), %r8
	xorl	%r11d, %r11d
	movl	$999999, %r10d
	movq	%r8, %rdx
	salq	$4, %r8
	salq	$6, %rdx
	addq	%rbx, %rdx
.L21:
	cmpl	$2, %r15d
	jbe	.L27
	movdqa	(%rdx), %xmm0
	cmpl	$1, %r9d
	jbe	.L18
	paddd	16(%rdx), %xmm0
	cmpl	$2, %r9d
	je	.L18
	paddd	32(%rdx), %xmm0
	cmpl	$3, %r9d
	je	.L18
	paddd	48(%rdx), %xmm0
	cmpl	$4, %r9d
	je	.L18
	paddd	64(%rdx), %xmm0
.L18:
	movdqa	%xmm0, %xmm1
	movl	%r12d, %ecx
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	%ebp, %r12d
	je	.L19
.L17:
	movslq	%esi, %rdi
	movslq	%ecx, %r13
	leaq	(%rdi,%rdi,4), %rdi
	leaq	(%r8,%rdi,4), %rdi
	addq	%rdi, %r13
	addl	(%rbx,%r13,4), %eax
	leal	1(%rcx), %r13d
	cmpl	%r13d, %ebp
	jle	.L19
	movslq	%r13d, %r13
	addl	$2, %ecx
	addq	%rdi, %r13
	addl	(%rbx,%r13,4), %eax
	cmpl	%ecx, %ebp
	jle	.L19
	movslq	%ecx, %rcx
	addq	%rcx, %rdi
	addl	(%rbx,%rdi,4), %eax
.L19:
	cmpl	%r10d, %eax
	jge	.L20
	movl	%esi, (%rsp)
	movl	%eax, %r10d
	movl	$1, %r11d
.L20:
	addl	$1, %esi
	addq	$80, %rdx
	cmpl	%esi, %ebp
	jne	.L21
	movl	%ebp, i(%rip)
	movl	%eax, k(%rip)
	testb	%r11b, %r11b
	je	.L22
	movl	(%rsp), %eax
	movl	%r10d, x(%rip)
	movl	%eax, y(%rip)
.L22:
	movl	%ebp, j(%rip)
	movl	x(%rip), %ecx
.L16:
	movl	y(%rip), %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L27:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	.L17
.L26:
	movl	$999999, %ecx
	jmp	.L16
.L24:
	movl	$-1, %eax
	xorl	%ebp, %ebp
	movl	$-1, %r15d
	jmp	.L3
.L46:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	l
	.bss
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.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	route
	.align 32
	.type	route, @object
	.size	route, 3200
route:
	.zero	3200
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	999999
	.long	999999
	.long	999999
	.long	999999
	.set	.LC1,.LC0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1073741824
	.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 <math.h>
#include <stdlib.h>

#define INF 999999

int x,y,t,n,m,route[2][20][20];
int i,j,k,l;

int main(){
	while(scanf("%d",&m)*m){
		n=0;
		for(i=0;i<11;i++){
			for(j=0;j<11;j++){
				if(i!=j)route[0][i][j]=INF;
			}
		}

		for(i=0;i<m;i++){
			scanf("%d %d %d",&x,&y,&t);
			if(x+1>n)n=x+1;
			if(y+1>n)n=y+1;
			route[0][x][y]=t;
			route[0][y][x]=t;
		}

		for(l=1;pow(2.0,l-1)<n-1;l++){
			for(i=0;i<n;i++){
				for(j=0;j<n;j++){
					route[l%2][i][j]=route[(l+1)%2][i][j];
					for(k=0;k<n;k++){
						if(route[l%2][i][j]>route[(l+1)%2][i][k]+route[(l+1)%2][k][j]){
							route[l%2][i][j]=route[(l+1)%2][i][k]+route[(l+1)%2][k][j];
						}
					}
				}
			}
		}

		l=(l-1)%2;

		x=INF;
		for(i=0;i<n;i++){
			k=0;
			for(j=0;j<n;j++)k+=route[l][i][j];
			if(k<x){
				x=k;
				y=i;
			}
		}

		printf("%d %d\n",y,x);

	}
	return 0;
}
6
0 1 80
1 2 20
0 2 60
2 3 50
3 4 66
1 4 90
2
0 1 1
1 2 1
0
 6
0 1 80
1 2 20
0 2 60
2 3 50
3 4 66
0 4 90
2
0 1 1
1 2 1
0
 6
0 1 80
1 2 20
0 2 60
2 2 50
3 4 66
0 4 90
2
0 1 1
1 2 1
0
 6
0 1 80
1 2 20
0 2 60
2 2 50
3 4 66
1 4 90
2
0 1 1
1 2 1
0
 6
0 1 80
1 2 20
0 2 60
2 2 50
3 4 66
1 4 90
2
0 1 1
1 0 1
0
 6
0 1 80
1 2 28
0 2 60
2 2 50
3 4 66
1 4 90
2
0 1 1
1 0 1
0
 6
0 1 80
1 3 20
0 2 60
2 3 50
3 4 60
1 4 90
2
0 1 1
1 2 1
0
 6
0 1 80
1 2 20
0 2 60
2 3 50
2 4 66
1 4 90
2
0 1 1
1 2 1
0
 6
0 1 80
1 2 20
0 2 60
2 3 50
3 2 66
0 4 90
2
0 1 1
1 2 1
0
 6
0 0 80
1 2 20
0 2 60
2 3 50
3 4 66
1 4 90
2
0 1 1
1 1 1
0

2 240
1 2
 2 246
1 2
 0 386
1 2
 1 346
1 2
 1 346
0 1
 1 354
0 1
 3 230
1 2
 2 196
1 2
 2 296
1 2
 2 240
1 2

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

#define INF 999999

int x,y,t,n,m,route[2][20][20];
int i,j,k,l;

int main(){
	while(scanf("%d",&m)*m){
		n=0;
		for(i=0;i<11;i++){
			for(j=0;j<11;j++){
				if(i!=j)route[0][i][j]=INF;
			}
		}

		for(i=0;i<m;i++){
			scanf("%d %d %d",&x,&y,&t);
			if(x+1>n)n=x+1;
			if(y+1>n)n=y+1;
			route[0][x][y]=t;
			route[0][y][x]=t;
		}

		for(l=1;pow(2.0,l-1)<n-1;l++){
			for(i=0;i<n;i++){
				for(j=0;j<n;j++){
					route[l%2][i][j]=route[(l+1)%2][i][j];
					for(k=0;k<n;k++){
						if(route[l%2][i][j]>route[(l+1)%2][i][k]+route[(l+1)%2][k][j]){
							route[l%2][i][j]=route[(l+1)%2][i][k]+route[(l+1)%2][k][j];
						}
					}
				}
			}
		}

		l=(l-1)%2;

		x=INF;
		for(i=0;i<n;i++){
			k=0;
			for(j=0;j<n;j++)k+=route[l][i][j];
			if(k<x){
				x=k;
				y=i;
			}
		}

		printf("%d %d\n",y,x);

	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	x
	.bss
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	route
	.align 32
	.type	route, @object
	.size	route, 3200
route:
	.zero	3200
	.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	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC2:
	.string	"%d %d\n"
.LC3:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	jmp	.L2
.L26:
	movl	$0, n(%rip)
	movl	$0, i(%rip)
	jmp	.L3
.L7:
	movl	$0, j(%rip)
	jmp	.L4
.L6:
	movl	i(%rip), %edx
	movl	j(%rip), %eax
	cmpl	%eax, %edx
	je	.L5
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	$999999, (%rdx,%rax)
.L5:
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L4:
	movl	j(%rip), %eax
	cmpl	$10, %eax
	jle	.L6
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L3:
	movl	i(%rip), %eax
	cmpl	$10, %eax
	jle	.L7
	movl	$0, i(%rip)
	jmp	.L8
.L11:
	leaq	t(%rip), %rax
	movq	%rax, %rcx
	leaq	y(%rip), %rax
	movq	%rax, %rdx
	leaq	x(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	x(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L9
	movl	x(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
.L9:
	movl	y(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L10
	movl	y(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
.L10:
	movl	x(%rip), %eax
	movl	y(%rip), %ecx
	movl	t(%rip), %edx
	movslq	%ecx, %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	route(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	y(%rip), %eax
	movl	x(%rip), %ecx
	movl	t(%rip), %edx
	movslq	%ecx, %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	route(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L8:
	movl	i(%rip), %edx
	movl	m(%rip), %eax
	cmpl	%eax, %edx
	jl	.L11
	movl	$1, l(%rip)
	jmp	.L12
.L20:
	movl	$0, i(%rip)
	jmp	.L13
.L19:
	movl	$0, j(%rip)
	jmp	.L14
.L18:
	movl	l(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %r10d
	movl	i(%rip), %ecx
	movl	j(%rip), %edx
	movl	l(%rip), %eax
	movl	%eax, %esi
	sarl	$31, %esi
	shrl	$31, %esi
	addl	%esi, %eax
	andl	$1, %eax
	subl	%esi, %eax
	movl	%eax, %r9d
	movl	i(%rip), %esi
	movl	j(%rip), %edi
	movslq	%edx, %r8
	movslq	%r10d, %rdx
	movslq	%ecx, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movslq	%edi, %rdi
	movslq	%r9d, %rdx
	movslq	%esi, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rsi, %rdx
	salq	$2, %rdx
	addq	%rsi, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	$0, k(%rip)
	jmp	.L15
.L17:
	movl	l(%rip), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rsi
	movslq	%ecx, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	l(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	i(%rip), %eax
	movl	k(%rip), %edx
	movslq	%edx, %rdi
	movslq	%ecx, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %edi
	movl	l(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	k(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %r8
	movslq	%ecx, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%edi, %eax
	cmpl	%eax, %esi
	jle	.L16
	movl	l(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	i(%rip), %eax
	movl	k(%rip), %edx
	movslq	%edx, %rsi
	movslq	%ecx, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	l(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	k(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rdi
	movslq	%ecx, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	l(%rip), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %r8d
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	addl	%ecx, %esi
	movslq	%edx, %rdi
	movslq	%r8d, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	%esi, (%rdx,%rax)
.L16:
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L15:
	movl	k(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L17
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L14:
	movl	j(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L18
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L13:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L19
	movl	l(%rip), %eax
	addl	$1, %eax
	movl	%eax, l(%rip)
.L12:
	movl	l(%rip), %eax
	subl	$1, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movq	.LC1(%rip), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movl	n(%rip), %eax
	subl	$1, %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	comisd	%xmm0, %xmm1
	ja	.L20
	movl	l(%rip), %eax
	subl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, l(%rip)
	movl	$999999, x(%rip)
	movl	$0, i(%rip)
	jmp	.L21
.L25:
	movl	$0, k(%rip)
	movl	$0, j(%rip)
	jmp	.L22
.L23:
	movl	l(%rip), %edx
	movl	i(%rip), %eax
	movl	j(%rip), %ecx
	movslq	%ecx, %rsi
	movslq	%edx, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	k(%rip), %eax
	addl	%edx, %eax
	movl	%eax, k(%rip)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L22:
	movl	j(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L23
	movl	k(%rip), %edx
	movl	x(%rip), %eax
	cmpl	%eax, %edx
	jge	.L24
	movl	k(%rip), %eax
	movl	%eax, x(%rip)
	movl	i(%rip), %eax
	movl	%eax, y(%rip)
.L24:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L21:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L25
	movl	x(%rip), %edx
	movl	y(%rip), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	m(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	m(%rip), %edx
	imull	%edx, %eax
	testl	%eax, %eax
	jne	.L26
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1073741824
	.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	x
	.bss
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	route
	.align 32
	.type	route, @object
	.size	route, 3200
route:
	.zero	3200
	.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	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC2:
	.string	"%d %d\n"
.LC3:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	jmp	.L2
.L26:
	movl	$0, n(%rip)
	movl	$0, i(%rip)
	jmp	.L3
.L7:
	movl	$0, j(%rip)
	jmp	.L4
.L6:
	movl	i(%rip), %edx
	movl	j(%rip), %eax
	cmpl	%eax, %edx
	je	.L5
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	$999999, (%rdx,%rax)
.L5:
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L4:
	movl	j(%rip), %eax
	cmpl	$10, %eax
	jle	.L6
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L3:
	movl	i(%rip), %eax
	cmpl	$10, %eax
	jle	.L7
	movl	$0, i(%rip)
	jmp	.L8
.L11:
	leaq	t(%rip), %rax
	movq	%rax, %rcx
	leaq	y(%rip), %rax
	movq	%rax, %rdx
	leaq	x(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	x(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L9
	movl	x(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
.L9:
	movl	y(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L10
	movl	y(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
.L10:
	movl	x(%rip), %eax
	movl	y(%rip), %ecx
	movl	t(%rip), %edx
	movslq	%ecx, %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	route(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	y(%rip), %eax
	movl	x(%rip), %ecx
	movl	t(%rip), %edx
	movslq	%ecx, %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	route(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L8:
	movl	i(%rip), %edx
	movl	m(%rip), %eax
	cmpl	%eax, %edx
	jl	.L11
	movl	$1, l(%rip)
	jmp	.L12
.L20:
	movl	$0, i(%rip)
	jmp	.L13
.L19:
	movl	$0, j(%rip)
	jmp	.L14
.L18:
	movl	l(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %r10d
	movl	i(%rip), %ecx
	movl	j(%rip), %edx
	movl	l(%rip), %eax
	movl	%eax, %esi
	sarl	$31, %esi
	shrl	$31, %esi
	addl	%esi, %eax
	andl	$1, %eax
	subl	%esi, %eax
	movl	%eax, %r9d
	movl	i(%rip), %esi
	movl	j(%rip), %edi
	movslq	%edx, %r8
	movslq	%r10d, %rdx
	movslq	%ecx, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movslq	%edi, %rdi
	movslq	%r9d, %rdx
	movslq	%esi, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rsi, %rdx
	salq	$2, %rdx
	addq	%rsi, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	$0, k(%rip)
	jmp	.L15
.L17:
	movl	l(%rip), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rsi
	movslq	%ecx, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	l(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	i(%rip), %eax
	movl	k(%rip), %edx
	movslq	%edx, %rdi
	movslq	%ecx, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %edi
	movl	l(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	k(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %r8
	movslq	%ecx, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%edi, %eax
	cmpl	%eax, %esi
	jle	.L16
	movl	l(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	i(%rip), %eax
	movl	k(%rip), %edx
	movslq	%edx, %rsi
	movslq	%ecx, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	l(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	k(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rdi
	movslq	%ecx, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	l(%rip), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %r8d
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	addl	%ecx, %esi
	movslq	%edx, %rdi
	movslq	%r8d, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	%esi, (%rdx,%rax)
.L16:
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L15:
	movl	k(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L17
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L14:
	movl	j(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L18
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L13:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L19
	movl	l(%rip), %eax
	addl	$1, %eax
	movl	%eax, l(%rip)
.L12:
	movl	l(%rip), %eax
	subl	$1, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movq	.LC1(%rip), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movl	n(%rip), %eax
	subl	$1, %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	comisd	%xmm0, %xmm1
	ja	.L20
	movl	l(%rip), %eax
	subl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, l(%rip)
	movl	$999999, x(%rip)
	movl	$0, i(%rip)
	jmp	.L21
.L25:
	movl	$0, k(%rip)
	movl	$0, j(%rip)
	jmp	.L22
.L23:
	movl	l(%rip), %edx
	movl	i(%rip), %eax
	movl	j(%rip), %ecx
	movslq	%ecx, %rsi
	movslq	%edx, %rdx
	movslq	%eax, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	salq	$2, %rdx
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	k(%rip), %eax
	addl	%edx, %eax
	movl	%eax, k(%rip)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L22:
	movl	j(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L23
	movl	k(%rip), %edx
	movl	x(%rip), %eax
	cmpl	%eax, %edx
	jge	.L24
	movl	k(%rip), %eax
	movl	%eax, x(%rip)
	movl	i(%rip), %eax
	movl	%eax, y(%rip)
.L24:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L21:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L25
	movl	x(%rip), %edx
	movl	y(%rip), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	m(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	m(%rip), %edx
	imull	%edx, %eax
	testl	%eax, %eax
	jne	.L26
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1073741824
	.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:
