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>
char s[100000];
int main(){
	int n;
	scanf("%d",&n);
	scanf("%s",&s);
	int length=strlen(s);
	for(int i=0;i<length;i++){
		if(s[i]+n>'Z'){
			s[i]=s[i]-(26-n);
		}else{
			s[i]+=n;
		}
		
	}
	printf("%s",s);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 100000
s:
	.zero	100000
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -12(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L2
.L5:
	movl	-16(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	cmpl	$90, %eax
	jle	.L3
	movl	-16(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	subl	$26, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	jmp	.L4
.L3:
	movl	-16(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movb	%cl, (%rax,%rdx)
.L4:
	addl	$1, -16(%rbp)
.L2:
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jl	.L5
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	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	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	leaq	s(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC1(%rip), %rbp
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	xorl	%eax, %eax
	movq	%r12, %rsi
	call	__isoc99_scanf@PLT
	movq	%r12, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L6
	movl	4(%rsp), %edx
	movq	%rax, %rcx
	leal	-1(%rax), %eax
	leal	-26(%rdx), %edi
	cmpl	$14, %eax
	jbe	.L40
	movd	%edx, %xmm4
	movl	%ecx, %esi
	movd	%edi, %xmm5
	movq	%r12, %rax
	pshufd	$0, %xmm4, %xmm3
	shrl	$4, %esi
	movd	%edx, %xmm4
	punpcklbw	%xmm5, %xmm5
	punpcklbw	%xmm4, %xmm4
	punpcklwd	%xmm5, %xmm5
	leaq	16(%r12), %r8
	subl	$1, %esi
	punpcklwd	%xmm4, %xmm4
	salq	$4, %rsi
	movdqa	.LC2(%rip), %xmm2
	movdqa	.LC3(%rip), %xmm7
	pshufd	$0, %xmm5, %xmm5
	pshufd	$0, %xmm4, %xmm4
	pxor	%xmm6, %xmm6
	addq	%r8, %rsi
	pxor	%xmm8, %xmm8
	.p2align 4,,10
	.p2align 3
.L4:
	movdqa	(%rax), %xmm9
	movdqa	%xmm8, %xmm0
	movdqa	%xmm6, %xmm11
	addq	$16, %rax
	pcmpgtb	%xmm9, %xmm0
	movdqa	%xmm9, %xmm1
	movdqa	%xmm9, %xmm10
	punpcklbw	%xmm0, %xmm1
	punpckhbw	%xmm0, %xmm10
	pcmpgtw	%xmm1, %xmm11
	movdqa	%xmm1, %xmm0
	punpcklwd	%xmm11, %xmm0
	punpckhwd	%xmm11, %xmm1
	paddd	%xmm3, %xmm0
	paddd	%xmm3, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pcmpgtd	%xmm2, %xmm0
	movdqa	%xmm0, %xmm11
	punpcklwd	%xmm1, %xmm0
	punpckhwd	%xmm1, %xmm11
	movdqa	%xmm0, %xmm1
	punpckhwd	%xmm11, %xmm1
	punpcklwd	%xmm11, %xmm0
	movdqa	%xmm6, %xmm11
	pcmpgtw	%xmm10, %xmm11
	punpcklwd	%xmm1, %xmm0
	movdqa	%xmm10, %xmm1
	pand	%xmm7, %xmm0
	punpcklwd	%xmm11, %xmm1
	punpckhwd	%xmm11, %xmm10
	paddd	%xmm3, %xmm1
	paddd	%xmm3, %xmm10
	pcmpgtd	%xmm2, %xmm10
	pcmpgtd	%xmm2, %xmm1
	movdqa	%xmm1, %xmm11
	punpcklwd	%xmm10, %xmm1
	punpckhwd	%xmm10, %xmm11
	movdqa	%xmm1, %xmm10
	punpckhwd	%xmm11, %xmm10
	punpcklwd	%xmm11, %xmm1
	punpcklwd	%xmm10, %xmm1
	pand	%xmm7, %xmm1
	packuswb	%xmm1, %xmm0
	movdqa	%xmm9, %xmm1
	paddb	%xmm4, %xmm9
	paddb	%xmm5, %xmm1
	pand	%xmm0, %xmm1
	pandn	%xmm9, %xmm0
	por	%xmm1, %xmm0
	movaps	%xmm0, -16(%rax)
	cmpq	%rsi, %rax
	jne	.L4
	movl	%ecx, %eax
	andl	$-16, %eax
	testb	$15, %cl
	je	.L6
.L3:
	movslq	%eax, %r9
	movsbl	(%r12,%r9), %r8d
	movl	%r8d, %esi
	addl	%edx, %r8d
	leal	(%rdi,%rsi), %r10d
	addl	%edx, %esi
	cmpl	$91, %r8d
	cmovge	%r10d, %esi
	movb	%sil, (%r12,%r9)
	leal	1(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %r8
	movsbl	(%r12,%r8), %r9d
	movl	%r9d, %esi
	addl	%edx, %r9d
	leal	(%rdi,%rsi), %r10d
	addl	%edx, %esi
	cmpl	$91, %r9d
	cmovge	%r10d, %esi
	movb	%sil, (%r12,%r8)
	leal	2(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jg	.L46
.L13:
	movb	%r10b, (%r12,%rsi)
	leal	3(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jg	.L47
.L15:
	movb	%r10b, (%r12,%rsi)
	leal	4(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jle	.L17
	leal	(%rdi,%r9), %r10d
.L17:
	movb	%r10b, (%r12,%rsi)
	leal	5(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jle	.L19
	leal	(%rdi,%r9), %r10d
.L19:
	movb	%r10b, (%r12,%rsi)
	leal	6(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jle	.L21
	leal	(%rdi,%r9), %r10d
.L21:
	movb	%r10b, (%r12,%rsi)
	leal	7(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jg	.L48
.L23:
	movb	%r10b, (%r12,%rsi)
	leal	8(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jg	.L49
.L25:
	movb	%r10b, (%r12,%rsi)
	leal	9(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jg	.L50
.L27:
	movb	%r10b, (%r12,%rsi)
	leal	10(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jg	.L51
.L29:
	movb	%r10b, (%r12,%rsi)
	leal	11(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jg	.L52
.L31:
	movb	%r10b, (%r12,%rsi)
	leal	12(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jle	.L33
	leal	(%rdi,%r9), %r10d
.L33:
	movb	%r10b, (%r12,%rsi)
	leal	13(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jle	.L35
	leal	(%rdi,%r9), %r10d
.L35:
	addl	$14, %eax
	movb	%r10b, (%r12,%rsi)
	cmpl	%eax, %ecx
	jle	.L6
	cltq
	movsbl	(%r12,%rax), %ecx
	movl	%ecx, %esi
	addl	%edx, %ecx
	addl	%esi, %edi
	cmpl	$90, %ecx
	jg	.L38
	leal	(%rsi,%rdx), %edi
.L38:
	movb	%dil, (%r12,%rax)
	.p2align 4,,10
	.p2align 3
.L6:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L53
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L46:
	.cfi_restore_state
	leal	(%rdi,%r9), %r10d
	jmp	.L13
.L47:
	leal	(%rdi,%r9), %r10d
	jmp	.L15
.L48:
	leal	(%rdi,%r9), %r10d
	jmp	.L23
.L49:
	leal	(%rdi,%r9), %r10d
	jmp	.L25
.L50:
	leal	(%rdi,%r9), %r10d
	jmp	.L27
.L51:
	leal	(%rdi,%r9), %r10d
	jmp	.L29
.L52:
	leal	(%rdi,%r9), %r10d
	jmp	.L31
.L40:
	xorl	%eax, %eax
	jmp	.L3
.L53:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 100000
s:
	.zero	100000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	90
	.long	90
	.long	90
	.long	90
	.align 16
.LC3:
	.value	255
	.value	255
	.value	255
	.value	255
	.value	255
	.value	255
	.value	255
	.value	255
	.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	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	leaq	s(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC1(%rip), %rbp
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	xorl	%eax, %eax
	movq	%r12, %rsi
	call	__isoc99_scanf@PLT
	movq	%r12, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L6
	movl	4(%rsp), %edx
	movq	%rax, %rcx
	leal	-1(%rax), %eax
	leal	-26(%rdx), %edi
	cmpl	$14, %eax
	jbe	.L40
	movd	%edx, %xmm4
	movl	%ecx, %esi
	movd	%edi, %xmm5
	movq	%r12, %rax
	pshufd	$0, %xmm4, %xmm3
	shrl	$4, %esi
	movd	%edx, %xmm4
	punpcklbw	%xmm5, %xmm5
	punpcklbw	%xmm4, %xmm4
	punpcklwd	%xmm5, %xmm5
	leaq	16(%r12), %r8
	subl	$1, %esi
	punpcklwd	%xmm4, %xmm4
	salq	$4, %rsi
	movdqa	.LC2(%rip), %xmm2
	movdqa	.LC3(%rip), %xmm7
	pshufd	$0, %xmm5, %xmm5
	pshufd	$0, %xmm4, %xmm4
	pxor	%xmm6, %xmm6
	addq	%r8, %rsi
	pxor	%xmm8, %xmm8
	.p2align 4,,10
	.p2align 3
.L4:
	movdqa	(%rax), %xmm9
	movdqa	%xmm8, %xmm0
	movdqa	%xmm6, %xmm11
	addq	$16, %rax
	pcmpgtb	%xmm9, %xmm0
	movdqa	%xmm9, %xmm1
	movdqa	%xmm9, %xmm10
	punpcklbw	%xmm0, %xmm1
	punpckhbw	%xmm0, %xmm10
	pcmpgtw	%xmm1, %xmm11
	movdqa	%xmm1, %xmm0
	punpcklwd	%xmm11, %xmm0
	punpckhwd	%xmm11, %xmm1
	paddd	%xmm3, %xmm0
	paddd	%xmm3, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pcmpgtd	%xmm2, %xmm0
	movdqa	%xmm0, %xmm11
	punpcklwd	%xmm1, %xmm0
	punpckhwd	%xmm1, %xmm11
	movdqa	%xmm0, %xmm1
	punpckhwd	%xmm11, %xmm1
	punpcklwd	%xmm11, %xmm0
	movdqa	%xmm6, %xmm11
	pcmpgtw	%xmm10, %xmm11
	punpcklwd	%xmm1, %xmm0
	movdqa	%xmm10, %xmm1
	pand	%xmm7, %xmm0
	punpcklwd	%xmm11, %xmm1
	punpckhwd	%xmm11, %xmm10
	paddd	%xmm3, %xmm1
	paddd	%xmm3, %xmm10
	pcmpgtd	%xmm2, %xmm10
	pcmpgtd	%xmm2, %xmm1
	movdqa	%xmm1, %xmm11
	punpcklwd	%xmm10, %xmm1
	punpckhwd	%xmm10, %xmm11
	movdqa	%xmm1, %xmm10
	punpckhwd	%xmm11, %xmm10
	punpcklwd	%xmm11, %xmm1
	punpcklwd	%xmm10, %xmm1
	pand	%xmm7, %xmm1
	packuswb	%xmm1, %xmm0
	movdqa	%xmm9, %xmm1
	paddb	%xmm4, %xmm9
	paddb	%xmm5, %xmm1
	pand	%xmm0, %xmm1
	pandn	%xmm9, %xmm0
	por	%xmm1, %xmm0
	movaps	%xmm0, -16(%rax)
	cmpq	%rsi, %rax
	jne	.L4
	movl	%ecx, %eax
	andl	$-16, %eax
	testb	$15, %cl
	je	.L6
.L3:
	movslq	%eax, %r9
	movsbl	(%r12,%r9), %r8d
	movl	%r8d, %esi
	addl	%edx, %r8d
	leal	(%rdi,%rsi), %r10d
	addl	%edx, %esi
	cmpl	$91, %r8d
	cmovge	%r10d, %esi
	movb	%sil, (%r12,%r9)
	leal	1(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %r8
	movsbl	(%r12,%r8), %r9d
	movl	%r9d, %esi
	addl	%edx, %r9d
	leal	(%rdi,%rsi), %r10d
	addl	%edx, %esi
	cmpl	$91, %r9d
	cmovge	%r10d, %esi
	movb	%sil, (%r12,%r8)
	leal	2(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jg	.L46
.L13:
	movb	%r10b, (%r12,%rsi)
	leal	3(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jg	.L47
.L15:
	movb	%r10b, (%r12,%rsi)
	leal	4(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jle	.L17
	leal	(%rdi,%r9), %r10d
.L17:
	movb	%r10b, (%r12,%rsi)
	leal	5(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jle	.L19
	leal	(%rdi,%r9), %r10d
.L19:
	movb	%r10b, (%r12,%rsi)
	leal	6(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jle	.L21
	leal	(%rdi,%r9), %r10d
.L21:
	movb	%r10b, (%r12,%rsi)
	leal	7(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jg	.L48
.L23:
	movb	%r10b, (%r12,%rsi)
	leal	8(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jg	.L49
.L25:
	movb	%r10b, (%r12,%rsi)
	leal	9(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jg	.L50
.L27:
	movb	%r10b, (%r12,%rsi)
	leal	10(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jg	.L51
.L29:
	movb	%r10b, (%r12,%rsi)
	leal	11(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jg	.L52
.L31:
	movb	%r10b, (%r12,%rsi)
	leal	12(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jle	.L33
	leal	(%rdi,%r9), %r10d
.L33:
	movb	%r10b, (%r12,%rsi)
	leal	13(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movsbl	(%r12,%rsi), %r8d
	movl	%r8d, %r9d
	addl	%edx, %r8d
	leal	(%r9,%rdx), %r10d
	cmpl	$90, %r8d
	jle	.L35
	leal	(%rdi,%r9), %r10d
.L35:
	addl	$14, %eax
	movb	%r10b, (%r12,%rsi)
	cmpl	%eax, %ecx
	jle	.L6
	cltq
	movsbl	(%r12,%rax), %ecx
	movl	%ecx, %esi
	addl	%edx, %ecx
	addl	%esi, %edi
	cmpl	$90, %ecx
	jg	.L38
	leal	(%rsi,%rdx), %edi
.L38:
	movb	%dil, (%r12,%rax)
	.p2align 4,,10
	.p2align 3
.L6:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L53
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L46:
	.cfi_restore_state
	leal	(%rdi,%r9), %r10d
	jmp	.L13
.L47:
	leal	(%rdi,%r9), %r10d
	jmp	.L15
.L48:
	leal	(%rdi,%r9), %r10d
	jmp	.L23
.L49:
	leal	(%rdi,%r9), %r10d
	jmp	.L25
.L50:
	leal	(%rdi,%r9), %r10d
	jmp	.L27
.L51:
	leal	(%rdi,%r9), %r10d
	jmp	.L29
.L52:
	leal	(%rdi,%r9), %r10d
	jmp	.L31
.L40:
	xorl	%eax, %eax
	jmp	.L3
.L53:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 100000
s:
	.zero	100000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	90
	.long	90
	.long	90
	.long	90
	.align 16
.LC3:
	.value	255
	.value	255
	.value	255
	.value	255
	.value	255
	.value	255
	.value	255
	.value	255
	.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>
char s[100000];
int main(){
	int n;
	scanf("%d",&n);
	scanf("%s",&s);
	int length=strlen(s);
	for(int i=0;i<length;i++){
		if(s[i]+n>'Z'){
			s[i]=s[i]-(26-n);
		}else{
			s[i]+=n;
		}
		
	}
	printf("%s",s);
}
13
ABCDEFGGIJKLMNOPQRSTUVWXYZ
 0
YBCXAZ
 2
ABDXYZ
 13
ABCDEFGGIJKLMNOOQRSTUVWXYZ
 0
YBBXAZ
 2
ZYXDBA
 13
ABCDEFGOIJKLMNGOQRSTUVWXYZ
 0
YABXAZ
 2
ZXXDBA
 13
ZYXWVUTSRQOGNMLKJIOGFEDCBA

NOPQRSTTVWXYZABCDEFGHIJKLM YBCXAZ CDFZAB NOPQRSTTVWXYZABBDEFGHIJKLM YBBXAZ BAZFDC NOPQRSTBVWXYZATBDEFGHIJKLM YABXAZ BZZFDC MLKJIHGFEDBTAZYXWVBTSRQPON
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>
char s[100000];
int main(){
	int n;
	scanf("%d",&n);
	scanf("%s",&s);
	int length=strlen(s);
	for(int i=0;i<length;i++){
		if(s[i]+n>'Z'){
			s[i]=s[i]-(26-n);
		}else{
			s[i]+=n;
		}
		
	}
	printf("%s",s);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 100000
s:
	.zero	100000
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -12(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L2
.L5:
	movl	-16(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	cmpl	$90, %eax
	jle	.L3
	movl	-16(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	subl	$26, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	jmp	.L4
.L3:
	movl	-16(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movb	%cl, (%rax,%rdx)
.L4:
	addl	$1, -16(%rbp)
.L2:
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jl	.L5
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	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
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 100000
s:
	.zero	100000
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -12(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L2
.L5:
	movl	-16(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	cmpl	$90, %eax
	jle	.L3
	movl	-16(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	subl	$26, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	jmp	.L4
.L3:
	movl	-16(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movb	%cl, (%rax,%rdx)
.L4:
	addl	$1, -16(%rbp)
.L2:
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jl	.L5
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	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:
