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

int main(int argv, char *argc[]){
    char answer[100] = {0}, target[100] = {0};
    int x, y, buf, flag=0;
    
    gets(answer);
    gets(target);
    
    
    for(x=0; '\0'!=answer[x]; x++){
        for(y=0, buf=x; target[y]==answer[buf] ||
             '\0'==target[y] || '\0'==answer[buf];){
            
            if('\0'== target[y]){
                flag=1;
                break;
            }
            
            if('\0'== answer[buf]){
                buf = 0;
                
                continue;
            }
            
            buf++;
            y++;
            
        }
    }
    
    if(1 == flag) printf("Yes\n");
    else printf("No\n");
    
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"Yes"
.LC1:
	.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	$256, %rsp
	movl	%edi, -244(%rbp)
	movq	%rsi, -256(%rbp)
	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, -228(%rbp)
	leaq	-224(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	movl	$0, -240(%rbp)
	jmp	.L2
.L8:
	movl	$0, -236(%rbp)
	movl	-240(%rbp), %eax
	movl	%eax, -232(%rbp)
	jmp	.L3
.L7:
	movl	-236(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L4
	movl	$1, -228(%rbp)
	jmp	.L5
.L4:
	movl	-232(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L6
	movl	$0, -232(%rbp)
	jmp	.L3
.L6:
	addl	$1, -232(%rbp)
	addl	$1, -236(%rbp)
.L3:
	movl	-236(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-232(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L7
	movl	-236(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	testb	%al, %al
	je	.L7
	movl	-232(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	testb	%al, %al
	je	.L7
.L5:
	addl	$1, -240(%rbp)
.L2:
	movl	-240(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L8
	cmpl	$1, -228(%rbp)
	jne	.L9
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"Yes"
.LC1:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pxor	%xmm0, %xmm0
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$232, %rsp
	.cfi_def_cfa_offset 256
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	leaq	112(%rsp), %rbx
	movaps	%xmm0, (%rsp)
	movq	%rbp, %rdi
	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)
	movl	$0, 96(%rsp)
	movl	$0, 208(%rsp)
	call	gets@PLT
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	gets@PLT
	movzbl	(%rsp), %edi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	movl	%edi, %eax
	testb	%dil, %dil
	je	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbx, %rcx
	movl	%r8d, %edx
	movzbl	(%rcx), %esi
	testb	%sil, %sil
	je	.L24
	.p2align 4,,10
	.p2align 3
.L6:
	testb	%al, %al
	jne	.L25
.L14:
	movl	%edi, %eax
	xorl	%edx, %edx
	testb	%al, %al
	je	.L14
.L25:
	cmpb	%al, %sil
	jne	.L4
	testb	%al, %al
	je	.L14
	addl	$1, %edx
	movzbl	1(%rcx), %esi
	addq	$1, %rcx
	movslq	%edx, %rax
	movzbl	(%rsp,%rax), %eax
	testb	%sil, %sil
	jne	.L6
.L24:
	movl	$1, %r9d
.L4:
	addq	$1, %r8
	movzbl	0(%rbp,%r8), %eax
	testb	%al, %al
	jne	.L2
	cmpl	$1, %r9d
	je	.L26
.L3:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L10:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$232, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
	jmp	.L10
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.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	"Yes"
.LC1:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pxor	%xmm0, %xmm0
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$232, %rsp
	.cfi_def_cfa_offset 256
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	leaq	112(%rsp), %rbx
	movaps	%xmm0, (%rsp)
	movq	%rbp, %rdi
	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)
	movl	$0, 96(%rsp)
	movl	$0, 208(%rsp)
	call	gets@PLT
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	gets@PLT
	movzbl	(%rsp), %edi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	movl	%edi, %eax
	testb	%dil, %dil
	je	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbx, %rcx
	movl	%r8d, %edx
	movzbl	(%rcx), %esi
	testb	%sil, %sil
	je	.L24
	.p2align 4,,10
	.p2align 3
.L6:
	testb	%al, %al
	jne	.L25
.L14:
	movl	%edi, %eax
	xorl	%edx, %edx
	testb	%al, %al
	je	.L14
.L25:
	cmpb	%al, %sil
	jne	.L4
	testb	%al, %al
	je	.L14
	addl	$1, %edx
	movzbl	1(%rcx), %esi
	addq	$1, %rcx
	movslq	%edx, %rax
	movzbl	(%rsp,%rax), %eax
	testb	%sil, %sil
	jne	.L6
.L24:
	movl	$1, %r9d
.L4:
	addq	$1, %r8
	movzbl	0(%rbp,%r8), %eax
	testb	%al, %al
	jne	.L2
	cmpl	$1, %r9d
	je	.L26
.L3:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L10:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$232, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
	jmp	.L10
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.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 <ctype.h>

int main(int argv, char *argc[]){
    char answer[100] = {0}, target[100] = {0};
    int x, y, buf, flag=0;
    
    gets(answer);
    gets(target);
    
    
    for(x=0; '\0'!=answer[x]; x++){
        for(y=0, buf=x; target[y]==answer[buf] ||
             '\0'==target[y] || '\0'==answer[buf];){
            
            if('\0'== target[y]){
                flag=1;
                break;
            }
            
            if('\0'== answer[buf]){
                buf = 0;
                
                continue;
            }
            
            buf++;
            y++;
            
        }
    }
    
    if(1 == flag) 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 <ctype.h>

int main(int argv, char *argc[]){
    char answer[100] = {0}, target[100] = {0};
    int x, y, buf, flag=0;
    
    gets(answer);
    gets(target);
    
    
    for(x=0; '\0'!=answer[x]; x++){
        for(y=0, buf=x; target[y]==answer[buf] ||
             '\0'==target[y] || '\0'==answer[buf];){
            
            if('\0'== target[y]){
                flag=1;
                break;
            }
            
            if('\0'== answer[buf]){
                buf = 0;
                
                continue;
            }
            
            buf++;
            y++;
            
        }
    }
    
    if(1 == flag) printf("Yes\n");
    else printf("No\n");
    
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"Yes"
.LC1:
	.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	$256, %rsp
	movl	%edi, -244(%rbp)
	movq	%rsi, -256(%rbp)
	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, -228(%rbp)
	leaq	-224(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	movl	$0, -240(%rbp)
	jmp	.L2
.L8:
	movl	$0, -236(%rbp)
	movl	-240(%rbp), %eax
	movl	%eax, -232(%rbp)
	jmp	.L3
.L7:
	movl	-236(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L4
	movl	$1, -228(%rbp)
	jmp	.L5
.L4:
	movl	-232(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L6
	movl	$0, -232(%rbp)
	jmp	.L3
.L6:
	addl	$1, -232(%rbp)
	addl	$1, -236(%rbp)
.L3:
	movl	-236(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-232(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L7
	movl	-236(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	testb	%al, %al
	je	.L7
	movl	-232(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	testb	%al, %al
	je	.L7
.L5:
	addl	$1, -240(%rbp)
.L2:
	movl	-240(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L8
	cmpl	$1, -228(%rbp)
	jne	.L9
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"Yes"
.LC1:
	.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	$256, %rsp
	movl	%edi, -244(%rbp)
	movq	%rsi, -256(%rbp)
	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, -228(%rbp)
	leaq	-224(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	movl	$0, -240(%rbp)
	jmp	.L2
.L8:
	movl	$0, -236(%rbp)
	movl	-240(%rbp), %eax
	movl	%eax, -232(%rbp)
	jmp	.L3
.L7:
	movl	-236(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L4
	movl	$1, -228(%rbp)
	jmp	.L5
.L4:
	movl	-232(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L6
	movl	$0, -232(%rbp)
	jmp	.L3
.L6:
	addl	$1, -232(%rbp)
	addl	$1, -236(%rbp)
.L3:
	movl	-236(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-232(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L7
	movl	-236(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	testb	%al, %al
	je	.L7
	movl	-232(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	testb	%al, %al
	je	.L7
.L5:
	addl	$1, -240(%rbp)
.L2:
	movl	-240(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L8
	cmpl	$1, -228(%rbp)
	jne	.L9
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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:
