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

```c
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<string.h>
#include<stdbool.h>

#define MOD 998244353

#define MIN(a,b) ((a)<(b)?(a):(b))
#define MAX(a,b) ((a)>(b)?(a):(b))

typedef long long int64;

int main(void){
    int64 H,W;
    scanf("%lld %lld",&H,&W);
    char A[H][W];

    for(int64 i=0;i<H;i++){
        scanf("%s",&A[i]);
    }
    int64 dp[H][W];
    for(int64 i=0;i<H;i++){
        for(int64 j=0;j<W;j++){
            dp[i][j]=2000;
        }
    }

    int tmp=2000;

    for(int64 i=0;i<H;i++){
        tmp=2000;
        for(int64 j=0;j<W;j++){
            if(A[i][j]=='#'){
                dp[i][j]=0;
                tmp=1;
            }else{
                dp[i][j]=MIN(dp[i][j],tmp);
                tmp++;
            }
        }
    }
    for(int64 j=0;j<W;j++){
        for(int64 i=0;i<H;i++){
            if(i==0) continue;
            dp[i][j]=MIN(dp[i][j],dp[i-1][j]+1);
        }
    }
    for(int64 i=H-1;i>=0;i--){
        for(int64 j=W-1;j>=0;j--){
            if(j==W-1) continue;
            dp[i][j]=MIN(dp[i][j],dp[i][j+1]+1);
        }
    }
    
    for(int64 j=W-1;j>=0;j--){
        for(int64 i=H-1;i>=0;i--){
            if(i==H-1) continue;
            dp[i][j]=MIN(dp[i][j],dp[i+1][j]+1);
        }
    }

    int64 ans=0;

    for(int64 i=0;i<H;i++){
        for(int64 j=0;j<W;j++){
            ans=MAX(ans,dp[i][j]);
        }
    }

    // for(int i=0;i<H;i++){
    //     for(int j=0;j<W;j++){
    //         printf("\t%d",dp[i][j]);
    //     }
    //     printf("\n");
        
    // }

    printf("%lld",ans);
    
    
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%s"
.LC2:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$344, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -376(%rbp)
	leaq	-224(%rbp), %rdx
	leaq	-232(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-224(%rbp), %rsi
	movq	-232(%rbp), %rdi
	leaq	-1(%rsi), %rax
	movq	%rax, -104(%rbp)
	movq	%rsi, %rax
	movq	%rax, -352(%rbp)
	movq	$0, -344(%rbp)
	movq	%rsi, %rbx
	leaq	-1(%rdi), %rax
	movq	%rax, -96(%rbp)
	movq	%rsi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movq	%rdi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movq	%rsi, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movq	%rdi, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movq	-256(%rbp), %r9
	movq	-248(%rbp), %r10
	movq	%r10, %rdx
	movq	-272(%rbp), %r11
	movq	-264(%rbp), %r12
	imulq	%r11, %rdx
	movq	%r12, %rax
	imulq	%r9, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r9, %rax
	mulq	%r11
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movq	%rsi, %rdx
	movq	%rdi, %rax
	imulq	%rdx, %rax
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %ecx
	movl	$0, %edx
	divq	%rcx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -88(%rbp)
	movq	$0, -216(%rbp)
	jmp	.L5
.L6:
	movq	%rbx, %rdx
	imulq	-216(%rbp), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -216(%rbp)
.L5:
	movq	-232(%rbp), %rax
	cmpq	%rax, -216(%rbp)
	jl	.L6
	movq	-224(%rbp), %rdi
	movq	-232(%rbp), %r8
	leaq	-1(%rdi), %rax
	movq	%rax, -80(%rbp)
	movq	%rdi, %rax
	movq	%rax, -368(%rbp)
	movq	$0, -360(%rbp)
	movq	%rdi, %rax
	leaq	0(,%rax,8), %rcx
	leaq	-1(%r8), %rax
	movq	%rax, -72(%rbp)
	movq	%rdi, %rax
	movq	%rax, -288(%rbp)
	movq	$0, -280(%rbp)
	movq	%r8, %rax
	movq	%rax, -304(%rbp)
	movq	$0, -296(%rbp)
	movq	-288(%rbp), %r11
	movq	-280(%rbp), %r12
	movq	%r12, %rdx
	movq	-304(%rbp), %r14
	movq	-296(%rbp), %r15
	imulq	%r14, %rdx
	movq	%r15, %rax
	imulq	%r11, %rax
	leaq	(%rdx,%rax), %rsi
	movq	%r11, %rax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movq	%rdi, %rax
	movq	%rax, -320(%rbp)
	movq	$0, -312(%rbp)
	movq	%r8, %rax
	movq	%rax, -336(%rbp)
	movq	$0, -328(%rbp)
	movq	-320(%rbp), %r14
	movq	-312(%rbp), %r15
	movq	%r15, %rdx
	movq	-336(%rbp), %r9
	movq	-328(%rbp), %r10
	imulq	%r9, %rdx
	movq	%r10, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rsi
	movq	%r14, %rax
	mulq	%r9
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movq	%rdi, %rdx
	movq	%r8, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rsi
	andq	$-4096, %rsi
	movq	%rsp, %rdx
	subq	%rsi, %rdx
.L7:
	cmpq	%rdx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L9
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movq	$0, -208(%rbp)
	jmp	.L10
.L13:
	movq	$0, -200(%rbp)
	jmp	.L11
.L12:
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rsi
	imulq	-208(%rbp), %rsi
	movq	-200(%rbp), %rdx
	addq	%rsi, %rdx
	movq	$2000, (%rax,%rdx,8)
	addq	$1, -200(%rbp)
.L11:
	movq	-224(%rbp), %rax
	cmpq	%rax, -200(%rbp)
	jl	.L12
	addq	$1, -208(%rbp)
.L10:
	movq	-232(%rbp), %rax
	cmpq	%rax, -208(%rbp)
	jl	.L13
	movl	$2000, -236(%rbp)
	movq	$0, -192(%rbp)
	jmp	.L14
.L19:
	movl	$2000, -236(%rbp)
	movq	$0, -184(%rbp)
	jmp	.L15
.L18:
	movq	-88(%rbp), %rdx
	movq	%rbx, %rax
	imulq	-192(%rbp), %rax
	addq	%rax, %rdx
	movq	-184(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L16
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rsi
	imulq	-192(%rbp), %rsi
	movq	-184(%rbp), %rdx
	addq	%rsi, %rdx
	movq	$0, (%rax,%rdx,8)
	movl	$1, -236(%rbp)
	jmp	.L17
.L16:
	movl	-236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rax
	movq	%rsi, %rdi
	imulq	-192(%rbp), %rdi
	movq	-184(%rbp), %rsi
	addq	%rdi, %rsi
	movq	(%rax,%rsi,8), %rax
	movq	%rcx, %rsi
	shrq	$3, %rsi
	cmpq	%rax, %rdx
	cmovg	%rax, %rdx
	movq	-64(%rbp), %rax
	movq	%rsi, %rdi
	imulq	-192(%rbp), %rdi
	movq	-184(%rbp), %rsi
	addq	%rdi, %rsi
	movq	%rdx, (%rax,%rsi,8)
	addl	$1, -236(%rbp)
.L17:
	addq	$1, -184(%rbp)
.L15:
	movq	-224(%rbp), %rax
	cmpq	%rax, -184(%rbp)
	jl	.L18
	addq	$1, -192(%rbp)
.L14:
	movq	-232(%rbp), %rax
	cmpq	%rax, -192(%rbp)
	jl	.L19
	movq	$0, -176(%rbp)
	jmp	.L20
.L27:
	movq	$0, -168(%rbp)
	jmp	.L21
.L26:
	cmpq	$0, -168(%rbp)
	je	.L50
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-168(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	-64(%rbp), %rax
	imulq	%rdx, %rsi
	movq	-176(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rax
	movq	%rsi, %rdi
	imulq	-168(%rbp), %rdi
	movq	-176(%rbp), %rsi
	addq	%rdi, %rsi
	movq	(%rax,%rsi,8), %rax
	cmpq	%rax, %rdx
	jl	.L24
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rsi
	imulq	-168(%rbp), %rsi
	movq	-176(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	jmp	.L25
.L24:
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-168(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	-64(%rbp), %rax
	imulq	%rdx, %rsi
	movq	-176(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	addq	$1, %rax
.L25:
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rdx
	movq	%rsi, %rdi
	imulq	-168(%rbp), %rdi
	movq	-176(%rbp), %rsi
	addq	%rdi, %rsi
	movq	%rax, (%rdx,%rsi,8)
	jmp	.L23
.L50:
	nop
.L23:
	addq	$1, -168(%rbp)
.L21:
	movq	-232(%rbp), %rax
	cmpq	%rax, -168(%rbp)
	jl	.L26
	addq	$1, -176(%rbp)
.L20:
	movq	-224(%rbp), %rax
	cmpq	%rax, -176(%rbp)
	jl	.L27
	movq	-232(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -160(%rbp)
	jmp	.L28
.L35:
	movq	-224(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -152(%rbp)
	jmp	.L29
.L34:
	movq	-224(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -152(%rbp)
	je	.L51
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-152(%rbp), %rax
	leaq	1(%rax), %rsi
	movq	-64(%rbp), %rax
	imulq	-160(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rax
	movq	%rsi, %rdi
	imulq	-160(%rbp), %rdi
	movq	-152(%rbp), %rsi
	addq	%rdi, %rsi
	movq	(%rax,%rsi,8), %rax
	cmpq	%rax, %rdx
	jl	.L32
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rsi
	imulq	-160(%rbp), %rsi
	movq	-152(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	jmp	.L33
.L32:
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-152(%rbp), %rax
	leaq	1(%rax), %rsi
	movq	-64(%rbp), %rax
	imulq	-160(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	addq	$1, %rax
.L33:
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rdx
	movq	%rsi, %rdi
	imulq	-160(%rbp), %rdi
	movq	-152(%rbp), %rsi
	addq	%rdi, %rsi
	movq	%rax, (%rdx,%rsi,8)
	jmp	.L31
.L51:
	nop
.L31:
	subq	$1, -152(%rbp)
.L29:
	cmpq	$0, -152(%rbp)
	jns	.L34
	subq	$1, -160(%rbp)
.L28:
	cmpq	$0, -160(%rbp)
	jns	.L35
	movq	-224(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -144(%rbp)
	jmp	.L36
.L43:
	movq	-232(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -136(%rbp)
	jmp	.L37
.L42:
	movq	-232(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -136(%rbp)
	je	.L52
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-136(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-64(%rbp), %rax
	imulq	%rdx, %rsi
	movq	-144(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rax
	movq	%rsi, %rdi
	imulq	-136(%rbp), %rdi
	movq	-144(%rbp), %rsi
	addq	%rdi, %rsi
	movq	(%rax,%rsi,8), %rax
	cmpq	%rax, %rdx
	jl	.L40
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rsi
	imulq	-136(%rbp), %rsi
	movq	-144(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	jmp	.L41
.L40:
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-136(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-64(%rbp), %rax
	imulq	%rdx, %rsi
	movq	-144(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	addq	$1, %rax
.L41:
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rdx
	movq	%rsi, %rdi
	imulq	-136(%rbp), %rdi
	movq	-144(%rbp), %rsi
	addq	%rdi, %rsi
	movq	%rax, (%rdx,%rsi,8)
	jmp	.L39
.L52:
	nop
.L39:
	subq	$1, -136(%rbp)
.L37:
	cmpq	$0, -136(%rbp)
	jns	.L42
	subq	$1, -144(%rbp)
.L36:
	cmpq	$0, -144(%rbp)
	jns	.L43
	movq	$0, -128(%rbp)
	movq	$0, -120(%rbp)
	jmp	.L44
.L47:
	movq	$0, -112(%rbp)
	jmp	.L45
.L46:
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rsi
	imulq	-120(%rbp), %rsi
	movq	-112(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	-128(%rbp), %rdx
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, -128(%rbp)
	addq	$1, -112(%rbp)
.L45:
	movq	-224(%rbp), %rax
	cmpq	%rax, -112(%rbp)
	jl	.L46
	addq	$1, -120(%rbp)
.L44:
	movq	-232(%rbp), %rax
	cmpq	%rax, -120(%rbp)
	jl	.L47
	movq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-376(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%s"
.LC3:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %r10
	movq	-64(%rbp), %rbx
	movq	%rsp, %rsi
	movq	%r10, %rcx
	movq	%rbx, -96(%rbp)
	imulq	%rbx, %rcx
	leaq	15(%rcx), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L89:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L89
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L90
.L4:
	testq	%r10, %r10
	jle	.L5
	movq	%rsp, %r15
	movq	%rsp, %r14
	leaq	.LC1(%rip), %r12
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %r13
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %r10
	addq	%rbx, %r14
	cmpq	%r13, %r10
	jg	.L6
	movq	-64(%rbp), %rbx
	movq	%rsp, %rcx
	leaq	-1(%r10), %r11
	leaq	0(,%rbx,8), %rax
	leaq	-1(%rbx), %r8
	movq	%rax, -88(%rbp)
	movq	%r10, %rax
	imulq	%rbx, %rax
	leaq	15(,%rax,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L7:
	cmpq	%rcx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L91
.L9:
	movq	%rsp, %rdi
	movq	%rdi, %rcx
	testq	%r10, %r10
	jle	.L16
	movq	-88(%rbp), %rax
	movq	%rax, %r9
	shrq	$3, %r9
	testq	%rbx, %rbx
	jle	.L16
	movq	%rbx, %r12
	movq	%rbx, %r13
	movdqa	.LC2(%rip), %xmm0
	xorl	%edx, %edx
	movq	%r8, -104(%rbp)
	movq	%rdi, %rsi
	shrq	%r12
	andq	$-2, %r13
	movq	%rax, %r8
	.p2align 4,,10
	.p2align 3
.L14:
	xorl	%eax, %eax
	cmpq	$1, %rbx
	je	.L92
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%rax, %r14
	addq	$1, %rax
	salq	$4, %r14
	movups	%xmm0, (%rsi,%r14)
	cmpq	%rax, %r12
	jne	.L12
	movq	%r13, %r14
	cmpq	%r13, %rbx
	je	.L13
.L17:
	movq	%r9, %rax
	imulq	%rdx, %rax
	addq	%r14, %rax
	movq	$2000, (%rdi,%rax,8)
.L13:
	addq	$1, %rdx
	addq	%r8, %rsi
	cmpq	%rdx, %r10
	jne	.L14
	movq	%r11, -112(%rbp)
	movq	-88(%rbp), %r12
	leaq	(%r15,%rbx), %r13
	xorl	%r14d, %r14d
	movq	-96(%rbp), %r11
	movq	%rdi, %r15
	.p2align 4,,10
	.p2align 3
.L23:
	movq	%r13, %rax
	movq	%r15, %rdx
	movl	$2000, %r8d
	subq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L22:
	cmpb	$35, (%rax)
	je	.L19
	movq	(%rdx), %r9
	movslq	%r8d, %rsi
	cmpq	%r9, %rsi
	cmovg	%r9, %rsi
	addq	$1, %rax
	addl	$1, %r8d
	addq	$8, %rdx
	movq	%rsi, -8(%rdx)
	cmpq	%rax, %r13
	jne	.L22
.L21:
	addq	$1, %r14
	addq	%r11, %r13
	addq	%r12, %r15
	cmpq	%r10, %r14
	jne	.L23
	movq	-88(%rbp), %r9
	movq	-104(%rbp), %r8
	xorl	%esi, %esi
	movq	-112(%rbp), %r11
	shrq	$3, %r9
	.p2align 4,,10
	.p2align 3
.L48:
	movl	$1, %edx
	cmpq	$1, %r10
	je	.L27
	.p2align 4,,10
	.p2align 3
.L28:
	leaq	-1(%rdx), %rax
	imulq	%r9, %rax
	addq	%rsi, %rax
	movq	(%rdi,%rax,8), %r12
	movq	%rdx, %rax
	imulq	%r9, %rax
	addq	%rsi, %rax
	cmpq	%r12, (%rdi,%rax,8)
	jle	.L25
	addq	$1, %r12
	addq	$1, %rdx
	movq	%r12, (%rdi,%rax,8)
	cmpq	%rdx, %r10
	jne	.L28
.L27:
	addq	$1, %rsi
	cmpq	%rsi, %rbx
	jne	.L48
.L16:
	testq	%r11, %r11
	js	.L29
	movq	-88(%rbp), %rax
	shrq	$3, %rax
	testq	%r8, %r8
	js	.L29
	movq	%rax, %r15
	imulq	%r11, %rax
	leaq	-1(%r8), %r12
	movq	%r11, %r13
	negq	%r15
	salq	$3, %r15
	addq	%r8, %rax
	leaq	(%rcx,%rax,8), %r14
	.p2align 4,,10
	.p2align 3
.L30:
	movq	%r14, %rax
	movq	%r12, %rsi
	cmpq	$-1, %r12
	je	.L35
	.p2align 4,,10
	.p2align 3
.L33:
	cmpq	%rsi, %r8
	je	.L31
	movq	-8(%rax), %rdx
	movq	(%rax), %rdi
	leaq	1(%rdi), %r9
	cmpq	%rdx, %rdi
	cmovl	%r9, %rdx
	movq	%rdx, -8(%rax)
.L31:
	subq	$1, %rsi
	subq	$8, %rax
	cmpq	$-1, %rsi
	jne	.L33
.L35:
	subq	$1, %r13
	addq	%r15, %r14
	cmpq	$-1, %r13
	jne	.L30
	movq	-88(%rbp), %rsi
	leaq	-1(%r11), %rdi
	shrq	$3, %rsi
	.p2align 4,,10
	.p2align 3
.L47:
	movq	%rdi, %rax
	cmpq	$-1, %rdi
	je	.L39
	.p2align 4,,10
	.p2align 3
.L38:
	leaq	1(%rax), %rdx
	cmpq	%rax, %r11
	je	.L36
	imulq	%rsi, %rdx
	addq	%r8, %rdx
	movq	(%rcx,%rdx,8), %r13
	movq	%rsi, %rdx
	imulq	%rax, %rdx
	leaq	1(%r13), %r14
	addq	%r8, %rdx
	movq	(%rcx,%rdx,8), %r9
	cmpq	%r9, %r13
	cmovl	%r14, %r9
	movq	%r9, (%rcx,%rdx,8)
.L36:
	subq	$1, %rax
	jnb	.L38
.L39:
	movq	%r12, %r8
	cmpq	$-1, %r12
	je	.L29
	subq	$1, %r12
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L25:
	addq	$1, %rdx
	cmpq	%rdx, %r10
	jne	.L28
	addq	$1, %rsi
	cmpq	%rsi, %rbx
	jne	.L48
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L19:
	addq	$1, %rax
	movq	$0, (%rdx)
	addq	$8, %rdx
	cmpq	%r13, %rax
	je	.L21
	movl	$1, %r8d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L29:
	testq	%r10, %r10
	jle	.L54
	movq	-88(%rbp), %r8
	xorl	%edi, %edi
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L41:
	xorl	%eax, %eax
	testq	%rbx, %rbx
	jle	.L43
	.p2align 4,,10
	.p2align 3
.L42:
	movq	(%rcx,%rax,8), %rsi
	cmpq	%rsi, %rdx
	cmovl	%rsi, %rdx
	addq	$1, %rax
	cmpq	%rbx, %rax
	jne	.L42
.L43:
	addq	$1, %rdi
	addq	%r8, %rcx
	cmpq	%r10, %rdi
	jne	.L41
.L40:
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L93
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L92:
	.cfi_restore_state
	xorl	%r14d, %r14d
	jmp	.L17
.L90:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L91:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L9
.L5:
	leaq	15(,%rcx,8), %rdx
	leaq	0(,%rbx,8), %rax
	movq	%rsp, %rcx
	movq	%rax, -88(%rbp)
	movq	%rdx, %rax
	leaq	-1(%rbx), %r8
	leaq	-1(%r10), %r11
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rcx
.L44:
	cmpq	%rcx, %rsp
	je	.L45
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L44
.L54:
	xorl	%edx, %edx
	jmp	.L40
.L45:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L46
	orq	$0, -8(%rsp,%rax)
.L46:
	movq	%rsp, %rcx
	jmp	.L16
.L93:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	2000
	.quad	2000
	.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
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%s"
.LC3:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %r10
	movq	-64(%rbp), %rbx
	movq	%rsp, %rsi
	movq	%r10, %rcx
	movq	%rbx, -96(%rbp)
	imulq	%rbx, %rcx
	leaq	15(%rcx), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L89:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L89
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L90
.L4:
	testq	%r10, %r10
	jle	.L5
	movq	%rsp, %r15
	movq	%rsp, %r14
	leaq	.LC1(%rip), %r12
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %r13
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %r10
	addq	%rbx, %r14
	cmpq	%r13, %r10
	jg	.L6
	movq	-64(%rbp), %rbx
	movq	%rsp, %rcx
	leaq	-1(%r10), %r11
	leaq	0(,%rbx,8), %rax
	leaq	-1(%rbx), %r8
	movq	%rax, -88(%rbp)
	movq	%r10, %rax
	imulq	%rbx, %rax
	leaq	15(,%rax,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L7:
	cmpq	%rcx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L91
.L9:
	movq	%rsp, %rdi
	movq	%rdi, %rcx
	testq	%r10, %r10
	jle	.L16
	movq	-88(%rbp), %rax
	movq	%rax, %r9
	shrq	$3, %r9
	testq	%rbx, %rbx
	jle	.L16
	movq	%rbx, %r12
	movq	%rbx, %r13
	movdqa	.LC2(%rip), %xmm0
	xorl	%edx, %edx
	movq	%r8, -104(%rbp)
	movq	%rdi, %rsi
	shrq	%r12
	andq	$-2, %r13
	movq	%rax, %r8
	.p2align 4,,10
	.p2align 3
.L14:
	xorl	%eax, %eax
	cmpq	$1, %rbx
	je	.L92
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%rax, %r14
	addq	$1, %rax
	salq	$4, %r14
	movups	%xmm0, (%rsi,%r14)
	cmpq	%rax, %r12
	jne	.L12
	movq	%r13, %r14
	cmpq	%r13, %rbx
	je	.L13
.L17:
	movq	%r9, %rax
	imulq	%rdx, %rax
	addq	%r14, %rax
	movq	$2000, (%rdi,%rax,8)
.L13:
	addq	$1, %rdx
	addq	%r8, %rsi
	cmpq	%rdx, %r10
	jne	.L14
	movq	%r11, -112(%rbp)
	movq	-88(%rbp), %r12
	leaq	(%r15,%rbx), %r13
	xorl	%r14d, %r14d
	movq	-96(%rbp), %r11
	movq	%rdi, %r15
	.p2align 4,,10
	.p2align 3
.L23:
	movq	%r13, %rax
	movq	%r15, %rdx
	movl	$2000, %r8d
	subq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L22:
	cmpb	$35, (%rax)
	je	.L19
	movq	(%rdx), %r9
	movslq	%r8d, %rsi
	cmpq	%r9, %rsi
	cmovg	%r9, %rsi
	addq	$1, %rax
	addl	$1, %r8d
	addq	$8, %rdx
	movq	%rsi, -8(%rdx)
	cmpq	%rax, %r13
	jne	.L22
.L21:
	addq	$1, %r14
	addq	%r11, %r13
	addq	%r12, %r15
	cmpq	%r10, %r14
	jne	.L23
	movq	-88(%rbp), %r9
	movq	-104(%rbp), %r8
	xorl	%esi, %esi
	movq	-112(%rbp), %r11
	shrq	$3, %r9
	.p2align 4,,10
	.p2align 3
.L48:
	movl	$1, %edx
	cmpq	$1, %r10
	je	.L27
	.p2align 4,,10
	.p2align 3
.L28:
	leaq	-1(%rdx), %rax
	imulq	%r9, %rax
	addq	%rsi, %rax
	movq	(%rdi,%rax,8), %r12
	movq	%rdx, %rax
	imulq	%r9, %rax
	addq	%rsi, %rax
	cmpq	%r12, (%rdi,%rax,8)
	jle	.L25
	addq	$1, %r12
	addq	$1, %rdx
	movq	%r12, (%rdi,%rax,8)
	cmpq	%rdx, %r10
	jne	.L28
.L27:
	addq	$1, %rsi
	cmpq	%rsi, %rbx
	jne	.L48
.L16:
	testq	%r11, %r11
	js	.L29
	movq	-88(%rbp), %rax
	shrq	$3, %rax
	testq	%r8, %r8
	js	.L29
	movq	%rax, %r15
	imulq	%r11, %rax
	leaq	-1(%r8), %r12
	movq	%r11, %r13
	negq	%r15
	salq	$3, %r15
	addq	%r8, %rax
	leaq	(%rcx,%rax,8), %r14
	.p2align 4,,10
	.p2align 3
.L30:
	movq	%r14, %rax
	movq	%r12, %rsi
	cmpq	$-1, %r12
	je	.L35
	.p2align 4,,10
	.p2align 3
.L33:
	cmpq	%rsi, %r8
	je	.L31
	movq	-8(%rax), %rdx
	movq	(%rax), %rdi
	leaq	1(%rdi), %r9
	cmpq	%rdx, %rdi
	cmovl	%r9, %rdx
	movq	%rdx, -8(%rax)
.L31:
	subq	$1, %rsi
	subq	$8, %rax
	cmpq	$-1, %rsi
	jne	.L33
.L35:
	subq	$1, %r13
	addq	%r15, %r14
	cmpq	$-1, %r13
	jne	.L30
	movq	-88(%rbp), %rsi
	leaq	-1(%r11), %rdi
	shrq	$3, %rsi
	.p2align 4,,10
	.p2align 3
.L47:
	movq	%rdi, %rax
	cmpq	$-1, %rdi
	je	.L39
	.p2align 4,,10
	.p2align 3
.L38:
	leaq	1(%rax), %rdx
	cmpq	%rax, %r11
	je	.L36
	imulq	%rsi, %rdx
	addq	%r8, %rdx
	movq	(%rcx,%rdx,8), %r13
	movq	%rsi, %rdx
	imulq	%rax, %rdx
	leaq	1(%r13), %r14
	addq	%r8, %rdx
	movq	(%rcx,%rdx,8), %r9
	cmpq	%r9, %r13
	cmovl	%r14, %r9
	movq	%r9, (%rcx,%rdx,8)
.L36:
	subq	$1, %rax
	jnb	.L38
.L39:
	movq	%r12, %r8
	cmpq	$-1, %r12
	je	.L29
	subq	$1, %r12
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L25:
	addq	$1, %rdx
	cmpq	%rdx, %r10
	jne	.L28
	addq	$1, %rsi
	cmpq	%rsi, %rbx
	jne	.L48
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L19:
	addq	$1, %rax
	movq	$0, (%rdx)
	addq	$8, %rdx
	cmpq	%r13, %rax
	je	.L21
	movl	$1, %r8d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L29:
	testq	%r10, %r10
	jle	.L54
	movq	-88(%rbp), %r8
	xorl	%edi, %edi
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L41:
	xorl	%eax, %eax
	testq	%rbx, %rbx
	jle	.L43
	.p2align 4,,10
	.p2align 3
.L42:
	movq	(%rcx,%rax,8), %rsi
	cmpq	%rsi, %rdx
	cmovl	%rsi, %rdx
	addq	$1, %rax
	cmpq	%rbx, %rax
	jne	.L42
.L43:
	addq	$1, %rdi
	addq	%r8, %rcx
	cmpq	%r10, %rdi
	jne	.L41
.L40:
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L93
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L92:
	.cfi_restore_state
	xorl	%r14d, %r14d
	jmp	.L17
.L90:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L91:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L9
.L5:
	leaq	15(,%rcx,8), %rdx
	leaq	0(,%rbx,8), %rax
	movq	%rsp, %rcx
	movq	%rax, -88(%rbp)
	movq	%rdx, %rax
	leaq	-1(%rbx), %r8
	leaq	-1(%r10), %r11
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rcx
.L44:
	cmpq	%rcx, %rsp
	je	.L45
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L44
.L54:
	xorl	%edx, %edx
	jmp	.L40
.L45:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L46
	orq	$0, -8(%rsp,%rax)
.L46:
	movq	%rsp, %rcx
	jmp	.L16
.L93:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	2000
	.quad	2000
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<string.h>
#include<stdbool.h>

#define MOD 998244353

#define MIN(a,b) ((a)<(b)?(a):(b))
#define MAX(a,b) ((a)>(b)?(a):(b))

typedef long long int64;

int main(void){
    int64 H,W;
    scanf("%lld %lld",&H,&W);
    char A[H][W];

    for(int64 i=0;i<H;i++){
        scanf("%s",&A[i]);
    }
    int64 dp[H][W];
    for(int64 i=0;i<H;i++){
        for(int64 j=0;j<W;j++){
            dp[i][j]=2000;
        }
    }

    int tmp=2000;

    for(int64 i=0;i<H;i++){
        tmp=2000;
        for(int64 j=0;j<W;j++){
            if(A[i][j]=='#'){
                dp[i][j]=0;
                tmp=1;
            }else{
                dp[i][j]=MIN(dp[i][j],tmp);
                tmp++;
            }
        }
    }
    for(int64 j=0;j<W;j++){
        for(int64 i=0;i<H;i++){
            if(i==0) continue;
            dp[i][j]=MIN(dp[i][j],dp[i-1][j]+1);
        }
    }
    for(int64 i=H-1;i>=0;i--){
        for(int64 j=W-1;j>=0;j--){
            if(j==W-1) continue;
            dp[i][j]=MIN(dp[i][j],dp[i][j+1]+1);
        }
    }
    
    for(int64 j=W-1;j>=0;j--){
        for(int64 i=H-1;i>=0;i--){
            if(i==H-1) continue;
            dp[i][j]=MIN(dp[i][j],dp[i+1][j]+1);
        }
    }

    int64 ans=0;

    for(int64 i=0;i<H;i++){
        for(int64 j=0;j<W;j++){
            ans=MAX(ans,dp[i][j]);
        }
    }

    // for(int i=0;i<H;i++){
    //     for(int j=0;j<W;j++){
    //         printf("\t%d",dp[i][j]);
    //     }
    //     printf("\n");
        
    // }

    printf("%lld",ans);
    
    
    return 0;
}

2 3
...
.#.
...
 6 6
..#..#
......
..#..
......
.#....
-...#.
 2 6
#.#...
......
..#0.
......
.#.-..
--..#-
 2 3
...
.#.
..-
 2 3
/..
.#.
..-
 2 3
/..
.#.
..,
 3 3
...
/#.
...
 2 3
...
.#.
..,
 3 3
../
/#.
...
 3 3
-..
.#.
...

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

```c
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<string.h>
#include<stdbool.h>

#define MOD 998244353

#define MIN(a,b) ((a)<(b)?(a):(b))
#define MAX(a,b) ((a)>(b)?(a):(b))

typedef long long int64;

int main(void){
    int64 H,W;
    scanf("%lld %lld",&H,&W);
    char A[H][W];

    for(int64 i=0;i<H;i++){
        scanf("%s",&A[i]);
    }
    int64 dp[H][W];
    for(int64 i=0;i<H;i++){
        for(int64 j=0;j<W;j++){
            dp[i][j]=2000;
        }
    }

    int tmp=2000;

    for(int64 i=0;i<H;i++){
        tmp=2000;
        for(int64 j=0;j<W;j++){
            if(A[i][j]=='#'){
                dp[i][j]=0;
                tmp=1;
            }else{
                dp[i][j]=MIN(dp[i][j],tmp);
                tmp++;
            }
        }
    }
    for(int64 j=0;j<W;j++){
        for(int64 i=0;i<H;i++){
            if(i==0) continue;
            dp[i][j]=MIN(dp[i][j],dp[i-1][j]+1);
        }
    }
    for(int64 i=H-1;i>=0;i--){
        for(int64 j=W-1;j>=0;j--){
            if(j==W-1) continue;
            dp[i][j]=MIN(dp[i][j],dp[i][j+1]+1);
        }
    }
    
    for(int64 j=W-1;j>=0;j--){
        for(int64 i=H-1;i>=0;i--){
            if(i==H-1) continue;
            dp[i][j]=MIN(dp[i][j],dp[i+1][j]+1);
        }
    }

    int64 ans=0;

    for(int64 i=0;i<H;i++){
        for(int64 j=0;j<W;j++){
            ans=MAX(ans,dp[i][j]);
        }
    }

    // for(int i=0;i<H;i++){
    //     for(int j=0;j<W;j++){
    //         printf("\t%d",dp[i][j]);
    //     }
    //     printf("\n");
        
    // }

    printf("%lld",ans);
    
    
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%s"
.LC2:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$344, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -376(%rbp)
	leaq	-224(%rbp), %rdx
	leaq	-232(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-224(%rbp), %rsi
	movq	-232(%rbp), %rdi
	leaq	-1(%rsi), %rax
	movq	%rax, -104(%rbp)
	movq	%rsi, %rax
	movq	%rax, -352(%rbp)
	movq	$0, -344(%rbp)
	movq	%rsi, %rbx
	leaq	-1(%rdi), %rax
	movq	%rax, -96(%rbp)
	movq	%rsi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movq	%rdi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movq	%rsi, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movq	%rdi, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movq	-256(%rbp), %r9
	movq	-248(%rbp), %r10
	movq	%r10, %rdx
	movq	-272(%rbp), %r11
	movq	-264(%rbp), %r12
	imulq	%r11, %rdx
	movq	%r12, %rax
	imulq	%r9, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r9, %rax
	mulq	%r11
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movq	%rsi, %rdx
	movq	%rdi, %rax
	imulq	%rdx, %rax
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %ecx
	movl	$0, %edx
	divq	%rcx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -88(%rbp)
	movq	$0, -216(%rbp)
	jmp	.L5
.L6:
	movq	%rbx, %rdx
	imulq	-216(%rbp), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -216(%rbp)
.L5:
	movq	-232(%rbp), %rax
	cmpq	%rax, -216(%rbp)
	jl	.L6
	movq	-224(%rbp), %rdi
	movq	-232(%rbp), %r8
	leaq	-1(%rdi), %rax
	movq	%rax, -80(%rbp)
	movq	%rdi, %rax
	movq	%rax, -368(%rbp)
	movq	$0, -360(%rbp)
	movq	%rdi, %rax
	leaq	0(,%rax,8), %rcx
	leaq	-1(%r8), %rax
	movq	%rax, -72(%rbp)
	movq	%rdi, %rax
	movq	%rax, -288(%rbp)
	movq	$0, -280(%rbp)
	movq	%r8, %rax
	movq	%rax, -304(%rbp)
	movq	$0, -296(%rbp)
	movq	-288(%rbp), %r11
	movq	-280(%rbp), %r12
	movq	%r12, %rdx
	movq	-304(%rbp), %r14
	movq	-296(%rbp), %r15
	imulq	%r14, %rdx
	movq	%r15, %rax
	imulq	%r11, %rax
	leaq	(%rdx,%rax), %rsi
	movq	%r11, %rax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movq	%rdi, %rax
	movq	%rax, -320(%rbp)
	movq	$0, -312(%rbp)
	movq	%r8, %rax
	movq	%rax, -336(%rbp)
	movq	$0, -328(%rbp)
	movq	-320(%rbp), %r14
	movq	-312(%rbp), %r15
	movq	%r15, %rdx
	movq	-336(%rbp), %r9
	movq	-328(%rbp), %r10
	imulq	%r9, %rdx
	movq	%r10, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rsi
	movq	%r14, %rax
	mulq	%r9
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movq	%rdi, %rdx
	movq	%r8, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rsi
	andq	$-4096, %rsi
	movq	%rsp, %rdx
	subq	%rsi, %rdx
.L7:
	cmpq	%rdx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L9
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movq	$0, -208(%rbp)
	jmp	.L10
.L13:
	movq	$0, -200(%rbp)
	jmp	.L11
.L12:
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rsi
	imulq	-208(%rbp), %rsi
	movq	-200(%rbp), %rdx
	addq	%rsi, %rdx
	movq	$2000, (%rax,%rdx,8)
	addq	$1, -200(%rbp)
.L11:
	movq	-224(%rbp), %rax
	cmpq	%rax, -200(%rbp)
	jl	.L12
	addq	$1, -208(%rbp)
.L10:
	movq	-232(%rbp), %rax
	cmpq	%rax, -208(%rbp)
	jl	.L13
	movl	$2000, -236(%rbp)
	movq	$0, -192(%rbp)
	jmp	.L14
.L19:
	movl	$2000, -236(%rbp)
	movq	$0, -184(%rbp)
	jmp	.L15
.L18:
	movq	-88(%rbp), %rdx
	movq	%rbx, %rax
	imulq	-192(%rbp), %rax
	addq	%rax, %rdx
	movq	-184(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L16
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rsi
	imulq	-192(%rbp), %rsi
	movq	-184(%rbp), %rdx
	addq	%rsi, %rdx
	movq	$0, (%rax,%rdx,8)
	movl	$1, -236(%rbp)
	jmp	.L17
.L16:
	movl	-236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rax
	movq	%rsi, %rdi
	imulq	-192(%rbp), %rdi
	movq	-184(%rbp), %rsi
	addq	%rdi, %rsi
	movq	(%rax,%rsi,8), %rax
	movq	%rcx, %rsi
	shrq	$3, %rsi
	cmpq	%rax, %rdx
	cmovg	%rax, %rdx
	movq	-64(%rbp), %rax
	movq	%rsi, %rdi
	imulq	-192(%rbp), %rdi
	movq	-184(%rbp), %rsi
	addq	%rdi, %rsi
	movq	%rdx, (%rax,%rsi,8)
	addl	$1, -236(%rbp)
.L17:
	addq	$1, -184(%rbp)
.L15:
	movq	-224(%rbp), %rax
	cmpq	%rax, -184(%rbp)
	jl	.L18
	addq	$1, -192(%rbp)
.L14:
	movq	-232(%rbp), %rax
	cmpq	%rax, -192(%rbp)
	jl	.L19
	movq	$0, -176(%rbp)
	jmp	.L20
.L27:
	movq	$0, -168(%rbp)
	jmp	.L21
.L26:
	cmpq	$0, -168(%rbp)
	je	.L50
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-168(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	-64(%rbp), %rax
	imulq	%rdx, %rsi
	movq	-176(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rax
	movq	%rsi, %rdi
	imulq	-168(%rbp), %rdi
	movq	-176(%rbp), %rsi
	addq	%rdi, %rsi
	movq	(%rax,%rsi,8), %rax
	cmpq	%rax, %rdx
	jl	.L24
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rsi
	imulq	-168(%rbp), %rsi
	movq	-176(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	jmp	.L25
.L24:
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-168(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	-64(%rbp), %rax
	imulq	%rdx, %rsi
	movq	-176(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	addq	$1, %rax
.L25:
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rdx
	movq	%rsi, %rdi
	imulq	-168(%rbp), %rdi
	movq	-176(%rbp), %rsi
	addq	%rdi, %rsi
	movq	%rax, (%rdx,%rsi,8)
	jmp	.L23
.L50:
	nop
.L23:
	addq	$1, -168(%rbp)
.L21:
	movq	-232(%rbp), %rax
	cmpq	%rax, -168(%rbp)
	jl	.L26
	addq	$1, -176(%rbp)
.L20:
	movq	-224(%rbp), %rax
	cmpq	%rax, -176(%rbp)
	jl	.L27
	movq	-232(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -160(%rbp)
	jmp	.L28
.L35:
	movq	-224(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -152(%rbp)
	jmp	.L29
.L34:
	movq	-224(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -152(%rbp)
	je	.L51
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-152(%rbp), %rax
	leaq	1(%rax), %rsi
	movq	-64(%rbp), %rax
	imulq	-160(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rax
	movq	%rsi, %rdi
	imulq	-160(%rbp), %rdi
	movq	-152(%rbp), %rsi
	addq	%rdi, %rsi
	movq	(%rax,%rsi,8), %rax
	cmpq	%rax, %rdx
	jl	.L32
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rsi
	imulq	-160(%rbp), %rsi
	movq	-152(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	jmp	.L33
.L32:
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-152(%rbp), %rax
	leaq	1(%rax), %rsi
	movq	-64(%rbp), %rax
	imulq	-160(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	addq	$1, %rax
.L33:
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rdx
	movq	%rsi, %rdi
	imulq	-160(%rbp), %rdi
	movq	-152(%rbp), %rsi
	addq	%rdi, %rsi
	movq	%rax, (%rdx,%rsi,8)
	jmp	.L31
.L51:
	nop
.L31:
	subq	$1, -152(%rbp)
.L29:
	cmpq	$0, -152(%rbp)
	jns	.L34
	subq	$1, -160(%rbp)
.L28:
	cmpq	$0, -160(%rbp)
	jns	.L35
	movq	-224(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -144(%rbp)
	jmp	.L36
.L43:
	movq	-232(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -136(%rbp)
	jmp	.L37
.L42:
	movq	-232(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -136(%rbp)
	je	.L52
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-136(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-64(%rbp), %rax
	imulq	%rdx, %rsi
	movq	-144(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rax
	movq	%rsi, %rdi
	imulq	-136(%rbp), %rdi
	movq	-144(%rbp), %rsi
	addq	%rdi, %rsi
	movq	(%rax,%rsi,8), %rax
	cmpq	%rax, %rdx
	jl	.L40
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rsi
	imulq	-136(%rbp), %rsi
	movq	-144(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	jmp	.L41
.L40:
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-136(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-64(%rbp), %rax
	imulq	%rdx, %rsi
	movq	-144(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	addq	$1, %rax
.L41:
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rdx
	movq	%rsi, %rdi
	imulq	-136(%rbp), %rdi
	movq	-144(%rbp), %rsi
	addq	%rdi, %rsi
	movq	%rax, (%rdx,%rsi,8)
	jmp	.L39
.L52:
	nop
.L39:
	subq	$1, -136(%rbp)
.L37:
	cmpq	$0, -136(%rbp)
	jns	.L42
	subq	$1, -144(%rbp)
.L36:
	cmpq	$0, -144(%rbp)
	jns	.L43
	movq	$0, -128(%rbp)
	movq	$0, -120(%rbp)
	jmp	.L44
.L47:
	movq	$0, -112(%rbp)
	jmp	.L45
.L46:
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rsi
	imulq	-120(%rbp), %rsi
	movq	-112(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	-128(%rbp), %rdx
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, -128(%rbp)
	addq	$1, -112(%rbp)
.L45:
	movq	-224(%rbp), %rax
	cmpq	%rax, -112(%rbp)
	jl	.L46
	addq	$1, -120(%rbp)
.L44:
	movq	-232(%rbp), %rax
	cmpq	%rax, -120(%rbp)
	jl	.L47
	movq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-376(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%s"
.LC2:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$344, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -376(%rbp)
	leaq	-224(%rbp), %rdx
	leaq	-232(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-224(%rbp), %rsi
	movq	-232(%rbp), %rdi
	leaq	-1(%rsi), %rax
	movq	%rax, -104(%rbp)
	movq	%rsi, %rax
	movq	%rax, -352(%rbp)
	movq	$0, -344(%rbp)
	movq	%rsi, %rbx
	leaq	-1(%rdi), %rax
	movq	%rax, -96(%rbp)
	movq	%rsi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movq	%rdi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movq	%rsi, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movq	%rdi, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movq	-256(%rbp), %r9
	movq	-248(%rbp), %r10
	movq	%r10, %rdx
	movq	-272(%rbp), %r11
	movq	-264(%rbp), %r12
	imulq	%r11, %rdx
	movq	%r12, %rax
	imulq	%r9, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r9, %rax
	mulq	%r11
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movq	%rsi, %rdx
	movq	%rdi, %rax
	imulq	%rdx, %rax
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %ecx
	movl	$0, %edx
	divq	%rcx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -88(%rbp)
	movq	$0, -216(%rbp)
	jmp	.L5
.L6:
	movq	%rbx, %rdx
	imulq	-216(%rbp), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -216(%rbp)
.L5:
	movq	-232(%rbp), %rax
	cmpq	%rax, -216(%rbp)
	jl	.L6
	movq	-224(%rbp), %rdi
	movq	-232(%rbp), %r8
	leaq	-1(%rdi), %rax
	movq	%rax, -80(%rbp)
	movq	%rdi, %rax
	movq	%rax, -368(%rbp)
	movq	$0, -360(%rbp)
	movq	%rdi, %rax
	leaq	0(,%rax,8), %rcx
	leaq	-1(%r8), %rax
	movq	%rax, -72(%rbp)
	movq	%rdi, %rax
	movq	%rax, -288(%rbp)
	movq	$0, -280(%rbp)
	movq	%r8, %rax
	movq	%rax, -304(%rbp)
	movq	$0, -296(%rbp)
	movq	-288(%rbp), %r11
	movq	-280(%rbp), %r12
	movq	%r12, %rdx
	movq	-304(%rbp), %r14
	movq	-296(%rbp), %r15
	imulq	%r14, %rdx
	movq	%r15, %rax
	imulq	%r11, %rax
	leaq	(%rdx,%rax), %rsi
	movq	%r11, %rax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movq	%rdi, %rax
	movq	%rax, -320(%rbp)
	movq	$0, -312(%rbp)
	movq	%r8, %rax
	movq	%rax, -336(%rbp)
	movq	$0, -328(%rbp)
	movq	-320(%rbp), %r14
	movq	-312(%rbp), %r15
	movq	%r15, %rdx
	movq	-336(%rbp), %r9
	movq	-328(%rbp), %r10
	imulq	%r9, %rdx
	movq	%r10, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rsi
	movq	%r14, %rax
	mulq	%r9
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movq	%rdi, %rdx
	movq	%r8, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rsi
	andq	$-4096, %rsi
	movq	%rsp, %rdx
	subq	%rsi, %rdx
.L7:
	cmpq	%rdx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L9
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movq	$0, -208(%rbp)
	jmp	.L10
.L13:
	movq	$0, -200(%rbp)
	jmp	.L11
.L12:
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rsi
	imulq	-208(%rbp), %rsi
	movq	-200(%rbp), %rdx
	addq	%rsi, %rdx
	movq	$2000, (%rax,%rdx,8)
	addq	$1, -200(%rbp)
.L11:
	movq	-224(%rbp), %rax
	cmpq	%rax, -200(%rbp)
	jl	.L12
	addq	$1, -208(%rbp)
.L10:
	movq	-232(%rbp), %rax
	cmpq	%rax, -208(%rbp)
	jl	.L13
	movl	$2000, -236(%rbp)
	movq	$0, -192(%rbp)
	jmp	.L14
.L19:
	movl	$2000, -236(%rbp)
	movq	$0, -184(%rbp)
	jmp	.L15
.L18:
	movq	-88(%rbp), %rdx
	movq	%rbx, %rax
	imulq	-192(%rbp), %rax
	addq	%rax, %rdx
	movq	-184(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L16
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rsi
	imulq	-192(%rbp), %rsi
	movq	-184(%rbp), %rdx
	addq	%rsi, %rdx
	movq	$0, (%rax,%rdx,8)
	movl	$1, -236(%rbp)
	jmp	.L17
.L16:
	movl	-236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rax
	movq	%rsi, %rdi
	imulq	-192(%rbp), %rdi
	movq	-184(%rbp), %rsi
	addq	%rdi, %rsi
	movq	(%rax,%rsi,8), %rax
	movq	%rcx, %rsi
	shrq	$3, %rsi
	cmpq	%rax, %rdx
	cmovg	%rax, %rdx
	movq	-64(%rbp), %rax
	movq	%rsi, %rdi
	imulq	-192(%rbp), %rdi
	movq	-184(%rbp), %rsi
	addq	%rdi, %rsi
	movq	%rdx, (%rax,%rsi,8)
	addl	$1, -236(%rbp)
.L17:
	addq	$1, -184(%rbp)
.L15:
	movq	-224(%rbp), %rax
	cmpq	%rax, -184(%rbp)
	jl	.L18
	addq	$1, -192(%rbp)
.L14:
	movq	-232(%rbp), %rax
	cmpq	%rax, -192(%rbp)
	jl	.L19
	movq	$0, -176(%rbp)
	jmp	.L20
.L27:
	movq	$0, -168(%rbp)
	jmp	.L21
.L26:
	cmpq	$0, -168(%rbp)
	je	.L50
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-168(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	-64(%rbp), %rax
	imulq	%rdx, %rsi
	movq	-176(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rax
	movq	%rsi, %rdi
	imulq	-168(%rbp), %rdi
	movq	-176(%rbp), %rsi
	addq	%rdi, %rsi
	movq	(%rax,%rsi,8), %rax
	cmpq	%rax, %rdx
	jl	.L24
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rsi
	imulq	-168(%rbp), %rsi
	movq	-176(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	jmp	.L25
.L24:
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-168(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	-64(%rbp), %rax
	imulq	%rdx, %rsi
	movq	-176(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	addq	$1, %rax
.L25:
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rdx
	movq	%rsi, %rdi
	imulq	-168(%rbp), %rdi
	movq	-176(%rbp), %rsi
	addq	%rdi, %rsi
	movq	%rax, (%rdx,%rsi,8)
	jmp	.L23
.L50:
	nop
.L23:
	addq	$1, -168(%rbp)
.L21:
	movq	-232(%rbp), %rax
	cmpq	%rax, -168(%rbp)
	jl	.L26
	addq	$1, -176(%rbp)
.L20:
	movq	-224(%rbp), %rax
	cmpq	%rax, -176(%rbp)
	jl	.L27
	movq	-232(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -160(%rbp)
	jmp	.L28
.L35:
	movq	-224(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -152(%rbp)
	jmp	.L29
.L34:
	movq	-224(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -152(%rbp)
	je	.L51
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-152(%rbp), %rax
	leaq	1(%rax), %rsi
	movq	-64(%rbp), %rax
	imulq	-160(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rax
	movq	%rsi, %rdi
	imulq	-160(%rbp), %rdi
	movq	-152(%rbp), %rsi
	addq	%rdi, %rsi
	movq	(%rax,%rsi,8), %rax
	cmpq	%rax, %rdx
	jl	.L32
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rsi
	imulq	-160(%rbp), %rsi
	movq	-152(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	jmp	.L33
.L32:
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-152(%rbp), %rax
	leaq	1(%rax), %rsi
	movq	-64(%rbp), %rax
	imulq	-160(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	addq	$1, %rax
.L33:
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rdx
	movq	%rsi, %rdi
	imulq	-160(%rbp), %rdi
	movq	-152(%rbp), %rsi
	addq	%rdi, %rsi
	movq	%rax, (%rdx,%rsi,8)
	jmp	.L31
.L51:
	nop
.L31:
	subq	$1, -152(%rbp)
.L29:
	cmpq	$0, -152(%rbp)
	jns	.L34
	subq	$1, -160(%rbp)
.L28:
	cmpq	$0, -160(%rbp)
	jns	.L35
	movq	-224(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -144(%rbp)
	jmp	.L36
.L43:
	movq	-232(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -136(%rbp)
	jmp	.L37
.L42:
	movq	-232(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -136(%rbp)
	je	.L52
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-136(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-64(%rbp), %rax
	imulq	%rdx, %rsi
	movq	-144(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rax
	movq	%rsi, %rdi
	imulq	-136(%rbp), %rdi
	movq	-144(%rbp), %rsi
	addq	%rdi, %rsi
	movq	(%rax,%rsi,8), %rax
	cmpq	%rax, %rdx
	jl	.L40
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rsi
	imulq	-136(%rbp), %rsi
	movq	-144(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	jmp	.L41
.L40:
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-136(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-64(%rbp), %rax
	imulq	%rdx, %rsi
	movq	-144(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	addq	$1, %rax
.L41:
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movq	-64(%rbp), %rdx
	movq	%rsi, %rdi
	imulq	-136(%rbp), %rdi
	movq	-144(%rbp), %rsi
	addq	%rdi, %rsi
	movq	%rax, (%rdx,%rsi,8)
	jmp	.L39
.L52:
	nop
.L39:
	subq	$1, -136(%rbp)
.L37:
	cmpq	$0, -136(%rbp)
	jns	.L42
	subq	$1, -144(%rbp)
.L36:
	cmpq	$0, -144(%rbp)
	jns	.L43
	movq	$0, -128(%rbp)
	movq	$0, -120(%rbp)
	jmp	.L44
.L47:
	movq	$0, -112(%rbp)
	jmp	.L45
.L46:
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rsi
	imulq	-120(%rbp), %rsi
	movq	-112(%rbp), %rdx
	addq	%rsi, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	-128(%rbp), %rdx
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, -128(%rbp)
	addq	$1, -112(%rbp)
.L45:
	movq	-224(%rbp), %rax
	cmpq	%rax, -112(%rbp)
	jl	.L46
	addq	$1, -120(%rbp)
.L44:
	movq	-232(%rbp), %rax
	cmpq	%rax, -120(%rbp)
	jl	.L47
	movq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-376(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
