Given the following C code and 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;
}```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

user
```assembly
	.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
```assembly
	.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:
```
```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;
}```
Given the following C 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;
}```

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.
Optimized Assembly Code:

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 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;
}```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

train
```assembly
	.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:
```