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>

int main(void){
        int h, w, fie[52][52], dx[] = {0, 1, 0, -1}, dy[] = {1, 0, -1, 0};
        for(int i=0; i<52*52; i++) fie[i/52][i%52] = 0;
        scanf("%d %d", &h, &w);

        for(int i=1; i<=h; i++){
                char s[w+1];
                scanf("%s", s);
                for(int j=1; j<=w; j++){
                        fie[i][j] = (s[j-1]=='#');
                }
        }

        int yes = 1;
        for(int i=1; i<=h; i++){
                for(int j=1; j<=w; j++){
                        if(!fie[i][j]) continue;
                        int can = 0;
                        for(int k=0; k<4; k++){
                                if(fie[i+dx[k]][j+dy[k]]) can = 1;
                        }
                        if(!can) yes = 0;
                }
        }

        if(yes) puts("Yes");
        else puts("No");
        return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$2744, %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
	movl	$0, -10912(%rbp)
	movl	$1, -10908(%rbp)
	movl	$0, -10904(%rbp)
	movl	$-1, -10900(%rbp)
	movl	$1, -10896(%rbp)
	movl	$0, -10892(%rbp)
	movl	$-1, -10888(%rbp)
	movl	$0, -10884(%rbp)
	movl	$0, -10960(%rbp)
	jmp	.L2
.L3:
	movl	-10960(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1321528399, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$4, %edx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	-10960(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1321528399, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$4, %edx
	movl	%eax, %esi
	sarl	$31, %esi
	subl	%esi, %edx
	imull	$52, %edx, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movslq	%edx, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	$0, -10880(%rbp,%rax,4)
	addl	$1, -10960(%rbp)
.L2:
	cmpl	$2703, -10960(%rbp)
	jle	.L3
	leaq	-10964(%rbp), %rdx
	leaq	-10968(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -10956(%rbp)
	jmp	.L4
.L10:
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	-10964(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -10928(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -10920(%rbp)
	movq	-10920(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -10952(%rbp)
	jmp	.L8
.L9:
	movl	-10952(%rbp), %eax
	subl	$1, %eax
	movq	-10920(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$35, %al
	sete	%al
	movzbl	%al, %ecx
	movl	-10952(%rbp), %eax
	movslq	%eax, %rsi
	movl	-10956(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	%ecx, -10880(%rbp,%rax,4)
	addl	$1, -10952(%rbp)
.L8:
	movl	-10964(%rbp), %eax
	cmpl	%eax, -10952(%rbp)
	jle	.L9
	movq	%rbx, %rsp
	addl	$1, -10956(%rbp)
.L4:
	movl	-10968(%rbp), %eax
	cmpl	%eax, -10956(%rbp)
	jle	.L10
	movl	$1, -10948(%rbp)
	movl	$1, -10944(%rbp)
	jmp	.L11
.L19:
	movl	$1, -10940(%rbp)
	jmp	.L12
.L18:
	movl	-10940(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10944(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	-10880(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L24
	movl	$0, -10936(%rbp)
	movl	$0, -10932(%rbp)
	jmp	.L15
.L17:
	movl	-10932(%rbp), %eax
	cltq
	movl	-10912(%rbp,%rax,4), %edx
	movl	-10944(%rbp), %eax
	addl	%eax, %edx
	movl	-10932(%rbp), %eax
	cltq
	movl	-10896(%rbp,%rax,4), %ecx
	movl	-10940(%rbp), %eax
	addl	%ecx, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	-10880(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L16
	movl	$1, -10936(%rbp)
.L16:
	addl	$1, -10932(%rbp)
.L15:
	cmpl	$3, -10932(%rbp)
	jle	.L17
	cmpl	$0, -10936(%rbp)
	jne	.L14
	movl	$0, -10948(%rbp)
	jmp	.L14
.L24:
	nop
.L14:
	addl	$1, -10940(%rbp)
.L12:
	movl	-10964(%rbp), %eax
	cmpl	%eax, -10940(%rbp)
	jle	.L18
	addl	$1, -10944(%rbp)
.L11:
	movl	-10968(%rbp), %eax
	cmpl	%eax, -10944(%rbp)
	jle	.L19
	cmpl	$0, -10948(%rbp)
	je	.L20
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L21
.L20:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L21:
	movl	$0, %eax
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"%d %d"
.LC1:
	.string	"%s"
.LC4:
	.string	"Yes"
.LC5:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$2664, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	xorl	%edx, %edx
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L2:
	movl	%edx, %eax
	movl	%edx, %ecx
	addl	$1, %edx
	imulq	$1321528399, %rax, %rax
	shrq	$36, %rax
	imull	$52, %eax, %esi
	cltq
	subl	%esi, %ecx
	leaq	(%rax,%rax,2), %rsi
	movslq	%ecx, %rcx
	leaq	(%rax,%rsi,4), %rax
	leaq	(%rcx,%rax,4), %rax
	movl	$0, -10880(%rbp,%rax,4)
	cmpl	$2704, %edx
	jne	.L2
	leaq	-10888(%rbp), %rsi
	leaq	-10884(%rbp), %rdx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	-10888(%rbp), %esi
	testl	%esi, %esi
	jle	.L21
	leaq	-10668(%rbp), %rbx
	movl	$1, %r12d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movl	-10884(%rbp), %eax
	movq	%rsp, %rcx
	movq	%rsp, %r13
	addl	$1, %eax
	cltq
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L5
.L40:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L40
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L6
	orq	$0, -8(%rsp,%rdx)
.L6:
	xorl	%eax, %eax
	movq	%rsp, %rsi
	movq	%r14, %rdi
	movq	%rsp, %r15
	call	__isoc99_scanf@PLT
	movl	-10884(%rbp), %eax
	pxor	%xmm2, %xmm2
	movdqa	.LC2(%rip), %xmm4
	movdqa	.LC3(%rip), %xmm3
	testl	%eax, %eax
	jle	.L12
	leal	-1(%rax), %edx
	cmpl	$14, %edx
	jbe	.L23
	movdqu	(%rsp), %xmm0
	pxor	%xmm1, %xmm1
	movl	%eax, %edx
	shrl	$4, %edx
	pcmpeqb	%xmm4, %xmm0
	pand	%xmm3, %xmm0
	movdqa	%xmm0, %xmm5
	punpckhbw	%xmm2, %xmm0
	punpcklbw	%xmm2, %xmm5
	movdqa	%xmm5, %xmm6
	punpckhwd	%xmm1, %xmm5
	movups	%xmm5, 16(%rbx)
	movdqa	%xmm0, %xmm5
	punpcklwd	%xmm1, %xmm6
	punpckhwd	%xmm1, %xmm0
	punpcklwd	%xmm1, %xmm5
	movups	%xmm6, (%rbx)
	movups	%xmm5, 32(%rbx)
	movups	%xmm0, 48(%rbx)
	cmpl	$1, %edx
	je	.L11
	movdqu	16(%rsp), %xmm0
	pcmpeqb	%xmm4, %xmm0
	pand	%xmm3, %xmm0
	movdqa	%xmm0, %xmm5
	punpckhbw	%xmm2, %xmm0
	punpcklbw	%xmm2, %xmm5
	movdqa	%xmm5, %xmm6
	punpckhwd	%xmm1, %xmm5
	movups	%xmm5, 80(%rbx)
	movdqa	%xmm0, %xmm5
	punpcklwd	%xmm1, %xmm6
	punpckhwd	%xmm1, %xmm0
	punpcklwd	%xmm1, %xmm5
	movups	%xmm6, 64(%rbx)
	movups	%xmm5, 96(%rbx)
	movups	%xmm0, 112(%rbx)
	cmpl	$2, %edx
	je	.L11
	movdqu	32(%rsp), %xmm0
	pcmpeqb	%xmm4, %xmm0
	pand	%xmm3, %xmm0
	movdqa	%xmm0, %xmm5
	punpckhbw	%xmm2, %xmm0
	punpcklbw	%xmm2, %xmm5
	movdqa	%xmm5, %xmm6
	punpckhwd	%xmm1, %xmm5
	movups	%xmm5, 144(%rbx)
	movdqa	%xmm0, %xmm5
	punpcklwd	%xmm1, %xmm6
	punpckhwd	%xmm1, %xmm0
	punpcklwd	%xmm1, %xmm5
	movups	%xmm6, 128(%rbx)
	movups	%xmm5, 160(%rbx)
	movups	%xmm0, 176(%rbx)
.L11:
	movl	%eax, %ecx
	andl	$-16, %ecx
	leal	1(%rcx), %edx
	cmpl	%eax, %ecx
	je	.L12
.L10:
	movslq	%r12d, %rdi
	leal	-1(%rdx), %esi
	movslq	%edx, %r8
	leaq	(%rdi,%rdi,2), %rcx
	movslq	%esi, %rsi
	leaq	(%rdi,%rcx,4), %rcx
	salq	$2, %rcx
	cmpb	$35, (%r15,%rsi)
	sete	%sil
	leaq	(%rcx,%r8), %r9
	movzbl	%sil, %esi
	movl	%esi, -10880(%rbp,%r9,4)
	leal	1(%rdx), %esi
	cmpl	%esi, %eax
	jl	.L12
	cmpb	$35, (%r15,%r8)
	movslq	%esi, %rsi
	sete	%r8b
	leaq	(%rcx,%rsi), %r9
	movzbl	%r8b, %r8d
	movl	%r8d, -10880(%rbp,%r9,4)
	leal	2(%rdx), %r8d
	cmpl	%r8d, %eax
	jl	.L12
	cmpb	$35, (%r15,%rsi)
	movslq	%r8d, %r8
	sete	%sil
	leaq	(%rcx,%r8), %r9
	movzbl	%sil, %esi
	movl	%esi, -10880(%rbp,%r9,4)
	leal	3(%rdx), %esi
	cmpl	%esi, %eax
	jl	.L12
	cmpb	$35, (%r15,%r8)
	movslq	%esi, %rsi
	sete	%r8b
	leaq	(%rcx,%rsi), %r9
	movzbl	%r8b, %r8d
	movl	%r8d, -10880(%rbp,%r9,4)
	leal	4(%rdx), %r8d
	cmpl	%r8d, %eax
	jl	.L12
	cmpb	$35, (%r15,%rsi)
	movslq	%r8d, %r8
	sete	%sil
	leaq	(%rcx,%r8), %r9
	movzbl	%sil, %esi
	movl	%esi, -10880(%rbp,%r9,4)
	leal	5(%rdx), %esi
	cmpl	%esi, %eax
	jl	.L12
	cmpb	$35, (%r15,%r8)
	movslq	%esi, %rsi
	sete	%r8b
	leaq	(%rcx,%rsi), %r9
	movzbl	%r8b, %r8d
	movl	%r8d, -10880(%rbp,%r9,4)
	leal	6(%rdx), %r8d
	cmpl	%r8d, %eax
	jl	.L12
	cmpb	$35, (%r15,%rsi)
	movslq	%r8d, %r8
	sete	%sil
	leaq	(%rcx,%r8), %r9
	movzbl	%sil, %esi
	movl	%esi, -10880(%rbp,%r9,4)
	leal	7(%rdx), %esi
	cmpl	%esi, %eax
	jl	.L12
	cmpb	$35, (%r15,%r8)
	movslq	%esi, %rsi
	sete	%r8b
	leaq	(%rcx,%rsi), %r9
	movzbl	%r8b, %r8d
	movl	%r8d, -10880(%rbp,%r9,4)
	leal	8(%rdx), %r8d
	cmpl	%r8d, %eax
	jl	.L12
	cmpb	$35, (%r15,%rsi)
	movslq	%r8d, %r8
	sete	%sil
	leaq	(%rcx,%r8), %r9
	movzbl	%sil, %esi
	movl	%esi, -10880(%rbp,%r9,4)
	leal	9(%rdx), %esi
	cmpl	%esi, %eax
	jl	.L12
	movslq	%esi, %rsi
	addq	%rsi, %rcx
	cmpb	$35, (%r15,%r8)
	sete	%r8b
	movzbl	%r8b, %r8d
	movl	%r8d, -10880(%rbp,%rcx,4)
	leal	10(%rdx), %ecx
	cmpl	%ecx, %eax
	jl	.L12
	movslq	%ecx, %r8
	leaq	(%rdi,%rdi,2), %rcx
	leaq	(%rdi,%rcx,4), %rcx
	salq	$2, %rcx
	cmpb	$35, (%r15,%rsi)
	sete	%sil
	leaq	(%rcx,%r8), %rdi
	movzbl	%sil, %esi
	movl	%esi, -10880(%rbp,%rdi,4)
	leal	11(%rdx), %esi
	cmpl	%esi, %eax
	jl	.L12
	cmpb	$35, (%r15,%r8)
	movslq	%esi, %rsi
	sete	%r8b
	leaq	(%rcx,%rsi), %rdi
	movzbl	%r8b, %r8d
	movl	%r8d, -10880(%rbp,%rdi,4)
	leal	12(%rdx), %edi
	cmpl	%edi, %eax
	jl	.L12
	cmpb	$35, (%r15,%rsi)
	movslq	%edi, %rdi
	sete	%sil
	leaq	(%rcx,%rdi), %r8
	movzbl	%sil, %esi
	movl	%esi, -10880(%rbp,%r8,4)
	leal	13(%rdx), %esi
	cmpl	%esi, %eax
	jl	.L12
	cmpb	$35, (%r15,%rdi)
	movslq	%esi, %rsi
	sete	%dil
	leaq	(%rcx,%rsi), %r8
	addl	$14, %edx
	movzbl	%dil, %edi
	movl	%edi, -10880(%rbp,%r8,4)
	cmpl	%edx, %eax
	jl	.L12
	movslq	%edx, %rdx
	xorl	%eax, %eax
	addq	%rdx, %rcx
	cmpb	$35, (%r15,%rsi)
	sete	%al
	movl	%eax, -10880(%rbp,%rcx,4)
	.p2align 4,,10
	.p2align 3
.L12:
	movl	-10888(%rbp), %eax
	addl	$1, %r12d
	movq	%r13, %rsp
	addq	$208, %rbx
	cmpl	%r12d, %eax
	jge	.L8
	testl	%eax, %eax
	jle	.L21
	leal	-1(%rax), %r11d
	movl	-10884(%rbp), %ebx
	xorl	%r14d, %r14d
	movl	$416, %edi
	imulq	$-208, %r11, %r11
	movq	$-208, %rsi
	movl	$1, %r9d
	movq	$-208, %r12
	leal	-1(%rbx), %edx
	leaq	-11088(%rbp), %r13
	leaq	-10668(%rbp,%rdx,4), %rdx
	subq	$416, %r11
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r12, %r10
	leaq	0(%r13,%rdi), %rax
	subq	%rsi, %r10
	testl	%ebx, %ebx
	jg	.L16
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L15:
	addq	$4, %rax
	cmpq	%rax, %rdx
	je	.L19
.L16:
	movl	4(%rax), %ecx
	testl	%ecx, %ecx
	je	.L15
	leaq	(%rax,%rsi), %rcx
	movl	4(%rcx,%rdi), %r15d
	testl	%r15d, %r15d
	jne	.L15
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jne	.L15
	movl	8(%rax), %r15d
	xorl	%r8d, %r8d
	testl	%r15d, %r15d
	setne	%r8b
	orl	4(%rcx,%r10), %r8d
	cmove	%r14d, %r9d
	addq	$4, %rax
	cmpq	%rax, %rdx
	jne	.L16
	.p2align 4,,10
	.p2align 3
.L19:
	subq	$208, %rsi
	addq	$208, %rdx
	addq	$208, %rdi
	cmpq	%r11, %rsi
	jne	.L14
	testl	%r9d, %r9d
	jne	.L21
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
.L20:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L41
	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
.L23:
	.cfi_restore_state
	movl	$1, %edx
	jmp	.L10
.L21:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L20
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.align 16
.LC3:
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.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	"%d %d"
.LC1:
	.string	"%s"
.LC4:
	.string	"Yes"
.LC5:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$2664, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	xorl	%edx, %edx
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L2:
	movl	%edx, %eax
	movl	%edx, %ecx
	addl	$1, %edx
	imulq	$1321528399, %rax, %rax
	shrq	$36, %rax
	imull	$52, %eax, %esi
	cltq
	subl	%esi, %ecx
	leaq	(%rax,%rax,2), %rsi
	movslq	%ecx, %rcx
	leaq	(%rax,%rsi,4), %rax
	leaq	(%rcx,%rax,4), %rax
	movl	$0, -10880(%rbp,%rax,4)
	cmpl	$2704, %edx
	jne	.L2
	leaq	-10888(%rbp), %rsi
	leaq	-10884(%rbp), %rdx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	-10888(%rbp), %esi
	testl	%esi, %esi
	jle	.L21
	leaq	-10668(%rbp), %rbx
	movl	$1, %r12d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movl	-10884(%rbp), %eax
	movq	%rsp, %rcx
	movq	%rsp, %r13
	addl	$1, %eax
	cltq
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L5
.L40:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L40
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L6
	orq	$0, -8(%rsp,%rdx)
.L6:
	xorl	%eax, %eax
	movq	%rsp, %rsi
	movq	%r14, %rdi
	movq	%rsp, %r15
	call	__isoc99_scanf@PLT
	movl	-10884(%rbp), %eax
	pxor	%xmm2, %xmm2
	movdqa	.LC2(%rip), %xmm4
	movdqa	.LC3(%rip), %xmm3
	testl	%eax, %eax
	jle	.L12
	leal	-1(%rax), %edx
	cmpl	$14, %edx
	jbe	.L23
	movdqu	(%rsp), %xmm0
	pxor	%xmm1, %xmm1
	movl	%eax, %edx
	shrl	$4, %edx
	pcmpeqb	%xmm4, %xmm0
	pand	%xmm3, %xmm0
	movdqa	%xmm0, %xmm5
	punpckhbw	%xmm2, %xmm0
	punpcklbw	%xmm2, %xmm5
	movdqa	%xmm5, %xmm6
	punpckhwd	%xmm1, %xmm5
	movups	%xmm5, 16(%rbx)
	movdqa	%xmm0, %xmm5
	punpcklwd	%xmm1, %xmm6
	punpckhwd	%xmm1, %xmm0
	punpcklwd	%xmm1, %xmm5
	movups	%xmm6, (%rbx)
	movups	%xmm5, 32(%rbx)
	movups	%xmm0, 48(%rbx)
	cmpl	$1, %edx
	je	.L11
	movdqu	16(%rsp), %xmm0
	pcmpeqb	%xmm4, %xmm0
	pand	%xmm3, %xmm0
	movdqa	%xmm0, %xmm5
	punpckhbw	%xmm2, %xmm0
	punpcklbw	%xmm2, %xmm5
	movdqa	%xmm5, %xmm6
	punpckhwd	%xmm1, %xmm5
	movups	%xmm5, 80(%rbx)
	movdqa	%xmm0, %xmm5
	punpcklwd	%xmm1, %xmm6
	punpckhwd	%xmm1, %xmm0
	punpcklwd	%xmm1, %xmm5
	movups	%xmm6, 64(%rbx)
	movups	%xmm5, 96(%rbx)
	movups	%xmm0, 112(%rbx)
	cmpl	$2, %edx
	je	.L11
	movdqu	32(%rsp), %xmm0
	pcmpeqb	%xmm4, %xmm0
	pand	%xmm3, %xmm0
	movdqa	%xmm0, %xmm5
	punpckhbw	%xmm2, %xmm0
	punpcklbw	%xmm2, %xmm5
	movdqa	%xmm5, %xmm6
	punpckhwd	%xmm1, %xmm5
	movups	%xmm5, 144(%rbx)
	movdqa	%xmm0, %xmm5
	punpcklwd	%xmm1, %xmm6
	punpckhwd	%xmm1, %xmm0
	punpcklwd	%xmm1, %xmm5
	movups	%xmm6, 128(%rbx)
	movups	%xmm5, 160(%rbx)
	movups	%xmm0, 176(%rbx)
.L11:
	movl	%eax, %ecx
	andl	$-16, %ecx
	leal	1(%rcx), %edx
	cmpl	%eax, %ecx
	je	.L12
.L10:
	movslq	%r12d, %rdi
	leal	-1(%rdx), %esi
	movslq	%edx, %r8
	leaq	(%rdi,%rdi,2), %rcx
	movslq	%esi, %rsi
	leaq	(%rdi,%rcx,4), %rcx
	salq	$2, %rcx
	cmpb	$35, (%r15,%rsi)
	sete	%sil
	leaq	(%rcx,%r8), %r9
	movzbl	%sil, %esi
	movl	%esi, -10880(%rbp,%r9,4)
	leal	1(%rdx), %esi
	cmpl	%esi, %eax
	jl	.L12
	cmpb	$35, (%r15,%r8)
	movslq	%esi, %rsi
	sete	%r8b
	leaq	(%rcx,%rsi), %r9
	movzbl	%r8b, %r8d
	movl	%r8d, -10880(%rbp,%r9,4)
	leal	2(%rdx), %r8d
	cmpl	%r8d, %eax
	jl	.L12
	cmpb	$35, (%r15,%rsi)
	movslq	%r8d, %r8
	sete	%sil
	leaq	(%rcx,%r8), %r9
	movzbl	%sil, %esi
	movl	%esi, -10880(%rbp,%r9,4)
	leal	3(%rdx), %esi
	cmpl	%esi, %eax
	jl	.L12
	cmpb	$35, (%r15,%r8)
	movslq	%esi, %rsi
	sete	%r8b
	leaq	(%rcx,%rsi), %r9
	movzbl	%r8b, %r8d
	movl	%r8d, -10880(%rbp,%r9,4)
	leal	4(%rdx), %r8d
	cmpl	%r8d, %eax
	jl	.L12
	cmpb	$35, (%r15,%rsi)
	movslq	%r8d, %r8
	sete	%sil
	leaq	(%rcx,%r8), %r9
	movzbl	%sil, %esi
	movl	%esi, -10880(%rbp,%r9,4)
	leal	5(%rdx), %esi
	cmpl	%esi, %eax
	jl	.L12
	cmpb	$35, (%r15,%r8)
	movslq	%esi, %rsi
	sete	%r8b
	leaq	(%rcx,%rsi), %r9
	movzbl	%r8b, %r8d
	movl	%r8d, -10880(%rbp,%r9,4)
	leal	6(%rdx), %r8d
	cmpl	%r8d, %eax
	jl	.L12
	cmpb	$35, (%r15,%rsi)
	movslq	%r8d, %r8
	sete	%sil
	leaq	(%rcx,%r8), %r9
	movzbl	%sil, %esi
	movl	%esi, -10880(%rbp,%r9,4)
	leal	7(%rdx), %esi
	cmpl	%esi, %eax
	jl	.L12
	cmpb	$35, (%r15,%r8)
	movslq	%esi, %rsi
	sete	%r8b
	leaq	(%rcx,%rsi), %r9
	movzbl	%r8b, %r8d
	movl	%r8d, -10880(%rbp,%r9,4)
	leal	8(%rdx), %r8d
	cmpl	%r8d, %eax
	jl	.L12
	cmpb	$35, (%r15,%rsi)
	movslq	%r8d, %r8
	sete	%sil
	leaq	(%rcx,%r8), %r9
	movzbl	%sil, %esi
	movl	%esi, -10880(%rbp,%r9,4)
	leal	9(%rdx), %esi
	cmpl	%esi, %eax
	jl	.L12
	movslq	%esi, %rsi
	addq	%rsi, %rcx
	cmpb	$35, (%r15,%r8)
	sete	%r8b
	movzbl	%r8b, %r8d
	movl	%r8d, -10880(%rbp,%rcx,4)
	leal	10(%rdx), %ecx
	cmpl	%ecx, %eax
	jl	.L12
	movslq	%ecx, %r8
	leaq	(%rdi,%rdi,2), %rcx
	leaq	(%rdi,%rcx,4), %rcx
	salq	$2, %rcx
	cmpb	$35, (%r15,%rsi)
	sete	%sil
	leaq	(%rcx,%r8), %rdi
	movzbl	%sil, %esi
	movl	%esi, -10880(%rbp,%rdi,4)
	leal	11(%rdx), %esi
	cmpl	%esi, %eax
	jl	.L12
	cmpb	$35, (%r15,%r8)
	movslq	%esi, %rsi
	sete	%r8b
	leaq	(%rcx,%rsi), %rdi
	movzbl	%r8b, %r8d
	movl	%r8d, -10880(%rbp,%rdi,4)
	leal	12(%rdx), %edi
	cmpl	%edi, %eax
	jl	.L12
	cmpb	$35, (%r15,%rsi)
	movslq	%edi, %rdi
	sete	%sil
	leaq	(%rcx,%rdi), %r8
	movzbl	%sil, %esi
	movl	%esi, -10880(%rbp,%r8,4)
	leal	13(%rdx), %esi
	cmpl	%esi, %eax
	jl	.L12
	cmpb	$35, (%r15,%rdi)
	movslq	%esi, %rsi
	sete	%dil
	leaq	(%rcx,%rsi), %r8
	addl	$14, %edx
	movzbl	%dil, %edi
	movl	%edi, -10880(%rbp,%r8,4)
	cmpl	%edx, %eax
	jl	.L12
	movslq	%edx, %rdx
	xorl	%eax, %eax
	addq	%rdx, %rcx
	cmpb	$35, (%r15,%rsi)
	sete	%al
	movl	%eax, -10880(%rbp,%rcx,4)
	.p2align 4,,10
	.p2align 3
.L12:
	movl	-10888(%rbp), %eax
	addl	$1, %r12d
	movq	%r13, %rsp
	addq	$208, %rbx
	cmpl	%r12d, %eax
	jge	.L8
	testl	%eax, %eax
	jle	.L21
	leal	-1(%rax), %r11d
	movl	-10884(%rbp), %ebx
	xorl	%r14d, %r14d
	movl	$416, %edi
	imulq	$-208, %r11, %r11
	movq	$-208, %rsi
	movl	$1, %r9d
	movq	$-208, %r12
	leal	-1(%rbx), %edx
	leaq	-11088(%rbp), %r13
	leaq	-10668(%rbp,%rdx,4), %rdx
	subq	$416, %r11
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r12, %r10
	leaq	0(%r13,%rdi), %rax
	subq	%rsi, %r10
	testl	%ebx, %ebx
	jg	.L16
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L15:
	addq	$4, %rax
	cmpq	%rax, %rdx
	je	.L19
.L16:
	movl	4(%rax), %ecx
	testl	%ecx, %ecx
	je	.L15
	leaq	(%rax,%rsi), %rcx
	movl	4(%rcx,%rdi), %r15d
	testl	%r15d, %r15d
	jne	.L15
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jne	.L15
	movl	8(%rax), %r15d
	xorl	%r8d, %r8d
	testl	%r15d, %r15d
	setne	%r8b
	orl	4(%rcx,%r10), %r8d
	cmove	%r14d, %r9d
	addq	$4, %rax
	cmpq	%rax, %rdx
	jne	.L16
	.p2align 4,,10
	.p2align 3
.L19:
	subq	$208, %rsi
	addq	$208, %rdx
	addq	$208, %rdi
	cmpq	%r11, %rsi
	jne	.L14
	testl	%r9d, %r9d
	jne	.L21
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
.L20:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L41
	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
.L23:
	.cfi_restore_state
	movl	$1, %edx
	jmp	.L10
.L21:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L20
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.align 16
.LC3:
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.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>

int main(void){
        int h, w, fie[52][52], dx[] = {0, 1, 0, -1}, dy[] = {1, 0, -1, 0};
        for(int i=0; i<52*52; i++) fie[i/52][i%52] = 0;
        scanf("%d %d", &h, &w);

        for(int i=1; i<=h; i++){
                char s[w+1];
                scanf("%s", s);
                for(int j=1; j<=w; j++){
                        fie[i][j] = (s[j-1]=='#');
                }
        }

        int yes = 1;
        for(int i=1; i<=h; i++){
                for(int j=1; j<=w; j++){
                        if(!fie[i][j]) continue;
                        int can = 0;
                        for(int k=0; k<4; k++){
                                if(fie[i+dx[k]][j+dy[k]]) can = 1;
                        }
                        if(!can) yes = 0;
                }
        }

        if(yes) puts("Yes");
        else puts("No");
        return 0;
}
3 5
.#.
###
.#.
 5 5
.#.#
.#.#.
-#.#
.#.#.
.#.#
 11 11
...#####...
.##.....##.
..##.##..#
..##.##..#
.........#
...###...#
.#########.
.#.#.#.#.#.
.#.#.#.#$
..##.#.##..
.##..#..##.
 3 6
.#.
###
.#.
 11 11
...#####...
.##.....##.
..##.##..#
..##.##..#
.........#
...###...#
.#########.
.#.#.#.#.#.
.$.#.#.#$
..##.#.##..
.##..#..##.
 5 6
.#.
###
.#.
 11 11
...#####...
.##.....##.
..##.##..#
..##.##..#
.........#
...###...#
.#########.
.#...#.###.
.$.#.#.#$
..##.#.##..
.##..#..##.
 6 6
.#.
###
.#.
 11 15
...#####...
.##.....##.
..##.##..#
..##.##..#
.........#
...###...#
.#########.
.#...#.###.
.$.#.#.#$
..##.#.##..
.##..#..##.
 6 6
#..
###
.#.

Yes
 Yes
 Yes
 Yes
 Yes
 Yes
 Yes
 Yes
 Yes
 Yes

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>

int main(void){
        int h, w, fie[52][52], dx[] = {0, 1, 0, -1}, dy[] = {1, 0, -1, 0};
        for(int i=0; i<52*52; i++) fie[i/52][i%52] = 0;
        scanf("%d %d", &h, &w);

        for(int i=1; i<=h; i++){
                char s[w+1];
                scanf("%s", s);
                for(int j=1; j<=w; j++){
                        fie[i][j] = (s[j-1]=='#');
                }
        }

        int yes = 1;
        for(int i=1; i<=h; i++){
                for(int j=1; j<=w; j++){
                        if(!fie[i][j]) continue;
                        int can = 0;
                        for(int k=0; k<4; k++){
                                if(fie[i+dx[k]][j+dy[k]]) can = 1;
                        }
                        if(!can) yes = 0;
                }
        }

        if(yes) puts("Yes");
        else puts("No");
        return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$2744, %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
	movl	$0, -10912(%rbp)
	movl	$1, -10908(%rbp)
	movl	$0, -10904(%rbp)
	movl	$-1, -10900(%rbp)
	movl	$1, -10896(%rbp)
	movl	$0, -10892(%rbp)
	movl	$-1, -10888(%rbp)
	movl	$0, -10884(%rbp)
	movl	$0, -10960(%rbp)
	jmp	.L2
.L3:
	movl	-10960(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1321528399, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$4, %edx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	-10960(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1321528399, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$4, %edx
	movl	%eax, %esi
	sarl	$31, %esi
	subl	%esi, %edx
	imull	$52, %edx, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movslq	%edx, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	$0, -10880(%rbp,%rax,4)
	addl	$1, -10960(%rbp)
.L2:
	cmpl	$2703, -10960(%rbp)
	jle	.L3
	leaq	-10964(%rbp), %rdx
	leaq	-10968(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -10956(%rbp)
	jmp	.L4
.L10:
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	-10964(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -10928(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -10920(%rbp)
	movq	-10920(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -10952(%rbp)
	jmp	.L8
.L9:
	movl	-10952(%rbp), %eax
	subl	$1, %eax
	movq	-10920(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$35, %al
	sete	%al
	movzbl	%al, %ecx
	movl	-10952(%rbp), %eax
	movslq	%eax, %rsi
	movl	-10956(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	%ecx, -10880(%rbp,%rax,4)
	addl	$1, -10952(%rbp)
.L8:
	movl	-10964(%rbp), %eax
	cmpl	%eax, -10952(%rbp)
	jle	.L9
	movq	%rbx, %rsp
	addl	$1, -10956(%rbp)
.L4:
	movl	-10968(%rbp), %eax
	cmpl	%eax, -10956(%rbp)
	jle	.L10
	movl	$1, -10948(%rbp)
	movl	$1, -10944(%rbp)
	jmp	.L11
.L19:
	movl	$1, -10940(%rbp)
	jmp	.L12
.L18:
	movl	-10940(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10944(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	-10880(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L24
	movl	$0, -10936(%rbp)
	movl	$0, -10932(%rbp)
	jmp	.L15
.L17:
	movl	-10932(%rbp), %eax
	cltq
	movl	-10912(%rbp,%rax,4), %edx
	movl	-10944(%rbp), %eax
	addl	%eax, %edx
	movl	-10932(%rbp), %eax
	cltq
	movl	-10896(%rbp,%rax,4), %ecx
	movl	-10940(%rbp), %eax
	addl	%ecx, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	-10880(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L16
	movl	$1, -10936(%rbp)
.L16:
	addl	$1, -10932(%rbp)
.L15:
	cmpl	$3, -10932(%rbp)
	jle	.L17
	cmpl	$0, -10936(%rbp)
	jne	.L14
	movl	$0, -10948(%rbp)
	jmp	.L14
.L24:
	nop
.L14:
	addl	$1, -10940(%rbp)
.L12:
	movl	-10964(%rbp), %eax
	cmpl	%eax, -10940(%rbp)
	jle	.L18
	addl	$1, -10944(%rbp)
.L11:
	movl	-10968(%rbp), %eax
	cmpl	%eax, -10944(%rbp)
	jle	.L19
	cmpl	$0, -10948(%rbp)
	je	.L20
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L21
.L20:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L21:
	movl	$0, %eax
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"%d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$2744, %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
	movl	$0, -10912(%rbp)
	movl	$1, -10908(%rbp)
	movl	$0, -10904(%rbp)
	movl	$-1, -10900(%rbp)
	movl	$1, -10896(%rbp)
	movl	$0, -10892(%rbp)
	movl	$-1, -10888(%rbp)
	movl	$0, -10884(%rbp)
	movl	$0, -10960(%rbp)
	jmp	.L2
.L3:
	movl	-10960(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1321528399, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$4, %edx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	-10960(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1321528399, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$4, %edx
	movl	%eax, %esi
	sarl	$31, %esi
	subl	%esi, %edx
	imull	$52, %edx, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movslq	%edx, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	$0, -10880(%rbp,%rax,4)
	addl	$1, -10960(%rbp)
.L2:
	cmpl	$2703, -10960(%rbp)
	jle	.L3
	leaq	-10964(%rbp), %rdx
	leaq	-10968(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -10956(%rbp)
	jmp	.L4
.L10:
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	-10964(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -10928(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -10920(%rbp)
	movq	-10920(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -10952(%rbp)
	jmp	.L8
.L9:
	movl	-10952(%rbp), %eax
	subl	$1, %eax
	movq	-10920(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$35, %al
	sete	%al
	movzbl	%al, %ecx
	movl	-10952(%rbp), %eax
	movslq	%eax, %rsi
	movl	-10956(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	%ecx, -10880(%rbp,%rax,4)
	addl	$1, -10952(%rbp)
.L8:
	movl	-10964(%rbp), %eax
	cmpl	%eax, -10952(%rbp)
	jle	.L9
	movq	%rbx, %rsp
	addl	$1, -10956(%rbp)
.L4:
	movl	-10968(%rbp), %eax
	cmpl	%eax, -10956(%rbp)
	jle	.L10
	movl	$1, -10948(%rbp)
	movl	$1, -10944(%rbp)
	jmp	.L11
.L19:
	movl	$1, -10940(%rbp)
	jmp	.L12
.L18:
	movl	-10940(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10944(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	-10880(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L24
	movl	$0, -10936(%rbp)
	movl	$0, -10932(%rbp)
	jmp	.L15
.L17:
	movl	-10932(%rbp), %eax
	cltq
	movl	-10912(%rbp,%rax,4), %edx
	movl	-10944(%rbp), %eax
	addl	%eax, %edx
	movl	-10932(%rbp), %eax
	cltq
	movl	-10896(%rbp,%rax,4), %ecx
	movl	-10940(%rbp), %eax
	addl	%ecx, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	-10880(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L16
	movl	$1, -10936(%rbp)
.L16:
	addl	$1, -10932(%rbp)
.L15:
	cmpl	$3, -10932(%rbp)
	jle	.L17
	cmpl	$0, -10936(%rbp)
	jne	.L14
	movl	$0, -10948(%rbp)
	jmp	.L14
.L24:
	nop
.L14:
	addl	$1, -10940(%rbp)
.L12:
	movl	-10964(%rbp), %eax
	cmpl	%eax, -10940(%rbp)
	jle	.L18
	addl	$1, -10944(%rbp)
.L11:
	movl	-10968(%rbp), %eax
	cmpl	%eax, -10944(%rbp)
	jle	.L19
	cmpl	$0, -10948(%rbp)
	je	.L20
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L21
.L20:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L21:
	movl	$0, %eax
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
