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 <string.h>
int main(void) {
	char h[100],n[100];
	int lh,ln,i=0,j=0;
	scanf("%s",h);
	lh=strlen(h);
	scanf("%s",n);
	ln=strlen(n);
	for(;i<lh;i++){
		if(h[i]!=n[0]){continue;}
		for(j=1;j<ln;j++){
			if(h[(i+j)%lh]!=n[j]){j=ln*2;}
		}
		if(j==ln){
			printf("Yes\n");
			return 0;
		}
	}
	printf("No\n");
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.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	$240, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -240(%rbp)
	movl	$0, -236(%rbp)
	leaq	-224(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-224(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -232(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -228(%rbp)
	jmp	.L2
.L9:
	movl	-240(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %edx
	movzbl	-112(%rbp), %eax
	cmpb	%al, %dl
	jne	.L12
	movl	$1, -236(%rbp)
	jmp	.L5
.L7:
	movl	-240(%rbp), %edx
	movl	-236(%rbp), %eax
	addl	%edx, %eax
	cltd
	idivl	-232(%rbp)
	movl	%edx, %eax
	cltq
	movzbl	-224(%rbp,%rax), %edx
	movl	-236(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L6
	movl	-228(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -236(%rbp)
.L6:
	addl	$1, -236(%rbp)
.L5:
	movl	-236(%rbp), %eax
	cmpl	-228(%rbp), %eax
	jl	.L7
	movl	-236(%rbp), %eax
	cmpl	-228(%rbp), %eax
	jne	.L4
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L10
.L12:
	nop
.L4:
	addl	$1, -240(%rbp)
.L2:
	movl	-240(%rbp), %eax
	cmpl	-232(%rbp), %eax
	jl	.L9
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L10:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"%s"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	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
	movq	%rsp, %r12
	leaq	112(%rsp), %r13
	movq	%r12, %rsi
	call	__isoc99_scanf@PLT
	movq	%r12, %rdi
	call	strlen@PLT
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rax, %rbp
	movl	%eax, %ebx
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r13, %rdi
	call	strlen@PLT
	testq	%rbp, %rbp
	je	.L2
	movzbl	112(%rsp), %r11d
	movq	%rax, %r13
	movl	%eax, %r9d
	leal	(%rax,%rax), %r10d
	xorl	%edi, %edi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %rdi
	cmpq	%rdi, %rbp
	je	.L2
.L9:
	movl	%edi, %r8d
	cmpb	%r11b, (%r12,%rdi)
	jne	.L3
	movl	$1, %ecx
	cmpq	$1, %r13
	jbe	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	leal	(%r8,%rcx), %eax
	movslq	%ecx, %rsi
	cltd
	idivl	%ebx
	movslq	%edx, %rdx
	movzbl	(%rsp,%rdx), %eax
	cmpb	%al, 112(%rsp,%rsi)
	je	.L18
	leal	1(%r10), %ecx
	cmpl	%r9d, %ecx
	jl	.L7
.L4:
	cmpl	%ecx, %r9d
	jne	.L3
.L19:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %ecx
	cmpl	%ecx, %r9d
	jg	.L7
	cmpl	%ecx, %r9d
	jne	.L3
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L8:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	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
	movq	%rsp, %r12
	leaq	112(%rsp), %r13
	movq	%r12, %rsi
	call	__isoc99_scanf@PLT
	movq	%r12, %rdi
	call	strlen@PLT
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rax, %rbp
	movl	%eax, %ebx
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r13, %rdi
	call	strlen@PLT
	testq	%rbp, %rbp
	je	.L2
	movzbl	112(%rsp), %r11d
	movq	%rax, %r13
	movl	%eax, %r9d
	leal	(%rax,%rax), %r10d
	xorl	%edi, %edi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %rdi
	cmpq	%rdi, %rbp
	je	.L2
.L9:
	movl	%edi, %r8d
	cmpb	%r11b, (%r12,%rdi)
	jne	.L3
	movl	$1, %ecx
	cmpq	$1, %r13
	jbe	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	leal	(%r8,%rcx), %eax
	movslq	%ecx, %rsi
	cltd
	idivl	%ebx
	movslq	%edx, %rdx
	movzbl	(%rsp,%rdx), %eax
	cmpb	%al, 112(%rsp,%rsi)
	je	.L18
	leal	1(%r10), %ecx
	cmpl	%r9d, %ecx
	jl	.L7
.L4:
	cmpl	%ecx, %r9d
	jne	.L3
.L19:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %ecx
	cmpl	%ecx, %r9d
	jg	.L7
	cmpl	%ecx, %r9d
	jne	.L3
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L8:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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 <string.h>
int main(void) {
	char h[100],n[100];
	int lh,ln,i=0,j=0;
	scanf("%s",h);
	lh=strlen(h);
	scanf("%s",n);
	ln=strlen(n);
	for(;i<lh;i++){
		if(h[i]!=n[0]){continue;}
		for(j=1;j<ln;j++){
			if(h[(i+j)%lh]!=n[j]){j=ln*2;}
		}
		if(j==ln){
			printf("Yes\n");
			return 0;
		}
	}
	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 <string.h>
int main(void) {
	char h[100],n[100];
	int lh,ln,i=0,j=0;
	scanf("%s",h);
	lh=strlen(h);
	scanf("%s",n);
	ln=strlen(n);
	for(;i<lh;i++){
		if(h[i]!=n[0]){continue;}
		for(j=1;j<ln;j++){
			if(h[(i+j)%lh]!=n[j]){j=ln*2;}
		}
		if(j==ln){
			printf("Yes\n");
			return 0;
		}
	}
	printf("No\n");
	return 0;
}```

Unoptimized Assembly Code:

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