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 <stdlib.h>
#include <math.h>
#include <string.h>

//gcdやり直す

void swap (int *x, int *y) {
  int temp;    

  temp = *x;
  *x = *y;
  *y = temp;
}




/***
* pivotを決め、
* 全データをpivotを境目に振り分け、
* pivotの添え字を返す
***/
int partition (int array[], int left, int right) {
  int i, j, pivot;
  i = left;
  j = right + 1;
  pivot = left;   // 先頭要素をpivotとする

  do {
    do { i++; } while (array[i] < array[pivot]);
    do { j--; } while (array[pivot] < array[j]);
    // pivotより小さいものを左へ、大きいものを右へ
    if (i < j) { swap(&array[i], &array[j]); }
  } while (i < j);

  swap(&array[pivot], &array[j]);   //pivotを更新

  return j;
}

/* クイックソート */
void quick_sort (int array[], int left, int right) {
  int pivot;

  if (left < right) {
    pivot = partition(array, left, right);
    quick_sort(array, left, pivot-1);   // pivotを境に再帰的にクイックソート
    quick_sort(array, pivot+1, right);
  }
}




/****************************************\
| Thank you for viewing my code:)        |
| Written by RedSpica a.k.a. RanseMirage |
| Twitter:@asakaakasaka                  | 
\****************************************/

int main(void){
  int l,r;
  scanf("%d%d",&l,&r);
  int ans=2020;
  int i,j;
  
  if(r-l+1>=2019){
    printf("0\n");
    return 0;
  }
  

  r%=2019;
  l%=2019;


  if(r<l){
    printf("0\n");
    return 0;
  }


  for(i=l;i<r;i++){
    for(j=i+1;j<=r;j++){
      int a=(i*j)%2019;
      if(a<ans){
        ans=a;
      }
    }
  }
  printf("%d\n",ans);



  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	swap
	.type	swap, @function
swap:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-32(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	swap, .-swap
	.globl	partition
	.type	partition, @function
partition:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-32(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
.L3:
	addl	$1, -12(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jl	.L3
.L4:
	subl	$1, -8(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L5
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	swap
.L5:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L3
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	swap
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	partition, .-partition
	.globl	quick_sort
	.type	quick_sort, @function
quick_sort:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	-28(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jge	.L9
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	partition
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-28(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quick_sort
	movl	-4(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-32(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quick_sort
.L9:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	quick_sort, .-quick_sort
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"0"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$2020, -24(%rbp)
	movl	-28(%rbp), %eax
	movl	-32(%rbp), %edx
	subl	%edx, %eax
	cmpl	$2017, %eax
	jle	.L11
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L19
.L11:
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$-2116638167, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$10, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$2019, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	%edx, -28(%rbp)
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$-2116638167, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$10, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$2019, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	%edx, -32(%rbp)
	movl	-28(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L13
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L19
.L13:
	movl	-32(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L14
.L18:
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -16(%rbp)
	jmp	.L15
.L17:
	movl	-20(%rbp), %eax
	imull	-16(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$-2116638167, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$10, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -12(%rbp)
	movl	-12(%rbp), %edx
	imull	$2019, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jge	.L16
	movl	-12(%rbp), %eax
	movl	%eax, -24(%rbp)
.L16:
	addl	$1, -16(%rbp)
.L15:
	movl	-28(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L17
	addl	$1, -20(%rbp)
.L14:
	movl	-28(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L18
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L19:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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
	.p2align 4
	.globl	swap
	.type	swap, @function
swap:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	movl	(%rsi), %edx
	movl	%edx, (%rdi)
	movl	%eax, (%rsi)
	ret
	.cfi_endproc
.LFE51:
	.size	swap, .-swap
	.p2align 4
	.globl	partition
	.type	partition, @function
partition:
.LFB52:
	.cfi_startproc
	endbr64
	movslq	%esi, %rax
	addl	$1, %esi
	leal	1(%rdx), %r8d
	movq	%rdi, %r10
	leaq	(%rdi,%rax,4), %r11
	movslq	%esi, %rdi
	movl	(%r11), %ecx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	(%r10,%rdi,4), %r9d
	cmpl	%ecx, %r9d
	jl	.L5
	movslq	%r8d, %rax
	leaq	-4(%r10,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rax, %rsi
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %r8d
	cmpl	%edx, %ecx
	jl	.L6
	cmpl	%edi, %r8d
	jg	.L9
	movl	%edx, (%r11)
	movl	%r8d, %eax
	movl	%ecx, (%rsi)
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%edx, (%r10,%rdi,4)
	movl	%r9d, (%rsi)
	movl	(%r11), %ecx
.L5:
	addq	$1, %rdi
	jmp	.L4
	.cfi_endproc
.LFE52:
	.size	partition, .-partition
	.p2align 4
	.globl	quick_sort
	.type	quick_sort, @function
quick_sort:
.LFB53:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edx
	jle	.L20
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	%esi, %r10d
	movq	%rdi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leal	1(%rdx), %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movl	%edx, %ebx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
.L16:
	movslq	%r10d, %rax
	leal	1(%r10), %r8d
	movl	%ebp, %edx
	leaq	0(%r13,%rax,4), %r11
	movslq	%r8d, %r8
	movl	(%r11), %esi
	.p2align 4,,10
	.p2align 3
.L12:
	movl	0(%r13,%r8,4), %r9d
	cmpl	%esi, %r9d
	jl	.L13
	movslq	%edx, %rax
	leaq	-4(%r13,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rax, %rdi
	movl	(%rax), %ecx
	movl	%edx, %r12d
	subq	$4, %rax
	subl	$1, %edx
	cmpl	%ecx, %esi
	jl	.L14
	cmpl	%r8d, %edx
	jg	.L23
	movl	%ecx, (%r11)
	leal	-2(%r12), %edx
	movl	%esi, (%rdi)
	movl	%r10d, %esi
	movq	%r13, %rdi
	call	quick_sort
	cmpl	%r12d, %ebx
	jle	.L24
	movl	%r12d, %r10d
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L23:
	movl	%ecx, 0(%r13,%r8,4)
	movl	%r9d, (%rdi)
	movl	(%r11), %esi
.L13:
	addq	$1, %r8
	jmp	.L12
.L24:
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE53:
	.size	quick_sort, .-quick_sort
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"0"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB54:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edx
	movl	(%rsp), %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	cmpl	$2017, %ecx
	jg	.L28
	movslq	%edx, %rsi
	movl	%edx, %ecx
	imulq	$-2116638167, %rsi, %rsi
	sarl	$31, %ecx
	shrq	$32, %rsi
	addl	%edx, %esi
	sarl	$10, %esi
	subl	%ecx, %esi
	imull	$2019, %esi, %ecx
	movl	%edx, %esi
	cltd
	subl	%ecx, %esi
	movslq	%eax, %rcx
	imulq	$-2116638167, %rcx, %rcx
	movl	%esi, 4(%rsp)
	shrq	$32, %rcx
	addl	%eax, %ecx
	sarl	$10, %ecx
	subl	%edx, %ecx
	imull	$2019, %ecx, %edx
	subl	%edx, %eax
	movl	%eax, (%rsp)
	movl	%eax, %ecx
	cmpl	%eax, %esi
	jl	.L28
	jle	.L38
	pxor	%xmm6, %xmm6
	movl	%esi, %r8d
	leal	1(%rcx), %edi
	movl	$2020, %edx
	movdqa	.LC3(%rip), %xmm4
	movdqa	%xmm6, %xmm7
	subl	%eax, %r8d
	movdqa	.LC2(%rip), %xmm10
	pcmpgtd	%xmm4, %xmm7
	cmpl	%edi, %esi
	jl	.L30
	.p2align 4,,10
	.p2align 3
.L44:
	movl	%esi, %eax
	subl	%edi, %eax
	cmpl	$2, %eax
	jbe	.L39
	movd	%edx, %xmm5
	leal	3(%rcx), %edx
	leal	2(%rcx), %eax
	movl	%r8d, %r9d
	movd	%edx, %xmm0
	leal	4(%rcx), %edx
	pshufd	$0, %xmm5, %xmm3
	shrl	$2, %r9d
	movd	%edx, %xmm5
	movd	%eax, %xmm2
	xorl	%eax, %eax
	punpckldq	%xmm5, %xmm0
	movd	%edi, %xmm5
	punpckldq	%xmm2, %xmm5
	movd	%ecx, %xmm2
	pshufd	$0, %xmm2, %xmm8
	punpcklqdq	%xmm0, %xmm5
	movdqa	%xmm8, %xmm9
	psrlq	$32, %xmm9
	.p2align 4,,10
	.p2align 3
.L32:
	movdqa	%xmm5, %xmm0
	movdqa	%xmm6, %xmm11
	movdqa	%xmm7, %xmm12
	addl	$1, %eax
	movdqa	%xmm0, %xmm2
	psrlq	$32, %xmm0
	paddd	%xmm10, %xmm5
	pmuludq	%xmm8, %xmm2
	pmuludq	%xmm9, %xmm0
	pshufd	$8, %xmm2, %xmm2
	pshufd	$8, %xmm0, %xmm0
	punpckldq	%xmm0, %xmm2
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm2, %xmm1
	pcmpgtd	%xmm1, %xmm11
	pmuludq	%xmm1, %xmm12
	movdqa	%xmm1, %xmm0
	pmuludq	%xmm4, %xmm0
	movdqa	%xmm2, %xmm1
	punpckhdq	%xmm2, %xmm1
	pmuludq	%xmm4, %xmm11
	paddq	%xmm12, %xmm11
	movdqa	%xmm7, %xmm12
	psllq	$32, %xmm11
	pmuludq	%xmm1, %xmm12
	paddq	%xmm11, %xmm0
	movdqa	%xmm6, %xmm11
	pcmpgtd	%xmm1, %xmm11
	pmuludq	%xmm4, %xmm1
	pmuludq	%xmm4, %xmm11
	paddq	%xmm12, %xmm11
	psllq	$32, %xmm11
	paddq	%xmm11, %xmm1
	shufps	$221, %xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	paddd	%xmm2, %xmm0
	psrad	$31, %xmm1
	psrad	$10, %xmm0
	psubd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	pslld	$6, %xmm1
	psubd	%xmm0, %xmm1
	pslld	$3, %xmm1
	paddd	%xmm0, %xmm1
	pslld	$2, %xmm1
	psubd	%xmm0, %xmm1
	psubd	%xmm1, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm3
	pandn	%xmm2, %xmm0
	por	%xmm0, %xmm3
	cmpl	%eax, %r9d
	jne	.L32
	movdqa	%xmm3, %xmm1
	movl	%r8d, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	movdqa	%xmm1, %xmm0
	leal	(%rax,%rdi), %r9d
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm3
	pandn	%xmm1, %xmm0
	por	%xmm3, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpl	%r8d, %eax
	je	.L35
.L31:
	movl	%ecx, %r10d
	imull	%r9d, %r10d
	movslq	%r10d, %rax
	movl	%r10d, %r11d
	imulq	$-2116638167, %rax, %rax
	sarl	$31, %r11d
	shrq	$32, %rax
	addl	%r10d, %eax
	sarl	$10, %eax
	subl	%r11d, %eax
	movl	%r10d, %r11d
	imull	$2019, %eax, %eax
	subl	%eax, %r11d
	leal	1(%r9), %eax
	cmpl	%r11d, %edx
	cmovg	%r11d, %edx
	cmpl	%eax, %esi
	jl	.L35
	addl	%ecx, %r10d
	movslq	%r10d, %rax
	movl	%r10d, %r11d
	imulq	$-2116638167, %rax, %rax
	sarl	$31, %r11d
	shrq	$32, %rax
	addl	%r10d, %eax
	sarl	$10, %eax
	subl	%r11d, %eax
	movl	%r10d, %r11d
	imull	$2019, %eax, %eax
	subl	%eax, %r11d
	cmpl	%r11d, %edx
	cmovg	%r11d, %edx
	addl	$2, %r9d
	cmpl	%r9d, %esi
	jl	.L35
	leal	(%r10,%rcx), %eax
	movslq	%eax, %rcx
	movl	%eax, %r9d
	imulq	$-2116638167, %rcx, %rcx
	sarl	$31, %r9d
	shrq	$32, %rcx
	addl	%eax, %ecx
	sarl	$10, %ecx
	subl	%r9d, %ecx
	imull	$2019, %ecx, %ecx
	subl	%ecx, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
.L35:
	subl	$1, %r8d
	cmpl	%edi, %esi
	je	.L29
	movl	%edi, %ecx
.L45:
	leal	1(%rcx), %edi
	cmpl	%edi, %esi
	jge	.L44
.L30:
	subl	$1, %r8d
	movl	%edi, %ecx
	jmp	.L45
.L38:
	movl	$2020, %edx
.L29:
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L27:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L46
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L39:
	.cfi_restore_state
	movl	%edi, %r9d
	jmp	.L31
.L28:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L27
.L46:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC3:
	.long	-2116638167
	.long	-2116638167
	.long	-2116638167
	.long	-2116638167
	.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
	.p2align 4
	.globl	swap
	.type	swap, @function
swap:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	movl	(%rsi), %edx
	movl	%edx, (%rdi)
	movl	%eax, (%rsi)
	ret
	.cfi_endproc
.LFE51:
	.size	swap, .-swap
	.p2align 4
	.globl	partition
	.type	partition, @function
partition:
.LFB52:
	.cfi_startproc
	endbr64
	movslq	%esi, %rax
	addl	$1, %esi
	leal	1(%rdx), %r8d
	movq	%rdi, %r10
	leaq	(%rdi,%rax,4), %r11
	movslq	%esi, %rdi
	movl	(%r11), %ecx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	(%r10,%rdi,4), %r9d
	cmpl	%ecx, %r9d
	jl	.L5
	movslq	%r8d, %rax
	leaq	-4(%r10,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rax, %rsi
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %r8d
	cmpl	%edx, %ecx
	jl	.L6
	cmpl	%edi, %r8d
	jg	.L9
	movl	%edx, (%r11)
	movl	%r8d, %eax
	movl	%ecx, (%rsi)
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%edx, (%r10,%rdi,4)
	movl	%r9d, (%rsi)
	movl	(%r11), %ecx
.L5:
	addq	$1, %rdi
	jmp	.L4
	.cfi_endproc
.LFE52:
	.size	partition, .-partition
	.p2align 4
	.globl	quick_sort
	.type	quick_sort, @function
quick_sort:
.LFB53:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edx
	jle	.L20
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	%esi, %r10d
	movq	%rdi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leal	1(%rdx), %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movl	%edx, %ebx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
.L16:
	movslq	%r10d, %rax
	leal	1(%r10), %r8d
	movl	%ebp, %edx
	leaq	0(%r13,%rax,4), %r11
	movslq	%r8d, %r8
	movl	(%r11), %esi
	.p2align 4,,10
	.p2align 3
.L12:
	movl	0(%r13,%r8,4), %r9d
	cmpl	%esi, %r9d
	jl	.L13
	movslq	%edx, %rax
	leaq	-4(%r13,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rax, %rdi
	movl	(%rax), %ecx
	movl	%edx, %r12d
	subq	$4, %rax
	subl	$1, %edx
	cmpl	%ecx, %esi
	jl	.L14
	cmpl	%r8d, %edx
	jg	.L23
	movl	%ecx, (%r11)
	leal	-2(%r12), %edx
	movl	%esi, (%rdi)
	movl	%r10d, %esi
	movq	%r13, %rdi
	call	quick_sort
	cmpl	%r12d, %ebx
	jle	.L24
	movl	%r12d, %r10d
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L23:
	movl	%ecx, 0(%r13,%r8,4)
	movl	%r9d, (%rdi)
	movl	(%r11), %esi
.L13:
	addq	$1, %r8
	jmp	.L12
.L24:
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE53:
	.size	quick_sort, .-quick_sort
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"0"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB54:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edx
	movl	(%rsp), %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	cmpl	$2017, %ecx
	jg	.L28
	movslq	%edx, %rsi
	movl	%edx, %ecx
	imulq	$-2116638167, %rsi, %rsi
	sarl	$31, %ecx
	shrq	$32, %rsi
	addl	%edx, %esi
	sarl	$10, %esi
	subl	%ecx, %esi
	imull	$2019, %esi, %ecx
	movl	%edx, %esi
	cltd
	subl	%ecx, %esi
	movslq	%eax, %rcx
	imulq	$-2116638167, %rcx, %rcx
	movl	%esi, 4(%rsp)
	shrq	$32, %rcx
	addl	%eax, %ecx
	sarl	$10, %ecx
	subl	%edx, %ecx
	imull	$2019, %ecx, %edx
	subl	%edx, %eax
	movl	%eax, (%rsp)
	movl	%eax, %ecx
	cmpl	%eax, %esi
	jl	.L28
	jle	.L38
	pxor	%xmm6, %xmm6
	movl	%esi, %r8d
	leal	1(%rcx), %edi
	movl	$2020, %edx
	movdqa	.LC3(%rip), %xmm4
	movdqa	%xmm6, %xmm7
	subl	%eax, %r8d
	movdqa	.LC2(%rip), %xmm10
	pcmpgtd	%xmm4, %xmm7
	cmpl	%edi, %esi
	jl	.L30
	.p2align 4,,10
	.p2align 3
.L44:
	movl	%esi, %eax
	subl	%edi, %eax
	cmpl	$2, %eax
	jbe	.L39
	movd	%edx, %xmm5
	leal	3(%rcx), %edx
	leal	2(%rcx), %eax
	movl	%r8d, %r9d
	movd	%edx, %xmm0
	leal	4(%rcx), %edx
	pshufd	$0, %xmm5, %xmm3
	shrl	$2, %r9d
	movd	%edx, %xmm5
	movd	%eax, %xmm2
	xorl	%eax, %eax
	punpckldq	%xmm5, %xmm0
	movd	%edi, %xmm5
	punpckldq	%xmm2, %xmm5
	movd	%ecx, %xmm2
	pshufd	$0, %xmm2, %xmm8
	punpcklqdq	%xmm0, %xmm5
	movdqa	%xmm8, %xmm9
	psrlq	$32, %xmm9
	.p2align 4,,10
	.p2align 3
.L32:
	movdqa	%xmm5, %xmm0
	movdqa	%xmm6, %xmm11
	movdqa	%xmm7, %xmm12
	addl	$1, %eax
	movdqa	%xmm0, %xmm2
	psrlq	$32, %xmm0
	paddd	%xmm10, %xmm5
	pmuludq	%xmm8, %xmm2
	pmuludq	%xmm9, %xmm0
	pshufd	$8, %xmm2, %xmm2
	pshufd	$8, %xmm0, %xmm0
	punpckldq	%xmm0, %xmm2
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm2, %xmm1
	pcmpgtd	%xmm1, %xmm11
	pmuludq	%xmm1, %xmm12
	movdqa	%xmm1, %xmm0
	pmuludq	%xmm4, %xmm0
	movdqa	%xmm2, %xmm1
	punpckhdq	%xmm2, %xmm1
	pmuludq	%xmm4, %xmm11
	paddq	%xmm12, %xmm11
	movdqa	%xmm7, %xmm12
	psllq	$32, %xmm11
	pmuludq	%xmm1, %xmm12
	paddq	%xmm11, %xmm0
	movdqa	%xmm6, %xmm11
	pcmpgtd	%xmm1, %xmm11
	pmuludq	%xmm4, %xmm1
	pmuludq	%xmm4, %xmm11
	paddq	%xmm12, %xmm11
	psllq	$32, %xmm11
	paddq	%xmm11, %xmm1
	shufps	$221, %xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	paddd	%xmm2, %xmm0
	psrad	$31, %xmm1
	psrad	$10, %xmm0
	psubd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	pslld	$6, %xmm1
	psubd	%xmm0, %xmm1
	pslld	$3, %xmm1
	paddd	%xmm0, %xmm1
	pslld	$2, %xmm1
	psubd	%xmm0, %xmm1
	psubd	%xmm1, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm3
	pandn	%xmm2, %xmm0
	por	%xmm0, %xmm3
	cmpl	%eax, %r9d
	jne	.L32
	movdqa	%xmm3, %xmm1
	movl	%r8d, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	movdqa	%xmm1, %xmm0
	leal	(%rax,%rdi), %r9d
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm3
	pandn	%xmm1, %xmm0
	por	%xmm3, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpl	%r8d, %eax
	je	.L35
.L31:
	movl	%ecx, %r10d
	imull	%r9d, %r10d
	movslq	%r10d, %rax
	movl	%r10d, %r11d
	imulq	$-2116638167, %rax, %rax
	sarl	$31, %r11d
	shrq	$32, %rax
	addl	%r10d, %eax
	sarl	$10, %eax
	subl	%r11d, %eax
	movl	%r10d, %r11d
	imull	$2019, %eax, %eax
	subl	%eax, %r11d
	leal	1(%r9), %eax
	cmpl	%r11d, %edx
	cmovg	%r11d, %edx
	cmpl	%eax, %esi
	jl	.L35
	addl	%ecx, %r10d
	movslq	%r10d, %rax
	movl	%r10d, %r11d
	imulq	$-2116638167, %rax, %rax
	sarl	$31, %r11d
	shrq	$32, %rax
	addl	%r10d, %eax
	sarl	$10, %eax
	subl	%r11d, %eax
	movl	%r10d, %r11d
	imull	$2019, %eax, %eax
	subl	%eax, %r11d
	cmpl	%r11d, %edx
	cmovg	%r11d, %edx
	addl	$2, %r9d
	cmpl	%r9d, %esi
	jl	.L35
	leal	(%r10,%rcx), %eax
	movslq	%eax, %rcx
	movl	%eax, %r9d
	imulq	$-2116638167, %rcx, %rcx
	sarl	$31, %r9d
	shrq	$32, %rcx
	addl	%eax, %ecx
	sarl	$10, %ecx
	subl	%r9d, %ecx
	imull	$2019, %ecx, %ecx
	subl	%ecx, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
.L35:
	subl	$1, %r8d
	cmpl	%edi, %esi
	je	.L29
	movl	%edi, %ecx
.L45:
	leal	1(%rcx), %edi
	cmpl	%edi, %esi
	jge	.L44
.L30:
	subl	$1, %r8d
	movl	%edi, %ecx
	jmp	.L45
.L38:
	movl	$2020, %edx
.L29:
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L27:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L46
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L39:
	.cfi_restore_state
	movl	%edi, %r9d
	jmp	.L31
.L28:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L27
.L46:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC3:
	.long	-2116638167
	.long	-2116638167
	.long	-2116638167
	.long	-2116638167
	.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 <stdlib.h>
#include <math.h>
#include <string.h>

//gcdやり直す

void swap (int *x, int *y) {
  int temp;    

  temp = *x;
  *x = *y;
  *y = temp;
}




/***
* pivotを決め、
* 全データをpivotを境目に振り分け、
* pivotの添え字を返す
***/
int partition (int array[], int left, int right) {
  int i, j, pivot;
  i = left;
  j = right + 1;
  pivot = left;   // 先頭要素をpivotとする

  do {
    do { i++; } while (array[i] < array[pivot]);
    do { j--; } while (array[pivot] < array[j]);
    // pivotより小さいものを左へ、大きいものを右へ
    if (i < j) { swap(&array[i], &array[j]); }
  } while (i < j);

  swap(&array[pivot], &array[j]);   //pivotを更新

  return j;
}

/* クイックソート */
void quick_sort (int array[], int left, int right) {
  int pivot;

  if (left < right) {
    pivot = partition(array, left, right);
    quick_sort(array, left, pivot-1);   // pivotを境に再帰的にクイックソート
    quick_sort(array, pivot+1, right);
  }
}




/****************************************\
| Thank you for viewing my code:)        |
| Written by RedSpica a.k.a. RanseMirage |
| Twitter:@asakaakasaka                  | 
\****************************************/

int main(void){
  int l,r;
  scanf("%d%d",&l,&r);
  int ans=2020;
  int i,j;
  
  if(r-l+1>=2019){
    printf("0\n");
    return 0;
  }
  

  r%=2019;
  l%=2019;


  if(r<l){
    printf("0\n");
    return 0;
  }


  for(i=l;i<r;i++){
    for(j=i+1;j<=r;j++){
      int a=(i*j)%2019;
      if(a<ans){
        ans=a;
      }
    }
  }
  printf("%d\n",ans);



  return 0;
}
3 5
 4 10
 2020 3053
 1 5
 8 10
 2845 3053
 2 5
 6 8
 5 12
 9 10

12
 20
 0
 2
 72
 1
 6
 42
 30
 90

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 <stdlib.h>
#include <math.h>
#include <string.h>

//gcdやり直す

void swap (int *x, int *y) {
  int temp;    

  temp = *x;
  *x = *y;
  *y = temp;
}




/***
* pivotを決め、
* 全データをpivotを境目に振り分け、
* pivotの添え字を返す
***/
int partition (int array[], int left, int right) {
  int i, j, pivot;
  i = left;
  j = right + 1;
  pivot = left;   // 先頭要素をpivotとする

  do {
    do { i++; } while (array[i] < array[pivot]);
    do { j--; } while (array[pivot] < array[j]);
    // pivotより小さいものを左へ、大きいものを右へ
    if (i < j) { swap(&array[i], &array[j]); }
  } while (i < j);

  swap(&array[pivot], &array[j]);   //pivotを更新

  return j;
}

/* クイックソート */
void quick_sort (int array[], int left, int right) {
  int pivot;

  if (left < right) {
    pivot = partition(array, left, right);
    quick_sort(array, left, pivot-1);   // pivotを境に再帰的にクイックソート
    quick_sort(array, pivot+1, right);
  }
}




/****************************************\
| Thank you for viewing my code:)        |
| Written by RedSpica a.k.a. RanseMirage |
| Twitter:@asakaakasaka                  | 
\****************************************/

int main(void){
  int l,r;
  scanf("%d%d",&l,&r);
  int ans=2020;
  int i,j;
  
  if(r-l+1>=2019){
    printf("0\n");
    return 0;
  }
  

  r%=2019;
  l%=2019;


  if(r<l){
    printf("0\n");
    return 0;
  }


  for(i=l;i<r;i++){
    for(j=i+1;j<=r;j++){
      int a=(i*j)%2019;
      if(a<ans){
        ans=a;
      }
    }
  }
  printf("%d\n",ans);



  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	swap
	.type	swap, @function
swap:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-32(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	swap, .-swap
	.globl	partition
	.type	partition, @function
partition:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-32(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
.L3:
	addl	$1, -12(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jl	.L3
.L4:
	subl	$1, -8(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L5
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	swap
.L5:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L3
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	swap
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	partition, .-partition
	.globl	quick_sort
	.type	quick_sort, @function
quick_sort:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	-28(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jge	.L9
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	partition
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-28(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quick_sort
	movl	-4(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-32(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quick_sort
.L9:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	quick_sort, .-quick_sort
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"0"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$2020, -24(%rbp)
	movl	-28(%rbp), %eax
	movl	-32(%rbp), %edx
	subl	%edx, %eax
	cmpl	$2017, %eax
	jle	.L11
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L19
.L11:
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$-2116638167, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$10, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$2019, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	%edx, -28(%rbp)
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$-2116638167, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$10, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$2019, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	%edx, -32(%rbp)
	movl	-28(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L13
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L19
.L13:
	movl	-32(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L14
.L18:
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -16(%rbp)
	jmp	.L15
.L17:
	movl	-20(%rbp), %eax
	imull	-16(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$-2116638167, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$10, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -12(%rbp)
	movl	-12(%rbp), %edx
	imull	$2019, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jge	.L16
	movl	-12(%rbp), %eax
	movl	%eax, -24(%rbp)
.L16:
	addl	$1, -16(%rbp)
.L15:
	movl	-28(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L17
	addl	$1, -20(%rbp)
.L14:
	movl	-28(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L18
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L19:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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
	.globl	swap
	.type	swap, @function
swap:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-32(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	swap, .-swap
	.globl	partition
	.type	partition, @function
partition:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-32(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
.L3:
	addl	$1, -12(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jl	.L3
.L4:
	subl	$1, -8(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L5
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	swap
.L5:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L3
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	swap
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	partition, .-partition
	.globl	quick_sort
	.type	quick_sort, @function
quick_sort:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	-28(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jge	.L9
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	partition
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-28(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quick_sort
	movl	-4(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-32(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quick_sort
.L9:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	quick_sort, .-quick_sort
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"0"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$2020, -24(%rbp)
	movl	-28(%rbp), %eax
	movl	-32(%rbp), %edx
	subl	%edx, %eax
	cmpl	$2017, %eax
	jle	.L11
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L19
.L11:
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$-2116638167, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$10, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$2019, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	%edx, -28(%rbp)
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$-2116638167, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$10, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$2019, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	%edx, -32(%rbp)
	movl	-28(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L13
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L19
.L13:
	movl	-32(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L14
.L18:
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -16(%rbp)
	jmp	.L15
.L17:
	movl	-20(%rbp), %eax
	imull	-16(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$-2116638167, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$10, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -12(%rbp)
	movl	-12(%rbp), %edx
	imull	$2019, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jge	.L16
	movl	-12(%rbp), %eax
	movl	%eax, -24(%rbp)
.L16:
	addl	$1, -16(%rbp)
.L15:
	movl	-28(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L17
	addl	$1, -20(%rbp)
.L14:
	movl	-28(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L18
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L19:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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:
