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>

int main(void){
    char p[100] = {}, s[100] = {};
    int c_1 = 0, c_2 = 0, flag = 1, e = 0, dummy = 0;
    
    for(int i = 1;;i++){
        scanf("%c", &s[i]);
        if(s[i] == '\n')    break;
        c_1++;
    }
    for(int i = 1;;i++){
        scanf("%c", &p[i]);
        if(p[i] == '\n')    break;
        c_2++;
    }
    for(int i = 1;i <= c_1;i++){
        flag = 0;
        for(int w = 1;w <= c_2;w++){
            dummy = i;
            dummy = dummy + w - 1;
            if(dummy > c_1) dummy = dummy - c_1;
            if(s[dummy] == p[w])    flag++;
            if(flag == c_2){
                e = 1;
                break;
            }
        }
    }
    if(e == 1){
        printf("Yes\n");
    } else {
        printf("No\n");
    }
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%c"
.LC1:
	.string	"Yes"
.LC2:
	.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
	subq	$272, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -224(%rbp)
	movq	$0, -216(%rbp)
	movq	$0, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	$0, -192(%rbp)
	movq	$0, -184(%rbp)
	movq	$0, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	$0, -160(%rbp)
	movq	$0, -152(%rbp)
	movq	$0, -144(%rbp)
	movq	$0, -136(%rbp)
	movl	$0, -128(%rbp)
	movq	$0, -112(%rbp)
	movq	$0, -104(%rbp)
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -16(%rbp)
	movl	$0, -260(%rbp)
	movl	$0, -256(%rbp)
	movl	$1, -252(%rbp)
	movl	$0, -248(%rbp)
	movl	$0, -244(%rbp)
	movl	$1, -240(%rbp)
.L4:
	leaq	-112(%rbp), %rdx
	movl	-240(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-240(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$10, %al
	je	.L22
	addl	$1, -260(%rbp)
	addl	$1, -240(%rbp)
	jmp	.L4
.L22:
	nop
	movl	$1, -236(%rbp)
.L7:
	leaq	-224(%rbp), %rdx
	movl	-236(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-236(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	cmpb	$10, %al
	je	.L23
	addl	$1, -256(%rbp)
	addl	$1, -236(%rbp)
	jmp	.L7
.L23:
	nop
	movl	$1, -232(%rbp)
	jmp	.L8
.L15:
	movl	$0, -252(%rbp)
	movl	$1, -228(%rbp)
	jmp	.L9
.L14:
	movl	-232(%rbp), %eax
	movl	%eax, -244(%rbp)
	movl	-244(%rbp), %edx
	movl	-228(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -244(%rbp)
	movl	-244(%rbp), %eax
	cmpl	-260(%rbp), %eax
	jle	.L10
	movl	-260(%rbp), %eax
	subl	%eax, -244(%rbp)
.L10:
	movl	-244(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-228(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L11
	addl	$1, -252(%rbp)
.L11:
	movl	-252(%rbp), %eax
	cmpl	-256(%rbp), %eax
	jne	.L12
	movl	$1, -248(%rbp)
	jmp	.L13
.L12:
	addl	$1, -228(%rbp)
.L9:
	movl	-228(%rbp), %eax
	cmpl	-256(%rbp), %eax
	jle	.L14
.L13:
	addl	$1, -232(%rbp)
.L8:
	movl	-232(%rbp), %eax
	cmpl	-260(%rbp), %eax
	jle	.L15
	cmpl	$1, -248(%rbp)
	jne	.L16
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L17
.L16:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L17:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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	"%c"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$224, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	113(%rsp), %rbx
	movl	$0, 96(%rsp)
	movl	$0, 208(%rsp)
	movaps	%xmm0, (%rsp)
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 112(%rsp)
	movaps	%xmm0, 128(%rsp)
	movaps	%xmm0, 144(%rsp)
	movaps	%xmm0, 160(%rsp)
	movaps	%xmm0, 176(%rsp)
	movaps	%xmm0, 192(%rsp)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	addl	$1, %r12d
.L4:
	movq	%rbx, %rsi
	xorl	%eax, %eax
	movq	%r14, %rdi
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	cmpb	$10, -1(%rbx)
	jne	.L2
	leaq	1(%rsp), %rbx
	xorl	%ebp, %ebp
	movq	%rbx, %r13
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	addl	$1, %ebp
.L3:
	movq	%r13, %rsi
	xorl	%eax, %eax
	movq	%r14, %rdi
	addq	$1, %r13
	call	__isoc99_scanf@PLT
	cmpb	$10, -1(%r13)
	jne	.L5
	testl	%r12d, %r12d
	je	.L6
	movl	$1, %edi
	leal	-1(%rbp), %eax
	leal	1(%r12), %r10d
	xorl	%r11d, %r11d
	subl	%ebx, %edi
	movl	$1, %r9d
	leaq	2(%rsp,%rax), %r8
	subl	%r12d, %edi
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%r9d, %ecx
	movq	%rbx, %rdx
	xorl	%esi, %esi
	testl	%ebp, %ebp
	jne	.L11
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$1, %rdx
	addl	$1, %ecx
	cmpq	%r8, %rdx
	je	.L10
.L11:
	cmpl	%ecx, %r12d
	leal	(%rdi,%rdx), %eax
	movzbl	(%rdx), %r14d
	cmovge	%ecx, %eax
	cltq
	cmpb	%r14b, 112(%rsp,%rax)
	sete	%al
	movzbl	%al, %eax
	addl	%eax, %esi
	cmpl	%esi, %ebp
	jne	.L23
	movl	$1, %r11d
.L10:
	addl	$1, %r9d
	addl	$1, %edi
	cmpl	%r10d, %r9d
	jne	.L7
	cmpl	$1, %r11d
	je	.L24
.L6:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L14:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$224, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L14
.L25:
	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	"%c"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$224, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	113(%rsp), %rbx
	movl	$0, 96(%rsp)
	movl	$0, 208(%rsp)
	movaps	%xmm0, (%rsp)
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 112(%rsp)
	movaps	%xmm0, 128(%rsp)
	movaps	%xmm0, 144(%rsp)
	movaps	%xmm0, 160(%rsp)
	movaps	%xmm0, 176(%rsp)
	movaps	%xmm0, 192(%rsp)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	addl	$1, %r12d
.L4:
	movq	%rbx, %rsi
	xorl	%eax, %eax
	movq	%r14, %rdi
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	cmpb	$10, -1(%rbx)
	jne	.L2
	leaq	1(%rsp), %rbx
	xorl	%ebp, %ebp
	movq	%rbx, %r13
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	addl	$1, %ebp
.L3:
	movq	%r13, %rsi
	xorl	%eax, %eax
	movq	%r14, %rdi
	addq	$1, %r13
	call	__isoc99_scanf@PLT
	cmpb	$10, -1(%r13)
	jne	.L5
	testl	%r12d, %r12d
	je	.L6
	movl	$1, %edi
	leal	-1(%rbp), %eax
	leal	1(%r12), %r10d
	xorl	%r11d, %r11d
	subl	%ebx, %edi
	movl	$1, %r9d
	leaq	2(%rsp,%rax), %r8
	subl	%r12d, %edi
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%r9d, %ecx
	movq	%rbx, %rdx
	xorl	%esi, %esi
	testl	%ebp, %ebp
	jne	.L11
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$1, %rdx
	addl	$1, %ecx
	cmpq	%r8, %rdx
	je	.L10
.L11:
	cmpl	%ecx, %r12d
	leal	(%rdi,%rdx), %eax
	movzbl	(%rdx), %r14d
	cmovge	%ecx, %eax
	cltq
	cmpb	%r14b, 112(%rsp,%rax)
	sete	%al
	movzbl	%al, %eax
	addl	%eax, %esi
	cmpl	%esi, %ebp
	jne	.L23
	movl	$1, %r11d
.L10:
	addl	$1, %r9d
	addl	$1, %edi
	cmpl	%r10d, %r9d
	jne	.L7
	cmpl	$1, %r11d
	je	.L24
.L6:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L14:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$224, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L14
.L25:
	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>

int main(void){
    char p[100] = {}, s[100] = {};
    int c_1 = 0, c_2 = 0, flag = 1, e = 0, dummy = 0;
    
    for(int i = 1;;i++){
        scanf("%c", &s[i]);
        if(s[i] == '\n')    break;
        c_1++;
    }
    for(int i = 1;;i++){
        scanf("%c", &p[i]);
        if(p[i] == '\n')    break;
        c_2++;
    }
    for(int i = 1;i <= c_1;i++){
        flag = 0;
        for(int w = 1;w <= c_2;w++){
            dummy = i;
            dummy = dummy + w - 1;
            if(dummy > c_1) dummy = dummy - c_1;
            if(s[dummy] == p[w])    flag++;
            if(flag == c_2){
                e = 1;
                break;
            }
        }
    }
    if(e == 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>

int main(void){
    char p[100] = {}, s[100] = {};
    int c_1 = 0, c_2 = 0, flag = 1, e = 0, dummy = 0;
    
    for(int i = 1;;i++){
        scanf("%c", &s[i]);
        if(s[i] == '\n')    break;
        c_1++;
    }
    for(int i = 1;;i++){
        scanf("%c", &p[i]);
        if(p[i] == '\n')    break;
        c_2++;
    }
    for(int i = 1;i <= c_1;i++){
        flag = 0;
        for(int w = 1;w <= c_2;w++){
            dummy = i;
            dummy = dummy + w - 1;
            if(dummy > c_1) dummy = dummy - c_1;
            if(s[dummy] == p[w])    flag++;
            if(flag == c_2){
                e = 1;
                break;
            }
        }
    }
    if(e == 1){
        printf("Yes\n");
    } else {
        printf("No\n");
    }
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%c"
.LC1:
	.string	"Yes"
.LC2:
	.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
	subq	$272, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -224(%rbp)
	movq	$0, -216(%rbp)
	movq	$0, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	$0, -192(%rbp)
	movq	$0, -184(%rbp)
	movq	$0, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	$0, -160(%rbp)
	movq	$0, -152(%rbp)
	movq	$0, -144(%rbp)
	movq	$0, -136(%rbp)
	movl	$0, -128(%rbp)
	movq	$0, -112(%rbp)
	movq	$0, -104(%rbp)
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -16(%rbp)
	movl	$0, -260(%rbp)
	movl	$0, -256(%rbp)
	movl	$1, -252(%rbp)
	movl	$0, -248(%rbp)
	movl	$0, -244(%rbp)
	movl	$1, -240(%rbp)
.L4:
	leaq	-112(%rbp), %rdx
	movl	-240(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-240(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$10, %al
	je	.L22
	addl	$1, -260(%rbp)
	addl	$1, -240(%rbp)
	jmp	.L4
.L22:
	nop
	movl	$1, -236(%rbp)
.L7:
	leaq	-224(%rbp), %rdx
	movl	-236(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-236(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	cmpb	$10, %al
	je	.L23
	addl	$1, -256(%rbp)
	addl	$1, -236(%rbp)
	jmp	.L7
.L23:
	nop
	movl	$1, -232(%rbp)
	jmp	.L8
.L15:
	movl	$0, -252(%rbp)
	movl	$1, -228(%rbp)
	jmp	.L9
.L14:
	movl	-232(%rbp), %eax
	movl	%eax, -244(%rbp)
	movl	-244(%rbp), %edx
	movl	-228(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -244(%rbp)
	movl	-244(%rbp), %eax
	cmpl	-260(%rbp), %eax
	jle	.L10
	movl	-260(%rbp), %eax
	subl	%eax, -244(%rbp)
.L10:
	movl	-244(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-228(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L11
	addl	$1, -252(%rbp)
.L11:
	movl	-252(%rbp), %eax
	cmpl	-256(%rbp), %eax
	jne	.L12
	movl	$1, -248(%rbp)
	jmp	.L13
.L12:
	addl	$1, -228(%rbp)
.L9:
	movl	-228(%rbp), %eax
	cmpl	-256(%rbp), %eax
	jle	.L14
.L13:
	addl	$1, -232(%rbp)
.L8:
	movl	-232(%rbp), %eax
	cmpl	-260(%rbp), %eax
	jle	.L15
	cmpl	$1, -248(%rbp)
	jne	.L16
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L17
.L16:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L17:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%c"
.LC1:
	.string	"Yes"
.LC2:
	.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
	subq	$272, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -224(%rbp)
	movq	$0, -216(%rbp)
	movq	$0, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	$0, -192(%rbp)
	movq	$0, -184(%rbp)
	movq	$0, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	$0, -160(%rbp)
	movq	$0, -152(%rbp)
	movq	$0, -144(%rbp)
	movq	$0, -136(%rbp)
	movl	$0, -128(%rbp)
	movq	$0, -112(%rbp)
	movq	$0, -104(%rbp)
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -16(%rbp)
	movl	$0, -260(%rbp)
	movl	$0, -256(%rbp)
	movl	$1, -252(%rbp)
	movl	$0, -248(%rbp)
	movl	$0, -244(%rbp)
	movl	$1, -240(%rbp)
.L4:
	leaq	-112(%rbp), %rdx
	movl	-240(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-240(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$10, %al
	je	.L22
	addl	$1, -260(%rbp)
	addl	$1, -240(%rbp)
	jmp	.L4
.L22:
	nop
	movl	$1, -236(%rbp)
.L7:
	leaq	-224(%rbp), %rdx
	movl	-236(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-236(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	cmpb	$10, %al
	je	.L23
	addl	$1, -256(%rbp)
	addl	$1, -236(%rbp)
	jmp	.L7
.L23:
	nop
	movl	$1, -232(%rbp)
	jmp	.L8
.L15:
	movl	$0, -252(%rbp)
	movl	$1, -228(%rbp)
	jmp	.L9
.L14:
	movl	-232(%rbp), %eax
	movl	%eax, -244(%rbp)
	movl	-244(%rbp), %edx
	movl	-228(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -244(%rbp)
	movl	-244(%rbp), %eax
	cmpl	-260(%rbp), %eax
	jle	.L10
	movl	-260(%rbp), %eax
	subl	%eax, -244(%rbp)
.L10:
	movl	-244(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-228(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L11
	addl	$1, -252(%rbp)
.L11:
	movl	-252(%rbp), %eax
	cmpl	-256(%rbp), %eax
	jne	.L12
	movl	$1, -248(%rbp)
	jmp	.L13
.L12:
	addl	$1, -228(%rbp)
.L9:
	movl	-228(%rbp), %eax
	cmpl	-256(%rbp), %eax
	jle	.L14
.L13:
	addl	$1, -232(%rbp)
.L8:
	movl	-232(%rbp), %eax
	cmpl	-260(%rbp), %eax
	jle	.L15
	cmpl	$1, -248(%rbp)
	jne	.L16
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L17
.L16:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L17:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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:
