Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
double x[100][100],y[100][100],r,z;
main(n,m,i,j,k){for(;scanf("%d%d",&n,&m),m;printf("%.2f\n",r)){
memset(x,0,sizeof(x));
for(i=0;i<n;i++)for(j=0;j<n;j++)scanf("%lf",y[i]+j);
for(j=0;j<n;j++)x[0][j]=1;
for(i=1;i<m;i++)for(j=0;j<n;j++)for(k=0;k<n;k++)if(x[i][j]<(z=x[i-1][k]*y[k][j]))x[i][j]=z;
for(r=j=0;j<n;j++)r=r<x[m-1][j]?x[m-1][j]:r;
}exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	x
	.bss
	.align 32
	.type	x, @object
	.size	x, 80000
x:
	.zero	80000
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 80000
y:
	.zero	80000
	.globl	r
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.globl	z
	.align 8
	.type	z, @object
	.size	z, 8
z:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%lf"
.LC3:
	.string	"%.2f\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	$32, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, -20(%rbp)
	jmp	.L2
.L22:
	movl	$80000, %edx
	movl	$0, %esi
	leaq	x(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -12(%rbp)
	jmp	.L3
.L6:
	movl	$0, -16(%rbp)
	jmp	.L4
.L5:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$5, %rax
	leaq	y(%rip), %rdx
	addq	%rax, %rdx
	movl	-16(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addl	$1, -16(%rbp)
.L4:
	movl	-4(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L5
	addl	$1, -12(%rbp)
.L3:
	movl	-4(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L6
	movl	$0, -16(%rbp)
	jmp	.L7
.L8:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L7:
	movl	-4(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L8
	movl	$1, -12(%rbp)
	jmp	.L9
.L16:
	movl	$0, -16(%rbp)
	jmp	.L10
.L15:
	movl	$0, -20(%rbp)
	jmp	.L11
.L14:
	movl	-16(%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), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-12(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movsd	(%rdx,%rax), %xmm2
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	mulsd	%xmm2, %xmm0
	movsd	%xmm0, z(%rip)
	movsd	z(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L12
	movsd	z(%rip), %xmm0
	movl	-16(%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), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movsd	%xmm0, (%rdx,%rax)
.L12:
	addl	$1, -20(%rbp)
.L11:
	movl	-4(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L14
	addl	$1, -16(%rbp)
.L10:
	movl	-4(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L15
	addl	$1, -12(%rbp)
.L9:
	movl	-8(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L16
	movl	$0, -16(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, r(%rip)
	jmp	.L17
.L21:
	movl	-8(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	r(%rip), %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L25
	movl	-8(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	jmp	.L20
.L25:
	movsd	r(%rip), %xmm0
.L20:
	movsd	%xmm0, r(%rip)
	addl	$1, -16(%rbp)
.L17:
	movl	-4(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L21
	movq	r(%rip), %rax
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
.L2:
	leaq	-8(%rbp), %rdx
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-8(%rbp), %eax
	testl	%eax, %eax
	jne	.L22
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.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	"%lf"
.LC4:
	.string	"%.2f\n"
.LC5:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	leaq	x(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	leaq	24(%rsp), %rax
	movl	%edi, 28(%rsp)
	movq	%rax, 8(%rsp)
	leaq	28(%rsp), %rax
	movl	%esi, 24(%rsp)
	movq	%rax, 16(%rsp)
.L2:
	movq	8(%rsp), %rdx
	movq	16(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC5(%rip), %rdi
	movsd	%xmm1, (%rsp)
	call	scanf@PLT
	movl	24(%rsp), %r12d
	movsd	(%rsp), %xmm1
	testl	%r12d, %r12d
	je	.L51
	xorl	%esi, %esi
	movl	$80000, %edx
	movq	%rbp, %rdi
	movsd	%xmm1, (%rsp)
	call	memset@PLT
	movl	28(%rsp), %r8d
	xorl	%r13d, %r13d
	movsd	(%rsp), %xmm1
	leaq	y(%rip), %r14
	testl	%r8d, %r8d
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L29:
	movq	%r14, %r15
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	scanf@PLT
	movl	28(%rsp), %r8d
	addq	$8, %r15
	cmpl	%r12d, %r8d
	jg	.L5
	addl	$1, %r13d
	cmpl	%r13d, %r8d
	jle	.L52
	addq	$800, %r14
	testl	%r8d, %r8d
	jg	.L29
	movsd	(%rsp), %xmm1
	movl	24(%rsp), %r12d
	.p2align 4,,10
	.p2align 3
.L4:
	cmpl	$1, %r12d
	jle	.L15
	leal	-2(%r12), %eax
	leaq	y(%rip), %r15
	movq	%rbp, %r9
	leaq	(%rax,%rax,4), %rax
	leaq	(%rax,%rax,4), %r13
	leaq	800+x(%rip), %rax
	salq	$5, %r13
	addq	%rax, %r13
	leal	-1(%r8), %eax
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rdx,%rdx,4), %r14
	leaq	800(%r15), %rdx
	salq	$5, %r14
	addq	%rdx, %r14
	leaq	8(%r15), %rdx
	leaq	(%rdx,%rax,8), %r10
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L14:
	leaq	800(%r9), %r11
	movq	%r15, %rdi
	movq	%r14, %rcx
	movq	%r11, %rsi
	testl	%r8d, %r8d
	jle	.L19
	.p2align 4,,10
	.p2align 3
.L21:
	movsd	(%rsi), %xmm0
	movq	%rdi, %rax
	movq	%r9, %rdx
	.p2align 4,,10
	.p2align 3
.L18:
	movsd	(%rdx), %xmm1
	mulsd	(%rax), %xmm1
	comisd	%xmm0, %xmm1
	jbe	.L16
	movsd	%xmm1, (%rsi)
	movapd	%xmm1, %xmm0
.L16:
	addq	$800, %rax
	addq	$8, %rdx
	cmpq	%rcx, %rax
	jne	.L18
	addq	$8, %rdi
	addq	$8, %rsi
	leaq	8(%rax), %rcx
	cmpq	%r10, %rdi
	jne	.L21
	movl	$1, %eax
.L19:
	movq	%r11, %r9
	cmpq	%r13, %r11
	jne	.L14
	testb	%al, %al
	je	.L15
	movsd	%xmm1, z(%rip)
.L15:
	movq	$0x000000000, r(%rip)
	testl	%r8d, %r8d
	jle	.L32
	leal	-1(%r12), %eax
	leal	-1(%r8), %ecx
	pxor	%xmm0, %xmm0
	cltq
	leaq	(%rax,%rax,4), %rax
	leaq	(%rax,%rax,4), %rdx
	movq	%rdx, %rax
	leaq	(%rcx,%rdx,4), %rcx
	leaq	8+x(%rip), %rdx
	salq	$5, %rax
	leaq	(%rdx,%rcx,8), %rdx
	addq	%rbp, %rax
	.p2align 4,,10
	.p2align 3
.L24:
	movsd	(%rax), %xmm2
	addq	$8, %rax
	maxsd	%xmm0, %xmm2
	movapd	%xmm2, %xmm0
	cmpq	%rax, %rdx
	jne	.L24
	movsd	%xmm2, r(%rip)
.L22:
	leaq	.LC4(%rip), %rdi
	movl	$1, %eax
	movsd	%xmm1, (%rsp)
	call	printf@PLT
	movsd	(%rsp), %xmm1
	jmp	.L2
.L52:
	movsd	(%rsp), %xmm1
	movl	24(%rsp), %r12d
	testl	%r8d, %r8d
	jle	.L4
	cmpl	$1, %r8d
	je	.L30
	movl	%r8d, %edx
	leaq	x(%rip), %rax
	shrl	%edx
	leaq	16(%rax), %rcx
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rcx, %rdx
.L11:
	movapd	.LC2(%rip), %xmm3
	addq	$16, %rax
	movaps	%xmm3, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L11
	movl	%r8d, %eax
	andl	$-2, %eax
	testb	$1, %r8b
	je	.L4
.L10:
	movq	.LC3(%rip), %rdi
	cltq
	movq	%rdi, 0(%rbp,%rax,8)
	jmp	.L4
.L32:
	pxor	%xmm0, %xmm0
	jmp	.L22
.L51:
	xorl	%edi, %edi
	call	exit@PLT
.L30:
	xorl	%eax, %eax
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	z
	.bss
	.align 8
	.type	z, @object
	.size	z, 8
z:
	.zero	8
	.globl	r
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 80000
y:
	.zero	80000
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 80000
x:
	.zero	80000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	1072693248
	.long	0
	.long	1072693248
	.set	.LC3,.LC2
	.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	"%lf"
.LC4:
	.string	"%.2f\n"
.LC5:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	leaq	x(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	leaq	24(%rsp), %rax
	movl	%edi, 28(%rsp)
	movq	%rax, 8(%rsp)
	leaq	28(%rsp), %rax
	movl	%esi, 24(%rsp)
	movq	%rax, 16(%rsp)
.L2:
	movq	8(%rsp), %rdx
	movq	16(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC5(%rip), %rdi
	movsd	%xmm1, (%rsp)
	call	scanf@PLT
	movl	24(%rsp), %r12d
	movsd	(%rsp), %xmm1
	testl	%r12d, %r12d
	je	.L51
	xorl	%esi, %esi
	movl	$80000, %edx
	movq	%rbp, %rdi
	movsd	%xmm1, (%rsp)
	call	memset@PLT
	movl	28(%rsp), %r8d
	xorl	%r13d, %r13d
	movsd	(%rsp), %xmm1
	leaq	y(%rip), %r14
	testl	%r8d, %r8d
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L29:
	movq	%r14, %r15
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	scanf@PLT
	movl	28(%rsp), %r8d
	addq	$8, %r15
	cmpl	%r12d, %r8d
	jg	.L5
	addl	$1, %r13d
	cmpl	%r13d, %r8d
	jle	.L52
	addq	$800, %r14
	testl	%r8d, %r8d
	jg	.L29
	movsd	(%rsp), %xmm1
	movl	24(%rsp), %r12d
	.p2align 4,,10
	.p2align 3
.L4:
	cmpl	$1, %r12d
	jle	.L15
	leal	-2(%r12), %eax
	leaq	y(%rip), %r15
	movq	%rbp, %r9
	leaq	(%rax,%rax,4), %rax
	leaq	(%rax,%rax,4), %r13
	leaq	800+x(%rip), %rax
	salq	$5, %r13
	addq	%rax, %r13
	leal	-1(%r8), %eax
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rdx,%rdx,4), %r14
	leaq	800(%r15), %rdx
	salq	$5, %r14
	addq	%rdx, %r14
	leaq	8(%r15), %rdx
	leaq	(%rdx,%rax,8), %r10
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L14:
	leaq	800(%r9), %r11
	movq	%r15, %rdi
	movq	%r14, %rcx
	movq	%r11, %rsi
	testl	%r8d, %r8d
	jle	.L19
	.p2align 4,,10
	.p2align 3
.L21:
	movsd	(%rsi), %xmm0
	movq	%rdi, %rax
	movq	%r9, %rdx
	.p2align 4,,10
	.p2align 3
.L18:
	movsd	(%rdx), %xmm1
	mulsd	(%rax), %xmm1
	comisd	%xmm0, %xmm1
	jbe	.L16
	movsd	%xmm1, (%rsi)
	movapd	%xmm1, %xmm0
.L16:
	addq	$800, %rax
	addq	$8, %rdx
	cmpq	%rcx, %rax
	jne	.L18
	addq	$8, %rdi
	addq	$8, %rsi
	leaq	8(%rax), %rcx
	cmpq	%r10, %rdi
	jne	.L21
	movl	$1, %eax
.L19:
	movq	%r11, %r9
	cmpq	%r13, %r11
	jne	.L14
	testb	%al, %al
	je	.L15
	movsd	%xmm1, z(%rip)
.L15:
	movq	$0x000000000, r(%rip)
	testl	%r8d, %r8d
	jle	.L32
	leal	-1(%r12), %eax
	leal	-1(%r8), %ecx
	pxor	%xmm0, %xmm0
	cltq
	leaq	(%rax,%rax,4), %rax
	leaq	(%rax,%rax,4), %rdx
	movq	%rdx, %rax
	leaq	(%rcx,%rdx,4), %rcx
	leaq	8+x(%rip), %rdx
	salq	$5, %rax
	leaq	(%rdx,%rcx,8), %rdx
	addq	%rbp, %rax
	.p2align 4,,10
	.p2align 3
.L24:
	movsd	(%rax), %xmm2
	addq	$8, %rax
	maxsd	%xmm0, %xmm2
	movapd	%xmm2, %xmm0
	cmpq	%rax, %rdx
	jne	.L24
	movsd	%xmm2, r(%rip)
.L22:
	leaq	.LC4(%rip), %rdi
	movl	$1, %eax
	movsd	%xmm1, (%rsp)
	call	printf@PLT
	movsd	(%rsp), %xmm1
	jmp	.L2
.L52:
	movsd	(%rsp), %xmm1
	movl	24(%rsp), %r12d
	testl	%r8d, %r8d
	jle	.L4
	cmpl	$1, %r8d
	je	.L30
	movl	%r8d, %edx
	leaq	x(%rip), %rax
	shrl	%edx
	leaq	16(%rax), %rcx
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rcx, %rdx
.L11:
	movapd	.LC2(%rip), %xmm3
	addq	$16, %rax
	movaps	%xmm3, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L11
	movl	%r8d, %eax
	andl	$-2, %eax
	testb	$1, %r8b
	je	.L4
.L10:
	movq	.LC3(%rip), %rdi
	cltq
	movq	%rdi, 0(%rbp,%rax,8)
	jmp	.L4
.L32:
	pxor	%xmm0, %xmm0
	jmp	.L22
.L51:
	xorl	%edi, %edi
	call	exit@PLT
.L30:
	xorl	%eax, %eax
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	z
	.bss
	.align 8
	.type	z, @object
	.size	z, 8
z:
	.zero	8
	.globl	r
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 80000
y:
	.zero	80000
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 80000
x:
	.zero	80000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	1072693248
	.long	0
	.long	1072693248
	.set	.LC3,.LC2
	.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:

double x[100][100],y[100][100],r,z;
main(n,m,i,j,k){for(;scanf("%d%d",&n,&m),m;printf("%.2f\n",r)){
memset(x,0,sizeof(x));
for(i=0;i<n;i++)for(j=0;j<n;j++)scanf("%lf",y[i]+j);
for(j=0;j<n;j++)x[0][j]=1;
for(i=1;i<m;i++)for(j=0;j<n;j++)for(k=0;k<n;k++)if(x[i][j]<(z=x[i-1][k]*y[k][j]))x[i][j]=z;
for(r=j=0;j<n;j++)r=r<x[m-1][j]?x[m-1][j]:r;
}exit(0);}
3 3
1.3 3.0 0.5
2.4 2.1 1.0
3.0 0.8 1.2
2 2
1.0 1.953209014063742
1.0 1.0
0 0
 3 3
1.3 3.0 0.5
2.9487871182122434 2.1 1.0
3.0 0.8 1.2
2 2
1.0 1.0
1.0 1.0
0 0
 3 3
1.3 3.0 0.5
2.9487871182122434 2.1 1.0
3.0 0.8 1.2
2 2
1.2415885279949683 1.0
1.0 1.0
0 0
 3 3
1.3 3.8651603774804477 0.5
2.9487871182122434 2.1 1.0
3.0 0.8 1.2
2 2
1.2415885279949683 1.0
1.0 1.0
0 0
 3 3
1.3 3.6327907314256542 0.5
2.4 2.1 1.0
3.0 0.8 1.2
2 2
1.0 1.0
1.0 1.0
0 0
 3 3
1.3 3.0 0.5
2.9487871182122434 2.1 1.0
3.0 0.8 1.2
2 2
1.2643980385584639 1.0
1.0 1.0
0 0
 3 3
1.3 3.640709950399768 0.5
2.9487871182122434 2.1 1.0
3.0 0.8 1.2
2 2
1.2415885279949683 1.0
1.0 1.0
0 0
 3 3
1.533009559901967 3.0 0.5
2.4 2.1 1.0
3.0927473797030833 0.8 1.2
2 2
1.0 1.953209014063742
1.2334997526149754 1.0
0 0
 3 3
1.3 3.0 0.5
2.4 2.1 1.0
3.0 0.8 1.2
2 2
1.0 1.953209014063742
2.223775245149905 1.0
0 0
 3 3
1.3 3.0 0.5
3.829938423130101 2.1 1.0
3.0 0.8 1.2
2 2
1.2643980385584639 1.0
1.0 1.0
0 0

9.00
1.95
 9.00
1.00
 9.00
1.24
 11.60
1.24
 10.90
1.00
 9.00
1.26
 10.92
1.24
 9.28
1.95
 9.00
2.22
 11.49
1.26

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
double x[100][100],y[100][100],r,z;
main(n,m,i,j,k){for(;scanf("%d%d",&n,&m),m;printf("%.2f\n",r)){
memset(x,0,sizeof(x));
for(i=0;i<n;i++)for(j=0;j<n;j++)scanf("%lf",y[i]+j);
for(j=0;j<n;j++)x[0][j]=1;
for(i=1;i<m;i++)for(j=0;j<n;j++)for(k=0;k<n;k++)if(x[i][j]<(z=x[i-1][k]*y[k][j]))x[i][j]=z;
for(r=j=0;j<n;j++)r=r<x[m-1][j]?x[m-1][j]:r;
}exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	x
	.bss
	.align 32
	.type	x, @object
	.size	x, 80000
x:
	.zero	80000
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 80000
y:
	.zero	80000
	.globl	r
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.globl	z
	.align 8
	.type	z, @object
	.size	z, 8
z:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%lf"
.LC3:
	.string	"%.2f\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	$32, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, -20(%rbp)
	jmp	.L2
.L22:
	movl	$80000, %edx
	movl	$0, %esi
	leaq	x(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -12(%rbp)
	jmp	.L3
.L6:
	movl	$0, -16(%rbp)
	jmp	.L4
.L5:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$5, %rax
	leaq	y(%rip), %rdx
	addq	%rax, %rdx
	movl	-16(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addl	$1, -16(%rbp)
.L4:
	movl	-4(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L5
	addl	$1, -12(%rbp)
.L3:
	movl	-4(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L6
	movl	$0, -16(%rbp)
	jmp	.L7
.L8:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L7:
	movl	-4(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L8
	movl	$1, -12(%rbp)
	jmp	.L9
.L16:
	movl	$0, -16(%rbp)
	jmp	.L10
.L15:
	movl	$0, -20(%rbp)
	jmp	.L11
.L14:
	movl	-16(%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), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-12(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movsd	(%rdx,%rax), %xmm2
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	mulsd	%xmm2, %xmm0
	movsd	%xmm0, z(%rip)
	movsd	z(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L12
	movsd	z(%rip), %xmm0
	movl	-16(%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), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movsd	%xmm0, (%rdx,%rax)
.L12:
	addl	$1, -20(%rbp)
.L11:
	movl	-4(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L14
	addl	$1, -16(%rbp)
.L10:
	movl	-4(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L15
	addl	$1, -12(%rbp)
.L9:
	movl	-8(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L16
	movl	$0, -16(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, r(%rip)
	jmp	.L17
.L21:
	movl	-8(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	r(%rip), %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L25
	movl	-8(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	jmp	.L20
.L25:
	movsd	r(%rip), %xmm0
.L20:
	movsd	%xmm0, r(%rip)
	addl	$1, -16(%rbp)
.L17:
	movl	-4(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L21
	movq	r(%rip), %rax
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
.L2:
	leaq	-8(%rbp), %rdx
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-8(%rbp), %eax
	testl	%eax, %eax
	jne	.L22
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	x
	.bss
	.align 32
	.type	x, @object
	.size	x, 80000
x:
	.zero	80000
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 80000
y:
	.zero	80000
	.globl	r
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.globl	z
	.align 8
	.type	z, @object
	.size	z, 8
z:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%lf"
.LC3:
	.string	"%.2f\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	$32, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, -20(%rbp)
	jmp	.L2
.L22:
	movl	$80000, %edx
	movl	$0, %esi
	leaq	x(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -12(%rbp)
	jmp	.L3
.L6:
	movl	$0, -16(%rbp)
	jmp	.L4
.L5:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$5, %rax
	leaq	y(%rip), %rdx
	addq	%rax, %rdx
	movl	-16(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addl	$1, -16(%rbp)
.L4:
	movl	-4(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L5
	addl	$1, -12(%rbp)
.L3:
	movl	-4(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L6
	movl	$0, -16(%rbp)
	jmp	.L7
.L8:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L7:
	movl	-4(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L8
	movl	$1, -12(%rbp)
	jmp	.L9
.L16:
	movl	$0, -16(%rbp)
	jmp	.L10
.L15:
	movl	$0, -20(%rbp)
	jmp	.L11
.L14:
	movl	-16(%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), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-12(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movsd	(%rdx,%rax), %xmm2
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	mulsd	%xmm2, %xmm0
	movsd	%xmm0, z(%rip)
	movsd	z(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L12
	movsd	z(%rip), %xmm0
	movl	-16(%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), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movsd	%xmm0, (%rdx,%rax)
.L12:
	addl	$1, -20(%rbp)
.L11:
	movl	-4(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L14
	addl	$1, -16(%rbp)
.L10:
	movl	-4(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L15
	addl	$1, -12(%rbp)
.L9:
	movl	-8(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L16
	movl	$0, -16(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, r(%rip)
	jmp	.L17
.L21:
	movl	-8(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	r(%rip), %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L25
	movl	-8(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	jmp	.L20
.L25:
	movsd	r(%rip), %xmm0
.L20:
	movsd	%xmm0, r(%rip)
	addl	$1, -16(%rbp)
.L17:
	movl	-4(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L21
	movq	r(%rip), %rax
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
.L2:
	leaq	-8(%rbp), %rdx
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-8(%rbp), %eax
	testl	%eax, %eax
	jne	.L22
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.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:
