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>

char s[100010];
int k, n;
int main() {
  scanf("%s%d", s, &k);
  n = strlen(s);
  const int a = 'z' + 1;
  for (int i = 0; i < n; ++i) if (s[i] != 'a') {
    if (k >= a - s[i]) {
      k -= a - s[i];
      s[i] = 'a';
    }
  }
  if (k) {
    s[n - 1] = ((int)s[n - 1] - 'a' + k) % 26 + 'a';
  }
  puts(s);
  return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s%d"
	.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	s(%rip), %rbp
	leaq	k(%rip), %rdx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movl	k(%rip), %r11d
	movl	%eax, n(%rip)
	testq	%rax, %rax
	je	.L3
	leal	-1(%rax), %ecx
	leaq	1(%rbp), %r8
	movl	%r11d, %edi
	movq	%rbp, %rdx
	addq	%rcx, %r8
	xorl	%r10d, %r10d
	movl	$123, %r9d
	.p2align 4,,10
	.p2align 3
.L5:
	movsbl	(%rdx), %ecx
	cmpb	$97, %cl
	je	.L4
	movl	%r9d, %esi
	subl	%ecx, %esi
	cmpl	%edi, %esi
	jg	.L4
	movb	$97, (%rdx)
	subl	%esi, %edi
	movl	$1, %r10d
.L4:
	addq	$1, %rdx
	cmpq	%rdx, %r8
	jne	.L5
	testb	%r10b, %r10b
	je	.L3
	movl	%edi, k(%rip)
	movl	%edi, %r11d
.L3:
	testl	%r11d, %r11d
	je	.L7
	subl	$1, %eax
	movl	$26, %esi
	movslq	%eax, %rcx
	movsbl	0(%rbp,%rcx), %eax
	leal	-97(%rax,%r11), %eax
	cltd
	idivl	%esi
	addl	$97, %edx
	movb	%dl, 0(%rbp,%rcx)
.L7:
	movq	%rbp, %rdi
	call	puts@PLT
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 100010
s:
	.zero	100010
	.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%d"
	.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	s(%rip), %rbp
	leaq	k(%rip), %rdx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movl	k(%rip), %r11d
	movl	%eax, n(%rip)
	testq	%rax, %rax
	je	.L3
	leal	-1(%rax), %ecx
	leaq	1(%rbp), %r8
	movl	%r11d, %edi
	movq	%rbp, %rdx
	addq	%rcx, %r8
	xorl	%r10d, %r10d
	movl	$123, %r9d
	.p2align 4,,10
	.p2align 3
.L5:
	movsbl	(%rdx), %ecx
	cmpb	$97, %cl
	je	.L4
	movl	%r9d, %esi
	subl	%ecx, %esi
	cmpl	%edi, %esi
	jg	.L4
	movb	$97, (%rdx)
	subl	%esi, %edi
	movl	$1, %r10d
.L4:
	addq	$1, %rdx
	cmpq	%rdx, %r8
	jne	.L5
	testb	%r10b, %r10b
	je	.L3
	movl	%edi, k(%rip)
	movl	%edi, %r11d
.L3:
	testl	%r11d, %r11d
	je	.L7
	subl	$1, %eax
	movl	$26, %esi
	movslq	%eax, %rcx
	movsbl	0(%rbp,%rcx), %eax
	leal	-97(%rax,%r11), %eax
	cltd
	idivl	%esi
	addl	$97, %edx
	movb	%dl, 0(%rbp,%rcx)
.L7:
	movq	%rbp, %rdi
	call	puts@PLT
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 100010
s:
	.zero	100010
	.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%d"
	.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	s(%rip), %rbp
	leaq	k(%rip), %rdx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movl	k(%rip), %r11d
	movl	%eax, n(%rip)
	testq	%rax, %rax
	je	.L3
	leal	-1(%rax), %ecx
	leaq	1(%rbp), %r8
	movl	%r11d, %edi
	movq	%rbp, %rdx
	addq	%rcx, %r8
	xorl	%r10d, %r10d
	movl	$123, %r9d
	.p2align 4,,10
	.p2align 3
.L5:
	movsbl	(%rdx), %ecx
	cmpb	$97, %cl
	je	.L4
	movl	%r9d, %esi
	subl	%ecx, %esi
	cmpl	%edi, %esi
	jg	.L4
	movb	$97, (%rdx)
	subl	%esi, %edi
	movl	$1, %r10d
.L4:
	addq	$1, %rdx
	cmpq	%rdx, %r8
	jne	.L5
	testb	%r10b, %r10b
	je	.L3
	movl	%edi, k(%rip)
	movl	%edi, %r11d
.L3:
	testl	%r11d, %r11d
	je	.L7
	subl	$1, %eax
	movl	$26, %esi
	movslq	%eax, %rcx
	movsbl	0(%rbp,%rcx), %eax
	leal	-97(%rax,%r11), %eax
	cltd
	idivl	%esi
	addl	$97, %edx
	movb	%dl, 0(%rbp,%rcx)
.L7:
	movq	%rbp, %rdi
	call	puts@PLT
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 100010
s:
	.zero	100010
	.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>

char s[100010];
int k, n;
int main() {
  scanf("%s%d", s, &k);
  n = strlen(s);
  const int a = 'z' + 1;
  for (int i = 0; i < n; ++i) if (s[i] != 'a') {
    if (k >= a - s[i]) {
      k -= a - s[i];
      s[i] = 'a';
    }
  }
  if (k) {
    s[n - 1] = ((int)s[n - 1] - 'a' + k) % 26 + 'a';
  }
  puts(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>

char s[100010];
int k, n;
int main() {
  scanf("%s%d", s, &k);
  n = strlen(s);
  const int a = 'z' + 1;
  for (int i = 0; i < n; ++i) if (s[i] != 'a') {
    if (k >= a - s[i]) {
      k -= a - s[i];
      s[i] = 'a';
    }
  }
  if (k) {
    s[n - 1] = ((int)s[n - 1] - 'a' + k) % 26 + 'a';
  }
  puts(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>

char s[100010];
int k, n;
int main() {
  scanf("%s%d", s, &k);
  n = strlen(s);
  const int a = 'z' + 1;
  for (int i = 0; i < n; ++i) if (s[i] != 'a') {
    if (k >= a - s[i]) {
      k -= a - s[i];
      s[i] = 'a';
    }
  }
  if (k) {
    s[n - 1] = ((int)s[n - 1] - 'a' + k) % 26 + 'a';
  }
  puts(s);
  return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s%d"
	.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	s(%rip), %rbp
	leaq	k(%rip), %rdx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movl	k(%rip), %r11d
	movl	%eax, n(%rip)
	testq	%rax, %rax
	je	.L3
	leal	-1(%rax), %ecx
	leaq	1(%rbp), %r8
	movl	%r11d, %edi
	movq	%rbp, %rdx
	addq	%rcx, %r8
	xorl	%r10d, %r10d
	movl	$123, %r9d
	.p2align 4,,10
	.p2align 3
.L5:
	movsbl	(%rdx), %ecx
	cmpb	$97, %cl
	je	.L4
	movl	%r9d, %esi
	subl	%ecx, %esi
	cmpl	%edi, %esi
	jg	.L4
	movb	$97, (%rdx)
	subl	%esi, %edi
	movl	$1, %r10d
.L4:
	addq	$1, %rdx
	cmpq	%rdx, %r8
	jne	.L5
	testb	%r10b, %r10b
	je	.L3
	movl	%edi, k(%rip)
	movl	%edi, %r11d
.L3:
	testl	%r11d, %r11d
	je	.L7
	subl	$1, %eax
	movl	$26, %esi
	movslq	%eax, %rcx
	movsbl	0(%rbp,%rcx), %eax
	leal	-97(%rax,%r11), %eax
	cltd
	idivl	%esi
	addl	$97, %edx
	movb	%dl, 0(%rbp,%rcx)
.L7:
	movq	%rbp, %rdi
	call	puts@PLT
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 100010
s:
	.zero	100010
	.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%d"
	.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	s(%rip), %rbp
	leaq	k(%rip), %rdx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movl	k(%rip), %r11d
	movl	%eax, n(%rip)
	testq	%rax, %rax
	je	.L3
	leal	-1(%rax), %ecx
	leaq	1(%rbp), %r8
	movl	%r11d, %edi
	movq	%rbp, %rdx
	addq	%rcx, %r8
	xorl	%r10d, %r10d
	movl	$123, %r9d
	.p2align 4,,10
	.p2align 3
.L5:
	movsbl	(%rdx), %ecx
	cmpb	$97, %cl
	je	.L4
	movl	%r9d, %esi
	subl	%ecx, %esi
	cmpl	%edi, %esi
	jg	.L4
	movb	$97, (%rdx)
	subl	%esi, %edi
	movl	$1, %r10d
.L4:
	addq	$1, %rdx
	cmpq	%rdx, %r8
	jne	.L5
	testb	%r10b, %r10b
	je	.L3
	movl	%edi, k(%rip)
	movl	%edi, %r11d
.L3:
	testl	%r11d, %r11d
	je	.L7
	subl	$1, %eax
	movl	$26, %esi
	movslq	%eax, %rcx
	movsbl	0(%rbp,%rcx), %eax
	leal	-97(%rax,%r11), %eax
	cltd
	idivl	%esi
	addl	$97, %edx
	movb	%dl, 0(%rbp,%rcx)
.L7:
	movq	%rbp, %rdi
	call	puts@PLT
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 100010
s:
	.zero	100010
	.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:
```