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 <stdlib.h>
#include <string.h>
#include <math.h>

int main(void){

  char s[128], p[128];
  int i, j;
  int k, n;
  int t = 0;
  int lens = 0, lenp = 0;

  scanf("%s %s", s, p);

  while(s[lens]){
    lens++;
  }

  while(p[lenp]){
    lenp++;
  }

  for(i = 0; i < lens; i++){
    k = 0;
    n = 0;
    if(s[i] == p[0]){
      if((i + lenp - 1) <= lens - 1){
	for(j = i; j < i + lenp; j++){
	  if(s[j] != p[j - i]){
	    k = 1;
	    break;
	  }else{
	    n++;
	  }
	}
	if(n == lenp){
	  t = 1;
	  break;
	}
      }else{
	for(j = i; j < lens; j++){
	  if(s[j] != p[j - i]){
	    k = 1;
	    break;
	  }else{
	    n++;
	  }
	}
	if(n == lens - i){
	  for(j = 0; j <= i + lenp - lens - 1; j++){
	    if(s[j] != p[j + lens - i]){
	      k = 1;
	      break;
	    }else{
	      n++;
	    }
	  }
	}
	if(n == lenp){
	  t = 1;
	  break;
	}
      }
    }
  }

  if(t == 1){
    printf("Yes\n");
  }else{
    printf("No\n");
  }

  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s %s"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$304, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -288(%rbp)
	movl	$0, -284(%rbp)
	movl	$0, -280(%rbp)
	leaq	-144(%rbp), %rdx
	leaq	-272(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L3:
	addl	$1, -284(%rbp)
.L2:
	movl	-284(%rbp), %eax
	cltq
	movzbl	-272(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L3
	jmp	.L4
.L5:
	addl	$1, -280(%rbp)
.L4:
	movl	-280(%rbp), %eax
	cltq
	movzbl	-144(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L5
	movl	$0, -300(%rbp)
	jmp	.L6
.L22:
	movl	$0, -276(%rbp)
	movl	$0, -292(%rbp)
	movl	-300(%rbp), %eax
	cltq
	movzbl	-272(%rbp,%rax), %edx
	movzbl	-144(%rbp), %eax
	cmpb	%al, %dl
	jne	.L7
	movl	-300(%rbp), %edx
	movl	-280(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -284(%rbp)
	jl	.L8
	movl	-300(%rbp), %eax
	movl	%eax, -296(%rbp)
	jmp	.L9
.L12:
	movl	-296(%rbp), %eax
	cltq
	movzbl	-272(%rbp,%rax), %edx
	movl	-296(%rbp), %eax
	subl	-300(%rbp), %eax
	cltq
	movzbl	-144(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L10
	movl	$1, -276(%rbp)
	jmp	.L11
.L10:
	addl	$1, -292(%rbp)
	addl	$1, -296(%rbp)
.L9:
	movl	-300(%rbp), %edx
	movl	-280(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -296(%rbp)
	jl	.L12
.L11:
	movl	-292(%rbp), %eax
	cmpl	-280(%rbp), %eax
	jne	.L7
	movl	$1, -288(%rbp)
	jmp	.L13
.L8:
	movl	-300(%rbp), %eax
	movl	%eax, -296(%rbp)
	jmp	.L14
.L17:
	movl	-296(%rbp), %eax
	cltq
	movzbl	-272(%rbp,%rax), %edx
	movl	-296(%rbp), %eax
	subl	-300(%rbp), %eax
	cltq
	movzbl	-144(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L15
	movl	$1, -276(%rbp)
	jmp	.L16
.L15:
	addl	$1, -292(%rbp)
	addl	$1, -296(%rbp)
.L14:
	movl	-296(%rbp), %eax
	cmpl	-284(%rbp), %eax
	jl	.L17
.L16:
	movl	-284(%rbp), %eax
	subl	-300(%rbp), %eax
	cmpl	%eax, -292(%rbp)
	jne	.L18
	movl	$0, -296(%rbp)
	jmp	.L19
.L21:
	movl	-296(%rbp), %eax
	cltq
	movzbl	-272(%rbp,%rax), %edx
	movl	-296(%rbp), %ecx
	movl	-284(%rbp), %eax
	addl	%ecx, %eax
	subl	-300(%rbp), %eax
	cltq
	movzbl	-144(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L20
	movl	$1, -276(%rbp)
	jmp	.L18
.L20:
	addl	$1, -292(%rbp)
	addl	$1, -296(%rbp)
.L19:
	movl	-300(%rbp), %edx
	movl	-280(%rbp), %eax
	addl	%edx, %eax
	subl	-284(%rbp), %eax
	cmpl	%eax, -296(%rbp)
	jl	.L21
.L18:
	movl	-292(%rbp), %eax
	cmpl	-280(%rbp), %eax
	jne	.L7
	movl	$1, -288(%rbp)
	jmp	.L13
.L7:
	addl	$1, -300(%rbp)
.L6:
	movl	-300(%rbp), %eax
	cmpl	-284(%rbp), %eax
	jl	.L22
.L13:
	cmpl	$1, -288(%rbp)
	jne	.L23
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L24
.L23:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L24:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"%s %s"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$296, %rsp
	.cfi_def_cfa_offset 352
	movq	%fs:40, %rax
	movq	%rax, 280(%rsp)
	xorl	%eax, %eax
	leaq	144(%rsp), %rbp
	leaq	16(%rsp), %rbx
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	cmpb	$0, 16(%rsp)
	je	.L2
	movl	$1, %eax
	leaq	15(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, %edi
	addq	$1, %rax
	cmpb	$0, (%rdx,%rax)
	jne	.L3
	movzbl	144(%rsp), %r14d
	testb	%r14b, %r14b
	je	.L24
.L5:
	movl	$1, %eax
	leaq	143(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%eax, %r15d
	addq	$1, %rax
	cmpb	$0, (%rdx,%rax)
	jne	.L8
	testl	%edi, %edi
	je	.L6
.L7:
	movslq	%edi, %rax
	movl	%r15d, %r11d
	movq	%rbx, %rcx
	movl	%r15d, %r8d
	addq	%rbp, %rax
	subl	%edi, %r11d
	xorl	%edx, %edx
	movq	%rax, 8(%rsp)
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r10, %rdx
	addq	$1, %rcx
	addl	$1, %r11d
	addl	$1, %r8d
	cmpl	%r10d, %edi
	jle	.L6
.L20:
	movl	%edx, %r12d
	leaq	1(%rdx), %r10
	cmpb	%r14b, (%rcx)
	jne	.L9
	cmpl	%r8d, %edi
	jge	.L10
	movq	%rbp, %r13
	movq	%r10, %rax
	xorl	%esi, %esi
	subq	%rdx, %r13
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L17:
	movzbl	(%rbx,%rax), %r9d
	addq	$1, %rax
	cmpb	-1(%r13,%rax), %r9b
	jne	.L16
.L11:
	addl	$1, %esi
	cmpl	%eax, %edi
	jg	.L17
.L16:
	movl	%edi, %eax
	subl	%r12d, %eax
	cmpl	%eax, %esi
	je	.L40
.L18:
	cmpl	%r15d, %esi
	jne	.L9
.L15:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	%edx, %r8d
	jle	.L25
	leal	-1(%r8), %r9d
	xorl	%eax, %eax
	subl	%edx, %r9d
	.p2align 4,,10
	.p2align 3
.L13:
	leal	1(%rax), %r10d
	cmpq	%r9, %rax
	je	.L12
	movzbl	1(%rcx,%rax), %esi
	addq	$1, %rax
	cmpb	0(%rbp,%rax), %sil
	je	.L13
.L12:
	cmpl	%r15d, %r10d
	je	.L15
	leaq	1(%rdx), %r10
	jmp	.L9
.L2:
	movzbl	144(%rsp), %r14d
	xorl	%edi, %edi
	testb	%r14b, %r14b
	jne	.L5
.L6:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L21:
	movq	280(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L41
	addq	$296, %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
.L40:
	.cfi_restore_state
	testl	%r11d, %r11d
	jle	.L18
	movq	8(%rsp), %r9
	leal	(%rsi,%r11), %r12d
	xorl	%eax, %eax
	subq	%rdx, %r9
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L42:
	addl	$1, %esi
	addq	$1, %rax
	cmpl	%r12d, %esi
	je	.L18
.L19:
	movzbl	(%r9,%rax), %edx
	cmpb	%dl, (%rbx,%rax)
	je	.L42
	jmp	.L18
.L25:
	xorl	%r10d, %r10d
	jmp	.L12
.L24:
	xorl	%r15d, %r15d
	jmp	.L7
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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	"%s %s"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$296, %rsp
	.cfi_def_cfa_offset 352
	movq	%fs:40, %rax
	movq	%rax, 280(%rsp)
	xorl	%eax, %eax
	leaq	144(%rsp), %rbp
	leaq	16(%rsp), %rbx
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	cmpb	$0, 16(%rsp)
	je	.L2
	movl	$1, %eax
	leaq	15(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, %edi
	addq	$1, %rax
	cmpb	$0, (%rdx,%rax)
	jne	.L3
	movzbl	144(%rsp), %r14d
	testb	%r14b, %r14b
	je	.L24
.L5:
	movl	$1, %eax
	leaq	143(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%eax, %r15d
	addq	$1, %rax
	cmpb	$0, (%rdx,%rax)
	jne	.L8
	testl	%edi, %edi
	je	.L6
.L7:
	movslq	%edi, %rax
	movl	%r15d, %r11d
	movq	%rbx, %rcx
	movl	%r15d, %r8d
	addq	%rbp, %rax
	subl	%edi, %r11d
	xorl	%edx, %edx
	movq	%rax, 8(%rsp)
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r10, %rdx
	addq	$1, %rcx
	addl	$1, %r11d
	addl	$1, %r8d
	cmpl	%r10d, %edi
	jle	.L6
.L20:
	movl	%edx, %r12d
	leaq	1(%rdx), %r10
	cmpb	%r14b, (%rcx)
	jne	.L9
	cmpl	%r8d, %edi
	jge	.L10
	movq	%rbp, %r13
	movq	%r10, %rax
	xorl	%esi, %esi
	subq	%rdx, %r13
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L17:
	movzbl	(%rbx,%rax), %r9d
	addq	$1, %rax
	cmpb	-1(%r13,%rax), %r9b
	jne	.L16
.L11:
	addl	$1, %esi
	cmpl	%eax, %edi
	jg	.L17
.L16:
	movl	%edi, %eax
	subl	%r12d, %eax
	cmpl	%eax, %esi
	je	.L40
.L18:
	cmpl	%r15d, %esi
	jne	.L9
.L15:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	%edx, %r8d
	jle	.L25
	leal	-1(%r8), %r9d
	xorl	%eax, %eax
	subl	%edx, %r9d
	.p2align 4,,10
	.p2align 3
.L13:
	leal	1(%rax), %r10d
	cmpq	%r9, %rax
	je	.L12
	movzbl	1(%rcx,%rax), %esi
	addq	$1, %rax
	cmpb	0(%rbp,%rax), %sil
	je	.L13
.L12:
	cmpl	%r15d, %r10d
	je	.L15
	leaq	1(%rdx), %r10
	jmp	.L9
.L2:
	movzbl	144(%rsp), %r14d
	xorl	%edi, %edi
	testb	%r14b, %r14b
	jne	.L5
.L6:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L21:
	movq	280(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L41
	addq	$296, %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
.L40:
	.cfi_restore_state
	testl	%r11d, %r11d
	jle	.L18
	movq	8(%rsp), %r9
	leal	(%rsi,%r11), %r12d
	xorl	%eax, %eax
	subq	%rdx, %r9
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L42:
	addl	$1, %esi
	addq	$1, %rax
	cmpl	%r12d, %esi
	je	.L18
.L19:
	movzbl	(%r9,%rax), %edx
	cmpb	%dl, (%rbx,%rax)
	je	.L42
	jmp	.L18
.L25:
	xorl	%r10d, %r10d
	jmp	.L12
.L24:
	xorl	%r15d, %r15d
	jmp	.L7
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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 <stdlib.h>
#include <string.h>
#include <math.h>

int main(void){

  char s[128], p[128];
  int i, j;
  int k, n;
  int t = 0;
  int lens = 0, lenp = 0;

  scanf("%s %s", s, p);

  while(s[lens]){
    lens++;
  }

  while(p[lenp]){
    lenp++;
  }

  for(i = 0; i < lens; i++){
    k = 0;
    n = 0;
    if(s[i] == p[0]){
      if((i + lenp - 1) <= lens - 1){
	for(j = i; j < i + lenp; j++){
	  if(s[j] != p[j - i]){
	    k = 1;
	    break;
	  }else{
	    n++;
	  }
	}
	if(n == lenp){
	  t = 1;
	  break;
	}
      }else{
	for(j = i; j < lens; j++){
	  if(s[j] != p[j - i]){
	    k = 1;
	    break;
	  }else{
	    n++;
	  }
	}
	if(n == lens - i){
	  for(j = 0; j <= i + lenp - lens - 1; j++){
	    if(s[j] != p[j + lens - i]){
	      k = 1;
	      break;
	    }else{
	      n++;
	    }
	  }
	}
	if(n == lenp){
	  t = 1;
	  break;
	}
      }
    }
  }

  if(t == 1){
    printf("Yes\n");
  }else{
    printf("No\n");
  }

  return 0;
}

vanceknowledgetoad
edvanca
 vanceknowledgetoad
bdvanced
 vanceknowledgetoad
edvamca
 vanceknowledgetoad
cdvanced
 daotegdelwonkecnav
edvamca
 vanceknowmedgetoad
cdvanced
 daotegdelwonkecnav
advamce
 vbnceknowmedgetoad
cdvanced
 daovegdelwonkecnat
advamce
 vbnceknowledgetoad
cdvanced

No
 No
 No
 No
 No
 No
 No
 No
 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 <stdlib.h>
#include <string.h>
#include <math.h>

int main(void){

  char s[128], p[128];
  int i, j;
  int k, n;
  int t = 0;
  int lens = 0, lenp = 0;

  scanf("%s %s", s, p);

  while(s[lens]){
    lens++;
  }

  while(p[lenp]){
    lenp++;
  }

  for(i = 0; i < lens; i++){
    k = 0;
    n = 0;
    if(s[i] == p[0]){
      if((i + lenp - 1) <= lens - 1){
	for(j = i; j < i + lenp; j++){
	  if(s[j] != p[j - i]){
	    k = 1;
	    break;
	  }else{
	    n++;
	  }
	}
	if(n == lenp){
	  t = 1;
	  break;
	}
      }else{
	for(j = i; j < lens; j++){
	  if(s[j] != p[j - i]){
	    k = 1;
	    break;
	  }else{
	    n++;
	  }
	}
	if(n == lens - i){
	  for(j = 0; j <= i + lenp - lens - 1; j++){
	    if(s[j] != p[j + lens - i]){
	      k = 1;
	      break;
	    }else{
	      n++;
	    }
	  }
	}
	if(n == lenp){
	  t = 1;
	  break;
	}
      }
    }
  }

  if(t == 1){
    printf("Yes\n");
  }else{
    printf("No\n");
  }

  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s %s"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$304, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -288(%rbp)
	movl	$0, -284(%rbp)
	movl	$0, -280(%rbp)
	leaq	-144(%rbp), %rdx
	leaq	-272(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L3:
	addl	$1, -284(%rbp)
.L2:
	movl	-284(%rbp), %eax
	cltq
	movzbl	-272(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L3
	jmp	.L4
.L5:
	addl	$1, -280(%rbp)
.L4:
	movl	-280(%rbp), %eax
	cltq
	movzbl	-144(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L5
	movl	$0, -300(%rbp)
	jmp	.L6
.L22:
	movl	$0, -276(%rbp)
	movl	$0, -292(%rbp)
	movl	-300(%rbp), %eax
	cltq
	movzbl	-272(%rbp,%rax), %edx
	movzbl	-144(%rbp), %eax
	cmpb	%al, %dl
	jne	.L7
	movl	-300(%rbp), %edx
	movl	-280(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -284(%rbp)
	jl	.L8
	movl	-300(%rbp), %eax
	movl	%eax, -296(%rbp)
	jmp	.L9
.L12:
	movl	-296(%rbp), %eax
	cltq
	movzbl	-272(%rbp,%rax), %edx
	movl	-296(%rbp), %eax
	subl	-300(%rbp), %eax
	cltq
	movzbl	-144(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L10
	movl	$1, -276(%rbp)
	jmp	.L11
.L10:
	addl	$1, -292(%rbp)
	addl	$1, -296(%rbp)
.L9:
	movl	-300(%rbp), %edx
	movl	-280(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -296(%rbp)
	jl	.L12
.L11:
	movl	-292(%rbp), %eax
	cmpl	-280(%rbp), %eax
	jne	.L7
	movl	$1, -288(%rbp)
	jmp	.L13
.L8:
	movl	-300(%rbp), %eax
	movl	%eax, -296(%rbp)
	jmp	.L14
.L17:
	movl	-296(%rbp), %eax
	cltq
	movzbl	-272(%rbp,%rax), %edx
	movl	-296(%rbp), %eax
	subl	-300(%rbp), %eax
	cltq
	movzbl	-144(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L15
	movl	$1, -276(%rbp)
	jmp	.L16
.L15:
	addl	$1, -292(%rbp)
	addl	$1, -296(%rbp)
.L14:
	movl	-296(%rbp), %eax
	cmpl	-284(%rbp), %eax
	jl	.L17
.L16:
	movl	-284(%rbp), %eax
	subl	-300(%rbp), %eax
	cmpl	%eax, -292(%rbp)
	jne	.L18
	movl	$0, -296(%rbp)
	jmp	.L19
.L21:
	movl	-296(%rbp), %eax
	cltq
	movzbl	-272(%rbp,%rax), %edx
	movl	-296(%rbp), %ecx
	movl	-284(%rbp), %eax
	addl	%ecx, %eax
	subl	-300(%rbp), %eax
	cltq
	movzbl	-144(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L20
	movl	$1, -276(%rbp)
	jmp	.L18
.L20:
	addl	$1, -292(%rbp)
	addl	$1, -296(%rbp)
.L19:
	movl	-300(%rbp), %edx
	movl	-280(%rbp), %eax
	addl	%edx, %eax
	subl	-284(%rbp), %eax
	cmpl	%eax, -296(%rbp)
	jl	.L21
.L18:
	movl	-292(%rbp), %eax
	cmpl	-280(%rbp), %eax
	jne	.L7
	movl	$1, -288(%rbp)
	jmp	.L13
.L7:
	addl	$1, -300(%rbp)
.L6:
	movl	-300(%rbp), %eax
	cmpl	-284(%rbp), %eax
	jl	.L22
.L13:
	cmpl	$1, -288(%rbp)
	jne	.L23
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L24
.L23:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L24:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"%s %s"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$304, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -288(%rbp)
	movl	$0, -284(%rbp)
	movl	$0, -280(%rbp)
	leaq	-144(%rbp), %rdx
	leaq	-272(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L3:
	addl	$1, -284(%rbp)
.L2:
	movl	-284(%rbp), %eax
	cltq
	movzbl	-272(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L3
	jmp	.L4
.L5:
	addl	$1, -280(%rbp)
.L4:
	movl	-280(%rbp), %eax
	cltq
	movzbl	-144(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L5
	movl	$0, -300(%rbp)
	jmp	.L6
.L22:
	movl	$0, -276(%rbp)
	movl	$0, -292(%rbp)
	movl	-300(%rbp), %eax
	cltq
	movzbl	-272(%rbp,%rax), %edx
	movzbl	-144(%rbp), %eax
	cmpb	%al, %dl
	jne	.L7
	movl	-300(%rbp), %edx
	movl	-280(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -284(%rbp)
	jl	.L8
	movl	-300(%rbp), %eax
	movl	%eax, -296(%rbp)
	jmp	.L9
.L12:
	movl	-296(%rbp), %eax
	cltq
	movzbl	-272(%rbp,%rax), %edx
	movl	-296(%rbp), %eax
	subl	-300(%rbp), %eax
	cltq
	movzbl	-144(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L10
	movl	$1, -276(%rbp)
	jmp	.L11
.L10:
	addl	$1, -292(%rbp)
	addl	$1, -296(%rbp)
.L9:
	movl	-300(%rbp), %edx
	movl	-280(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -296(%rbp)
	jl	.L12
.L11:
	movl	-292(%rbp), %eax
	cmpl	-280(%rbp), %eax
	jne	.L7
	movl	$1, -288(%rbp)
	jmp	.L13
.L8:
	movl	-300(%rbp), %eax
	movl	%eax, -296(%rbp)
	jmp	.L14
.L17:
	movl	-296(%rbp), %eax
	cltq
	movzbl	-272(%rbp,%rax), %edx
	movl	-296(%rbp), %eax
	subl	-300(%rbp), %eax
	cltq
	movzbl	-144(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L15
	movl	$1, -276(%rbp)
	jmp	.L16
.L15:
	addl	$1, -292(%rbp)
	addl	$1, -296(%rbp)
.L14:
	movl	-296(%rbp), %eax
	cmpl	-284(%rbp), %eax
	jl	.L17
.L16:
	movl	-284(%rbp), %eax
	subl	-300(%rbp), %eax
	cmpl	%eax, -292(%rbp)
	jne	.L18
	movl	$0, -296(%rbp)
	jmp	.L19
.L21:
	movl	-296(%rbp), %eax
	cltq
	movzbl	-272(%rbp,%rax), %edx
	movl	-296(%rbp), %ecx
	movl	-284(%rbp), %eax
	addl	%ecx, %eax
	subl	-300(%rbp), %eax
	cltq
	movzbl	-144(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L20
	movl	$1, -276(%rbp)
	jmp	.L18
.L20:
	addl	$1, -292(%rbp)
	addl	$1, -296(%rbp)
.L19:
	movl	-300(%rbp), %edx
	movl	-280(%rbp), %eax
	addl	%edx, %eax
	subl	-284(%rbp), %eax
	cmpl	%eax, -296(%rbp)
	jl	.L21
.L18:
	movl	-292(%rbp), %eax
	cmpl	-280(%rbp), %eax
	jne	.L7
	movl	$1, -288(%rbp)
	jmp	.L13
.L7:
	addl	$1, -300(%rbp)
.L6:
	movl	-300(%rbp), %eax
	cmpl	-284(%rbp), %eax
	jl	.L22
.L13:
	cmpl	$1, -288(%rbp)
	jne	.L23
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L24
.L23:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L24:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
