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>

long long Merge(int A[],int left,int mid,int right){
  int n1 = mid - left;
  int n2 = right - mid;
  int i,j,k;
  int L[n1+1],R[n2+1];
  long long res = 0;
  for (i = 0;i<n1;i++)L[i]=A[left+i];
  for (i = 0;i<n2;i++)R[i]=A[mid+i];
  L[n1]=1000000001;
  R[n2]=1000000001;

  i=j=0;
  for(k = left;k<right;k++)
    {
      if(L[i]<=R[j]){
        A[k]=L[i];
        i++;
        }
      else{
        A[k]=R[j];
        j++;
          res+=(long long)n1-(long long)i;
      }
    }
  return res;
}



long long Merge_Sort(int A[],int left,int right)
{
  int mid;
  long long res = 0;
  if(left + 1 < right){
    mid = (left + right)/2;

    res+=Merge_Sort(A,left,mid);
    res+=Merge_Sort(A,mid,right);
    res+=Merge(A,left,mid,right);
  }
  return res;
}
int  main(void)
{
  int i,n,S[200000];
  long long x;
  scanf("%d",&n);
  for (i = 0;i<n;i++)scanf("%d",&S[i]);
  x = Merge_Sort(S,0,n);
  printf("%ld\n",x);
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	Merge
	.type	Merge, @function
Merge:
.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
	subq	$112, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	movq	%rdi, -120(%rbp)
	movl	%esi, -124(%rbp)
	movl	%edx, -128(%rbp)
	movl	%ecx, -132(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rsi
	movl	-128(%rbp), %eax
	subl	-124(%rbp), %eax
	movl	%eax, -88(%rbp)
	movl	-132(%rbp), %eax
	subl	-128(%rbp), %eax
	movl	%eax, -84(%rbp)
	movl	-88(%rbp), %eax
	addl	$1, %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,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	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	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	-84(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -56(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r10
	movl	$0, %r11d
	movslq	%eax, %rdx
	movq	%rdx, %r8
	movl	$0, %r9d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -48(%rbp)
	movq	$0, -80(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L8
.L9:
	movl	-124(%rbp), %edx
	movl	-100(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -100(%rbp)
.L8:
	movl	-100(%rbp), %eax
	cmpl	-88(%rbp), %eax
	jl	.L9
	movl	$0, -100(%rbp)
	jmp	.L10
.L11:
	movl	-128(%rbp), %edx
	movl	-100(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -100(%rbp)
.L10:
	movl	-100(%rbp), %eax
	cmpl	-84(%rbp), %eax
	jl	.L11
	movq	-64(%rbp), %rax
	movl	-88(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1000000001, (%rax,%rdx,4)
	movq	-48(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1000000001, (%rax,%rdx,4)
	movl	$0, -96(%rbp)
	movl	-96(%rbp), %eax
	movl	%eax, -100(%rbp)
	movl	-124(%rbp), %eax
	movl	%eax, -92(%rbp)
	jmp	.L12
.L15:
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-48(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jg	.L13
	movl	-92(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-120(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, (%rcx)
	addl	$1, -100(%rbp)
	jmp	.L14
.L13:
	movl	-92(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-120(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	-48(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, (%rcx)
	addl	$1, -96(%rbp)
	movl	-88(%rbp), %eax
	cltq
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	addq	%rax, -80(%rbp)
.L14:
	addl	$1, -92(%rbp)
.L12:
	movl	-92(%rbp), %eax
	cmpl	-132(%rbp), %eax
	jl	.L15
	movq	-80(%rbp), %rax
	movq	%rsi, %rsp
	movq	-40(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leaq	-32(%rbp), %rsp
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Merge, .-Merge
	.globl	Merge_Sort
	.type	Merge_Sort, @function
Merge_Sort:
.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)
	movq	$0, -8(%rbp)
	movl	-28(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -32(%rbp)
	jle	.L19
	movl	-28(%rbp), %edx
	movl	-32(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %edx
	movl	-28(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	Merge_Sort
	addq	%rax, -8(%rbp)
	movl	-32(%rbp), %edx
	movl	-12(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	Merge_Sort
	addq	%rax, -8(%rbp)
	movl	-32(%rbp), %ecx
	movl	-12(%rbp), %edx
	movl	-28(%rbp), %esi
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	Merge
	addq	%rax, -8(%rbp)
.L19:
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Merge_Sort, .-Merge_Sort
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1312, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-800032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800028(%rbp)
	jmp	.L22
.L23:
	leaq	-800016(%rbp), %rdx
	movl	-800028(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -800028(%rbp)
.L22:
	movl	-800032(%rbp), %eax
	cmpl	%eax, -800028(%rbp)
	jl	.L23
	movl	-800032(%rbp), %edx
	leaq	-800016(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	Merge_Sort
	movq	%rax, -800024(%rbp)
	movq	-800024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	Merge
	.type	Merge, @function
Merge:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movslq	%edx, %r9
	movl	%esi, %r8d
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	.cfi_offset 15, -24
	movq	%rdi, %r15
	pushq	%r14
	.cfi_offset 14, -32
	movl	%ecx, %r14d
	subl	%r9d, %ecx
	pushq	%r13
	.cfi_offset 13, -40
	movl	%r9d, %r13d
	pushq	%r12
	subl	%esi, %r13d
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leal	1(%r13), %eax
	movq	%rsp, %rsi
	cltq
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L27:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L27
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L28
.L4:
	leal	1(%rcx), %eax
	movq	%rsp, %rsi
	movq	%rsp, %rbx
	cltq
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L6
.L29:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L29
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L30
.L7:
	movq	%rsp, %r12
	testl	%r13d, %r13d
	jle	.L31
	movslq	%r8d, %rax
	movslq	%r13d, %r13
	movq	%rbx, %rdi
	movl	%r9d, -80(%rbp)
	leaq	0(,%r13,4), %rdx
	leaq	(%r15,%rax,4), %rsi
	movl	%ecx, -76(%rbp)
	movl	%r8d, -72(%rbp)
	call	memcpy@PLT
	movl	-72(%rbp), %r8d
	movl	-76(%rbp), %ecx
	movslq	-80(%rbp), %r9
.L11:
	testl	%ecx, %ecx
	jle	.L32
	movslq	%ecx, %rcx
	leaq	(%r15,%r9,4), %rsi
	movq	%r12, %rdi
	movl	%r8d, -76(%rbp)
	leaq	0(,%rcx,4), %rdx
	movq	%rcx, -72(%rbp)
	call	memcpy@PLT
	movq	-72(%rbp), %rcx
	movl	-76(%rbp), %r8d
.L10:
	movl	$1000000001, (%rbx,%r13,4)
	xorl	%r10d, %r10d
	movl	$1000000001, (%r12,%rcx,4)
	cmpl	%r14d, %r8d
	jge	.L1
	subl	$1, %r14d
	movslq	%r8d, %rdx
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	subl	%r8d, %r14d
	leaq	(%r15,%rdx,4), %rax
	xorl	%r8d, %r8d
	xorl	%esi, %esi
	addq	%rdx, %r14
	xorl	%edi, %edi
	leaq	4(%r15,%r14,4), %r11
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%rbx,%rsi,4), %ecx
	movl	(%r12,%rdi,4), %edx
	cmpl	%edx, %ecx
	jg	.L14
.L33:
	movl	%ecx, (%rax)
	addq	$4, %rax
	addl	$1, %r8d
	cmpq	%rax, %r11
	je	.L1
	movslq	%r8d, %rsi
	movl	(%r12,%rdi,4), %edx
	movl	(%rbx,%rsi,4), %ecx
	cmpl	%edx, %ecx
	jle	.L33
.L14:
	movq	%r13, %rcx
	movl	%edx, (%rax)
	addq	$4, %rax
	addl	$1, %r9d
	subq	%rsi, %rcx
	addq	%rcx, %r10
	cmpq	%rax, %r11
	je	.L1
	movslq	%r9d, %rdi
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L28:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L1:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L34
	leaq	-40(%rbp), %rsp
	movq	%r10, %rax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	movslq	%ecx, %rcx
	jmp	.L10
.L30:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L31:
	movslq	%r13d, %r13
	jmp	.L11
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	Merge, .-Merge
	.p2align 4
	.type	Merge_Sort.part.0, @function
Merge_Sort.part.0:
.LFB26:
	.cfi_startproc
	leal	(%rsi,%rdx), %eax
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%edx, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%eax, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	shrl	$31, %r12d
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	addl	%eax, %r12d
	leal	1(%rsi), %eax
	xorl	%ebx, %ebx
	sarl	%r12d
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	cmpl	%eax, %r12d
	jg	.L58
	leal	1(%r12), %eax
	cmpl	%eax, %r13d
	jg	.L59
.L43:
	movl	%r13d, %ecx
	movl	%r12d, %edx
	movl	%ebp, %esi
	movq	%r14, %rdi
	call	Merge
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	addq	%rbx, %rax
	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
.L58:
	.cfi_restore_state
	leal	(%rsi,%r12), %edx
	movl	%edx, %r15d
	shrl	$31, %r15d
	addl	%edx, %r15d
	sarl	%r15d
	cmpl	%r15d, %eax
	jl	.L60
	leal	1(%r15), %eax
	cmpl	%eax, %r12d
	jg	.L61
.L40:
	movl	%r12d, %ecx
	movl	%r15d, %edx
	movl	%ebp, %esi
	movq	%r14, %rdi
	call	Merge
	addq	%rax, %rbx
	leal	1(%r12), %eax
	cmpl	%eax, %r13d
	jle	.L43
.L59:
	leal	0(%r13,%r12), %edx
	xorl	%r15d, %r15d
	movl	%edx, %r8d
	shrl	$31, %r8d
	addl	%edx, %r8d
	sarl	%r8d
	cmpl	%r8d, %eax
	jl	.L62
.L44:
	leal	1(%r8), %eax
	cmpl	%eax, %r13d
	jg	.L63
.L47:
	movl	%r13d, %ecx
	movl	%r8d, %edx
	movl	%r12d, %esi
	movq	%r14, %rdi
	call	Merge
	addq	%rax, %r15
	addq	%r15, %rbx
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L60:
	leal	(%rsi,%r15), %edx
	xorl	%r8d, %r8d
	movl	%edx, %ebx
	shrl	$31, %ebx
	addl	%edx, %ebx
	sarl	%ebx
	cmpl	%ebx, %eax
	jl	.L64
.L38:
	leal	1(%rbx), %eax
	cmpl	%eax, %r15d
	jg	.L65
.L39:
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%ebp, %esi
	movq	%r14, %rdi
	movq	%r8, 8(%rsp)
	call	Merge
	movq	8(%rsp), %r8
	leaq	(%rax,%r8), %rbx
	leal	1(%r15), %eax
	cmpl	%eax, %r12d
	jle	.L40
.L61:
	leal	(%r12,%r15), %edx
	xorl	%r9d, %r9d
	movl	%edx, %r8d
	shrl	$31, %r8d
	addl	%edx, %r8d
	sarl	%r8d
	cmpl	%r8d, %eax
	jl	.L66
.L41:
	leal	1(%r8), %eax
	cmpl	%eax, %r12d
	jg	.L67
.L42:
	movl	%r12d, %ecx
	movl	%r8d, %edx
	movl	%r15d, %esi
	movq	%r14, %rdi
	movq	%r9, 8(%rsp)
	call	Merge
	movq	8(%rsp), %r9
	addq	%r9, %rax
	addq	%rax, %rbx
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L63:
	leal	0(%r13,%r8), %edx
	xorl	%r10d, %r10d
	movl	%edx, %r9d
	shrl	$31, %r9d
	addl	%edx, %r9d
	sarl	%r9d
	cmpl	%r9d, %eax
	jl	.L68
.L48:
	leal	1(%r9), %eax
	cmpl	%eax, %r13d
	jg	.L69
.L49:
	movl	%r8d, %esi
	movl	%r13d, %ecx
	movl	%r9d, %edx
	movq	%r14, %rdi
	movq	%r10, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	Merge
	movq	16(%rsp), %r10
	movl	8(%rsp), %r8d
	addq	%r10, %rax
	addq	%rax, %r15
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L62:
	leal	(%r12,%r8), %edx
	xorl	%r9d, %r9d
	movl	%edx, %r15d
	shrl	$31, %r15d
	addl	%edx, %r15d
	sarl	%r15d
	cmpl	%r15d, %eax
	jl	.L70
.L45:
	leal	1(%r15), %eax
	cmpl	%eax, %r8d
	jg	.L71
.L46:
	movl	%r8d, %ecx
	movl	%r15d, %edx
	movl	%r12d, %esi
	movq	%r14, %rdi
	movq	%r9, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	Merge
	movq	16(%rsp), %r9
	movl	8(%rsp), %r8d
	leaq	(%rax,%r9), %r15
	jmp	.L44
	.p2align 4,,10
	.p2align 3
.L64:
	movl	%ebx, %edx
	call	Merge_Sort.part.0
	movq	%rax, %r8
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L67:
	movl	%r8d, %esi
	movl	%r12d, %edx
	movq	%r14, %rdi
	movq	%r9, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	Merge_Sort.part.0
	movq	16(%rsp), %r9
	movl	8(%rsp), %r8d
	addq	%rax, %r9
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L66:
	movl	%r8d, %edx
	movl	%r15d, %esi
	movq	%r14, %rdi
	movl	%r8d, 8(%rsp)
	call	Merge_Sort.part.0
	movl	8(%rsp), %r8d
	movq	%rax, %r9
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L71:
	movl	%r8d, %edx
	movl	%r15d, %esi
	movq	%r14, %rdi
	movq	%r9, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	Merge_Sort.part.0
	movq	16(%rsp), %r9
	movl	8(%rsp), %r8d
	addq	%rax, %r9
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L70:
	movl	%r15d, %edx
	movl	%r12d, %esi
	movq	%r14, %rdi
	movl	%r8d, 8(%rsp)
	call	Merge_Sort.part.0
	movl	8(%rsp), %r8d
	movq	%rax, %r9
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L69:
	movl	%r9d, %esi
	movl	%r13d, %edx
	movq	%r14, %rdi
	movl	%r8d, 28(%rsp)
	movq	%r10, 16(%rsp)
	movl	%r9d, 8(%rsp)
	call	Merge_Sort.part.0
	movq	16(%rsp), %r10
	movl	28(%rsp), %r8d
	movl	8(%rsp), %r9d
	addq	%rax, %r10
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L68:
	movl	%r9d, %edx
	movl	%r8d, %esi
	movq	%r14, %rdi
	movl	%r9d, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	Merge_Sort.part.0
	movl	16(%rsp), %r9d
	movl	8(%rsp), %r8d
	movq	%rax, %r10
	jmp	.L48
	.p2align 4,,10
	.p2align 3
.L65:
	movl	%r15d, %edx
	movl	%ebx, %esi
	movq	%r14, %rdi
	movq	%r8, 8(%rsp)
	call	Merge_Sort.part.0
	movq	8(%rsp), %r8
	addq	%rax, %r8
	jmp	.L39
	.cfi_endproc
.LFE26:
	.size	Merge_Sort.part.0, .-Merge_Sort.part.0
	.p2align 4
	.globl	Merge_Sort
	.type	Merge_Sort, @function
Merge_Sort:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	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
	movl	%edx, %r12d
	leal	1(%rsi), %edx
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	%r12d, %edx
	jl	.L86
	addq	$24, %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
	.p2align 4,,10
	.p2align 3
.L86:
	.cfi_restore_state
	leal	(%rsi,%r12), %eax
	movq	%rdi, %r14
	movl	%esi, %ebp
	xorl	%ebx, %ebx
	movl	%eax, %r13d
	shrl	$31, %r13d
	addl	%eax, %r13d
	sarl	%r13d
	cmpl	%r13d, %edx
	jl	.L87
	leal	1(%r13), %eax
	cmpl	%eax, %r12d
	jg	.L88
.L77:
	movl	%r12d, %ecx
	movl	%r13d, %edx
	movl	%ebp, %esi
	movq	%r14, %rdi
	call	Merge
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	addq	%rbx, %rax
	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
.L87:
	.cfi_restore_state
	leal	(%rsi,%r13), %eax
	movl	%eax, %r15d
	shrl	$31, %r15d
	addl	%eax, %r15d
	sarl	%r15d
	cmpl	%r15d, %edx
	jl	.L89
.L75:
	leal	1(%r15), %eax
	cmpl	%eax, %r13d
	jg	.L90
.L76:
	movl	%r13d, %ecx
	movl	%r15d, %edx
	movl	%ebp, %esi
	movq	%r14, %rdi
	call	Merge
	addq	%rax, %rbx
	leal	1(%r13), %eax
	cmpl	%eax, %r12d
	jle	.L77
.L88:
	leal	(%r12,%r13), %edx
	xorl	%r8d, %r8d
	movl	%edx, %r15d
	shrl	$31, %r15d
	addl	%edx, %r15d
	sarl	%r15d
	cmpl	%r15d, %eax
	jl	.L91
.L78:
	leal	1(%r15), %eax
	cmpl	%eax, %r12d
	jg	.L92
.L79:
	movl	%r12d, %ecx
	movl	%r15d, %edx
	movl	%r13d, %esi
	movq	%r14, %rdi
	movq	%r8, 8(%rsp)
	call	Merge
	movq	8(%rsp), %r8
	addq	%r8, %rax
	addq	%rax, %rbx
	jmp	.L77
	.p2align 4,,10
	.p2align 3
.L89:
	movl	%r15d, %edx
	call	Merge_Sort.part.0
	movq	%rax, %rbx
	jmp	.L75
	.p2align 4,,10
	.p2align 3
.L92:
	movl	%r12d, %edx
	movl	%r15d, %esi
	movq	%r14, %rdi
	movq	%r8, 8(%rsp)
	call	Merge_Sort.part.0
	movq	8(%rsp), %r8
	addq	%rax, %r8
	jmp	.L79
	.p2align 4,,10
	.p2align 3
.L91:
	movl	%r15d, %edx
	movl	%r13d, %esi
	movq	%r14, %rdi
	call	Merge_Sort.part.0
	movq	%rax, %r8
	jmp	.L78
	.p2align 4,,10
	.p2align 3
.L90:
	movl	%r13d, %edx
	movl	%r15d, %esi
	movq	%r14, %rdi
	call	Merge_Sort.part.0
	addq	%rax, %rbx
	jmp	.L76
	.cfi_endproc
.LFE24:
	.size	Merge_Sort, .-Merge_Sort
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798760
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1320, %rsp
	.cfi_def_cfa_offset 800080
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 800024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L97
	leaq	16(%rsp), %r13
	xorl	%ebx, %ebx
	movq	%r13, %rbp
	.p2align 4,,10
	.p2align 3
.L95:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	addq	$4, %rbp
	cmpl	%ebx, %edx
	jg	.L95
	xorl	%r8d, %r8d
	cmpl	$1, %edx
	jle	.L94
	xorl	%esi, %esi
	movq	%r13, %rdi
	call	Merge_Sort.part.0
	movq	%rax, %r8
.L94:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	800024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L101
	addq	$800040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	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
.L97:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L94
.L101:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.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	Merge
	.type	Merge, @function
Merge:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movslq	%edx, %r9
	movl	%esi, %r8d
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	.cfi_offset 15, -24
	movq	%rdi, %r15
	pushq	%r14
	.cfi_offset 14, -32
	movl	%ecx, %r14d
	subl	%r9d, %ecx
	pushq	%r13
	.cfi_offset 13, -40
	movl	%r9d, %r13d
	pushq	%r12
	subl	%esi, %r13d
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leal	1(%r13), %eax
	movq	%rsp, %rsi
	cltq
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L27:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L27
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L28
.L4:
	leal	1(%rcx), %eax
	movq	%rsp, %rsi
	movq	%rsp, %rbx
	cltq
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L6
.L29:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L29
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L30
.L7:
	movq	%rsp, %r12
	testl	%r13d, %r13d
	jle	.L31
	movslq	%r8d, %rax
	movslq	%r13d, %r13
	movq	%rbx, %rdi
	movl	%r9d, -80(%rbp)
	leaq	0(,%r13,4), %rdx
	leaq	(%r15,%rax,4), %rsi
	movl	%ecx, -76(%rbp)
	movl	%r8d, -72(%rbp)
	call	memcpy@PLT
	movl	-72(%rbp), %r8d
	movl	-76(%rbp), %ecx
	movslq	-80(%rbp), %r9
.L11:
	testl	%ecx, %ecx
	jle	.L32
	movslq	%ecx, %rcx
	leaq	(%r15,%r9,4), %rsi
	movq	%r12, %rdi
	movl	%r8d, -76(%rbp)
	leaq	0(,%rcx,4), %rdx
	movq	%rcx, -72(%rbp)
	call	memcpy@PLT
	movq	-72(%rbp), %rcx
	movl	-76(%rbp), %r8d
.L10:
	movl	$1000000001, (%rbx,%r13,4)
	xorl	%r10d, %r10d
	movl	$1000000001, (%r12,%rcx,4)
	cmpl	%r14d, %r8d
	jge	.L1
	subl	$1, %r14d
	movslq	%r8d, %rdx
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	subl	%r8d, %r14d
	leaq	(%r15,%rdx,4), %rax
	xorl	%r8d, %r8d
	xorl	%esi, %esi
	addq	%rdx, %r14
	xorl	%edi, %edi
	leaq	4(%r15,%r14,4), %r11
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%rbx,%rsi,4), %ecx
	movl	(%r12,%rdi,4), %edx
	cmpl	%edx, %ecx
	jg	.L14
.L33:
	movl	%ecx, (%rax)
	addq	$4, %rax
	addl	$1, %r8d
	cmpq	%rax, %r11
	je	.L1
	movslq	%r8d, %rsi
	movl	(%r12,%rdi,4), %edx
	movl	(%rbx,%rsi,4), %ecx
	cmpl	%edx, %ecx
	jle	.L33
.L14:
	movq	%r13, %rcx
	movl	%edx, (%rax)
	addq	$4, %rax
	addl	$1, %r9d
	subq	%rsi, %rcx
	addq	%rcx, %r10
	cmpq	%rax, %r11
	je	.L1
	movslq	%r9d, %rdi
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L28:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L1:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L34
	leaq	-40(%rbp), %rsp
	movq	%r10, %rax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	movslq	%ecx, %rcx
	jmp	.L10
.L30:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L31:
	movslq	%r13d, %r13
	jmp	.L11
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	Merge, .-Merge
	.p2align 4
	.type	Merge_Sort.part.0, @function
Merge_Sort.part.0:
.LFB26:
	.cfi_startproc
	leal	(%rsi,%rdx), %eax
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%edx, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%eax, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	shrl	$31, %r12d
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	addl	%eax, %r12d
	leal	1(%rsi), %eax
	xorl	%ebx, %ebx
	sarl	%r12d
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	cmpl	%eax, %r12d
	jg	.L58
	leal	1(%r12), %eax
	cmpl	%eax, %r13d
	jg	.L59
.L43:
	movl	%r13d, %ecx
	movl	%r12d, %edx
	movl	%ebp, %esi
	movq	%r14, %rdi
	call	Merge
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	addq	%rbx, %rax
	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
.L58:
	.cfi_restore_state
	leal	(%rsi,%r12), %edx
	movl	%edx, %r15d
	shrl	$31, %r15d
	addl	%edx, %r15d
	sarl	%r15d
	cmpl	%r15d, %eax
	jl	.L60
	leal	1(%r15), %eax
	cmpl	%eax, %r12d
	jg	.L61
.L40:
	movl	%r12d, %ecx
	movl	%r15d, %edx
	movl	%ebp, %esi
	movq	%r14, %rdi
	call	Merge
	addq	%rax, %rbx
	leal	1(%r12), %eax
	cmpl	%eax, %r13d
	jle	.L43
.L59:
	leal	0(%r13,%r12), %edx
	xorl	%r15d, %r15d
	movl	%edx, %r8d
	shrl	$31, %r8d
	addl	%edx, %r8d
	sarl	%r8d
	cmpl	%r8d, %eax
	jl	.L62
.L44:
	leal	1(%r8), %eax
	cmpl	%eax, %r13d
	jg	.L63
.L47:
	movl	%r13d, %ecx
	movl	%r8d, %edx
	movl	%r12d, %esi
	movq	%r14, %rdi
	call	Merge
	addq	%rax, %r15
	addq	%r15, %rbx
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L60:
	leal	(%rsi,%r15), %edx
	xorl	%r8d, %r8d
	movl	%edx, %ebx
	shrl	$31, %ebx
	addl	%edx, %ebx
	sarl	%ebx
	cmpl	%ebx, %eax
	jl	.L64
.L38:
	leal	1(%rbx), %eax
	cmpl	%eax, %r15d
	jg	.L65
.L39:
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%ebp, %esi
	movq	%r14, %rdi
	movq	%r8, 8(%rsp)
	call	Merge
	movq	8(%rsp), %r8
	leaq	(%rax,%r8), %rbx
	leal	1(%r15), %eax
	cmpl	%eax, %r12d
	jle	.L40
.L61:
	leal	(%r12,%r15), %edx
	xorl	%r9d, %r9d
	movl	%edx, %r8d
	shrl	$31, %r8d
	addl	%edx, %r8d
	sarl	%r8d
	cmpl	%r8d, %eax
	jl	.L66
.L41:
	leal	1(%r8), %eax
	cmpl	%eax, %r12d
	jg	.L67
.L42:
	movl	%r12d, %ecx
	movl	%r8d, %edx
	movl	%r15d, %esi
	movq	%r14, %rdi
	movq	%r9, 8(%rsp)
	call	Merge
	movq	8(%rsp), %r9
	addq	%r9, %rax
	addq	%rax, %rbx
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L63:
	leal	0(%r13,%r8), %edx
	xorl	%r10d, %r10d
	movl	%edx, %r9d
	shrl	$31, %r9d
	addl	%edx, %r9d
	sarl	%r9d
	cmpl	%r9d, %eax
	jl	.L68
.L48:
	leal	1(%r9), %eax
	cmpl	%eax, %r13d
	jg	.L69
.L49:
	movl	%r8d, %esi
	movl	%r13d, %ecx
	movl	%r9d, %edx
	movq	%r14, %rdi
	movq	%r10, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	Merge
	movq	16(%rsp), %r10
	movl	8(%rsp), %r8d
	addq	%r10, %rax
	addq	%rax, %r15
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L62:
	leal	(%r12,%r8), %edx
	xorl	%r9d, %r9d
	movl	%edx, %r15d
	shrl	$31, %r15d
	addl	%edx, %r15d
	sarl	%r15d
	cmpl	%r15d, %eax
	jl	.L70
.L45:
	leal	1(%r15), %eax
	cmpl	%eax, %r8d
	jg	.L71
.L46:
	movl	%r8d, %ecx
	movl	%r15d, %edx
	movl	%r12d, %esi
	movq	%r14, %rdi
	movq	%r9, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	Merge
	movq	16(%rsp), %r9
	movl	8(%rsp), %r8d
	leaq	(%rax,%r9), %r15
	jmp	.L44
	.p2align 4,,10
	.p2align 3
.L64:
	movl	%ebx, %edx
	call	Merge_Sort.part.0
	movq	%rax, %r8
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L67:
	movl	%r8d, %esi
	movl	%r12d, %edx
	movq	%r14, %rdi
	movq	%r9, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	Merge_Sort.part.0
	movq	16(%rsp), %r9
	movl	8(%rsp), %r8d
	addq	%rax, %r9
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L66:
	movl	%r8d, %edx
	movl	%r15d, %esi
	movq	%r14, %rdi
	movl	%r8d, 8(%rsp)
	call	Merge_Sort.part.0
	movl	8(%rsp), %r8d
	movq	%rax, %r9
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L71:
	movl	%r8d, %edx
	movl	%r15d, %esi
	movq	%r14, %rdi
	movq	%r9, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	Merge_Sort.part.0
	movq	16(%rsp), %r9
	movl	8(%rsp), %r8d
	addq	%rax, %r9
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L70:
	movl	%r15d, %edx
	movl	%r12d, %esi
	movq	%r14, %rdi
	movl	%r8d, 8(%rsp)
	call	Merge_Sort.part.0
	movl	8(%rsp), %r8d
	movq	%rax, %r9
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L69:
	movl	%r9d, %esi
	movl	%r13d, %edx
	movq	%r14, %rdi
	movl	%r8d, 28(%rsp)
	movq	%r10, 16(%rsp)
	movl	%r9d, 8(%rsp)
	call	Merge_Sort.part.0
	movq	16(%rsp), %r10
	movl	28(%rsp), %r8d
	movl	8(%rsp), %r9d
	addq	%rax, %r10
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L68:
	movl	%r9d, %edx
	movl	%r8d, %esi
	movq	%r14, %rdi
	movl	%r9d, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	Merge_Sort.part.0
	movl	16(%rsp), %r9d
	movl	8(%rsp), %r8d
	movq	%rax, %r10
	jmp	.L48
	.p2align 4,,10
	.p2align 3
.L65:
	movl	%r15d, %edx
	movl	%ebx, %esi
	movq	%r14, %rdi
	movq	%r8, 8(%rsp)
	call	Merge_Sort.part.0
	movq	8(%rsp), %r8
	addq	%rax, %r8
	jmp	.L39
	.cfi_endproc
.LFE26:
	.size	Merge_Sort.part.0, .-Merge_Sort.part.0
	.p2align 4
	.globl	Merge_Sort
	.type	Merge_Sort, @function
Merge_Sort:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	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
	movl	%edx, %r12d
	leal	1(%rsi), %edx
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	%r12d, %edx
	jl	.L86
	addq	$24, %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
	.p2align 4,,10
	.p2align 3
.L86:
	.cfi_restore_state
	leal	(%rsi,%r12), %eax
	movq	%rdi, %r14
	movl	%esi, %ebp
	xorl	%ebx, %ebx
	movl	%eax, %r13d
	shrl	$31, %r13d
	addl	%eax, %r13d
	sarl	%r13d
	cmpl	%r13d, %edx
	jl	.L87
	leal	1(%r13), %eax
	cmpl	%eax, %r12d
	jg	.L88
.L77:
	movl	%r12d, %ecx
	movl	%r13d, %edx
	movl	%ebp, %esi
	movq	%r14, %rdi
	call	Merge
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	addq	%rbx, %rax
	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
.L87:
	.cfi_restore_state
	leal	(%rsi,%r13), %eax
	movl	%eax, %r15d
	shrl	$31, %r15d
	addl	%eax, %r15d
	sarl	%r15d
	cmpl	%r15d, %edx
	jl	.L89
.L75:
	leal	1(%r15), %eax
	cmpl	%eax, %r13d
	jg	.L90
.L76:
	movl	%r13d, %ecx
	movl	%r15d, %edx
	movl	%ebp, %esi
	movq	%r14, %rdi
	call	Merge
	addq	%rax, %rbx
	leal	1(%r13), %eax
	cmpl	%eax, %r12d
	jle	.L77
.L88:
	leal	(%r12,%r13), %edx
	xorl	%r8d, %r8d
	movl	%edx, %r15d
	shrl	$31, %r15d
	addl	%edx, %r15d
	sarl	%r15d
	cmpl	%r15d, %eax
	jl	.L91
.L78:
	leal	1(%r15), %eax
	cmpl	%eax, %r12d
	jg	.L92
.L79:
	movl	%r12d, %ecx
	movl	%r15d, %edx
	movl	%r13d, %esi
	movq	%r14, %rdi
	movq	%r8, 8(%rsp)
	call	Merge
	movq	8(%rsp), %r8
	addq	%r8, %rax
	addq	%rax, %rbx
	jmp	.L77
	.p2align 4,,10
	.p2align 3
.L89:
	movl	%r15d, %edx
	call	Merge_Sort.part.0
	movq	%rax, %rbx
	jmp	.L75
	.p2align 4,,10
	.p2align 3
.L92:
	movl	%r12d, %edx
	movl	%r15d, %esi
	movq	%r14, %rdi
	movq	%r8, 8(%rsp)
	call	Merge_Sort.part.0
	movq	8(%rsp), %r8
	addq	%rax, %r8
	jmp	.L79
	.p2align 4,,10
	.p2align 3
.L91:
	movl	%r15d, %edx
	movl	%r13d, %esi
	movq	%r14, %rdi
	call	Merge_Sort.part.0
	movq	%rax, %r8
	jmp	.L78
	.p2align 4,,10
	.p2align 3
.L90:
	movl	%r13d, %edx
	movl	%r15d, %esi
	movq	%r14, %rdi
	call	Merge_Sort.part.0
	addq	%rax, %rbx
	jmp	.L76
	.cfi_endproc
.LFE24:
	.size	Merge_Sort, .-Merge_Sort
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798760
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1320, %rsp
	.cfi_def_cfa_offset 800080
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 800024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L97
	leaq	16(%rsp), %r13
	xorl	%ebx, %ebx
	movq	%r13, %rbp
	.p2align 4,,10
	.p2align 3
.L95:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	addq	$4, %rbp
	cmpl	%ebx, %edx
	jg	.L95
	xorl	%r8d, %r8d
	cmpl	$1, %edx
	jle	.L94
	xorl	%esi, %esi
	movq	%r13, %rdi
	call	Merge_Sort.part.0
	movq	%rax, %r8
.L94:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	800024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L101
	addq	$800040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	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
.L97:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L94
.L101:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.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>

long long Merge(int A[],int left,int mid,int right){
  int n1 = mid - left;
  int n2 = right - mid;
  int i,j,k;
  int L[n1+1],R[n2+1];
  long long res = 0;
  for (i = 0;i<n1;i++)L[i]=A[left+i];
  for (i = 0;i<n2;i++)R[i]=A[mid+i];
  L[n1]=1000000001;
  R[n2]=1000000001;

  i=j=0;
  for(k = left;k<right;k++)
    {
      if(L[i]<=R[j]){
        A[k]=L[i];
        i++;
        }
      else{
        A[k]=R[j];
        j++;
          res+=(long long)n1-(long long)i;
      }
    }
  return res;
}



long long Merge_Sort(int A[],int left,int right)
{
  int mid;
  long long res = 0;
  if(left + 1 < right){
    mid = (left + right)/2;

    res+=Merge_Sort(A,left,mid);
    res+=Merge_Sort(A,mid,right);
    res+=Merge(A,left,mid,right);
  }
  return res;
}
int  main(void)
{
  int i,n,S[200000];
  long long x;
  scanf("%d",&n);
  for (i = 0;i<n;i++)scanf("%d",&S[i]);
  x = Merge_Sort(S,0,n);
  printf("%ld\n",x);
  return 0;
}
3
6 1 2
 5
3 10 2 1 4
 3
6 1 0
 5
3 10 1 1 4
 3
0 -1 1
 5
1 6 1 0 0
 3
-2 -2 -2
 5
0 -13 17 1 0
 5
2 0 -1 -2 -1
 5
4 1 0 0 -1

2
 6
 3
 5
 1
 7
 0
 4
 8
 9

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>

long long Merge(int A[],int left,int mid,int right){
  int n1 = mid - left;
  int n2 = right - mid;
  int i,j,k;
  int L[n1+1],R[n2+1];
  long long res = 0;
  for (i = 0;i<n1;i++)L[i]=A[left+i];
  for (i = 0;i<n2;i++)R[i]=A[mid+i];
  L[n1]=1000000001;
  R[n2]=1000000001;

  i=j=0;
  for(k = left;k<right;k++)
    {
      if(L[i]<=R[j]){
        A[k]=L[i];
        i++;
        }
      else{
        A[k]=R[j];
        j++;
          res+=(long long)n1-(long long)i;
      }
    }
  return res;
}



long long Merge_Sort(int A[],int left,int right)
{
  int mid;
  long long res = 0;
  if(left + 1 < right){
    mid = (left + right)/2;

    res+=Merge_Sort(A,left,mid);
    res+=Merge_Sort(A,mid,right);
    res+=Merge(A,left,mid,right);
  }
  return res;
}
int  main(void)
{
  int i,n,S[200000];
  long long x;
  scanf("%d",&n);
  for (i = 0;i<n;i++)scanf("%d",&S[i]);
  x = Merge_Sort(S,0,n);
  printf("%ld\n",x);
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	Merge
	.type	Merge, @function
Merge:
.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
	subq	$112, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	movq	%rdi, -120(%rbp)
	movl	%esi, -124(%rbp)
	movl	%edx, -128(%rbp)
	movl	%ecx, -132(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rsi
	movl	-128(%rbp), %eax
	subl	-124(%rbp), %eax
	movl	%eax, -88(%rbp)
	movl	-132(%rbp), %eax
	subl	-128(%rbp), %eax
	movl	%eax, -84(%rbp)
	movl	-88(%rbp), %eax
	addl	$1, %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,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	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	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	-84(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -56(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r10
	movl	$0, %r11d
	movslq	%eax, %rdx
	movq	%rdx, %r8
	movl	$0, %r9d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -48(%rbp)
	movq	$0, -80(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L8
.L9:
	movl	-124(%rbp), %edx
	movl	-100(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -100(%rbp)
.L8:
	movl	-100(%rbp), %eax
	cmpl	-88(%rbp), %eax
	jl	.L9
	movl	$0, -100(%rbp)
	jmp	.L10
.L11:
	movl	-128(%rbp), %edx
	movl	-100(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -100(%rbp)
.L10:
	movl	-100(%rbp), %eax
	cmpl	-84(%rbp), %eax
	jl	.L11
	movq	-64(%rbp), %rax
	movl	-88(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1000000001, (%rax,%rdx,4)
	movq	-48(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1000000001, (%rax,%rdx,4)
	movl	$0, -96(%rbp)
	movl	-96(%rbp), %eax
	movl	%eax, -100(%rbp)
	movl	-124(%rbp), %eax
	movl	%eax, -92(%rbp)
	jmp	.L12
.L15:
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-48(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jg	.L13
	movl	-92(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-120(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, (%rcx)
	addl	$1, -100(%rbp)
	jmp	.L14
.L13:
	movl	-92(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-120(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	-48(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, (%rcx)
	addl	$1, -96(%rbp)
	movl	-88(%rbp), %eax
	cltq
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	addq	%rax, -80(%rbp)
.L14:
	addl	$1, -92(%rbp)
.L12:
	movl	-92(%rbp), %eax
	cmpl	-132(%rbp), %eax
	jl	.L15
	movq	-80(%rbp), %rax
	movq	%rsi, %rsp
	movq	-40(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leaq	-32(%rbp), %rsp
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Merge, .-Merge
	.globl	Merge_Sort
	.type	Merge_Sort, @function
Merge_Sort:
.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)
	movq	$0, -8(%rbp)
	movl	-28(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -32(%rbp)
	jle	.L19
	movl	-28(%rbp), %edx
	movl	-32(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %edx
	movl	-28(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	Merge_Sort
	addq	%rax, -8(%rbp)
	movl	-32(%rbp), %edx
	movl	-12(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	Merge_Sort
	addq	%rax, -8(%rbp)
	movl	-32(%rbp), %ecx
	movl	-12(%rbp), %edx
	movl	-28(%rbp), %esi
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	Merge
	addq	%rax, -8(%rbp)
.L19:
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Merge_Sort, .-Merge_Sort
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1312, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-800032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800028(%rbp)
	jmp	.L22
.L23:
	leaq	-800016(%rbp), %rdx
	movl	-800028(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -800028(%rbp)
.L22:
	movl	-800032(%rbp), %eax
	cmpl	%eax, -800028(%rbp)
	jl	.L23
	movl	-800032(%rbp), %edx
	leaq	-800016(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	Merge_Sort
	movq	%rax, -800024(%rbp)
	movq	-800024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	Merge
	.type	Merge, @function
Merge:
.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
	subq	$112, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	movq	%rdi, -120(%rbp)
	movl	%esi, -124(%rbp)
	movl	%edx, -128(%rbp)
	movl	%ecx, -132(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rsi
	movl	-128(%rbp), %eax
	subl	-124(%rbp), %eax
	movl	%eax, -88(%rbp)
	movl	-132(%rbp), %eax
	subl	-128(%rbp), %eax
	movl	%eax, -84(%rbp)
	movl	-88(%rbp), %eax
	addl	$1, %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,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	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	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	-84(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -56(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r10
	movl	$0, %r11d
	movslq	%eax, %rdx
	movq	%rdx, %r8
	movl	$0, %r9d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -48(%rbp)
	movq	$0, -80(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L8
.L9:
	movl	-124(%rbp), %edx
	movl	-100(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -100(%rbp)
.L8:
	movl	-100(%rbp), %eax
	cmpl	-88(%rbp), %eax
	jl	.L9
	movl	$0, -100(%rbp)
	jmp	.L10
.L11:
	movl	-128(%rbp), %edx
	movl	-100(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -100(%rbp)
.L10:
	movl	-100(%rbp), %eax
	cmpl	-84(%rbp), %eax
	jl	.L11
	movq	-64(%rbp), %rax
	movl	-88(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1000000001, (%rax,%rdx,4)
	movq	-48(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1000000001, (%rax,%rdx,4)
	movl	$0, -96(%rbp)
	movl	-96(%rbp), %eax
	movl	%eax, -100(%rbp)
	movl	-124(%rbp), %eax
	movl	%eax, -92(%rbp)
	jmp	.L12
.L15:
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-48(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jg	.L13
	movl	-92(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-120(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, (%rcx)
	addl	$1, -100(%rbp)
	jmp	.L14
.L13:
	movl	-92(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-120(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	-48(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, (%rcx)
	addl	$1, -96(%rbp)
	movl	-88(%rbp), %eax
	cltq
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	addq	%rax, -80(%rbp)
.L14:
	addl	$1, -92(%rbp)
.L12:
	movl	-92(%rbp), %eax
	cmpl	-132(%rbp), %eax
	jl	.L15
	movq	-80(%rbp), %rax
	movq	%rsi, %rsp
	movq	-40(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leaq	-32(%rbp), %rsp
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Merge, .-Merge
	.globl	Merge_Sort
	.type	Merge_Sort, @function
Merge_Sort:
.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)
	movq	$0, -8(%rbp)
	movl	-28(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -32(%rbp)
	jle	.L19
	movl	-28(%rbp), %edx
	movl	-32(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %edx
	movl	-28(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	Merge_Sort
	addq	%rax, -8(%rbp)
	movl	-32(%rbp), %edx
	movl	-12(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	Merge_Sort
	addq	%rax, -8(%rbp)
	movl	-32(%rbp), %ecx
	movl	-12(%rbp), %edx
	movl	-28(%rbp), %esi
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	Merge
	addq	%rax, -8(%rbp)
.L19:
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Merge_Sort, .-Merge_Sort
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1312, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-800032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800028(%rbp)
	jmp	.L22
.L23:
	leaq	-800016(%rbp), %rdx
	movl	-800028(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -800028(%rbp)
.L22:
	movl	-800032(%rbp), %eax
	cmpl	%eax, -800028(%rbp)
	jl	.L23
	movl	-800032(%rbp), %edx
	leaq	-800016(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	Merge_Sort
	movq	%rax, -800024(%rbp)
	movq	-800024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
