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 <string.h>

int main(int argc, char *args[])
{
    char s[10];
    scanf("%s", s);
    //文字列の長さを調べる
    int n;
    n = strlen(s);
    int ans = 0;
    int cnt = 0;
    for(int i=0;i < n;i++){
        if(s[i] == 'A' || s[i] == 'C' ||s[i] == 'G' ||s[i] == 'T' ){
            cnt++;
        }
        else{
            cnt = 0;
        }
        if(ans < cnt){
            ans = cnt;
        }
    }
    printf("%d\n", ans);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movl	%edi, -52(%rbp)
	movq	%rsi, -64(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-18(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-18(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -24(%rbp)
	movl	$0, -36(%rbp)
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L2
.L7:
	movl	-28(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$65, %al
	je	.L3
	movl	-28(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$67, %al
	je	.L3
	movl	-28(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$71, %al
	je	.L3
	movl	-28(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$84, %al
	jne	.L4
.L3:
	addl	$1, -32(%rbp)
	jmp	.L5
.L4:
	movl	$0, -32(%rbp)
.L5:
	movl	-36(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jge	.L6
	movl	-32(%rbp), %eax
	movl	%eax, -36(%rbp)
.L6:
	addl	$1, -28(%rbp)
.L2:
	movl	-28(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L7
	movl	-36(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
	.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	.LC0(%rip), %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	14(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L14
	movzbl	14(%rsp), %ecx
	xorl	%edx, %edx
	subl	$65, %ecx
	cmpb	$19, %cl
	jbe	.L34
.L3:
	cmpl	$1, %eax
	je	.L2
	movzbl	15(%rsp), %esi
	leal	-65(%rsi), %ecx
	xorl	%esi, %esi
	cmpb	$19, %cl
	ja	.L5
	movq	$-524358, %rdi
	sarq	%cl, %rdi
	andb	$1, %dil
	jne	.L5
	leal	1(%rdx), %esi
.L5:
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	cmpl	$2, %eax
	je	.L2
	movzbl	16(%rsp), %ecx
	xorl	%edi, %edi
	subl	$65, %ecx
	cmpb	$19, %cl
	ja	.L6
	movq	$-524358, %r8
	sarq	%cl, %r8
	andb	$1, %r8b
	jne	.L6
	leal	1(%rsi), %edi
.L6:
	cmpl	%edi, %edx
	cmovl	%edi, %edx
	cmpl	$3, %eax
	je	.L2
	movzbl	17(%rsp), %esi
	leal	-65(%rsi), %ecx
	xorl	%esi, %esi
	cmpb	$19, %cl
	ja	.L7
	movq	$-524358, %r8
	sarq	%cl, %r8
	andb	$1, %r8b
	jne	.L7
	leal	1(%rdi), %esi
.L7:
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	cmpl	$4, %eax
	je	.L2
	movzbl	18(%rsp), %edi
	leal	-65(%rdi), %ecx
	xorl	%edi, %edi
	cmpb	$19, %cl
	ja	.L8
	movq	$-524358, %r8
	sarq	%cl, %r8
	andb	$1, %r8b
	jne	.L8
	leal	1(%rsi), %edi
.L8:
	cmpl	%edi, %edx
	cmovl	%edi, %edx
	cmpl	$5, %eax
	je	.L2
	movzbl	19(%rsp), %ecx
	xorl	%esi, %esi
	subl	$65, %ecx
	cmpb	$19, %cl
	ja	.L9
	movq	$-524358, %r8
	sarq	%cl, %r8
	andb	$1, %r8b
	jne	.L9
	leal	1(%rdi), %esi
.L9:
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	cmpl	$6, %eax
	je	.L2
	movzbl	20(%rsp), %edi
	leal	-65(%rdi), %ecx
	xorl	%edi, %edi
	cmpb	$19, %cl
	ja	.L10
	movq	$-524358, %r8
	sarq	%cl, %r8
	andb	$1, %r8b
	jne	.L10
	leal	1(%rsi), %edi
.L10:
	cmpl	%edi, %edx
	cmovl	%edi, %edx
	cmpl	$7, %eax
	je	.L2
	movzbl	21(%rsp), %esi
	leal	-65(%rsi), %ecx
	xorl	%esi, %esi
	cmpb	$19, %cl
	ja	.L11
	movq	$-524358, %r8
	sarq	%cl, %r8
	andb	$1, %r8b
	jne	.L11
	leal	1(%rdi), %esi
.L11:
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	cmpl	$9, %eax
	jne	.L2
	movzbl	22(%rsp), %eax
	leal	-65(%rax), %ecx
	xorl	%eax, %eax
	cmpb	$19, %cl
	ja	.L12
	movq	$-524358, %rdi
	sarq	%cl, %rdi
	andb	$1, %dil
	jne	.L12
	leal	1(%rsi), %eax
.L12:
	cmpl	%eax, %edx
	cmovl	%eax, %edx
.L2:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L35
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L34:
	.cfi_restore_state
	movq	$-524358, %rdx
	sarq	%cl, %rdx
	andl	$1, %edx
	xorl	$1, %edx
	movzbl	%dl, %edx
	jmp	.L3
.L14:
	xorl	%edx, %edx
	jmp	.L2
.L35:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
	.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	.LC0(%rip), %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	14(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L14
	movzbl	14(%rsp), %ecx
	xorl	%edx, %edx
	subl	$65, %ecx
	cmpb	$19, %cl
	jbe	.L34
.L3:
	cmpl	$1, %eax
	je	.L2
	movzbl	15(%rsp), %esi
	leal	-65(%rsi), %ecx
	xorl	%esi, %esi
	cmpb	$19, %cl
	ja	.L5
	movq	$-524358, %rdi
	sarq	%cl, %rdi
	andb	$1, %dil
	jne	.L5
	leal	1(%rdx), %esi
.L5:
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	cmpl	$2, %eax
	je	.L2
	movzbl	16(%rsp), %ecx
	xorl	%edi, %edi
	subl	$65, %ecx
	cmpb	$19, %cl
	ja	.L6
	movq	$-524358, %r8
	sarq	%cl, %r8
	andb	$1, %r8b
	jne	.L6
	leal	1(%rsi), %edi
.L6:
	cmpl	%edi, %edx
	cmovl	%edi, %edx
	cmpl	$3, %eax
	je	.L2
	movzbl	17(%rsp), %esi
	leal	-65(%rsi), %ecx
	xorl	%esi, %esi
	cmpb	$19, %cl
	ja	.L7
	movq	$-524358, %r8
	sarq	%cl, %r8
	andb	$1, %r8b
	jne	.L7
	leal	1(%rdi), %esi
.L7:
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	cmpl	$4, %eax
	je	.L2
	movzbl	18(%rsp), %edi
	leal	-65(%rdi), %ecx
	xorl	%edi, %edi
	cmpb	$19, %cl
	ja	.L8
	movq	$-524358, %r8
	sarq	%cl, %r8
	andb	$1, %r8b
	jne	.L8
	leal	1(%rsi), %edi
.L8:
	cmpl	%edi, %edx
	cmovl	%edi, %edx
	cmpl	$5, %eax
	je	.L2
	movzbl	19(%rsp), %ecx
	xorl	%esi, %esi
	subl	$65, %ecx
	cmpb	$19, %cl
	ja	.L9
	movq	$-524358, %r8
	sarq	%cl, %r8
	andb	$1, %r8b
	jne	.L9
	leal	1(%rdi), %esi
.L9:
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	cmpl	$6, %eax
	je	.L2
	movzbl	20(%rsp), %edi
	leal	-65(%rdi), %ecx
	xorl	%edi, %edi
	cmpb	$19, %cl
	ja	.L10
	movq	$-524358, %r8
	sarq	%cl, %r8
	andb	$1, %r8b
	jne	.L10
	leal	1(%rsi), %edi
.L10:
	cmpl	%edi, %edx
	cmovl	%edi, %edx
	cmpl	$7, %eax
	je	.L2
	movzbl	21(%rsp), %esi
	leal	-65(%rsi), %ecx
	xorl	%esi, %esi
	cmpb	$19, %cl
	ja	.L11
	movq	$-524358, %r8
	sarq	%cl, %r8
	andb	$1, %r8b
	jne	.L11
	leal	1(%rdi), %esi
.L11:
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	cmpl	$9, %eax
	jne	.L2
	movzbl	22(%rsp), %eax
	leal	-65(%rax), %ecx
	xorl	%eax, %eax
	cmpb	$19, %cl
	ja	.L12
	movq	$-524358, %rdi
	sarq	%cl, %rdi
	andb	$1, %dil
	jne	.L12
	leal	1(%rsi), %eax
.L12:
	cmpl	%eax, %edx
	cmovl	%eax, %edx
.L2:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L35
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L34:
	.cfi_restore_state
	movq	$-524358, %rdx
	sarq	%cl, %rdx
	andl	$1, %edx
	xorl	$1, %edx
	movzbl	%dl, %edx
	jmp	.L3
.L14:
	xorl	%edx, %edx
	jmp	.L2
.L35:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:

#include <stdio.h>
#include <string.h>

int main(int argc, char *args[])
{
    char s[10];
    scanf("%s", s);
    //文字列の長さを調べる
    int n;
    n = strlen(s);
    int ans = 0;
    int cnt = 0;
    for(int i=0;i < n;i++){
        if(s[i] == 'A' || s[i] == 'C' ||s[i] == 'G' ||s[i] == 'T' ){
            cnt++;
        }
        else{
            cnt = 0;
        }
        if(ans < cnt){
            ans = cnt;
        }
    }
    printf("%d\n", ans);
    return 0;
}
SHINJUKV
 ATCPDER
 HATAGBYA
 HASAGBYA
 VKUJNIHT
 HATAGCYA
 VKUJNIHS
 ATCPCER
 ATCPBER
 HASAGCYA

0
 3
 4
 2
 1
 5
 0
 3
 3
 3

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 <string.h>

int main(int argc, char *args[])
{
    char s[10];
    scanf("%s", s);
    //文字列の長さを調べる
    int n;
    n = strlen(s);
    int ans = 0;
    int cnt = 0;
    for(int i=0;i < n;i++){
        if(s[i] == 'A' || s[i] == 'C' ||s[i] == 'G' ||s[i] == 'T' ){
            cnt++;
        }
        else{
            cnt = 0;
        }
        if(ans < cnt){
            ans = cnt;
        }
    }
    printf("%d\n", ans);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movl	%edi, -52(%rbp)
	movq	%rsi, -64(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-18(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-18(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -24(%rbp)
	movl	$0, -36(%rbp)
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L2
.L7:
	movl	-28(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$65, %al
	je	.L3
	movl	-28(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$67, %al
	je	.L3
	movl	-28(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$71, %al
	je	.L3
	movl	-28(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$84, %al
	jne	.L4
.L3:
	addl	$1, -32(%rbp)
	jmp	.L5
.L4:
	movl	$0, -32(%rbp)
.L5:
	movl	-36(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jge	.L6
	movl	-32(%rbp), %eax
	movl	%eax, -36(%rbp)
.L6:
	addl	$1, -28(%rbp)
.L2:
	movl	-28(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L7
	movl	-36(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movl	%edi, -52(%rbp)
	movq	%rsi, -64(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-18(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-18(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -24(%rbp)
	movl	$0, -36(%rbp)
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L2
.L7:
	movl	-28(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$65, %al
	je	.L3
	movl	-28(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$67, %al
	je	.L3
	movl	-28(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$71, %al
	je	.L3
	movl	-28(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$84, %al
	jne	.L4
.L3:
	addl	$1, -32(%rbp)
	jmp	.L5
.L4:
	movl	$0, -32(%rbp)
.L5:
	movl	-36(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jge	.L6
	movl	-32(%rbp), %eax
	movl	%eax, -36(%rbp)
.L6:
	addl	$1, -28(%rbp)
.L2:
	movl	-28(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L7
	movl	-36(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
