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(void){
  char s[10];
  int l,f,i,a,b;
  scanf("%s",s);
  l=strlen(s);
  f=0;
  if(s[0]=='A')f++;
  a=0;
  for(i=2;i<l-1;i++){
    if(s[i]=='C')a++;
  }
  if(a==1)f++;
  for(i=0;i<l;i++){
    if(((s[i]>='a')&&(s[i]<='z'))||(s[i]=='A')||(s[i]=='C')) b++;
  }
  if(b==l)f++;
  if(f==3)printf("AC");
  else printf("WA");
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"AC"
.LC2:
	.string	"WA"
	.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	$48, %rsp
	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, -40(%rbp)
	movzbl	-18(%rbp), %eax
	cmpb	$65, %al
	jne	.L2
	addl	$1, -40(%rbp)
.L2:
	movl	$0, -32(%rbp)
	movl	$2, -36(%rbp)
	jmp	.L3
.L5:
	movl	-36(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$67, %al
	jne	.L4
	addl	$1, -32(%rbp)
.L4:
	addl	$1, -36(%rbp)
.L3:
	movl	-24(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	jl	.L5
	cmpl	$1, -32(%rbp)
	jne	.L6
	addl	$1, -40(%rbp)
.L6:
	movl	$0, -36(%rbp)
	jmp	.L7
.L11:
	movl	-36(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$96, %al
	jle	.L8
	movl	-36(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$122, %al
	jle	.L9
.L8:
	movl	-36(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$65, %al
	je	.L9
	movl	-36(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$67, %al
	jne	.L10
.L9:
	addl	$1, -28(%rbp)
.L10:
	addl	$1, -36(%rbp)
.L7:
	movl	-36(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L11
	movl	-28(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jne	.L12
	addl	$1, -40(%rbp)
.L12:
	cmpl	$3, -40(%rbp)
	jne	.L13
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L14
.L13:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"AC"
.LC2:
	.string	"WA"
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	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
	movzbl	14(%rsp), %ecx
	xorl	%edi, %edi
	leal	-1(%rax), %edx
	cmpb	$65, %cl
	sete	%dil
	cmpl	$2, %edx
	jle	.L2
	cmpb	$67, 16(%rsp)
	je	.L91
	xorl	%esi, %esi
	cmpl	$3, %edx
	je	.L2
.L34:
	xorl	%r8d, %r8d
	cmpb	$67, 17(%rsp)
	sete	%r8b
	addl	%r8d, %esi
	cmpl	$4, %edx
	je	.L6
	cmpb	$67, 18(%rsp)
	je	.L92
.L7:
	cmpl	$5, %edx
	je	.L6
	cmpb	$67, 19(%rsp)
	je	.L93
.L8:
	cmpl	$6, %edx
	je	.L6
	cmpb	$67, 20(%rsp)
	jne	.L9
	addl	$1, %esi
.L9:
	cmpl	$8, %edx
	jne	.L6
	cmpb	$67, 21(%rsp)
	je	.L94
.L6:
	cmpl	$1, %esi
	je	.L35
.L2:
	testq	%rax, %rax
	je	.L11
	leal	-97(%rcx), %edx
	cmpb	$25, %dl
	jbe	.L39
	andl	$-3, %ecx
	cmpb	$65, %cl
	jne	.L12
.L39:
	movl	$1, %ebx
.L12:
	cmpl	$1, %eax
	je	.L11
	movzbl	15(%rsp), %edx
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpb	$65, %cl
	je	.L40
	subl	$97, %edx
	cmpb	$25, %dl
	ja	.L15
.L40:
	addl	$1, %ebx
.L15:
	cmpl	$2, %eax
	je	.L11
	movzbl	16(%rsp), %edx
	leal	-97(%rdx), %ecx
	cmpb	$25, %cl
	jbe	.L41
	andl	$-3, %edx
	cmpb	$65, %dl
	jne	.L17
.L41:
	addl	$1, %ebx
.L17:
	cmpl	$3, %eax
	je	.L11
	movzbl	17(%rsp), %edx
	leal	-97(%rdx), %ecx
	cmpb	$25, %cl
	jbe	.L42
	andl	$-3, %edx
	cmpb	$65, %dl
	jne	.L19
.L42:
	addl	$1, %ebx
.L19:
	cmpl	$4, %eax
	je	.L11
	movzbl	18(%rsp), %edx
	leal	-97(%rdx), %ecx
	cmpb	$25, %cl
	jbe	.L43
	andl	$-3, %edx
	cmpb	$65, %dl
	jne	.L21
.L43:
	addl	$1, %ebx
.L21:
	cmpl	$5, %eax
	je	.L11
	movzbl	19(%rsp), %edx
	leal	-97(%rdx), %ecx
	cmpb	$25, %cl
	jbe	.L44
	andl	$-3, %edx
	cmpb	$65, %dl
	jne	.L23
.L44:
	addl	$1, %ebx
.L23:
	cmpl	$6, %eax
	je	.L11
	movzbl	20(%rsp), %edx
	leal	-97(%rdx), %ecx
	cmpb	$25, %cl
	jbe	.L45
	andl	$-3, %edx
	cmpb	$65, %dl
	jne	.L25
.L45:
	addl	$1, %ebx
.L25:
	cmpl	$7, %eax
	je	.L11
	movzbl	21(%rsp), %edx
	leal	-97(%rdx), %ecx
	cmpb	$25, %cl
	jbe	.L46
	andl	$-3, %edx
	cmpb	$65, %dl
	jne	.L27
.L46:
	addl	$1, %ebx
.L27:
	cmpl	$9, %eax
	jne	.L11
	movzbl	22(%rsp), %edx
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpb	$65, %cl
	je	.L47
	subl	$97, %edx
	cmpb	$25, %dl
	ja	.L11
.L47:
	addl	$1, %ebx
.L11:
	cmpl	%ebx, %eax
	je	.L95
.L32:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L33:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L96
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L91:
	.cfi_restore_state
	movl	$1, %esi
	cmpl	$3, %edx
	jne	.L34
.L35:
	addl	$1, %edi
	jmp	.L2
.L92:
	addl	$1, %esi
	jmp	.L7
.L95:
	cmpl	$2, %edi
	jne	.L32
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L33
.L93:
	addl	$1, %esi
	jmp	.L8
.L94:
	addl	$1, %esi
	jmp	.L6
.L96:
	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	"AC"
.LC2:
	.string	"WA"
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	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
	movzbl	14(%rsp), %ecx
	xorl	%edi, %edi
	leal	-1(%rax), %edx
	cmpb	$65, %cl
	sete	%dil
	cmpl	$2, %edx
	jle	.L2
	cmpb	$67, 16(%rsp)
	je	.L91
	xorl	%esi, %esi
	cmpl	$3, %edx
	je	.L2
.L34:
	xorl	%r8d, %r8d
	cmpb	$67, 17(%rsp)
	sete	%r8b
	addl	%r8d, %esi
	cmpl	$4, %edx
	je	.L6
	cmpb	$67, 18(%rsp)
	je	.L92
.L7:
	cmpl	$5, %edx
	je	.L6
	cmpb	$67, 19(%rsp)
	je	.L93
.L8:
	cmpl	$6, %edx
	je	.L6
	cmpb	$67, 20(%rsp)
	jne	.L9
	addl	$1, %esi
.L9:
	cmpl	$8, %edx
	jne	.L6
	cmpb	$67, 21(%rsp)
	je	.L94
.L6:
	cmpl	$1, %esi
	je	.L35
.L2:
	testq	%rax, %rax
	je	.L11
	leal	-97(%rcx), %edx
	cmpb	$25, %dl
	jbe	.L39
	andl	$-3, %ecx
	cmpb	$65, %cl
	jne	.L12
.L39:
	movl	$1, %ebx
.L12:
	cmpl	$1, %eax
	je	.L11
	movzbl	15(%rsp), %edx
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpb	$65, %cl
	je	.L40
	subl	$97, %edx
	cmpb	$25, %dl
	ja	.L15
.L40:
	addl	$1, %ebx
.L15:
	cmpl	$2, %eax
	je	.L11
	movzbl	16(%rsp), %edx
	leal	-97(%rdx), %ecx
	cmpb	$25, %cl
	jbe	.L41
	andl	$-3, %edx
	cmpb	$65, %dl
	jne	.L17
.L41:
	addl	$1, %ebx
.L17:
	cmpl	$3, %eax
	je	.L11
	movzbl	17(%rsp), %edx
	leal	-97(%rdx), %ecx
	cmpb	$25, %cl
	jbe	.L42
	andl	$-3, %edx
	cmpb	$65, %dl
	jne	.L19
.L42:
	addl	$1, %ebx
.L19:
	cmpl	$4, %eax
	je	.L11
	movzbl	18(%rsp), %edx
	leal	-97(%rdx), %ecx
	cmpb	$25, %cl
	jbe	.L43
	andl	$-3, %edx
	cmpb	$65, %dl
	jne	.L21
.L43:
	addl	$1, %ebx
.L21:
	cmpl	$5, %eax
	je	.L11
	movzbl	19(%rsp), %edx
	leal	-97(%rdx), %ecx
	cmpb	$25, %cl
	jbe	.L44
	andl	$-3, %edx
	cmpb	$65, %dl
	jne	.L23
.L44:
	addl	$1, %ebx
.L23:
	cmpl	$6, %eax
	je	.L11
	movzbl	20(%rsp), %edx
	leal	-97(%rdx), %ecx
	cmpb	$25, %cl
	jbe	.L45
	andl	$-3, %edx
	cmpb	$65, %dl
	jne	.L25
.L45:
	addl	$1, %ebx
.L25:
	cmpl	$7, %eax
	je	.L11
	movzbl	21(%rsp), %edx
	leal	-97(%rdx), %ecx
	cmpb	$25, %cl
	jbe	.L46
	andl	$-3, %edx
	cmpb	$65, %dl
	jne	.L27
.L46:
	addl	$1, %ebx
.L27:
	cmpl	$9, %eax
	jne	.L11
	movzbl	22(%rsp), %edx
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpb	$65, %cl
	je	.L47
	subl	$97, %edx
	cmpb	$25, %dl
	ja	.L11
.L47:
	addl	$1, %ebx
.L11:
	cmpl	%ebx, %eax
	je	.L95
.L32:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L33:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L96
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L91:
	.cfi_restore_state
	movl	$1, %esi
	cmpl	$3, %edx
	jne	.L34
.L35:
	addl	$1, %edi
	jmp	.L2
.L92:
	addl	$1, %esi
	jmp	.L7
.L95:
	cmpl	$2, %edi
	jne	.L32
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L33
.L93:
	addl	$1, %esi
	jmp	.L8
.L94:
	addl	$1, %esi
	jmp	.L6
.L96:
	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(void){
  char s[10];
  int l,f,i,a,b;
  scanf("%s",s);
  l=strlen(s);
  f=0;
  if(s[0]=='A')f++;
  a=0;
  for(i=2;i<l-1;i++){
    if(s[i]=='C')a++;
  }
  if(a==1)f++;
  for(i=0;i<l;i++){
    if(((s[i]>='a')&&(s[i]<='z'))||(s[i]=='A')||(s[i]=='C')) b++;
  }
  if(b==l)f++;
  if(f==3)printf("AC");
  else printf("WA");
  return 0;
}
AtBoCo
 AtCoddr
 redoctA
 ACodes
 BcycliC
 etCodAr
 AtBnCo
 redpctA
 ACodds
 CilcycB

WA WA WA WA WA WA WA WA WA WA
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(void){
  char s[10];
  int l,f,i,a,b;
  scanf("%s",s);
  l=strlen(s);
  f=0;
  if(s[0]=='A')f++;
  a=0;
  for(i=2;i<l-1;i++){
    if(s[i]=='C')a++;
  }
  if(a==1)f++;
  for(i=0;i<l;i++){
    if(((s[i]>='a')&&(s[i]<='z'))||(s[i]=='A')||(s[i]=='C')) b++;
  }
  if(b==l)f++;
  if(f==3)printf("AC");
  else printf("WA");
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"AC"
.LC2:
	.string	"WA"
	.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	$48, %rsp
	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, -40(%rbp)
	movzbl	-18(%rbp), %eax
	cmpb	$65, %al
	jne	.L2
	addl	$1, -40(%rbp)
.L2:
	movl	$0, -32(%rbp)
	movl	$2, -36(%rbp)
	jmp	.L3
.L5:
	movl	-36(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$67, %al
	jne	.L4
	addl	$1, -32(%rbp)
.L4:
	addl	$1, -36(%rbp)
.L3:
	movl	-24(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	jl	.L5
	cmpl	$1, -32(%rbp)
	jne	.L6
	addl	$1, -40(%rbp)
.L6:
	movl	$0, -36(%rbp)
	jmp	.L7
.L11:
	movl	-36(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$96, %al
	jle	.L8
	movl	-36(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$122, %al
	jle	.L9
.L8:
	movl	-36(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$65, %al
	je	.L9
	movl	-36(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$67, %al
	jne	.L10
.L9:
	addl	$1, -28(%rbp)
.L10:
	addl	$1, -36(%rbp)
.L7:
	movl	-36(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L11
	movl	-28(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jne	.L12
	addl	$1, -40(%rbp)
.L12:
	cmpl	$3, -40(%rbp)
	jne	.L13
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L14
.L13:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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.
val
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"AC"
.LC2:
	.string	"WA"
	.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	$48, %rsp
	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, -40(%rbp)
	movzbl	-18(%rbp), %eax
	cmpb	$65, %al
	jne	.L2
	addl	$1, -40(%rbp)
.L2:
	movl	$0, -32(%rbp)
	movl	$2, -36(%rbp)
	jmp	.L3
.L5:
	movl	-36(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$67, %al
	jne	.L4
	addl	$1, -32(%rbp)
.L4:
	addl	$1, -36(%rbp)
.L3:
	movl	-24(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	jl	.L5
	cmpl	$1, -32(%rbp)
	jne	.L6
	addl	$1, -40(%rbp)
.L6:
	movl	$0, -36(%rbp)
	jmp	.L7
.L11:
	movl	-36(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$96, %al
	jle	.L8
	movl	-36(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$122, %al
	jle	.L9
.L8:
	movl	-36(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$65, %al
	je	.L9
	movl	-36(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$67, %al
	jne	.L10
.L9:
	addl	$1, -28(%rbp)
.L10:
	addl	$1, -36(%rbp)
.L7:
	movl	-36(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L11
	movl	-28(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jne	.L12
	addl	$1, -40(%rbp)
.L12:
	cmpl	$3, -40(%rbp)
	jne	.L13
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L14
.L13:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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:
