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 INF 10000000

int time[101][101],cost[101][101],m;

void warshall_floyd_cost(void);
void warshall_floyd_time(void);
int min(int,int);
void init(void);

int main(void){
  int i,j,n,k,a,b,cos,tim,p,q,r;

  while(scanf("%d %d",&n,&m),n,m){

    init();

    for(i=0;i<n;i++){
      scanf("%d %d %d %d",&a,&b,&cos,&tim);
      cost[a][b]=cost[b][a]=cos;
      time[a][b]=time[b][a]=tim;
    }

    warshall_floyd_cost();
    warshall_floyd_time();

    scanf("%d",&k);
    for(i=0;i<k;i++){
      scanf("%d %d %d",&p,&q,&r);
      printf("%d\n",r?time[p][q]:cost[p][q]);
    }
  }
  
  return 0;
}

void init(void){
  int i,j;
  for(i=0;i<101;i++){
    for(j=0;j<101;j++){
      time[i][j]=cost[i][j]=INF;     
    }
    time[i][i]=cost[i][i]=0;
  }
}

void warshall_floyd_cost(void){
  int i,j,k;
  for(k=0;k<=m;k++)
    for(i=0;i<=m;i++)
      for(j=0;j<=m;j++)
	cost[i][j]=min(cost[i][j],cost[i][k]+cost[k][j]);
}

void warshall_floyd_time(void){
  int i,j,k;
  for(k=0;k<=m;k++)
    for(i=0;i<=m;i++)
      for(j=0;j<=m;j++)
	time[i][j]=min(time[i][j],time[i][k]+time[k][j]);
}

int min(int x,int y){
  return x<y?x:y;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	time
	.bss
	.align 32
	.type	time, @object
	.size	time, 40804
time:
	.zero	40804
	.globl	cost
	.align 32
	.type	cost, @object
	.size	cost, 40804
cost:
	.zero	40804
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d %d"
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L9:
	call	init
	movl	$0, -12(%rbp)
	jmp	.L3
.L4:
	leaq	-28(%rbp), %rsi
	leaq	-32(%rbp), %rcx
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %ecx
	movl	-40(%rbp), %esi
	movl	-32(%rbp), %edi
	movslq	%esi, %r8
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r9
	addq	%r9, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	%edi, (%rdx,%rax)
	movl	-40(%rbp), %edi
	movl	-36(%rbp), %r8d
	movslq	%esi, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movslq	%r8d, %rsi
	movslq	%edi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-36(%rbp), %ecx
	movl	-40(%rbp), %esi
	movl	-28(%rbp), %edi
	movslq	%esi, %r8
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r9
	addq	%r9, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	%edi, (%rdx,%rax)
	movl	-40(%rbp), %edi
	movl	-36(%rbp), %r8d
	movslq	%esi, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movslq	%r8d, %rsi
	movslq	%edi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L3:
	movl	-48(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L4
	call	warshall_floyd_cost
	call	warshall_floyd_time
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L5
.L8:
	leaq	-16(%rbp), %rcx
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	je	.L6
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	(%rdx,%rax), %eax
	jmp	.L7
.L6:
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %eax
.L7:
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -12(%rbp)
.L5:
	movl	-44(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L8
.L2:
	leaq	-48(%rbp), %rax
	leaq	m(%rip), %rdx
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	m(%rip), %eax
	testl	%eax, %eax
	jne	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	init
	.type	init, @function
init:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -8(%rbp)
	jmp	.L13
.L16:
	movl	$0, -4(%rbp)
	jmp	.L14
.L15:
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	$10000000, (%rdx,%rax)
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	movslq	%eax, %rsi
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L14:
	cmpl	$100, -4(%rbp)
	jle	.L15
	movl	-8(%rbp), %eax
	cltq
	imulq	$408, %rax, %rax
	leaq	cost(%rip), %rdx
	movl	$0, (%rax,%rdx)
	movl	-8(%rbp), %eax
	cltq
	imulq	$408, %rax, %rax
	leaq	cost(%rip), %rdx
	movl	(%rax,%rdx), %edx
	movl	-8(%rbp), %eax
	cltq
	imulq	$408, %rax, %rax
	leaq	time(%rip), %rcx
	movl	%edx, (%rax,%rcx)
	addl	$1, -8(%rbp)
.L13:
	cmpl	$100, -8(%rbp)
	jle	.L16
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	init, .-init
	.globl	warshall_floyd_cost
	.type	warshall_floyd_cost, @function
warshall_floyd_cost:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -4(%rbp)
	jmp	.L18
.L23:
	movl	$0, -12(%rbp)
	jmp	.L19
.L22:
	movl	$0, -8(%rbp)
	jmp	.L20
.L21:
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	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
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%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
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	min
	movl	%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
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -8(%rbp)
.L20:
	movl	m(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L21
	addl	$1, -12(%rbp)
.L19:
	movl	m(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L22
	addl	$1, -4(%rbp)
.L18:
	movl	m(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L23
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	warshall_floyd_cost, .-warshall_floyd_cost
	.globl	warshall_floyd_time
	.type	warshall_floyd_time, @function
warshall_floyd_time:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -4(%rbp)
	jmp	.L25
.L30:
	movl	$0, -12(%rbp)
	jmp	.L26
.L29:
	movl	$0, -8(%rbp)
	jmp	.L27
.L28:
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%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
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%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
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	min
	movl	%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
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -8(%rbp)
.L27:
	movl	m(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L28
	addl	$1, -12(%rbp)
.L26:
	movl	m(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L29
	addl	$1, -4(%rbp)
.L25:
	movl	m(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L30
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	warshall_floyd_time, .-warshall_floyd_time
	.globl	min
	.type	min, @function
min:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	min, .-min
	.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
.LC1:
	.string	"%d %d %d %d"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d %d %d"
.LC4:
	.string	"%d\n"
.LC5:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	leaq	cost(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	40804(%r12), %r13
	leaq	time(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$200, %rsp
	.cfi_def_cfa_offset 256
	movq	%fs:40, %rax
	movq	%rax, 184(%rsp)
	xorl	%eax, %eax
	leaq	148(%rsp), %rax
	movq	%rax, 128(%rsp)
.L2:
	xorl	%eax, %eax
	movq	128(%rsp), %rsi
	leaq	m(%rip), %rdx
	leaq	.LC5(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	m(%rip), %ebx
	movdqa	.LC0(%rip), %xmm3
	testl	%ebx, %ebx
	je	.L62
	leaq	time(%rip), %rdi
	leaq	cost(%rip), %rsi
	movq	%rdi, %rcx
	movq	%rsi, %rdx
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L5:
	movups	%xmm3, (%rdx,%rax)
	movups	%xmm3, (%rcx,%rax)
	addq	$16, %rax
	cmpq	$400, %rax
	jne	.L5
	addq	$404, %rdx
	movl	$10000000, -4(%rdx)
	addq	$404, %rcx
	addq	$408, %rsi
	movl	$10000000, -4(%rcx)
	addq	$408, %rdi
	movl	$0, -408(%rsi)
	movl	$0, -408(%rdi)
	cmpq	%r13, %rdx
	jne	.L3
	movl	148(%rsp), %esi
	testl	%esi, %esi
	jle	.L8
	xorl	%ebx, %ebx
	leaq	168(%rsp), %r8
	leaq	164(%rsp), %rcx
	leaq	160(%rsp), %rdx
	leaq	156(%rsp), %r15
	leaq	.LC1(%rip), %r14
.L7:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	movq	%r8, 24(%rsp)
	movq	%rcx, 16(%rsp)
	addl	$1, %ebx
	movq	%rdx, 8(%rsp)
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rdx
	movq	16(%rsp), %rcx
	movslq	160(%rsp), %rdi
	movslq	156(%rsp), %rax
	movl	164(%rsp), %r9d
	movq	24(%rsp), %r8
	leaq	(%rdi,%rdi,4), %rsi
	leaq	(%rax,%rax,4), %r10
	leaq	(%rsi,%rsi,4), %rsi
	leaq	(%r10,%r10,4), %r10
	leaq	(%rdi,%rsi,4), %rsi
	addq	%rax, %rsi
	leaq	(%rax,%r10,4), %rax
	addq	%rdi, %rax
	movl	168(%rsp), %edi
	cmpl	%ebx, 148(%rsp)
	movl	%r9d, (%r12,%rsi,4)
	movl	%r9d, (%r12,%rax,4)
	movl	%edi, 0(%rbp,%rsi,4)
	movl	%edi, 0(%rbp,%rax,4)
	jg	.L7
	movl	m(%rip), %ebx
.L8:
	testl	%ebx, %ebx
	js	.L10
	movslq	%ebx, %rax
	leal	1(%rbx), %r10d
	movq	$0, 120(%rsp)
	leaq	cost(%rip), %r14
	leaq	4(,%rax,4), %rax
	movq	$0, 112(%rsp)
	movq	%rax, 16(%rsp)
	movl	%r10d, %eax
	movq	$0, 104(%rsp)
	shrl	$2, %eax
	movq	$0, 40(%rsp)
	subl	$1, %eax
	movq	40(%rsp), %rcx
	addq	$1, %rax
	salq	$4, %rax
	movq	%rax, %r11
	movl	%r10d, %eax
	andl	$-4, %eax
	leal	1(%rax), %edi
	leal	2(%rax), %esi
	movl	%eax, 24(%rsp)
	cltq
	movq	%rax, 72(%rsp)
	movslq	%edi, %rax
	movq	%rax, 88(%rsp)
	movslq	%esi, %rax
	movl	%edi, 36(%rsp)
	movl	%esi, 136(%rsp)
	movq	%rax, 96(%rsp)
.L20:
	leaq	(%rcx,%r12), %rdi
	addq	$4, %rcx
	movslq	104(%rsp), %rdx
	movq	%r12, %rax
	movq	%rcx, 48(%rsp)
	movq	120(%rsp), %rcx
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	subq	$4, %rcx
	movq	%rcx, 56(%rsp)
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	movq	%rcx, 64(%rsp)
	addq	72(%rsp), %rcx
	movq	%rcx, 80(%rsp)
.L22:
	movq	16(%rsp), %rcx
	movq	40(%rsp), %rdx
	cmpl	$2, %ebx
	seta	8(%rsp)
	movzbl	8(%rsp), %r15d
	addq	%rsi, %rcx
	addq	%rsi, %rdx
	cmpq	%rdx, %rcx
	movq	48(%rsp), %rdx
	setle	%cl
	addq	%rsi, %rdx
	cmpq	%rsi, %rdx
	setle	%dl
	orb	%cl, %dl
	je	.L19
	movq	56(%rsp), %rcx
	leaq	(%rcx,%rsi), %rdx
	cmpq	$8, %rdx
	seta	%dl
	testb	%dl, %r15b
	je	.L19
	movd	(%rdi), %xmm7
	xorl	%edx, %edx
	pshufd	$0, %xmm7, %xmm4
	.p2align 4,,10
	.p2align 3
.L14:
	movdqu	(%r14,%rdx), %xmm2
	movdqu	(%rax,%rdx), %xmm5
	paddd	%xmm4, %xmm2
	movdqa	%xmm5, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm5, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rax,%rdx)
	addq	$16, %rdx
	cmpq	%r11, %rdx
	jne	.L14
	cmpl	24(%rsp), %r10d
	je	.L13
	movslq	%r9d, %rdx
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	movq	72(%rsp), %rdx
	leaq	(%rcx,%rdx), %r8
	movq	80(%rsp), %rdx
	movl	(%r12,%r8,4), %r15d
	movl	(%r12,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r15d, %edx
	cmovg	%r15d, %edx
	movl	%edx, (%r12,%r8,4)
	cmpl	%ebx, 36(%rsp)
	jg	.L13
	movq	88(%rsp), %r15
	movq	64(%rsp), %rdx
	leaq	(%rcx,%r15), %r8
	addq	%r15, %rdx
	movl	(%r12,%r8,4), %r15d
	movl	(%r12,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r15d, %edx
	cmovg	%r15d, %edx
	movl	%edx, (%r12,%r8,4)
	cmpl	136(%rsp), %ebx
	jl	.L13
	movq	96(%rsp), %r15
	movq	64(%rsp), %rdx
	addq	%r15, %rcx
	addq	%r15, %rdx
	movl	(%r12,%rcx,4), %r8d
	movl	(%r12,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
	movl	%edx, (%r12,%rcx,4)
.L13:
	addl	$1, %r9d
	addq	$404, %rsi
	addq	$404, %rax
	addq	$404, %rdi
	cmpl	%r10d, %r9d
	jne	.L22
	addq	$1, 104(%rsp)
	movq	16(%rsp), %rdi
	addq	$404, %r14
	addq	$404, 112(%rsp)
	subq	$404, 120(%rsp)
	cmpq	%rdi, 48(%rsp)
	je	.L63
	movq	48(%rsp), %rax
	movq	%rax, 40(%rsp)
	movq	%rax, %rcx
	jmp	.L20
.L19:
	movq	16(%rsp), %rcx
	movl	%ebx, 140(%rsp)
	movq	112(%rsp), %rbx
	leaq	(%rax,%rcx), %r15
	movq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%rcx, %rdx
	movl	(%rdi), %r8d
	subq	%rsi, %rdx
	addl	(%rdx,%rbx), %r8d
	movl	%r8d, %edx
	movl	(%rcx), %r8d
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
	addq	$4, %rcx
	movl	%edx, -4(%rcx)
	cmpq	%r15, %rcx
	jne	.L12
	movl	140(%rsp), %ebx
	jmp	.L13
.L63:
	movslq	24(%rsp), %rax
	xorl	%edi, %edi
	movq	$0, 120(%rsp)
	leaq	time(%rip), %r14
	movq	$0, 112(%rsp)
	movq	%rax, 80(%rsp)
	movslq	36(%rsp), %rax
	movq	$0, 40(%rsp)
	movq	40(%rsp), %rcx
	movq	%rax, 96(%rsp)
	movslq	136(%rsp), %rax
	movl	%ebx, 56(%rsp)
	movq	%rdi, %rbx
	movq	%rax, 104(%rsp)
.L21:
	leaq	(%rcx,%rbp), %rdi
	addq	$4, %rcx
	movslq	112(%rsp), %rdx
	movq	%rbp, %rax
	movq	%rcx, 48(%rsp)
	movq	120(%rsp), %rcx
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	subq	$4, %rcx
	movq	%rcx, 64(%rsp)
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	movq	%rcx, 72(%rsp)
	addq	80(%rsp), %rcx
	movq	%rcx, 88(%rsp)
.L32:
	movq	40(%rsp), %rcx
	movq	16(%rsp), %rdx
	addq	%rsi, %rcx
	addq	%rsi, %rdx
	cmpq	%rdx, %rcx
	movq	48(%rsp), %rdx
	setge	%cl
	addq	%rsi, %rdx
	cmpq	%rdx, %rsi
	setge	%dl
	orb	%cl, %dl
	je	.L31
	movq	64(%rsp), %rcx
	leaq	(%rcx,%rsi), %rdx
	cmpq	$8, %rdx
	seta	%dl
	testb	%dl, 8(%rsp)
	je	.L31
	movd	(%rdi), %xmm7
	xorl	%edx, %edx
	pshufd	$0, %xmm7, %xmm4
	.p2align 4,,10
	.p2align 3
.L26:
	movdqu	(%r14,%rdx), %xmm2
	movdqu	(%rax,%rdx), %xmm6
	paddd	%xmm4, %xmm2
	movdqa	%xmm6, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm6, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rax,%rdx)
	addq	$16, %rdx
	cmpq	%r11, %rdx
	jne	.L26
	cmpl	24(%rsp), %r10d
	je	.L25
	movslq	%r9d, %rdx
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	movq	80(%rsp), %rdx
	leaq	(%rcx,%rdx), %r8
	movq	88(%rsp), %rdx
	movl	0(%rbp,%r8,4), %r15d
	movl	0(%rbp,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r15d, %edx
	cmovg	%r15d, %edx
	movl	%edx, 0(%rbp,%r8,4)
	movl	56(%rsp), %edx
	cmpl	%edx, 36(%rsp)
	jg	.L25
	movq	96(%rsp), %r15
	movq	72(%rsp), %rdx
	leaq	(%rcx,%r15), %r8
	addq	%r15, %rdx
	movl	0(%rbp,%r8,4), %r15d
	movl	0(%rbp,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r15d, %edx
	cmovg	%r15d, %edx
	movl	%edx, 0(%rbp,%r8,4)
	movl	136(%rsp), %r8d
	cmpl	%r8d, 56(%rsp)
	jl	.L25
	movq	104(%rsp), %r15
	movq	72(%rsp), %rdx
	addq	%r15, %rcx
	addq	%r15, %rdx
	movl	0(%rbp,%rcx,4), %r8d
	movl	0(%rbp,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
	movl	%edx, 0(%rbp,%rcx,4)
.L25:
	addl	$1, %r9d
	addq	$404, %rsi
	addq	$404, %rax
	addq	$404, %rdi
	cmpl	%r10d, %r9d
	jne	.L32
	movq	48(%rsp), %rax
	movq	16(%rsp), %rdi
	addq	$404, %rbx
	addq	$404, %r14
	addq	$1, 112(%rsp)
	subq	$404, 120(%rsp)
	cmpq	%rdi, %rax
	je	.L10
	movq	%rax, 40(%rsp)
	movq	%rax, %rcx
	jmp	.L21
.L31:
	movq	16(%rsp), %rcx
	leaq	(%rax,%rcx), %r15
	movq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L24:
	movq	%rcx, %r8
	movl	(%rdi), %edx
	subq	%rsi, %r8
	addl	(%r8,%rbx), %edx
	movl	(%rcx), %r8d
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
	addq	$4, %rcx
	movl	%edx, -4(%rcx)
	cmpq	%r15, %rcx
	jne	.L24
	jmp	.L25
.L10:
	leaq	152(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	152(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	176(%rsp), %rax
	xorl	%r14d, %r14d
	leaq	180(%rsp), %r15
	movq	%rax, 16(%rsp)
	leaq	172(%rsp), %rax
	leaq	.LC4(%rip), %rbx
	movq	%rax, 8(%rsp)
	jmp	.L33
.L64:
	movl	0(%rbp,%rax,4), %edx
.L60:
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__printf_chk@PLT
	cmpl	%r14d, 152(%rsp)
	jle	.L2
.L33:
	movq	16(%rsp), %rdx
	movq	8(%rsp), %rsi
	movq	%r15, %rcx
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movslq	172(%rsp), %rax
	movslq	176(%rsp), %rcx
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %rax
	movl	180(%rsp), %edx
	addq	%rcx, %rax
	testl	%edx, %edx
	jne	.L64
	movl	(%r12,%rax,4), %edx
	jmp	.L60
.L62:
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L65
	addq	$200, %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
.L65:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	init
	.type	init, @function
init:
.LFB24:
	.cfi_startproc
	endbr64
	leaq	cost(%rip), %rax
	leaq	time(%rip), %rdx
	movdqa	.LC0(%rip), %xmm0
	leaq	40804(%rax), %r8
	movq	%rdx, %rsi
	movq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L67:
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L69:
	movups	%xmm0, (%rax,%rdi)
	movups	%xmm0, (%rdx,%rdi)
	addq	$16, %rdi
	cmpq	$400, %rdi
	jne	.L69
	movl	$10000000, 400(%rax)
	addq	$404, %rax
	addq	$404, %rdx
	addq	$408, %rcx
	movl	$10000000, -4(%rdx)
	addq	$408, %rsi
	movl	$0, -408(%rcx)
	movl	$0, -408(%rsi)
	cmpq	%r8, %rax
	jne	.L67
	ret
	.cfi_endproc
.LFE24:
	.size	init, .-init
	.p2align 4
	.globl	warshall_floyd_cost
	.type	warshall_floyd_cost, @function
warshall_floyd_cost:
.LFB25:
	.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
	movl	m(%rip), %r14d
	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
	testl	%r14d, %r14d
	js	.L75
	movslq	%r14d, %rax
	leal	1(%r14), %ebp
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	leaq	4(,%rax,4), %rax
	leaq	cost(%rip), %r9
	movq	$0, -16(%rsp)
	movq	%rax, -104(%rsp)
	movl	%ebp, %eax
	movq	%r9, %r8
	movq	$0, -24(%rsp)
	shrl	$2, %eax
	leal	-1(%rax), %r11d
	movl	%ebp, %eax
	andl	$-4, %eax
	addq	$1, %r11
	leal	1(%rax), %ebx
	leal	2(%rax), %edi
	movl	%eax, -68(%rsp)
	cltq
	movq	%rax, -64(%rsp)
	movslq	%ebx, %rax
	salq	$4, %r11
	movq	%rax, -40(%rsp)
	movslq	%edi, %rax
	movl	%ebx, -48(%rsp)
	movl	%edi, -44(%rsp)
	movq	%rax, -32(%rsp)
	.p2align 4,,10
	.p2align 3
.L77:
	leaq	4(%r12), %rcx
	movslq	-24(%rsp), %rdx
	leaq	(%r12,%r9), %rdi
	xorl	%esi, %esi
	movq	%rcx, -96(%rsp)
	movq	-16(%rsp), %rcx
	movq	%r9, %rax
	xorl	%ebx, %ebx
	subq	$4, %rcx
	movq	%rcx, -80(%rsp)
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	movq	%rcx, -88(%rsp)
	addq	-64(%rsp), %rcx
	movq	%rcx, -56(%rsp)
	.p2align 4,,10
	.p2align 3
.L87:
	movq	-104(%rsp), %rcx
	leaq	(%rsi,%r12), %rdx
	addq	%rsi, %rcx
	cmpq	%rdx, %rcx
	movq	-96(%rsp), %rdx
	setle	%cl
	addq	%rsi, %rdx
	cmpq	%rdx, %rsi
	setge	%dl
	orb	%cl, %dl
	je	.L86
	movq	-80(%rsp), %rcx
	leaq	(%rcx,%rsi), %rdx
	cmpq	$8, %rdx
	seta	%cl
	cmpl	$2, %r14d
	seta	%dl
	testb	%dl, %cl
	je	.L86
	movd	(%rdi), %xmm5
	xorl	%edx, %edx
	pshufd	$0, %xmm5, %xmm3
	.p2align 4,,10
	.p2align 3
.L81:
	movdqu	(%r8,%rdx), %xmm2
	movdqu	(%rax,%rdx), %xmm4
	paddd	%xmm3, %xmm2
	movdqa	%xmm4, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm4, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rax,%rdx)
	addq	$16, %rdx
	cmpq	%r11, %rdx
	jne	.L81
	cmpl	-68(%rsp), %ebp
	je	.L80
	movslq	%ebx, %rdx
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	movq	-64(%rsp), %rdx
	leaq	(%rcx,%rdx), %r10
	movq	-56(%rsp), %rdx
	movl	(%r9,%r10,4), %r15d
	movl	(%r9,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r15d, %edx
	cmovg	%r15d, %edx
	movl	%edx, (%r9,%r10,4)
	cmpl	-48(%rsp), %r14d
	jl	.L80
	movq	-40(%rsp), %r15
	movq	-88(%rsp), %rdx
	leaq	(%rcx,%r15), %r10
	addq	%r15, %rdx
	movl	(%r9,%r10,4), %r15d
	movl	(%r9,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r15d, %edx
	cmovg	%r15d, %edx
	movl	%edx, (%r9,%r10,4)
	cmpl	-44(%rsp), %r14d
	jl	.L80
	movq	-32(%rsp), %r15
	movq	-88(%rsp), %rdx
	addq	%r15, %rcx
	addq	%r15, %rdx
	movl	(%r9,%rcx,4), %r10d
	movl	(%r9,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r10d, %edx
	cmovg	%r10d, %edx
	movl	%edx, (%r9,%rcx,4)
.L80:
	addl	$1, %ebx
	addq	$404, %rsi
	addq	$404, %rax
	addq	$404, %rdi
	cmpl	%ebp, %ebx
	jne	.L87
	movq	-96(%rsp), %r12
	movq	-104(%rsp), %rax
	addq	$404, %r13
	addq	$404, %r8
	addq	$1, -24(%rsp)
	subq	$404, -16(%rsp)
	cmpq	%rax, %r12
	jne	.L77
.L75:
	popq	%rbx
	.cfi_remember_state
	.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
.L86:
	.cfi_restore_state
	movq	-104(%rsp), %rcx
	leaq	(%rax,%rcx), %r15
	movq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L79:
	movq	%rcx, %r10
	movl	(%rdi), %edx
	subq	%rsi, %r10
	addl	(%r10,%r13), %edx
	movl	(%rcx), %r10d
	cmpl	%r10d, %edx
	cmovg	%r10d, %edx
	addq	$4, %rcx
	movl	%edx, -4(%rcx)
	cmpq	%r15, %rcx
	jne	.L79
	jmp	.L80
	.cfi_endproc
.LFE25:
	.size	warshall_floyd_cost, .-warshall_floyd_cost
	.p2align 4
	.globl	warshall_floyd_time
	.type	warshall_floyd_time, @function
warshall_floyd_time:
.LFB26:
	.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
	movl	m(%rip), %r14d
	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
	testl	%r14d, %r14d
	js	.L95
	movslq	%r14d, %rax
	leal	1(%r14), %ebp
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	leaq	4(,%rax,4), %rax
	leaq	time(%rip), %r9
	movq	$0, -16(%rsp)
	movq	%rax, -104(%rsp)
	movl	%ebp, %eax
	movq	%r9, %r8
	movq	$0, -24(%rsp)
	shrl	$2, %eax
	leal	-1(%rax), %r11d
	movl	%ebp, %eax
	andl	$-4, %eax
	addq	$1, %r11
	leal	1(%rax), %ebx
	leal	2(%rax), %edi
	movl	%eax, -68(%rsp)
	cltq
	movq	%rax, -64(%rsp)
	movslq	%ebx, %rax
	salq	$4, %r11
	movq	%rax, -40(%rsp)
	movslq	%edi, %rax
	movl	%ebx, -48(%rsp)
	movl	%edi, -44(%rsp)
	movq	%rax, -32(%rsp)
	.p2align 4,,10
	.p2align 3
.L97:
	leaq	4(%r12), %rcx
	movslq	-24(%rsp), %rdx
	leaq	(%r12,%r9), %rdi
	xorl	%esi, %esi
	movq	%rcx, -96(%rsp)
	movq	-16(%rsp), %rcx
	movq	%r9, %rax
	xorl	%ebx, %ebx
	subq	$4, %rcx
	movq	%rcx, -80(%rsp)
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	movq	%rcx, -88(%rsp)
	addq	-64(%rsp), %rcx
	movq	%rcx, -56(%rsp)
	.p2align 4,,10
	.p2align 3
.L107:
	movq	-104(%rsp), %rcx
	leaq	(%rsi,%r12), %rdx
	addq	%rsi, %rcx
	cmpq	%rdx, %rcx
	movq	-96(%rsp), %rdx
	setle	%cl
	addq	%rsi, %rdx
	cmpq	%rdx, %rsi
	setge	%dl
	orb	%cl, %dl
	je	.L106
	movq	-80(%rsp), %rcx
	leaq	(%rcx,%rsi), %rdx
	cmpq	$8, %rdx
	seta	%cl
	cmpl	$2, %r14d
	seta	%dl
	testb	%dl, %cl
	je	.L106
	movd	(%rdi), %xmm5
	xorl	%edx, %edx
	pshufd	$0, %xmm5, %xmm3
	.p2align 4,,10
	.p2align 3
.L101:
	movdqu	(%r8,%rdx), %xmm2
	movdqu	(%rax,%rdx), %xmm4
	paddd	%xmm3, %xmm2
	movdqa	%xmm4, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm4, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rax,%rdx)
	addq	$16, %rdx
	cmpq	%r11, %rdx
	jne	.L101
	cmpl	-68(%rsp), %ebp
	je	.L100
	movslq	%ebx, %rdx
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	movq	-64(%rsp), %rdx
	leaq	(%rcx,%rdx), %r10
	movq	-56(%rsp), %rdx
	movl	(%r9,%r10,4), %r15d
	movl	(%r9,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r15d, %edx
	cmovg	%r15d, %edx
	movl	%edx, (%r9,%r10,4)
	cmpl	-48(%rsp), %r14d
	jl	.L100
	movq	-40(%rsp), %r15
	movq	-88(%rsp), %rdx
	leaq	(%rcx,%r15), %r10
	addq	%r15, %rdx
	movl	(%r9,%r10,4), %r15d
	movl	(%r9,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r15d, %edx
	cmovg	%r15d, %edx
	movl	%edx, (%r9,%r10,4)
	cmpl	-44(%rsp), %r14d
	jl	.L100
	movq	-32(%rsp), %r15
	movq	-88(%rsp), %rdx
	addq	%r15, %rcx
	addq	%r15, %rdx
	movl	(%r9,%rcx,4), %r10d
	movl	(%r9,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r10d, %edx
	cmovg	%r10d, %edx
	movl	%edx, (%r9,%rcx,4)
.L100:
	addl	$1, %ebx
	addq	$404, %rsi
	addq	$404, %rax
	addq	$404, %rdi
	cmpl	%ebp, %ebx
	jne	.L107
	movq	-96(%rsp), %r12
	movq	-104(%rsp), %rax
	addq	$404, %r13
	addq	$404, %r8
	addq	$1, -24(%rsp)
	subq	$404, -16(%rsp)
	cmpq	%rax, %r12
	jne	.L97
.L95:
	popq	%rbx
	.cfi_remember_state
	.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
.L106:
	.cfi_restore_state
	movq	-104(%rsp), %rcx
	leaq	(%rax,%rcx), %r15
	movq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L99:
	movq	%rcx, %r10
	movl	(%rdi), %edx
	subq	%rsi, %r10
	addl	(%r10,%r13), %edx
	movl	(%rcx), %r10d
	cmpl	%r10d, %edx
	cmovg	%r10d, %edx
	addq	$4, %rcx
	movl	%edx, -4(%rcx)
	cmpq	%r15, %rcx
	jne	.L99
	jmp	.L100
	.cfi_endproc
.LFE26:
	.size	warshall_floyd_time, .-warshall_floyd_time
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB27:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	movl	%edi, %eax
	cmovle	%esi, %eax
	ret
	.cfi_endproc
.LFE27:
	.size	min, .-min
	.globl	m
	.bss
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	cost
	.align 32
	.type	cost, @object
	.size	cost, 40804
cost:
	.zero	40804
	.globl	time
	.align 32
	.type	time, @object
	.size	time, 40804
time:
	.zero	40804
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	10000000
	.long	10000000
	.long	10000000
	.long	10000000
	.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
.LC1:
	.string	"%d %d %d %d"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d %d %d"
.LC4:
	.string	"%d\n"
.LC5:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	leaq	cost(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	40804(%r12), %r13
	leaq	time(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$200, %rsp
	.cfi_def_cfa_offset 256
	movq	%fs:40, %rax
	movq	%rax, 184(%rsp)
	xorl	%eax, %eax
	leaq	148(%rsp), %rax
	movq	%rax, 128(%rsp)
.L2:
	xorl	%eax, %eax
	movq	128(%rsp), %rsi
	leaq	m(%rip), %rdx
	leaq	.LC5(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	m(%rip), %ebx
	movdqa	.LC0(%rip), %xmm3
	testl	%ebx, %ebx
	je	.L62
	leaq	time(%rip), %rdi
	leaq	cost(%rip), %rsi
	movq	%rdi, %rcx
	movq	%rsi, %rdx
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L5:
	movups	%xmm3, (%rdx,%rax)
	movups	%xmm3, (%rcx,%rax)
	addq	$16, %rax
	cmpq	$400, %rax
	jne	.L5
	addq	$404, %rdx
	movl	$10000000, -4(%rdx)
	addq	$404, %rcx
	addq	$408, %rsi
	movl	$10000000, -4(%rcx)
	addq	$408, %rdi
	movl	$0, -408(%rsi)
	movl	$0, -408(%rdi)
	cmpq	%r13, %rdx
	jne	.L3
	movl	148(%rsp), %esi
	testl	%esi, %esi
	jle	.L8
	xorl	%ebx, %ebx
	leaq	168(%rsp), %r8
	leaq	164(%rsp), %rcx
	leaq	160(%rsp), %rdx
	leaq	156(%rsp), %r15
	leaq	.LC1(%rip), %r14
.L7:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	movq	%r8, 24(%rsp)
	movq	%rcx, 16(%rsp)
	addl	$1, %ebx
	movq	%rdx, 8(%rsp)
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rdx
	movq	16(%rsp), %rcx
	movslq	160(%rsp), %rdi
	movslq	156(%rsp), %rax
	movl	164(%rsp), %r9d
	movq	24(%rsp), %r8
	leaq	(%rdi,%rdi,4), %rsi
	leaq	(%rax,%rax,4), %r10
	leaq	(%rsi,%rsi,4), %rsi
	leaq	(%r10,%r10,4), %r10
	leaq	(%rdi,%rsi,4), %rsi
	addq	%rax, %rsi
	leaq	(%rax,%r10,4), %rax
	addq	%rdi, %rax
	movl	168(%rsp), %edi
	cmpl	%ebx, 148(%rsp)
	movl	%r9d, (%r12,%rsi,4)
	movl	%r9d, (%r12,%rax,4)
	movl	%edi, 0(%rbp,%rsi,4)
	movl	%edi, 0(%rbp,%rax,4)
	jg	.L7
	movl	m(%rip), %ebx
.L8:
	testl	%ebx, %ebx
	js	.L10
	movslq	%ebx, %rax
	leal	1(%rbx), %r10d
	movq	$0, 120(%rsp)
	leaq	cost(%rip), %r14
	leaq	4(,%rax,4), %rax
	movq	$0, 112(%rsp)
	movq	%rax, 16(%rsp)
	movl	%r10d, %eax
	movq	$0, 104(%rsp)
	shrl	$2, %eax
	movq	$0, 40(%rsp)
	subl	$1, %eax
	movq	40(%rsp), %rcx
	addq	$1, %rax
	salq	$4, %rax
	movq	%rax, %r11
	movl	%r10d, %eax
	andl	$-4, %eax
	leal	1(%rax), %edi
	leal	2(%rax), %esi
	movl	%eax, 24(%rsp)
	cltq
	movq	%rax, 72(%rsp)
	movslq	%edi, %rax
	movq	%rax, 88(%rsp)
	movslq	%esi, %rax
	movl	%edi, 36(%rsp)
	movl	%esi, 136(%rsp)
	movq	%rax, 96(%rsp)
.L20:
	leaq	(%rcx,%r12), %rdi
	addq	$4, %rcx
	movslq	104(%rsp), %rdx
	movq	%r12, %rax
	movq	%rcx, 48(%rsp)
	movq	120(%rsp), %rcx
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	subq	$4, %rcx
	movq	%rcx, 56(%rsp)
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	movq	%rcx, 64(%rsp)
	addq	72(%rsp), %rcx
	movq	%rcx, 80(%rsp)
.L22:
	movq	16(%rsp), %rcx
	movq	40(%rsp), %rdx
	cmpl	$2, %ebx
	seta	8(%rsp)
	movzbl	8(%rsp), %r15d
	addq	%rsi, %rcx
	addq	%rsi, %rdx
	cmpq	%rdx, %rcx
	movq	48(%rsp), %rdx
	setle	%cl
	addq	%rsi, %rdx
	cmpq	%rsi, %rdx
	setle	%dl
	orb	%cl, %dl
	je	.L19
	movq	56(%rsp), %rcx
	leaq	(%rcx,%rsi), %rdx
	cmpq	$8, %rdx
	seta	%dl
	testb	%dl, %r15b
	je	.L19
	movd	(%rdi), %xmm7
	xorl	%edx, %edx
	pshufd	$0, %xmm7, %xmm4
	.p2align 4,,10
	.p2align 3
.L14:
	movdqu	(%r14,%rdx), %xmm2
	movdqu	(%rax,%rdx), %xmm5
	paddd	%xmm4, %xmm2
	movdqa	%xmm5, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm5, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rax,%rdx)
	addq	$16, %rdx
	cmpq	%r11, %rdx
	jne	.L14
	cmpl	24(%rsp), %r10d
	je	.L13
	movslq	%r9d, %rdx
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	movq	72(%rsp), %rdx
	leaq	(%rcx,%rdx), %r8
	movq	80(%rsp), %rdx
	movl	(%r12,%r8,4), %r15d
	movl	(%r12,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r15d, %edx
	cmovg	%r15d, %edx
	movl	%edx, (%r12,%r8,4)
	cmpl	%ebx, 36(%rsp)
	jg	.L13
	movq	88(%rsp), %r15
	movq	64(%rsp), %rdx
	leaq	(%rcx,%r15), %r8
	addq	%r15, %rdx
	movl	(%r12,%r8,4), %r15d
	movl	(%r12,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r15d, %edx
	cmovg	%r15d, %edx
	movl	%edx, (%r12,%r8,4)
	cmpl	136(%rsp), %ebx
	jl	.L13
	movq	96(%rsp), %r15
	movq	64(%rsp), %rdx
	addq	%r15, %rcx
	addq	%r15, %rdx
	movl	(%r12,%rcx,4), %r8d
	movl	(%r12,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
	movl	%edx, (%r12,%rcx,4)
.L13:
	addl	$1, %r9d
	addq	$404, %rsi
	addq	$404, %rax
	addq	$404, %rdi
	cmpl	%r10d, %r9d
	jne	.L22
	addq	$1, 104(%rsp)
	movq	16(%rsp), %rdi
	addq	$404, %r14
	addq	$404, 112(%rsp)
	subq	$404, 120(%rsp)
	cmpq	%rdi, 48(%rsp)
	je	.L63
	movq	48(%rsp), %rax
	movq	%rax, 40(%rsp)
	movq	%rax, %rcx
	jmp	.L20
.L19:
	movq	16(%rsp), %rcx
	movl	%ebx, 140(%rsp)
	movq	112(%rsp), %rbx
	leaq	(%rax,%rcx), %r15
	movq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%rcx, %rdx
	movl	(%rdi), %r8d
	subq	%rsi, %rdx
	addl	(%rdx,%rbx), %r8d
	movl	%r8d, %edx
	movl	(%rcx), %r8d
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
	addq	$4, %rcx
	movl	%edx, -4(%rcx)
	cmpq	%r15, %rcx
	jne	.L12
	movl	140(%rsp), %ebx
	jmp	.L13
.L63:
	movslq	24(%rsp), %rax
	xorl	%edi, %edi
	movq	$0, 120(%rsp)
	leaq	time(%rip), %r14
	movq	$0, 112(%rsp)
	movq	%rax, 80(%rsp)
	movslq	36(%rsp), %rax
	movq	$0, 40(%rsp)
	movq	40(%rsp), %rcx
	movq	%rax, 96(%rsp)
	movslq	136(%rsp), %rax
	movl	%ebx, 56(%rsp)
	movq	%rdi, %rbx
	movq	%rax, 104(%rsp)
.L21:
	leaq	(%rcx,%rbp), %rdi
	addq	$4, %rcx
	movslq	112(%rsp), %rdx
	movq	%rbp, %rax
	movq	%rcx, 48(%rsp)
	movq	120(%rsp), %rcx
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	subq	$4, %rcx
	movq	%rcx, 64(%rsp)
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	movq	%rcx, 72(%rsp)
	addq	80(%rsp), %rcx
	movq	%rcx, 88(%rsp)
.L32:
	movq	40(%rsp), %rcx
	movq	16(%rsp), %rdx
	addq	%rsi, %rcx
	addq	%rsi, %rdx
	cmpq	%rdx, %rcx
	movq	48(%rsp), %rdx
	setge	%cl
	addq	%rsi, %rdx
	cmpq	%rdx, %rsi
	setge	%dl
	orb	%cl, %dl
	je	.L31
	movq	64(%rsp), %rcx
	leaq	(%rcx,%rsi), %rdx
	cmpq	$8, %rdx
	seta	%dl
	testb	%dl, 8(%rsp)
	je	.L31
	movd	(%rdi), %xmm7
	xorl	%edx, %edx
	pshufd	$0, %xmm7, %xmm4
	.p2align 4,,10
	.p2align 3
.L26:
	movdqu	(%r14,%rdx), %xmm2
	movdqu	(%rax,%rdx), %xmm6
	paddd	%xmm4, %xmm2
	movdqa	%xmm6, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm6, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rax,%rdx)
	addq	$16, %rdx
	cmpq	%r11, %rdx
	jne	.L26
	cmpl	24(%rsp), %r10d
	je	.L25
	movslq	%r9d, %rdx
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	movq	80(%rsp), %rdx
	leaq	(%rcx,%rdx), %r8
	movq	88(%rsp), %rdx
	movl	0(%rbp,%r8,4), %r15d
	movl	0(%rbp,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r15d, %edx
	cmovg	%r15d, %edx
	movl	%edx, 0(%rbp,%r8,4)
	movl	56(%rsp), %edx
	cmpl	%edx, 36(%rsp)
	jg	.L25
	movq	96(%rsp), %r15
	movq	72(%rsp), %rdx
	leaq	(%rcx,%r15), %r8
	addq	%r15, %rdx
	movl	0(%rbp,%r8,4), %r15d
	movl	0(%rbp,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r15d, %edx
	cmovg	%r15d, %edx
	movl	%edx, 0(%rbp,%r8,4)
	movl	136(%rsp), %r8d
	cmpl	%r8d, 56(%rsp)
	jl	.L25
	movq	104(%rsp), %r15
	movq	72(%rsp), %rdx
	addq	%r15, %rcx
	addq	%r15, %rdx
	movl	0(%rbp,%rcx,4), %r8d
	movl	0(%rbp,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
	movl	%edx, 0(%rbp,%rcx,4)
.L25:
	addl	$1, %r9d
	addq	$404, %rsi
	addq	$404, %rax
	addq	$404, %rdi
	cmpl	%r10d, %r9d
	jne	.L32
	movq	48(%rsp), %rax
	movq	16(%rsp), %rdi
	addq	$404, %rbx
	addq	$404, %r14
	addq	$1, 112(%rsp)
	subq	$404, 120(%rsp)
	cmpq	%rdi, %rax
	je	.L10
	movq	%rax, 40(%rsp)
	movq	%rax, %rcx
	jmp	.L21
.L31:
	movq	16(%rsp), %rcx
	leaq	(%rax,%rcx), %r15
	movq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L24:
	movq	%rcx, %r8
	movl	(%rdi), %edx
	subq	%rsi, %r8
	addl	(%r8,%rbx), %edx
	movl	(%rcx), %r8d
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
	addq	$4, %rcx
	movl	%edx, -4(%rcx)
	cmpq	%r15, %rcx
	jne	.L24
	jmp	.L25
.L10:
	leaq	152(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	152(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	176(%rsp), %rax
	xorl	%r14d, %r14d
	leaq	180(%rsp), %r15
	movq	%rax, 16(%rsp)
	leaq	172(%rsp), %rax
	leaq	.LC4(%rip), %rbx
	movq	%rax, 8(%rsp)
	jmp	.L33
.L64:
	movl	0(%rbp,%rax,4), %edx
.L60:
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__printf_chk@PLT
	cmpl	%r14d, 152(%rsp)
	jle	.L2
.L33:
	movq	16(%rsp), %rdx
	movq	8(%rsp), %rsi
	movq	%r15, %rcx
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movslq	172(%rsp), %rax
	movslq	176(%rsp), %rcx
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %rax
	movl	180(%rsp), %edx
	addq	%rcx, %rax
	testl	%edx, %edx
	jne	.L64
	movl	(%r12,%rax,4), %edx
	jmp	.L60
.L62:
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L65
	addq	$200, %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
.L65:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	init
	.type	init, @function
init:
.LFB24:
	.cfi_startproc
	endbr64
	leaq	cost(%rip), %rax
	leaq	time(%rip), %rdx
	movdqa	.LC0(%rip), %xmm0
	leaq	40804(%rax), %r8
	movq	%rdx, %rsi
	movq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L67:
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L69:
	movups	%xmm0, (%rax,%rdi)
	movups	%xmm0, (%rdx,%rdi)
	addq	$16, %rdi
	cmpq	$400, %rdi
	jne	.L69
	movl	$10000000, 400(%rax)
	addq	$404, %rax
	addq	$404, %rdx
	addq	$408, %rcx
	movl	$10000000, -4(%rdx)
	addq	$408, %rsi
	movl	$0, -408(%rcx)
	movl	$0, -408(%rsi)
	cmpq	%r8, %rax
	jne	.L67
	ret
	.cfi_endproc
.LFE24:
	.size	init, .-init
	.p2align 4
	.globl	warshall_floyd_cost
	.type	warshall_floyd_cost, @function
warshall_floyd_cost:
.LFB25:
	.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
	movl	m(%rip), %r14d
	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
	testl	%r14d, %r14d
	js	.L75
	movslq	%r14d, %rax
	leal	1(%r14), %ebp
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	leaq	4(,%rax,4), %rax
	leaq	cost(%rip), %r9
	movq	$0, -16(%rsp)
	movq	%rax, -104(%rsp)
	movl	%ebp, %eax
	movq	%r9, %r8
	movq	$0, -24(%rsp)
	shrl	$2, %eax
	leal	-1(%rax), %r11d
	movl	%ebp, %eax
	andl	$-4, %eax
	addq	$1, %r11
	leal	1(%rax), %ebx
	leal	2(%rax), %edi
	movl	%eax, -68(%rsp)
	cltq
	movq	%rax, -64(%rsp)
	movslq	%ebx, %rax
	salq	$4, %r11
	movq	%rax, -40(%rsp)
	movslq	%edi, %rax
	movl	%ebx, -48(%rsp)
	movl	%edi, -44(%rsp)
	movq	%rax, -32(%rsp)
	.p2align 4,,10
	.p2align 3
.L77:
	leaq	4(%r12), %rcx
	movslq	-24(%rsp), %rdx
	leaq	(%r12,%r9), %rdi
	xorl	%esi, %esi
	movq	%rcx, -96(%rsp)
	movq	-16(%rsp), %rcx
	movq	%r9, %rax
	xorl	%ebx, %ebx
	subq	$4, %rcx
	movq	%rcx, -80(%rsp)
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	movq	%rcx, -88(%rsp)
	addq	-64(%rsp), %rcx
	movq	%rcx, -56(%rsp)
	.p2align 4,,10
	.p2align 3
.L87:
	movq	-104(%rsp), %rcx
	leaq	(%rsi,%r12), %rdx
	addq	%rsi, %rcx
	cmpq	%rdx, %rcx
	movq	-96(%rsp), %rdx
	setle	%cl
	addq	%rsi, %rdx
	cmpq	%rdx, %rsi
	setge	%dl
	orb	%cl, %dl
	je	.L86
	movq	-80(%rsp), %rcx
	leaq	(%rcx,%rsi), %rdx
	cmpq	$8, %rdx
	seta	%cl
	cmpl	$2, %r14d
	seta	%dl
	testb	%dl, %cl
	je	.L86
	movd	(%rdi), %xmm5
	xorl	%edx, %edx
	pshufd	$0, %xmm5, %xmm3
	.p2align 4,,10
	.p2align 3
.L81:
	movdqu	(%r8,%rdx), %xmm2
	movdqu	(%rax,%rdx), %xmm4
	paddd	%xmm3, %xmm2
	movdqa	%xmm4, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm4, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rax,%rdx)
	addq	$16, %rdx
	cmpq	%r11, %rdx
	jne	.L81
	cmpl	-68(%rsp), %ebp
	je	.L80
	movslq	%ebx, %rdx
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	movq	-64(%rsp), %rdx
	leaq	(%rcx,%rdx), %r10
	movq	-56(%rsp), %rdx
	movl	(%r9,%r10,4), %r15d
	movl	(%r9,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r15d, %edx
	cmovg	%r15d, %edx
	movl	%edx, (%r9,%r10,4)
	cmpl	-48(%rsp), %r14d
	jl	.L80
	movq	-40(%rsp), %r15
	movq	-88(%rsp), %rdx
	leaq	(%rcx,%r15), %r10
	addq	%r15, %rdx
	movl	(%r9,%r10,4), %r15d
	movl	(%r9,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r15d, %edx
	cmovg	%r15d, %edx
	movl	%edx, (%r9,%r10,4)
	cmpl	-44(%rsp), %r14d
	jl	.L80
	movq	-32(%rsp), %r15
	movq	-88(%rsp), %rdx
	addq	%r15, %rcx
	addq	%r15, %rdx
	movl	(%r9,%rcx,4), %r10d
	movl	(%r9,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r10d, %edx
	cmovg	%r10d, %edx
	movl	%edx, (%r9,%rcx,4)
.L80:
	addl	$1, %ebx
	addq	$404, %rsi
	addq	$404, %rax
	addq	$404, %rdi
	cmpl	%ebp, %ebx
	jne	.L87
	movq	-96(%rsp), %r12
	movq	-104(%rsp), %rax
	addq	$404, %r13
	addq	$404, %r8
	addq	$1, -24(%rsp)
	subq	$404, -16(%rsp)
	cmpq	%rax, %r12
	jne	.L77
.L75:
	popq	%rbx
	.cfi_remember_state
	.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
.L86:
	.cfi_restore_state
	movq	-104(%rsp), %rcx
	leaq	(%rax,%rcx), %r15
	movq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L79:
	movq	%rcx, %r10
	movl	(%rdi), %edx
	subq	%rsi, %r10
	addl	(%r10,%r13), %edx
	movl	(%rcx), %r10d
	cmpl	%r10d, %edx
	cmovg	%r10d, %edx
	addq	$4, %rcx
	movl	%edx, -4(%rcx)
	cmpq	%r15, %rcx
	jne	.L79
	jmp	.L80
	.cfi_endproc
.LFE25:
	.size	warshall_floyd_cost, .-warshall_floyd_cost
	.p2align 4
	.globl	warshall_floyd_time
	.type	warshall_floyd_time, @function
warshall_floyd_time:
.LFB26:
	.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
	movl	m(%rip), %r14d
	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
	testl	%r14d, %r14d
	js	.L95
	movslq	%r14d, %rax
	leal	1(%r14), %ebp
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	leaq	4(,%rax,4), %rax
	leaq	time(%rip), %r9
	movq	$0, -16(%rsp)
	movq	%rax, -104(%rsp)
	movl	%ebp, %eax
	movq	%r9, %r8
	movq	$0, -24(%rsp)
	shrl	$2, %eax
	leal	-1(%rax), %r11d
	movl	%ebp, %eax
	andl	$-4, %eax
	addq	$1, %r11
	leal	1(%rax), %ebx
	leal	2(%rax), %edi
	movl	%eax, -68(%rsp)
	cltq
	movq	%rax, -64(%rsp)
	movslq	%ebx, %rax
	salq	$4, %r11
	movq	%rax, -40(%rsp)
	movslq	%edi, %rax
	movl	%ebx, -48(%rsp)
	movl	%edi, -44(%rsp)
	movq	%rax, -32(%rsp)
	.p2align 4,,10
	.p2align 3
.L97:
	leaq	4(%r12), %rcx
	movslq	-24(%rsp), %rdx
	leaq	(%r12,%r9), %rdi
	xorl	%esi, %esi
	movq	%rcx, -96(%rsp)
	movq	-16(%rsp), %rcx
	movq	%r9, %rax
	xorl	%ebx, %ebx
	subq	$4, %rcx
	movq	%rcx, -80(%rsp)
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	movq	%rcx, -88(%rsp)
	addq	-64(%rsp), %rcx
	movq	%rcx, -56(%rsp)
	.p2align 4,,10
	.p2align 3
.L107:
	movq	-104(%rsp), %rcx
	leaq	(%rsi,%r12), %rdx
	addq	%rsi, %rcx
	cmpq	%rdx, %rcx
	movq	-96(%rsp), %rdx
	setle	%cl
	addq	%rsi, %rdx
	cmpq	%rdx, %rsi
	setge	%dl
	orb	%cl, %dl
	je	.L106
	movq	-80(%rsp), %rcx
	leaq	(%rcx,%rsi), %rdx
	cmpq	$8, %rdx
	seta	%cl
	cmpl	$2, %r14d
	seta	%dl
	testb	%dl, %cl
	je	.L106
	movd	(%rdi), %xmm5
	xorl	%edx, %edx
	pshufd	$0, %xmm5, %xmm3
	.p2align 4,,10
	.p2align 3
.L101:
	movdqu	(%r8,%rdx), %xmm2
	movdqu	(%rax,%rdx), %xmm4
	paddd	%xmm3, %xmm2
	movdqa	%xmm4, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm4, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rax,%rdx)
	addq	$16, %rdx
	cmpq	%r11, %rdx
	jne	.L101
	cmpl	-68(%rsp), %ebp
	je	.L100
	movslq	%ebx, %rdx
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	movq	-64(%rsp), %rdx
	leaq	(%rcx,%rdx), %r10
	movq	-56(%rsp), %rdx
	movl	(%r9,%r10,4), %r15d
	movl	(%r9,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r15d, %edx
	cmovg	%r15d, %edx
	movl	%edx, (%r9,%r10,4)
	cmpl	-48(%rsp), %r14d
	jl	.L100
	movq	-40(%rsp), %r15
	movq	-88(%rsp), %rdx
	leaq	(%rcx,%r15), %r10
	addq	%r15, %rdx
	movl	(%r9,%r10,4), %r15d
	movl	(%r9,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r15d, %edx
	cmovg	%r15d, %edx
	movl	%edx, (%r9,%r10,4)
	cmpl	-44(%rsp), %r14d
	jl	.L100
	movq	-32(%rsp), %r15
	movq	-88(%rsp), %rdx
	addq	%r15, %rcx
	addq	%r15, %rdx
	movl	(%r9,%rcx,4), %r10d
	movl	(%r9,%rdx,4), %edx
	addl	(%rdi), %edx
	cmpl	%r10d, %edx
	cmovg	%r10d, %edx
	movl	%edx, (%r9,%rcx,4)
.L100:
	addl	$1, %ebx
	addq	$404, %rsi
	addq	$404, %rax
	addq	$404, %rdi
	cmpl	%ebp, %ebx
	jne	.L107
	movq	-96(%rsp), %r12
	movq	-104(%rsp), %rax
	addq	$404, %r13
	addq	$404, %r8
	addq	$1, -24(%rsp)
	subq	$404, -16(%rsp)
	cmpq	%rax, %r12
	jne	.L97
.L95:
	popq	%rbx
	.cfi_remember_state
	.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
.L106:
	.cfi_restore_state
	movq	-104(%rsp), %rcx
	leaq	(%rax,%rcx), %r15
	movq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L99:
	movq	%rcx, %r10
	movl	(%rdi), %edx
	subq	%rsi, %r10
	addl	(%r10,%r13), %edx
	movl	(%rcx), %r10d
	cmpl	%r10d, %edx
	cmovg	%r10d, %edx
	addq	$4, %rcx
	movl	%edx, -4(%rcx)
	cmpq	%r15, %rcx
	jne	.L99
	jmp	.L100
	.cfi_endproc
.LFE26:
	.size	warshall_floyd_time, .-warshall_floyd_time
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB27:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	movl	%edi, %eax
	cmovle	%esi, %eax
	ret
	.cfi_endproc
.LFE27:
	.size	min, .-min
	.globl	m
	.bss
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	cost
	.align 32
	.type	cost, @object
	.size	cost, 40804
cost:
	.zero	40804
	.globl	time
	.align 32
	.type	time, @object
	.size	time, 40804
time:
	.zero	40804
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	10000000
	.long	10000000
	.long	10000000
	.long	10000000
	.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 INF 10000000

int time[101][101],cost[101][101],m;

void warshall_floyd_cost(void);
void warshall_floyd_time(void);
int min(int,int);
void init(void);

int main(void){
  int i,j,n,k,a,b,cos,tim,p,q,r;

  while(scanf("%d %d",&n,&m),n,m){

    init();

    for(i=0;i<n;i++){
      scanf("%d %d %d %d",&a,&b,&cos,&tim);
      cost[a][b]=cost[b][a]=cos;
      time[a][b]=time[b][a]=tim;
    }

    warshall_floyd_cost();
    warshall_floyd_time();

    scanf("%d",&k);
    for(i=0;i<k;i++){
      scanf("%d %d %d",&p,&q,&r);
      printf("%d\n",r?time[p][q]:cost[p][q]);
    }
  }
  
  return 0;
}

void init(void){
  int i,j;
  for(i=0;i<101;i++){
    for(j=0;j<101;j++){
      time[i][j]=cost[i][j]=INF;     
    }
    time[i][i]=cost[i][i]=0;
  }
}

void warshall_floyd_cost(void){
  int i,j,k;
  for(k=0;k<=m;k++)
    for(i=0;i<=m;i++)
      for(j=0;j<=m;j++)
	cost[i][j]=min(cost[i][j],cost[i][k]+cost[k][j]);
}

void warshall_floyd_time(void){
  int i,j,k;
  for(k=0;k<=m;k++)
    for(i=0;i<=m;i++)
      for(j=0;j<=m;j++)
	time[i][j]=min(time[i][j],time[i][k]+time[k][j]);
}

int min(int x,int y){
  return x<y?x:y;
}
6 5
1 2 200 10
1 4 400 15
1 3 250 25
2 4 100 10
4 5 150 20
3 5 300 30
2
1 5 0
1 5 1
0 0
 6 5
1 2 200 10
1 4 400 22
1 3 250 25
2 4 100 10
4 5 150 20
3 3 300 30
2
1 5 0
1 5 1
0 0
 6 5
1 2 200 10
1 4 158 22
1 3 250 25
2 4 100 10
4 5 150 20
3 3 300 30
2
1 5 0
1 5 1
0 0
 6 5
1 2 200 10
1 4 158 41
1 3 250 22
2 4 100 10
4 5 1 20
3 3 300 30
2
1 5 0
1 5 1
0 0
 6 5
1 2 200 10
1 4 71 22
1 3 250 25
2 4 100 10
4 5 150 20
3 3 300 30
2
1 5 0
1 5 1
0 0
 6 5
1 2 200 10
1 4 158 22
2 3 250 25
2 4 100 10
4 5 150 20
3 3 300 30
2
2 5 0
1 5 1
0 0
 6 5
1 2 200 10
1 4 158 41
1 3 250 22
2 4 100 10
4 5 150 20
3 3 335 30
2
1 5 0
1 2 1
0 0
 6 5
1 2 200 10
1 4 400 15
1 3 250 25
1 4 100 10
4 5 150 20
2 3 95 30
2
1 5 0
1 5 1
0 0
 6 5
1 2 200 10
1 4 158 41
1 3 250 22
2 4 100 10
2 5 150 20
3 3 335 30
2
1 5 0
1 2 1
0 0
 6 5
1 2 200 12
1 4 400 15
1 3 250 25
2 4 100 10
4 5 150 20
3 5 300 21
2
1 5 0
2 5 1
0 0

450
35
 450
40
 308
40
 159
40
 221
40
 250
40
 308
10
 250
30
 350
10
 450
30

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 INF 10000000

int time[101][101],cost[101][101],m;

void warshall_floyd_cost(void);
void warshall_floyd_time(void);
int min(int,int);
void init(void);

int main(void){
  int i,j,n,k,a,b,cos,tim,p,q,r;

  while(scanf("%d %d",&n,&m),n,m){

    init();

    for(i=0;i<n;i++){
      scanf("%d %d %d %d",&a,&b,&cos,&tim);
      cost[a][b]=cost[b][a]=cos;
      time[a][b]=time[b][a]=tim;
    }

    warshall_floyd_cost();
    warshall_floyd_time();

    scanf("%d",&k);
    for(i=0;i<k;i++){
      scanf("%d %d %d",&p,&q,&r);
      printf("%d\n",r?time[p][q]:cost[p][q]);
    }
  }
  
  return 0;
}

void init(void){
  int i,j;
  for(i=0;i<101;i++){
    for(j=0;j<101;j++){
      time[i][j]=cost[i][j]=INF;     
    }
    time[i][i]=cost[i][i]=0;
  }
}

void warshall_floyd_cost(void){
  int i,j,k;
  for(k=0;k<=m;k++)
    for(i=0;i<=m;i++)
      for(j=0;j<=m;j++)
	cost[i][j]=min(cost[i][j],cost[i][k]+cost[k][j]);
}

void warshall_floyd_time(void){
  int i,j,k;
  for(k=0;k<=m;k++)
    for(i=0;i<=m;i++)
      for(j=0;j<=m;j++)
	time[i][j]=min(time[i][j],time[i][k]+time[k][j]);
}

int min(int x,int y){
  return x<y?x:y;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	time
	.bss
	.align 32
	.type	time, @object
	.size	time, 40804
time:
	.zero	40804
	.globl	cost
	.align 32
	.type	cost, @object
	.size	cost, 40804
cost:
	.zero	40804
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d %d"
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L9:
	call	init
	movl	$0, -12(%rbp)
	jmp	.L3
.L4:
	leaq	-28(%rbp), %rsi
	leaq	-32(%rbp), %rcx
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %ecx
	movl	-40(%rbp), %esi
	movl	-32(%rbp), %edi
	movslq	%esi, %r8
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r9
	addq	%r9, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	%edi, (%rdx,%rax)
	movl	-40(%rbp), %edi
	movl	-36(%rbp), %r8d
	movslq	%esi, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movslq	%r8d, %rsi
	movslq	%edi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-36(%rbp), %ecx
	movl	-40(%rbp), %esi
	movl	-28(%rbp), %edi
	movslq	%esi, %r8
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r9
	addq	%r9, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	%edi, (%rdx,%rax)
	movl	-40(%rbp), %edi
	movl	-36(%rbp), %r8d
	movslq	%esi, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movslq	%r8d, %rsi
	movslq	%edi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L3:
	movl	-48(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L4
	call	warshall_floyd_cost
	call	warshall_floyd_time
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L5
.L8:
	leaq	-16(%rbp), %rcx
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	je	.L6
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	(%rdx,%rax), %eax
	jmp	.L7
.L6:
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %eax
.L7:
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -12(%rbp)
.L5:
	movl	-44(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L8
.L2:
	leaq	-48(%rbp), %rax
	leaq	m(%rip), %rdx
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	m(%rip), %eax
	testl	%eax, %eax
	jne	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	init
	.type	init, @function
init:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -8(%rbp)
	jmp	.L13
.L16:
	movl	$0, -4(%rbp)
	jmp	.L14
.L15:
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	$10000000, (%rdx,%rax)
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	movslq	%eax, %rsi
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L14:
	cmpl	$100, -4(%rbp)
	jle	.L15
	movl	-8(%rbp), %eax
	cltq
	imulq	$408, %rax, %rax
	leaq	cost(%rip), %rdx
	movl	$0, (%rax,%rdx)
	movl	-8(%rbp), %eax
	cltq
	imulq	$408, %rax, %rax
	leaq	cost(%rip), %rdx
	movl	(%rax,%rdx), %edx
	movl	-8(%rbp), %eax
	cltq
	imulq	$408, %rax, %rax
	leaq	time(%rip), %rcx
	movl	%edx, (%rax,%rcx)
	addl	$1, -8(%rbp)
.L13:
	cmpl	$100, -8(%rbp)
	jle	.L16
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	init, .-init
	.globl	warshall_floyd_cost
	.type	warshall_floyd_cost, @function
warshall_floyd_cost:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -4(%rbp)
	jmp	.L18
.L23:
	movl	$0, -12(%rbp)
	jmp	.L19
.L22:
	movl	$0, -8(%rbp)
	jmp	.L20
.L21:
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	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
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%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
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	min
	movl	%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
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -8(%rbp)
.L20:
	movl	m(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L21
	addl	$1, -12(%rbp)
.L19:
	movl	m(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L22
	addl	$1, -4(%rbp)
.L18:
	movl	m(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L23
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	warshall_floyd_cost, .-warshall_floyd_cost
	.globl	warshall_floyd_time
	.type	warshall_floyd_time, @function
warshall_floyd_time:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -4(%rbp)
	jmp	.L25
.L30:
	movl	$0, -12(%rbp)
	jmp	.L26
.L29:
	movl	$0, -8(%rbp)
	jmp	.L27
.L28:
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%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
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%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
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	min
	movl	%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
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -8(%rbp)
.L27:
	movl	m(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L28
	addl	$1, -12(%rbp)
.L26:
	movl	m(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L29
	addl	$1, -4(%rbp)
.L25:
	movl	m(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L30
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	warshall_floyd_time, .-warshall_floyd_time
	.globl	min
	.type	min, @function
min:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	min, .-min
	.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	time
	.bss
	.align 32
	.type	time, @object
	.size	time, 40804
time:
	.zero	40804
	.globl	cost
	.align 32
	.type	cost, @object
	.size	cost, 40804
cost:
	.zero	40804
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d %d"
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L9:
	call	init
	movl	$0, -12(%rbp)
	jmp	.L3
.L4:
	leaq	-28(%rbp), %rsi
	leaq	-32(%rbp), %rcx
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %ecx
	movl	-40(%rbp), %esi
	movl	-32(%rbp), %edi
	movslq	%esi, %r8
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r9
	addq	%r9, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	%edi, (%rdx,%rax)
	movl	-40(%rbp), %edi
	movl	-36(%rbp), %r8d
	movslq	%esi, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movslq	%r8d, %rsi
	movslq	%edi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-36(%rbp), %ecx
	movl	-40(%rbp), %esi
	movl	-28(%rbp), %edi
	movslq	%esi, %r8
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r9
	addq	%r9, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	%edi, (%rdx,%rax)
	movl	-40(%rbp), %edi
	movl	-36(%rbp), %r8d
	movslq	%esi, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movslq	%r8d, %rsi
	movslq	%edi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L3:
	movl	-48(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L4
	call	warshall_floyd_cost
	call	warshall_floyd_time
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L5
.L8:
	leaq	-16(%rbp), %rcx
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	je	.L6
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	(%rdx,%rax), %eax
	jmp	.L7
.L6:
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %eax
.L7:
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -12(%rbp)
.L5:
	movl	-44(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L8
.L2:
	leaq	-48(%rbp), %rax
	leaq	m(%rip), %rdx
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	m(%rip), %eax
	testl	%eax, %eax
	jne	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	init
	.type	init, @function
init:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -8(%rbp)
	jmp	.L13
.L16:
	movl	$0, -4(%rbp)
	jmp	.L14
.L15:
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	$10000000, (%rdx,%rax)
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	movslq	%eax, %rsi
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L14:
	cmpl	$100, -4(%rbp)
	jle	.L15
	movl	-8(%rbp), %eax
	cltq
	imulq	$408, %rax, %rax
	leaq	cost(%rip), %rdx
	movl	$0, (%rax,%rdx)
	movl	-8(%rbp), %eax
	cltq
	imulq	$408, %rax, %rax
	leaq	cost(%rip), %rdx
	movl	(%rax,%rdx), %edx
	movl	-8(%rbp), %eax
	cltq
	imulq	$408, %rax, %rax
	leaq	time(%rip), %rcx
	movl	%edx, (%rax,%rcx)
	addl	$1, -8(%rbp)
.L13:
	cmpl	$100, -8(%rbp)
	jle	.L16
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	init, .-init
	.globl	warshall_floyd_cost
	.type	warshall_floyd_cost, @function
warshall_floyd_cost:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -4(%rbp)
	jmp	.L18
.L23:
	movl	$0, -12(%rbp)
	jmp	.L19
.L22:
	movl	$0, -8(%rbp)
	jmp	.L20
.L21:
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	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
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%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
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	min
	movl	%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
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	cost(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -8(%rbp)
.L20:
	movl	m(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L21
	addl	$1, -12(%rbp)
.L19:
	movl	m(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L22
	addl	$1, -4(%rbp)
.L18:
	movl	m(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L23
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	warshall_floyd_cost, .-warshall_floyd_cost
	.globl	warshall_floyd_time
	.type	warshall_floyd_time, @function
warshall_floyd_time:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -4(%rbp)
	jmp	.L25
.L30:
	movl	$0, -12(%rbp)
	jmp	.L26
.L29:
	movl	$0, -8(%rbp)
	jmp	.L27
.L28:
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%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
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%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
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	min
	movl	%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
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	time(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -8(%rbp)
.L27:
	movl	m(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L28
	addl	$1, -12(%rbp)
.L26:
	movl	m(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L29
	addl	$1, -4(%rbp)
.L25:
	movl	m(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L30
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	warshall_floyd_time, .-warshall_floyd_time
	.globl	min
	.type	min, @function
min:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	min, .-min
	.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:
