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

int main(void){
        char s[10];
        int l = 0, i, cnt = 0;
        bool ok = true;
        while((s[l]=getchar())!='\n') l++;
        for(i=0; i<l; i++){
                if('a'<=s[i] && s[i]<='z') cnt++;
                else if(s[i]=='C') ok &= (1<i && i<l-1);
                else if(s[i]=='A') ok &= (i==0);
                else ok = false;
        }
        if(ok && cnt==l-2) puts("AC");
        else puts("WA");
        return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"AC"
.LC1:
	.string	"WA"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	14(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdin(%rip), %rdi
	movl	%ebx, %ebp
	call	getc@PLT
	movb	%al, (%r12,%rbx)
	addq	$1, %rbx
	cmpb	$10, %al
	jne	.L2
	testl	%ebp, %ebp
	je	.L3
	movzbl	14(%rsp), %eax
	leal	-1(%rbp), %esi
	leal	-97(%rax), %edx
	cmpb	$25, %dl
	ja	.L64
	movl	$1, %ecx
	movl	$1, %edx
.L4:
	testl	%esi, %esi
	jle	.L44
	movzbl	15(%rsp), %eax
	subl	$97, %eax
	cmpb	$25, %al
	jbe	.L6
	cmpl	$2, %ebp
	jle	.L3
	movl	$2, %eax
	xorl	%ecx, %ecx
.L7:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L8
	cmpb	$67, %dil
	je	.L65
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L41:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L12
	cmpb	$67, %dil
	je	.L66
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L40:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L15
	cmpb	$67, %dil
	je	.L67
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L39:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L18
	cmpb	$67, %dil
	je	.L68
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L38:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L21
	cmpb	$67, %dil
	je	.L69
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jg	.L37
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L33:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L70
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L64:
	.cfi_restore_state
	cmpb	$65, %al
	sete	%cl
	xorl	%edx, %edx
	jmp	.L4
.L8:
	addl	$1, %edx
.L10:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L41
.L11:
	testb	%cl, %cl
	je	.L3
	subl	$2, %ebp
	cmpl	%edx, %ebp
	jne	.L3
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
	jmp	.L33
.L12:
	addl	$1, %edx
.L14:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L40
	jmp	.L11
.L6:
	addl	$1, %edx
	movl	$2, %eax
.L5:
	cmpl	%eax, %ebp
	jg	.L7
	jmp	.L11
.L15:
	addl	$1, %edx
.L17:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L39
	jmp	.L11
.L18:
	addl	$1, %edx
.L20:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L38
	jmp	.L11
.L21:
	addl	$1, %edx
.L23:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jle	.L11
.L37:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L24
	cmpb	$67, %dil
	je	.L71
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jg	.L36
	jmp	.L3
.L24:
	addl	$1, %edx
.L26:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jle	.L11
.L36:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L27
	cmpb	$67, %dil
	je	.L72
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jg	.L35
	jmp	.L3
.L27:
	addl	$1, %edx
.L29:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jle	.L11
.L35:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L30
	cmpb	$67, %dil
	je	.L73
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L34:
	movzbl	23(%rsp), %eax
	addl	$1, %edx
	subl	$97, %eax
	cmpb	$25, %al
	jbe	.L11
	jmp	.L3
.L30:
	addl	$1, %edx
.L32:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L34
	jmp	.L11
.L69:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L23
.L71:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L26
.L72:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L29
.L65:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L10
.L66:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L14
.L67:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L17
.L68:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L20
.L44:
	movl	$1, %eax
	jmp	.L5
.L73:
	cmpl	%esi, %eax
	setl	%sil
	andl	%esi, %ecx
	jmp	.L32
.L70:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"AC"
.LC1:
	.string	"WA"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	14(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdin(%rip), %rdi
	movl	%ebx, %ebp
	call	getc@PLT
	movb	%al, (%r12,%rbx)
	addq	$1, %rbx
	cmpb	$10, %al
	jne	.L2
	testl	%ebp, %ebp
	je	.L3
	movzbl	14(%rsp), %eax
	leal	-1(%rbp), %esi
	leal	-97(%rax), %edx
	cmpb	$25, %dl
	ja	.L64
	movl	$1, %ecx
	movl	$1, %edx
.L4:
	testl	%esi, %esi
	jle	.L44
	movzbl	15(%rsp), %eax
	subl	$97, %eax
	cmpb	$25, %al
	jbe	.L6
	cmpl	$2, %ebp
	jle	.L3
	movl	$2, %eax
	xorl	%ecx, %ecx
.L7:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L8
	cmpb	$67, %dil
	je	.L65
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L41:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L12
	cmpb	$67, %dil
	je	.L66
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L40:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L15
	cmpb	$67, %dil
	je	.L67
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L39:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L18
	cmpb	$67, %dil
	je	.L68
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L38:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L21
	cmpb	$67, %dil
	je	.L69
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jg	.L37
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L33:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L70
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L64:
	.cfi_restore_state
	cmpb	$65, %al
	sete	%cl
	xorl	%edx, %edx
	jmp	.L4
.L8:
	addl	$1, %edx
.L10:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L41
.L11:
	testb	%cl, %cl
	je	.L3
	subl	$2, %ebp
	cmpl	%edx, %ebp
	jne	.L3
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
	jmp	.L33
.L12:
	addl	$1, %edx
.L14:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L40
	jmp	.L11
.L6:
	addl	$1, %edx
	movl	$2, %eax
.L5:
	cmpl	%eax, %ebp
	jg	.L7
	jmp	.L11
.L15:
	addl	$1, %edx
.L17:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L39
	jmp	.L11
.L18:
	addl	$1, %edx
.L20:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L38
	jmp	.L11
.L21:
	addl	$1, %edx
.L23:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jle	.L11
.L37:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L24
	cmpb	$67, %dil
	je	.L71
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jg	.L36
	jmp	.L3
.L24:
	addl	$1, %edx
.L26:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jle	.L11
.L36:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L27
	cmpb	$67, %dil
	je	.L72
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jg	.L35
	jmp	.L3
.L27:
	addl	$1, %edx
.L29:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jle	.L11
.L35:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L30
	cmpb	$67, %dil
	je	.L73
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L34:
	movzbl	23(%rsp), %eax
	addl	$1, %edx
	subl	$97, %eax
	cmpb	$25, %al
	jbe	.L11
	jmp	.L3
.L30:
	addl	$1, %edx
.L32:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L34
	jmp	.L11
.L69:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L23
.L71:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L26
.L72:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L29
.L65:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L10
.L66:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L14
.L67:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L17
.L68:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L20
.L44:
	movl	$1, %eax
	jmp	.L5
.L73:
	cmpl	%esi, %eax
	setl	%sil
	andl	%esi, %ecx
	jmp	.L32
.L70:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"AC"
.LC1:
	.string	"WA"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	14(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdin(%rip), %rdi
	movl	%ebx, %ebp
	call	getc@PLT
	movb	%al, (%r12,%rbx)
	addq	$1, %rbx
	cmpb	$10, %al
	jne	.L2
	testl	%ebp, %ebp
	je	.L3
	movzbl	14(%rsp), %eax
	leal	-1(%rbp), %esi
	leal	-97(%rax), %edx
	cmpb	$25, %dl
	ja	.L64
	movl	$1, %ecx
	movl	$1, %edx
.L4:
	testl	%esi, %esi
	jle	.L44
	movzbl	15(%rsp), %eax
	subl	$97, %eax
	cmpb	$25, %al
	jbe	.L6
	cmpl	$2, %ebp
	jle	.L3
	movl	$2, %eax
	xorl	%ecx, %ecx
.L7:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L8
	cmpb	$67, %dil
	je	.L65
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L41:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L12
	cmpb	$67, %dil
	je	.L66
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L40:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L15
	cmpb	$67, %dil
	je	.L67
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L39:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L18
	cmpb	$67, %dil
	je	.L68
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L38:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L21
	cmpb	$67, %dil
	je	.L69
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jg	.L37
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L33:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L70
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L64:
	.cfi_restore_state
	cmpb	$65, %al
	sete	%cl
	xorl	%edx, %edx
	jmp	.L4
.L8:
	addl	$1, %edx
.L10:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L41
.L11:
	testb	%cl, %cl
	je	.L3
	subl	$2, %ebp
	cmpl	%edx, %ebp
	jne	.L3
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
	jmp	.L33
.L12:
	addl	$1, %edx
.L14:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L40
	jmp	.L11
.L6:
	addl	$1, %edx
	movl	$2, %eax
.L5:
	cmpl	%eax, %ebp
	jg	.L7
	jmp	.L11
.L15:
	addl	$1, %edx
.L17:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L39
	jmp	.L11
.L18:
	addl	$1, %edx
.L20:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L38
	jmp	.L11
.L21:
	addl	$1, %edx
.L23:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jle	.L11
.L37:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L24
	cmpb	$67, %dil
	je	.L71
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jg	.L36
	jmp	.L3
.L24:
	addl	$1, %edx
.L26:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jle	.L11
.L36:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L27
	cmpb	$67, %dil
	je	.L72
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jg	.L35
	jmp	.L3
.L27:
	addl	$1, %edx
.L29:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jle	.L11
.L35:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L30
	cmpb	$67, %dil
	je	.L73
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L34:
	movzbl	23(%rsp), %eax
	addl	$1, %edx
	subl	$97, %eax
	cmpb	$25, %al
	jbe	.L11
	jmp	.L3
.L30:
	addl	$1, %edx
.L32:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L34
	jmp	.L11
.L69:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L23
.L71:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L26
.L72:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L29
.L65:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L10
.L66:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L14
.L67:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L17
.L68:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L20
.L44:
	movl	$1, %eax
	jmp	.L5
.L73:
	cmpl	%esi, %eax
	setl	%sil
	andl	%esi, %ecx
	jmp	.L32
.L70:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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<stdbool.h>

int main(void){
        char s[10];
        int l = 0, i, cnt = 0;
        bool ok = true;
        while((s[l]=getchar())!='\n') l++;
        for(i=0; i<l; i++){
                if('a'<=s[i] && s[i]<='z') cnt++;
                else if(s[i]=='C') ok &= (1<i && i<l-1);
                else if(s[i]=='A') ok &= (i==0);
                else ok = false;
        }
        if(ok && cnt==l-2) puts("AC");
        else puts("WA");
        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<stdbool.h>

int main(void){
        char s[10];
        int l = 0, i, cnt = 0;
        bool ok = true;
        while((s[l]=getchar())!='\n') l++;
        for(i=0; i<l; i++){
                if('a'<=s[i] && s[i]<='z') cnt++;
                else if(s[i]=='C') ok &= (1<i && i<l-1);
                else if(s[i]=='A') ok &= (i==0);
                else ok = false;
        }
        if(ok && cnt==l-2) puts("AC");
        else puts("WA");
        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:

AtBoCo
 AtCoddr
 redoctA
 ACodes
 BcycliC
 etCodAr
 AtBnCo
 redpctA
 ACodds
 CilcycB

WA
 AC
 WA
 WA
 WA
 WA
 WA
 WA
 WA
 WA

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

int main(void){
        char s[10];
        int l = 0, i, cnt = 0;
        bool ok = true;
        while((s[l]=getchar())!='\n') l++;
        for(i=0; i<l; i++){
                if('a'<=s[i] && s[i]<='z') cnt++;
                else if(s[i]=='C') ok &= (1<i && i<l-1);
                else if(s[i]=='A') ok &= (i==0);
                else ok = false;
        }
        if(ok && cnt==l-2) puts("AC");
        else puts("WA");
        return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"AC"
.LC1:
	.string	"WA"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	14(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdin(%rip), %rdi
	movl	%ebx, %ebp
	call	getc@PLT
	movb	%al, (%r12,%rbx)
	addq	$1, %rbx
	cmpb	$10, %al
	jne	.L2
	testl	%ebp, %ebp
	je	.L3
	movzbl	14(%rsp), %eax
	leal	-1(%rbp), %esi
	leal	-97(%rax), %edx
	cmpb	$25, %dl
	ja	.L64
	movl	$1, %ecx
	movl	$1, %edx
.L4:
	testl	%esi, %esi
	jle	.L44
	movzbl	15(%rsp), %eax
	subl	$97, %eax
	cmpb	$25, %al
	jbe	.L6
	cmpl	$2, %ebp
	jle	.L3
	movl	$2, %eax
	xorl	%ecx, %ecx
.L7:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L8
	cmpb	$67, %dil
	je	.L65
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L41:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L12
	cmpb	$67, %dil
	je	.L66
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L40:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L15
	cmpb	$67, %dil
	je	.L67
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L39:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L18
	cmpb	$67, %dil
	je	.L68
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L38:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L21
	cmpb	$67, %dil
	je	.L69
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jg	.L37
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L33:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L70
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L64:
	.cfi_restore_state
	cmpb	$65, %al
	sete	%cl
	xorl	%edx, %edx
	jmp	.L4
.L8:
	addl	$1, %edx
.L10:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L41
.L11:
	testb	%cl, %cl
	je	.L3
	subl	$2, %ebp
	cmpl	%edx, %ebp
	jne	.L3
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
	jmp	.L33
.L12:
	addl	$1, %edx
.L14:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L40
	jmp	.L11
.L6:
	addl	$1, %edx
	movl	$2, %eax
.L5:
	cmpl	%eax, %ebp
	jg	.L7
	jmp	.L11
.L15:
	addl	$1, %edx
.L17:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L39
	jmp	.L11
.L18:
	addl	$1, %edx
.L20:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L38
	jmp	.L11
.L21:
	addl	$1, %edx
.L23:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jle	.L11
.L37:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L24
	cmpb	$67, %dil
	je	.L71
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jg	.L36
	jmp	.L3
.L24:
	addl	$1, %edx
.L26:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jle	.L11
.L36:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L27
	cmpb	$67, %dil
	je	.L72
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jg	.L35
	jmp	.L3
.L27:
	addl	$1, %edx
.L29:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jle	.L11
.L35:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L30
	cmpb	$67, %dil
	je	.L73
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L34:
	movzbl	23(%rsp), %eax
	addl	$1, %edx
	subl	$97, %eax
	cmpb	$25, %al
	jbe	.L11
	jmp	.L3
.L30:
	addl	$1, %edx
.L32:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L34
	jmp	.L11
.L69:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L23
.L71:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L26
.L72:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L29
.L65:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L10
.L66:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L14
.L67:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L17
.L68:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L20
.L44:
	movl	$1, %eax
	jmp	.L5
.L73:
	cmpl	%esi, %eax
	setl	%sil
	andl	%esi, %ecx
	jmp	.L32
.L70:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"AC"
.LC1:
	.string	"WA"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	14(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdin(%rip), %rdi
	movl	%ebx, %ebp
	call	getc@PLT
	movb	%al, (%r12,%rbx)
	addq	$1, %rbx
	cmpb	$10, %al
	jne	.L2
	testl	%ebp, %ebp
	je	.L3
	movzbl	14(%rsp), %eax
	leal	-1(%rbp), %esi
	leal	-97(%rax), %edx
	cmpb	$25, %dl
	ja	.L64
	movl	$1, %ecx
	movl	$1, %edx
.L4:
	testl	%esi, %esi
	jle	.L44
	movzbl	15(%rsp), %eax
	subl	$97, %eax
	cmpb	$25, %al
	jbe	.L6
	cmpl	$2, %ebp
	jle	.L3
	movl	$2, %eax
	xorl	%ecx, %ecx
.L7:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L8
	cmpb	$67, %dil
	je	.L65
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L41:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L12
	cmpb	$67, %dil
	je	.L66
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L40:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L15
	cmpb	$67, %dil
	je	.L67
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L39:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L18
	cmpb	$67, %dil
	je	.L68
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L38:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L21
	cmpb	$67, %dil
	je	.L69
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jg	.L37
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L33:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L70
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L64:
	.cfi_restore_state
	cmpb	$65, %al
	sete	%cl
	xorl	%edx, %edx
	jmp	.L4
.L8:
	addl	$1, %edx
.L10:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L41
.L11:
	testb	%cl, %cl
	je	.L3
	subl	$2, %ebp
	cmpl	%edx, %ebp
	jne	.L3
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
	jmp	.L33
.L12:
	addl	$1, %edx
.L14:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L40
	jmp	.L11
.L6:
	addl	$1, %edx
	movl	$2, %eax
.L5:
	cmpl	%eax, %ebp
	jg	.L7
	jmp	.L11
.L15:
	addl	$1, %edx
.L17:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L39
	jmp	.L11
.L18:
	addl	$1, %edx
.L20:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L38
	jmp	.L11
.L21:
	addl	$1, %edx
.L23:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jle	.L11
.L37:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L24
	cmpb	$67, %dil
	je	.L71
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jg	.L36
	jmp	.L3
.L24:
	addl	$1, %edx
.L26:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jle	.L11
.L36:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L27
	cmpb	$67, %dil
	je	.L72
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jg	.L35
	jmp	.L3
.L27:
	addl	$1, %edx
.L29:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jle	.L11
.L35:
	movslq	%eax, %rdi
	movzbl	14(%rsp,%rdi), %edi
	leal	-97(%rdi), %r8d
	cmpb	$25, %r8b
	jbe	.L30
	cmpb	$67, %dil
	je	.L73
	addl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebp
	jle	.L3
.L34:
	movzbl	23(%rsp), %eax
	addl	$1, %edx
	subl	$97, %eax
	cmpb	$25, %al
	jbe	.L11
	jmp	.L3
.L30:
	addl	$1, %edx
.L32:
	addl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L34
	jmp	.L11
.L69:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L23
.L71:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L26
.L72:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L29
.L65:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L10
.L66:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L14
.L67:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L17
.L68:
	cmpl	%eax, %esi
	setg	%dil
	andl	%edi, %ecx
	jmp	.L20
.L44:
	movl	$1, %eax
	jmp	.L5
.L73:
	cmpl	%esi, %eax
	setl	%sil
	andl	%esi, %ecx
	jmp	.L32
.L70:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```