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)
{
  int N,M,i;
  scanf("%d %d",&N,&M);
  int accept[100000],penalty[100000];
  int ac_total=0,pen_total=0;
  for(i=0;i<100000;i++)
  {
    accept[i] = 0;
    penalty[i] = 0;
  }
  int p[100000];
  char S[2];
  for(i=0;i<M;i++)
  {
    scanf("%d %s",&p[i],S);
    if(strcmp(S,"AC")==0) accept[p[i]] = 1;
    else if(accept[p[i]] !=1) 
      penalty[p[i]]++;
  }

  for(i=0;i<N;i++)
  {
    ac_total += accept[i+1];
    if(accept[i+1]==1) 
    {
      pen_total += penalty[i+1];
    }

  }
    printf("%d %d\n",ac_total,pen_total);
  
  return 0;
  
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %s"
.LC2:
	.string	"AC"
.LC3:
	.string	"%d %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
	leaq	-1196032(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$4016, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1200032(%rbp), %rdx
	leaq	-1200036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1200024(%rbp)
	movl	$0, -1200020(%rbp)
	movl	$0, -1200028(%rbp)
	jmp	.L2
.L3:
	movl	-1200028(%rbp), %eax
	cltq
	movl	$0, -1200016(%rbp,%rax,4)
	movl	-1200028(%rbp), %eax
	cltq
	movl	$0, -800016(%rbp,%rax,4)
	addl	$1, -1200028(%rbp)
.L2:
	cmpl	$99999, -1200028(%rbp)
	jle	.L3
	movl	$0, -1200028(%rbp)
	jmp	.L4
.L7:
	leaq	-400016(%rbp), %rdx
	movl	-1200028(%rbp), %eax
	cltq
	salq	$2, %rax
	leaq	(%rdx,%rax), %rcx
	leaq	-10(%rbp), %rax
	movq	%rax, %rdx
	movq	%rcx, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-10(%rbp), %rax
	leaq	.LC2(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L5
	movl	-1200028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cltq
	movl	$1, -1200016(%rbp,%rax,4)
	jmp	.L6
.L5:
	movl	-1200028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cltq
	movl	-1200016(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L6
	movl	-1200028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-800016(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -800016(%rbp,%rax,4)
.L6:
	addl	$1, -1200028(%rbp)
.L4:
	movl	-1200032(%rbp), %eax
	cmpl	%eax, -1200028(%rbp)
	jl	.L7
	movl	$0, -1200028(%rbp)
	jmp	.L8
.L10:
	movl	-1200028(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-1200016(%rbp,%rax,4), %eax
	addl	%eax, -1200024(%rbp)
	movl	-1200028(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-1200016(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L9
	movl	-1200028(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	addl	%eax, -1200020(%rbp)
.L9:
	addl	$1, -1200028(%rbp)
.L8:
	movl	-1200036(%rbp), %eax
	cmpl	%eax, -1200028(%rbp)
	jl	.L10
	movl	-1200020(%rbp), %edx
	movl	-1200024(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"%d %d"
.LC1:
	.string	"%d %s"
.LC3:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	-1196032(%rsp), %r11
	.cfi_def_cfa 11, 1196088
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4008, %rsp
	.cfi_def_cfa_offset 1200096
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1200024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %r14
	leaq	400016(%rsp), %r13
	call	__isoc99_scanf@PLT
	movl	$400000, %edx
	xorl	%esi, %esi
	movq	%r14, %rdi
	call	memset@PLT
	movl	$400000, %edx
	xorl	%esi, %esi
	movq	%r13, %rdi
	call	memset@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	800016(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	1200022(%rsp), %r15
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movq	%r15, %rdx
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movslq	(%rbx), %rax
	cmpl	$1, 16(%rsp,%rax,4)
	je	.L3
	addl	$1, 400016(%rsp,%rax,4)
.L3:
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, 12(%rsp)
	jg	.L4
.L2:
	movl	8(%rsp), %esi
	testl	%esi, %esi
	jle	.L14
	leal	-1(%rsi), %eax
	cmpl	$2, %eax
	jbe	.L15
	movl	%esi, %eax
	pxor	%xmm2, %xmm2
	movdqa	.LC2(%rip), %xmm3
	shrl	$2, %eax
	movdqa	%xmm2, %xmm1
	leal	-1(%rax), %edx
	movl	$4, %eax
	salq	$4, %rdx
	addq	$20, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	movdqu	(%r14,%rax), %xmm4
	movdqu	0(%r13,%rax), %xmm5
	addq	$16, %rax
	movdqa	%xmm4, %xmm0
	paddd	%xmm4, %xmm1
	pcmpeqd	%xmm3, %xmm0
	pand	%xmm5, %xmm0
	paddd	%xmm0, %xmm2
	cmpq	%rax, %rdx
	jne	.L7
	movdqa	%xmm2, %xmm0
	movl	%esi, %eax
	psrldq	$8, %xmm0
	andl	$-4, %eax
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movdqa	%xmm1, %xmm0
	psrldq	$8, %xmm0
	movd	%xmm2, %ecx
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edx
	testb	$3, %sil
	je	.L5
.L6:
	leal	1(%rax), %edi
	movslq	%edi, %r9
	movl	16(%rsp,%r9,4), %r8d
	addl	%r8d, %edx
	cmpl	$1, %r8d
	je	.L20
.L9:
	cmpl	%edi, %esi
	jle	.L5
	leal	2(%rax), %edi
	movslq	%edi, %r9
	movl	16(%rsp,%r9,4), %r8d
	addl	%r8d, %edx
	subl	$1, %r8d
	je	.L21
.L10:
	cmpl	%edi, %esi
	jle	.L5
	addl	$3, %eax
	cltq
	movl	16(%rsp,%rax,4), %esi
	addl	%esi, %edx
	subl	$1, %esi
	je	.L22
.L5:
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	1200024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$1200040, %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
.L20:
	.cfi_restore_state
	addl	400016(%rsp,%r9,4), %ecx
	jmp	.L9
.L21:
	addl	400016(%rsp,%r9,4), %ecx
	jmp	.L10
.L22:
	addl	400016(%rsp,%rax,4), %ecx
	jmp	.L5
.L14:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	.L5
.L15:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L6
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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	"%d %d"
.LC1:
	.string	"%d %s"
.LC3:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	-1196032(%rsp), %r11
	.cfi_def_cfa 11, 1196088
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4008, %rsp
	.cfi_def_cfa_offset 1200096
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1200024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %r14
	leaq	400016(%rsp), %r13
	call	__isoc99_scanf@PLT
	movl	$400000, %edx
	xorl	%esi, %esi
	movq	%r14, %rdi
	call	memset@PLT
	movl	$400000, %edx
	xorl	%esi, %esi
	movq	%r13, %rdi
	call	memset@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	800016(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	1200022(%rsp), %r15
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movq	%r15, %rdx
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movslq	(%rbx), %rax
	cmpl	$1, 16(%rsp,%rax,4)
	je	.L3
	addl	$1, 400016(%rsp,%rax,4)
.L3:
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, 12(%rsp)
	jg	.L4
.L2:
	movl	8(%rsp), %esi
	testl	%esi, %esi
	jle	.L14
	leal	-1(%rsi), %eax
	cmpl	$2, %eax
	jbe	.L15
	movl	%esi, %eax
	pxor	%xmm2, %xmm2
	movdqa	.LC2(%rip), %xmm3
	shrl	$2, %eax
	movdqa	%xmm2, %xmm1
	leal	-1(%rax), %edx
	movl	$4, %eax
	salq	$4, %rdx
	addq	$20, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	movdqu	(%r14,%rax), %xmm4
	movdqu	0(%r13,%rax), %xmm5
	addq	$16, %rax
	movdqa	%xmm4, %xmm0
	paddd	%xmm4, %xmm1
	pcmpeqd	%xmm3, %xmm0
	pand	%xmm5, %xmm0
	paddd	%xmm0, %xmm2
	cmpq	%rax, %rdx
	jne	.L7
	movdqa	%xmm2, %xmm0
	movl	%esi, %eax
	psrldq	$8, %xmm0
	andl	$-4, %eax
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movdqa	%xmm1, %xmm0
	psrldq	$8, %xmm0
	movd	%xmm2, %ecx
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edx
	testb	$3, %sil
	je	.L5
.L6:
	leal	1(%rax), %edi
	movslq	%edi, %r9
	movl	16(%rsp,%r9,4), %r8d
	addl	%r8d, %edx
	cmpl	$1, %r8d
	je	.L20
.L9:
	cmpl	%edi, %esi
	jle	.L5
	leal	2(%rax), %edi
	movslq	%edi, %r9
	movl	16(%rsp,%r9,4), %r8d
	addl	%r8d, %edx
	subl	$1, %r8d
	je	.L21
.L10:
	cmpl	%edi, %esi
	jle	.L5
	addl	$3, %eax
	cltq
	movl	16(%rsp,%rax,4), %esi
	addl	%esi, %edx
	subl	$1, %esi
	je	.L22
.L5:
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	1200024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$1200040, %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
.L20:
	.cfi_restore_state
	addl	400016(%rsp,%r9,4), %ecx
	jmp	.L9
.L21:
	addl	400016(%rsp,%r9,4), %ecx
	jmp	.L10
.L22:
	addl	400016(%rsp,%rax,4), %ecx
	jmp	.L5
.L14:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	.L5
.L15:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L6
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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)
{
  int N,M,i;
  scanf("%d %d",&N,&M);
  int accept[100000],penalty[100000];
  int ac_total=0,pen_total=0;
  for(i=0;i<100000;i++)
  {
    accept[i] = 0;
    penalty[i] = 0;
  }
  int p[100000];
  char S[2];
  for(i=0;i<M;i++)
  {
    scanf("%d %s",&p[i],S);
    if(strcmp(S,"AC")==0) accept[p[i]] = 1;
    else if(accept[p[i]] !=1) 
      penalty[p[i]]++;
  }

  for(i=0;i<N;i++)
  {
    ac_total += accept[i+1];
    if(accept[i+1]==1) 
    {
      pen_total += penalty[i+1];
    }

  }
    printf("%d %d\n",ac_total,pen_total);
  
  return 0;
  
}
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 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)
{
  int N,M,i;
  scanf("%d %d",&N,&M);
  int accept[100000],penalty[100000];
  int ac_total=0,pen_total=0;
  for(i=0;i<100000;i++)
  {
    accept[i] = 0;
    penalty[i] = 0;
  }
  int p[100000];
  char S[2];
  for(i=0;i<M;i++)
  {
    scanf("%d %s",&p[i],S);
    if(strcmp(S,"AC")==0) accept[p[i]] = 1;
    else if(accept[p[i]] !=1) 
      penalty[p[i]]++;
  }

  for(i=0;i<N;i++)
  {
    ac_total += accept[i+1];
    if(accept[i+1]==1) 
    {
      pen_total += penalty[i+1];
    }

  }
    printf("%d %d\n",ac_total,pen_total);
  
  return 0;
  
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %s"
.LC2:
	.string	"AC"
.LC3:
	.string	"%d %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
	leaq	-1196032(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$4016, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1200032(%rbp), %rdx
	leaq	-1200036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1200024(%rbp)
	movl	$0, -1200020(%rbp)
	movl	$0, -1200028(%rbp)
	jmp	.L2
.L3:
	movl	-1200028(%rbp), %eax
	cltq
	movl	$0, -1200016(%rbp,%rax,4)
	movl	-1200028(%rbp), %eax
	cltq
	movl	$0, -800016(%rbp,%rax,4)
	addl	$1, -1200028(%rbp)
.L2:
	cmpl	$99999, -1200028(%rbp)
	jle	.L3
	movl	$0, -1200028(%rbp)
	jmp	.L4
.L7:
	leaq	-400016(%rbp), %rdx
	movl	-1200028(%rbp), %eax
	cltq
	salq	$2, %rax
	leaq	(%rdx,%rax), %rcx
	leaq	-10(%rbp), %rax
	movq	%rax, %rdx
	movq	%rcx, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-10(%rbp), %rax
	leaq	.LC2(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L5
	movl	-1200028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cltq
	movl	$1, -1200016(%rbp,%rax,4)
	jmp	.L6
.L5:
	movl	-1200028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cltq
	movl	-1200016(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L6
	movl	-1200028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-800016(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -800016(%rbp,%rax,4)
.L6:
	addl	$1, -1200028(%rbp)
.L4:
	movl	-1200032(%rbp), %eax
	cmpl	%eax, -1200028(%rbp)
	jl	.L7
	movl	$0, -1200028(%rbp)
	jmp	.L8
.L10:
	movl	-1200028(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-1200016(%rbp,%rax,4), %eax
	addl	%eax, -1200024(%rbp)
	movl	-1200028(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-1200016(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L9
	movl	-1200028(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	addl	%eax, -1200020(%rbp)
.L9:
	addl	$1, -1200028(%rbp)
.L8:
	movl	-1200036(%rbp), %eax
	cmpl	%eax, -1200028(%rbp)
	jl	.L10
	movl	-1200020(%rbp), %edx
	movl	-1200024(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"%d %d"
.LC1:
	.string	"%d %s"
.LC2:
	.string	"AC"
.LC3:
	.string	"%d %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
	leaq	-1196032(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$4016, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1200032(%rbp), %rdx
	leaq	-1200036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1200024(%rbp)
	movl	$0, -1200020(%rbp)
	movl	$0, -1200028(%rbp)
	jmp	.L2
.L3:
	movl	-1200028(%rbp), %eax
	cltq
	movl	$0, -1200016(%rbp,%rax,4)
	movl	-1200028(%rbp), %eax
	cltq
	movl	$0, -800016(%rbp,%rax,4)
	addl	$1, -1200028(%rbp)
.L2:
	cmpl	$99999, -1200028(%rbp)
	jle	.L3
	movl	$0, -1200028(%rbp)
	jmp	.L4
.L7:
	leaq	-400016(%rbp), %rdx
	movl	-1200028(%rbp), %eax
	cltq
	salq	$2, %rax
	leaq	(%rdx,%rax), %rcx
	leaq	-10(%rbp), %rax
	movq	%rax, %rdx
	movq	%rcx, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-10(%rbp), %rax
	leaq	.LC2(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L5
	movl	-1200028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cltq
	movl	$1, -1200016(%rbp,%rax,4)
	jmp	.L6
.L5:
	movl	-1200028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cltq
	movl	-1200016(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L6
	movl	-1200028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-800016(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -800016(%rbp,%rax,4)
.L6:
	addl	$1, -1200028(%rbp)
.L4:
	movl	-1200032(%rbp), %eax
	cmpl	%eax, -1200028(%rbp)
	jl	.L7
	movl	$0, -1200028(%rbp)
	jmp	.L8
.L10:
	movl	-1200028(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-1200016(%rbp,%rax,4), %eax
	addl	%eax, -1200024(%rbp)
	movl	-1200028(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-1200016(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L9
	movl	-1200028(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	addl	%eax, -1200020(%rbp)
.L9:
	addl	$1, -1200028(%rbp)
.L8:
	movl	-1200036(%rbp), %eax
	cmpl	%eax, -1200028(%rbp)
	jl	.L10
	movl	-1200020(%rbp), %edx
	movl	-1200024(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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:
