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>

int is_palindrome(char s[], int l)
{
	int i;
	for (i = 0; i < l / 2; i++) if (s[i] != s[l-1-i]) break;
	if (i < l / 2) return 0;
	else return 1;
}

int main()
{
	char S[100];
	scanf("%s", S);

	int i, l;
	for (l = 0; S[l] != 0; l++);
	if (is_palindrome(S, l) + is_palindrome(S, (l - 1) / 2) + is_palindrome(&(S[(l+1)/2]), (l - 1) / 2) == 3) printf("Yes\n");
	else printf("No\n");
	fflush(stdout);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	is_palindrome
	.type	is_palindrome, @function
is_palindrome:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	cmpl	$1, %esi
	jle	.L4
	leal	-1(%rsi), %eax
	xorl	%edx, %edx
	cltq
	addq	%rdi, %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$1, %rdx
	subq	$1, %rax
	cmpl	%edx, %ecx
	jle	.L4
.L3:
	movzbl	(%rax), %esi
	cmpb	%sil, (%rdi,%rdx)
	je	.L8
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	is_palindrome, .-is_palindrome
	.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:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	cmpb	$0, (%rsp)
	je	.L10
	leaq	1(%rsp), %rdi
	xorl	%ecx, %ecx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$1, %rax
	movl	%ecx, %edx
	leal	1(%rcx), %ecx
	cmpb	$0, -1(%rax)
	jne	.L11
	movl	%ecx, %esi
	sarl	%esi
	je	.L10
	movslq	%edx, %rcx
	subl	$1, %esi
	movq	%rbx, %rax
	addq	%rbx, %rcx
	addq	%rdi, %rsi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L43:
	addq	$1, %rax
	subq	$1, %rcx
	cmpq	%rax, %rsi
	je	.L42
.L13:
	movzbl	(%rcx), %edi
	cmpb	%dil, (%rax)
	je	.L43
	movl	%edx, %r8d
	movl	%edx, %esi
	movl	$1, %r10d
	xorl	%r9d, %r9d
	sarl	%r8d
	sarl	$2, %esi
	cmpl	$3, %edx
	jle	.L18
.L23:
	leal	-1(%r8), %edi
	movslq	%r8d, %r8
	xorl	%eax, %eax
	addq	%rbx, %r8
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L45:
	addq	$1, %rax
	cmpl	%eax, %esi
	jle	.L44
.L16:
	movq	%rax, %rcx
	negq	%rcx
	movzbl	-1(%r8,%rcx), %ecx
	cmpb	%cl, (%rbx,%rax)
	je	.L45
	leal	2(%rdx), %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	addq	%rbx, %rcx
.L22:
	movslq	%edi, %rdx
	xorl	%eax, %eax
	addq	%rcx, %rdx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L47:
	addq	$1, %rax
	subq	$1, %rdx
	cmpl	%eax, %esi
	jle	.L46
.L19:
	movzbl	(%rdx), %ebx
	cmpb	%bl, (%rcx,%rax)
	je	.L47
.L18:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L21:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L48
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L42:
	.cfi_restore_state
	movl	%edx, %r8d
	movl	%edx, %esi
	movl	$2, %r10d
	movl	$1, %r9d
	sarl	%r8d
	sarl	$2, %esi
	cmpl	$3, %edx
	jg	.L23
	jmp	.L10
.L44:
	leal	2(%rdx), %ecx
	movl	%r10d, %r9d
	sarl	%ecx
	movslq	%ecx, %rcx
	addq	%rbx, %rcx
	jmp	.L22
.L46:
	cmpl	$2, %r9d
	jne	.L18
.L10:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L21
.L48:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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
	.p2align 4
	.globl	is_palindrome
	.type	is_palindrome, @function
is_palindrome:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	cmpl	$1, %esi
	jle	.L4
	leal	-1(%rsi), %eax
	xorl	%edx, %edx
	cltq
	addq	%rdi, %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$1, %rdx
	subq	$1, %rax
	cmpl	%edx, %ecx
	jle	.L4
.L3:
	movzbl	(%rax), %esi
	cmpb	%sil, (%rdi,%rdx)
	je	.L8
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	is_palindrome, .-is_palindrome
	.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:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	cmpb	$0, (%rsp)
	je	.L10
	leaq	1(%rsp), %rdi
	xorl	%ecx, %ecx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$1, %rax
	movl	%ecx, %edx
	leal	1(%rcx), %ecx
	cmpb	$0, -1(%rax)
	jne	.L11
	movl	%ecx, %esi
	sarl	%esi
	je	.L10
	movslq	%edx, %rcx
	subl	$1, %esi
	movq	%rbx, %rax
	addq	%rbx, %rcx
	addq	%rdi, %rsi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L43:
	addq	$1, %rax
	subq	$1, %rcx
	cmpq	%rax, %rsi
	je	.L42
.L13:
	movzbl	(%rcx), %edi
	cmpb	%dil, (%rax)
	je	.L43
	movl	%edx, %r8d
	movl	%edx, %esi
	movl	$1, %r10d
	xorl	%r9d, %r9d
	sarl	%r8d
	sarl	$2, %esi
	cmpl	$3, %edx
	jle	.L18
.L23:
	leal	-1(%r8), %edi
	movslq	%r8d, %r8
	xorl	%eax, %eax
	addq	%rbx, %r8
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L45:
	addq	$1, %rax
	cmpl	%eax, %esi
	jle	.L44
.L16:
	movq	%rax, %rcx
	negq	%rcx
	movzbl	-1(%r8,%rcx), %ecx
	cmpb	%cl, (%rbx,%rax)
	je	.L45
	leal	2(%rdx), %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	addq	%rbx, %rcx
.L22:
	movslq	%edi, %rdx
	xorl	%eax, %eax
	addq	%rcx, %rdx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L47:
	addq	$1, %rax
	subq	$1, %rdx
	cmpl	%eax, %esi
	jle	.L46
.L19:
	movzbl	(%rdx), %ebx
	cmpb	%bl, (%rcx,%rax)
	je	.L47
.L18:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L21:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L48
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L42:
	.cfi_restore_state
	movl	%edx, %r8d
	movl	%edx, %esi
	movl	$2, %r10d
	movl	$1, %r9d
	sarl	%r8d
	sarl	$2, %esi
	cmpl	$3, %edx
	jg	.L23
	jmp	.L10
.L44:
	leal	2(%rdx), %ecx
	movl	%r10d, %r9d
	sarl	%ecx
	movslq	%ecx, %rcx
	addq	%rbx, %rcx
	jmp	.L22
.L46:
	cmpl	$2, %r9d
	jne	.L18
.L10:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L21
.L48:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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
	.p2align 4
	.globl	is_palindrome
	.type	is_palindrome, @function
is_palindrome:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	cmpl	$1, %esi
	jle	.L4
	leal	-1(%rsi), %eax
	xorl	%edx, %edx
	cltq
	addq	%rdi, %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$1, %rdx
	subq	$1, %rax
	cmpl	%edx, %ecx
	jle	.L4
.L3:
	movzbl	(%rax), %esi
	cmpb	%sil, (%rdi,%rdx)
	je	.L8
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	is_palindrome, .-is_palindrome
	.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:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	cmpb	$0, (%rsp)
	je	.L10
	leaq	1(%rsp), %rdi
	xorl	%ecx, %ecx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$1, %rax
	movl	%ecx, %edx
	leal	1(%rcx), %ecx
	cmpb	$0, -1(%rax)
	jne	.L11
	movl	%ecx, %esi
	sarl	%esi
	je	.L10
	movslq	%edx, %rcx
	subl	$1, %esi
	movq	%rbx, %rax
	addq	%rbx, %rcx
	addq	%rdi, %rsi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L43:
	addq	$1, %rax
	subq	$1, %rcx
	cmpq	%rax, %rsi
	je	.L42
.L13:
	movzbl	(%rcx), %edi
	cmpb	%dil, (%rax)
	je	.L43
	movl	%edx, %r8d
	movl	%edx, %esi
	movl	$1, %r10d
	xorl	%r9d, %r9d
	sarl	%r8d
	sarl	$2, %esi
	cmpl	$3, %edx
	jle	.L18
.L23:
	leal	-1(%r8), %edi
	movslq	%r8d, %r8
	xorl	%eax, %eax
	addq	%rbx, %r8
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L45:
	addq	$1, %rax
	cmpl	%eax, %esi
	jle	.L44
.L16:
	movq	%rax, %rcx
	negq	%rcx
	movzbl	-1(%r8,%rcx), %ecx
	cmpb	%cl, (%rbx,%rax)
	je	.L45
	leal	2(%rdx), %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	addq	%rbx, %rcx
.L22:
	movslq	%edi, %rdx
	xorl	%eax, %eax
	addq	%rcx, %rdx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L47:
	addq	$1, %rax
	subq	$1, %rdx
	cmpl	%eax, %esi
	jle	.L46
.L19:
	movzbl	(%rdx), %ebx
	cmpb	%bl, (%rcx,%rax)
	je	.L47
.L18:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L21:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L48
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L42:
	.cfi_restore_state
	movl	%edx, %r8d
	movl	%edx, %esi
	movl	$2, %r10d
	movl	$1, %r9d
	sarl	%r8d
	sarl	$2, %esi
	cmpl	$3, %edx
	jg	.L23
	jmp	.L10
.L44:
	leal	2(%rdx), %ecx
	movl	%r10d, %r9d
	sarl	%ecx
	movslq	%ecx, %rcx
	addq	%rbx, %rcx
	jmp	.L22
.L46:
	cmpl	$2, %r9d
	jne	.L18
.L10:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L21
.L48:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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>

int is_palindrome(char s[], int l)
{
	int i;
	for (i = 0; i < l / 2; i++) if (s[i] != s[l-1-i]) break;
	if (i < l / 2) return 0;
	else return 1;
}

int main()
{
	char S[100];
	scanf("%s", S);

	int i, l;
	for (l = 0; S[l] != 0; l++);
	if (is_palindrome(S, l) + is_palindrome(S, (l - 1) / 2) + is_palindrome(&(S[(l+1)/2]), (l - 1) / 2) == 3) printf("Yes\n");
	else printf("No\n");
	fflush(stdout);
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int is_palindrome(char s[], int l)
{
	int i;
	for (i = 0; i < l / 2; i++) if (s[i] != s[l-1-i]) break;
	if (i < l / 2) return 0;
	else return 1;
}

int main()
{
	char S[100];
	scanf("%s", S);

	int i, l;
	for (l = 0; S[l] != 0; l++);
	if (is_palindrome(S, l) + is_palindrome(S, (l - 1) / 2) + is_palindrome(&(S[(l+1)/2]), (l - 1) / 2) == 3) printf("Yes\n");
	else printf("No\n");
	fflush(stdout);
	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:

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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int is_palindrome(char s[], int l)
{
	int i;
	for (i = 0; i < l / 2; i++) if (s[i] != s[l-1-i]) break;
	if (i < l / 2) return 0;
	else return 1;
}

int main()
{
	char S[100];
	scanf("%s", S);

	int i, l;
	for (l = 0; S[l] != 0; l++);
	if (is_palindrome(S, l) + is_palindrome(S, (l - 1) / 2) + is_palindrome(&(S[(l+1)/2]), (l - 1) / 2) == 3) printf("Yes\n");
	else printf("No\n");
	fflush(stdout);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	is_palindrome
	.type	is_palindrome, @function
is_palindrome:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	cmpl	$1, %esi
	jle	.L4
	leal	-1(%rsi), %eax
	xorl	%edx, %edx
	cltq
	addq	%rdi, %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$1, %rdx
	subq	$1, %rax
	cmpl	%edx, %ecx
	jle	.L4
.L3:
	movzbl	(%rax), %esi
	cmpb	%sil, (%rdi,%rdx)
	je	.L8
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	is_palindrome, .-is_palindrome
	.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:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	cmpb	$0, (%rsp)
	je	.L10
	leaq	1(%rsp), %rdi
	xorl	%ecx, %ecx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$1, %rax
	movl	%ecx, %edx
	leal	1(%rcx), %ecx
	cmpb	$0, -1(%rax)
	jne	.L11
	movl	%ecx, %esi
	sarl	%esi
	je	.L10
	movslq	%edx, %rcx
	subl	$1, %esi
	movq	%rbx, %rax
	addq	%rbx, %rcx
	addq	%rdi, %rsi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L43:
	addq	$1, %rax
	subq	$1, %rcx
	cmpq	%rax, %rsi
	je	.L42
.L13:
	movzbl	(%rcx), %edi
	cmpb	%dil, (%rax)
	je	.L43
	movl	%edx, %r8d
	movl	%edx, %esi
	movl	$1, %r10d
	xorl	%r9d, %r9d
	sarl	%r8d
	sarl	$2, %esi
	cmpl	$3, %edx
	jle	.L18
.L23:
	leal	-1(%r8), %edi
	movslq	%r8d, %r8
	xorl	%eax, %eax
	addq	%rbx, %r8
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L45:
	addq	$1, %rax
	cmpl	%eax, %esi
	jle	.L44
.L16:
	movq	%rax, %rcx
	negq	%rcx
	movzbl	-1(%r8,%rcx), %ecx
	cmpb	%cl, (%rbx,%rax)
	je	.L45
	leal	2(%rdx), %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	addq	%rbx, %rcx
.L22:
	movslq	%edi, %rdx
	xorl	%eax, %eax
	addq	%rcx, %rdx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L47:
	addq	$1, %rax
	subq	$1, %rdx
	cmpl	%eax, %esi
	jle	.L46
.L19:
	movzbl	(%rdx), %ebx
	cmpb	%bl, (%rcx,%rax)
	je	.L47
.L18:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L21:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L48
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L42:
	.cfi_restore_state
	movl	%edx, %r8d
	movl	%edx, %esi
	movl	$2, %r10d
	movl	$1, %r9d
	sarl	%r8d
	sarl	$2, %esi
	cmpl	$3, %edx
	jg	.L23
	jmp	.L10
.L44:
	leal	2(%rdx), %ecx
	movl	%r10d, %r9d
	sarl	%ecx
	movslq	%ecx, %rcx
	addq	%rbx, %rcx
	jmp	.L22
.L46:
	cmpl	$2, %r9d
	jne	.L18
.L10:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L21
.L48:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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
	.p2align 4
	.globl	is_palindrome
	.type	is_palindrome, @function
is_palindrome:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	cmpl	$1, %esi
	jle	.L4
	leal	-1(%rsi), %eax
	xorl	%edx, %edx
	cltq
	addq	%rdi, %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$1, %rdx
	subq	$1, %rax
	cmpl	%edx, %ecx
	jle	.L4
.L3:
	movzbl	(%rax), %esi
	cmpb	%sil, (%rdi,%rdx)
	je	.L8
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	is_palindrome, .-is_palindrome
	.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:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	cmpb	$0, (%rsp)
	je	.L10
	leaq	1(%rsp), %rdi
	xorl	%ecx, %ecx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$1, %rax
	movl	%ecx, %edx
	leal	1(%rcx), %ecx
	cmpb	$0, -1(%rax)
	jne	.L11
	movl	%ecx, %esi
	sarl	%esi
	je	.L10
	movslq	%edx, %rcx
	subl	$1, %esi
	movq	%rbx, %rax
	addq	%rbx, %rcx
	addq	%rdi, %rsi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L43:
	addq	$1, %rax
	subq	$1, %rcx
	cmpq	%rax, %rsi
	je	.L42
.L13:
	movzbl	(%rcx), %edi
	cmpb	%dil, (%rax)
	je	.L43
	movl	%edx, %r8d
	movl	%edx, %esi
	movl	$1, %r10d
	xorl	%r9d, %r9d
	sarl	%r8d
	sarl	$2, %esi
	cmpl	$3, %edx
	jle	.L18
.L23:
	leal	-1(%r8), %edi
	movslq	%r8d, %r8
	xorl	%eax, %eax
	addq	%rbx, %r8
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L45:
	addq	$1, %rax
	cmpl	%eax, %esi
	jle	.L44
.L16:
	movq	%rax, %rcx
	negq	%rcx
	movzbl	-1(%r8,%rcx), %ecx
	cmpb	%cl, (%rbx,%rax)
	je	.L45
	leal	2(%rdx), %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	addq	%rbx, %rcx
.L22:
	movslq	%edi, %rdx
	xorl	%eax, %eax
	addq	%rcx, %rdx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L47:
	addq	$1, %rax
	subq	$1, %rdx
	cmpl	%eax, %esi
	jle	.L46
.L19:
	movzbl	(%rdx), %ebx
	cmpb	%bl, (%rcx,%rax)
	je	.L47
.L18:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L21:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L48
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L42:
	.cfi_restore_state
	movl	%edx, %r8d
	movl	%edx, %esi
	movl	$2, %r10d
	movl	$1, %r9d
	sarl	%r8d
	sarl	$2, %esi
	cmpl	$3, %edx
	jg	.L23
	jmp	.L10
.L44:
	leal	2(%rdx), %ecx
	movl	%r10d, %r9d
	sarl	%ecx
	movslq	%ecx, %rcx
	addq	%rbx, %rcx
	jmp	.L22
.L46:
	cmpl	$2, %r9d
	jne	.L18
.L10:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L21
.L48:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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:
```