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

int main()
{
  int h,w;
  
  scanf("%d%d",&h,&w);
  
  char s[h][w];
  int i,j;
  bool b=true;
 
  for(i=0;i<h;i++)
  {
    scanf("%s",&s[i]);
  }    

  for(i=0;i<h;i++)
  {
    for(j=0;j<w;j++)
    {
      if(s[i][j]=='#')
      {
        if(i!=0||i!=h-1||j!=0||j!=w-1)
        {
          if(s[i][j+1]!='#'&&s[i][j-1]!='#'&&s[i-1][j]!='#'&&s[i+1][j]!='#')
          {
            b=false;
          }
        }
        else
        {
          if(s[i][j+1]!='#'&&s[i+1][j]!='#')
          {
            b=false;
          }
        }
      }
    }
  }
        
  if(b==true)
  {
    printf("Yes\n");
  }
  else
  {
    printf("No\n");
  }
  
  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:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -168(%rbp)
	leaq	-92(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%rbp), %ecx
	movl	-96(%rbp), %esi
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%ecx, %rbx
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -128(%rbp)
	movq	$0, -120(%rbp)
	movslq	%esi, %rax
	movq	%rax, -144(%rbp)
	movq	$0, -136(%rbp)
	movq	-128(%rbp), %r8
	movq	-120(%rbp), %r9
	movq	%r9, %rdx
	movq	-144(%rbp), %r10
	movq	-136(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%esi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rdx
	movslq	%esi, %rax
	imulq	%rdx, %rax
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movb	$1, -97(%rbp)
	movl	$0, -88(%rbp)
	jmp	.L5
.L6:
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -88(%rbp)
.L5:
	movl	-96(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L6
	movl	$0, -88(%rbp)
	jmp	.L7
.L14:
	movl	$0, -84(%rbp)
	jmp	.L8
.L13:
	movq	-64(%rbp), %rcx
	movl	-84(%rbp), %eax
	movslq	%eax, %rdx
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L9
	cmpl	$0, -88(%rbp)
	jne	.L10
	movl	-96(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -88(%rbp)
	jne	.L10
	cmpl	$0, -84(%rbp)
	jne	.L10
	movl	-92(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -84(%rbp)
	je	.L11
.L10:
	movl	-84(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L19
	movl	-84(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L19
	movl	-88(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rsi
	movl	-84(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	%rbx, %rax
	leaq	(%rsi,%rcx), %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L19
	movl	-88(%rbp), %eax
	leal	1(%rax), %edx
	movq	-64(%rbp), %rsi
	movl	-84(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	%rbx, %rax
	leaq	(%rsi,%rcx), %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L19
	movb	$0, -97(%rbp)
	jmp	.L19
.L11:
	movl	-84(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L9
	movl	-88(%rbp), %eax
	leal	1(%rax), %edx
	movq	-64(%rbp), %rsi
	movl	-84(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	%rbx, %rax
	leaq	(%rsi,%rcx), %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L9
	movb	$0, -97(%rbp)
	jmp	.L9
.L19:
	nop
.L9:
	addl	$1, -84(%rbp)
.L8:
	movl	-92(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L13
	addl	$1, -88(%rbp)
.L7:
	movl	-96(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L14
	cmpb	$0, -97(%rbp)
	je	.L15
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L16
.L15:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L16:
	movl	$0, %eax
	movq	-168(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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	"Yes"
.LC3:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-64(%rbp), %rax
	movslq	-60(%rbp), %r12
	movq	%rsp, %rsi
	movq	%rax, %rcx
	imulq	%r12, %rax
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L27:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L27
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L28
.L4:
	movq	%rsp, -72(%rbp)
	testl	%ecx, %ecx
	jle	.L16
	movq	%rsp, %rbx
	movq	%rsp, %r15
	leaq	.LC1(%rip), %r13
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %r8d
	addq	%r12, %r15
	cmpl	%r14d, %r8d
	jg	.L6
	testl	%r8d, %r8d
	jle	.L16
	movq	%r12, %r13
	movl	-60(%rbp), %esi
	xorl	%r10d, %r10d
	movl	$1, %r14d
	negq	%r13
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L7:
	testl	%esi, %esi
	jle	.L13
	leaq	(%r10,%rbx), %rax
	xorl	%ecx, %ecx
	leaq	(%r12,%r10), %r9
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%edx, %esi
	jle	.L13
.L29:
	addq	$1, %rax
	movl	%edx, %ecx
.L14:
	cmpb	$35, (%rax)
	leal	1(%rcx), %edx
	jne	.L8
	cmpl	$1, %r8d
	setne	%dil
	cmpl	$1, %esi
	setne	%r15b
	orb	%r15b, %dil
	jne	.L18
	orl	%r11d, %ecx
	je	.L9
.L18:
	cmpb	$35, 1(%rax)
	je	.L8
	cmpb	$35, -1(%rax)
	je	.L8
	movq	%rax, %rcx
	subq	%r10, %rcx
	cmpb	$35, (%rcx,%r13)
	je	.L8
	xorl	%edi, %edi
	cmpb	$35, (%rcx,%r9)
	cmovne	%edi, %r14d
	cmpl	%edx, %esi
	jg	.L29
	.p2align 4,,10
	.p2align 3
.L13:
	addl	$1, %r11d
	addq	%r12, %r10
	addq	%r12, %r13
	cmpl	%r11d, %r8d
	jne	.L7
.L11:
	testb	%r14b, %r14b
	je	.L12
.L16:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L15:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L30
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L9:
	.cfi_restore_state
	movq	-72(%rbp), %rax
	cmpb	$35, 1(%rax)
	je	.L11
	cmpb	$35, (%rax,%r12)
	je	.L11
.L12:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L15
.L28:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L30:
	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
	.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	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-64(%rbp), %rax
	movslq	-60(%rbp), %r12
	movq	%rsp, %rsi
	movq	%rax, %rcx
	imulq	%r12, %rax
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L27:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L27
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L28
.L4:
	movq	%rsp, -72(%rbp)
	testl	%ecx, %ecx
	jle	.L16
	movq	%rsp, %rbx
	movq	%rsp, %r15
	leaq	.LC1(%rip), %r13
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %r8d
	addq	%r12, %r15
	cmpl	%r14d, %r8d
	jg	.L6
	testl	%r8d, %r8d
	jle	.L16
	movq	%r12, %r13
	movl	-60(%rbp), %esi
	xorl	%r10d, %r10d
	movl	$1, %r14d
	negq	%r13
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L7:
	testl	%esi, %esi
	jle	.L13
	leaq	(%r10,%rbx), %rax
	xorl	%ecx, %ecx
	leaq	(%r12,%r10), %r9
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%edx, %esi
	jle	.L13
.L29:
	addq	$1, %rax
	movl	%edx, %ecx
.L14:
	cmpb	$35, (%rax)
	leal	1(%rcx), %edx
	jne	.L8
	cmpl	$1, %r8d
	setne	%dil
	cmpl	$1, %esi
	setne	%r15b
	orb	%r15b, %dil
	jne	.L18
	orl	%r11d, %ecx
	je	.L9
.L18:
	cmpb	$35, 1(%rax)
	je	.L8
	cmpb	$35, -1(%rax)
	je	.L8
	movq	%rax, %rcx
	subq	%r10, %rcx
	cmpb	$35, (%rcx,%r13)
	je	.L8
	xorl	%edi, %edi
	cmpb	$35, (%rcx,%r9)
	cmovne	%edi, %r14d
	cmpl	%edx, %esi
	jg	.L29
	.p2align 4,,10
	.p2align 3
.L13:
	addl	$1, %r11d
	addq	%r12, %r10
	addq	%r12, %r13
	cmpl	%r11d, %r8d
	jne	.L7
.L11:
	testb	%r14b, %r14b
	je	.L12
.L16:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L15:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L30
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L9:
	.cfi_restore_state
	movq	-72(%rbp), %rax
	cmpb	$35, 1(%rax)
	je	.L11
	cmpb	$35, (%rax,%r12)
	je	.L11
.L12:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L15
.L28:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L30:
	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:

#include<stdio.h>
#include<stdbool.h>

int main()
{
  int h,w;
  
  scanf("%d%d",&h,&w);
  
  char s[h][w];
  int i,j;
  bool b=true;
 
  for(i=0;i<h;i++)
  {
    scanf("%s",&s[i]);
  }    

  for(i=0;i<h;i++)
  {
    for(j=0;j<w;j++)
    {
      if(s[i][j]=='#')
      {
        if(i!=0||i!=h-1||j!=0||j!=w-1)
        {
          if(s[i][j+1]!='#'&&s[i][j-1]!='#'&&s[i-1][j]!='#'&&s[i+1][j]!='#')
          {
            b=false;
          }
        }
        else
        {
          if(s[i][j+1]!='#'&&s[i+1][j]!='#')
          {
            b=false;
          }
        }
      }
    }
  }
        
  if(b==true)
  {
    printf("Yes\n");
  }
  else
  {
    printf("No\n");
  }
  
  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<stdbool.h>

int main()
{
  int h,w;
  
  scanf("%d%d",&h,&w);
  
  char s[h][w];
  int i,j;
  bool b=true;
 
  for(i=0;i<h;i++)
  {
    scanf("%s",&s[i]);
  }    

  for(i=0;i<h;i++)
  {
    for(j=0;j<w;j++)
    {
      if(s[i][j]=='#')
      {
        if(i!=0||i!=h-1||j!=0||j!=w-1)
        {
          if(s[i][j+1]!='#'&&s[i][j-1]!='#'&&s[i-1][j]!='#'&&s[i+1][j]!='#')
          {
            b=false;
          }
        }
        else
        {
          if(s[i][j+1]!='#'&&s[i+1][j]!='#')
          {
            b=false;
          }
        }
      }
    }
  }
        
  if(b==true)
  {
    printf("Yes\n");
  }
  else
  {
    printf("No\n");
  }
  
  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:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -168(%rbp)
	leaq	-92(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%rbp), %ecx
	movl	-96(%rbp), %esi
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%ecx, %rbx
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -128(%rbp)
	movq	$0, -120(%rbp)
	movslq	%esi, %rax
	movq	%rax, -144(%rbp)
	movq	$0, -136(%rbp)
	movq	-128(%rbp), %r8
	movq	-120(%rbp), %r9
	movq	%r9, %rdx
	movq	-144(%rbp), %r10
	movq	-136(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%esi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rdx
	movslq	%esi, %rax
	imulq	%rdx, %rax
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movb	$1, -97(%rbp)
	movl	$0, -88(%rbp)
	jmp	.L5
.L6:
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -88(%rbp)
.L5:
	movl	-96(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L6
	movl	$0, -88(%rbp)
	jmp	.L7
.L14:
	movl	$0, -84(%rbp)
	jmp	.L8
.L13:
	movq	-64(%rbp), %rcx
	movl	-84(%rbp), %eax
	movslq	%eax, %rdx
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L9
	cmpl	$0, -88(%rbp)
	jne	.L10
	movl	-96(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -88(%rbp)
	jne	.L10
	cmpl	$0, -84(%rbp)
	jne	.L10
	movl	-92(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -84(%rbp)
	je	.L11
.L10:
	movl	-84(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L19
	movl	-84(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L19
	movl	-88(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rsi
	movl	-84(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	%rbx, %rax
	leaq	(%rsi,%rcx), %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L19
	movl	-88(%rbp), %eax
	leal	1(%rax), %edx
	movq	-64(%rbp), %rsi
	movl	-84(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	%rbx, %rax
	leaq	(%rsi,%rcx), %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L19
	movb	$0, -97(%rbp)
	jmp	.L19
.L11:
	movl	-84(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L9
	movl	-88(%rbp), %eax
	leal	1(%rax), %edx
	movq	-64(%rbp), %rsi
	movl	-84(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	%rbx, %rax
	leaq	(%rsi,%rcx), %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L9
	movb	$0, -97(%rbp)
	jmp	.L9
.L19:
	nop
.L9:
	addl	$1, -84(%rbp)
.L8:
	movl	-92(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L13
	addl	$1, -88(%rbp)
.L7:
	movl	-96(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L14
	cmpb	$0, -97(%rbp)
	je	.L15
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L16
.L15:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L16:
	movl	$0, %eax
	movq	-168(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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.
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:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -168(%rbp)
	leaq	-92(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%rbp), %ecx
	movl	-96(%rbp), %esi
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%ecx, %rbx
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -128(%rbp)
	movq	$0, -120(%rbp)
	movslq	%esi, %rax
	movq	%rax, -144(%rbp)
	movq	$0, -136(%rbp)
	movq	-128(%rbp), %r8
	movq	-120(%rbp), %r9
	movq	%r9, %rdx
	movq	-144(%rbp), %r10
	movq	-136(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%esi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rdx
	movslq	%esi, %rax
	imulq	%rdx, %rax
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movb	$1, -97(%rbp)
	movl	$0, -88(%rbp)
	jmp	.L5
.L6:
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -88(%rbp)
.L5:
	movl	-96(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L6
	movl	$0, -88(%rbp)
	jmp	.L7
.L14:
	movl	$0, -84(%rbp)
	jmp	.L8
.L13:
	movq	-64(%rbp), %rcx
	movl	-84(%rbp), %eax
	movslq	%eax, %rdx
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L9
	cmpl	$0, -88(%rbp)
	jne	.L10
	movl	-96(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -88(%rbp)
	jne	.L10
	cmpl	$0, -84(%rbp)
	jne	.L10
	movl	-92(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -84(%rbp)
	je	.L11
.L10:
	movl	-84(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L19
	movl	-84(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L19
	movl	-88(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rsi
	movl	-84(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	%rbx, %rax
	leaq	(%rsi,%rcx), %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L19
	movl	-88(%rbp), %eax
	leal	1(%rax), %edx
	movq	-64(%rbp), %rsi
	movl	-84(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	%rbx, %rax
	leaq	(%rsi,%rcx), %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L19
	movb	$0, -97(%rbp)
	jmp	.L19
.L11:
	movl	-84(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L9
	movl	-88(%rbp), %eax
	leal	1(%rax), %edx
	movq	-64(%rbp), %rsi
	movl	-84(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	%rbx, %rax
	leaq	(%rsi,%rcx), %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L9
	movb	$0, -97(%rbp)
	jmp	.L9
.L19:
	nop
.L9:
	addl	$1, -84(%rbp)
.L8:
	movl	-92(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L13
	addl	$1, -88(%rbp)
.L7:
	movl	-96(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L14
	cmpb	$0, -97(%rbp)
	je	.L15
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L16
.L15:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L16:
	movl	$0, %eax
	movq	-168(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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:
