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() {
	char s[1000001];
	int len;
	int loop;
	int k;

	scanf("%s", s);
	scanf("%d", &k);
	len = strlen(s);

	for (loop = 0; loop < len; loop++) {
		if (loop == len - 1) {
			int slen = s[loop];
			slen += k;
			while (slen > 'z') slen -= 26;
			s[loop] = slen;
		}
		else if ('z' - s[loop] < k&&s[loop]!='a') {
			k -= 'z' - s[loop] + 1;
			s[loop] = 'a';
		}
	}

	printf("%s\n", s);

	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-999424(%rsp), %r11
	.cfi_def_cfa 11, 999464
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$616, %rsp
	.cfi_def_cfa_offset 1000080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1000024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L3
	movl	%eax, %r10d
	leal	-1(%rax), %r8d
	movl	12(%rsp), %r9d
	movq	%rbp, %rcx
	movdqa	.LC2(%rip), %xmm4
	movdqa	.LC3(%rip), %xmm3
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movdqa	.LC4(%rip), %xmm2
	movl	$122, %r11d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, %eax
	addq	$1, %rcx
	cmpl	%eax, %r10d
	je	.L27
.L11:
	movsbl	(%rcx), %esi
	cmpl	%r8d, %eax
	je	.L28
	movl	%r11d, %edx
	subl	%esi, %edx
	cmpl	%r9d, %edx
	setl	%dl
	cmpb	$97, %sil
	setne	%dil
	andb	%dil, %dl
	je	.L10
	addl	$1, %eax
	movb	$97, (%rcx)
	leal	-123(%r9,%rsi), %r9d
	movl	%edx, %ebx
	addq	$1, %rcx
	cmpl	%eax, %r10d
	jne	.L11
.L27:
	testb	%bl, %bl
	je	.L3
	movl	%r9d, 12(%rsp)
.L3:
	movq	%rbp, %rdi
	call	puts@PLT
	movq	1000024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$1000040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	addl	%r9d, %esi
	cmpl	$122, %esi
	jle	.L5
	leal	-123(%rsi), %edi
	movq	%rdi, %rdx
	imulq	$1321528399, %rdi, %rdi
	shrq	$35, %rdi
	addl	$1, %edi
	cmpl	$77, %edx
	jbe	.L14
	movd	%esi, %xmm5
	movl	%edi, %r12d
	xorl	%edx, %edx
	pshufd	$0, %xmm5, %xmm1
	shrl	$2, %r12d
	paddd	%xmm4, %xmm1
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm0
	addl	$1, %edx
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%edx, %r12d
	jne	.L7
	movl	%edi, %r13d
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %r13d
	movd	%xmm0, %edx
	imull	$-26, %r13d, %r12d
	addl	%esi, %r12d
	cmpl	%edi, %r13d
	je	.L30
.L6:
	leal	-26(%r12), %esi
	cmpl	$122, %esi
	jle	.L5
	leal	-52(%r12), %esi
	cmpl	$122, %esi
	jle	.L5
	leal	-78(%r12), %esi
.L5:
	movb	%sil, (%rcx)
	jmp	.L10
.L30:
	movl	%edx, %esi
	jmp	.L5
.L14:
	movl	%esi, %r12d
	jmp	.L6
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	-26
	.long	-52
	.long	-78
	.align 16
.LC3:
	.long	-104
	.long	-104
	.long	-104
	.long	-104
	.align 16
.LC4:
	.long	-26
	.long	-26
	.long	-26
	.long	-26
	.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	"%s"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-999424(%rsp), %r11
	.cfi_def_cfa 11, 999464
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$616, %rsp
	.cfi_def_cfa_offset 1000080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1000024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L3
	movl	%eax, %r10d
	leal	-1(%rax), %r8d
	movl	12(%rsp), %r9d
	movq	%rbp, %rcx
	movdqa	.LC2(%rip), %xmm4
	movdqa	.LC3(%rip), %xmm3
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movdqa	.LC4(%rip), %xmm2
	movl	$122, %r11d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, %eax
	addq	$1, %rcx
	cmpl	%eax, %r10d
	je	.L27
.L11:
	movsbl	(%rcx), %esi
	cmpl	%r8d, %eax
	je	.L28
	movl	%r11d, %edx
	subl	%esi, %edx
	cmpl	%r9d, %edx
	setl	%dl
	cmpb	$97, %sil
	setne	%dil
	andb	%dil, %dl
	je	.L10
	addl	$1, %eax
	movb	$97, (%rcx)
	leal	-123(%r9,%rsi), %r9d
	movl	%edx, %ebx
	addq	$1, %rcx
	cmpl	%eax, %r10d
	jne	.L11
.L27:
	testb	%bl, %bl
	je	.L3
	movl	%r9d, 12(%rsp)
.L3:
	movq	%rbp, %rdi
	call	puts@PLT
	movq	1000024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$1000040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	addl	%r9d, %esi
	cmpl	$122, %esi
	jle	.L5
	leal	-123(%rsi), %edi
	movq	%rdi, %rdx
	imulq	$1321528399, %rdi, %rdi
	shrq	$35, %rdi
	addl	$1, %edi
	cmpl	$77, %edx
	jbe	.L14
	movd	%esi, %xmm5
	movl	%edi, %r12d
	xorl	%edx, %edx
	pshufd	$0, %xmm5, %xmm1
	shrl	$2, %r12d
	paddd	%xmm4, %xmm1
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm0
	addl	$1, %edx
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%edx, %r12d
	jne	.L7
	movl	%edi, %r13d
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %r13d
	movd	%xmm0, %edx
	imull	$-26, %r13d, %r12d
	addl	%esi, %r12d
	cmpl	%edi, %r13d
	je	.L30
.L6:
	leal	-26(%r12), %esi
	cmpl	$122, %esi
	jle	.L5
	leal	-52(%r12), %esi
	cmpl	$122, %esi
	jle	.L5
	leal	-78(%r12), %esi
.L5:
	movb	%sil, (%rcx)
	jmp	.L10
.L30:
	movl	%edx, %esi
	jmp	.L5
.L14:
	movl	%esi, %r12d
	jmp	.L6
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	-26
	.long	-52
	.long	-78
	.align 16
.LC3:
	.long	-104
	.long	-104
	.long	-104
	.long	-104
	.align 16
.LC4:
	.long	-26
	.long	-26
	.long	-26
	.long	-26
	.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	"%s"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-999424(%rsp), %r11
	.cfi_def_cfa 11, 999464
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$616, %rsp
	.cfi_def_cfa_offset 1000080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1000024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L3
	movl	%eax, %r10d
	leal	-1(%rax), %r8d
	movl	12(%rsp), %r9d
	movq	%rbp, %rcx
	movdqa	.LC2(%rip), %xmm4
	movdqa	.LC3(%rip), %xmm3
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movdqa	.LC4(%rip), %xmm2
	movl	$122, %r11d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, %eax
	addq	$1, %rcx
	cmpl	%eax, %r10d
	je	.L27
.L11:
	movsbl	(%rcx), %esi
	cmpl	%r8d, %eax
	je	.L28
	movl	%r11d, %edx
	subl	%esi, %edx
	cmpl	%r9d, %edx
	setl	%dl
	cmpb	$97, %sil
	setne	%dil
	andb	%dil, %dl
	je	.L10
	addl	$1, %eax
	movb	$97, (%rcx)
	leal	-123(%r9,%rsi), %r9d
	movl	%edx, %ebx
	addq	$1, %rcx
	cmpl	%eax, %r10d
	jne	.L11
.L27:
	testb	%bl, %bl
	je	.L3
	movl	%r9d, 12(%rsp)
.L3:
	movq	%rbp, %rdi
	call	puts@PLT
	movq	1000024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$1000040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	addl	%r9d, %esi
	cmpl	$122, %esi
	jle	.L5
	leal	-123(%rsi), %edi
	movq	%rdi, %rdx
	imulq	$1321528399, %rdi, %rdi
	shrq	$35, %rdi
	addl	$1, %edi
	cmpl	$77, %edx
	jbe	.L14
	movd	%esi, %xmm5
	movl	%edi, %r12d
	xorl	%edx, %edx
	pshufd	$0, %xmm5, %xmm1
	shrl	$2, %r12d
	paddd	%xmm4, %xmm1
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm0
	addl	$1, %edx
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%edx, %r12d
	jne	.L7
	movl	%edi, %r13d
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %r13d
	movd	%xmm0, %edx
	imull	$-26, %r13d, %r12d
	addl	%esi, %r12d
	cmpl	%edi, %r13d
	je	.L30
.L6:
	leal	-26(%r12), %esi
	cmpl	$122, %esi
	jle	.L5
	leal	-52(%r12), %esi
	cmpl	$122, %esi
	jle	.L5
	leal	-78(%r12), %esi
.L5:
	movb	%sil, (%rcx)
	jmp	.L10
.L30:
	movl	%edx, %esi
	jmp	.L5
.L14:
	movl	%esi, %r12d
	jmp	.L6
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	-26
	.long	-52
	.long	-78
	.align 16
.LC3:
	.long	-104
	.long	-104
	.long	-104
	.long	-104
	.align 16
.LC4:
	.long	-26
	.long	-26
	.long	-26
	.long	-26
	.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() {
	char s[1000001];
	int len;
	int loop;
	int k;

	scanf("%s", s);
	scanf("%d", &k);
	len = strlen(s);

	for (loop = 0; loop < len; loop++) {
		if (loop == len - 1) {
			int slen = s[loop];
			slen += k;
			while (slen > 'z') slen -= 26;
			s[loop] = slen;
		}
		else if ('z' - s[loop] < k&&s[loop]!='a') {
			k -= 'z' - s[loop] + 1;
			s[loop] = 'a';
		}
	}

	printf("%s\n", s);

	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() {
	char s[1000001];
	int len;
	int loop;
	int k;

	scanf("%s", s);
	scanf("%d", &k);
	len = strlen(s);

	for (loop = 0; loop < len; loop++) {
		if (loop == len - 1) {
			int slen = s[loop];
			slen += k;
			while (slen > 'z') slen -= 26;
			s[loop] = slen;
		}
		else if ('z' - s[loop] < k&&s[loop]!='a') {
			k -= 'z' - s[loop] + 1;
			s[loop] = 'a';
		}
	}

	printf("%s\n", s);

	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:

codefestival
101
 xyz
1
 zyx
1
 cdoeffstival
101
 zyx
2
 cdoeffstival
111
 zyx
3
 lavitsffeodc
111
 xyz
2
 caoeffstivdl
111

aaaafeaaiaal
 xya
 ayx
 aaaaffaaiaal
 ayy
 aaaaafativam
 aax
 aaaaaaaaeadg
 xaz
 aaaaaaativdo

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() {
	char s[1000001];
	int len;
	int loop;
	int k;

	scanf("%s", s);
	scanf("%d", &k);
	len = strlen(s);

	for (loop = 0; loop < len; loop++) {
		if (loop == len - 1) {
			int slen = s[loop];
			slen += k;
			while (slen > 'z') slen -= 26;
			s[loop] = slen;
		}
		else if ('z' - s[loop] < k&&s[loop]!='a') {
			k -= 'z' - s[loop] + 1;
			s[loop] = 'a';
		}
	}

	printf("%s\n", s);

	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-999424(%rsp), %r11
	.cfi_def_cfa 11, 999464
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$616, %rsp
	.cfi_def_cfa_offset 1000080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1000024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L3
	movl	%eax, %r10d
	leal	-1(%rax), %r8d
	movl	12(%rsp), %r9d
	movq	%rbp, %rcx
	movdqa	.LC2(%rip), %xmm4
	movdqa	.LC3(%rip), %xmm3
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movdqa	.LC4(%rip), %xmm2
	movl	$122, %r11d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, %eax
	addq	$1, %rcx
	cmpl	%eax, %r10d
	je	.L27
.L11:
	movsbl	(%rcx), %esi
	cmpl	%r8d, %eax
	je	.L28
	movl	%r11d, %edx
	subl	%esi, %edx
	cmpl	%r9d, %edx
	setl	%dl
	cmpb	$97, %sil
	setne	%dil
	andb	%dil, %dl
	je	.L10
	addl	$1, %eax
	movb	$97, (%rcx)
	leal	-123(%r9,%rsi), %r9d
	movl	%edx, %ebx
	addq	$1, %rcx
	cmpl	%eax, %r10d
	jne	.L11
.L27:
	testb	%bl, %bl
	je	.L3
	movl	%r9d, 12(%rsp)
.L3:
	movq	%rbp, %rdi
	call	puts@PLT
	movq	1000024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$1000040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	addl	%r9d, %esi
	cmpl	$122, %esi
	jle	.L5
	leal	-123(%rsi), %edi
	movq	%rdi, %rdx
	imulq	$1321528399, %rdi, %rdi
	shrq	$35, %rdi
	addl	$1, %edi
	cmpl	$77, %edx
	jbe	.L14
	movd	%esi, %xmm5
	movl	%edi, %r12d
	xorl	%edx, %edx
	pshufd	$0, %xmm5, %xmm1
	shrl	$2, %r12d
	paddd	%xmm4, %xmm1
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm0
	addl	$1, %edx
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%edx, %r12d
	jne	.L7
	movl	%edi, %r13d
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %r13d
	movd	%xmm0, %edx
	imull	$-26, %r13d, %r12d
	addl	%esi, %r12d
	cmpl	%edi, %r13d
	je	.L30
.L6:
	leal	-26(%r12), %esi
	cmpl	$122, %esi
	jle	.L5
	leal	-52(%r12), %esi
	cmpl	$122, %esi
	jle	.L5
	leal	-78(%r12), %esi
.L5:
	movb	%sil, (%rcx)
	jmp	.L10
.L30:
	movl	%edx, %esi
	jmp	.L5
.L14:
	movl	%esi, %r12d
	jmp	.L6
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	-26
	.long	-52
	.long	-78
	.align 16
.LC3:
	.long	-104
	.long	-104
	.long	-104
	.long	-104
	.align 16
.LC4:
	.long	-26
	.long	-26
	.long	-26
	.long	-26
	.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	"%s"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-999424(%rsp), %r11
	.cfi_def_cfa 11, 999464
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$616, %rsp
	.cfi_def_cfa_offset 1000080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1000024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L3
	movl	%eax, %r10d
	leal	-1(%rax), %r8d
	movl	12(%rsp), %r9d
	movq	%rbp, %rcx
	movdqa	.LC2(%rip), %xmm4
	movdqa	.LC3(%rip), %xmm3
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movdqa	.LC4(%rip), %xmm2
	movl	$122, %r11d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, %eax
	addq	$1, %rcx
	cmpl	%eax, %r10d
	je	.L27
.L11:
	movsbl	(%rcx), %esi
	cmpl	%r8d, %eax
	je	.L28
	movl	%r11d, %edx
	subl	%esi, %edx
	cmpl	%r9d, %edx
	setl	%dl
	cmpb	$97, %sil
	setne	%dil
	andb	%dil, %dl
	je	.L10
	addl	$1, %eax
	movb	$97, (%rcx)
	leal	-123(%r9,%rsi), %r9d
	movl	%edx, %ebx
	addq	$1, %rcx
	cmpl	%eax, %r10d
	jne	.L11
.L27:
	testb	%bl, %bl
	je	.L3
	movl	%r9d, 12(%rsp)
.L3:
	movq	%rbp, %rdi
	call	puts@PLT
	movq	1000024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$1000040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	addl	%r9d, %esi
	cmpl	$122, %esi
	jle	.L5
	leal	-123(%rsi), %edi
	movq	%rdi, %rdx
	imulq	$1321528399, %rdi, %rdi
	shrq	$35, %rdi
	addl	$1, %edi
	cmpl	$77, %edx
	jbe	.L14
	movd	%esi, %xmm5
	movl	%edi, %r12d
	xorl	%edx, %edx
	pshufd	$0, %xmm5, %xmm1
	shrl	$2, %r12d
	paddd	%xmm4, %xmm1
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm0
	addl	$1, %edx
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%edx, %r12d
	jne	.L7
	movl	%edi, %r13d
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %r13d
	movd	%xmm0, %edx
	imull	$-26, %r13d, %r12d
	addl	%esi, %r12d
	cmpl	%edi, %r13d
	je	.L30
.L6:
	leal	-26(%r12), %esi
	cmpl	$122, %esi
	jle	.L5
	leal	-52(%r12), %esi
	cmpl	$122, %esi
	jle	.L5
	leal	-78(%r12), %esi
.L5:
	movb	%sil, (%rcx)
	jmp	.L10
.L30:
	movl	%edx, %esi
	jmp	.L5
.L14:
	movl	%esi, %r12d
	jmp	.L6
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	-26
	.long	-52
	.long	-78
	.align 16
.LC3:
	.long	-104
	.long	-104
	.long	-104
	.long	-104
	.align 16
.LC4:
	.long	-26
	.long	-26
	.long	-26
	.long	-26
	.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:
```