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>

void quick(long *,int,int);


int main(){
  long X=0,Y=0,ans=0;
  int N;
  scanf("%d",&N);
  long A[N];
  for (int i = 0; i < N; i++)
  {
    scanf("%ld",&A[i]);
  }
  
  quick(A,0,N-1);

  for (int i = N-1; i > 0; i--)
  {
    if (A[i]==A[i-1])
    {
      int j=0;
      while (A[i]==A[i-1]){i--;j++;}
      if (j>2&&X==0)
      {
        ans=A[i]*A[i];
        break;
      }else{
        if (X>0)
        {
          Y=A[i];
          ans=X*Y;
          break;
        }else{
          X=A[i];
        }
      }
    }
  }
  
  printf("%ld",ans);

  return 0;
}

void quick(long a[],int left,int right)
{
    int s,t,i,j;

    if (left<right){
        s=a[left];            
        i=left; j=right+1;      
        while (1){              
            while (a[++i]<s);
            while (a[--j]>s);
            if (i>=j) break;
            t=a[i]; a[i]=a[j]; a[j]=t;
        }
        a[left]=a[j]; a[j]=s;

        quick(a,left,j-1);
        quick(a,j+1,right);
    }
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movq	$0, -96(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -88(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-112(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L5
.L6:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L5:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L6
	movl	-112(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	quick
	movl	-112(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -104(%rbp)
	jmp	.L7
.L14:
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, %rcx
	jne	.L8
	movl	$0, -100(%rbp)
	jmp	.L9
.L10:
	subl	$1, -104(%rbp)
	addl	$1, -100(%rbp)
.L9:
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, %rcx
	je	.L10
	cmpl	$2, -100(%rbp)
	jle	.L11
	cmpq	$0, -96(%rbp)
	jne	.L11
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	imulq	%rcx, %rax
	movq	%rax, -88(%rbp)
	jmp	.L12
.L11:
	cmpq	$0, -96(%rbp)
	jle	.L13
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -80(%rbp)
	movq	-96(%rbp), %rax
	imulq	-80(%rbp), %rax
	movq	%rax, -88(%rbp)
	jmp	.L12
.L13:
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -96(%rbp)
.L8:
	subl	$1, -104(%rbp)
.L7:
	cmpl	$0, -104(%rbp)
	jg	.L14
.L12:
	movq	-88(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	quick
	.type	quick, @function
quick:
.LFB1:
	.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	.L25
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movl	%eax, -8(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-32(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
.L23:
	nop
.L19:
	addl	$1, -16(%rbp)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-8(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jl	.L19
	nop
.L20:
	subl	$1, -12(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-8(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jg	.L20
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jge	.L26
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	movq	%rax, (%rdx)
	jmp	.L23
.L26:
	nop
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-8(%rbp), %eax
	cltq
	movq	%rax, (%rdx)
	movl	-12(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-28(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quick
	movl	-12(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-32(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quick
.L25:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	quick, .-quick
	.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	quick
	.type	quick, @function
quick:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movl	%edx, 88(%rsp)
	cmpl	%edx, %esi
	jge	.L1
	movl	%edx, %eax
	movq	%rdi, %r15
	movl	%esi, %r14d
	addl	$1, %eax
	movl	%eax, 84(%rsp)
.L8:
	movslq	%r14d, %r12
	leal	1(%r14), %r8d
	movl	84(%rsp), %edx
	leaq	(%r15,%r12,8), %r9
	movslq	%r8d, %rax
	movslq	(%r9), %rsi
.L3:
	movq	(%r15,%rax,8), %rcx
	cmpq	%rsi, %rcx
	jl	.L4
	movslq	%edx, %rdi
	leaq	-8(%r15,%rdi,8), %r11
.L5:
	movq	%r11, %r10
	movq	(%r11), %rdi
	movl	%edx, 8(%rsp)
	subq	$8, %r11
	subl	$1, %edx
	cmpq	%rsi, %rdi
	jg	.L5
	cmpl	%eax, %edx
	jle	.L6
	movslq	%ecx, %rcx
	movq	%rdi, (%r15,%rax,8)
	movq	%rcx, (%r10)
.L4:
	addq	$1, %rax
	jmp	.L3
.L1:
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L6:
	.cfi_restore_state
	movl	8(%rsp), %eax
	movq	%rdi, (%r9)
	movl	%edx, 40(%rsp)
	subl	$2, %eax
	movq	%rsi, (%r10)
	movl	%eax, 44(%rsp)
	cmpl	%r14d, %eax
	jle	.L14
	movl	%r8d, %eax
	movl	%r14d, %r8d
	movl	%eax, %r14d
.L7:
	leaq	(%r15,%r12,8), %r9
	movl	40(%rsp), %edx
	movslq	%r14d, %rax
	movslq	(%r9), %rsi
.L9:
	movq	(%r15,%rax,8), %rcx
	cmpq	%rsi, %rcx
	jl	.L10
	movslq	%edx, %rdi
	leaq	-8(%r15,%rdi,8), %r11
.L11:
	movq	%r11, %r10
	movq	(%r11), %rdi
	movl	%edx, 12(%rsp)
	subq	$8, %r11
	subl	$1, %edx
	cmpq	%rsi, %rdi
	jg	.L11
	cmpl	%eax, %edx
	jle	.L12
	movslq	%ecx, %rcx
	movq	%rdi, (%r15,%rax,8)
	movq	%rcx, (%r10)
.L10:
	addq	$1, %rax
	jmp	.L9
.L14:
	movl	88(%rsp), %ebx
	cmpl	%ebx, 8(%rsp)
	jge	.L1
	movl	8(%rsp), %r14d
	jmp	.L8
.L12:
	movl	12(%rsp), %eax
	movq	%rdi, (%r9)
	movl	%r14d, %r11d
	movl	%edx, 48(%rsp)
	subl	$2, %eax
	movq	%rsi, (%r10)
	movl	%eax, 52(%rsp)
	cmpl	%r8d, %eax
	jle	.L20
.L13:
	leaq	(%r15,%r12,8), %r9
	movl	48(%rsp), %edx
	movslq	%r11d, %rax
	movslq	(%r9), %rsi
.L15:
	movq	(%r15,%rax,8), %rcx
	cmpq	%rsi, %rcx
	jl	.L16
	movslq	%edx, %rdi
	leaq	-8(%r15,%rdi,8), %rbx
.L17:
	movq	%rbx, %r10
	movq	(%rbx), %rdi
	movl	%edx, 16(%rsp)
	subq	$8, %rbx
	subl	$1, %edx
	cmpq	%rsi, %rdi
	jg	.L17
	cmpl	%eax, %edx
	jle	.L18
	movslq	%ecx, %rcx
	movq	%rdi, (%r15,%rax,8)
	movq	%rcx, (%r10)
.L16:
	addq	$1, %rax
	jmp	.L15
.L20:
	movl	12(%rsp), %ebx
	cmpl	%ebx, 44(%rsp)
	jle	.L14
	movslq	%ebx, %r12
	movq	%r12, %r8
	leal	1(%r12), %r14d
	jmp	.L7
.L18:
	movl	16(%rsp), %eax
	movq	%rdi, (%r9)
	movl	%r8d, %r14d
	movl	%edx, 56(%rsp)
	subl	$2, %eax
	movq	%rsi, (%r10)
	movl	%eax, 60(%rsp)
	cmpl	%r8d, %eax
	jle	.L26
.L19:
	leaq	(%r15,%r12,8), %r9
	movl	56(%rsp), %edx
	movslq	%r11d, %rax
	movslq	(%r9), %rsi
.L21:
	movq	(%r15,%rax,8), %rcx
	cmpq	%rsi, %rcx
	jl	.L22
	movslq	%edx, %rdi
	leaq	-8(%r15,%rdi,8), %r10
.L23:
	movq	%r10, %r8
	movq	(%r10), %rdi
	movl	%edx, 20(%rsp)
	subq	$8, %r10
	subl	$1, %edx
	cmpq	%rsi, %rdi
	jg	.L23
	cmpl	%eax, %edx
	jle	.L24
	movslq	%ecx, %rcx
	movq	%rdi, (%r15,%rax,8)
	movq	%rcx, (%r8)
.L22:
	addq	$1, %rax
	jmp	.L21
.L26:
	movl	16(%rsp), %ebx
	cmpl	%ebx, 52(%rsp)
	jle	.L20
	movslq	%ebx, %r12
	movq	%r12, %r8
	leal	1(%r12), %r11d
	jmp	.L13
.L24:
	movl	20(%rsp), %eax
	movq	%rdi, (%r9)
	movl	%edx, 64(%rsp)
	subl	$2, %eax
	movq	%rsi, (%r8)
	movl	%eax, 68(%rsp)
	cmpl	%eax, %r14d
	jge	.L32
.L25:
	leaq	(%r15,%r12,8), %r9
	movl	64(%rsp), %r10d
	movslq	%r11d, %rax
	movslq	(%r9), %rsi
.L27:
	movq	(%r15,%rax,8), %rdx
	cmpq	%rsi, %rdx
	jl	.L28
	movslq	%r10d, %rcx
	leaq	-8(%r15,%rcx,8), %rcx
	jmp	.L29
.L60:
	movl	%ebx, %r10d
.L29:
	movq	%rcx, %r8
	movq	(%rcx), %rdi
	subq	$8, %rcx
	leal	-1(%r10), %ebx
	cmpq	%rsi, %rdi
	jg	.L60
	cmpl	%eax, %ebx
	jle	.L30
	movslq	%edx, %rdx
	movq	%rdi, (%r15,%rax,8)
	movl	%ebx, %r10d
	movq	%rdx, (%r8)
.L28:
	addq	$1, %rax
	jmp	.L27
.L30:
	leal	-2(%r10), %eax
	movl	%r10d, 32(%rsp)
	movl	%r11d, %r10d
	movl	%r14d, %r11d
	movq	%rdi, (%r9)
	movl	%ebx, 72(%rsp)
	movq	%rsi, (%r8)
	movl	%eax, 76(%rsp)
	cmpl	%eax, %r14d
	jge	.L38
.L31:
	leaq	(%r15,%r12,8), %r9
	movl	72(%rsp), %r14d
	movslq	%r10d, %rax
	movslq	(%r9), %rcx
.L33:
	movq	(%r15,%rax,8), %rdx
	cmpq	%rcx, %rdx
	jl	.L34
	movslq	%r14d, %rsi
	leaq	-8(%r15,%rsi,8), %rsi
	.p2align 4,,10
	.p2align 3
.L35:
	movq	%rsi, %r8
	movq	(%rsi), %rdi
	movl	%r14d, 24(%rsp)
	subq	$8, %rsi
	subl	$1, %r14d
	cmpq	%rcx, %rdi
	jg	.L35
	cmpl	%eax, %r14d
	jle	.L36
	movslq	%edx, %rdx
	movq	%rdi, (%r15,%rax,8)
	movq	%rdx, (%r8)
.L34:
	addq	$1, %rax
	jmp	.L33
.L36:
	movl	24(%rsp), %eax
	movq	%rdi, (%r9)
	movq	%rcx, (%r8)
	subl	$2, %eax
	movl	%eax, 80(%rsp)
	cmpl	%eax, %r11d
	jge	.L44
	movl	%r14d, 92(%rsp)
	movl	%r10d, %eax
.L37:
	leaq	(%r15,%r12,8), %r9
	movl	92(%rsp), %ebp
	movslq	%eax, %rcx
	movslq	(%r9), %r8
	.p2align 4,,10
	.p2align 3
.L39:
	movq	(%r15,%rcx,8), %rsi
	cmpq	%r8, %rsi
	jl	.L40
	movslq	%ebp, %rdx
	leaq	-8(%r15,%rdx,8), %rdx
	.p2align 4,,10
	.p2align 3
.L41:
	movq	%rdx, %r10
	movq	(%rdx), %rdi
	movl	%ebp, %ebx
	subq	$8, %rdx
	subl	$1, %ebp
	cmpq	%r8, %rdi
	jg	.L41
	cmpl	%ecx, %ebp
	jle	.L42
	movslq	%esi, %rsi
	movq	%rdi, (%r15,%rcx,8)
	movq	%rsi, (%r10)
.L40:
	addq	$1, %rcx
	jmp	.L39
.L42:
	movl	%ebx, 36(%rsp)
	subl	$2, %ebx
	movq	%rdi, (%r9)
	movl	%ebx, 28(%rsp)
	movq	%r8, (%r10)
	cmpl	%ebx, %r11d
	jge	.L50
.L43:
	leaq	(%r15,%r12,8), %r8
	movslq	%eax, %rdi
	movl	%ebp, %ebx
	movslq	(%r8), %rsi
	.p2align 4,,10
	.p2align 3
.L45:
	movq	(%r15,%rdi,8), %r10
	cmpq	%rsi, %r10
	jl	.L46
	movslq	%ebx, %rdx
	leaq	-8(%r15,%rdx,8), %rdx
	.p2align 4,,10
	.p2align 3
.L47:
	movq	%rdx, %r9
	movq	(%rdx), %rcx
	movl	%ebx, %r13d
	subq	$8, %rdx
	subl	$1, %ebx
	cmpq	%rsi, %rcx
	jg	.L47
	cmpl	%edi, %ebx
	jle	.L48
	movslq	%r10d, %r10
	movq	%rcx, (%r15,%rdi,8)
	movq	%r10, (%r9)
.L46:
	addq	$1, %rdi
	jmp	.L45
.L48:
	leal	-2(%r13), %r14d
	movq	%rcx, (%r8)
	movq	%rsi, (%r9)
	cmpl	%r14d, %r11d
	jge	.L55
.L49:
	leaq	(%r15,%r12,8), %r8
	cltq
	movl	%ebx, %r12d
	movslq	(%r8), %rsi
	.p2align 4,,10
	.p2align 3
.L51:
	movq	(%r15,%rax,8), %rcx
	cmpq	%rsi, %rcx
	jl	.L52
	movslq	%r12d, %rdx
	leaq	-8(%r15,%rdx,8), %rdx
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L65:
	movl	%edi, %r12d
.L53:
	movq	%rdx, %r9
	movq	(%rdx), %r10
	subq	$8, %rdx
	leal	-1(%r12), %edi
	cmpq	%rsi, %r10
	jg	.L65
	cmpl	%eax, %edi
	jle	.L54
	movslq	%ecx, %rcx
	movq	%r10, (%r15,%rax,8)
	movl	%edi, %r12d
	movq	%rcx, (%r9)
.L52:
	addq	$1, %rax
	jmp	.L51
.L55:
	cmpl	%r13d, 28(%rsp)
	jle	.L50
	movslq	%r13d, %r12
	movq	%r12, %r11
	leal	1(%r12), %eax
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L54:
	movq	%r10, (%r8)
	leal	-2(%r12), %edx
	movq	%r15, %rdi
	movq	%rsi, (%r9)
	movl	%r11d, %esi
	call	quick
	cmpl	%r12d, %r14d
	jle	.L55
	movslq	%r12d, %r12
	movq	%r12, %r11
	leal	1(%r12), %eax
	jmp	.L49
.L50:
	movl	36(%rsp), %ebx
	cmpl	%ebx, 80(%rsp)
	jle	.L44
	movslq	%ebx, %r12
	movq	%r12, %r11
	leal	1(%r12), %eax
	jmp	.L37
.L44:
	movl	24(%rsp), %ebx
	cmpl	%ebx, 76(%rsp)
	jle	.L38
	movslq	%ebx, %r12
	movq	%r12, %r11
	leal	1(%r12), %r10d
	jmp	.L31
.L38:
	movl	32(%rsp), %ebx
	cmpl	%ebx, 68(%rsp)
	jle	.L32
	movslq	%ebx, %r12
	movq	%r12, %r14
	leal	1(%r12), %r11d
	jmp	.L25
.L32:
	movl	20(%rsp), %ebx
	cmpl	%ebx, 60(%rsp)
	jle	.L26
	movslq	%ebx, %r12
	movq	%r12, %r14
	leal	1(%r12), %r11d
	jmp	.L19
	.cfi_endproc
.LFE24:
	.size	quick, .-quick
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld"
	.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
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %rbx
	leaq	15(,%rax,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L94
.L121:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L121
.L94:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L122
.L95:
	movq	%rsp, %r13
	leaq	.LC1(%rip), %r12
	testl	%ebx, %ebx
	jle	.L96
	movq	%r13, %r15
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L97:
	movq	%r15, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %ebx
	addq	$8, %r15
	cmpl	%r14d, %ebx
	jg	.L97
.L96:
	subl	$1, %ebx
	xorl	%esi, %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	call	quick
	testl	%ebx, %ebx
	jle	.L104
	movslq	%ebx, %rax
	xorl	%r8d, %r8d
	movq	0(%r13,%rax,8), %rcx
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L105:
	movl	%esi, %ebx
	movq	%rax, %rcx
	testl	%ebx, %ebx
	jle	.L104
.L102:
	leal	-1(%rbx), %esi
	movslq	%esi, %rax
	movq	0(%r13,%rax,8), %rax
	cmpq	%rcx, %rax
	jne	.L105
	movslq	%ebx, %rax
	subl	$2, %ebx
	movq	-8(%r13,%rax,8), %rcx
	movslq	%ebx, %rax
	.p2align 4,,10
	.p2align 3
.L100:
	movq	%rcx, %rdx
	movq	0(%r13,%rax,8), %rcx
	movl	%esi, %edi
	movl	%eax, %ebx
	subl	%eax, %edi
	subq	$1, %rax
	cmpq	%rcx, %rdx
	je	.L100
	cmpl	$2, %edi
	jle	.L101
	testq	%r8, %r8
	je	.L123
.L101:
	testq	%r8, %r8
	jg	.L124
	movq	%rdx, %r8
	testl	%ebx, %ebx
	jg	.L102
	.p2align 4,,10
	.p2align 3
.L104:
	xorl	%edx, %edx
.L98:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L125
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L122:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L95
.L123:
	imulq	%rdx, %rdx
	jmp	.L98
.L124:
	imulq	%r8, %rdx
	jmp	.L98
.L125:
	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
	.p2align 4
	.globl	quick
	.type	quick, @function
quick:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movl	%edx, 88(%rsp)
	cmpl	%edx, %esi
	jge	.L1
	movl	%edx, %eax
	movq	%rdi, %r15
	movl	%esi, %r14d
	addl	$1, %eax
	movl	%eax, 84(%rsp)
.L8:
	movslq	%r14d, %r12
	leal	1(%r14), %r8d
	movl	84(%rsp), %edx
	leaq	(%r15,%r12,8), %r9
	movslq	%r8d, %rax
	movslq	(%r9), %rsi
.L3:
	movq	(%r15,%rax,8), %rcx
	cmpq	%rsi, %rcx
	jl	.L4
	movslq	%edx, %rdi
	leaq	-8(%r15,%rdi,8), %r11
.L5:
	movq	%r11, %r10
	movq	(%r11), %rdi
	movl	%edx, 8(%rsp)
	subq	$8, %r11
	subl	$1, %edx
	cmpq	%rsi, %rdi
	jg	.L5
	cmpl	%eax, %edx
	jle	.L6
	movslq	%ecx, %rcx
	movq	%rdi, (%r15,%rax,8)
	movq	%rcx, (%r10)
.L4:
	addq	$1, %rax
	jmp	.L3
.L1:
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L6:
	.cfi_restore_state
	movl	8(%rsp), %eax
	movq	%rdi, (%r9)
	movl	%edx, 40(%rsp)
	subl	$2, %eax
	movq	%rsi, (%r10)
	movl	%eax, 44(%rsp)
	cmpl	%r14d, %eax
	jle	.L14
	movl	%r8d, %eax
	movl	%r14d, %r8d
	movl	%eax, %r14d
.L7:
	leaq	(%r15,%r12,8), %r9
	movl	40(%rsp), %edx
	movslq	%r14d, %rax
	movslq	(%r9), %rsi
.L9:
	movq	(%r15,%rax,8), %rcx
	cmpq	%rsi, %rcx
	jl	.L10
	movslq	%edx, %rdi
	leaq	-8(%r15,%rdi,8), %r11
.L11:
	movq	%r11, %r10
	movq	(%r11), %rdi
	movl	%edx, 12(%rsp)
	subq	$8, %r11
	subl	$1, %edx
	cmpq	%rsi, %rdi
	jg	.L11
	cmpl	%eax, %edx
	jle	.L12
	movslq	%ecx, %rcx
	movq	%rdi, (%r15,%rax,8)
	movq	%rcx, (%r10)
.L10:
	addq	$1, %rax
	jmp	.L9
.L14:
	movl	88(%rsp), %ebx
	cmpl	%ebx, 8(%rsp)
	jge	.L1
	movl	8(%rsp), %r14d
	jmp	.L8
.L12:
	movl	12(%rsp), %eax
	movq	%rdi, (%r9)
	movl	%r14d, %r11d
	movl	%edx, 48(%rsp)
	subl	$2, %eax
	movq	%rsi, (%r10)
	movl	%eax, 52(%rsp)
	cmpl	%r8d, %eax
	jle	.L20
.L13:
	leaq	(%r15,%r12,8), %r9
	movl	48(%rsp), %edx
	movslq	%r11d, %rax
	movslq	(%r9), %rsi
.L15:
	movq	(%r15,%rax,8), %rcx
	cmpq	%rsi, %rcx
	jl	.L16
	movslq	%edx, %rdi
	leaq	-8(%r15,%rdi,8), %rbx
.L17:
	movq	%rbx, %r10
	movq	(%rbx), %rdi
	movl	%edx, 16(%rsp)
	subq	$8, %rbx
	subl	$1, %edx
	cmpq	%rsi, %rdi
	jg	.L17
	cmpl	%eax, %edx
	jle	.L18
	movslq	%ecx, %rcx
	movq	%rdi, (%r15,%rax,8)
	movq	%rcx, (%r10)
.L16:
	addq	$1, %rax
	jmp	.L15
.L20:
	movl	12(%rsp), %ebx
	cmpl	%ebx, 44(%rsp)
	jle	.L14
	movslq	%ebx, %r12
	movq	%r12, %r8
	leal	1(%r12), %r14d
	jmp	.L7
.L18:
	movl	16(%rsp), %eax
	movq	%rdi, (%r9)
	movl	%r8d, %r14d
	movl	%edx, 56(%rsp)
	subl	$2, %eax
	movq	%rsi, (%r10)
	movl	%eax, 60(%rsp)
	cmpl	%r8d, %eax
	jle	.L26
.L19:
	leaq	(%r15,%r12,8), %r9
	movl	56(%rsp), %edx
	movslq	%r11d, %rax
	movslq	(%r9), %rsi
.L21:
	movq	(%r15,%rax,8), %rcx
	cmpq	%rsi, %rcx
	jl	.L22
	movslq	%edx, %rdi
	leaq	-8(%r15,%rdi,8), %r10
.L23:
	movq	%r10, %r8
	movq	(%r10), %rdi
	movl	%edx, 20(%rsp)
	subq	$8, %r10
	subl	$1, %edx
	cmpq	%rsi, %rdi
	jg	.L23
	cmpl	%eax, %edx
	jle	.L24
	movslq	%ecx, %rcx
	movq	%rdi, (%r15,%rax,8)
	movq	%rcx, (%r8)
.L22:
	addq	$1, %rax
	jmp	.L21
.L26:
	movl	16(%rsp), %ebx
	cmpl	%ebx, 52(%rsp)
	jle	.L20
	movslq	%ebx, %r12
	movq	%r12, %r8
	leal	1(%r12), %r11d
	jmp	.L13
.L24:
	movl	20(%rsp), %eax
	movq	%rdi, (%r9)
	movl	%edx, 64(%rsp)
	subl	$2, %eax
	movq	%rsi, (%r8)
	movl	%eax, 68(%rsp)
	cmpl	%eax, %r14d
	jge	.L32
.L25:
	leaq	(%r15,%r12,8), %r9
	movl	64(%rsp), %r10d
	movslq	%r11d, %rax
	movslq	(%r9), %rsi
.L27:
	movq	(%r15,%rax,8), %rdx
	cmpq	%rsi, %rdx
	jl	.L28
	movslq	%r10d, %rcx
	leaq	-8(%r15,%rcx,8), %rcx
	jmp	.L29
.L60:
	movl	%ebx, %r10d
.L29:
	movq	%rcx, %r8
	movq	(%rcx), %rdi
	subq	$8, %rcx
	leal	-1(%r10), %ebx
	cmpq	%rsi, %rdi
	jg	.L60
	cmpl	%eax, %ebx
	jle	.L30
	movslq	%edx, %rdx
	movq	%rdi, (%r15,%rax,8)
	movl	%ebx, %r10d
	movq	%rdx, (%r8)
.L28:
	addq	$1, %rax
	jmp	.L27
.L30:
	leal	-2(%r10), %eax
	movl	%r10d, 32(%rsp)
	movl	%r11d, %r10d
	movl	%r14d, %r11d
	movq	%rdi, (%r9)
	movl	%ebx, 72(%rsp)
	movq	%rsi, (%r8)
	movl	%eax, 76(%rsp)
	cmpl	%eax, %r14d
	jge	.L38
.L31:
	leaq	(%r15,%r12,8), %r9
	movl	72(%rsp), %r14d
	movslq	%r10d, %rax
	movslq	(%r9), %rcx
.L33:
	movq	(%r15,%rax,8), %rdx
	cmpq	%rcx, %rdx
	jl	.L34
	movslq	%r14d, %rsi
	leaq	-8(%r15,%rsi,8), %rsi
	.p2align 4,,10
	.p2align 3
.L35:
	movq	%rsi, %r8
	movq	(%rsi), %rdi
	movl	%r14d, 24(%rsp)
	subq	$8, %rsi
	subl	$1, %r14d
	cmpq	%rcx, %rdi
	jg	.L35
	cmpl	%eax, %r14d
	jle	.L36
	movslq	%edx, %rdx
	movq	%rdi, (%r15,%rax,8)
	movq	%rdx, (%r8)
.L34:
	addq	$1, %rax
	jmp	.L33
.L36:
	movl	24(%rsp), %eax
	movq	%rdi, (%r9)
	movq	%rcx, (%r8)
	subl	$2, %eax
	movl	%eax, 80(%rsp)
	cmpl	%eax, %r11d
	jge	.L44
	movl	%r14d, 92(%rsp)
	movl	%r10d, %eax
.L37:
	leaq	(%r15,%r12,8), %r9
	movl	92(%rsp), %ebp
	movslq	%eax, %rcx
	movslq	(%r9), %r8
	.p2align 4,,10
	.p2align 3
.L39:
	movq	(%r15,%rcx,8), %rsi
	cmpq	%r8, %rsi
	jl	.L40
	movslq	%ebp, %rdx
	leaq	-8(%r15,%rdx,8), %rdx
	.p2align 4,,10
	.p2align 3
.L41:
	movq	%rdx, %r10
	movq	(%rdx), %rdi
	movl	%ebp, %ebx
	subq	$8, %rdx
	subl	$1, %ebp
	cmpq	%r8, %rdi
	jg	.L41
	cmpl	%ecx, %ebp
	jle	.L42
	movslq	%esi, %rsi
	movq	%rdi, (%r15,%rcx,8)
	movq	%rsi, (%r10)
.L40:
	addq	$1, %rcx
	jmp	.L39
.L42:
	movl	%ebx, 36(%rsp)
	subl	$2, %ebx
	movq	%rdi, (%r9)
	movl	%ebx, 28(%rsp)
	movq	%r8, (%r10)
	cmpl	%ebx, %r11d
	jge	.L50
.L43:
	leaq	(%r15,%r12,8), %r8
	movslq	%eax, %rdi
	movl	%ebp, %ebx
	movslq	(%r8), %rsi
	.p2align 4,,10
	.p2align 3
.L45:
	movq	(%r15,%rdi,8), %r10
	cmpq	%rsi, %r10
	jl	.L46
	movslq	%ebx, %rdx
	leaq	-8(%r15,%rdx,8), %rdx
	.p2align 4,,10
	.p2align 3
.L47:
	movq	%rdx, %r9
	movq	(%rdx), %rcx
	movl	%ebx, %r13d
	subq	$8, %rdx
	subl	$1, %ebx
	cmpq	%rsi, %rcx
	jg	.L47
	cmpl	%edi, %ebx
	jle	.L48
	movslq	%r10d, %r10
	movq	%rcx, (%r15,%rdi,8)
	movq	%r10, (%r9)
.L46:
	addq	$1, %rdi
	jmp	.L45
.L48:
	leal	-2(%r13), %r14d
	movq	%rcx, (%r8)
	movq	%rsi, (%r9)
	cmpl	%r14d, %r11d
	jge	.L55
.L49:
	leaq	(%r15,%r12,8), %r8
	cltq
	movl	%ebx, %r12d
	movslq	(%r8), %rsi
	.p2align 4,,10
	.p2align 3
.L51:
	movq	(%r15,%rax,8), %rcx
	cmpq	%rsi, %rcx
	jl	.L52
	movslq	%r12d, %rdx
	leaq	-8(%r15,%rdx,8), %rdx
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L65:
	movl	%edi, %r12d
.L53:
	movq	%rdx, %r9
	movq	(%rdx), %r10
	subq	$8, %rdx
	leal	-1(%r12), %edi
	cmpq	%rsi, %r10
	jg	.L65
	cmpl	%eax, %edi
	jle	.L54
	movslq	%ecx, %rcx
	movq	%r10, (%r15,%rax,8)
	movl	%edi, %r12d
	movq	%rcx, (%r9)
.L52:
	addq	$1, %rax
	jmp	.L51
.L55:
	cmpl	%r13d, 28(%rsp)
	jle	.L50
	movslq	%r13d, %r12
	movq	%r12, %r11
	leal	1(%r12), %eax
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L54:
	movq	%r10, (%r8)
	leal	-2(%r12), %edx
	movq	%r15, %rdi
	movq	%rsi, (%r9)
	movl	%r11d, %esi
	call	quick
	cmpl	%r12d, %r14d
	jle	.L55
	movslq	%r12d, %r12
	movq	%r12, %r11
	leal	1(%r12), %eax
	jmp	.L49
.L50:
	movl	36(%rsp), %ebx
	cmpl	%ebx, 80(%rsp)
	jle	.L44
	movslq	%ebx, %r12
	movq	%r12, %r11
	leal	1(%r12), %eax
	jmp	.L37
.L44:
	movl	24(%rsp), %ebx
	cmpl	%ebx, 76(%rsp)
	jle	.L38
	movslq	%ebx, %r12
	movq	%r12, %r11
	leal	1(%r12), %r10d
	jmp	.L31
.L38:
	movl	32(%rsp), %ebx
	cmpl	%ebx, 68(%rsp)
	jle	.L32
	movslq	%ebx, %r12
	movq	%r12, %r14
	leal	1(%r12), %r11d
	jmp	.L25
.L32:
	movl	20(%rsp), %ebx
	cmpl	%ebx, 60(%rsp)
	jle	.L26
	movslq	%ebx, %r12
	movq	%r12, %r14
	leal	1(%r12), %r11d
	jmp	.L19
	.cfi_endproc
.LFE24:
	.size	quick, .-quick
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld"
	.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
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %rbx
	leaq	15(,%rax,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L94
.L121:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L121
.L94:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L122
.L95:
	movq	%rsp, %r13
	leaq	.LC1(%rip), %r12
	testl	%ebx, %ebx
	jle	.L96
	movq	%r13, %r15
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L97:
	movq	%r15, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %ebx
	addq	$8, %r15
	cmpl	%r14d, %ebx
	jg	.L97
.L96:
	subl	$1, %ebx
	xorl	%esi, %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	call	quick
	testl	%ebx, %ebx
	jle	.L104
	movslq	%ebx, %rax
	xorl	%r8d, %r8d
	movq	0(%r13,%rax,8), %rcx
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L105:
	movl	%esi, %ebx
	movq	%rax, %rcx
	testl	%ebx, %ebx
	jle	.L104
.L102:
	leal	-1(%rbx), %esi
	movslq	%esi, %rax
	movq	0(%r13,%rax,8), %rax
	cmpq	%rcx, %rax
	jne	.L105
	movslq	%ebx, %rax
	subl	$2, %ebx
	movq	-8(%r13,%rax,8), %rcx
	movslq	%ebx, %rax
	.p2align 4,,10
	.p2align 3
.L100:
	movq	%rcx, %rdx
	movq	0(%r13,%rax,8), %rcx
	movl	%esi, %edi
	movl	%eax, %ebx
	subl	%eax, %edi
	subq	$1, %rax
	cmpq	%rcx, %rdx
	je	.L100
	cmpl	$2, %edi
	jle	.L101
	testq	%r8, %r8
	je	.L123
.L101:
	testq	%r8, %r8
	jg	.L124
	movq	%rdx, %r8
	testl	%ebx, %ebx
	jg	.L102
	.p2align 4,,10
	.p2align 3
.L104:
	xorl	%edx, %edx
.L98:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L125
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L122:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L95
.L123:
	imulq	%rdx, %rdx
	jmp	.L98
.L124:
	imulq	%r8, %rdx
	jmp	.L98
.L125:
	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>

void quick(long *,int,int);


int main(){
  long X=0,Y=0,ans=0;
  int N;
  scanf("%d",&N);
  long A[N];
  for (int i = 0; i < N; i++)
  {
    scanf("%ld",&A[i]);
  }
  
  quick(A,0,N-1);

  for (int i = N-1; i > 0; i--)
  {
    if (A[i]==A[i-1])
    {
      int j=0;
      while (A[i]==A[i-1]){i--;j++;}
      if (j>2&&X==0)
      {
        ans=A[i]*A[i];
        break;
      }else{
        if (X>0)
        {
          Y=A[i];
          ans=X*Y;
          break;
        }else{
          X=A[i];
        }
      }
    }
  }
  
  printf("%ld",ans);

  return 0;
}

void quick(long a[],int left,int right)
{
    int s,t,i,j;

    if (left<right){
        s=a[left];            
        i=left; j=right+1;      
        while (1){              
            while (a[++i]<s);
            while (a[--j]>s);
            if (i>=j) break;
            t=a[i]; a[i]=a[j]; a[j]=t;
        }
        a[left]=a[j]; a[j]=s;

        quick(a,left,j-1);
        quick(a,j+1,right);
    }
}
6
3 1 2 4 2 1

2
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>

void quick(long *,int,int);


int main(){
  long X=0,Y=0,ans=0;
  int N;
  scanf("%d",&N);
  long A[N];
  for (int i = 0; i < N; i++)
  {
    scanf("%ld",&A[i]);
  }
  
  quick(A,0,N-1);

  for (int i = N-1; i > 0; i--)
  {
    if (A[i]==A[i-1])
    {
      int j=0;
      while (A[i]==A[i-1]){i--;j++;}
      if (j>2&&X==0)
      {
        ans=A[i]*A[i];
        break;
      }else{
        if (X>0)
        {
          Y=A[i];
          ans=X*Y;
          break;
        }else{
          X=A[i];
        }
      }
    }
  }
  
  printf("%ld",ans);

  return 0;
}

void quick(long a[],int left,int right)
{
    int s,t,i,j;

    if (left<right){
        s=a[left];            
        i=left; j=right+1;      
        while (1){              
            while (a[++i]<s);
            while (a[--j]>s);
            if (i>=j) break;
            t=a[i]; a[i]=a[j]; a[j]=t;
        }
        a[left]=a[j]; a[j]=s;

        quick(a,left,j-1);
        quick(a,j+1,right);
    }
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movq	$0, -96(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -88(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-112(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L5
.L6:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L5:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L6
	movl	-112(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	quick
	movl	-112(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -104(%rbp)
	jmp	.L7
.L14:
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, %rcx
	jne	.L8
	movl	$0, -100(%rbp)
	jmp	.L9
.L10:
	subl	$1, -104(%rbp)
	addl	$1, -100(%rbp)
.L9:
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, %rcx
	je	.L10
	cmpl	$2, -100(%rbp)
	jle	.L11
	cmpq	$0, -96(%rbp)
	jne	.L11
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	imulq	%rcx, %rax
	movq	%rax, -88(%rbp)
	jmp	.L12
.L11:
	cmpq	$0, -96(%rbp)
	jle	.L13
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -80(%rbp)
	movq	-96(%rbp), %rax
	imulq	-80(%rbp), %rax
	movq	%rax, -88(%rbp)
	jmp	.L12
.L13:
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -96(%rbp)
.L8:
	subl	$1, -104(%rbp)
.L7:
	cmpl	$0, -104(%rbp)
	jg	.L14
.L12:
	movq	-88(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	quick
	.type	quick, @function
quick:
.LFB1:
	.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	.L25
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movl	%eax, -8(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-32(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
.L23:
	nop
.L19:
	addl	$1, -16(%rbp)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-8(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jl	.L19
	nop
.L20:
	subl	$1, -12(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-8(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jg	.L20
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jge	.L26
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	movq	%rax, (%rdx)
	jmp	.L23
.L26:
	nop
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-8(%rbp), %eax
	cltq
	movq	%rax, (%rdx)
	movl	-12(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-28(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quick
	movl	-12(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-32(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quick
.L25:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	quick, .-quick
	.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	"%ld"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movq	$0, -96(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -88(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-112(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L5
.L6:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L5:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L6
	movl	-112(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	quick
	movl	-112(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -104(%rbp)
	jmp	.L7
.L14:
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, %rcx
	jne	.L8
	movl	$0, -100(%rbp)
	jmp	.L9
.L10:
	subl	$1, -104(%rbp)
	addl	$1, -100(%rbp)
.L9:
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, %rcx
	je	.L10
	cmpl	$2, -100(%rbp)
	jle	.L11
	cmpq	$0, -96(%rbp)
	jne	.L11
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	imulq	%rcx, %rax
	movq	%rax, -88(%rbp)
	jmp	.L12
.L11:
	cmpq	$0, -96(%rbp)
	jle	.L13
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -80(%rbp)
	movq	-96(%rbp), %rax
	imulq	-80(%rbp), %rax
	movq	%rax, -88(%rbp)
	jmp	.L12
.L13:
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -96(%rbp)
.L8:
	subl	$1, -104(%rbp)
.L7:
	cmpl	$0, -104(%rbp)
	jg	.L14
.L12:
	movq	-88(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	quick
	.type	quick, @function
quick:
.LFB1:
	.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	.L25
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movl	%eax, -8(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-32(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
.L23:
	nop
.L19:
	addl	$1, -16(%rbp)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-8(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jl	.L19
	nop
.L20:
	subl	$1, -12(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-8(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jg	.L20
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jge	.L26
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	movq	%rax, (%rdx)
	jmp	.L23
.L26:
	nop
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-8(%rbp), %eax
	cltq
	movq	%rax, (%rdx)
	movl	-12(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-28(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quick
	movl	-12(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-32(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quick
.L25:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	quick, .-quick
	.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:
