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

#define N 200010
#define MAX 1000000000000000000
#define MOD 1000000007

#include <stdio.h>

int main (void) {
    char s[100], s1[50] = {0}, s2[50] = {0};
    int i;

    scanf("%s", s);

    strncpy(s1, s, strlen(s) / 2);
    strncpy(s2, s + (strlen(s) / 2  + 1), strlen(s) / 2);

    if (strcmp(s1, s2)) {
        puts("No");
        return 0;
    }

    for (i = 0; i < strlen(s1) / 2; i++) {
        if (s1[i] != s1[strlen(s1) - 1 - i]) {
            puts("No");
            return 0;
        }
    }

    puts("Yes");

    return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$264, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movq	$0, -256(%rbp)
	movq	$0, -248(%rbp)
	movq	$0, -240(%rbp)
	movq	$0, -232(%rbp)
	movq	$0, -224(%rbp)
	movq	$0, -216(%rbp)
	movw	$0, -208(%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)
	movw	$0, -144(%rbp)
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	shrq	%rax
	movq	%rax, %rdx
	leaq	-128(%rbp), %rcx
	leaq	-256(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncpy@PLT
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	shrq	%rax
	movq	%rax, %rbx
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	shrq	%rax
	leaq	1(%rax), %rdx
	leaq	-128(%rbp), %rax
	leaq	(%rax,%rdx), %rcx
	leaq	-192(%rbp), %rax
	movq	%rbx, %rdx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncpy@PLT
	leaq	-192(%rbp), %rdx
	leaq	-256(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L2
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L7
.L2:
	movl	$0, -260(%rbp)
	jmp	.L4
.L6:
	movl	-260(%rbp), %eax
	cltq
	movzbl	-256(%rbp,%rax), %ebx
	leaq	-256(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	-260(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	subq	$1, %rax
	movzbl	-256(%rbp,%rax), %eax
	cmpb	%al, %bl
	je	.L5
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L7
.L5:
	addl	$1, -260(%rbp)
.L4:
	movl	-260(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-256(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	shrq	%rax
	cmpq	%rax, %rbx
	jb	.L6
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L7:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"No"
.LC2:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$240, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	128(%rsp), %rbp
	movaps	%xmm0, (%rsp)
	movq	%rsp, %rbx
	movq	%rbp, %rsi
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	movw	%dx, 48(%rsp)
	movw	%cx, 112(%rsp)
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movl	$50, %ecx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	shrq	%rax
	movq	%rax, %rdx
	movq	%rax, %r12
	call	__strncpy_chk@PLT
	leaq	64(%rsp), %r8
	leaq	1(%rbp,%r12), %rsi
	movq	%r12, %rdx
	movq	%r8, %rdi
	movl	$50, %ecx
	call	__strncpy_chk@PLT
	movq	%rbx, %rdi
	movq	%rax, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L2
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rbx, %rdx
	movq	%rax, %rdi
	leaq	(%rbx,%rax), %rcx
	shrq	%rdi
	addq	%rbx, %rdi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	movzbl	(%rdx), %esi
	movzbl	-1(%rcx), %eax
	addq	$1, %rdx
	subq	$1, %rcx
	cmpb	%al, %sil
	jne	.L2
.L3:
	cmpq	%rdi, %rdx
	jne	.L5
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L4
.L2:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L4:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	addq	$240, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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	"No"
.LC2:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$240, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	128(%rsp), %rbp
	movaps	%xmm0, (%rsp)
	movq	%rsp, %rbx
	movq	%rbp, %rsi
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	movw	%dx, 48(%rsp)
	movw	%cx, 112(%rsp)
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movl	$50, %ecx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	shrq	%rax
	movq	%rax, %rdx
	movq	%rax, %r12
	call	__strncpy_chk@PLT
	leaq	64(%rsp), %r8
	leaq	1(%rbp,%r12), %rsi
	movq	%r12, %rdx
	movq	%r8, %rdi
	movl	$50, %ecx
	call	__strncpy_chk@PLT
	movq	%rbx, %rdi
	movq	%rax, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L2
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rbx, %rdx
	movq	%rax, %rdi
	leaq	(%rbx,%rax), %rcx
	shrq	%rdi
	addq	%rbx, %rdi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	movzbl	(%rdx), %esi
	movzbl	-1(%rcx), %eax
	addq	$1, %rdx
	subq	$1, %rcx
	cmpb	%al, %sil
	jne	.L2
.L3:
	cmpq	%rdi, %rdx
	jne	.L5
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L4
.L2:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L4:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	addq	$240, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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 <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>

#define N 200010
#define MAX 1000000000000000000
#define MOD 1000000007

#include <stdio.h>

int main (void) {
    char s[100], s1[50] = {0}, s2[50] = {0};
    int i;

    scanf("%s", s);

    strncpy(s1, s, strlen(s) / 2);
    strncpy(s2, s + (strlen(s) / 2  + 1), strlen(s) / 2);

    if (strcmp(s1, s2)) {
        puts("No");
        return 0;
    }

    for (i = 0; i < strlen(s1) / 2; i++) {
        if (s1[i] != s1[strlen(s1) - 1 - i]) {
            puts("No");
            return 0;
        }
    }

    puts("Yes");

    return 0;
}


akas`ka
 redocta
 llvee
 akas`ja
 rfdocta
 elvle
 ak`saja
 redodta
 elvld
 `k`saja

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

#define N 200010
#define MAX 1000000000000000000
#define MOD 1000000007

#include <stdio.h>

int main (void) {
    char s[100], s1[50] = {0}, s2[50] = {0};
    int i;

    scanf("%s", s);

    strncpy(s1, s, strlen(s) / 2);
    strncpy(s2, s + (strlen(s) / 2  + 1), strlen(s) / 2);

    if (strcmp(s1, s2)) {
        puts("No");
        return 0;
    }

    for (i = 0; i < strlen(s1) / 2; i++) {
        if (s1[i] != s1[strlen(s1) - 1 - i]) {
            puts("No");
            return 0;
        }
    }

    puts("Yes");

    return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$264, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movq	$0, -256(%rbp)
	movq	$0, -248(%rbp)
	movq	$0, -240(%rbp)
	movq	$0, -232(%rbp)
	movq	$0, -224(%rbp)
	movq	$0, -216(%rbp)
	movw	$0, -208(%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)
	movw	$0, -144(%rbp)
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	shrq	%rax
	movq	%rax, %rdx
	leaq	-128(%rbp), %rcx
	leaq	-256(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncpy@PLT
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	shrq	%rax
	movq	%rax, %rbx
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	shrq	%rax
	leaq	1(%rax), %rdx
	leaq	-128(%rbp), %rax
	leaq	(%rax,%rdx), %rcx
	leaq	-192(%rbp), %rax
	movq	%rbx, %rdx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncpy@PLT
	leaq	-192(%rbp), %rdx
	leaq	-256(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L2
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L7
.L2:
	movl	$0, -260(%rbp)
	jmp	.L4
.L6:
	movl	-260(%rbp), %eax
	cltq
	movzbl	-256(%rbp,%rax), %ebx
	leaq	-256(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	-260(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	subq	$1, %rax
	movzbl	-256(%rbp,%rax), %eax
	cmpb	%al, %bl
	je	.L5
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L7
.L5:
	addl	$1, -260(%rbp)
.L4:
	movl	-260(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-256(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	shrq	%rax
	cmpq	%rax, %rbx
	jb	.L6
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L7:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"No"
.LC2:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$264, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movq	$0, -256(%rbp)
	movq	$0, -248(%rbp)
	movq	$0, -240(%rbp)
	movq	$0, -232(%rbp)
	movq	$0, -224(%rbp)
	movq	$0, -216(%rbp)
	movw	$0, -208(%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)
	movw	$0, -144(%rbp)
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	shrq	%rax
	movq	%rax, %rdx
	leaq	-128(%rbp), %rcx
	leaq	-256(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncpy@PLT
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	shrq	%rax
	movq	%rax, %rbx
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	shrq	%rax
	leaq	1(%rax), %rdx
	leaq	-128(%rbp), %rax
	leaq	(%rax,%rdx), %rcx
	leaq	-192(%rbp), %rax
	movq	%rbx, %rdx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncpy@PLT
	leaq	-192(%rbp), %rdx
	leaq	-256(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L2
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L7
.L2:
	movl	$0, -260(%rbp)
	jmp	.L4
.L6:
	movl	-260(%rbp), %eax
	cltq
	movzbl	-256(%rbp,%rax), %ebx
	leaq	-256(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	-260(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	subq	$1, %rax
	movzbl	-256(%rbp,%rax), %eax
	cmpb	%al, %bl
	je	.L5
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L7
.L5:
	addl	$1, -260(%rbp)
.L4:
	movl	-260(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-256(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	shrq	%rax
	cmpq	%rax, %rbx
	jb	.L6
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L7:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
