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(void){
  int n;
  scanf("%d",&n);
  
  int rate[101];
  int count[8] = {0} , max = 0;
  for(int i = 0;i < n;i ++){
    scanf("%d",&rate[i]);
    if(1<=rate[i]&&rate[i]<=399){
      count[0] ++;
    }
    else if(rate[i] <= 799){
      count[1] ++;
    }
    else if(rate[i] <= 1199){
      count[2] ++;
    }
    else if(rate[i] <= 1599){
      count[3] ++;
    }
    else if(rate[i] <= 1999){
      count[4] ++;
    }
    else if(rate[i] <= 2399){
      count[5] ++;
    }
    else if(rate[i] <= 2799){
      count[6] ++;
    }
    else if(rate[i] <= 3199){
       count[7] ++;
    }
    else{
      max ++;
    }
  }

  int ans = 0;
  for(int i = 0;i < 8;i ++){
    if(count[i] != 0){
      ans ++;
    }
  }
  if(ans == 0){
    printf("1  %d",max);
  }

  else{
    printf("%d   %d",ans,ans+max);
  }

  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"1  %d"
.LC3:
	.string	"%d   %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$464, %rsp
	.cfi_def_cfa_offset 512
	movq	%fs:40, %rax
	movq	%rax, 456(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	pxor	%xmm0, %xmm0
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	testl	%eax, %eax
	jle	.L16
	leaq	48(%rsp), %rbx
	xorl	%r12d, %r12d
	xorl	%ebp, %ebp
	xorl	%r13d, %r13d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L20:
	addl	$1, %r12d
	movl	%r12d, 16(%rsp)
.L4:
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, 12(%rsp)
	jle	.L2
.L12:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rbx), %eax
	leal	-1(%rax), %edx
	cmpl	$398, %edx
	jbe	.L20
	cmpl	$799, %eax
	jg	.L5
	addl	$1, 20(%rsp)
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, 12(%rsp)
	jg	.L12
.L2:
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, %xmm1
	pcmpeqd	16(%rsp), %xmm1
	pcmpeqd	%xmm0, %xmm1
	pcmpeqd	32(%rsp), %xmm0
	pandn	.LC1(%rip), %xmm0
	psubd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testl	%edx, %edx
	jne	.L13
	movl	%r13d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L14:
	movq	456(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$464, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	cmpl	$1199, %eax
	jg	.L6
	addl	$1, 24(%rsp)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	$1599, %eax
	jg	.L7
	addl	$1, 28(%rsp)
	jmp	.L4
.L7:
	cmpl	$1999, %eax
	jg	.L8
	addl	$1, 32(%rsp)
	jmp	.L4
.L13:
	leal	0(%r13,%rdx), %ecx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
.L8:
	cmpl	$2399, %eax
	jle	.L22
	cmpl	$2799, %eax
	jg	.L10
	addl	$1, 40(%rsp)
	jmp	.L4
.L22:
	addl	$1, 36(%rsp)
	jmp	.L4
.L16:
	xorl	%r13d, %r13d
	jmp	.L2
.L10:
	cmpl	$3199, %eax
	jg	.L11
	addl	$1, 44(%rsp)
	jmp	.L4
.L11:
	addl	$1, %r13d
	jmp	.L4
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.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:
```

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"
.LC2:
	.string	"1  %d"
.LC3:
	.string	"%d   %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$464, %rsp
	.cfi_def_cfa_offset 512
	movq	%fs:40, %rax
	movq	%rax, 456(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	pxor	%xmm0, %xmm0
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	testl	%eax, %eax
	jle	.L16
	leaq	48(%rsp), %rbx
	xorl	%r12d, %r12d
	xorl	%ebp, %ebp
	xorl	%r13d, %r13d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L20:
	addl	$1, %r12d
	movl	%r12d, 16(%rsp)
.L4:
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, 12(%rsp)
	jle	.L2
.L12:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rbx), %eax
	leal	-1(%rax), %edx
	cmpl	$398, %edx
	jbe	.L20
	cmpl	$799, %eax
	jg	.L5
	addl	$1, 20(%rsp)
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, 12(%rsp)
	jg	.L12
.L2:
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, %xmm1
	pcmpeqd	16(%rsp), %xmm1
	pcmpeqd	%xmm0, %xmm1
	pcmpeqd	32(%rsp), %xmm0
	pandn	.LC1(%rip), %xmm0
	psubd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testl	%edx, %edx
	jne	.L13
	movl	%r13d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L14:
	movq	456(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$464, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	cmpl	$1199, %eax
	jg	.L6
	addl	$1, 24(%rsp)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	$1599, %eax
	jg	.L7
	addl	$1, 28(%rsp)
	jmp	.L4
.L7:
	cmpl	$1999, %eax
	jg	.L8
	addl	$1, 32(%rsp)
	jmp	.L4
.L13:
	leal	0(%r13,%rdx), %ecx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
.L8:
	cmpl	$2399, %eax
	jle	.L22
	cmpl	$2799, %eax
	jg	.L10
	addl	$1, 40(%rsp)
	jmp	.L4
.L22:
	addl	$1, 36(%rsp)
	jmp	.L4
.L16:
	xorl	%r13d, %r13d
	jmp	.L2
.L10:
	cmpl	$3199, %eax
	jg	.L11
	addl	$1, 44(%rsp)
	jmp	.L4
.L11:
	addl	$1, %r13d
	jmp	.L4
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"1  %d"
.LC3:
	.string	"%d   %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$464, %rsp
	.cfi_def_cfa_offset 512
	movq	%fs:40, %rax
	movq	%rax, 456(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	pxor	%xmm0, %xmm0
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	testl	%eax, %eax
	jle	.L16
	leaq	48(%rsp), %rbx
	xorl	%r12d, %r12d
	xorl	%ebp, %ebp
	xorl	%r13d, %r13d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L20:
	addl	$1, %r12d
	movl	%r12d, 16(%rsp)
.L4:
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, 12(%rsp)
	jle	.L2
.L12:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rbx), %eax
	leal	-1(%rax), %edx
	cmpl	$398, %edx
	jbe	.L20
	cmpl	$799, %eax
	jg	.L5
	addl	$1, 20(%rsp)
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, 12(%rsp)
	jg	.L12
.L2:
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, %xmm1
	pcmpeqd	16(%rsp), %xmm1
	pcmpeqd	%xmm0, %xmm1
	pcmpeqd	32(%rsp), %xmm0
	pandn	.LC1(%rip), %xmm0
	psubd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testl	%edx, %edx
	jne	.L13
	movl	%r13d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L14:
	movq	456(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$464, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	cmpl	$1199, %eax
	jg	.L6
	addl	$1, 24(%rsp)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	$1599, %eax
	jg	.L7
	addl	$1, 28(%rsp)
	jmp	.L4
.L7:
	cmpl	$1999, %eax
	jg	.L8
	addl	$1, 32(%rsp)
	jmp	.L4
.L13:
	leal	0(%r13,%rdx), %ecx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
.L8:
	cmpl	$2399, %eax
	jle	.L22
	cmpl	$2799, %eax
	jg	.L10
	addl	$1, 40(%rsp)
	jmp	.L4
.L22:
	addl	$1, 36(%rsp)
	jmp	.L4
.L16:
	xorl	%r13d, %r13d
	jmp	.L2
.L10:
	cmpl	$3199, %eax
	jg	.L11
	addl	$1, 44(%rsp)
	jmp	.L4
.L11:
	addl	$1, %r13d
	jmp	.L4
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.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:
```
```c
#include<stdio.h>

int main(void){
  int n;
  scanf("%d",&n);
  
  int rate[101];
  int count[8] = {0} , max = 0;
  for(int i = 0;i < n;i ++){
    scanf("%d",&rate[i]);
    if(1<=rate[i]&&rate[i]<=399){
      count[0] ++;
    }
    else if(rate[i] <= 799){
      count[1] ++;
    }
    else if(rate[i] <= 1199){
      count[2] ++;
    }
    else if(rate[i] <= 1599){
      count[3] ++;
    }
    else if(rate[i] <= 1999){
      count[4] ++;
    }
    else if(rate[i] <= 2399){
      count[5] ++;
    }
    else if(rate[i] <= 2799){
      count[6] ++;
    }
    else if(rate[i] <= 3199){
       count[7] ++;
    }
    else{
      max ++;
    }
  }

  int ans = 0;
  for(int i = 0;i < 8;i ++){
    if(count[i] != 0){
      ans ++;
    }
  }
  if(ans == 0){
    printf("1  %d",max);
  }

  else{
    printf("%d   %d",ans,ans+max);
  }

  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(void){
  int n;
  scanf("%d",&n);
  
  int rate[101];
  int count[8] = {0} , max = 0;
  for(int i = 0;i < n;i ++){
    scanf("%d",&rate[i]);
    if(1<=rate[i]&&rate[i]<=399){
      count[0] ++;
    }
    else if(rate[i] <= 799){
      count[1] ++;
    }
    else if(rate[i] <= 1199){
      count[2] ++;
    }
    else if(rate[i] <= 1599){
      count[3] ++;
    }
    else if(rate[i] <= 1999){
      count[4] ++;
    }
    else if(rate[i] <= 2399){
      count[5] ++;
    }
    else if(rate[i] <= 2799){
      count[6] ++;
    }
    else if(rate[i] <= 3199){
       count[7] ++;
    }
    else{
      max ++;
    }
  }

  int ans = 0;
  for(int i = 0;i < 8;i ++){
    if(count[i] != 0){
      ans ++;
    }
  }
  if(ans == 0){
    printf("1  %d",max);
  }

  else{
    printf("%d   %d",ans,ans+max);
  }

  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:

4
2100 2500 4217 2700
 20
800 810 820 830 840 850 860 870 880 890 900 1771 920 930 940 950 960 970 980 990
 5
1100 3348 2800 3200 3200
 20
800 810 820 830 840 850 860 870 880 890 900 1771 920 930 120 950 960 970 980 990
 5
1101 3348 2955 3200 2889
 5
1101 3348 2302 3200 2889
 4
2100 4691 248 409
 20
800 1586 820 830 840 850 860 433 1213 259 900 1303 920 1028 92 950 960 970 980 990
 20
800 1586 820 830 840 850 860 433 1213 259 900 1303 920 1028 92 2243 960 970 980 990
 20
800 2108 443 830 840 1093 116 614 398 92 399 1139 1229 646 92 2243 960 970 1914 990

2   3 2   2 2   5 3   3 2   4 3   5 3   4 4   4 5   5 6   6
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(void){
  int n;
  scanf("%d",&n);
  
  int rate[101];
  int count[8] = {0} , max = 0;
  for(int i = 0;i < n;i ++){
    scanf("%d",&rate[i]);
    if(1<=rate[i]&&rate[i]<=399){
      count[0] ++;
    }
    else if(rate[i] <= 799){
      count[1] ++;
    }
    else if(rate[i] <= 1199){
      count[2] ++;
    }
    else if(rate[i] <= 1599){
      count[3] ++;
    }
    else if(rate[i] <= 1999){
      count[4] ++;
    }
    else if(rate[i] <= 2399){
      count[5] ++;
    }
    else if(rate[i] <= 2799){
      count[6] ++;
    }
    else if(rate[i] <= 3199){
       count[7] ++;
    }
    else{
      max ++;
    }
  }

  int ans = 0;
  for(int i = 0;i < 8;i ++){
    if(count[i] != 0){
      ans ++;
    }
  }
  if(ans == 0){
    printf("1  %d",max);
  }

  else{
    printf("%d   %d",ans,ans+max);
  }

  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"1  %d"
.LC3:
	.string	"%d   %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$464, %rsp
	.cfi_def_cfa_offset 512
	movq	%fs:40, %rax
	movq	%rax, 456(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	pxor	%xmm0, %xmm0
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	testl	%eax, %eax
	jle	.L16
	leaq	48(%rsp), %rbx
	xorl	%r12d, %r12d
	xorl	%ebp, %ebp
	xorl	%r13d, %r13d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L20:
	addl	$1, %r12d
	movl	%r12d, 16(%rsp)
.L4:
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, 12(%rsp)
	jle	.L2
.L12:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rbx), %eax
	leal	-1(%rax), %edx
	cmpl	$398, %edx
	jbe	.L20
	cmpl	$799, %eax
	jg	.L5
	addl	$1, 20(%rsp)
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, 12(%rsp)
	jg	.L12
.L2:
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, %xmm1
	pcmpeqd	16(%rsp), %xmm1
	pcmpeqd	%xmm0, %xmm1
	pcmpeqd	32(%rsp), %xmm0
	pandn	.LC1(%rip), %xmm0
	psubd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testl	%edx, %edx
	jne	.L13
	movl	%r13d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L14:
	movq	456(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$464, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	cmpl	$1199, %eax
	jg	.L6
	addl	$1, 24(%rsp)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	$1599, %eax
	jg	.L7
	addl	$1, 28(%rsp)
	jmp	.L4
.L7:
	cmpl	$1999, %eax
	jg	.L8
	addl	$1, 32(%rsp)
	jmp	.L4
.L13:
	leal	0(%r13,%rdx), %ecx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
.L8:
	cmpl	$2399, %eax
	jle	.L22
	cmpl	$2799, %eax
	jg	.L10
	addl	$1, 40(%rsp)
	jmp	.L4
.L22:
	addl	$1, 36(%rsp)
	jmp	.L4
.L16:
	xorl	%r13d, %r13d
	jmp	.L2
.L10:
	cmpl	$3199, %eax
	jg	.L11
	addl	$1, 44(%rsp)
	jmp	.L4
.L11:
	addl	$1, %r13d
	jmp	.L4
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.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:
```

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"
.LC2:
	.string	"1  %d"
.LC3:
	.string	"%d   %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$464, %rsp
	.cfi_def_cfa_offset 512
	movq	%fs:40, %rax
	movq	%rax, 456(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	pxor	%xmm0, %xmm0
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	testl	%eax, %eax
	jle	.L16
	leaq	48(%rsp), %rbx
	xorl	%r12d, %r12d
	xorl	%ebp, %ebp
	xorl	%r13d, %r13d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L20:
	addl	$1, %r12d
	movl	%r12d, 16(%rsp)
.L4:
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, 12(%rsp)
	jle	.L2
.L12:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rbx), %eax
	leal	-1(%rax), %edx
	cmpl	$398, %edx
	jbe	.L20
	cmpl	$799, %eax
	jg	.L5
	addl	$1, 20(%rsp)
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, 12(%rsp)
	jg	.L12
.L2:
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, %xmm1
	pcmpeqd	16(%rsp), %xmm1
	pcmpeqd	%xmm0, %xmm1
	pcmpeqd	32(%rsp), %xmm0
	pandn	.LC1(%rip), %xmm0
	psubd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testl	%edx, %edx
	jne	.L13
	movl	%r13d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L14:
	movq	456(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$464, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	cmpl	$1199, %eax
	jg	.L6
	addl	$1, 24(%rsp)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	$1599, %eax
	jg	.L7
	addl	$1, 28(%rsp)
	jmp	.L4
.L7:
	cmpl	$1999, %eax
	jg	.L8
	addl	$1, 32(%rsp)
	jmp	.L4
.L13:
	leal	0(%r13,%rdx), %ecx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
.L8:
	cmpl	$2399, %eax
	jle	.L22
	cmpl	$2799, %eax
	jg	.L10
	addl	$1, 40(%rsp)
	jmp	.L4
.L22:
	addl	$1, 36(%rsp)
	jmp	.L4
.L16:
	xorl	%r13d, %r13d
	jmp	.L2
.L10:
	cmpl	$3199, %eax
	jg	.L11
	addl	$1, 44(%rsp)
	jmp	.L4
.L11:
	addl	$1, %r13d
	jmp	.L4
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.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:
```