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>

int main()
{
  int n,m,i,p;
  int ac[100005]={0},wa[100005]={0};
  int WA=0,AC=0;
  char s[3];

  scanf("%d%d", &n,&m);

  for(i=0; i<m; i++){
    scanf("%d",&p);
    scanf("%s",s);
    if(ac[p]==1)
      continue;
    else if(s[0] == 'A')
      {
      WA += wa[p];
      ac[p]++;
      AC++;
      }
    else
      wa[p]++;
  }

  printf("%d %d", AC,WA);
  return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798776
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1384, %rsp
	.cfi_def_cfa_offset 800160
	xorl	%esi, %esi
	movl	$400020, %edx
	movl	$0, %r15d
	movq	%fs:40, %rax
	movq	%rax, 800088(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rdi
	call	memset@PLT
	xorl	%esi, %esi
	movl	$400020, %edx
	leaq	400064(%rsp), %rdi
	call	memset@PLT
	xorl	%eax, %eax
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	movl	$0, 12(%rsp)
	testl	%eax, %eax
	jle	.L2
	xorl	%r14d, %r14d
	leaq	28(%rsp), %r13
	leaq	.LC1(%rip), %r12
	leaq	800085(%rsp), %rbp
	leaq	.LC2(%rip), %rbx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	addl	$1, %esi
	movl	%esi, 400064(%rsp,%rax,4)
.L3:
	addl	$1, %r14d
	cmpl	%r14d, 24(%rsp)
	jle	.L2
.L5:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rax
	movl	32(%rsp,%rax,4), %ecx
	cmpl	$1, %ecx
	je	.L3
	cmpb	$65, 800085(%rsp)
	movl	400064(%rsp,%rax,4), %esi
	jne	.L4
	addl	$1, %ecx
	addl	$1, 12(%rsp)
	addl	%esi, %r15d
	addl	$1, %r14d
	movl	%ecx, 32(%rsp,%rax,4)
	cmpl	%r14d, 24(%rsp)
	jg	.L5
.L2:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	%r15d, %ecx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800088(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$800104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	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	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798776
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1384, %rsp
	.cfi_def_cfa_offset 800160
	xorl	%esi, %esi
	movl	$400020, %edx
	movl	$0, %r15d
	movq	%fs:40, %rax
	movq	%rax, 800088(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rdi
	call	memset@PLT
	xorl	%esi, %esi
	movl	$400020, %edx
	leaq	400064(%rsp), %rdi
	call	memset@PLT
	xorl	%eax, %eax
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	movl	$0, 12(%rsp)
	testl	%eax, %eax
	jle	.L2
	xorl	%r14d, %r14d
	leaq	28(%rsp), %r13
	leaq	.LC1(%rip), %r12
	leaq	800085(%rsp), %rbp
	leaq	.LC2(%rip), %rbx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	addl	$1, %esi
	movl	%esi, 400064(%rsp,%rax,4)
.L3:
	addl	$1, %r14d
	cmpl	%r14d, 24(%rsp)
	jle	.L2
.L5:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rax
	movl	32(%rsp,%rax,4), %ecx
	cmpl	$1, %ecx
	je	.L3
	cmpb	$65, 800085(%rsp)
	movl	400064(%rsp,%rax,4), %esi
	jne	.L4
	addl	$1, %ecx
	addl	$1, 12(%rsp)
	addl	%esi, %r15d
	addl	$1, %r14d
	movl	%ecx, 32(%rsp,%rax,4)
	cmpl	%r14d, 24(%rsp)
	jg	.L5
.L2:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	%r15d, %ecx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800088(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$800104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	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	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798776
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1384, %rsp
	.cfi_def_cfa_offset 800160
	xorl	%esi, %esi
	movl	$400020, %edx
	movl	$0, %r15d
	movq	%fs:40, %rax
	movq	%rax, 800088(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rdi
	call	memset@PLT
	xorl	%esi, %esi
	movl	$400020, %edx
	leaq	400064(%rsp), %rdi
	call	memset@PLT
	xorl	%eax, %eax
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	movl	$0, 12(%rsp)
	testl	%eax, %eax
	jle	.L2
	xorl	%r14d, %r14d
	leaq	28(%rsp), %r13
	leaq	.LC1(%rip), %r12
	leaq	800085(%rsp), %rbp
	leaq	.LC2(%rip), %rbx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	addl	$1, %esi
	movl	%esi, 400064(%rsp,%rax,4)
.L3:
	addl	$1, %r14d
	cmpl	%r14d, 24(%rsp)
	jle	.L2
.L5:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rax
	movl	32(%rsp,%rax,4), %ecx
	cmpl	$1, %ecx
	je	.L3
	cmpb	$65, 800085(%rsp)
	movl	400064(%rsp,%rax,4), %esi
	jne	.L4
	addl	$1, %ecx
	addl	$1, 12(%rsp)
	addl	%esi, %r15d
	addl	$1, %r14d
	movl	%ecx, 32(%rsp,%rax,4)
	cmpl	%r14d, 24(%rsp)
	jg	.L5
.L2:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	%r15d, %ecx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800088(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$800104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	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>

int main()
{
  int n,m,i,p;
  int ac[100005]={0},wa[100005]={0};
  int WA=0,AC=0;
  char s[3];

  scanf("%d%d", &n,&m);

  for(i=0; i<m; i++){
    scanf("%d",&p);
    scanf("%s",s);
    if(ac[p]==1)
      continue;
    else if(s[0] == 'A')
      {
      WA += wa[p];
      ac[p]++;
      AC++;
      }
    else
      wa[p]++;
  }

  printf("%d %d", AC,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>

int main()
{
  int n,m,i,p;
  int ac[100005]={0},wa[100005]={0};
  int WA=0,AC=0;
  char s[3];

  scanf("%d%d", &n,&m);

  for(i=0; i<m; i++){
    scanf("%d",&p);
    scanf("%s",s);
    if(ac[p]==1)
      continue;
    else if(s[0] == 'A')
      {
      WA += wa[p];
      ac[p]++;
      AC++;
      }
    else
      wa[p]++;
  }

  printf("%d %d", AC,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:

100000 3
7777 AC
7777 AC
7777 CA
 100000 3
12676 AC
7777 AC
7777 CA
 1 0
 4 5
1 WA
1 AC
2 WA
2 AC
2 WA
 4 5
1 WA
1 AC
0 WA
2 AC
2 WA
 100000 3
6234 AC
7777 AC
7777 AC
 2 0
 2 -1
 2 -2
 2 -4

1 0 2 0 0 0 2 2 2 1 2 0 0 0 0 0 0 0 0 0
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>

int main()
{
  int n,m,i,p;
  int ac[100005]={0},wa[100005]={0};
  int WA=0,AC=0;
  char s[3];

  scanf("%d%d", &n,&m);

  for(i=0; i<m; i++){
    scanf("%d",&p);
    scanf("%s",s);
    if(ac[p]==1)
      continue;
    else if(s[0] == 'A')
      {
      WA += wa[p];
      ac[p]++;
      AC++;
      }
    else
      wa[p]++;
  }

  printf("%d %d", AC,WA);
  return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798776
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1384, %rsp
	.cfi_def_cfa_offset 800160
	xorl	%esi, %esi
	movl	$400020, %edx
	movl	$0, %r15d
	movq	%fs:40, %rax
	movq	%rax, 800088(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rdi
	call	memset@PLT
	xorl	%esi, %esi
	movl	$400020, %edx
	leaq	400064(%rsp), %rdi
	call	memset@PLT
	xorl	%eax, %eax
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	movl	$0, 12(%rsp)
	testl	%eax, %eax
	jle	.L2
	xorl	%r14d, %r14d
	leaq	28(%rsp), %r13
	leaq	.LC1(%rip), %r12
	leaq	800085(%rsp), %rbp
	leaq	.LC2(%rip), %rbx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	addl	$1, %esi
	movl	%esi, 400064(%rsp,%rax,4)
.L3:
	addl	$1, %r14d
	cmpl	%r14d, 24(%rsp)
	jle	.L2
.L5:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rax
	movl	32(%rsp,%rax,4), %ecx
	cmpl	$1, %ecx
	je	.L3
	cmpb	$65, 800085(%rsp)
	movl	400064(%rsp,%rax,4), %esi
	jne	.L4
	addl	$1, %ecx
	addl	$1, 12(%rsp)
	addl	%esi, %r15d
	addl	$1, %r14d
	movl	%ecx, 32(%rsp,%rax,4)
	cmpl	%r14d, 24(%rsp)
	jg	.L5
.L2:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	%r15d, %ecx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800088(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$800104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	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	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798776
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1384, %rsp
	.cfi_def_cfa_offset 800160
	xorl	%esi, %esi
	movl	$400020, %edx
	movl	$0, %r15d
	movq	%fs:40, %rax
	movq	%rax, 800088(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rdi
	call	memset@PLT
	xorl	%esi, %esi
	movl	$400020, %edx
	leaq	400064(%rsp), %rdi
	call	memset@PLT
	xorl	%eax, %eax
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	movl	$0, 12(%rsp)
	testl	%eax, %eax
	jle	.L2
	xorl	%r14d, %r14d
	leaq	28(%rsp), %r13
	leaq	.LC1(%rip), %r12
	leaq	800085(%rsp), %rbp
	leaq	.LC2(%rip), %rbx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	addl	$1, %esi
	movl	%esi, 400064(%rsp,%rax,4)
.L3:
	addl	$1, %r14d
	cmpl	%r14d, 24(%rsp)
	jle	.L2
.L5:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rax
	movl	32(%rsp,%rax,4), %ecx
	cmpl	$1, %ecx
	je	.L3
	cmpb	$65, 800085(%rsp)
	movl	400064(%rsp,%rax,4), %esi
	jne	.L4
	addl	$1, %ecx
	addl	$1, 12(%rsp)
	addl	%esi, %r15d
	addl	$1, %r14d
	movl	%ecx, 32(%rsp,%rax,4)
	cmpl	%r14d, 24(%rsp)
	jg	.L5
.L2:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	%r15d, %ecx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800088(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$800104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	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:
```