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>
void sim(char *s,int i,int l,int *k){
	int t=26-(s[i]-'a');
	if(i==l&&*k>0){
		int c=(*k)%26;
		s[i-1]=(char)(s[i-1]+c);
	}
	else if(t<=*k&&t!=26){
		*k=*k-t;
		s[i]='a';
	}
}

int main(void){
	int k,i,l;
	char s[100001];
	scanf("%s %d",s,&k);
	l=strlen(s);
	for(i=0;i<=l;i++){
		sim(s,i,l,&k);
	}
	printf("%s\n",s);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	sim
	.type	sim, @function
sim:
.LFB35:
	.cfi_startproc
	endbr64
	movslq	%esi, %r8
	movl	%edx, %r10d
	movl	$123, %eax
	leaq	(%rdi,%r8), %r9
	movsbl	(%r9), %edx
	subl	%edx, %eax
	movl	(%rcx), %edx
	cmpl	%r10d, %esi
	je	.L11
.L2:
	cmpl	%edx, %eax
	jg	.L1
	cmpl	$26, %eax
	jne	.L12
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	subl	%eax, %edx
	movl	%edx, (%rcx)
	movb	$97, (%r9)
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	testl	%edx, %edx
	jle	.L2
	movslq	%edx, %rax
	movl	%edx, %ecx
	imulq	$1321528399, %rax, %rax
	sarl	$31, %ecx
	sarq	$35, %rax
	subl	%ecx, %eax
	imull	$26, %eax, %eax
	subl	%eax, %edx
	addb	%dl, -1(%rdi,%r8)
	ret
	.cfi_endproc
.LFE35:
	.size	sim, .-sim
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98320
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1728, %rsp
	.cfi_def_cfa_offset 100048
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rdx
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movl	12(%rsp), %edi
	movq	%rbp, %rdx
	xorl	%r11d, %r11d
	movl	%eax, %r9d
	movl	$123, %r10d
	xorl	%eax, %eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%edi, %esi
	setle	%cl
	cmpl	$26, %esi
	setne	%r8b
	andb	%r8b, %cl
	jne	.L27
.L15:
	addl	$1, %eax
	addq	$1, %rdx
	cmpl	%eax, %r9d
	jl	.L28
.L16:
	movsbl	(%rdx), %ecx
	movl	%r10d, %esi
	subl	%ecx, %esi
	cmpl	%eax, %r9d
	jne	.L14
	testl	%edi, %edi
	jle	.L14
	movslq	%edi, %rcx
	movl	%edi, %esi
	addl	$1, %eax
	imulq	$1321528399, %rcx, %rcx
	sarl	$31, %esi
	sarq	$35, %rcx
	subl	%esi, %ecx
	movl	%edi, %esi
	imull	$26, %ecx, %ecx
	subl	%ecx, %esi
	addb	%sil, -1(%rdx)
	addq	$1, %rdx
	cmpl	%eax, %r9d
	jge	.L16
.L28:
	testb	%r11b, %r11b
	je	.L17
	movl	%edi, 12(%rsp)
.L17:
	movq	%rbp, %rdi
	call	puts@PLT
	movq	100024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$100032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	movb	$97, (%rdx)
	subl	%esi, %edi
	movl	%ecx, %r11d
	jmp	.L15
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	sim
	.type	sim, @function
sim:
.LFB35:
	.cfi_startproc
	endbr64
	movslq	%esi, %r8
	movl	%edx, %r10d
	movl	$123, %eax
	leaq	(%rdi,%r8), %r9
	movsbl	(%r9), %edx
	subl	%edx, %eax
	movl	(%rcx), %edx
	cmpl	%r10d, %esi
	je	.L11
.L2:
	cmpl	%edx, %eax
	jg	.L1
	cmpl	$26, %eax
	jne	.L12
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	subl	%eax, %edx
	movl	%edx, (%rcx)
	movb	$97, (%r9)
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	testl	%edx, %edx
	jle	.L2
	movslq	%edx, %rax
	movl	%edx, %ecx
	imulq	$1321528399, %rax, %rax
	sarl	$31, %ecx
	sarq	$35, %rax
	subl	%ecx, %eax
	imull	$26, %eax, %eax
	subl	%eax, %edx
	addb	%dl, -1(%rdi,%r8)
	ret
	.cfi_endproc
.LFE35:
	.size	sim, .-sim
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98320
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1728, %rsp
	.cfi_def_cfa_offset 100048
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rdx
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movl	12(%rsp), %edi
	movq	%rbp, %rdx
	xorl	%r11d, %r11d
	movl	%eax, %r9d
	movl	$123, %r10d
	xorl	%eax, %eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%edi, %esi
	setle	%cl
	cmpl	$26, %esi
	setne	%r8b
	andb	%r8b, %cl
	jne	.L27
.L15:
	addl	$1, %eax
	addq	$1, %rdx
	cmpl	%eax, %r9d
	jl	.L28
.L16:
	movsbl	(%rdx), %ecx
	movl	%r10d, %esi
	subl	%ecx, %esi
	cmpl	%eax, %r9d
	jne	.L14
	testl	%edi, %edi
	jle	.L14
	movslq	%edi, %rcx
	movl	%edi, %esi
	addl	$1, %eax
	imulq	$1321528399, %rcx, %rcx
	sarl	$31, %esi
	sarq	$35, %rcx
	subl	%esi, %ecx
	movl	%edi, %esi
	imull	$26, %ecx, %ecx
	subl	%ecx, %esi
	addb	%sil, -1(%rdx)
	addq	$1, %rdx
	cmpl	%eax, %r9d
	jge	.L16
.L28:
	testb	%r11b, %r11b
	je	.L17
	movl	%edi, 12(%rsp)
.L17:
	movq	%rbp, %rdi
	call	puts@PLT
	movq	100024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$100032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	movb	$97, (%rdx)
	subl	%esi, %edi
	movl	%ecx, %r11d
	jmp	.L15
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	sim
	.type	sim, @function
sim:
.LFB35:
	.cfi_startproc
	endbr64
	movslq	%esi, %r8
	movl	%edx, %r10d
	movl	$123, %eax
	leaq	(%rdi,%r8), %r9
	movsbl	(%r9), %edx
	subl	%edx, %eax
	movl	(%rcx), %edx
	cmpl	%r10d, %esi
	je	.L11
.L2:
	cmpl	%edx, %eax
	jg	.L1
	cmpl	$26, %eax
	jne	.L12
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	subl	%eax, %edx
	movl	%edx, (%rcx)
	movb	$97, (%r9)
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	testl	%edx, %edx
	jle	.L2
	movslq	%edx, %rax
	movl	%edx, %ecx
	imulq	$1321528399, %rax, %rax
	sarl	$31, %ecx
	sarq	$35, %rax
	subl	%ecx, %eax
	imull	$26, %eax, %eax
	subl	%eax, %edx
	addb	%dl, -1(%rdi,%r8)
	ret
	.cfi_endproc
.LFE35:
	.size	sim, .-sim
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98320
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1728, %rsp
	.cfi_def_cfa_offset 100048
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rdx
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movl	12(%rsp), %edi
	movq	%rbp, %rdx
	xorl	%r11d, %r11d
	movl	%eax, %r9d
	movl	$123, %r10d
	xorl	%eax, %eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%edi, %esi
	setle	%cl
	cmpl	$26, %esi
	setne	%r8b
	andb	%r8b, %cl
	jne	.L27
.L15:
	addl	$1, %eax
	addq	$1, %rdx
	cmpl	%eax, %r9d
	jl	.L28
.L16:
	movsbl	(%rdx), %ecx
	movl	%r10d, %esi
	subl	%ecx, %esi
	cmpl	%eax, %r9d
	jne	.L14
	testl	%edi, %edi
	jle	.L14
	movslq	%edi, %rcx
	movl	%edi, %esi
	addl	$1, %eax
	imulq	$1321528399, %rcx, %rcx
	sarl	$31, %esi
	sarq	$35, %rcx
	subl	%esi, %ecx
	movl	%edi, %esi
	imull	$26, %ecx, %ecx
	subl	%ecx, %esi
	addb	%sil, -1(%rdx)
	addq	$1, %rdx
	cmpl	%eax, %r9d
	jge	.L16
.L28:
	testb	%r11b, %r11b
	je	.L17
	movl	%edi, 12(%rsp)
.L17:
	movq	%rbp, %rdi
	call	puts@PLT
	movq	100024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$100032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	movb	$97, (%rdx)
	subl	%esi, %edi
	movl	%ecx, %r11d
	jmp	.L15
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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:
```
```c
#include <stdio.h>
#include <string.h>
void sim(char *s,int i,int l,int *k){
	int t=26-(s[i]-'a');
	if(i==l&&*k>0){
		int c=(*k)%26;
		s[i-1]=(char)(s[i-1]+c);
	}
	else if(t<=*k&&t!=26){
		*k=*k-t;
		s[i]='a';
	}
}

int main(void){
	int k,i,l;
	char s[100001];
	scanf("%s %d",s,&k);
	l=strlen(s);
	for(i=0;i<=l;i++){
		sim(s,i,l,&k);
	}
	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>
void sim(char *s,int i,int l,int *k){
	int t=26-(s[i]-'a');
	if(i==l&&*k>0){
		int c=(*k)%26;
		s[i-1]=(char)(s[i-1]+c);
	}
	else if(t<=*k&&t!=26){
		*k=*k-t;
		s[i]='a';
	}
}

int main(void){
	int k,i,l;
	char s[100001];
	scanf("%s %d",s,&k);
	l=strlen(s);
	for(i=0;i<=l;i++){
		sim(s,i,l,&k);
	}
	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>
void sim(char *s,int i,int l,int *k){
	int t=26-(s[i]-'a');
	if(i==l&&*k>0){
		int c=(*k)%26;
		s[i-1]=(char)(s[i-1]+c);
	}
	else if(t<=*k&&t!=26){
		*k=*k-t;
		s[i]='a';
	}
}

int main(void){
	int k,i,l;
	char s[100001];
	scanf("%s %d",s,&k);
	l=strlen(s);
	for(i=0;i<=l;i++){
		sim(s,i,l,&k);
	}
	printf("%s\n",s);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	sim
	.type	sim, @function
sim:
.LFB35:
	.cfi_startproc
	endbr64
	movslq	%esi, %r8
	movl	%edx, %r10d
	movl	$123, %eax
	leaq	(%rdi,%r8), %r9
	movsbl	(%r9), %edx
	subl	%edx, %eax
	movl	(%rcx), %edx
	cmpl	%r10d, %esi
	je	.L11
.L2:
	cmpl	%edx, %eax
	jg	.L1
	cmpl	$26, %eax
	jne	.L12
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	subl	%eax, %edx
	movl	%edx, (%rcx)
	movb	$97, (%r9)
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	testl	%edx, %edx
	jle	.L2
	movslq	%edx, %rax
	movl	%edx, %ecx
	imulq	$1321528399, %rax, %rax
	sarl	$31, %ecx
	sarq	$35, %rax
	subl	%ecx, %eax
	imull	$26, %eax, %eax
	subl	%eax, %edx
	addb	%dl, -1(%rdi,%r8)
	ret
	.cfi_endproc
.LFE35:
	.size	sim, .-sim
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98320
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1728, %rsp
	.cfi_def_cfa_offset 100048
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rdx
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movl	12(%rsp), %edi
	movq	%rbp, %rdx
	xorl	%r11d, %r11d
	movl	%eax, %r9d
	movl	$123, %r10d
	xorl	%eax, %eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%edi, %esi
	setle	%cl
	cmpl	$26, %esi
	setne	%r8b
	andb	%r8b, %cl
	jne	.L27
.L15:
	addl	$1, %eax
	addq	$1, %rdx
	cmpl	%eax, %r9d
	jl	.L28
.L16:
	movsbl	(%rdx), %ecx
	movl	%r10d, %esi
	subl	%ecx, %esi
	cmpl	%eax, %r9d
	jne	.L14
	testl	%edi, %edi
	jle	.L14
	movslq	%edi, %rcx
	movl	%edi, %esi
	addl	$1, %eax
	imulq	$1321528399, %rcx, %rcx
	sarl	$31, %esi
	sarq	$35, %rcx
	subl	%esi, %ecx
	movl	%edi, %esi
	imull	$26, %ecx, %ecx
	subl	%ecx, %esi
	addb	%sil, -1(%rdx)
	addq	$1, %rdx
	cmpl	%eax, %r9d
	jge	.L16
.L28:
	testb	%r11b, %r11b
	je	.L17
	movl	%edi, 12(%rsp)
.L17:
	movq	%rbp, %rdi
	call	puts@PLT
	movq	100024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$100032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	movb	$97, (%rdx)
	subl	%esi, %edi
	movl	%ecx, %r11d
	jmp	.L15
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	sim
	.type	sim, @function
sim:
.LFB35:
	.cfi_startproc
	endbr64
	movslq	%esi, %r8
	movl	%edx, %r10d
	movl	$123, %eax
	leaq	(%rdi,%r8), %r9
	movsbl	(%r9), %edx
	subl	%edx, %eax
	movl	(%rcx), %edx
	cmpl	%r10d, %esi
	je	.L11
.L2:
	cmpl	%edx, %eax
	jg	.L1
	cmpl	$26, %eax
	jne	.L12
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	subl	%eax, %edx
	movl	%edx, (%rcx)
	movb	$97, (%r9)
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	testl	%edx, %edx
	jle	.L2
	movslq	%edx, %rax
	movl	%edx, %ecx
	imulq	$1321528399, %rax, %rax
	sarl	$31, %ecx
	sarq	$35, %rax
	subl	%ecx, %eax
	imull	$26, %eax, %eax
	subl	%eax, %edx
	addb	%dl, -1(%rdi,%r8)
	ret
	.cfi_endproc
.LFE35:
	.size	sim, .-sim
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98320
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1728, %rsp
	.cfi_def_cfa_offset 100048
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rdx
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movl	12(%rsp), %edi
	movq	%rbp, %rdx
	xorl	%r11d, %r11d
	movl	%eax, %r9d
	movl	$123, %r10d
	xorl	%eax, %eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%edi, %esi
	setle	%cl
	cmpl	$26, %esi
	setne	%r8b
	andb	%r8b, %cl
	jne	.L27
.L15:
	addl	$1, %eax
	addq	$1, %rdx
	cmpl	%eax, %r9d
	jl	.L28
.L16:
	movsbl	(%rdx), %ecx
	movl	%r10d, %esi
	subl	%ecx, %esi
	cmpl	%eax, %r9d
	jne	.L14
	testl	%edi, %edi
	jle	.L14
	movslq	%edi, %rcx
	movl	%edi, %esi
	addl	$1, %eax
	imulq	$1321528399, %rcx, %rcx
	sarl	$31, %esi
	sarq	$35, %rcx
	subl	%esi, %ecx
	movl	%edi, %esi
	imull	$26, %ecx, %ecx
	subl	%ecx, %esi
	addb	%sil, -1(%rdx)
	addq	$1, %rdx
	cmpl	%eax, %r9d
	jge	.L16
.L28:
	testb	%r11b, %r11b
	je	.L17
	movl	%edi, 12(%rsp)
.L17:
	movq	%rbp, %rdi
	call	puts@PLT
	movq	100024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$100032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	movb	$97, (%rdx)
	subl	%esi, %edi
	movl	%ecx, %r11d
	jmp	.L15
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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:
```