Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>

#define P 1000000007

int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}
int compw(const void *a, const void *b){return (*(int*)a>*(int*)b)-(*(int*)a<*(int*)b);}
int compr(const void *a, const void *b){return *(int*)b-*(int*)a;}

uint32_t nextpint(void){ char c=getchar(); while(c<'0'||'9'<c) c=getchar(); uint_fast32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar(); } return x; }
uint32_t nextstr(char *s){
	char c=getchar();
	while(c==' '||c=='\n'||c=='\r'||c=='\t') c=getchar();
	uint32_t len=0;
	while(c!=' '&&c!='\n'&&c!='\r'&&c!='\t'){ *s++=c; len++; c=getchar(); }
	*s='\0';
	return len;
}

inline int min2(const int a, const int b){return a>b?b:a;}
inline int dif2(const int a, const int b){return a>b?a-b:b-a;}

char s[100001];
int main(void){
	int n=nextstr(s);
	int k=nextpint();
	for(int i=0; i<n; i++){
		int n='{'-s[i];
		if(n!=26 && n<=k){
			k-=n;
			s[i]='a';
		}
	}
	s[n-1]=(s[n-1]-'a'+k)%26+'a';
	puts(s);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	comp
	.type	comp, @function
comp:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.globl	compw
	.type	compw, @function
compw:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	setg	%al
	movzbl	%al, %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	setl	%al
	movzbl	%al, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	compw, .-compw
	.globl	compr
	.type	compr, @function
compr:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compr, .-compr
	.globl	nextpint
	.type	nextpint, @function
nextpint:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	call	getchar@PLT
	movb	%al, -9(%rbp)
	jmp	.L8
.L9:
	call	getchar@PLT
	movb	%al, -9(%rbp)
.L8:
	cmpb	$47, -9(%rbp)
	jle	.L9
	cmpb	$57, -9(%rbp)
	jg	.L9
	movq	$0, -8(%rbp)
	jmp	.L10
.L12:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movsbq	-9(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	%rax, -8(%rbp)
	call	getchar@PLT
	movb	%al, -9(%rbp)
.L10:
	cmpb	$47, -9(%rbp)
	jle	.L11
	cmpb	$57, -9(%rbp)
	jle	.L12
.L11:
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	nextpint, .-nextpint
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB10:
	.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	%rdi, -24(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
	jmp	.L15
.L16:
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L15:
	cmpb	$32, -5(%rbp)
	je	.L16
	cmpb	$10, -5(%rbp)
	je	.L16
	cmpb	$13, -5(%rbp)
	je	.L16
	cmpb	$9, -5(%rbp)
	je	.L16
	movl	$0, -4(%rbp)
	jmp	.L17
.L19:
	movq	-24(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -24(%rbp)
	movzbl	-5(%rbp), %edx
	movb	%dl, (%rax)
	addl	$1, -4(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L17:
	cmpb	$32, -5(%rbp)
	je	.L18
	cmpb	$10, -5(%rbp)
	je	.L18
	cmpb	$13, -5(%rbp)
	je	.L18
	cmpb	$9, -5(%rbp)
	jne	.L19
.L18:
	movq	-24(%rbp), %rax
	movb	$0, (%rax)
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	nextstr, .-nextstr
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 100001
s:
	.zero	100001
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	nextstr
	movl	%eax, -8(%rbp)
	call	nextpint
	movl	%eax, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L22
.L24:
	movl	-12(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %edx
	movl	$123, %eax
	subl	%edx, %eax
	movl	%eax, -4(%rbp)
	cmpl	$26, -4(%rbp)
	je	.L23
	movl	-4(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jg	.L23
	movl	-4(%rbp), %eax
	subl	%eax, -16(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movb	$97, (%rax,%rdx)
.L23:
	addl	$1, -12(%rbp)
.L22:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L24
	movl	-8(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	leal	-97(%rax), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	imulq	$1321528399, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$26, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	leal	97(%rax), %edx
	movl	-8(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %ecx
	cltq
	leaq	s(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB63:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE63:
	.size	comp, .-comp
	.p2align 4
	.globl	compw
	.type	compw, @function
compw:
.LFB64:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	cmpl	%eax, (%rdi)
	setg	%al
	setl	%dl
	movzbl	%dl, %edx
	movzbl	%al, %eax
	subl	%edx, %eax
	ret
	.cfi_endproc
.LFE64:
	.size	compw, .-compw
	.p2align 4
	.globl	compr
	.type	compr, @function
compr:
.LFB65:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE65:
	.size	compr, .-compr
	.p2align 4
	.globl	nextpint
	.type	nextpint, @function
nextpint:
.LFB66:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	.p2align 4,,10
	.p2align 3
.L15:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	leal	-48(%rax), %edx
	cmpb	$9, %dl
	ja	.L15
	movsbq	%al, %rdx
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L9:
	movq	stdin(%rip), %rdi
	leaq	(%rbx,%rbx,4), %rax
	leaq	-48(%rdx,%rax,2), %rbx
	call	getc@PLT
	movsbq	%al, %rdx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L9
	movl	%ebx, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE66:
	.size	nextpint, .-nextpint
	.p2align 4
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB67:
	.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
	movabsq	$-4294977025, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movq	stdin(%rip), %rdi
	call	getc@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L24:
	btq	%rax, %rbp
	jc	.L21
	movq	stdin(%rip), %rdi
	call	getc@PLT
.L17:
	cmpb	$32, %al
	jbe	.L24
.L21:
	movabsq	$-4294977025, %rbp
	xorl	%r13d, %r13d
.L22:
	movq	%rbx, %r12
	addl	$1, %r13d
	addq	$1, %rbx
	movb	%al, -1(%rbx)
	movq	stdin(%rip), %rdi
	call	getc@PLT
	cmpb	$32, %al
	ja	.L22
	btq	%rax, %rbp
	jc	.L22
	movb	$0, 1(%r12)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	movl	%r13d, %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
	.cfi_endproc
.LFE67:
	.size	nextstr, .-nextstr
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB70:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	s(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rbp, %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	nextstr
	movl	%eax, %ebx
	call	nextpint
	testl	%ebx, %ebx
	jle	.L39
	leal	-1(%rbx), %ecx
	leaq	1(%rbp), %rdi
	movq	%rbp, %rdx
	movl	$123, %r8d
	movq	%rcx, %rbx
	addq	%rcx, %rdi
	.p2align 4,,10
	.p2align 3
.L28:
	movsbl	(%rdx), %esi
	movl	%r8d, %ecx
	subl	%esi, %ecx
	cmpl	$26, %ecx
	je	.L27
	cmpl	%eax, %ecx
	jg	.L27
	movb	$97, (%rdx)
	subl	%ecx, %eax
.L27:
	addq	$1, %rdx
	cmpq	%rdx, %rdi
	jne	.L28
.L26:
	movslq	%ebx, %rdx
	movq	%rbp, %rdi
	movsbl	0(%rbp,%rdx), %ecx
	leal	-97(%rax,%rcx), %ecx
	movslq	%ecx, %rax
	movl	%ecx, %esi
	imulq	$1321528399, %rax, %rax
	sarl	$31, %esi
	sarq	$35, %rax
	subl	%esi, %eax
	imull	$26, %eax, %eax
	subl	%eax, %ecx
	addl	$97, %ecx
	movb	%cl, 0(%rbp,%rdx)
	call	puts@PLT
	addq	$8, %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
.L39:
	.cfi_restore_state
	subl	$1, %ebx
	jmp	.L26
	.cfi_endproc
.LFE70:
	.size	main, .-main
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 100001
s:
	.zero	100001
	.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
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB63:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE63:
	.size	comp, .-comp
	.p2align 4
	.globl	compw
	.type	compw, @function
compw:
.LFB64:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	cmpl	%eax, (%rdi)
	setg	%al
	setl	%dl
	movzbl	%dl, %edx
	movzbl	%al, %eax
	subl	%edx, %eax
	ret
	.cfi_endproc
.LFE64:
	.size	compw, .-compw
	.p2align 4
	.globl	compr
	.type	compr, @function
compr:
.LFB65:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE65:
	.size	compr, .-compr
	.p2align 4
	.globl	nextpint
	.type	nextpint, @function
nextpint:
.LFB66:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	.p2align 4,,10
	.p2align 3
.L15:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	leal	-48(%rax), %edx
	cmpb	$9, %dl
	ja	.L15
	movsbq	%al, %rdx
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L9:
	movq	stdin(%rip), %rdi
	leaq	(%rbx,%rbx,4), %rax
	leaq	-48(%rdx,%rax,2), %rbx
	call	getc@PLT
	movsbq	%al, %rdx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L9
	movl	%ebx, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE66:
	.size	nextpint, .-nextpint
	.p2align 4
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB67:
	.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
	movabsq	$-4294977025, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movq	stdin(%rip), %rdi
	call	getc@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L24:
	btq	%rax, %rbp
	jc	.L21
	movq	stdin(%rip), %rdi
	call	getc@PLT
.L17:
	cmpb	$32, %al
	jbe	.L24
.L21:
	movabsq	$-4294977025, %rbp
	xorl	%r13d, %r13d
.L22:
	movq	%rbx, %r12
	addl	$1, %r13d
	addq	$1, %rbx
	movb	%al, -1(%rbx)
	movq	stdin(%rip), %rdi
	call	getc@PLT
	cmpb	$32, %al
	ja	.L22
	btq	%rax, %rbp
	jc	.L22
	movb	$0, 1(%r12)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	movl	%r13d, %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
	.cfi_endproc
.LFE67:
	.size	nextstr, .-nextstr
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB70:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	s(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rbp, %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	nextstr
	movl	%eax, %ebx
	call	nextpint
	testl	%ebx, %ebx
	jle	.L39
	leal	-1(%rbx), %ecx
	leaq	1(%rbp), %rdi
	movq	%rbp, %rdx
	movl	$123, %r8d
	movq	%rcx, %rbx
	addq	%rcx, %rdi
	.p2align 4,,10
	.p2align 3
.L28:
	movsbl	(%rdx), %esi
	movl	%r8d, %ecx
	subl	%esi, %ecx
	cmpl	$26, %ecx
	je	.L27
	cmpl	%eax, %ecx
	jg	.L27
	movb	$97, (%rdx)
	subl	%ecx, %eax
.L27:
	addq	$1, %rdx
	cmpq	%rdx, %rdi
	jne	.L28
.L26:
	movslq	%ebx, %rdx
	movq	%rbp, %rdi
	movsbl	0(%rbp,%rdx), %ecx
	leal	-97(%rax,%rcx), %ecx
	movslq	%ecx, %rax
	movl	%ecx, %esi
	imulq	$1321528399, %rax, %rax
	sarl	$31, %esi
	sarq	$35, %rax
	subl	%esi, %eax
	imull	$26, %eax, %eax
	subl	%eax, %ecx
	addl	$97, %ecx
	movb	%cl, 0(%rbp,%rdx)
	call	puts@PLT
	addq	$8, %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
.L39:
	.cfi_restore_state
	subl	$1, %ebx
	jmp	.L26
	.cfi_endproc
.LFE70:
	.size	main, .-main
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 100001
s:
	.zero	100001
	.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 <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>

#define P 1000000007

int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}
int compw(const void *a, const void *b){return (*(int*)a>*(int*)b)-(*(int*)a<*(int*)b);}
int compr(const void *a, const void *b){return *(int*)b-*(int*)a;}

uint32_t nextpint(void){ char c=getchar(); while(c<'0'||'9'<c) c=getchar(); uint_fast32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar(); } return x; }
uint32_t nextstr(char *s){
	char c=getchar();
	while(c==' '||c=='\n'||c=='\r'||c=='\t') c=getchar();
	uint32_t len=0;
	while(c!=' '&&c!='\n'&&c!='\r'&&c!='\t'){ *s++=c; len++; c=getchar(); }
	*s='\0';
	return len;
}

inline int min2(const int a, const int b){return a>b?b:a;}
inline int dif2(const int a, const int b){return a>b?a-b:b-a;}

char s[100001];
int main(void){
	int n=nextstr(s);
	int k=nextpint();
	for(int i=0; i<n; i++){
		int n='{'-s[i];
		if(n!=26 && n<=k){
			k-=n;
			s[i]='a';
		}
	}
	s[n-1]=(s[n-1]-'a'+k)%26+'a';
	puts(s);
}

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

```c
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>

#define P 1000000007

int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}
int compw(const void *a, const void *b){return (*(int*)a>*(int*)b)-(*(int*)a<*(int*)b);}
int compr(const void *a, const void *b){return *(int*)b-*(int*)a;}

uint32_t nextpint(void){ char c=getchar(); while(c<'0'||'9'<c) c=getchar(); uint_fast32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar(); } return x; }
uint32_t nextstr(char *s){
	char c=getchar();
	while(c==' '||c=='\n'||c=='\r'||c=='\t') c=getchar();
	uint32_t len=0;
	while(c!=' '&&c!='\n'&&c!='\r'&&c!='\t'){ *s++=c; len++; c=getchar(); }
	*s='\0';
	return len;
}

inline int min2(const int a, const int b){return a>b?b:a;}
inline int dif2(const int a, const int b){return a>b?a-b:b-a;}

char s[100001];
int main(void){
	int n=nextstr(s);
	int k=nextpint();
	for(int i=0; i<n; i++){
		int n='{'-s[i];
		if(n!=26 && n<=k){
			k-=n;
			s[i]='a';
		}
	}
	s[n-1]=(s[n-1]-'a'+k)%26+'a';
	puts(s);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	comp
	.type	comp, @function
comp:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.globl	compw
	.type	compw, @function
compw:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	setg	%al
	movzbl	%al, %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	setl	%al
	movzbl	%al, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	compw, .-compw
	.globl	compr
	.type	compr, @function
compr:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compr, .-compr
	.globl	nextpint
	.type	nextpint, @function
nextpint:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	call	getchar@PLT
	movb	%al, -9(%rbp)
	jmp	.L8
.L9:
	call	getchar@PLT
	movb	%al, -9(%rbp)
.L8:
	cmpb	$47, -9(%rbp)
	jle	.L9
	cmpb	$57, -9(%rbp)
	jg	.L9
	movq	$0, -8(%rbp)
	jmp	.L10
.L12:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movsbq	-9(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	%rax, -8(%rbp)
	call	getchar@PLT
	movb	%al, -9(%rbp)
.L10:
	cmpb	$47, -9(%rbp)
	jle	.L11
	cmpb	$57, -9(%rbp)
	jle	.L12
.L11:
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	nextpint, .-nextpint
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB10:
	.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	%rdi, -24(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
	jmp	.L15
.L16:
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L15:
	cmpb	$32, -5(%rbp)
	je	.L16
	cmpb	$10, -5(%rbp)
	je	.L16
	cmpb	$13, -5(%rbp)
	je	.L16
	cmpb	$9, -5(%rbp)
	je	.L16
	movl	$0, -4(%rbp)
	jmp	.L17
.L19:
	movq	-24(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -24(%rbp)
	movzbl	-5(%rbp), %edx
	movb	%dl, (%rax)
	addl	$1, -4(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L17:
	cmpb	$32, -5(%rbp)
	je	.L18
	cmpb	$10, -5(%rbp)
	je	.L18
	cmpb	$13, -5(%rbp)
	je	.L18
	cmpb	$9, -5(%rbp)
	jne	.L19
.L18:
	movq	-24(%rbp), %rax
	movb	$0, (%rax)
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	nextstr, .-nextstr
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 100001
s:
	.zero	100001
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	nextstr
	movl	%eax, -8(%rbp)
	call	nextpint
	movl	%eax, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L22
.L24:
	movl	-12(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %edx
	movl	$123, %eax
	subl	%edx, %eax
	movl	%eax, -4(%rbp)
	cmpl	$26, -4(%rbp)
	je	.L23
	movl	-4(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jg	.L23
	movl	-4(%rbp), %eax
	subl	%eax, -16(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movb	$97, (%rax,%rdx)
.L23:
	addl	$1, -12(%rbp)
.L22:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L24
	movl	-8(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	leal	-97(%rax), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	imulq	$1321528399, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$26, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	leal	97(%rax), %edx
	movl	-8(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %ecx
	cltq
	leaq	s(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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	comp
	.type	comp, @function
comp:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.globl	compw
	.type	compw, @function
compw:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	setg	%al
	movzbl	%al, %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	setl	%al
	movzbl	%al, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	compw, .-compw
	.globl	compr
	.type	compr, @function
compr:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compr, .-compr
	.globl	nextpint
	.type	nextpint, @function
nextpint:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	call	getchar@PLT
	movb	%al, -9(%rbp)
	jmp	.L8
.L9:
	call	getchar@PLT
	movb	%al, -9(%rbp)
.L8:
	cmpb	$47, -9(%rbp)
	jle	.L9
	cmpb	$57, -9(%rbp)
	jg	.L9
	movq	$0, -8(%rbp)
	jmp	.L10
.L12:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movsbq	-9(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	%rax, -8(%rbp)
	call	getchar@PLT
	movb	%al, -9(%rbp)
.L10:
	cmpb	$47, -9(%rbp)
	jle	.L11
	cmpb	$57, -9(%rbp)
	jle	.L12
.L11:
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	nextpint, .-nextpint
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB10:
	.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	%rdi, -24(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
	jmp	.L15
.L16:
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L15:
	cmpb	$32, -5(%rbp)
	je	.L16
	cmpb	$10, -5(%rbp)
	je	.L16
	cmpb	$13, -5(%rbp)
	je	.L16
	cmpb	$9, -5(%rbp)
	je	.L16
	movl	$0, -4(%rbp)
	jmp	.L17
.L19:
	movq	-24(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -24(%rbp)
	movzbl	-5(%rbp), %edx
	movb	%dl, (%rax)
	addl	$1, -4(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L17:
	cmpb	$32, -5(%rbp)
	je	.L18
	cmpb	$10, -5(%rbp)
	je	.L18
	cmpb	$13, -5(%rbp)
	je	.L18
	cmpb	$9, -5(%rbp)
	jne	.L19
.L18:
	movq	-24(%rbp), %rax
	movb	$0, (%rax)
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	nextstr, .-nextstr
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 100001
s:
	.zero	100001
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	nextstr
	movl	%eax, -8(%rbp)
	call	nextpint
	movl	%eax, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L22
.L24:
	movl	-12(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %edx
	movl	$123, %eax
	subl	%edx, %eax
	movl	%eax, -4(%rbp)
	cmpl	$26, -4(%rbp)
	je	.L23
	movl	-4(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jg	.L23
	movl	-4(%rbp), %eax
	subl	%eax, -16(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movb	$97, (%rax,%rdx)
.L23:
	addl	$1, -12(%rbp)
.L22:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L24
	movl	-8(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	leal	-97(%rax), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	imulq	$1321528399, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$26, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	leal	97(%rax), %edx
	movl	-8(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %ecx
	cltq
	leaq	s(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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:
