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

```c
#include <stdio.h>
#include <string.h>

double max(double a, double b)
{
    if (a > b){
        return (a);
    }
    return (b);
}

int main(void)
{
    int i, j, k;
    int n, m;
    double gr[100][100];
    double dp[100][100];
    double ans;
    int upd;
    
    while (1){
        scanf("%d%d", &n, &m);
        
        if (n + m == 0){
            break;
        }
        
        for (i = 0; i < n; i++){
            for (j = 0; j < n; j++){
                scanf("%lf", &gr[i][j]);
            }
        }
        
        memset(dp, 0, sizeof(dp));
        for (i = 0; i < n; i++){
            dp[0][i] = 1.00;
        }
        
        ans = 0.00;
        for (i = 1; i < m; i++){
            for (j = 0; j < n; j++){
                upd = 0;
                for (k = 0; k < n; k++){
                    if (upd == 0){
                        dp[i][j] = dp[i - 1][k] * gr[k][j];
                        upd = 1;
                    }
                    else {
                        dp[i][j] = max(dp[i][j], dp[i - 1][k] * gr[k][j]);
                    }
                }
            }
        }
        
        for (i = 0; i < n; i++){
            ans = max(ans, dp[m - 1][i]);
        }
        
        printf("%.2f\n", ans);
        
    }
    
    return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	max
	.type	max, @function
max:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movsd	%xmm0, -8(%rbp)
	movsd	%xmm1, -16(%rbp)
	movsd	-8(%rbp), %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L6
	movsd	-8(%rbp), %xmm0
	jmp	.L4
.L6:
	movsd	-16(%rbp), %xmm0
.L4:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%lf"
.LC4:
	.string	"%.2f\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-159744(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$304, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L26:
	leaq	-160044(%rbp), %rdx
	leaq	-160048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-160048(%rbp), %edx
	movl	-160044(%rbp), %eax
	addl	%edx, %eax
	testl	%eax, %eax
	je	.L30
	movl	$0, -160040(%rbp)
	jmp	.L10
.L13:
	movl	$0, -160036(%rbp)
	jmp	.L11
.L12:
	leaq	-160016(%rbp), %rcx
	movl	-160036(%rbp), %eax
	movslq	%eax, %rsi
	movl	-160040(%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	%rsi, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -160036(%rbp)
.L11:
	movl	-160048(%rbp), %eax
	cmpl	%eax, -160036(%rbp)
	jl	.L12
	addl	$1, -160040(%rbp)
.L10:
	movl	-160048(%rbp), %eax
	cmpl	%eax, -160040(%rbp)
	jl	.L13
	leaq	-80016(%rbp), %rax
	movl	$80000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -160040(%rbp)
	jmp	.L14
.L15:
	movl	-160040(%rbp), %eax
	cltq
	movsd	.LC2(%rip), %xmm0
	movsd	%xmm0, -80016(%rbp,%rax,8)
	addl	$1, -160040(%rbp)
.L14:
	movl	-160048(%rbp), %eax
	cmpl	%eax, -160040(%rbp)
	jl	.L15
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -160024(%rbp)
	movl	$1, -160040(%rbp)
	jmp	.L16
.L23:
	movl	$0, -160036(%rbp)
	jmp	.L17
.L22:
	movl	$0, -160028(%rbp)
	movl	$0, -160032(%rbp)
	jmp	.L18
.L21:
	cmpl	$0, -160028(%rbp)
	jne	.L19
	movl	-160040(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-160032(%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
	movsd	-80016(%rbp,%rax,8), %xmm1
	movl	-160036(%rbp), %eax
	movslq	%eax, %rcx
	movl	-160032(%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
	movsd	-160016(%rbp,%rax,8), %xmm0
	mulsd	%xmm1, %xmm0
	movl	-160036(%rbp), %eax
	movslq	%eax, %rcx
	movl	-160040(%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
	movsd	%xmm0, -80016(%rbp,%rax,8)
	movl	$1, -160028(%rbp)
	jmp	.L20
.L19:
	movl	-160040(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-160032(%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
	movsd	-80016(%rbp,%rax,8), %xmm1
	movl	-160036(%rbp), %eax
	movslq	%eax, %rcx
	movl	-160032(%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
	movsd	-160016(%rbp,%rax,8), %xmm0
	mulsd	%xmm1, %xmm0
	movl	-160036(%rbp), %eax
	movslq	%eax, %rcx
	movl	-160040(%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
	movq	-80016(%rbp,%rax,8), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	max
	movq	%xmm0, %rdx
	movl	-160036(%rbp), %eax
	movslq	%eax, %rsi
	movl	-160040(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movq	%rdx, -80016(%rbp,%rax,8)
.L20:
	addl	$1, -160032(%rbp)
.L18:
	movl	-160048(%rbp), %eax
	cmpl	%eax, -160032(%rbp)
	jl	.L21
	addl	$1, -160036(%rbp)
.L17:
	movl	-160048(%rbp), %eax
	cmpl	%eax, -160036(%rbp)
	jl	.L22
	addl	$1, -160040(%rbp)
.L16:
	movl	-160044(%rbp), %eax
	cmpl	%eax, -160040(%rbp)
	jl	.L23
	movl	$0, -160040(%rbp)
	jmp	.L24
.L25:
	movl	-160044(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-160040(%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
	movsd	-80016(%rbp,%rax,8), %xmm0
	movq	-160024(%rbp), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	max
	movq	%xmm0, %rax
	movq	%rax, -160024(%rbp)
	addl	$1, -160040(%rbp)
.L24:
	movl	-160048(%rbp), %eax
	cmpl	%eax, -160040(%rbp)
	jl	.L25
	movq	-160024(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	jmp	.L26
.L30:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.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
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB35:
	.cfi_startproc
	endbr64
	maxsd	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE35:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%lf"
.LC5:
	.string	"%.2f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-159744(%rsp), %r11
	.cfi_def_cfa 11, 159800
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$328, %rsp
	.cfi_def_cfa_offset 160128
	leaq	.LC2(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 160056(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 16(%rsp)
.L32:
	movq	24(%rsp), %rdx
	movq	16(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %r12d
	movl	%r12d, %eax
	addl	44(%rsp), %eax
	je	.L7
	xorl	%r15d, %r15d
	xorl	%ebp, %ebp
	testl	%r12d, %r12d
	jle	.L46
	.p2align 4,,10
	.p2align 3
.L13:
	leaq	48(%rsp), %r12
	xorl	%r13d, %r13d
	leaq	(%r12,%r15,8), %r14
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	addq	$8, %r14
	cmpl	%r13d, %eax
	jg	.L10
	addl	$1, %ebp
	cmpl	%ebp, %eax
	jle	.L55
	addq	$100, %r15
	testl	%eax, %eax
	jg	.L13
.L46:
	leaq	80048(%rsp), %rdi
	movl	$80000, %edx
	xorl	%esi, %esi
	call	memset@PLT
.L20:
	pxor	%xmm0, %xmm0
.L35:
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	jmp	.L32
.L55:
	leaq	80048(%rsp), %r11
	movl	$80000, %edx
	xorl	%esi, %esi
	movq	%r12, %rbp
	movq	%r11, %rdi
	movl	%eax, %r12d
	call	memset@PLT
	movq	%rax, %r11
	movl	44(%rsp), %eax
	movl	%eax, 8(%rsp)
	testl	%r12d, %r12d
	jle	.L20
	cmpl	$1, %r12d
	je	.L38
	movl	%r12d, %edx
	movq	%r11, %rax
	shrl	%edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	80064(%rsp,%rdx), %rdx
.L16:
	movapd	.LC3(%rip), %xmm2
	addq	$16, %rax
	movaps	%xmm2, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L16
	movl	%r12d, %eax
	andl	$-2, %eax
	testb	$1, %r12b
	je	.L17
.L15:
	movq	.LC4(%rip), %rdi
	cltq
	movq	%rdi, 80048(%rsp,%rax,8)
.L17:
	cmpl	$1, 8(%rsp)
	leaq	80056(%rsp), %r15
	jle	.L56
	movl	8(%rsp), %eax
	movq	%r15, %rdi
	movl	$100, %r13d
	subl	$2, %eax
	leaq	(%rax,%rax,4), %rax
	leaq	(%rax,%rax,4), %rax
	leaq	200(,%rax,4), %r14
	leal	-1(%r12), %eax
	movl	%eax, 12(%rsp)
	leaq	56(%rsp,%rax,8), %r10
	leal	-2(%r12), %eax
	leaq	5(%rax,%rax,4), %rax
	leaq	(%rax,%rax,4), %r9
	salq	$5, %r9
	.p2align 4,,10
	.p2align 3
.L21:
	leaq	792(%rdi), %rsi
	movq	%rbp, %rcx
	.p2align 4,,10
	.p2align 3
.L28:
	movsd	-8(%rdi), %xmm0
	mulsd	(%rcx), %xmm0
	leaq	(%r9,%rcx), %r8
	movq	%rcx, %rax
	movq	%rdi, %rdx
	movsd	%xmm0, (%rsi)
	cmpl	$1, %r12d
	je	.L27
.L24:
	movsd	(%rdx), %xmm1
	mulsd	800(%rax), %xmm1
	addq	$800, %rax
	addq	$8, %rdx
	maxsd	%xmm1, %xmm0
	movsd	%xmm0, (%rsi)
	cmpq	%r8, %rax
	jne	.L24
.L27:
	addq	$8, %rcx
	addq	$8, %rsi
	cmpq	%r10, %rcx
	jne	.L28
	addq	$100, %r13
	addq	$800, %rdi
	cmpq	%r14, %r13
	jne	.L21
.L19:
	movl	8(%rsp), %eax
	pxor	%xmm0, %xmm0
	subl	$1, %eax
	cltq
	leaq	(%rax,%rax,4), %rax
	leaq	(%rax,%rax,4), %rdx
	movq	%rdx, %rax
	salq	$5, %rax
	addq	%rax, %r11
	movl	12(%rsp), %eax
	leaq	(%rax,%rdx,4), %rax
	leaq	(%r15,%rax,8), %rax
	.p2align 4,,10
	.p2align 3
.L31:
	maxsd	(%r11), %xmm0
	addq	$8, %r11
	cmpq	%r11, %rax
	jne	.L31
	jmp	.L35
.L56:
	leal	-1(%r12), %eax
	movl	%eax, 12(%rsp)
	jmp	.L19
.L7:
	movq	160056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L57
	addq	$160072, %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
.L38:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L15
.L57:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	0
	.long	1072693248
	.long	0
	.long	1072693248
	.set	.LC4,.LC3
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB35:
	.cfi_startproc
	endbr64
	maxsd	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE35:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%lf"
.LC5:
	.string	"%.2f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-159744(%rsp), %r11
	.cfi_def_cfa 11, 159800
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$328, %rsp
	.cfi_def_cfa_offset 160128
	leaq	.LC2(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 160056(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 16(%rsp)
.L32:
	movq	24(%rsp), %rdx
	movq	16(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %r12d
	movl	%r12d, %eax
	addl	44(%rsp), %eax
	je	.L7
	xorl	%r15d, %r15d
	xorl	%ebp, %ebp
	testl	%r12d, %r12d
	jle	.L46
	.p2align 4,,10
	.p2align 3
.L13:
	leaq	48(%rsp), %r12
	xorl	%r13d, %r13d
	leaq	(%r12,%r15,8), %r14
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	addq	$8, %r14
	cmpl	%r13d, %eax
	jg	.L10
	addl	$1, %ebp
	cmpl	%ebp, %eax
	jle	.L55
	addq	$100, %r15
	testl	%eax, %eax
	jg	.L13
.L46:
	leaq	80048(%rsp), %rdi
	movl	$80000, %edx
	xorl	%esi, %esi
	call	memset@PLT
.L20:
	pxor	%xmm0, %xmm0
.L35:
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	jmp	.L32
.L55:
	leaq	80048(%rsp), %r11
	movl	$80000, %edx
	xorl	%esi, %esi
	movq	%r12, %rbp
	movq	%r11, %rdi
	movl	%eax, %r12d
	call	memset@PLT
	movq	%rax, %r11
	movl	44(%rsp), %eax
	movl	%eax, 8(%rsp)
	testl	%r12d, %r12d
	jle	.L20
	cmpl	$1, %r12d
	je	.L38
	movl	%r12d, %edx
	movq	%r11, %rax
	shrl	%edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	80064(%rsp,%rdx), %rdx
.L16:
	movapd	.LC3(%rip), %xmm2
	addq	$16, %rax
	movaps	%xmm2, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L16
	movl	%r12d, %eax
	andl	$-2, %eax
	testb	$1, %r12b
	je	.L17
.L15:
	movq	.LC4(%rip), %rdi
	cltq
	movq	%rdi, 80048(%rsp,%rax,8)
.L17:
	cmpl	$1, 8(%rsp)
	leaq	80056(%rsp), %r15
	jle	.L56
	movl	8(%rsp), %eax
	movq	%r15, %rdi
	movl	$100, %r13d
	subl	$2, %eax
	leaq	(%rax,%rax,4), %rax
	leaq	(%rax,%rax,4), %rax
	leaq	200(,%rax,4), %r14
	leal	-1(%r12), %eax
	movl	%eax, 12(%rsp)
	leaq	56(%rsp,%rax,8), %r10
	leal	-2(%r12), %eax
	leaq	5(%rax,%rax,4), %rax
	leaq	(%rax,%rax,4), %r9
	salq	$5, %r9
	.p2align 4,,10
	.p2align 3
.L21:
	leaq	792(%rdi), %rsi
	movq	%rbp, %rcx
	.p2align 4,,10
	.p2align 3
.L28:
	movsd	-8(%rdi), %xmm0
	mulsd	(%rcx), %xmm0
	leaq	(%r9,%rcx), %r8
	movq	%rcx, %rax
	movq	%rdi, %rdx
	movsd	%xmm0, (%rsi)
	cmpl	$1, %r12d
	je	.L27
.L24:
	movsd	(%rdx), %xmm1
	mulsd	800(%rax), %xmm1
	addq	$800, %rax
	addq	$8, %rdx
	maxsd	%xmm1, %xmm0
	movsd	%xmm0, (%rsi)
	cmpq	%r8, %rax
	jne	.L24
.L27:
	addq	$8, %rcx
	addq	$8, %rsi
	cmpq	%r10, %rcx
	jne	.L28
	addq	$100, %r13
	addq	$800, %rdi
	cmpq	%r14, %r13
	jne	.L21
.L19:
	movl	8(%rsp), %eax
	pxor	%xmm0, %xmm0
	subl	$1, %eax
	cltq
	leaq	(%rax,%rax,4), %rax
	leaq	(%rax,%rax,4), %rdx
	movq	%rdx, %rax
	salq	$5, %rax
	addq	%rax, %r11
	movl	12(%rsp), %eax
	leaq	(%rax,%rdx,4), %rax
	leaq	(%r15,%rax,8), %rax
	.p2align 4,,10
	.p2align 3
.L31:
	maxsd	(%r11), %xmm0
	addq	$8, %r11
	cmpq	%r11, %rax
	jne	.L31
	jmp	.L35
.L56:
	leal	-1(%r12), %eax
	movl	%eax, 12(%rsp)
	jmp	.L19
.L7:
	movq	160056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L57
	addq	$160072, %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
.L38:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L15
.L57:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	0
	.long	1072693248
	.long	0
	.long	1072693248
	.set	.LC4,.LC3
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>
#include <string.h>

double max(double a, double b)
{
    if (a > b){
        return (a);
    }
    return (b);
}

int main(void)
{
    int i, j, k;
    int n, m;
    double gr[100][100];
    double dp[100][100];
    double ans;
    int upd;
    
    while (1){
        scanf("%d%d", &n, &m);
        
        if (n + m == 0){
            break;
        }
        
        for (i = 0; i < n; i++){
            for (j = 0; j < n; j++){
                scanf("%lf", &gr[i][j]);
            }
        }
        
        memset(dp, 0, sizeof(dp));
        for (i = 0; i < n; i++){
            dp[0][i] = 1.00;
        }
        
        ans = 0.00;
        for (i = 1; i < m; i++){
            for (j = 0; j < n; j++){
                upd = 0;
                for (k = 0; k < n; k++){
                    if (upd == 0){
                        dp[i][j] = dp[i - 1][k] * gr[k][j];
                        upd = 1;
                    }
                    else {
                        dp[i][j] = max(dp[i][j], dp[i - 1][k] * gr[k][j]);
                    }
                }
            }
        }
        
        for (i = 0; i < n; i++){
            ans = max(ans, dp[m - 1][i]);
        }
        
        printf("%.2f\n", ans);
        
    }
    
    return (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
#include <stdio.h>
#include <string.h>

double max(double a, double b)
{
    if (a > b){
        return (a);
    }
    return (b);
}

int main(void)
{
    int i, j, k;
    int n, m;
    double gr[100][100];
    double dp[100][100];
    double ans;
    int upd;
    
    while (1){
        scanf("%d%d", &n, &m);
        
        if (n + m == 0){
            break;
        }
        
        for (i = 0; i < n; i++){
            for (j = 0; j < n; j++){
                scanf("%lf", &gr[i][j]);
            }
        }
        
        memset(dp, 0, sizeof(dp));
        for (i = 0; i < n; i++){
            dp[0][i] = 1.00;
        }
        
        ans = 0.00;
        for (i = 1; i < m; i++){
            for (j = 0; j < n; j++){
                upd = 0;
                for (k = 0; k < n; k++){
                    if (upd == 0){
                        dp[i][j] = dp[i - 1][k] * gr[k][j];
                        upd = 1;
                    }
                    else {
                        dp[i][j] = max(dp[i][j], dp[i - 1][k] * gr[k][j]);
                    }
                }
            }
        }
        
        for (i = 0; i < n; i++){
            ans = max(ans, dp[m - 1][i]);
        }
        
        printf("%.2f\n", ans);
        
    }
    
    return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	max
	.type	max, @function
max:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movsd	%xmm0, -8(%rbp)
	movsd	%xmm1, -16(%rbp)
	movsd	-8(%rbp), %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L6
	movsd	-8(%rbp), %xmm0
	jmp	.L4
.L6:
	movsd	-16(%rbp), %xmm0
.L4:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%lf"
.LC4:
	.string	"%.2f\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-159744(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$304, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L26:
	leaq	-160044(%rbp), %rdx
	leaq	-160048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-160048(%rbp), %edx
	movl	-160044(%rbp), %eax
	addl	%edx, %eax
	testl	%eax, %eax
	je	.L30
	movl	$0, -160040(%rbp)
	jmp	.L10
.L13:
	movl	$0, -160036(%rbp)
	jmp	.L11
.L12:
	leaq	-160016(%rbp), %rcx
	movl	-160036(%rbp), %eax
	movslq	%eax, %rsi
	movl	-160040(%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	%rsi, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -160036(%rbp)
.L11:
	movl	-160048(%rbp), %eax
	cmpl	%eax, -160036(%rbp)
	jl	.L12
	addl	$1, -160040(%rbp)
.L10:
	movl	-160048(%rbp), %eax
	cmpl	%eax, -160040(%rbp)
	jl	.L13
	leaq	-80016(%rbp), %rax
	movl	$80000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -160040(%rbp)
	jmp	.L14
.L15:
	movl	-160040(%rbp), %eax
	cltq
	movsd	.LC2(%rip), %xmm0
	movsd	%xmm0, -80016(%rbp,%rax,8)
	addl	$1, -160040(%rbp)
.L14:
	movl	-160048(%rbp), %eax
	cmpl	%eax, -160040(%rbp)
	jl	.L15
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -160024(%rbp)
	movl	$1, -160040(%rbp)
	jmp	.L16
.L23:
	movl	$0, -160036(%rbp)
	jmp	.L17
.L22:
	movl	$0, -160028(%rbp)
	movl	$0, -160032(%rbp)
	jmp	.L18
.L21:
	cmpl	$0, -160028(%rbp)
	jne	.L19
	movl	-160040(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-160032(%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
	movsd	-80016(%rbp,%rax,8), %xmm1
	movl	-160036(%rbp), %eax
	movslq	%eax, %rcx
	movl	-160032(%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
	movsd	-160016(%rbp,%rax,8), %xmm0
	mulsd	%xmm1, %xmm0
	movl	-160036(%rbp), %eax
	movslq	%eax, %rcx
	movl	-160040(%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
	movsd	%xmm0, -80016(%rbp,%rax,8)
	movl	$1, -160028(%rbp)
	jmp	.L20
.L19:
	movl	-160040(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-160032(%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
	movsd	-80016(%rbp,%rax,8), %xmm1
	movl	-160036(%rbp), %eax
	movslq	%eax, %rcx
	movl	-160032(%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
	movsd	-160016(%rbp,%rax,8), %xmm0
	mulsd	%xmm1, %xmm0
	movl	-160036(%rbp), %eax
	movslq	%eax, %rcx
	movl	-160040(%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
	movq	-80016(%rbp,%rax,8), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	max
	movq	%xmm0, %rdx
	movl	-160036(%rbp), %eax
	movslq	%eax, %rsi
	movl	-160040(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movq	%rdx, -80016(%rbp,%rax,8)
.L20:
	addl	$1, -160032(%rbp)
.L18:
	movl	-160048(%rbp), %eax
	cmpl	%eax, -160032(%rbp)
	jl	.L21
	addl	$1, -160036(%rbp)
.L17:
	movl	-160048(%rbp), %eax
	cmpl	%eax, -160036(%rbp)
	jl	.L22
	addl	$1, -160040(%rbp)
.L16:
	movl	-160044(%rbp), %eax
	cmpl	%eax, -160040(%rbp)
	jl	.L23
	movl	$0, -160040(%rbp)
	jmp	.L24
.L25:
	movl	-160044(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-160040(%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
	movsd	-80016(%rbp,%rax,8), %xmm0
	movq	-160024(%rbp), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	max
	movq	%xmm0, %rax
	movq	%rax, -160024(%rbp)
	addl	$1, -160040(%rbp)
.L24:
	movl	-160048(%rbp), %eax
	cmpl	%eax, -160040(%rbp)
	jl	.L25
	movq	-160024(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	jmp	.L26
.L30:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.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	max
	.type	max, @function
max:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movsd	%xmm0, -8(%rbp)
	movsd	%xmm1, -16(%rbp)
	movsd	-8(%rbp), %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L6
	movsd	-8(%rbp), %xmm0
	jmp	.L4
.L6:
	movsd	-16(%rbp), %xmm0
.L4:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%lf"
.LC4:
	.string	"%.2f\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-159744(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$304, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L26:
	leaq	-160044(%rbp), %rdx
	leaq	-160048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-160048(%rbp), %edx
	movl	-160044(%rbp), %eax
	addl	%edx, %eax
	testl	%eax, %eax
	je	.L30
	movl	$0, -160040(%rbp)
	jmp	.L10
.L13:
	movl	$0, -160036(%rbp)
	jmp	.L11
.L12:
	leaq	-160016(%rbp), %rcx
	movl	-160036(%rbp), %eax
	movslq	%eax, %rsi
	movl	-160040(%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	%rsi, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -160036(%rbp)
.L11:
	movl	-160048(%rbp), %eax
	cmpl	%eax, -160036(%rbp)
	jl	.L12
	addl	$1, -160040(%rbp)
.L10:
	movl	-160048(%rbp), %eax
	cmpl	%eax, -160040(%rbp)
	jl	.L13
	leaq	-80016(%rbp), %rax
	movl	$80000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -160040(%rbp)
	jmp	.L14
.L15:
	movl	-160040(%rbp), %eax
	cltq
	movsd	.LC2(%rip), %xmm0
	movsd	%xmm0, -80016(%rbp,%rax,8)
	addl	$1, -160040(%rbp)
.L14:
	movl	-160048(%rbp), %eax
	cmpl	%eax, -160040(%rbp)
	jl	.L15
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -160024(%rbp)
	movl	$1, -160040(%rbp)
	jmp	.L16
.L23:
	movl	$0, -160036(%rbp)
	jmp	.L17
.L22:
	movl	$0, -160028(%rbp)
	movl	$0, -160032(%rbp)
	jmp	.L18
.L21:
	cmpl	$0, -160028(%rbp)
	jne	.L19
	movl	-160040(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-160032(%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
	movsd	-80016(%rbp,%rax,8), %xmm1
	movl	-160036(%rbp), %eax
	movslq	%eax, %rcx
	movl	-160032(%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
	movsd	-160016(%rbp,%rax,8), %xmm0
	mulsd	%xmm1, %xmm0
	movl	-160036(%rbp), %eax
	movslq	%eax, %rcx
	movl	-160040(%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
	movsd	%xmm0, -80016(%rbp,%rax,8)
	movl	$1, -160028(%rbp)
	jmp	.L20
.L19:
	movl	-160040(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-160032(%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
	movsd	-80016(%rbp,%rax,8), %xmm1
	movl	-160036(%rbp), %eax
	movslq	%eax, %rcx
	movl	-160032(%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
	movsd	-160016(%rbp,%rax,8), %xmm0
	mulsd	%xmm1, %xmm0
	movl	-160036(%rbp), %eax
	movslq	%eax, %rcx
	movl	-160040(%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
	movq	-80016(%rbp,%rax,8), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	max
	movq	%xmm0, %rdx
	movl	-160036(%rbp), %eax
	movslq	%eax, %rsi
	movl	-160040(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movq	%rdx, -80016(%rbp,%rax,8)
.L20:
	addl	$1, -160032(%rbp)
.L18:
	movl	-160048(%rbp), %eax
	cmpl	%eax, -160032(%rbp)
	jl	.L21
	addl	$1, -160036(%rbp)
.L17:
	movl	-160048(%rbp), %eax
	cmpl	%eax, -160036(%rbp)
	jl	.L22
	addl	$1, -160040(%rbp)
.L16:
	movl	-160044(%rbp), %eax
	cmpl	%eax, -160040(%rbp)
	jl	.L23
	movl	$0, -160040(%rbp)
	jmp	.L24
.L25:
	movl	-160044(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-160040(%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
	movsd	-80016(%rbp,%rax,8), %xmm0
	movq	-160024(%rbp), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	max
	movq	%xmm0, %rax
	movq	%rax, -160024(%rbp)
	addl	$1, -160040(%rbp)
.L24:
	movl	-160048(%rbp), %eax
	cmpl	%eax, -160040(%rbp)
	jl	.L25
	movq	-160024(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	jmp	.L26
.L30:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.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:
