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 <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <limits.h>
#include <assert.h>
#define FOR(i,a,n) for(i=(a);i<(n);i++)
#define swap(type,a,b) do{type t=a;a=b;b=t;}while(0)
#define MAX(a,b) (((a)>(b))?(a):(b))
#define MIN(a,b) (((a)<(b))?(a):(b))
#define ll long long
#define INF 100000000
#define MOD 1000000007
#define SIZE 100005
#define LOCAL
#ifdef LOCAL
    #define DEBUG(...) printf(" "__VA_ARGS__)
#else
    #define DEBUG(...)
#endif /* LOCAL */
int comp(const void* a,const void* b){
	return *(int*)a-*(int*)b;
}

char str[30];
int cnt[26];
int main(void)
{
	int len,i,j;
	scanf("%s",str);
	len=strlen(str);
	FOR(i,0,len) cnt[str[i]-'a']++;
	if(len<26){
		for(i=0;cnt[i];i++);
		str[len]='a'+i;
		puts(str);
		return 0;
	}else{
		for(i=len-1;i>=0;i--){
			for(j=(str[i]-'a');j<26;j++){
				if(!cnt[j]){
					str[i]='a'+j;
					puts(str);
					return 0;
				}
			}
			cnt[str[i]-'a']=0;
			str[i]='\0';
		}
	}
	puts("-1");
	return 0;
}
    
    
```

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	str
	.bss
	.align 16
	.type	str, @object
	.size	str, 30
str:
	.zero	30
	.globl	cnt
	.align 32
	.type	cnt, @object
	.size	cnt, 104
cnt:
	.zero	104
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"-1"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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	str(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	str(%rip), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -4(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L4
.L5:
	movl	-12(%rbp), %eax
	cltq
	leaq	str(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cnt(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L4:
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L5
	cmpl	$25, -4(%rbp)
	jg	.L6
	movl	$0, -12(%rbp)
	jmp	.L7
.L8:
	addl	$1, -12(%rbp)
.L7:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L8
	movl	-12(%rbp), %eax
	addl	$97, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	str(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	leaq	str(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L9
.L6:
	movl	-4(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L10
.L14:
	movl	-12(%rbp), %eax
	cltq
	leaq	str(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movl	%eax, -8(%rbp)
	jmp	.L11
.L13:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L12
	movl	-8(%rbp), %eax
	addl	$97, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	str(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	leaq	str(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L9
.L12:
	addl	$1, -8(%rbp)
.L11:
	cmpl	$25, -8(%rbp)
	jle	.L13
	movl	-12(%rbp), %eax
	cltq
	leaq	str(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	leaq	str(%rip), %rdx
	movb	$0, (%rax,%rdx)
	subl	$1, -12(%rbp)
.L10:
	cmpl	$0, -12(%rbp)
	jns	.L14
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"-1"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	str(%rip), %rbp
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L4
	leal	-1(%rax), %edx
	leaq	1(%rbp), %rdi
	movq	%rbp, %rcx
	movq	%rdx, %r8
	addq	%rdx, %rdi
	leaq	cnt(%rip), %rsi
	.p2align 4,,10
	.p2align 3
.L5:
	movsbl	(%rcx), %edx
	addq	$1, %rcx
	subl	$97, %edx
	movslq	%edx, %rdx
	addl	$1, (%rsi,%rdx,4)
	cmpq	%rcx, %rdi
	jne	.L5
	movslq	%r8d, %rcx
	cmpq	$25, %rax
	jbe	.L4
.L13:
	movsbl	0(%rbp,%rcx), %eax
	movslq	%ecx, %rdi
	subl	$97, %eax
	movslq	%eax, %rdx
	cmpl	$25, %eax
	jg	.L10
	movq	%rdx, %rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$1, %rax
	cmpl	$25, %eax
	jg	.L10
.L12:
	movl	(%rsi,%rax,4), %r8d
	testl	%r8d, %r8d
	jne	.L11
	addl	$97, %eax
	movb	%al, 0(%rbp,%rdi)
	movq	%rbp, %rdi
	call	puts@PLT
.L9:
	xorl	%eax, %eax
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	movb	$0, 0(%rbp,%rcx)
	subq	$1, %rcx
	movl	$0, (%rsi,%rdx,4)
	cmpl	$-1, %ecx
	jne	.L13
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L4:
	movl	cnt(%rip), %ecx
	testl	%ecx, %ecx
	je	.L7
	movl	$1, %edx
	leaq	-4+cnt(%rip), %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%edx, %ecx
	addq	$1, %rdx
	movl	(%rsi,%rdx,4), %r9d
	testl	%r9d, %r9d
	jne	.L8
.L7:
	addl	$97, %ecx
	cltq
	movq	%rbp, %rdi
	movb	%cl, 0(%rbp,%rax)
	call	puts@PLT
	jmp	.L9
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.globl	cnt
	.bss
	.align 32
	.type	cnt, @object
	.size	cnt, 104
cnt:
	.zero	104
	.globl	str
	.align 16
	.type	str, @object
	.size	str, 30
str:
	.zero	30
	.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:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"-1"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	str(%rip), %rbp
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L4
	leal	-1(%rax), %edx
	leaq	1(%rbp), %rdi
	movq	%rbp, %rcx
	movq	%rdx, %r8
	addq	%rdx, %rdi
	leaq	cnt(%rip), %rsi
	.p2align 4,,10
	.p2align 3
.L5:
	movsbl	(%rcx), %edx
	addq	$1, %rcx
	subl	$97, %edx
	movslq	%edx, %rdx
	addl	$1, (%rsi,%rdx,4)
	cmpq	%rcx, %rdi
	jne	.L5
	movslq	%r8d, %rcx
	cmpq	$25, %rax
	jbe	.L4
.L13:
	movsbl	0(%rbp,%rcx), %eax
	movslq	%ecx, %rdi
	subl	$97, %eax
	movslq	%eax, %rdx
	cmpl	$25, %eax
	jg	.L10
	movq	%rdx, %rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$1, %rax
	cmpl	$25, %eax
	jg	.L10
.L12:
	movl	(%rsi,%rax,4), %r8d
	testl	%r8d, %r8d
	jne	.L11
	addl	$97, %eax
	movb	%al, 0(%rbp,%rdi)
	movq	%rbp, %rdi
	call	puts@PLT
.L9:
	xorl	%eax, %eax
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	movb	$0, 0(%rbp,%rcx)
	subq	$1, %rcx
	movl	$0, (%rsi,%rdx,4)
	cmpl	$-1, %ecx
	jne	.L13
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L4:
	movl	cnt(%rip), %ecx
	testl	%ecx, %ecx
	je	.L7
	movl	$1, %edx
	leaq	-4+cnt(%rip), %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%edx, %ecx
	addq	$1, %rdx
	movl	(%rsi,%rdx,4), %r9d
	testl	%r9d, %r9d
	jne	.L8
.L7:
	addl	$97, %ecx
	cltq
	movq	%rbp, %rdi
	movb	%cl, 0(%rbp,%rax)
	call	puts@PLT
	jmp	.L9
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.globl	cnt
	.bss
	.align 32
	.type	cnt, @object
	.size	cnt, 104
cnt:
	.zero	104
	.globl	str
	.align 16
	.type	str, @object
	.size	str, 30
str:
	.zero	30
	.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 <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <limits.h>
#include <assert.h>
#define FOR(i,a,n) for(i=(a);i<(n);i++)
#define swap(type,a,b) do{type t=a;a=b;b=t;}while(0)
#define MAX(a,b) (((a)>(b))?(a):(b))
#define MIN(a,b) (((a)<(b))?(a):(b))
#define ll long long
#define INF 100000000
#define MOD 1000000007
#define SIZE 100005
#define LOCAL
#ifdef LOCAL
    #define DEBUG(...) printf(" "__VA_ARGS__)
#else
    #define DEBUG(...)
#endif /* LOCAL */
int comp(const void* a,const void* b){
	return *(int*)a-*(int*)b;
}

char str[30];
int cnt[26];
int main(void)
{
	int len,i,j;
	scanf("%s",str);
	len=strlen(str);
	FOR(i,0,len) cnt[str[i]-'a']++;
	if(len<26){
		for(i=0;cnt[i];i++);
		str[len]='a'+i;
		puts(str);
		return 0;
	}else{
		for(i=len-1;i>=0;i--){
			for(j=(str[i]-'a');j<26;j++){
				if(!cnt[j]){
					str[i]='a'+j;
					puts(str);
					return 0;
				}
			}
			cnt[str[i]-'a']=0;
			str[i]='\0';
		}
	}
	puts("-1");
	return 0;
}
    
    

redocta
 azcdefghijklmnopqrstuvwbyx
 cba
 redoctb
 bca
 bac
 abd
 atcodes
 abcdefghijklmnopqrytuvwzsx
 btcoder

redoctab
 azcdefghijklmnopqrstuvwx
 cbad
 redoctba
 bcad
 bacd
 abdc
 atcodesb
 abcdefghijklmnopqrytuvwzx
 btcodera

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 <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <limits.h>
#include <assert.h>
#define FOR(i,a,n) for(i=(a);i<(n);i++)
#define swap(type,a,b) do{type t=a;a=b;b=t;}while(0)
#define MAX(a,b) (((a)>(b))?(a):(b))
#define MIN(a,b) (((a)<(b))?(a):(b))
#define ll long long
#define INF 100000000
#define MOD 1000000007
#define SIZE 100005
#define LOCAL
#ifdef LOCAL
    #define DEBUG(...) printf(" "__VA_ARGS__)
#else
    #define DEBUG(...)
#endif /* LOCAL */
int comp(const void* a,const void* b){
	return *(int*)a-*(int*)b;
}

char str[30];
int cnt[26];
int main(void)
{
	int len,i,j;
	scanf("%s",str);
	len=strlen(str);
	FOR(i,0,len) cnt[str[i]-'a']++;
	if(len<26){
		for(i=0;cnt[i];i++);
		str[len]='a'+i;
		puts(str);
		return 0;
	}else{
		for(i=len-1;i>=0;i--){
			for(j=(str[i]-'a');j<26;j++){
				if(!cnt[j]){
					str[i]='a'+j;
					puts(str);
					return 0;
				}
			}
			cnt[str[i]-'a']=0;
			str[i]='\0';
		}
	}
	puts("-1");
	return 0;
}
    
    
```

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	str
	.bss
	.align 16
	.type	str, @object
	.size	str, 30
str:
	.zero	30
	.globl	cnt
	.align 32
	.type	cnt, @object
	.size	cnt, 104
cnt:
	.zero	104
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"-1"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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	str(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	str(%rip), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -4(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L4
.L5:
	movl	-12(%rbp), %eax
	cltq
	leaq	str(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cnt(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L4:
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L5
	cmpl	$25, -4(%rbp)
	jg	.L6
	movl	$0, -12(%rbp)
	jmp	.L7
.L8:
	addl	$1, -12(%rbp)
.L7:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L8
	movl	-12(%rbp), %eax
	addl	$97, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	str(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	leaq	str(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L9
.L6:
	movl	-4(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L10
.L14:
	movl	-12(%rbp), %eax
	cltq
	leaq	str(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movl	%eax, -8(%rbp)
	jmp	.L11
.L13:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L12
	movl	-8(%rbp), %eax
	addl	$97, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	str(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	leaq	str(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L9
.L12:
	addl	$1, -8(%rbp)
.L11:
	cmpl	$25, -8(%rbp)
	jle	.L13
	movl	-12(%rbp), %eax
	cltq
	leaq	str(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	leaq	str(%rip), %rdx
	movb	$0, (%rax,%rdx)
	subl	$1, -12(%rbp)
.L10:
	cmpl	$0, -12(%rbp)
	jns	.L14
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	str
	.bss
	.align 16
	.type	str, @object
	.size	str, 30
str:
	.zero	30
	.globl	cnt
	.align 32
	.type	cnt, @object
	.size	cnt, 104
cnt:
	.zero	104
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"-1"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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	str(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	str(%rip), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -4(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L4
.L5:
	movl	-12(%rbp), %eax
	cltq
	leaq	str(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cnt(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L4:
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L5
	cmpl	$25, -4(%rbp)
	jg	.L6
	movl	$0, -12(%rbp)
	jmp	.L7
.L8:
	addl	$1, -12(%rbp)
.L7:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L8
	movl	-12(%rbp), %eax
	addl	$97, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	str(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	leaq	str(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L9
.L6:
	movl	-4(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L10
.L14:
	movl	-12(%rbp), %eax
	cltq
	leaq	str(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movl	%eax, -8(%rbp)
	jmp	.L11
.L13:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L12
	movl	-8(%rbp), %eax
	addl	$97, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	str(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	leaq	str(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L9
.L12:
	addl	$1, -8(%rbp)
.L11:
	cmpl	$25, -8(%rbp)
	jle	.L13
	movl	-12(%rbp), %eax
	cltq
	leaq	str(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	leaq	str(%rip), %rdx
	movb	$0, (%rax,%rdx)
	subl	$1, -12(%rbp)
.L10:
	cmpl	$0, -12(%rbp)
	jns	.L14
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
