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

```c
#include <stdbool.h>
#include <stdio.h>
int main() {
    int h, w;
    bool isEnable = true;
    char f[51][51];
    scanf("%d%d", &h, &w);
    for (int i = 0; i < h; i++) {
        scanf("%s", &f[i]);
    }
    for (int y = 0; y < h; y++) {
        for (int x = 0; x < w; x++) {
            if (f[y][x] == '#') {
                if (y + 1 != h && f[y + 1][x] == '.' && y != 0 &&
                    f[y - 1][x] == '.' && x + 1 != w && f[y][x + 1] == '.' &&
                    x != 0 && f[y][x - 1] == '.')
                    isEnable = false;
            }
        }
    }
    if (isEnable)
        printf("Yes\n");
    else
        printf("No\n");
    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:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$2648, %rsp
	.cfi_def_cfa_offset 2688
	movq	%fs:40, %rax
	movq	%rax, 2632(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L15
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edi
	addq	$51, %r12
	cmpl	%ebp, %edi
	jg	.L3
	testl	%edi, %edi
	jle	.L15
	movslq	12(%rsp), %rcx
	xorl	%esi, %esi
	movl	$1, %r11d
	xorl	%r12d, %r12d
	movq	%rcx, %r9
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	51(%rbx), %r8
	leal	1(%rsi), %r10d
	testl	%r9d, %r9d
	jle	.L8
	leal	1(%rsi), %r10d
	cmpl	%r10d, %edi
	je	.L35
	movq	%rbx, %rdx
	xorl	%eax, %eax
	leaq	51(%rbx), %r8
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rax
	addq	$1, %rdx
	cmpq	%rcx, %rax
	je	.L8
.L6:
	cmpb	$35, (%rdx)
	jne	.L5
	cmpb	$46, (%r8,%rax)
	jne	.L5
	testl	%esi, %esi
	je	.L5
	cmpb	$46, -51(%rax,%rbx)
	jne	.L5
	leal	1(%rax), %ebp
	cmpl	%ebp, %r9d
	je	.L5
	cmpb	$46, 1(%rdx)
	jne	.L5
	testl	%eax, %eax
	je	.L5
	cmpb	$46, -1(%rdx)
	cmove	%r12d, %r11d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L37:
	leaq	51(%rbx), %r8
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%r10d, %esi
	movq	%r8, %rbx
	cmpl	%r10d, %edi
	jne	.L4
.L7:
	testb	%r11b, %r11b
	jne	.L15
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L14:
	movq	2632(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$2648, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L38:
	cmpl	%eax, %r9d
	jle	.L37
.L11:
	addq	$1, %rax
.L13:
	cmpb	$35, -1(%rbx,%rax)
	jne	.L38
	cmpl	%eax, %r9d
	jg	.L11
	jmp	.L7
.L15:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L14
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$2648, %rsp
	.cfi_def_cfa_offset 2688
	movq	%fs:40, %rax
	movq	%rax, 2632(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L15
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edi
	addq	$51, %r12
	cmpl	%ebp, %edi
	jg	.L3
	testl	%edi, %edi
	jle	.L15
	movslq	12(%rsp), %rcx
	xorl	%esi, %esi
	movl	$1, %r11d
	xorl	%r12d, %r12d
	movq	%rcx, %r9
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	51(%rbx), %r8
	leal	1(%rsi), %r10d
	testl	%r9d, %r9d
	jle	.L8
	leal	1(%rsi), %r10d
	cmpl	%r10d, %edi
	je	.L35
	movq	%rbx, %rdx
	xorl	%eax, %eax
	leaq	51(%rbx), %r8
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rax
	addq	$1, %rdx
	cmpq	%rcx, %rax
	je	.L8
.L6:
	cmpb	$35, (%rdx)
	jne	.L5
	cmpb	$46, (%r8,%rax)
	jne	.L5
	testl	%esi, %esi
	je	.L5
	cmpb	$46, -51(%rax,%rbx)
	jne	.L5
	leal	1(%rax), %ebp
	cmpl	%ebp, %r9d
	je	.L5
	cmpb	$46, 1(%rdx)
	jne	.L5
	testl	%eax, %eax
	je	.L5
	cmpb	$46, -1(%rdx)
	cmove	%r12d, %r11d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L37:
	leaq	51(%rbx), %r8
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%r10d, %esi
	movq	%r8, %rbx
	cmpl	%r10d, %edi
	jne	.L4
.L7:
	testb	%r11b, %r11b
	jne	.L15
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L14:
	movq	2632(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$2648, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L38:
	cmpl	%eax, %r9d
	jle	.L37
.L11:
	addq	$1, %rax
.L13:
	cmpb	$35, -1(%rbx,%rax)
	jne	.L38
	cmpl	%eax, %r9d
	jg	.L11
	jmp	.L7
.L15:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L14
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$2648, %rsp
	.cfi_def_cfa_offset 2688
	movq	%fs:40, %rax
	movq	%rax, 2632(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L15
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edi
	addq	$51, %r12
	cmpl	%ebp, %edi
	jg	.L3
	testl	%edi, %edi
	jle	.L15
	movslq	12(%rsp), %rcx
	xorl	%esi, %esi
	movl	$1, %r11d
	xorl	%r12d, %r12d
	movq	%rcx, %r9
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	51(%rbx), %r8
	leal	1(%rsi), %r10d
	testl	%r9d, %r9d
	jle	.L8
	leal	1(%rsi), %r10d
	cmpl	%r10d, %edi
	je	.L35
	movq	%rbx, %rdx
	xorl	%eax, %eax
	leaq	51(%rbx), %r8
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rax
	addq	$1, %rdx
	cmpq	%rcx, %rax
	je	.L8
.L6:
	cmpb	$35, (%rdx)
	jne	.L5
	cmpb	$46, (%r8,%rax)
	jne	.L5
	testl	%esi, %esi
	je	.L5
	cmpb	$46, -51(%rax,%rbx)
	jne	.L5
	leal	1(%rax), %ebp
	cmpl	%ebp, %r9d
	je	.L5
	cmpb	$46, 1(%rdx)
	jne	.L5
	testl	%eax, %eax
	je	.L5
	cmpb	$46, -1(%rdx)
	cmove	%r12d, %r11d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L37:
	leaq	51(%rbx), %r8
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%r10d, %esi
	movq	%r8, %rbx
	cmpl	%r10d, %edi
	jne	.L4
.L7:
	testb	%r11b, %r11b
	jne	.L15
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L14:
	movq	2632(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$2648, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L38:
	cmpl	%eax, %r9d
	jle	.L37
.L11:
	addq	$1, %rax
.L13:
	cmpb	$35, -1(%rbx,%rax)
	jne	.L38
	cmpl	%eax, %r9d
	jg	.L11
	jmp	.L7
.L15:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L14
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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 <stdbool.h>
#include <stdio.h>
int main() {
    int h, w;
    bool isEnable = true;
    char f[51][51];
    scanf("%d%d", &h, &w);
    for (int i = 0; i < h; i++) {
        scanf("%s", &f[i]);
    }
    for (int y = 0; y < h; y++) {
        for (int x = 0; x < w; x++) {
            if (f[y][x] == '#') {
                if (y + 1 != h && f[y + 1][x] == '.' && y != 0 &&
                    f[y - 1][x] == '.' && x + 1 != w && f[y][x + 1] == '.' &&
                    x != 0 && f[y][x - 1] == '.')
                    isEnable = false;
            }
        }
    }
    if (isEnable)
        printf("Yes\n");
    else
        printf("No\n");
    return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdbool.h>
#include <stdio.h>
int main() {
    int h, w;
    bool isEnable = true;
    char f[51][51];
    scanf("%d%d", &h, &w);
    for (int i = 0; i < h; i++) {
        scanf("%s", &f[i]);
    }
    for (int y = 0; y < h; y++) {
        for (int x = 0; x < w; x++) {
            if (f[y][x] == '#') {
                if (y + 1 != h && f[y + 1][x] == '.' && y != 0 &&
                    f[y - 1][x] == '.' && x + 1 != w && f[y][x + 1] == '.' &&
                    x != 0 && f[y][x - 1] == '.')
                    isEnable = false;
            }
        }
    }
    if (isEnable)
        printf("Yes\n");
    else
        printf("No\n");
    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 <stdbool.h>
#include <stdio.h>
int main() {
    int h, w;
    bool isEnable = true;
    char f[51][51];
    scanf("%d%d", &h, &w);
    for (int i = 0; i < h; i++) {
        scanf("%s", &f[i]);
    }
    for (int y = 0; y < h; y++) {
        for (int x = 0; x < w; x++) {
            if (f[y][x] == '#') {
                if (y + 1 != h && f[y + 1][x] == '.' && y != 0 &&
                    f[y - 1][x] == '.' && x + 1 != w && f[y][x + 1] == '.' &&
                    x != 0 && f[y][x - 1] == '.')
                    isEnable = false;
            }
        }
    }
    if (isEnable)
        printf("Yes\n");
    else
        printf("No\n");
    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:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$2648, %rsp
	.cfi_def_cfa_offset 2688
	movq	%fs:40, %rax
	movq	%rax, 2632(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L15
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edi
	addq	$51, %r12
	cmpl	%ebp, %edi
	jg	.L3
	testl	%edi, %edi
	jle	.L15
	movslq	12(%rsp), %rcx
	xorl	%esi, %esi
	movl	$1, %r11d
	xorl	%r12d, %r12d
	movq	%rcx, %r9
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	51(%rbx), %r8
	leal	1(%rsi), %r10d
	testl	%r9d, %r9d
	jle	.L8
	leal	1(%rsi), %r10d
	cmpl	%r10d, %edi
	je	.L35
	movq	%rbx, %rdx
	xorl	%eax, %eax
	leaq	51(%rbx), %r8
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rax
	addq	$1, %rdx
	cmpq	%rcx, %rax
	je	.L8
.L6:
	cmpb	$35, (%rdx)
	jne	.L5
	cmpb	$46, (%r8,%rax)
	jne	.L5
	testl	%esi, %esi
	je	.L5
	cmpb	$46, -51(%rax,%rbx)
	jne	.L5
	leal	1(%rax), %ebp
	cmpl	%ebp, %r9d
	je	.L5
	cmpb	$46, 1(%rdx)
	jne	.L5
	testl	%eax, %eax
	je	.L5
	cmpb	$46, -1(%rdx)
	cmove	%r12d, %r11d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L37:
	leaq	51(%rbx), %r8
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%r10d, %esi
	movq	%r8, %rbx
	cmpl	%r10d, %edi
	jne	.L4
.L7:
	testb	%r11b, %r11b
	jne	.L15
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L14:
	movq	2632(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$2648, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L38:
	cmpl	%eax, %r9d
	jle	.L37
.L11:
	addq	$1, %rax
.L13:
	cmpb	$35, -1(%rbx,%rax)
	jne	.L38
	cmpl	%eax, %r9d
	jg	.L11
	jmp	.L7
.L15:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L14
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$2648, %rsp
	.cfi_def_cfa_offset 2688
	movq	%fs:40, %rax
	movq	%rax, 2632(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L15
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edi
	addq	$51, %r12
	cmpl	%ebp, %edi
	jg	.L3
	testl	%edi, %edi
	jle	.L15
	movslq	12(%rsp), %rcx
	xorl	%esi, %esi
	movl	$1, %r11d
	xorl	%r12d, %r12d
	movq	%rcx, %r9
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	51(%rbx), %r8
	leal	1(%rsi), %r10d
	testl	%r9d, %r9d
	jle	.L8
	leal	1(%rsi), %r10d
	cmpl	%r10d, %edi
	je	.L35
	movq	%rbx, %rdx
	xorl	%eax, %eax
	leaq	51(%rbx), %r8
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rax
	addq	$1, %rdx
	cmpq	%rcx, %rax
	je	.L8
.L6:
	cmpb	$35, (%rdx)
	jne	.L5
	cmpb	$46, (%r8,%rax)
	jne	.L5
	testl	%esi, %esi
	je	.L5
	cmpb	$46, -51(%rax,%rbx)
	jne	.L5
	leal	1(%rax), %ebp
	cmpl	%ebp, %r9d
	je	.L5
	cmpb	$46, 1(%rdx)
	jne	.L5
	testl	%eax, %eax
	je	.L5
	cmpb	$46, -1(%rdx)
	cmove	%r12d, %r11d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L37:
	leaq	51(%rbx), %r8
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%r10d, %esi
	movq	%r8, %rbx
	cmpl	%r10d, %edi
	jne	.L4
.L7:
	testb	%r11b, %r11b
	jne	.L15
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L14:
	movq	2632(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$2648, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L38:
	cmpl	%eax, %r9d
	jle	.L37
.L11:
	addq	$1, %rax
.L13:
	cmpb	$35, -1(%rbx,%rax)
	jne	.L38
	cmpl	%eax, %r9d
	jg	.L11
	jmp	.L7
.L15:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L14
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```