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>
#include <string.h>

int main(void) {
	char S[128], T[128];
	size_t len, i;
	if (scanf("%127s", S) != 1) return 1;
	if (scanf("%127s", T) != 1) return 1;
	len = strlen(S);
	for (i = 0; i < len; i++) {
		char temp;
		if (strcmp(S, T) == 0) {
			puts("Yes");
			return 0;
		}
		temp = S[len - 1];
		memmove(S + 1, S, len - 1);
		S[0] = temp;
	}
	puts("No");
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%127s"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	subq	$280, %rsp
	.cfi_def_cfa_offset 336
	movq	%fs:40, %rax
	movq	%rax, 264(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L2
.L4:
	movl	$1, %r12d
.L1:
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$280, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r12d, %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
.L2:
	.cfi_restore_state
	leaq	128(%rsp), %r15
	xorl	%eax, %eax
	movq	%rbp, %rdi
	movq	%r15, %rsi
	call	__isoc99_scanf@PLT
	subl	$1, %eax
	jne	.L4
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, %r14
	testq	%rax, %rax
	je	.L5
	xorl	%ebp, %ebp
	leaq	-1(%rax), %r13
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	movzbl	(%rsp,%r13), %r12d
	leaq	1(%rsp), %rdi
	movq	%r13, %rdx
	movq	%rbx, %rsi
	movl	$127, %ecx
	addq	$1, %rbp
	call	__memmove_chk@PLT
	movb	%r12b, (%rsp)
	cmpq	%rbp, %r14
	je	.L5
.L7:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	call	strcmp@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L6
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L1
.L5:
	leaq	.LC2(%rip), %rdi
	xorl	%r12d, %r12d
	call	puts@PLT
	jmp	.L1
.L15:
	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:
```

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	"%127s"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	subq	$280, %rsp
	.cfi_def_cfa_offset 336
	movq	%fs:40, %rax
	movq	%rax, 264(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L2
.L4:
	movl	$1, %r12d
.L1:
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$280, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r12d, %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
.L2:
	.cfi_restore_state
	leaq	128(%rsp), %r15
	xorl	%eax, %eax
	movq	%rbp, %rdi
	movq	%r15, %rsi
	call	__isoc99_scanf@PLT
	subl	$1, %eax
	jne	.L4
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, %r14
	testq	%rax, %rax
	je	.L5
	xorl	%ebp, %ebp
	leaq	-1(%rax), %r13
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	movzbl	(%rsp,%r13), %r12d
	leaq	1(%rsp), %rdi
	movq	%r13, %rdx
	movq	%rbx, %rsi
	movl	$127, %ecx
	addq	$1, %rbp
	call	__memmove_chk@PLT
	movb	%r12b, (%rsp)
	cmpq	%rbp, %r14
	je	.L5
.L7:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	call	strcmp@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L6
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L1
.L5:
	leaq	.LC2(%rip), %rdi
	xorl	%r12d, %r12d
	call	puts@PLT
	jmp	.L1
.L15:
	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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%127s"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	subq	$280, %rsp
	.cfi_def_cfa_offset 336
	movq	%fs:40, %rax
	movq	%rax, 264(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L2
.L4:
	movl	$1, %r12d
.L1:
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$280, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r12d, %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
.L2:
	.cfi_restore_state
	leaq	128(%rsp), %r15
	xorl	%eax, %eax
	movq	%rbp, %rdi
	movq	%r15, %rsi
	call	__isoc99_scanf@PLT
	subl	$1, %eax
	jne	.L4
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, %r14
	testq	%rax, %rax
	je	.L5
	xorl	%ebp, %ebp
	leaq	-1(%rax), %r13
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	movzbl	(%rsp,%r13), %r12d
	leaq	1(%rsp), %rdi
	movq	%r13, %rdx
	movq	%rbx, %rsi
	movl	$127, %ecx
	addq	$1, %rbp
	call	__memmove_chk@PLT
	movb	%r12b, (%rsp)
	cmpq	%rbp, %r14
	je	.L5
.L7:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	call	strcmp@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L6
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L1
.L5:
	leaq	.LC2(%rip), %rdi
	xorl	%r12d, %r12d
	call	puts@PLT
	jmp	.L1
.L15:
	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:
```
```c
#include <stdio.h>
#include <string.h>

int main(void) {
	char S[128], T[128];
	size_t len, i;
	if (scanf("%127s", S) != 1) return 1;
	if (scanf("%127s", T) != 1) return 1;
	len = strlen(S);
	for (i = 0; i < len; i++) {
		char temp;
		if (strcmp(S, T) == 0) {
			puts("Yes");
			return 0;
		}
		temp = S[len - 1];
		memmove(S + 1, S, len - 1);
		S[0] = temp;
	}
	puts("No");
	return 0;
}
```
Given the following C 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 S[128], T[128];
	size_t len, i;
	if (scanf("%127s", S) != 1) return 1;
	if (scanf("%127s", T) != 1) return 1;
	len = strlen(S);
	for (i = 0; i < len; i++) {
		char temp;
		if (strcmp(S, T) == 0) {
			puts("Yes");
			return 0;
		}
		temp = S[len - 1];
		memmove(S + 1, S, len - 1);
		S[0] = temp;
	}
	puts("No");
	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:

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 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 S[128], T[128];
	size_t len, i;
	if (scanf("%127s", S) != 1) return 1;
	if (scanf("%127s", T) != 1) return 1;
	len = strlen(S);
	for (i = 0; i < len; i++) {
		char temp;
		if (strcmp(S, T) == 0) {
			puts("Yes");
			return 0;
		}
		temp = S[len - 1];
		memmove(S + 1, S, len - 1);
		S[0] = temp;
	}
	puts("No");
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%127s"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	subq	$280, %rsp
	.cfi_def_cfa_offset 336
	movq	%fs:40, %rax
	movq	%rax, 264(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L2
.L4:
	movl	$1, %r12d
.L1:
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$280, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r12d, %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
.L2:
	.cfi_restore_state
	leaq	128(%rsp), %r15
	xorl	%eax, %eax
	movq	%rbp, %rdi
	movq	%r15, %rsi
	call	__isoc99_scanf@PLT
	subl	$1, %eax
	jne	.L4
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, %r14
	testq	%rax, %rax
	je	.L5
	xorl	%ebp, %ebp
	leaq	-1(%rax), %r13
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	movzbl	(%rsp,%r13), %r12d
	leaq	1(%rsp), %rdi
	movq	%r13, %rdx
	movq	%rbx, %rsi
	movl	$127, %ecx
	addq	$1, %rbp
	call	__memmove_chk@PLT
	movb	%r12b, (%rsp)
	cmpq	%rbp, %r14
	je	.L5
.L7:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	call	strcmp@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L6
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L1
.L5:
	leaq	.LC2(%rip), %rdi
	xorl	%r12d, %r12d
	call	puts@PLT
	jmp	.L1
.L15:
	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:
```

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	"%127s"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	subq	$280, %rsp
	.cfi_def_cfa_offset 336
	movq	%fs:40, %rax
	movq	%rax, 264(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L2
.L4:
	movl	$1, %r12d
.L1:
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$280, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r12d, %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
.L2:
	.cfi_restore_state
	leaq	128(%rsp), %r15
	xorl	%eax, %eax
	movq	%rbp, %rdi
	movq	%r15, %rsi
	call	__isoc99_scanf@PLT
	subl	$1, %eax
	jne	.L4
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, %r14
	testq	%rax, %rax
	je	.L5
	xorl	%ebp, %ebp
	leaq	-1(%rax), %r13
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	movzbl	(%rsp,%r13), %r12d
	leaq	1(%rsp), %rdi
	movq	%r13, %rdx
	movq	%rbx, %rsi
	movl	$127, %ecx
	addq	$1, %rbp
	call	__memmove_chk@PLT
	movb	%r12b, (%rsp)
	cmpq	%rbp, %r14
	je	.L5
.L7:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	call	strcmp@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L6
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L1
.L5:
	leaq	.LC2(%rip), %rdi
	xorl	%r12d, %r12d
	call	puts@PLT
	jmp	.L1
.L15:
	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:
```