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

int main(void){
	int n, m, flag = 1;
	char a[51][51], b[51][51];

	scanf("%d%d", &n, &m);
	for(int i=0; i < n; i++)
		scanf("%s", a[i]);
	for(int i=0; i < m; i++)
		scanf("%s", b[i]);

	for(int i=0; i < n-m+1; i++) {
		for(int j=0; j < n-m+1; j++) {
			for(int k=0; k < m; k++) {
				for(int l=0; l < m; l++) {
					if(a[i+k][j+l] != b[k][l])
						flag = 0;
				}
			}
			if(flag) {
				printf("Yes");
				return 0;
			}
			flag = 1;
		}
	}
	printf("No");

	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:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$1160, %rsp
	.cfi_def_cfa_offset 5312
	leaq	.LC0(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 5240(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L6
.L5:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$51, %rbp
	cmpl	%ebx, 8(%rsp)
	jg	.L5
.L6:
	movl	12(%rsp), %ebx
	xorl	%ebp, %ebp
	leaq	2624(%rsp), %r12
	leaq	.LC1(%rip), %r13
	testl	%ebx, %ebx
	jle	.L4
.L7:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	addq	$51, %r12
	cmpl	%ebp, %ebx
	jg	.L7
.L4:
	movl	8(%rsp), %r12d
	subl	%ebx, %r12d
	js	.L8
	leal	-1(%rbx), %r8d
	xorl	%r14d, %r14d
	leaq	16(%rsp), %r15
	xorl	%r9d, %r9d
	leaq	(%r8,%r8,2), %rax
	leaq	2624(%rsp), %r13
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	2675(%rsp,%rax), %r10
.L9:
	leaq	(%r14,%r14,2), %rax
	xorl	%r11d, %r11d
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	(%r15,%rax), %rbp
	.p2align 4,,10
	.p2align 3
.L18:
	testl	%ebx, %ebx
	jle	.L17
	leaq	(%r11,%rbp), %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%eax, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L20:
	movq	%rcx, %rax
.L11:
	movzbl	(%rsi,%rax), %ecx
	cmpb	%cl, (%rdi,%rax)
	leaq	1(%rax), %rcx
	cmovne	%r9d, %edx
	cmpq	%r8, %rax
	jne	.L20
	addq	$51, %rsi
	addq	$51, %rdi
	cmpq	%r10, %rsi
	jne	.L12
	testl	%edx, %edx
	jne	.L17
	addq	$1, %r11
	cmpl	%r11d, %r12d
	jge	.L18
	addq	$1, %r14
	cmpl	%r14d, %r12d
	jge	.L9
.L8:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
.L17:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L14:
	movq	5240(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$5256, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$1160, %rsp
	.cfi_def_cfa_offset 5312
	leaq	.LC0(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 5240(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L6
.L5:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$51, %rbp
	cmpl	%ebx, 8(%rsp)
	jg	.L5
.L6:
	movl	12(%rsp), %ebx
	xorl	%ebp, %ebp
	leaq	2624(%rsp), %r12
	leaq	.LC1(%rip), %r13
	testl	%ebx, %ebx
	jle	.L4
.L7:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	addq	$51, %r12
	cmpl	%ebp, %ebx
	jg	.L7
.L4:
	movl	8(%rsp), %r12d
	subl	%ebx, %r12d
	js	.L8
	leal	-1(%rbx), %r8d
	xorl	%r14d, %r14d
	leaq	16(%rsp), %r15
	xorl	%r9d, %r9d
	leaq	(%r8,%r8,2), %rax
	leaq	2624(%rsp), %r13
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	2675(%rsp,%rax), %r10
.L9:
	leaq	(%r14,%r14,2), %rax
	xorl	%r11d, %r11d
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	(%r15,%rax), %rbp
	.p2align 4,,10
	.p2align 3
.L18:
	testl	%ebx, %ebx
	jle	.L17
	leaq	(%r11,%rbp), %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%eax, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L20:
	movq	%rcx, %rax
.L11:
	movzbl	(%rsi,%rax), %ecx
	cmpb	%cl, (%rdi,%rax)
	leaq	1(%rax), %rcx
	cmovne	%r9d, %edx
	cmpq	%r8, %rax
	jne	.L20
	addq	$51, %rsi
	addq	$51, %rdi
	cmpq	%r10, %rsi
	jne	.L12
	testl	%edx, %edx
	jne	.L17
	addq	$1, %r11
	cmpl	%r11d, %r12d
	jge	.L18
	addq	$1, %r14
	cmpl	%r14d, %r12d
	jge	.L9
.L8:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
.L17:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L14:
	movq	5240(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$5256, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$1160, %rsp
	.cfi_def_cfa_offset 5312
	leaq	.LC0(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 5240(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L6
.L5:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$51, %rbp
	cmpl	%ebx, 8(%rsp)
	jg	.L5
.L6:
	movl	12(%rsp), %ebx
	xorl	%ebp, %ebp
	leaq	2624(%rsp), %r12
	leaq	.LC1(%rip), %r13
	testl	%ebx, %ebx
	jle	.L4
.L7:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	addq	$51, %r12
	cmpl	%ebp, %ebx
	jg	.L7
.L4:
	movl	8(%rsp), %r12d
	subl	%ebx, %r12d
	js	.L8
	leal	-1(%rbx), %r8d
	xorl	%r14d, %r14d
	leaq	16(%rsp), %r15
	xorl	%r9d, %r9d
	leaq	(%r8,%r8,2), %rax
	leaq	2624(%rsp), %r13
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	2675(%rsp,%rax), %r10
.L9:
	leaq	(%r14,%r14,2), %rax
	xorl	%r11d, %r11d
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	(%r15,%rax), %rbp
	.p2align 4,,10
	.p2align 3
.L18:
	testl	%ebx, %ebx
	jle	.L17
	leaq	(%r11,%rbp), %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%eax, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L20:
	movq	%rcx, %rax
.L11:
	movzbl	(%rsi,%rax), %ecx
	cmpb	%cl, (%rdi,%rax)
	leaq	1(%rax), %rcx
	cmovne	%r9d, %edx
	cmpq	%r8, %rax
	jne	.L20
	addq	$51, %rsi
	addq	$51, %rdi
	cmpq	%r10, %rsi
	jne	.L12
	testl	%edx, %edx
	jne	.L17
	addq	$1, %r11
	cmpl	%r11d, %r12d
	jge	.L18
	addq	$1, %r14
	cmpl	%r14d, %r12d
	jge	.L9
.L8:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
.L17:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L14:
	movq	5240(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$5256, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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 <string.h>

int main(void){
	int n, m, flag = 1;
	char a[51][51], b[51][51];

	scanf("%d%d", &n, &m);
	for(int i=0; i < n; i++)
		scanf("%s", a[i]);
	for(int i=0; i < m; i++)
		scanf("%s", b[i]);

	for(int i=0; i < n-m+1; i++) {
		for(int j=0; j < n-m+1; j++) {
			for(int k=0; k < m; k++) {
				for(int l=0; l < m; l++) {
					if(a[i+k][j+l] != b[k][l])
						flag = 0;
				}
			}
			if(flag) {
				printf("Yes");
				return 0;
			}
			flag = 1;
		}
	}
	printf("No");

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

int main(void){
	int n, m, flag = 1;
	char a[51][51], b[51][51];

	scanf("%d%d", &n, &m);
	for(int i=0; i < n; i++)
		scanf("%s", a[i]);
	for(int i=0; i < m; i++)
		scanf("%s", b[i]);

	for(int i=0; i < n-m+1; i++) {
		for(int j=0; j < n-m+1; j++) {
			for(int k=0; k < m; k++) {
				for(int l=0; l < m; l++) {
					if(a[i+k][j+l] != b[k][l])
						flag = 0;
				}
			}
			if(flag) {
				printf("Yes");
				return 0;
			}
			flag = 1;
		}
	}
	printf("No");

	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 2
#.#
.#.
#-#
#.
.#
 3 2
-#
.#.
.#
.
.#
 4 0
....
....
....
....
 3 2
#.#
.".
#-#
#.
.#
 4 1
..-.
....
....
....
 3 2
-#
.#.
#.
.
.#
 3 2
#.#
.".
#-#
$.
.#
 0 1
..-.
....
....
....
 0 2
#.#
.".
#-#
$.
.#
 0 1
..-.
....
....
-...

Yes No Yes No No No No No No No
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 <string.h>

int main(void){
	int n, m, flag = 1;
	char a[51][51], b[51][51];

	scanf("%d%d", &n, &m);
	for(int i=0; i < n; i++)
		scanf("%s", a[i]);
	for(int i=0; i < m; i++)
		scanf("%s", b[i]);

	for(int i=0; i < n-m+1; i++) {
		for(int j=0; j < n-m+1; j++) {
			for(int k=0; k < m; k++) {
				for(int l=0; l < m; l++) {
					if(a[i+k][j+l] != b[k][l])
						flag = 0;
				}
			}
			if(flag) {
				printf("Yes");
				return 0;
			}
			flag = 1;
		}
	}
	printf("No");

	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:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$1160, %rsp
	.cfi_def_cfa_offset 5312
	leaq	.LC0(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 5240(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L6
.L5:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$51, %rbp
	cmpl	%ebx, 8(%rsp)
	jg	.L5
.L6:
	movl	12(%rsp), %ebx
	xorl	%ebp, %ebp
	leaq	2624(%rsp), %r12
	leaq	.LC1(%rip), %r13
	testl	%ebx, %ebx
	jle	.L4
.L7:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	addq	$51, %r12
	cmpl	%ebp, %ebx
	jg	.L7
.L4:
	movl	8(%rsp), %r12d
	subl	%ebx, %r12d
	js	.L8
	leal	-1(%rbx), %r8d
	xorl	%r14d, %r14d
	leaq	16(%rsp), %r15
	xorl	%r9d, %r9d
	leaq	(%r8,%r8,2), %rax
	leaq	2624(%rsp), %r13
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	2675(%rsp,%rax), %r10
.L9:
	leaq	(%r14,%r14,2), %rax
	xorl	%r11d, %r11d
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	(%r15,%rax), %rbp
	.p2align 4,,10
	.p2align 3
.L18:
	testl	%ebx, %ebx
	jle	.L17
	leaq	(%r11,%rbp), %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%eax, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L20:
	movq	%rcx, %rax
.L11:
	movzbl	(%rsi,%rax), %ecx
	cmpb	%cl, (%rdi,%rax)
	leaq	1(%rax), %rcx
	cmovne	%r9d, %edx
	cmpq	%r8, %rax
	jne	.L20
	addq	$51, %rsi
	addq	$51, %rdi
	cmpq	%r10, %rsi
	jne	.L12
	testl	%edx, %edx
	jne	.L17
	addq	$1, %r11
	cmpl	%r11d, %r12d
	jge	.L18
	addq	$1, %r14
	cmpl	%r14d, %r12d
	jge	.L9
.L8:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
.L17:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L14:
	movq	5240(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$5256, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$1160, %rsp
	.cfi_def_cfa_offset 5312
	leaq	.LC0(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 5240(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L6
.L5:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$51, %rbp
	cmpl	%ebx, 8(%rsp)
	jg	.L5
.L6:
	movl	12(%rsp), %ebx
	xorl	%ebp, %ebp
	leaq	2624(%rsp), %r12
	leaq	.LC1(%rip), %r13
	testl	%ebx, %ebx
	jle	.L4
.L7:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	addq	$51, %r12
	cmpl	%ebp, %ebx
	jg	.L7
.L4:
	movl	8(%rsp), %r12d
	subl	%ebx, %r12d
	js	.L8
	leal	-1(%rbx), %r8d
	xorl	%r14d, %r14d
	leaq	16(%rsp), %r15
	xorl	%r9d, %r9d
	leaq	(%r8,%r8,2), %rax
	leaq	2624(%rsp), %r13
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	2675(%rsp,%rax), %r10
.L9:
	leaq	(%r14,%r14,2), %rax
	xorl	%r11d, %r11d
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	(%r15,%rax), %rbp
	.p2align 4,,10
	.p2align 3
.L18:
	testl	%ebx, %ebx
	jle	.L17
	leaq	(%r11,%rbp), %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%eax, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L20:
	movq	%rcx, %rax
.L11:
	movzbl	(%rsi,%rax), %ecx
	cmpb	%cl, (%rdi,%rax)
	leaq	1(%rax), %rcx
	cmovne	%r9d, %edx
	cmpq	%r8, %rax
	jne	.L20
	addq	$51, %rsi
	addq	$51, %rdi
	cmpq	%r10, %rsi
	jne	.L12
	testl	%edx, %edx
	jne	.L17
	addq	$1, %r11
	cmpl	%r11d, %r12d
	jge	.L18
	addq	$1, %r14
	cmpl	%r14d, %r12d
	jge	.L9
.L8:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
.L17:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L14:
	movq	5240(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$5256, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
```