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>

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;
}
```

Assembly Code:

```assembly
	.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:
```

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	"%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
```assembly
	.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:
```
```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;
}
```
Given the following C 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;
}
```

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:

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 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;
}
```

Assembly Code:

```assembly
	.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:
```

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	"%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:
```