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

int  main()
{
  int n,m;
  char a[51][51]={},b[51][51]={};
  int i,j;
  int tmp=0;
  
  scanf("%d%d",&n,&m);
  
  for(i=0;i<n;i++)
  {
    scanf("%s",&a[i]);
  }
  
  for(i=0;i<m;i++)
  {
    scanf("%s",&b[i]);
  }
  
  for(i=0;i<n;i++)
  {
    for(j=0;j<m;j++)
    {
      if(strstr(a[i],b[j])==NULL)
      {
        printf("No\n");
        return 0;
      }
        else
        {
          tmp=1;
        }
    }
  }

  
  if(tmp==1)
  {
    printf("Yes\n");
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.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
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$1168, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-5232(%rbp), %rdx
	movl	$0, %eax
	movl	$325, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movb	%al, (%rdx)
	addq	$1, %rdx
	leaq	-2624(%rbp), %rdx
	movl	$0, %eax
	movl	$325, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movb	%al, (%rdx)
	addq	$1, %rdx
	movl	$0, -5236(%rbp)
	leaq	-5248(%rbp), %rdx
	leaq	-5252(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -5244(%rbp)
	jmp	.L2
.L3:
	leaq	-5232(%rbp), %rcx
	movl	-5244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -5244(%rbp)
.L2:
	movl	-5252(%rbp), %eax
	cmpl	%eax, -5244(%rbp)
	jl	.L3
	movl	$0, -5244(%rbp)
	jmp	.L4
.L5:
	leaq	-2624(%rbp), %rcx
	movl	-5244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -5244(%rbp)
.L4:
	movl	-5248(%rbp), %eax
	cmpl	%eax, -5244(%rbp)
	jl	.L5
	movl	$0, -5244(%rbp)
	jmp	.L6
.L11:
	movl	$0, -5240(%rbp)
	jmp	.L7
.L10:
	leaq	-2624(%rbp), %rcx
	movl	-5240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-5232(%rbp), %rsi
	movl	-5244(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rcx
	salq	$4, %rcx
	addq	%rcx, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strstr@PLT
	testq	%rax, %rax
	jne	.L8
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L13
.L8:
	movl	$1, -5236(%rbp)
	addl	$1, -5240(%rbp)
.L7:
	movl	-5248(%rbp), %eax
	cmpl	%eax, -5240(%rbp)
	jl	.L10
	addl	$1, -5244(%rbp)
.L6:
	movl	-5252(%rbp), %eax
	cmpl	%eax, -5244(%rbp)
	jl	.L11
	cmpl	$1, -5236(%rbp)
	jne	.L12
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L12:
	movl	$0, %eax
.L13:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.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"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.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
	movl	$325, %ecx
	movq	%fs:40, %rax
	movq	%rax, 5240(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rdx
	movq	%rbp, %rdi
	leaq	2624(%rsp), %r14
	leaq	8(%rsp), %rsi
	rep stosq
	movl	$325, %ecx
	movb	$0, (%rdi)
	movq	%r14, %rdi
	rep stosq
	movb	$0, (%rdi)
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movq	%rbp, %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$51, %r12
	cmpl	%ebx, 8(%rsp)
	jg	.L3
	movl	12(%rsp), %r12d
	testl	%r12d, %r12d
	jle	.L4
.L13:
	movq	%r14, %r13
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r12d
	addq	$51, %r13
	cmpl	%ebx, %r12d
	jg	.L5
.L4:
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L6
	subl	$1, %eax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	67(%rsp,%rax), %r15
	leal	-1(%r12), %eax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	2675(%rsp,%rax), %r13
	xorl	%eax, %eax
.L7:
	movq	%r14, %rbx
	testl	%r12d, %r12d
	jg	.L9
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$51, %rbx
	cmpq	%rbx, %r13
	je	.L23
.L9:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	strstr@PLT
	testq	%rax, %rax
	jne	.L8
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L6:
	movq	5240(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	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
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	movl	$1, %eax
.L12:
	addq	$51, %rbp
	cmpq	%r15, %rbp
	jne	.L7
	subl	$1, %eax
	jne	.L6
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L6
.L2:
	cmpl	$0, 12(%rsp)
	leaq	.LC1(%rip), %r15
	jg	.L13
	jmp	.L6
.L24:
	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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.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
	movl	$325, %ecx
	movq	%fs:40, %rax
	movq	%rax, 5240(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rdx
	movq	%rbp, %rdi
	leaq	2624(%rsp), %r14
	leaq	8(%rsp), %rsi
	rep stosq
	movl	$325, %ecx
	movb	$0, (%rdi)
	movq	%r14, %rdi
	rep stosq
	movb	$0, (%rdi)
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movq	%rbp, %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$51, %r12
	cmpl	%ebx, 8(%rsp)
	jg	.L3
	movl	12(%rsp), %r12d
	testl	%r12d, %r12d
	jle	.L4
.L13:
	movq	%r14, %r13
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r12d
	addq	$51, %r13
	cmpl	%ebx, %r12d
	jg	.L5
.L4:
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L6
	subl	$1, %eax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	67(%rsp,%rax), %r15
	leal	-1(%r12), %eax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	2675(%rsp,%rax), %r13
	xorl	%eax, %eax
.L7:
	movq	%r14, %rbx
	testl	%r12d, %r12d
	jg	.L9
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$51, %rbx
	cmpq	%rbx, %r13
	je	.L23
.L9:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	strstr@PLT
	testq	%rax, %rax
	jne	.L8
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L6:
	movq	5240(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	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
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	movl	$1, %eax
.L12:
	addq	$51, %rbp
	cmpq	%r15, %rbp
	jne	.L7
	subl	$1, %eax
	jne	.L6
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L6
.L2:
	cmpl	$0, 12(%rsp)
	leaq	.LC1(%rip), %r15
	jg	.L13
	jmp	.L6
.L24:
	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:

#include<stdio.h>
#include<string.h>

int  main()
{
  int n,m;
  char a[51][51]={},b[51][51]={};
  int i,j;
  int tmp=0;
  
  scanf("%d%d",&n,&m);
  
  for(i=0;i<n;i++)
  {
    scanf("%s",&a[i]);
  }
  
  for(i=0;i<m;i++)
  {
    scanf("%s",&b[i]);
  }
  
  for(i=0;i<n;i++)
  {
    for(j=0;j<m;j++)
    {
      if(strstr(a[i],b[j])==NULL)
      {
        printf("No\n");
        return 0;
      }
        else
        {
          tmp=1;
        }
    }
  }

  
  if(tmp==1)
  {
    printf("Yes\n");
  }
  return 0;
}
3 2
#.#
.#.
#-#
#.
.#
 3 2
-#
.#.
.#
.
.#
 4 0
....
....
....
....
 3 2
#.#
.".
#-#
#.
.#
 4 1
..-.
....
....
....
 3 2
-#
.#.
#.
.
.#
 3 2
#.#
.".
#-#
$.
.#
 0 1
..-.
....
....
....
 0 2
#.#
.".
#-#
$.
.#
 0 1
..-.
....
....
-...

No
 No
 No
 Yes
 No
 No

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

int  main()
{
  int n,m;
  char a[51][51]={},b[51][51]={};
  int i,j;
  int tmp=0;
  
  scanf("%d%d",&n,&m);
  
  for(i=0;i<n;i++)
  {
    scanf("%s",&a[i]);
  }
  
  for(i=0;i<m;i++)
  {
    scanf("%s",&b[i]);
  }
  
  for(i=0;i<n;i++)
  {
    for(j=0;j<m;j++)
    {
      if(strstr(a[i],b[j])==NULL)
      {
        printf("No\n");
        return 0;
      }
        else
        {
          tmp=1;
        }
    }
  }

  
  if(tmp==1)
  {
    printf("Yes\n");
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.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
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$1168, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-5232(%rbp), %rdx
	movl	$0, %eax
	movl	$325, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movb	%al, (%rdx)
	addq	$1, %rdx
	leaq	-2624(%rbp), %rdx
	movl	$0, %eax
	movl	$325, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movb	%al, (%rdx)
	addq	$1, %rdx
	movl	$0, -5236(%rbp)
	leaq	-5248(%rbp), %rdx
	leaq	-5252(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -5244(%rbp)
	jmp	.L2
.L3:
	leaq	-5232(%rbp), %rcx
	movl	-5244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -5244(%rbp)
.L2:
	movl	-5252(%rbp), %eax
	cmpl	%eax, -5244(%rbp)
	jl	.L3
	movl	$0, -5244(%rbp)
	jmp	.L4
.L5:
	leaq	-2624(%rbp), %rcx
	movl	-5244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -5244(%rbp)
.L4:
	movl	-5248(%rbp), %eax
	cmpl	%eax, -5244(%rbp)
	jl	.L5
	movl	$0, -5244(%rbp)
	jmp	.L6
.L11:
	movl	$0, -5240(%rbp)
	jmp	.L7
.L10:
	leaq	-2624(%rbp), %rcx
	movl	-5240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-5232(%rbp), %rsi
	movl	-5244(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rcx
	salq	$4, %rcx
	addq	%rcx, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strstr@PLT
	testq	%rax, %rax
	jne	.L8
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L13
.L8:
	movl	$1, -5236(%rbp)
	addl	$1, -5240(%rbp)
.L7:
	movl	-5248(%rbp), %eax
	cmpl	%eax, -5240(%rbp)
	jl	.L10
	addl	$1, -5244(%rbp)
.L6:
	movl	-5252(%rbp), %eax
	cmpl	%eax, -5244(%rbp)
	jl	.L11
	cmpl	$1, -5236(%rbp)
	jne	.L12
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L12:
	movl	$0, %eax
.L13:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.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.
val
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.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
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$1168, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-5232(%rbp), %rdx
	movl	$0, %eax
	movl	$325, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movb	%al, (%rdx)
	addq	$1, %rdx
	leaq	-2624(%rbp), %rdx
	movl	$0, %eax
	movl	$325, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movb	%al, (%rdx)
	addq	$1, %rdx
	movl	$0, -5236(%rbp)
	leaq	-5248(%rbp), %rdx
	leaq	-5252(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -5244(%rbp)
	jmp	.L2
.L3:
	leaq	-5232(%rbp), %rcx
	movl	-5244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -5244(%rbp)
.L2:
	movl	-5252(%rbp), %eax
	cmpl	%eax, -5244(%rbp)
	jl	.L3
	movl	$0, -5244(%rbp)
	jmp	.L4
.L5:
	leaq	-2624(%rbp), %rcx
	movl	-5244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -5244(%rbp)
.L4:
	movl	-5248(%rbp), %eax
	cmpl	%eax, -5244(%rbp)
	jl	.L5
	movl	$0, -5244(%rbp)
	jmp	.L6
.L11:
	movl	$0, -5240(%rbp)
	jmp	.L7
.L10:
	leaq	-2624(%rbp), %rcx
	movl	-5240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-5232(%rbp), %rsi
	movl	-5244(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rcx
	salq	$4, %rcx
	addq	%rcx, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strstr@PLT
	testq	%rax, %rax
	jne	.L8
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L13
.L8:
	movl	$1, -5236(%rbp)
	addl	$1, -5240(%rbp)
.L7:
	movl	-5248(%rbp), %eax
	cmpl	%eax, -5240(%rbp)
	jl	.L10
	addl	$1, -5244(%rbp)
.L6:
	movl	-5252(%rbp), %eax
	cmpl	%eax, -5244(%rbp)
	jl	.L11
	cmpl	$1, -5236(%rbp)
	jne	.L12
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L12:
	movl	$0, %eax
.L13:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.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:
