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()
{
  int n, i, j, temp;
  char s[101], t[101];
  gets(s);
  gets(t);  
  n = strlen(s);
  if(strcmp(s,t)==0)
  {
      printf("Yes\n");
      return 0;
  }
  for(i=1; i<n; i++)
  {
      temp = s[0];
      for(j=0; j<n-1; j++)
      {
          s[j] = s[j+1];
      }
      s[j] = temp;
      
      if(strcmp(s,t)==0)
      {
          printf("Yes\n");
          return 0;
      }
  }
  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	$240, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	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
	leaq	-224(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -232(%rbp)
	leaq	-112(%rbp), %rdx
	leaq	-224(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L2
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L9
.L2:
	movl	$1, -240(%rbp)
	jmp	.L4
.L8:
	movzbl	-224(%rbp), %eax
	movsbl	%al, %eax
	movl	%eax, -228(%rbp)
	movl	$0, -236(%rbp)
	jmp	.L5
.L6:
	movl	-236(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-224(%rbp,%rax), %edx
	movl	-236(%rbp), %eax
	cltq
	movb	%dl, -224(%rbp,%rax)
	addl	$1, -236(%rbp)
.L5:
	movl	-232(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -236(%rbp)
	jl	.L6
	movl	-228(%rbp), %eax
	movl	%eax, %edx
	movl	-236(%rbp), %eax
	cltq
	movb	%dl, -224(%rbp,%rax)
	leaq	-112(%rbp), %rdx
	leaq	-224(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L7
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L9
.L7:
	addl	$1, -240(%rbp)
.L4:
	movl	-240(%rbp), %eax
	cmpl	-232(%rbp), %eax
	jl	.L8
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L9:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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	"No"
.LC1:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	128(%rsp), %rbp
	movq	%rbx, %rdi
	call	gets@PLT
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	gets@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	movl	%eax, 12(%rsp)
	movq	%rax, (%rsp)
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L2
	movq	(%rsp), %rdx
	movl	$1, %r15d
	leaq	17(%rsp), %r14
	leal	-1(%rdx), %eax
	movl	%eax, (%rsp)
	movslq	%eax, %r13
	cmpq	$1, %rdx
	ja	.L3
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %r15d
	cmpl	%r15d, 12(%rsp)
	je	.L5
.L3:
	movl	(%rsp), %edx
	movzbl	16(%rsp), %r12d
	movq	%r14, %rsi
	movq	%rbx, %rdi
	call	memmove@PLT
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	movb	%r12b, 16(%rsp,%r13)
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L18
.L2:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L4:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$248, %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
.L5:
	.cfi_restore_state
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
	jmp	.L4
.L19:
	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	"No"
.LC1:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	128(%rsp), %rbp
	movq	%rbx, %rdi
	call	gets@PLT
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	gets@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	movl	%eax, 12(%rsp)
	movq	%rax, (%rsp)
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L2
	movq	(%rsp), %rdx
	movl	$1, %r15d
	leaq	17(%rsp), %r14
	leal	-1(%rdx), %eax
	movl	%eax, (%rsp)
	movslq	%eax, %r13
	cmpq	$1, %rdx
	ja	.L3
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %r15d
	cmpl	%r15d, 12(%rsp)
	je	.L5
.L3:
	movl	(%rsp), %edx
	movzbl	16(%rsp), %r12d
	movq	%r14, %rsi
	movq	%rbx, %rdi
	call	memmove@PLT
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	movb	%r12b, 16(%rsp,%r13)
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L18
.L2:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L4:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$248, %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
.L5:
	.cfi_restore_state
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
	jmp	.L4
.L19:
	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()
{
  int n, i, j, temp;
  char s[101], t[101];
  gets(s);
  gets(t);  
  n = strlen(s);
  if(strcmp(s,t)==0)
  {
      printf("Yes\n");
      return 0;
  }
  for(i=1; i<n; i++)
  {
      temp = s[0];
      for(j=0; j<n-1; j++)
      {
          s[j] = s[j+1];
      }
      s[j] = temp;
      
      if(strcmp(s,t)==0)
      {
          printf("Yes\n");
          return 0;
      }
  }
  printf("No\n");
  
  return 0;
}
aaaaaaaaaaaaaaab
aaaabaaaaaaaaaaa
 kyoto
tnkyo
 cba
arc
 aaaaaabaaaaaaaab
aaaabaaaaaaaaaaa
 kyoto
tmkyo
 cba
cra
 aaaaaabaaaaaaaab
aaaaaaaaaaabaaaa
 kyoso
tmkyo
 bca
cra
 baaaaaaaabaaaaaa
aaaaaaaaaaabaaaa

Yes
 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()
{
  int n, i, j, temp;
  char s[101], t[101];
  gets(s);
  gets(t);  
  n = strlen(s);
  if(strcmp(s,t)==0)
  {
      printf("Yes\n");
      return 0;
  }
  for(i=1; i<n; i++)
  {
      temp = s[0];
      for(j=0; j<n-1; j++)
      {
          s[j] = s[j+1];
      }
      s[j] = temp;
      
      if(strcmp(s,t)==0)
      {
          printf("Yes\n");
          return 0;
      }
  }
  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	$240, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	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
	leaq	-224(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -232(%rbp)
	leaq	-112(%rbp), %rdx
	leaq	-224(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L2
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L9
.L2:
	movl	$1, -240(%rbp)
	jmp	.L4
.L8:
	movzbl	-224(%rbp), %eax
	movsbl	%al, %eax
	movl	%eax, -228(%rbp)
	movl	$0, -236(%rbp)
	jmp	.L5
.L6:
	movl	-236(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-224(%rbp,%rax), %edx
	movl	-236(%rbp), %eax
	cltq
	movb	%dl, -224(%rbp,%rax)
	addl	$1, -236(%rbp)
.L5:
	movl	-232(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -236(%rbp)
	jl	.L6
	movl	-228(%rbp), %eax
	movl	%eax, %edx
	movl	-236(%rbp), %eax
	cltq
	movb	%dl, -224(%rbp,%rax)
	leaq	-112(%rbp), %rdx
	leaq	-224(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L7
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L9
.L7:
	addl	$1, -240(%rbp)
.L4:
	movl	-240(%rbp), %eax
	cmpl	-232(%rbp), %eax
	jl	.L8
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L9:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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	$240, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	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
	leaq	-224(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -232(%rbp)
	leaq	-112(%rbp), %rdx
	leaq	-224(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L2
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L9
.L2:
	movl	$1, -240(%rbp)
	jmp	.L4
.L8:
	movzbl	-224(%rbp), %eax
	movsbl	%al, %eax
	movl	%eax, -228(%rbp)
	movl	$0, -236(%rbp)
	jmp	.L5
.L6:
	movl	-236(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-224(%rbp,%rax), %edx
	movl	-236(%rbp), %eax
	cltq
	movb	%dl, -224(%rbp,%rax)
	addl	$1, -236(%rbp)
.L5:
	movl	-232(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -236(%rbp)
	jl	.L6
	movl	-228(%rbp), %eax
	movl	%eax, %edx
	movl	-236(%rbp), %eax
	cltq
	movb	%dl, -224(%rbp,%rax)
	leaq	-112(%rbp), %rdx
	leaq	-224(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L7
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L9
.L7:
	addl	$1, -240(%rbp)
.L4:
	movl	-240(%rbp), %eax
	cmpl	-232(%rbp), %eax
	jl	.L8
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L9:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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:
