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 <stdlib.h>

int main()
{
	int i, j, H, W;
	char s[52][52] = {};
	scanf("%d %d", &H, &W);
	for (i = 1; i <= H; i++) scanf("%s", &(s[i][1]));
	
	int flag = 1;
	for (i = 1; i <= H; i++) {
		for (j = 1; j <= W; j++) {
			if (s[i][j] == '#' && s[i-1][j] != '#' && s[i+1][j] != '#' && s[i][j-1] != '#' && s[i][j+1] != '#') flag = 0;
		}
	}
	
	if (flag == 1) printf("Yes\n");
	else printf("No\n");
	fflush(stdout);
	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:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$2752, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-2720(%rbp), %rdx
	movl	$0, %eax
	movl	$338, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-2736(%rbp), %rdx
	leaq	-2740(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -2732(%rbp)
	jmp	.L2
.L3:
	leaq	-2720(%rbp), %rcx
	movl	-2732(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	$1, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2732(%rbp)
.L2:
	movl	-2740(%rbp), %eax
	cmpl	%eax, -2732(%rbp)
	jle	.L3
	movl	$1, -2724(%rbp)
	movl	$1, -2732(%rbp)
	jmp	.L4
.L8:
	movl	$1, -2728(%rbp)
	jmp	.L5
.L7:
	movl	-2728(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2732(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2720, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L6
	movl	-2732(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-2728(%rbp), %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	%rbp, %rax
	addq	%rcx, %rax
	subq	$2720, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L6
	movl	-2732(%rbp), %eax
	leal	1(%rax), %edx
	movl	-2728(%rbp), %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	%rbp, %rax
	addq	%rcx, %rax
	subq	$2720, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L6
	movl	-2728(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-2732(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2720, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L6
	movl	-2728(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rcx
	movl	-2732(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2720, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L6
	movl	$0, -2724(%rbp)
.L6:
	addl	$1, -2728(%rbp)
.L5:
	movl	-2736(%rbp), %eax
	cmpl	%eax, -2728(%rbp)
	jle	.L7
	addl	$1, -2732(%rbp)
.L4:
	movl	-2740(%rbp), %eax
	cmpl	%eax, -2732(%rbp)
	jle	.L8
	cmpl	$1, -2724(%rbp)
	jne	.L9
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.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	"%d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$338, %ecx
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$2736, %rsp
	.cfi_def_cfa_offset 2784
	movq	%fs:40, %rax
	movq	%rax, 2728(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	leaq	12(%rsp), %rdx
	movq	%r12, %rdi
	leaq	8(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L11
	leaq	69(%rsp), %r13
	movl	$1, %ebx
	leaq	.LC1(%rip), %r14
	movq	%r13, %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	addq	$52, %rbp
	cmpl	%ebx, %eax
	jge	.L3
	testl	%eax, %eax
	jle	.L11
	leal	-1(%rax), %r10d
	movl	12(%rsp), %r11d
	xorl	%r8d, %r8d
	addq	$52, %r12
	imulq	$-52, %r10, %r10
	movl	$1, %edi
	movl	$52, %ebx
	xorl	%ebp, %ebp
	leal	-1(%r11), %edx
	movq	$-52, %rsi
	addq	%r13, %rdx
	subq	$104, %r10
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %r9
	leaq	(%r12,%r8), %rax
	subq	%rsi, %r9
	testl	%r11d, %r11d
	jg	.L6
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rax
	cmpq	%rdx, %rax
	je	.L9
.L6:
	cmpb	$35, 1(%rax)
	jne	.L5
	leaq	(%rax,%rsi), %rcx
	cmpb	$35, 1(%rcx,%r8)
	je	.L5
	cmpb	$35, 1(%rcx,%r9)
	je	.L5
	cmpb	$35, (%rax)
	je	.L5
	cmpb	$35, 2(%rax)
	cmovne	%ebp, %edi
	addq	$1, %rax
	cmpq	%rdx, %rax
	jne	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	subq	$52, %rsi
	addq	$52, %rdx
	addq	$52, %r8
	cmpq	%r10, %rsi
	jne	.L4
	cmpl	$1, %edi
	je	.L11
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L10:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	2728(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$2736, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L10
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$338, %ecx
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$2736, %rsp
	.cfi_def_cfa_offset 2784
	movq	%fs:40, %rax
	movq	%rax, 2728(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	leaq	12(%rsp), %rdx
	movq	%r12, %rdi
	leaq	8(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L11
	leaq	69(%rsp), %r13
	movl	$1, %ebx
	leaq	.LC1(%rip), %r14
	movq	%r13, %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	addq	$52, %rbp
	cmpl	%ebx, %eax
	jge	.L3
	testl	%eax, %eax
	jle	.L11
	leal	-1(%rax), %r10d
	movl	12(%rsp), %r11d
	xorl	%r8d, %r8d
	addq	$52, %r12
	imulq	$-52, %r10, %r10
	movl	$1, %edi
	movl	$52, %ebx
	xorl	%ebp, %ebp
	leal	-1(%r11), %edx
	movq	$-52, %rsi
	addq	%r13, %rdx
	subq	$104, %r10
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %r9
	leaq	(%r12,%r8), %rax
	subq	%rsi, %r9
	testl	%r11d, %r11d
	jg	.L6
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rax
	cmpq	%rdx, %rax
	je	.L9
.L6:
	cmpb	$35, 1(%rax)
	jne	.L5
	leaq	(%rax,%rsi), %rcx
	cmpb	$35, 1(%rcx,%r8)
	je	.L5
	cmpb	$35, 1(%rcx,%r9)
	je	.L5
	cmpb	$35, (%rax)
	je	.L5
	cmpb	$35, 2(%rax)
	cmovne	%ebp, %edi
	addq	$1, %rax
	cmpq	%rdx, %rax
	jne	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	subq	$52, %rsi
	addq	$52, %rdx
	addq	$52, %r8
	cmpq	%r10, %rsi
	jne	.L4
	cmpl	$1, %edi
	je	.L11
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L10:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	2728(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$2736, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L10
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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:

#include <stdio.h>
#include <stdlib.h>

int main()
{
	int i, j, H, W;
	char s[52][52] = {};
	scanf("%d %d", &H, &W);
	for (i = 1; i <= H; i++) scanf("%s", &(s[i][1]));
	
	int flag = 1;
	for (i = 1; i <= H; i++) {
		for (j = 1; j <= W; j++) {
			if (s[i][j] == '#' && s[i-1][j] != '#' && s[i+1][j] != '#' && s[i][j-1] != '#' && s[i][j+1] != '#') flag = 0;
		}
	}
	
	if (flag == 1) printf("Yes\n");
	else printf("No\n");
	fflush(stdout);
	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>
#include <stdlib.h>

int main()
{
	int i, j, H, W;
	char s[52][52] = {};
	scanf("%d %d", &H, &W);
	for (i = 1; i <= H; i++) scanf("%s", &(s[i][1]));
	
	int flag = 1;
	for (i = 1; i <= H; i++) {
		for (j = 1; j <= W; j++) {
			if (s[i][j] == '#' && s[i-1][j] != '#' && s[i+1][j] != '#' && s[i][j-1] != '#' && s[i][j+1] != '#') flag = 0;
		}
	}
	
	if (flag == 1) printf("Yes\n");
	else printf("No\n");
	fflush(stdout);
	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:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$2752, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-2720(%rbp), %rdx
	movl	$0, %eax
	movl	$338, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-2736(%rbp), %rdx
	leaq	-2740(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -2732(%rbp)
	jmp	.L2
.L3:
	leaq	-2720(%rbp), %rcx
	movl	-2732(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	$1, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2732(%rbp)
.L2:
	movl	-2740(%rbp), %eax
	cmpl	%eax, -2732(%rbp)
	jle	.L3
	movl	$1, -2724(%rbp)
	movl	$1, -2732(%rbp)
	jmp	.L4
.L8:
	movl	$1, -2728(%rbp)
	jmp	.L5
.L7:
	movl	-2728(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2732(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2720, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L6
	movl	-2732(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-2728(%rbp), %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	%rbp, %rax
	addq	%rcx, %rax
	subq	$2720, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L6
	movl	-2732(%rbp), %eax
	leal	1(%rax), %edx
	movl	-2728(%rbp), %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	%rbp, %rax
	addq	%rcx, %rax
	subq	$2720, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L6
	movl	-2728(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-2732(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2720, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L6
	movl	-2728(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rcx
	movl	-2732(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2720, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L6
	movl	$0, -2724(%rbp)
.L6:
	addl	$1, -2728(%rbp)
.L5:
	movl	-2736(%rbp), %eax
	cmpl	%eax, -2728(%rbp)
	jle	.L7
	addl	$1, -2732(%rbp)
.L4:
	movl	-2740(%rbp), %eax
	cmpl	%eax, -2732(%rbp)
	jle	.L8
	cmpl	$1, -2724(%rbp)
	jne	.L9
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.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	"%d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.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
	subq	$2752, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-2720(%rbp), %rdx
	movl	$0, %eax
	movl	$338, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-2736(%rbp), %rdx
	leaq	-2740(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -2732(%rbp)
	jmp	.L2
.L3:
	leaq	-2720(%rbp), %rcx
	movl	-2732(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	$1, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2732(%rbp)
.L2:
	movl	-2740(%rbp), %eax
	cmpl	%eax, -2732(%rbp)
	jle	.L3
	movl	$1, -2724(%rbp)
	movl	$1, -2732(%rbp)
	jmp	.L4
.L8:
	movl	$1, -2728(%rbp)
	jmp	.L5
.L7:
	movl	-2728(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2732(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2720, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L6
	movl	-2732(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-2728(%rbp), %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	%rbp, %rax
	addq	%rcx, %rax
	subq	$2720, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L6
	movl	-2732(%rbp), %eax
	leal	1(%rax), %edx
	movl	-2728(%rbp), %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	%rbp, %rax
	addq	%rcx, %rax
	subq	$2720, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L6
	movl	-2728(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-2732(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2720, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L6
	movl	-2728(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rcx
	movl	-2732(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2720, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L6
	movl	$0, -2724(%rbp)
.L6:
	addl	$1, -2728(%rbp)
.L5:
	movl	-2736(%rbp), %eax
	cmpl	%eax, -2728(%rbp)
	jle	.L7
	addl	$1, -2732(%rbp)
.L4:
	movl	-2740(%rbp), %eax
	cmpl	%eax, -2732(%rbp)
	jle	.L8
	cmpl	$1, -2724(%rbp)
	jne	.L9
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.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:
