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 angou[1000],i;
    scanf("%s",&angou);
    for(i=0;i<strlen(angou);i++)
    {
        angou[i]-=3;
        if(angou[i]<65)
            angou[i]+=26;
    }
    printf("%s\n",angou);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
	.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
	pushq	%rbx
	subq	$1032, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-1024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movb	$0, -1025(%rbp)
	jmp	.L2
.L4:
	movsbl	-1025(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	leal	-3(%rax), %edx
	movsbl	-1025(%rbp), %eax
	cltq
	movb	%dl, -1024(%rbp,%rax)
	movsbl	-1025(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	cmpb	$64, %al
	jg	.L3
	movsbl	-1025(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	leal	26(%rax), %edx
	movsbl	-1025(%rbp), %eax
	cltq
	movb	%dl, -1024(%rbp,%rax)
.L3:
	movzbl	-1025(%rbp), %eax
	addl	$1, %eax
	movb	%al, -1025(%rbp)
.L2:
	movsbq	-1025(%rbp), %rbx
	leaq	-1024(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L4
	leaq	-1024(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	movq	-8(%rbp), %rbx
	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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xorl	%ebx, %ebx
	subq	$1016, %rsp
	.cfi_def_cfa_offset 1040
	movq	%fs:40, %rax
	movq	%rax, 1000(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	movsbq	%bl, %rcx
	movzbl	(%rsp,%rcx), %edx
	leal	-3(%rdx), %eax
	addl	$23, %edx
	cmpb	$64, %al
	cmovle	%edx, %eax
	addl	$1, %ebx
	movb	%al, (%rsp,%rcx)
.L2:
	movq	%rbp, %rdi
	call	strlen@PLT
	movsbq	%bl, %rdx
	cmpq	%rax, %rdx
	jb	.L5
	movq	%rbp, %rdi
	call	puts@PLT
	movq	1000(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	addq	$1016, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L9:
	.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xorl	%ebx, %ebx
	subq	$1016, %rsp
	.cfi_def_cfa_offset 1040
	movq	%fs:40, %rax
	movq	%rax, 1000(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	movsbq	%bl, %rcx
	movzbl	(%rsp,%rcx), %edx
	leal	-3(%rdx), %eax
	addl	$23, %edx
	cmpb	$64, %al
	cmovle	%edx, %eax
	addl	$1, %ebx
	movb	%al, (%rsp,%rcx)
.L2:
	movq	%rbp, %rdi
	call	strlen@PLT
	movsbq	%bl, %rdx
	cmpq	%rax, %rdx
	jb	.L5
	movq	%rbp, %rdi
	call	puts@PLT
	movq	1000(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	addq	$1016, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L9:
	.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 angou[1000],i;
    scanf("%s",&angou);
    for(i=0;i<strlen(angou);i++)
    {
        angou[i]-=3;
        if(angou[i]<65)
            angou[i]+=26;
    }
    printf("%s\n",angou);
    return 0;
}
MRL

JOI

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 angou[1000],i;
    scanf("%s",&angou);
    for(i=0;i<strlen(angou);i++)
    {
        angou[i]-=3;
        if(angou[i]<65)
            angou[i]+=26;
    }
    printf("%s\n",angou);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
	.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
	pushq	%rbx
	subq	$1032, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-1024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movb	$0, -1025(%rbp)
	jmp	.L2
.L4:
	movsbl	-1025(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	leal	-3(%rax), %edx
	movsbl	-1025(%rbp), %eax
	cltq
	movb	%dl, -1024(%rbp,%rax)
	movsbl	-1025(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	cmpb	$64, %al
	jg	.L3
	movsbl	-1025(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	leal	26(%rax), %edx
	movsbl	-1025(%rbp), %eax
	cltq
	movb	%dl, -1024(%rbp,%rax)
.L3:
	movzbl	-1025(%rbp), %eax
	addl	$1, %eax
	movb	%al, -1025(%rbp)
.L2:
	movsbq	-1025(%rbp), %rbx
	leaq	-1024(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L4
	leaq	-1024(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	movq	-8(%rbp), %rbx
	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.
val
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
	.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
	pushq	%rbx
	subq	$1032, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-1024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movb	$0, -1025(%rbp)
	jmp	.L2
.L4:
	movsbl	-1025(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	leal	-3(%rax), %edx
	movsbl	-1025(%rbp), %eax
	cltq
	movb	%dl, -1024(%rbp,%rax)
	movsbl	-1025(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	cmpb	$64, %al
	jg	.L3
	movsbl	-1025(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	leal	26(%rax), %edx
	movsbl	-1025(%rbp), %eax
	cltq
	movb	%dl, -1024(%rbp,%rax)
.L3:
	movzbl	-1025(%rbp), %eax
	addl	$1, %eax
	movb	%al, -1025(%rbp)
.L2:
	movsbq	-1025(%rbp), %rbx
	leaq	-1024(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L4
	leaq	-1024(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	movq	-8(%rbp), %rbx
	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:
