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>

#define MAX 1000000000
#define min(x, y) ((x) < (y) ? (x) : (y))

int route[21][21];
int cost[21];
int check[21];
int n, m;

void dijkstra(int start) {                                                      
    int i, u;                                                                   
                                                                                
    for (i = 1; i < n + 1; i++) {                                               
        cost[i] = MAX;                                                          
        check[i] = 0;                                                           
    }                                                                           
    cost[start] =0;                                                             
    while (1) {                                                                 
        int v = -1;                                                             
        for (u = 1; u < n + 1; u++) {                                           
            if (check[u] == 0 && (v == -1 || cost[u] < cost[v]))                
                v = u;                                                          
        }                                                                       
        if (v == -1)                                                            
            break;                                                              
        check[v] = 1;                                                           
                                                                                
        for (u = 1; u < n + 1; u++) {                                           
            cost[u] = min(cost[u], cost[v] + route[v][u]);                      
        }                                                                       
    }                                                                           
}

void warshall_floyd() {                                                         
    int i, j, k;                                                                
    for (k = 1; k < n + 1; k++)                                                 
        for (i = 1; i < n + 1; i++)                                             
            for (j = 1; j < n + 1; j++)                                         
                route[i][j] = min(route[i][j], route[i][k] + route[k][j]);      
}

int main(void) {                                                                
    int i, a, b, c, d;                                                          
    int x1, x2, y1, y2;                                                         
    int money;                                                                  
                                                                                
    for (i = 0; i < 21*21; i++) {                                               
        route[i/20][i%20] = MAX;                                                
    }                                                                           
                                                                                
    scanf("%d%d", &n, &m);                                                      
    while (m > 0) {                                                             
        scanf("%d,%d,%d,%d", &a, &b, &c, &d);                                   
        route[a][b] = c;                                                        
        route[b][a] = d;                                                        
        m--;                                                                    
    }                                                                           
    scanf("%d,%d,%d,%d", &x1, &x2, &y1, &y2);                                   
                                                                                
    dijkstra(x1);                                                               
    money = y1 - y2 - cost[x2];                                                 
    dijkstra(x2);                                                               
    money -= cost[x1];                                                          
    //    warshall_floyd();                                                     
    //money = y1 - (route[x1][x2] + route[x2][x1] + y2);                        
    printf("%d\n", money);                                                      
                                                                                
    return 0;       
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	route
	.bss
	.align 32
	.type	route, @object
	.size	route, 1764
route:
	.zero	1764
	.globl	cost
	.align 32
	.type	cost, @object
	.size	cost, 84
cost:
	.zero	84
	.globl	check
	.align 32
	.type	check, @object
	.size	check, 84
check:
	.zero	84
	.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
	.text
	.globl	dijkstra
	.type	dijkstra, @function
dijkstra:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L2
.L3:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	$1000000000, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	check(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L3
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	$0, (%rdx,%rax)
.L12:
	movl	$-1, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L4
.L7:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	check(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L5
	cmpl	$-1, -4(%rbp)
	je	.L6
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cost(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L5
.L6:
	movl	-8(%rbp), %eax
	movl	%eax, -4(%rbp)
.L5:
	addl	$1, -8(%rbp)
.L4:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L7
	cmpl	$-1, -4(%rbp)
	je	.L14
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	check(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	$1, -8(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cost(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cost(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -8(%rbp)
.L10:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L11
	jmp	.L12
.L14:
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dijkstra, .-dijkstra
	.globl	warshall_floyd
	.type	warshall_floyd, @function
warshall_floyd:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$1, -4(%rbp)
	jmp	.L16
.L21:
	movl	$1, -12(%rbp)
	jmp	.L17
.L20:
	movl	$1, -8(%rbp)
	jmp	.L18
.L19:
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, %ecx
	cmovg	%eax, %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -8(%rbp)
.L18:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L19
	addl	$1, -12(%rbp)
.L17:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L20
	addl	$1, -4(%rbp)
.L16:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L21
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	warshall_floyd, .-warshall_floyd
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d,%d,%d,%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -16(%rbp)
	jmp	.L23
.L24:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	sarl	$31, %eax
	movl	%edx, %esi
	subl	%eax, %esi
	movl	-16(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	$1000000000, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L23:
	cmpl	$440, -16(%rbp)
	jle	.L24
	leaq	m(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L25
.L26:
	leaq	-36(%rbp), %rsi
	leaq	-40(%rbp), %rcx
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-44(%rbp), %eax
	movl	-48(%rbp), %edx
	movl	-36(%rbp), %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	m(%rip), %eax
	subl	$1, %eax
	movl	%eax, m(%rip)
.L25:
	movl	m(%rip), %eax
	testl	%eax, %eax
	jg	.L26
	leaq	-20(%rbp), %rsi
	leaq	-24(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	movl	%eax, %edi
	call	dijkstra
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, %edi
	call	dijkstra
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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
	.p2align 4
	.globl	dijkstra
	.type	dijkstra, @function
dijkstra:
.LFB23:
	.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
	movslq	%edi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	cost(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movl	n(%rip), %ebp
	leal	-1(%rbp), %eax
	movl	%ebp, %r13d
	movl	%eax, 16(%rsp)
	testl	%ebp, %ebp
	jle	.L2
	cmpl	$2, %eax
	jbe	.L15
	movdqa	.LC0(%rip), %xmm0
	movl	%ebp, %eax
	shrl	$2, %eax
	movups	%xmm0, 4+cost(%rip)
	cmpl	$1, %eax
	je	.L4
	movups	%xmm0, 20+cost(%rip)
	cmpl	$2, %eax
	je	.L4
	movups	%xmm0, 36+cost(%rip)
	cmpl	$3, %eax
	je	.L4
	movups	%xmm0, 52+cost(%rip)
	cmpl	$4, %eax
	je	.L4
	movups	%xmm0, 68+cost(%rip)
.L4:
	movl	%ebp, %edx
	leaq	cost(%rip), %rbx
	andl	$-4, %edx
	leal	1(%rdx), %eax
	cmpl	%edx, %ebp
	je	.L5
.L3:
	movslq	%eax, %rdx
	leaq	cost(%rip), %rbx
	movl	$1000000000, (%rbx,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %ebp
	jl	.L5
	movslq	%edx, %rdx
	addl	$2, %eax
	movl	$1000000000, (%rbx,%rdx,4)
	cmpl	%eax, %ebp
	jl	.L5
	cltq
	movl	$1000000000, (%rbx,%rax,4)
.L5:
	movl	%ebp, %r13d
	xorl	%esi, %esi
	leaq	4+check(%rip), %rdi
	leaq	0(,%r13,4), %rdx
	call	memset@PLT
.L2:
	movl	%ebp, %r9d
	movl	16(%rsp), %esi
	movl	%ebp, %r11d
	leaq	4(,%r13,4), %rax
	andl	$-4, %r9d
	movl	$0, (%rbx,%r12,4)
	shrl	$2, %r11d
	leaq	check(%rip), %rcx
	leal	2(%r9), %edi
	leal	3(%r9), %edx
	movq	%rax, 8(%rsp)
	movl	%edi, 20(%rsp)
	leal	1(%r9), %r12d
	movslq	%edi, %r14
	movslq	%edx, %r15
	movl	%edx, 24(%rsp)
	leaq	8+cost(%rip), %rax
	leaq	route(%rip), %r10
	movslq	%r12d, %r12
	leaq	(%rax,%rsi,4), %r13
	addq	$2, %rsi
	.p2align 4,,10
	.p2align 3
.L14:
	testl	%ebp, %ebp
	jle	.L1
.L56:
	movl	$1, %edx
	movl	$-1, %eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L55:
	movslq	%eax, %rdi
	movl	(%rbx,%rdi,4), %edi
	cmpl	%edi, (%rbx,%rdx,4)
	cmovl	%edx, %eax
.L7:
	addq	$1, %rdx
	cmpq	%rsi, %rdx
	je	.L54
.L8:
	movl	(%rcx,%rdx,4), %edi
	testl	%edi, %edi
	jne	.L7
	cmpl	$-1, %eax
	jne	.L55
	movl	%edx, %eax
	addq	$1, %rdx
	cmpq	%rsi, %rdx
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L54:
	cmpl	$-1, %eax
	je	.L1
	cltq
	leaq	4+cost(%rip), %r8
	leaq	4(,%rax,4), %rdx
	movl	$1, (%rcx,%rax,4)
	leaq	(%rbx,%rdx), %rdi
	cmpq	%r8, %rdi
	setbe	%dil
	subq	$4, %rdx
	cmpq	%rdx, 8(%rsp)
	setle	%dl
	orb	%dil, %dl
	je	.L9
	cmpl	$2, 16(%rsp)
	jbe	.L9
	leaq	(%rax,%rax,4), %rdx
	movd	(%rbx,%rax,4), %xmm4
	movdqu	4+cost(%rip), %xmm5
	leaq	(%rax,%rdx,4), %rdx
	leaq	4(%r10,%rdx,4), %rdx
	pshufd	$0, %xmm4, %xmm3
	movdqa	%xmm5, %xmm1
	movdqu	(%rdx), %xmm2
	paddd	%xmm3, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm5, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 4+cost(%rip)
	cmpl	$1, %r11d
	jbe	.L10
	movdqu	16(%rdx), %xmm2
	movdqu	20+cost(%rip), %xmm6
	paddd	%xmm3, %xmm2
	movdqa	%xmm6, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm6, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 20+cost(%rip)
	cmpl	$2, %r11d
	je	.L10
	movdqu	32(%rdx), %xmm2
	movdqu	36+cost(%rip), %xmm7
	paddd	%xmm3, %xmm2
	movdqa	%xmm7, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm7, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 36+cost(%rip)
	cmpl	$3, %r11d
	je	.L10
	movdqu	48(%rdx), %xmm2
	movdqu	52+cost(%rip), %xmm7
	paddd	%xmm3, %xmm2
	movdqa	%xmm7, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm7, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 52+cost(%rip)
	cmpl	$4, %r11d
	je	.L10
	movdqu	64(%rdx), %xmm2
	movdqu	68+cost(%rip), %xmm6
	paddd	%xmm3, %xmm2
	movdqa	%xmm6, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm6, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 68+cost(%rip)
.L10:
	cmpl	%r9d, %ebp
	je	.L14
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,4), %rdi
	movl	(%rbx,%rax,4), %edx
	leaq	(%rdi,%r12), %r8
	addl	(%r10,%r8,4), %edx
	movl	(%rbx,%r12,4), %r8d
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
	movl	%edx, (%rbx,%r12,4)
	cmpl	%ebp, 20(%rsp)
	jg	.L14
	leaq	(%rdi,%r14), %r8
	movl	(%rbx,%rax,4), %edx
	addl	(%r10,%r8,4), %edx
	movl	(%rbx,%r14,4), %r8d
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
	movl	%edx, (%rbx,%r14,4)
	cmpl	24(%rsp), %ebp
	jl	.L14
	addq	%r15, %rdi
	movl	(%r10,%rdi,4), %edx
	addl	(%rbx,%rax,4), %edx
	movl	%edx, %eax
	movl	(%rbx,%r15,4), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	movl	%eax, (%rbx,%r15,4)
	testl	%ebp, %ebp
	jg	.L56
.L1:
	addq	$40, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	leaq	(%rax,%rax,4), %rdx
	movl	%ebp, 28(%rsp)
	leaq	4+cost(%rip), %rdi
	leaq	(%rax,%rdx,4), %rdx
	leaq	4(%r10,%rdx,4), %r8
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%rdi), %ebp
	movl	(%r8), %edx
	addl	(%rbx,%rax,4), %edx
	cmpl	%ebp, %edx
	cmovg	%ebp, %edx
	addq	$4, %rdi
	addq	$4, %r8
	movl	%edx, -4(%rdi)
	cmpq	%rdi, %r13
	jne	.L12
	movl	28(%rsp), %ebp
	jmp	.L14
.L15:
	movl	$1, %eax
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	dijkstra, .-dijkstra
	.p2align 4
	.globl	warshall_floyd
	.type	warshall_floyd, @function
warshall_floyd:
.LFB24:
	.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	$16, %rsp
	.cfi_def_cfa_offset 72
	movl	n(%rip), %r14d
	testl	%r14d, %r14d
	jle	.L57
	leal	-1(%r14), %eax
	movl	%r14d, %edi
	leal	1(%r14), %ebx
	movl	%r14d, %r15d
	movl	%eax, -88(%rsp)
	addq	$2, %rax
	andl	$-4, %edi
	leaq	88+route(%rip), %r11
	movq	%rax, -8(%rsp)
	movslq	%r14d, %rax
	leal	2(%rdi), %esi
	leaq	-88(%r11), %r8
	salq	$2, %rax
	movl	%edi, -84(%rsp)
	movq	$-8, %rdx
	shrl	$2, %r15d
	movq	%rax, -104(%rsp)
	leal	1(%rdi), %eax
	addl	$3, %edi
	subq	%r8, %rdx
	cltq
	movl	%esi, -56(%rsp)
	movl	$4, %r12d
	movl	$84, %r13d
	movq	%rax, -80(%rsp)
	movslq	%esi, %rax
	movq	%rax, -48(%rsp)
	movslq	%edi, %rax
	movq	%rax, -32(%rsp)
	movl	%r14d, %eax
	salq	$2, %rax
	movl	%edi, -52(%rsp)
	movq	$-84, -24(%rsp)
	movq	$1, -40(%rsp)
	movl	%ebx, -92(%rsp)
	movq	%rdx, (%rsp)
	movq	%rax, -16(%rsp)
	.p2align 4,,10
	.p2align 3
.L59:
	leaq	-4(%r12), %rax
	leaq	(%r8,%r12), %rdi
	movl	$88, %esi
	movl	$1, %r10d
	movq	%rax, -120(%rsp)
	movq	(%rsp), %rax
	leaq	88+route(%rip), %rcx
	addq	-24(%rsp), %rax
	movq	%rax, -112(%rsp)
	movslq	-40(%rsp), %rax
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,4), %rax
	movq	%rax, -64(%rsp)
	addq	-80(%rsp), %rax
	movq	%rax, -72(%rsp)
	.p2align 4,,10
	.p2align 3
.L68:
	movq	-120(%rsp), %rax
	leaq	(%rax,%rsi), %rdx
	movq	-104(%rsp), %rax
	addq	%rsi, %rax
	cmpq	%rax, %rdx
	leaq	(%rsi,%r12), %rax
	setge	%dl
	cmpq	%rax, %rsi
	setge	%al
	orb	%dl, %al
	je	.L67
	movq	-112(%rsp), %rax
	addq	%rcx, %rax
	cmpq	$8, %rax
	seta	%dl
	cmpl	$2, -88(%rsp)
	seta	%al
	testb	%al, %dl
	je	.L67
	movd	84(%rdi), %xmm4
	movdqu	(%r11), %xmm2
	movdqu	(%rcx), %xmm5
	pshufd	$0, %xmm4, %xmm3
	paddd	%xmm3, %xmm2
	movdqa	%xmm5, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm5, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rcx)
	cmpl	$1, %r15d
	jbe	.L63
	movdqu	16(%r11), %xmm2
	movdqu	16(%rcx), %xmm6
	paddd	%xmm3, %xmm2
	movdqa	%xmm6, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm6, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 16(%rcx)
	cmpl	$2, %r15d
	je	.L63
	movdqu	32(%r11), %xmm2
	movdqu	32(%rcx), %xmm7
	paddd	%xmm3, %xmm2
	movdqa	%xmm7, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm7, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 32(%rcx)
	cmpl	$3, %r15d
	je	.L63
	movdqu	48(%r11), %xmm2
	movdqu	48(%rcx), %xmm7
	paddd	%xmm3, %xmm2
	movdqa	%xmm7, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm7, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 48(%rcx)
	cmpl	$4, %r15d
	je	.L63
	movdqu	64(%r11), %xmm2
	movdqu	64(%rcx), %xmm6
	paddd	%xmm3, %xmm2
	movdqa	%xmm6, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm6, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 64(%rcx)
.L63:
	cmpl	%r14d, -84(%rsp)
	je	.L62
	movslq	%r10d, %rax
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,4), %rdx
	movq	-80(%rsp), %rax
	leaq	(%rdx,%rax), %r9
	movq	-72(%rsp), %rax
	movl	(%r8,%r9,4), %ebx
	movl	(%r8,%rax,4), %eax
	addl	84(%rdi), %eax
	cmpl	%ebx, %eax
	cmovg	%ebx, %eax
	movl	%eax, (%r8,%r9,4)
	cmpl	-56(%rsp), %r14d
	jl	.L62
	movq	-48(%rsp), %rbx
	movq	-64(%rsp), %rbp
	leaq	(%rdx,%rbx), %r9
	movq	%rbp, %rax
	addq	%rbx, %rax
	movl	(%r8,%r9,4), %ebx
	movl	(%r8,%rax,4), %eax
	addl	84(%rdi), %eax
	cmpl	%ebx, %eax
	cmovg	%ebx, %eax
	movl	%eax, (%r8,%r9,4)
	cmpl	-52(%rsp), %r14d
	jl	.L62
	movq	-32(%rsp), %rbx
	movq	%rbp, %rax
	addq	%rbx, %rdx
	addq	%rbx, %rax
	movl	(%r8,%rdx,4), %r9d
	movl	(%r8,%rax,4), %eax
	addl	84(%rdi), %eax
	cmpl	%r9d, %eax
	cmovg	%r9d, %eax
	movl	%eax, (%r8,%rdx,4)
.L62:
	addl	$1, %r10d
	addq	$84, %rsi
	addq	$84, %rcx
	addq	$84, %rdi
	cmpl	-92(%rsp), %r10d
	jne	.L68
	addq	$1, -40(%rsp)
	addq	$84, %r13
	addq	$4, %r12
	addq	$84, %r11
	subq	$84, -24(%rsp)
	movq	-40(%rsp), %rax
	cmpq	-8(%rsp), %rax
	jne	.L59
.L57:
	addq	$16, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L67:
	.cfi_restore_state
	movq	-16(%rsp), %rax
	movl	$4, %ebx
	movq	%rcx, %rdx
	subq	%rsi, %rbx
	leaq	(%rax,%rcx), %rbp
	.p2align 4,,10
	.p2align 3
.L61:
	leaq	(%rbx,%rdx), %r9
	movl	84(%rdi), %eax
	addl	(%r9,%r13), %eax
	movl	(%rdx), %r9d
	cmpl	%r9d, %eax
	cmovg	%r9d, %eax
	addq	$4, %rdx
	movl	%eax, -4(%rdx)
	cmpq	%rbp, %rdx
	jne	.L61
	jmp	.L62
	.cfi_endproc
.LFE24:
	.size	warshall_floyd, .-warshall_floyd
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d,%d,%d,%d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%edx, %edx
	movl	$3435973837, %edi
	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
	leaq	route(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L84:
	movl	%edx, %eax
	movl	%edx, %ecx
	addl	$1, %edx
	imulq	%rdi, %rax
	shrq	$36, %rax
	leal	(%rax,%rax,4), %esi
	cltq
	sall	$2, %esi
	subl	%esi, %ecx
	leaq	(%rax,%rax,4), %rsi
	movslq	%ecx, %rcx
	leaq	(%rax,%rsi,4), %rax
	addq	%rcx, %rax
	movl	$1000000000, (%rbx,%rax,4)
	cmpl	$441, %edx
	jne	.L84
	leaq	m(%rip), %rdx
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	leaq	.LC2(%rip), %r15
	call	__isoc99_scanf@PLT
	movl	m(%rip), %eax
	testl	%eax, %eax
	jle	.L85
	leaq	20(%rsp), %r14
	leaq	16(%rsp), %r13
	leaq	12(%rsp), %r12
	leaq	8(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L86:
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%r14, %r8
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rax
	movslq	12(%rsp), %rdx
	movl	16(%rsp), %esi
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,4), %rcx
	addq	%rdx, %rcx
	movl	%esi, (%rbx,%rcx,4)
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rdx,%rcx,4), %rdx
	addq	%rdx, %rax
	movl	20(%rsp), %edx
	movl	%edx, (%rbx,%rax,4)
	movl	m(%rip), %eax
	subl	$1, %eax
	movl	%eax, m(%rip)
	testl	%eax, %eax
	jg	.L86
.L85:
	leaq	28(%rsp), %rdx
	leaq	24(%rsp), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	leaq	32(%rsp), %rcx
	leaq	36(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %edi
	leaq	cost(%rip), %rbp
	call	dijkstra
	movslq	28(%rsp), %rax
	movl	32(%rsp), %ebx
	subl	36(%rsp), %ebx
	movq	%rax, %rdi
	subl	0(%rbp,%rax,4), %ebx
	call	dijkstra
	movslq	24(%rsp), %rax
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	subl	0(%rbp,%rax,4), %ebx
	xorl	%eax, %eax
	movl	%ebx, %edx
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L92
	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
.L92:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	m
	.bss
	.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	check
	.align 32
	.type	check, @object
	.size	check, 84
check:
	.zero	84
	.globl	cost
	.align 32
	.type	cost, @object
	.size	cost, 84
cost:
	.zero	84
	.globl	route
	.align 32
	.type	route, @object
	.size	route, 1764
route:
	.zero	1764
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1000000000
	.long	1000000000
	.long	1000000000
	.long	1000000000
	.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
	.p2align 4
	.globl	dijkstra
	.type	dijkstra, @function
dijkstra:
.LFB23:
	.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
	movslq	%edi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	cost(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movl	n(%rip), %ebp
	leal	-1(%rbp), %eax
	movl	%ebp, %r13d
	movl	%eax, 16(%rsp)
	testl	%ebp, %ebp
	jle	.L2
	cmpl	$2, %eax
	jbe	.L15
	movdqa	.LC0(%rip), %xmm0
	movl	%ebp, %eax
	shrl	$2, %eax
	movups	%xmm0, 4+cost(%rip)
	cmpl	$1, %eax
	je	.L4
	movups	%xmm0, 20+cost(%rip)
	cmpl	$2, %eax
	je	.L4
	movups	%xmm0, 36+cost(%rip)
	cmpl	$3, %eax
	je	.L4
	movups	%xmm0, 52+cost(%rip)
	cmpl	$4, %eax
	je	.L4
	movups	%xmm0, 68+cost(%rip)
.L4:
	movl	%ebp, %edx
	leaq	cost(%rip), %rbx
	andl	$-4, %edx
	leal	1(%rdx), %eax
	cmpl	%edx, %ebp
	je	.L5
.L3:
	movslq	%eax, %rdx
	leaq	cost(%rip), %rbx
	movl	$1000000000, (%rbx,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %ebp
	jl	.L5
	movslq	%edx, %rdx
	addl	$2, %eax
	movl	$1000000000, (%rbx,%rdx,4)
	cmpl	%eax, %ebp
	jl	.L5
	cltq
	movl	$1000000000, (%rbx,%rax,4)
.L5:
	movl	%ebp, %r13d
	xorl	%esi, %esi
	leaq	4+check(%rip), %rdi
	leaq	0(,%r13,4), %rdx
	call	memset@PLT
.L2:
	movl	%ebp, %r9d
	movl	16(%rsp), %esi
	movl	%ebp, %r11d
	leaq	4(,%r13,4), %rax
	andl	$-4, %r9d
	movl	$0, (%rbx,%r12,4)
	shrl	$2, %r11d
	leaq	check(%rip), %rcx
	leal	2(%r9), %edi
	leal	3(%r9), %edx
	movq	%rax, 8(%rsp)
	movl	%edi, 20(%rsp)
	leal	1(%r9), %r12d
	movslq	%edi, %r14
	movslq	%edx, %r15
	movl	%edx, 24(%rsp)
	leaq	8+cost(%rip), %rax
	leaq	route(%rip), %r10
	movslq	%r12d, %r12
	leaq	(%rax,%rsi,4), %r13
	addq	$2, %rsi
	.p2align 4,,10
	.p2align 3
.L14:
	testl	%ebp, %ebp
	jle	.L1
.L56:
	movl	$1, %edx
	movl	$-1, %eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L55:
	movslq	%eax, %rdi
	movl	(%rbx,%rdi,4), %edi
	cmpl	%edi, (%rbx,%rdx,4)
	cmovl	%edx, %eax
.L7:
	addq	$1, %rdx
	cmpq	%rsi, %rdx
	je	.L54
.L8:
	movl	(%rcx,%rdx,4), %edi
	testl	%edi, %edi
	jne	.L7
	cmpl	$-1, %eax
	jne	.L55
	movl	%edx, %eax
	addq	$1, %rdx
	cmpq	%rsi, %rdx
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L54:
	cmpl	$-1, %eax
	je	.L1
	cltq
	leaq	4+cost(%rip), %r8
	leaq	4(,%rax,4), %rdx
	movl	$1, (%rcx,%rax,4)
	leaq	(%rbx,%rdx), %rdi
	cmpq	%r8, %rdi
	setbe	%dil
	subq	$4, %rdx
	cmpq	%rdx, 8(%rsp)
	setle	%dl
	orb	%dil, %dl
	je	.L9
	cmpl	$2, 16(%rsp)
	jbe	.L9
	leaq	(%rax,%rax,4), %rdx
	movd	(%rbx,%rax,4), %xmm4
	movdqu	4+cost(%rip), %xmm5
	leaq	(%rax,%rdx,4), %rdx
	leaq	4(%r10,%rdx,4), %rdx
	pshufd	$0, %xmm4, %xmm3
	movdqa	%xmm5, %xmm1
	movdqu	(%rdx), %xmm2
	paddd	%xmm3, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm5, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 4+cost(%rip)
	cmpl	$1, %r11d
	jbe	.L10
	movdqu	16(%rdx), %xmm2
	movdqu	20+cost(%rip), %xmm6
	paddd	%xmm3, %xmm2
	movdqa	%xmm6, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm6, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 20+cost(%rip)
	cmpl	$2, %r11d
	je	.L10
	movdqu	32(%rdx), %xmm2
	movdqu	36+cost(%rip), %xmm7
	paddd	%xmm3, %xmm2
	movdqa	%xmm7, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm7, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 36+cost(%rip)
	cmpl	$3, %r11d
	je	.L10
	movdqu	48(%rdx), %xmm2
	movdqu	52+cost(%rip), %xmm7
	paddd	%xmm3, %xmm2
	movdqa	%xmm7, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm7, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 52+cost(%rip)
	cmpl	$4, %r11d
	je	.L10
	movdqu	64(%rdx), %xmm2
	movdqu	68+cost(%rip), %xmm6
	paddd	%xmm3, %xmm2
	movdqa	%xmm6, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm6, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 68+cost(%rip)
.L10:
	cmpl	%r9d, %ebp
	je	.L14
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,4), %rdi
	movl	(%rbx,%rax,4), %edx
	leaq	(%rdi,%r12), %r8
	addl	(%r10,%r8,4), %edx
	movl	(%rbx,%r12,4), %r8d
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
	movl	%edx, (%rbx,%r12,4)
	cmpl	%ebp, 20(%rsp)
	jg	.L14
	leaq	(%rdi,%r14), %r8
	movl	(%rbx,%rax,4), %edx
	addl	(%r10,%r8,4), %edx
	movl	(%rbx,%r14,4), %r8d
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
	movl	%edx, (%rbx,%r14,4)
	cmpl	24(%rsp), %ebp
	jl	.L14
	addq	%r15, %rdi
	movl	(%r10,%rdi,4), %edx
	addl	(%rbx,%rax,4), %edx
	movl	%edx, %eax
	movl	(%rbx,%r15,4), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	movl	%eax, (%rbx,%r15,4)
	testl	%ebp, %ebp
	jg	.L56
.L1:
	addq	$40, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	leaq	(%rax,%rax,4), %rdx
	movl	%ebp, 28(%rsp)
	leaq	4+cost(%rip), %rdi
	leaq	(%rax,%rdx,4), %rdx
	leaq	4(%r10,%rdx,4), %r8
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%rdi), %ebp
	movl	(%r8), %edx
	addl	(%rbx,%rax,4), %edx
	cmpl	%ebp, %edx
	cmovg	%ebp, %edx
	addq	$4, %rdi
	addq	$4, %r8
	movl	%edx, -4(%rdi)
	cmpq	%rdi, %r13
	jne	.L12
	movl	28(%rsp), %ebp
	jmp	.L14
.L15:
	movl	$1, %eax
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	dijkstra, .-dijkstra
	.p2align 4
	.globl	warshall_floyd
	.type	warshall_floyd, @function
warshall_floyd:
.LFB24:
	.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	$16, %rsp
	.cfi_def_cfa_offset 72
	movl	n(%rip), %r14d
	testl	%r14d, %r14d
	jle	.L57
	leal	-1(%r14), %eax
	movl	%r14d, %edi
	leal	1(%r14), %ebx
	movl	%r14d, %r15d
	movl	%eax, -88(%rsp)
	addq	$2, %rax
	andl	$-4, %edi
	leaq	88+route(%rip), %r11
	movq	%rax, -8(%rsp)
	movslq	%r14d, %rax
	leal	2(%rdi), %esi
	leaq	-88(%r11), %r8
	salq	$2, %rax
	movl	%edi, -84(%rsp)
	movq	$-8, %rdx
	shrl	$2, %r15d
	movq	%rax, -104(%rsp)
	leal	1(%rdi), %eax
	addl	$3, %edi
	subq	%r8, %rdx
	cltq
	movl	%esi, -56(%rsp)
	movl	$4, %r12d
	movl	$84, %r13d
	movq	%rax, -80(%rsp)
	movslq	%esi, %rax
	movq	%rax, -48(%rsp)
	movslq	%edi, %rax
	movq	%rax, -32(%rsp)
	movl	%r14d, %eax
	salq	$2, %rax
	movl	%edi, -52(%rsp)
	movq	$-84, -24(%rsp)
	movq	$1, -40(%rsp)
	movl	%ebx, -92(%rsp)
	movq	%rdx, (%rsp)
	movq	%rax, -16(%rsp)
	.p2align 4,,10
	.p2align 3
.L59:
	leaq	-4(%r12), %rax
	leaq	(%r8,%r12), %rdi
	movl	$88, %esi
	movl	$1, %r10d
	movq	%rax, -120(%rsp)
	movq	(%rsp), %rax
	leaq	88+route(%rip), %rcx
	addq	-24(%rsp), %rax
	movq	%rax, -112(%rsp)
	movslq	-40(%rsp), %rax
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,4), %rax
	movq	%rax, -64(%rsp)
	addq	-80(%rsp), %rax
	movq	%rax, -72(%rsp)
	.p2align 4,,10
	.p2align 3
.L68:
	movq	-120(%rsp), %rax
	leaq	(%rax,%rsi), %rdx
	movq	-104(%rsp), %rax
	addq	%rsi, %rax
	cmpq	%rax, %rdx
	leaq	(%rsi,%r12), %rax
	setge	%dl
	cmpq	%rax, %rsi
	setge	%al
	orb	%dl, %al
	je	.L67
	movq	-112(%rsp), %rax
	addq	%rcx, %rax
	cmpq	$8, %rax
	seta	%dl
	cmpl	$2, -88(%rsp)
	seta	%al
	testb	%al, %dl
	je	.L67
	movd	84(%rdi), %xmm4
	movdqu	(%r11), %xmm2
	movdqu	(%rcx), %xmm5
	pshufd	$0, %xmm4, %xmm3
	paddd	%xmm3, %xmm2
	movdqa	%xmm5, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm5, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rcx)
	cmpl	$1, %r15d
	jbe	.L63
	movdqu	16(%r11), %xmm2
	movdqu	16(%rcx), %xmm6
	paddd	%xmm3, %xmm2
	movdqa	%xmm6, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm6, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 16(%rcx)
	cmpl	$2, %r15d
	je	.L63
	movdqu	32(%r11), %xmm2
	movdqu	32(%rcx), %xmm7
	paddd	%xmm3, %xmm2
	movdqa	%xmm7, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm7, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 32(%rcx)
	cmpl	$3, %r15d
	je	.L63
	movdqu	48(%r11), %xmm2
	movdqu	48(%rcx), %xmm7
	paddd	%xmm3, %xmm2
	movdqa	%xmm7, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm7, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 48(%rcx)
	cmpl	$4, %r15d
	je	.L63
	movdqu	64(%r11), %xmm2
	movdqu	64(%rcx), %xmm6
	paddd	%xmm3, %xmm2
	movdqa	%xmm6, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm6, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 64(%rcx)
.L63:
	cmpl	%r14d, -84(%rsp)
	je	.L62
	movslq	%r10d, %rax
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,4), %rdx
	movq	-80(%rsp), %rax
	leaq	(%rdx,%rax), %r9
	movq	-72(%rsp), %rax
	movl	(%r8,%r9,4), %ebx
	movl	(%r8,%rax,4), %eax
	addl	84(%rdi), %eax
	cmpl	%ebx, %eax
	cmovg	%ebx, %eax
	movl	%eax, (%r8,%r9,4)
	cmpl	-56(%rsp), %r14d
	jl	.L62
	movq	-48(%rsp), %rbx
	movq	-64(%rsp), %rbp
	leaq	(%rdx,%rbx), %r9
	movq	%rbp, %rax
	addq	%rbx, %rax
	movl	(%r8,%r9,4), %ebx
	movl	(%r8,%rax,4), %eax
	addl	84(%rdi), %eax
	cmpl	%ebx, %eax
	cmovg	%ebx, %eax
	movl	%eax, (%r8,%r9,4)
	cmpl	-52(%rsp), %r14d
	jl	.L62
	movq	-32(%rsp), %rbx
	movq	%rbp, %rax
	addq	%rbx, %rdx
	addq	%rbx, %rax
	movl	(%r8,%rdx,4), %r9d
	movl	(%r8,%rax,4), %eax
	addl	84(%rdi), %eax
	cmpl	%r9d, %eax
	cmovg	%r9d, %eax
	movl	%eax, (%r8,%rdx,4)
.L62:
	addl	$1, %r10d
	addq	$84, %rsi
	addq	$84, %rcx
	addq	$84, %rdi
	cmpl	-92(%rsp), %r10d
	jne	.L68
	addq	$1, -40(%rsp)
	addq	$84, %r13
	addq	$4, %r12
	addq	$84, %r11
	subq	$84, -24(%rsp)
	movq	-40(%rsp), %rax
	cmpq	-8(%rsp), %rax
	jne	.L59
.L57:
	addq	$16, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L67:
	.cfi_restore_state
	movq	-16(%rsp), %rax
	movl	$4, %ebx
	movq	%rcx, %rdx
	subq	%rsi, %rbx
	leaq	(%rax,%rcx), %rbp
	.p2align 4,,10
	.p2align 3
.L61:
	leaq	(%rbx,%rdx), %r9
	movl	84(%rdi), %eax
	addl	(%r9,%r13), %eax
	movl	(%rdx), %r9d
	cmpl	%r9d, %eax
	cmovg	%r9d, %eax
	addq	$4, %rdx
	movl	%eax, -4(%rdx)
	cmpq	%rbp, %rdx
	jne	.L61
	jmp	.L62
	.cfi_endproc
.LFE24:
	.size	warshall_floyd, .-warshall_floyd
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d,%d,%d,%d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%edx, %edx
	movl	$3435973837, %edi
	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
	leaq	route(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L84:
	movl	%edx, %eax
	movl	%edx, %ecx
	addl	$1, %edx
	imulq	%rdi, %rax
	shrq	$36, %rax
	leal	(%rax,%rax,4), %esi
	cltq
	sall	$2, %esi
	subl	%esi, %ecx
	leaq	(%rax,%rax,4), %rsi
	movslq	%ecx, %rcx
	leaq	(%rax,%rsi,4), %rax
	addq	%rcx, %rax
	movl	$1000000000, (%rbx,%rax,4)
	cmpl	$441, %edx
	jne	.L84
	leaq	m(%rip), %rdx
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	leaq	.LC2(%rip), %r15
	call	__isoc99_scanf@PLT
	movl	m(%rip), %eax
	testl	%eax, %eax
	jle	.L85
	leaq	20(%rsp), %r14
	leaq	16(%rsp), %r13
	leaq	12(%rsp), %r12
	leaq	8(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L86:
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%r14, %r8
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rax
	movslq	12(%rsp), %rdx
	movl	16(%rsp), %esi
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,4), %rcx
	addq	%rdx, %rcx
	movl	%esi, (%rbx,%rcx,4)
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rdx,%rcx,4), %rdx
	addq	%rdx, %rax
	movl	20(%rsp), %edx
	movl	%edx, (%rbx,%rax,4)
	movl	m(%rip), %eax
	subl	$1, %eax
	movl	%eax, m(%rip)
	testl	%eax, %eax
	jg	.L86
.L85:
	leaq	28(%rsp), %rdx
	leaq	24(%rsp), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	leaq	32(%rsp), %rcx
	leaq	36(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %edi
	leaq	cost(%rip), %rbp
	call	dijkstra
	movslq	28(%rsp), %rax
	movl	32(%rsp), %ebx
	subl	36(%rsp), %ebx
	movq	%rax, %rdi
	subl	0(%rbp,%rax,4), %ebx
	call	dijkstra
	movslq	24(%rsp), %rax
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	subl	0(%rbp,%rax,4), %ebx
	xorl	%eax, %eax
	movl	%ebx, %edx
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L92
	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
.L92:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	m
	.bss
	.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	check
	.align 32
	.type	check, @object
	.size	check, 84
check:
	.zero	84
	.globl	cost
	.align 32
	.type	cost, @object
	.size	cost, 84
cost:
	.zero	84
	.globl	route
	.align 32
	.type	route, @object
	.size	route, 1764
route:
	.zero	1764
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1000000000
	.long	1000000000
	.long	1000000000
	.long	1000000000
	.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>

#define MAX 1000000000
#define min(x, y) ((x) < (y) ? (x) : (y))

int route[21][21];
int cost[21];
int check[21];
int n, m;

void dijkstra(int start) {                                                      
    int i, u;                                                                   
                                                                                
    for (i = 1; i < n + 1; i++) {                                               
        cost[i] = MAX;                                                          
        check[i] = 0;                                                           
    }                                                                           
    cost[start] =0;                                                             
    while (1) {                                                                 
        int v = -1;                                                             
        for (u = 1; u < n + 1; u++) {                                           
            if (check[u] == 0 && (v == -1 || cost[u] < cost[v]))                
                v = u;                                                          
        }                                                                       
        if (v == -1)                                                            
            break;                                                              
        check[v] = 1;                                                           
                                                                                
        for (u = 1; u < n + 1; u++) {                                           
            cost[u] = min(cost[u], cost[v] + route[v][u]);                      
        }                                                                       
    }                                                                           
}

void warshall_floyd() {                                                         
    int i, j, k;                                                                
    for (k = 1; k < n + 1; k++)                                                 
        for (i = 1; i < n + 1; i++)                                             
            for (j = 1; j < n + 1; j++)                                         
                route[i][j] = min(route[i][j], route[i][k] + route[k][j]);      
}

int main(void) {                                                                
    int i, a, b, c, d;                                                          
    int x1, x2, y1, y2;                                                         
    int money;                                                                  
                                                                                
    for (i = 0; i < 21*21; i++) {                                               
        route[i/20][i%20] = MAX;                                                
    }                                                                           
                                                                                
    scanf("%d%d", &n, &m);                                                      
    while (m > 0) {                                                             
        scanf("%d,%d,%d,%d", &a, &b, &c, &d);                                   
        route[a][b] = c;                                                        
        route[b][a] = d;                                                        
        m--;                                                                    
    }                                                                           
    scanf("%d,%d,%d,%d", &x1, &x2, &y1, &y2);                                   
                                                                                
    dijkstra(x1);                                                               
    money = y1 - y2 - cost[x2];                                                 
    dijkstra(x2);                                                               
    money -= cost[x1];                                                          
    //    warshall_floyd();                                                     
    //money = y1 - (route[x1][x2] + route[x2][x1] + y2);                        
    printf("%d\n", money);                                                      
                                                                                
    return 0;       
}
6
8
1,2,2,2
1,3,4,3
1,4,4,2
2,5,3,2
3,4,4,2
3,6,1,2
4,6,1,1
5,6,2,2
2,4,50,30
 6
8
1,2,2,2
1,3,4,3
1,4,4,2
2,5,3,2
3,4,4,2
3,6,1,2
4,6,1,1
2,1,6,5
2,4,50,30
 6
8
1,2,2,2
0,3,4,3
2,4,4,1
2,5,3,2
3,4,2,4
3,6,1,2
4,6,1,1
5,6,2,2
2,4,50,30
 6
8
1,1,2,2
3,4,3,0
1,4,4,2
2,3,5,2
3,4,4,2
3,6,1,2
4,6,1,1
5,6,2,2
2,4,50,30
 6
7
1,2,2,2
1,2,4,3
1,4,4,2
2,5,3,2
3,4,4,2
3,6,1,2
4,6,1,1
2,1,6,5
2,4,50,30
 6
8
1,2,2,2
3,4,3,0
2,4,4,1
2,3,5,2
3,4,4,2
3,6,1,2
4,6,1,2
5,6,2,2
2,4,50,31
 6
8
1,2,2,2
0,3,4,3
1,4,4,2
2,5,2,2
3,4,4,2
3,6,1,2
4,6,1,1
5,6,2,2
2,4,50,30
 6
8
1,2,2,2
0,3,4,3
1,4,4,2
1,5,3,2
3,4,2,4
2,1,6,3
4,6,1,1
5,6,2,2
2,4,50,30
 6
8
1,2,2,2
3,4,3,0
1,5,2,4
1,5,3,2
4,4,2,4
2,1,6,3
4,6,1,1
5,6,2,2
2,4,50,30
 6
8
1,2,2,2
0,3,4,3
1,5,2,4
1,6,3,2
4,4,2,4
2,1,6,3
4,6,1,1
5,6,2,2
2,4,50,30

10
 3
 15
 9
 -6
 14
 11
 5
 0
 4

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>

#define MAX 1000000000
#define min(x, y) ((x) < (y) ? (x) : (y))

int route[21][21];
int cost[21];
int check[21];
int n, m;

void dijkstra(int start) {                                                      
    int i, u;                                                                   
                                                                                
    for (i = 1; i < n + 1; i++) {                                               
        cost[i] = MAX;                                                          
        check[i] = 0;                                                           
    }                                                                           
    cost[start] =0;                                                             
    while (1) {                                                                 
        int v = -1;                                                             
        for (u = 1; u < n + 1; u++) {                                           
            if (check[u] == 0 && (v == -1 || cost[u] < cost[v]))                
                v = u;                                                          
        }                                                                       
        if (v == -1)                                                            
            break;                                                              
        check[v] = 1;                                                           
                                                                                
        for (u = 1; u < n + 1; u++) {                                           
            cost[u] = min(cost[u], cost[v] + route[v][u]);                      
        }                                                                       
    }                                                                           
}

void warshall_floyd() {                                                         
    int i, j, k;                                                                
    for (k = 1; k < n + 1; k++)                                                 
        for (i = 1; i < n + 1; i++)                                             
            for (j = 1; j < n + 1; j++)                                         
                route[i][j] = min(route[i][j], route[i][k] + route[k][j]);      
}

int main(void) {                                                                
    int i, a, b, c, d;                                                          
    int x1, x2, y1, y2;                                                         
    int money;                                                                  
                                                                                
    for (i = 0; i < 21*21; i++) {                                               
        route[i/20][i%20] = MAX;                                                
    }                                                                           
                                                                                
    scanf("%d%d", &n, &m);                                                      
    while (m > 0) {                                                             
        scanf("%d,%d,%d,%d", &a, &b, &c, &d);                                   
        route[a][b] = c;                                                        
        route[b][a] = d;                                                        
        m--;                                                                    
    }                                                                           
    scanf("%d,%d,%d,%d", &x1, &x2, &y1, &y2);                                   
                                                                                
    dijkstra(x1);                                                               
    money = y1 - y2 - cost[x2];                                                 
    dijkstra(x2);                                                               
    money -= cost[x1];                                                          
    //    warshall_floyd();                                                     
    //money = y1 - (route[x1][x2] + route[x2][x1] + y2);                        
    printf("%d\n", money);                                                      
                                                                                
    return 0;       
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	route
	.bss
	.align 32
	.type	route, @object
	.size	route, 1764
route:
	.zero	1764
	.globl	cost
	.align 32
	.type	cost, @object
	.size	cost, 84
cost:
	.zero	84
	.globl	check
	.align 32
	.type	check, @object
	.size	check, 84
check:
	.zero	84
	.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
	.text
	.globl	dijkstra
	.type	dijkstra, @function
dijkstra:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L2
.L3:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	$1000000000, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	check(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L3
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	$0, (%rdx,%rax)
.L12:
	movl	$-1, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L4
.L7:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	check(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L5
	cmpl	$-1, -4(%rbp)
	je	.L6
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cost(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L5
.L6:
	movl	-8(%rbp), %eax
	movl	%eax, -4(%rbp)
.L5:
	addl	$1, -8(%rbp)
.L4:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L7
	cmpl	$-1, -4(%rbp)
	je	.L14
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	check(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	$1, -8(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cost(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cost(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -8(%rbp)
.L10:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L11
	jmp	.L12
.L14:
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dijkstra, .-dijkstra
	.globl	warshall_floyd
	.type	warshall_floyd, @function
warshall_floyd:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$1, -4(%rbp)
	jmp	.L16
.L21:
	movl	$1, -12(%rbp)
	jmp	.L17
.L20:
	movl	$1, -8(%rbp)
	jmp	.L18
.L19:
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, %ecx
	cmovg	%eax, %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -8(%rbp)
.L18:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L19
	addl	$1, -12(%rbp)
.L17:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L20
	addl	$1, -4(%rbp)
.L16:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L21
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	warshall_floyd, .-warshall_floyd
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d,%d,%d,%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -16(%rbp)
	jmp	.L23
.L24:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	sarl	$31, %eax
	movl	%edx, %esi
	subl	%eax, %esi
	movl	-16(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	$1000000000, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L23:
	cmpl	$440, -16(%rbp)
	jle	.L24
	leaq	m(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L25
.L26:
	leaq	-36(%rbp), %rsi
	leaq	-40(%rbp), %rcx
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-44(%rbp), %eax
	movl	-48(%rbp), %edx
	movl	-36(%rbp), %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	m(%rip), %eax
	subl	$1, %eax
	movl	%eax, m(%rip)
.L25:
	movl	m(%rip), %eax
	testl	%eax, %eax
	jg	.L26
	leaq	-20(%rbp), %rsi
	leaq	-24(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	movl	%eax, %edi
	call	dijkstra
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, %edi
	call	dijkstra
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	route
	.bss
	.align 32
	.type	route, @object
	.size	route, 1764
route:
	.zero	1764
	.globl	cost
	.align 32
	.type	cost, @object
	.size	cost, 84
cost:
	.zero	84
	.globl	check
	.align 32
	.type	check, @object
	.size	check, 84
check:
	.zero	84
	.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
	.text
	.globl	dijkstra
	.type	dijkstra, @function
dijkstra:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L2
.L3:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	$1000000000, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	check(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L3
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	$0, (%rdx,%rax)
.L12:
	movl	$-1, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L4
.L7:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	check(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L5
	cmpl	$-1, -4(%rbp)
	je	.L6
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cost(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L5
.L6:
	movl	-8(%rbp), %eax
	movl	%eax, -4(%rbp)
.L5:
	addl	$1, -8(%rbp)
.L4:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L7
	cmpl	$-1, -4(%rbp)
	je	.L14
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	check(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	$1, -8(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cost(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cost(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -8(%rbp)
.L10:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L11
	jmp	.L12
.L14:
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dijkstra, .-dijkstra
	.globl	warshall_floyd
	.type	warshall_floyd, @function
warshall_floyd:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$1, -4(%rbp)
	jmp	.L16
.L21:
	movl	$1, -12(%rbp)
	jmp	.L17
.L20:
	movl	$1, -8(%rbp)
	jmp	.L18
.L19:
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, %ecx
	cmovg	%eax, %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -8(%rbp)
.L18:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L19
	addl	$1, -12(%rbp)
.L17:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L20
	addl	$1, -4(%rbp)
.L16:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L21
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	warshall_floyd, .-warshall_floyd
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d,%d,%d,%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -16(%rbp)
	jmp	.L23
.L24:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	sarl	$31, %eax
	movl	%edx, %esi
	subl	%eax, %esi
	movl	-16(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	$1000000000, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L23:
	cmpl	$440, -16(%rbp)
	jle	.L24
	leaq	m(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L25
.L26:
	leaq	-36(%rbp), %rsi
	leaq	-40(%rbp), %rcx
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-44(%rbp), %eax
	movl	-48(%rbp), %edx
	movl	-36(%rbp), %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	route(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	m(%rip), %eax
	subl	$1, %eax
	movl	%eax, m(%rip)
.L25:
	movl	m(%rip), %eax
	testl	%eax, %eax
	jg	.L26
	leaq	-20(%rbp), %rsi
	leaq	-24(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	movl	%eax, %edi
	call	dijkstra
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, %edi
	call	dijkstra
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
