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>

int main(void)
{
  int i,n,j,y,m,d,SS;

  scanf("%d",&n);
  for(j=1;j<=n;j++)
    {
      scanf("%d%d%d",&y,&m,&d);
      SS=0;
      for(i=y+1;i<1000;i++)
        {
         if(i%3==0)
	   {
	     SS+=200;
	   }
         else
	   {
	     SS+=195;
	   }
       }
      if(y%3==0)
	{
	  for(i=m+1;i<11;i++)
	    {
	      SS+=20;
	    }
	}
      else
	{
	  for(i=m+1;i<11;i++)
	    {
	      if(i%2==1)
		{
		  SS+=20;
		}
	      else
		{
		  SS+=19;
		}
	    }
	}
      if(y%3!=0 && m%2==0)
	{
          for(i=d;i<20;i++)
	    {
	      SS+=1;
	    }
	}
      else
	{
	  for(i=d;i<21;i++)
	    {
	      SS+=1;
	    }
	}
      printf("%d\n",SS);
    }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -16(%rbp)
	jmp	.L2
.L21:
	leaq	-24(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	movl	-32(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L3
.L6:
	movl	-20(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L4
	addl	$200, -12(%rbp)
	jmp	.L5
.L4:
	addl	$195, -12(%rbp)
.L5:
	addl	$1, -20(%rbp)
.L3:
	cmpl	$999, -20(%rbp)
	jle	.L6
	movl	-32(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L7
	movl	-28(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L8
.L9:
	addl	$20, -12(%rbp)
	addl	$1, -20(%rbp)
.L8:
	cmpl	$10, -20(%rbp)
	jle	.L9
	jmp	.L10
.L7:
	movl	-28(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L11
.L14:
	movl	-20(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L12
	addl	$20, -12(%rbp)
	jmp	.L13
.L12:
	addl	$19, -12(%rbp)
.L13:
	addl	$1, -20(%rbp)
.L11:
	cmpl	$10, -20(%rbp)
	jle	.L14
.L10:
	movl	-32(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	je	.L15
	movl	-28(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L15
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L16
.L17:
	addl	$1, -12(%rbp)
	addl	$1, -20(%rbp)
.L16:
	cmpl	$19, -20(%rbp)
	jle	.L17
	jmp	.L18
.L15:
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L19
.L20:
	addl	$1, -12(%rbp)
	addl	$1, -20(%rbp)
.L19:
	cmpl	$20, -20(%rbp)
	jle	.L20
.L18:
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -16(%rbp)
.L2:
	movl	-36(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L21
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	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"
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%d\n"
	.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
	leaq	.LC0(%rip), %rdi
	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
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L14
	movl	$1, %ebx
	leaq	20(%rsp), %r15
	leaq	16(%rsp), %r14
	leaq	12(%rsp), %r13
	leaq	.LC1(%rip), %r12
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rdx
	movq	%r12, %rdi
	movq	%r15, %rcx
	movq	%r13, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	xorl	%edx, %edx
	leal	1(%rdi), %eax
	cmpl	$999, %eax
	jg	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	imull	$-1431655765, %eax, %ecx
	leal	200(%rdx), %esi
	addl	$195, %edx
	addl	$715827882, %ecx
	cmpl	$1431655764, %ecx
	cmovbe	%esi, %edx
	addl	$1, %eax
	cmpl	$1000, %eax
	jne	.L6
.L3:
	imull	$-1431655765, %edi, %edi
	movl	16(%rsp), %r8d
	leal	1(%r8), %ecx
	addl	$715827882, %edi
	cmpl	$1431655764, %edi
	ja	.L7
	cmpl	$10, %ecx
	jg	.L8
	imull	$-20, %r8d, %r8d
	leal	200(%rdx,%r8), %edx
.L8:
	movl	20(%rsp), %ecx
	movl	$21, %eax
	movl	%edx, %esi
	subl	%ecx, %eax
	addl	%edx, %eax
	cmpl	$21, %ecx
	cmovl	%eax, %esi
	movl	%esi, %edx
.L13:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jge	.L2
.L14:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$40, %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
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	cmpl	$10, %ecx
	jg	.L9
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%ecx, %esi
	shrl	$31, %esi
	leal	(%rcx,%rsi), %eax
	andl	$1, %eax
	subl	%esi, %eax
	movl	%edx, %esi
	xorl	%edx, %edx
	cmpl	$1, %eax
	sete	%dl
	addl	$1, %ecx
	leal	19(%rdx,%rsi), %edx
	cmpl	$11, %ecx
	jne	.L12
.L9:
	andl	$1, %r8d
	jne	.L8
	movl	20(%rsp), %eax
	movl	%edx, %ecx
	subl	%eax, %edx
	addl	$20, %edx
	cmpl	$20, %eax
	cmovge	%ecx, %edx
	jmp	.L13
.L25:
	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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%d\n"
	.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
	leaq	.LC0(%rip), %rdi
	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
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L14
	movl	$1, %ebx
	leaq	20(%rsp), %r15
	leaq	16(%rsp), %r14
	leaq	12(%rsp), %r13
	leaq	.LC1(%rip), %r12
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rdx
	movq	%r12, %rdi
	movq	%r15, %rcx
	movq	%r13, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	xorl	%edx, %edx
	leal	1(%rdi), %eax
	cmpl	$999, %eax
	jg	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	imull	$-1431655765, %eax, %ecx
	leal	200(%rdx), %esi
	addl	$195, %edx
	addl	$715827882, %ecx
	cmpl	$1431655764, %ecx
	cmovbe	%esi, %edx
	addl	$1, %eax
	cmpl	$1000, %eax
	jne	.L6
.L3:
	imull	$-1431655765, %edi, %edi
	movl	16(%rsp), %r8d
	leal	1(%r8), %ecx
	addl	$715827882, %edi
	cmpl	$1431655764, %edi
	ja	.L7
	cmpl	$10, %ecx
	jg	.L8
	imull	$-20, %r8d, %r8d
	leal	200(%rdx,%r8), %edx
.L8:
	movl	20(%rsp), %ecx
	movl	$21, %eax
	movl	%edx, %esi
	subl	%ecx, %eax
	addl	%edx, %eax
	cmpl	$21, %ecx
	cmovl	%eax, %esi
	movl	%esi, %edx
.L13:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jge	.L2
.L14:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$40, %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
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	cmpl	$10, %ecx
	jg	.L9
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%ecx, %esi
	shrl	$31, %esi
	leal	(%rcx,%rsi), %eax
	andl	$1, %eax
	subl	%esi, %eax
	movl	%edx, %esi
	xorl	%edx, %edx
	cmpl	$1, %eax
	sete	%dl
	addl	$1, %ecx
	leal	19(%rdx,%rsi), %edx
	cmpl	$11, %ecx
	jne	.L12
.L9:
	andl	$1, %r8d
	jne	.L8
	movl	20(%rsp), %eax
	movl	%edx, %ecx
	subl	%eax, %edx
	addl	$20, %edx
	cmpl	$20, %eax
	cmovge	%ecx, %edx
	jmp	.L13
.L25:
	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:

#include<stdio.h>

int main(void)
{
  int i,n,j,y,m,d,SS;

  scanf("%d",&n);
  for(j=1;j<=n;j++)
    {
      scanf("%d%d%d",&y,&m,&d);
      SS=0;
      for(i=y+1;i<1000;i++)
        {
         if(i%3==0)
	   {
	     SS+=200;
	   }
         else
	   {
	     SS+=195;
	   }
       }
      if(y%3==0)
	{
	  for(i=m+1;i<11;i++)
	    {
	      SS+=20;
	    }
	}
      else
	{
	  for(i=m+1;i<11;i++)
	    {
	      if(i%2==1)
		{
		  SS+=20;
		}
	      else
		{
		  SS+=19;
		}
	    }
	}
      if(y%3!=0 && m%2==0)
	{
          for(i=d;i<20;i++)
	    {
	      SS+=1;
	    }
	}
      else
	{
	  for(i=d;i<21;i++)
	    {
	      SS+=1;
	    }
	}
      printf("%d\n",SS);
    }
  return 0;
}
8
1 1 1
344 3 1
696 5 1
182 9 5
998 5 7
344 2 19
696 4 19
999 10 20
 8
1 1 1
344 3 1
696 5 1
182 9 5
998 5 7
344 2 26
696 4 19
999 10 20
 8
1 1 1
344 3 1
696 4 1
182 9 5
998 8 7
344 2 19
696 4 19
999 10 20
 8
1 1 1
344 3 1
696 5 1
182 9 5
998 5 7
344 3 26
696 4 19
999 10 20
 8
1 1 2
344 3 1
696 5 1
182 9 5
998 8 7
344 2 19
696 4 19
999 10 20
 8
1 1 1
344 3 1
696 5 1
182 9 5
998 5 7
344 2 19
716 4 19
999 10 20
 8
1 1 1
344 3 1
696 5 1
182 9 5
998 5 7
344 2 26
763 4 19
999 10 20
 8
1 1 1
344 3 1
696 4 1
182 9 5
998 8 7
344 2 19
696 4 19
884 10 20
 8
0 1 1
344 3 1
696 5 1
182 9 5
998 5 7
344 3 26
696 4 19
999 10 20
 8
1 1 2
344 3 1
696 5 0
182 9 5
998 8 7
344 2 19
696 4 19
999 10 20

196470
128976
59710
160715
311
128977
59712
1
 196470
128976
59710
160715
311
128976
59712
1
 196470
128976
59730
160715
252
128977
59712
1
 196470
128976
59710
160715
311
128956
59712
1
 196469
128976
59710
160715
252
128977
59712
1
 196470
128976
59710
160715
311
128977
55778
1
 196470
128976
59710
160715
311
128976
46533
1
 196470
128976
59730
160715
252
128977
59712
22620
 196670
128976
59710
160715
311
128956
59712
1
 196469
128976
59711
160715
252
128977
59712
1

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>

int main(void)
{
  int i,n,j,y,m,d,SS;

  scanf("%d",&n);
  for(j=1;j<=n;j++)
    {
      scanf("%d%d%d",&y,&m,&d);
      SS=0;
      for(i=y+1;i<1000;i++)
        {
         if(i%3==0)
	   {
	     SS+=200;
	   }
         else
	   {
	     SS+=195;
	   }
       }
      if(y%3==0)
	{
	  for(i=m+1;i<11;i++)
	    {
	      SS+=20;
	    }
	}
      else
	{
	  for(i=m+1;i<11;i++)
	    {
	      if(i%2==1)
		{
		  SS+=20;
		}
	      else
		{
		  SS+=19;
		}
	    }
	}
      if(y%3!=0 && m%2==0)
	{
          for(i=d;i<20;i++)
	    {
	      SS+=1;
	    }
	}
      else
	{
	  for(i=d;i<21;i++)
	    {
	      SS+=1;
	    }
	}
      printf("%d\n",SS);
    }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -16(%rbp)
	jmp	.L2
.L21:
	leaq	-24(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	movl	-32(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L3
.L6:
	movl	-20(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L4
	addl	$200, -12(%rbp)
	jmp	.L5
.L4:
	addl	$195, -12(%rbp)
.L5:
	addl	$1, -20(%rbp)
.L3:
	cmpl	$999, -20(%rbp)
	jle	.L6
	movl	-32(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L7
	movl	-28(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L8
.L9:
	addl	$20, -12(%rbp)
	addl	$1, -20(%rbp)
.L8:
	cmpl	$10, -20(%rbp)
	jle	.L9
	jmp	.L10
.L7:
	movl	-28(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L11
.L14:
	movl	-20(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L12
	addl	$20, -12(%rbp)
	jmp	.L13
.L12:
	addl	$19, -12(%rbp)
.L13:
	addl	$1, -20(%rbp)
.L11:
	cmpl	$10, -20(%rbp)
	jle	.L14
.L10:
	movl	-32(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	je	.L15
	movl	-28(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L15
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L16
.L17:
	addl	$1, -12(%rbp)
	addl	$1, -20(%rbp)
.L16:
	cmpl	$19, -20(%rbp)
	jle	.L17
	jmp	.L18
.L15:
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L19
.L20:
	addl	$1, -12(%rbp)
	addl	$1, -20(%rbp)
.L19:
	cmpl	$20, -20(%rbp)
	jle	.L20
.L18:
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -16(%rbp)
.L2:
	movl	-36(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L21
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	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"
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -16(%rbp)
	jmp	.L2
.L21:
	leaq	-24(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	movl	-32(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L3
.L6:
	movl	-20(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L4
	addl	$200, -12(%rbp)
	jmp	.L5
.L4:
	addl	$195, -12(%rbp)
.L5:
	addl	$1, -20(%rbp)
.L3:
	cmpl	$999, -20(%rbp)
	jle	.L6
	movl	-32(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L7
	movl	-28(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L8
.L9:
	addl	$20, -12(%rbp)
	addl	$1, -20(%rbp)
.L8:
	cmpl	$10, -20(%rbp)
	jle	.L9
	jmp	.L10
.L7:
	movl	-28(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L11
.L14:
	movl	-20(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L12
	addl	$20, -12(%rbp)
	jmp	.L13
.L12:
	addl	$19, -12(%rbp)
.L13:
	addl	$1, -20(%rbp)
.L11:
	cmpl	$10, -20(%rbp)
	jle	.L14
.L10:
	movl	-32(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	je	.L15
	movl	-28(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L15
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L16
.L17:
	addl	$1, -12(%rbp)
	addl	$1, -20(%rbp)
.L16:
	cmpl	$19, -20(%rbp)
	jle	.L17
	jmp	.L18
.L15:
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L19
.L20:
	addl	$1, -12(%rbp)
	addl	$1, -20(%rbp)
.L19:
	cmpl	$20, -20(%rbp)
	jle	.L20
.L18:
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -16(%rbp)
.L2:
	movl	-36(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L21
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	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:
