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>

#define NUM 9

int main()
{
  int n;
  
  scanf("%d",&n);
  
  int a[n];
  int i,j;
  int color[NUM]={};
  int min=0,max=0;
  
  for(i=0;i<n;i++)
  {
    scanf("%d",&a[i]);
    if(3600<=a[i])
    {
      color[NUM-1]++;
    }
    else
    {
    color[a[i]/400]++;
    }
  }
  
  //int zero=0;
  for(i=0;i<NUM-1;i++)
  {
    if(color[i]!=0)
    {
      min++;
      max++;
    }
    /*if(color[i]==0)
    {
      zero++;
    }*/
  }
  
  int x;
  x=color[NUM-1];
  
  if(x!=0)
  {
    if(min==0)
    {
      min++;
    }
    
    max+=x;
  /*  if(x<=zero)
    {
      max+=x;
    }
    else
    {
      max+=zero;
    }*/
  }
  printf("%d %d\n",min,max);
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r13
	pushq	%r12
	leaq	-84(%rbp), %rsi
	pushq	%rbx
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$72, %rsp
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-84(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L20:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L20
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L21
.L4:
	pxor	%xmm0, %xmm0
	movl	$0, -48(%rbp)
	movq	%rsp, %r12
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -64(%rbp)
	testl	%ecx, %ecx
	jle	.L5
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%r12), %edx
	cmpl	$3599, %edx
	jle	.L6
	addl	$1, -48(%rbp)
	addl	$1, %r13d
	addq	$4, %r12
	cmpl	-84(%rbp), %r13d
	jl	.L8
.L5:
	pxor	%xmm0, %xmm0
	movl	-48(%rbp), %eax
	movdqa	%xmm0, %xmm1
	pcmpeqd	-80(%rbp), %xmm1
	pcmpeqd	%xmm0, %xmm1
	pcmpeqd	-64(%rbp), %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
	movd	%xmm0, %ecx
	testl	%eax, %eax
	je	.L9
	testl	%edx, %edx
	movl	$1, %esi
	leal	(%rax,%rdx), %ecx
	cmovne	%edx, %esi
	movl	%esi, %edx
.L9:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L22
	leaq	-24(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	movslq	%edx, %rax
	sarl	$31, %edx
	addl	$1, %r13d
	addq	$4, %r12
	imulq	$1374389535, %rax, %rax
	sarq	$39, %rax
	subl	%edx, %eax
	cltq
	addl	$1, -80(%rbp,%rax,4)
	cmpl	%r13d, -84(%rbp)
	jg	.L8
	jmp	.L5
.L21:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L22:
	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	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r13
	pushq	%r12
	leaq	-84(%rbp), %rsi
	pushq	%rbx
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$72, %rsp
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-84(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L20:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L20
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L21
.L4:
	pxor	%xmm0, %xmm0
	movl	$0, -48(%rbp)
	movq	%rsp, %r12
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -64(%rbp)
	testl	%ecx, %ecx
	jle	.L5
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%r12), %edx
	cmpl	$3599, %edx
	jle	.L6
	addl	$1, -48(%rbp)
	addl	$1, %r13d
	addq	$4, %r12
	cmpl	-84(%rbp), %r13d
	jl	.L8
.L5:
	pxor	%xmm0, %xmm0
	movl	-48(%rbp), %eax
	movdqa	%xmm0, %xmm1
	pcmpeqd	-80(%rbp), %xmm1
	pcmpeqd	%xmm0, %xmm1
	pcmpeqd	-64(%rbp), %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
	movd	%xmm0, %ecx
	testl	%eax, %eax
	je	.L9
	testl	%edx, %edx
	movl	$1, %esi
	leal	(%rax,%rdx), %ecx
	cmovne	%edx, %esi
	movl	%esi, %edx
.L9:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L22
	leaq	-24(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	movslq	%edx, %rax
	sarl	$31, %edx
	addl	$1, %r13d
	addq	$4, %r12
	imulq	$1374389535, %rax, %rax
	sarq	$39, %rax
	subl	%edx, %eax
	cltq
	addl	$1, -80(%rbp,%rax,4)
	cmpl	%r13d, -84(%rbp)
	jg	.L8
	jmp	.L5
.L21:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L22:
	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	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r13
	pushq	%r12
	leaq	-84(%rbp), %rsi
	pushq	%rbx
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$72, %rsp
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-84(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L20:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L20
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L21
.L4:
	pxor	%xmm0, %xmm0
	movl	$0, -48(%rbp)
	movq	%rsp, %r12
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -64(%rbp)
	testl	%ecx, %ecx
	jle	.L5
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%r12), %edx
	cmpl	$3599, %edx
	jle	.L6
	addl	$1, -48(%rbp)
	addl	$1, %r13d
	addq	$4, %r12
	cmpl	-84(%rbp), %r13d
	jl	.L8
.L5:
	pxor	%xmm0, %xmm0
	movl	-48(%rbp), %eax
	movdqa	%xmm0, %xmm1
	pcmpeqd	-80(%rbp), %xmm1
	pcmpeqd	%xmm0, %xmm1
	pcmpeqd	-64(%rbp), %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
	movd	%xmm0, %ecx
	testl	%eax, %eax
	je	.L9
	testl	%edx, %edx
	movl	$1, %esi
	leal	(%rax,%rdx), %ecx
	cmovne	%edx, %esi
	movl	%esi, %edx
.L9:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L22
	leaq	-24(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	movslq	%edx, %rax
	sarl	$31, %edx
	addl	$1, %r13d
	addq	$4, %r12
	imulq	$1374389535, %rax, %rax
	sarq	$39, %rax
	subl	%edx, %eax
	cltq
	addl	$1, -80(%rbp,%rax,4)
	cmpl	%r13d, -84(%rbp)
	jg	.L8
	jmp	.L5
.L21:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L22:
	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>

#define NUM 9

int main()
{
  int n;
  
  scanf("%d",&n);
  
  int a[n];
  int i,j;
  int color[NUM]={};
  int min=0,max=0;
  
  for(i=0;i<n;i++)
  {
    scanf("%d",&a[i]);
    if(3600<=a[i])
    {
      color[NUM-1]++;
    }
    else
    {
    color[a[i]/400]++;
    }
  }
  
  //int zero=0;
  for(i=0;i<NUM-1;i++)
  {
    if(color[i]!=0)
    {
      min++;
      max++;
    }
    /*if(color[i]==0)
    {
      zero++;
    }*/
  }
  
  int x;
  x=color[NUM-1];
  
  if(x!=0)
  {
    if(min==0)
    {
      min++;
    }
    
    max+=x;
  /*  if(x<=zero)
    {
      max+=x;
    }
    else
    {
      max+=zero;
    }*/
  }
  printf("%d %d\n",min,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>

#define NUM 9

int main()
{
  int n;
  
  scanf("%d",&n);
  
  int a[n];
  int i,j;
  int color[NUM]={};
  int min=0,max=0;
  
  for(i=0;i<n;i++)
  {
    scanf("%d",&a[i]);
    if(3600<=a[i])
    {
      color[NUM-1]++;
    }
    else
    {
    color[a[i]/400]++;
    }
  }
  
  //int zero=0;
  for(i=0;i<NUM-1;i++)
  {
    if(color[i]!=0)
    {
      min++;
      max++;
    }
    /*if(color[i]==0)
    {
      zero++;
    }*/
  }
  
  int x;
  x=color[NUM-1];
  
  if(x!=0)
  {
    if(min==0)
    {
      min++;
    }
    
    max+=x;
  /*  if(x<=zero)
    {
      max+=x;
    }
    else
    {
      max+=zero;
    }*/
  }
  printf("%d %d\n",min,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>

#define NUM 9

int main()
{
  int n;
  
  scanf("%d",&n);
  
  int a[n];
  int i,j;
  int color[NUM]={};
  int min=0,max=0;
  
  for(i=0;i<n;i++)
  {
    scanf("%d",&a[i]);
    if(3600<=a[i])
    {
      color[NUM-1]++;
    }
    else
    {
    color[a[i]/400]++;
    }
  }
  
  //int zero=0;
  for(i=0;i<NUM-1;i++)
  {
    if(color[i]!=0)
    {
      min++;
      max++;
    }
    /*if(color[i]==0)
    {
      zero++;
    }*/
  }
  
  int x;
  x=color[NUM-1];
  
  if(x!=0)
  {
    if(min==0)
    {
      min++;
    }
    
    max+=x;
  /*  if(x<=zero)
    {
      max+=x;
    }
    else
    {
      max+=zero;
    }*/
  }
  printf("%d %d\n",min,max);
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r13
	pushq	%r12
	leaq	-84(%rbp), %rsi
	pushq	%rbx
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$72, %rsp
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-84(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L20:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L20
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L21
.L4:
	pxor	%xmm0, %xmm0
	movl	$0, -48(%rbp)
	movq	%rsp, %r12
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -64(%rbp)
	testl	%ecx, %ecx
	jle	.L5
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%r12), %edx
	cmpl	$3599, %edx
	jle	.L6
	addl	$1, -48(%rbp)
	addl	$1, %r13d
	addq	$4, %r12
	cmpl	-84(%rbp), %r13d
	jl	.L8
.L5:
	pxor	%xmm0, %xmm0
	movl	-48(%rbp), %eax
	movdqa	%xmm0, %xmm1
	pcmpeqd	-80(%rbp), %xmm1
	pcmpeqd	%xmm0, %xmm1
	pcmpeqd	-64(%rbp), %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
	movd	%xmm0, %ecx
	testl	%eax, %eax
	je	.L9
	testl	%edx, %edx
	movl	$1, %esi
	leal	(%rax,%rdx), %ecx
	cmovne	%edx, %esi
	movl	%esi, %edx
.L9:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L22
	leaq	-24(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	movslq	%edx, %rax
	sarl	$31, %edx
	addl	$1, %r13d
	addq	$4, %r12
	imulq	$1374389535, %rax, %rax
	sarq	$39, %rax
	subl	%edx, %eax
	cltq
	addl	$1, -80(%rbp,%rax,4)
	cmpl	%r13d, -84(%rbp)
	jg	.L8
	jmp	.L5
.L21:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L22:
	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	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r13
	pushq	%r12
	leaq	-84(%rbp), %rsi
	pushq	%rbx
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$72, %rsp
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-84(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L20:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L20
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L21
.L4:
	pxor	%xmm0, %xmm0
	movl	$0, -48(%rbp)
	movq	%rsp, %r12
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -64(%rbp)
	testl	%ecx, %ecx
	jle	.L5
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%r12), %edx
	cmpl	$3599, %edx
	jle	.L6
	addl	$1, -48(%rbp)
	addl	$1, %r13d
	addq	$4, %r12
	cmpl	-84(%rbp), %r13d
	jl	.L8
.L5:
	pxor	%xmm0, %xmm0
	movl	-48(%rbp), %eax
	movdqa	%xmm0, %xmm1
	pcmpeqd	-80(%rbp), %xmm1
	pcmpeqd	%xmm0, %xmm1
	pcmpeqd	-64(%rbp), %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
	movd	%xmm0, %ecx
	testl	%eax, %eax
	je	.L9
	testl	%edx, %edx
	movl	$1, %esi
	leal	(%rax,%rdx), %ecx
	cmovne	%edx, %esi
	movl	%esi, %edx
.L9:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L22
	leaq	-24(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	movslq	%edx, %rax
	sarl	$31, %edx
	addl	$1, %r13d
	addq	$4, %r12
	imulq	$1374389535, %rax, %rax
	sarq	$39, %rax
	subl	%edx, %eax
	cltq
	addl	$1, -80(%rbp,%rax,4)
	cmpl	%r13d, -84(%rbp)
	jg	.L8
	jmp	.L5
.L21:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L22:
	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:
```