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>
//aは降順、bは昇順
int c[100002][2];
void merge(int i,int j,int s[][2]){
  if(i!=j){
    merge(i,(i+j)/2,s);
    merge((i+j)/2+1,j,s);
    int a=i,b=(i+j)/2+1;
    int d;
    for(d=i;d<=j;d++){
      if((i+j)/2<a){
        c[d][0]=s[b][0];
        c[d][1]=s[b][1];
        b++;
      }
      else if(j<b){
        c[d][0]=s[a][0];
        c[d][1]=s[a][1];
        a++;
      }
      else if(s[a][1]<s[b][1] || (s[a][1]==s[b][1] && s[a][0]>s[b][0])){
        c[d][0]=s[a][0];
        c[d][1]=s[a][1];
        a++;
      }
      else{
        c[d][0]=s[b][0];
        c[d][1]=s[b][1];
        b++;
      }
    }
    for(d=i;d<=j;d++){
      s[d][0]=c[d][0];
      s[d][1]=c[d][1];
    }
  }
}

int main(){
  int n,m,i,count=0,sum=0,mass;
  scanf("%d%d",&n,&m);
  int a[m+1][2];
  for(i=0;i<m;i++)
    scanf("%d%d",&a[i][0],&a[i][1]);
  merge(0,m-1,a);
  for(i=0;i<m;i++){
    if(i==0){
      mass=a[i][1];
      sum++;
    }
    else if(a[i][1]!=a[i-1][1] && a[i][0]>=mass){
      mass=a[i][1];
      sum++;
    }
  }
  printf("%d\n",sum);
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 800016
c:
	.zero	800016
	.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
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	je	.L12
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movq	-32(%rbp), %rdx
	movl	-20(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	merge
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	leal	1(%rax), %ecx
	movq	-32(%rbp), %rdx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	merge
	movl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L3
.L9:
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -12(%rbp)
	jle	.L4
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -8(%rbp)
	jmp	.L5
.L4:
	movl	-24(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L6
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
	jmp	.L5
.L6:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jl	.L7
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jne	.L8
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L8
.L7:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
	jmp	.L5
.L8:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -8(%rbp)
.L5:
	addl	$1, -4(%rbp)
.L3:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L9
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	c(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	%eax, (%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+c(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	%eax, 4(%rdx)
	addl	$1, -4(%rbp)
.L10:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L11
.L12:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	merge, .-merge
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	$56, %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
	movl	$0, -76(%rbp)
	movl	$0, -84(%rbp)
	leaq	-92(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%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,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
.L14:
	cmpq	%rdx, %rsp
	je	.L15
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L14
.L15:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L16
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L16:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -88(%rbp)
	jmp	.L17
.L18:
	movl	-88(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	4(%rax), %rdx
	movq	-64(%rbp), %rax
	addq	%rax, %rdx
	movl	-88(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-64(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -88(%rbp)
.L17:
	movl	-92(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L18
	movl	-92(%rbp), %eax
	leal	-1(%rax), %ecx
	movq	-64(%rbp), %rax
	movq	%rax, %rdx
	movl	%ecx, %esi
	movl	$0, %edi
	call	merge
	movl	$0, -88(%rbp)
	jmp	.L19
.L22:
	cmpl	$0, -88(%rbp)
	jne	.L20
	movq	-64(%rbp), %rax
	movl	-88(%rbp), %edx
	movslq	%edx, %rdx
	movl	4(%rax,%rdx,8), %eax
	movl	%eax, -80(%rbp)
	addl	$1, -84(%rbp)
	jmp	.L21
.L20:
	movq	-64(%rbp), %rax
	movl	-88(%rbp), %edx
	movslq	%edx, %rdx
	movl	4(%rax,%rdx,8), %ecx
	movl	-88(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	4(%rax,%rdx,8), %eax
	cmpl	%eax, %ecx
	je	.L21
	movq	-64(%rbp), %rax
	movl	-88(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,8), %eax
	cmpl	%eax, -80(%rbp)
	jg	.L21
	movq	-64(%rbp), %rax
	movl	-88(%rbp), %edx
	movslq	%edx, %rdx
	movl	4(%rax,%rdx,8), %eax
	movl	%eax, -80(%rbp)
	addl	$1, -84(%rbp)
.L21:
	addl	$1, -88(%rbp)
.L19:
	movl	-92(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L22
	movl	-84(%rbp), %eax
	movl	%eax, %esi
	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	.L24
	call	__stack_chk_fail@PLT
.L24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.text.unlikely,"ax",@progbits
.LCOLDB0:
	.text
.LHOTB0:
	.p2align 4
	.type	merge.part.0, @function
merge.part.0:
.LFB25:
	.cfi_startproc
	leal	(%rdi,%rsi), %eax
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%eax, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	shrl	$31, %r13d
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	addl	%eax, %r13d
	movq	%rdx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sarl	%r13d
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	%r13d, %edi
	je	.L2
	movl	%r13d, %esi
	call	merge.part.0
.L2:
	leal	1(%r13), %ebx
	cmpl	%ebx, %r12d
	je	.L3
	movq	%rbp, %rdx
	movl	%r12d, %esi
	movl	%ebx, %edi
	call	merge.part.0
.L3:
	cmpl	%r12d, %r14d
	jg	.L1
	movslq	%r14d, %rax
	leaq	c(%rip), %r8
	movl	%r14d, %ecx
	movl	%r14d, %edx
	movq	%rax, 8(%rsp)
	salq	$3, %rax
	leaq	(%r8,%rax), %r9
	movq	%rax, (%rsp)
	movq	%r9, %r10
	movq	%r9, %rax
	.p2align 4,,10
	.p2align 3
.L29:
	cmpl	%edx, %r13d
	jge	.L5
	movslq	%ebx, %rdx
	addl	$1, %ebx
	leaq	0(%rbp,%rdx,8), %rdx
	movl	(%rdx), %esi
	movl	%esi, (%rax)
	movl	4(%rdx), %edx
	movl	%edx, 4(%rax)
	leal	1(%rcx), %eax
	cmpl	%eax, %r12d
	jl	.L7
	movslq	%eax, %r11
	movslq	%ebx, %rbx
	leaq	0(,%r11,8), %rdx
	leaq	0(%rbp,%rbx,8), %rdi
	leaq	(%r8,%rdx), %r13
	leaq	16(%r8,%rdx), %rdx
	leaq	16(,%rbx,8), %rsi
	cmpq	%rdx, %rdi
	jnb	.L27
	addq	%rbp, %rsi
	cmpq	%rsi, %r13
	jb	.L43
.L27:
	movl	%r12d, %edx
	subl	%ecx, %edx
	cmpl	%eax, %r12d
	movl	$1, %ecx
	cmovl	%ecx, %edx
	je	.L31
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	%edx, %rsi
	leaq	0(%rbp,%rsi,8), %rsi
	cmpl	%ebx, %r12d
	jge	.L8
	movl	(%rsi), %edi
	addl	$1, %edx
	movl	%edi, (%rax)
	movl	4(%rsi), %edi
.L9:
	addl	$1, %ecx
	movl	%edi, 4(%rax)
	cmpl	%ecx, %r12d
	jl	.L7
	addq	$8, %rax
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	%ebx, %r11
	movl	4(%rsi), %edi
	leaq	0(%rbp,%r11,8), %r11
	movl	4(%r11), %r15d
	cmpl	%r15d, %edi
	jge	.L10
	movl	(%rsi), %esi
.L11:
	movl	%esi, (%rax)
	addl	$1, %edx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%r11), %r11d
	je	.L44
.L12:
	movl	%r11d, (%rax)
	addl	$1, %ebx
	movl	%r15d, %edi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	movq	(%rsp), %rdi
	leaq	16(%rdi), %rax
	leaq	0(%rbp,%rdi), %rdx
	leaq	(%r8,%rax), %rcx
	cmpq	%rcx, %rdx
	jnb	.L33
	addq	%rbp, %rax
	cmpq	%rax, %r9
	jb	.L18
.L33:
	movl	%r12d, %esi
	subl	%r14d, %esi
	addl	$1, %esi
	cmpl	%r12d, %r14d
	je	.L32
	movl	%esi, %ecx
	xorl	%eax, %eax
	shrl	%ecx
	salq	$4, %rcx
	.p2align 4,,10
	.p2align 3
.L21:
	movdqu	(%r9,%rax), %xmm0
	movups	%xmm0, (%rdx,%rax)
	addq	$16, %rax
	cmpq	%rcx, %rax
	jne	.L21
	movl	%esi, %eax
	andl	$-2, %eax
	andl	$1, %esi
	je	.L1
.L20:
	addq	8(%rsp), %rax
	movq	(%r8,%rax,8), %rdx
	movq	%rdx, 0(%rbp,%rax,8)
.L1:
	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
.L43:
	.cfi_restore_state
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L44:
	movl	(%rsi), %esi
	cmpl	%r11d, %esi
	jle	.L12
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	subl	%r14d, %r12d
	addq	8(%rsp), %r12
	movq	%rdx, %rax
	leaq	8(%rbp,%r12,8), %rcx
	.p2align 4,,10
	.p2align 3
.L25:
	movq	(%r10), %rdx
	addq	$8, %rax
	addq	$8, %r10
	movq	%rdx, -8(%rax)
	cmpq	%rcx, %rax
	jne	.L25
	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
.L32:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L20
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	merge.part.0.cold, @function
merge.part.0.cold:
.LFSB25:
.L31:
	.cfi_def_cfa_offset 80
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	xorl	%eax, %eax
.L13:
	addq	%rax, %rbx
	addq	%r11, %rax
	movq	0(%rbp,%rbx,8), %rdx
	movq	%rdx, (%r8,%rax,8)
	jmp	.L7
.L16:
	movq	(%rdi), %rax
	addq	$8, %rdi
	movq	%rax, (%r8,%r11,8)
	addq	$1, %r11
	cmpl	%r11d, %r12d
	jge	.L16
	jmp	.L7
.L38:
	movl	%edx, %esi
	xorl	%eax, %eax
	shrl	%esi
.L14:
	movq	%rax, %rcx
	addq	$1, %rax
	salq	$4, %rcx
	movdqu	(%rdi,%rcx), %xmm1
	movups	%xmm1, 0(%r13,%rcx)
	cmpl	%eax, %esi
	ja	.L14
	movl	%edx, %eax
	andl	$-2, %eax
	andb	$1, %dl
	jne	.L13
	jmp	.L7
	.cfi_endproc
.LFE25:
	.text
	.size	merge.part.0, .-merge.part.0
	.section	.text.unlikely
	.size	merge.part.0.cold, .-merge.part.0.cold
.LCOLDE0:
	.text
.LHOTE0:
	.p2align 4
	.globl	merge
	.type	merge, @function
merge:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	jne	.L47
	ret
	.p2align 4,,10
	.p2align 3
.L47:
	jmp	merge.part.0
	.cfi_endproc
.LFE23:
	.size	merge, .-merge
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.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
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	leaq	.LC1(%rip), %r14
	leaq	-60(%rbp), %rdx
	pushq	%r13
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.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
	movl	-60(%rbp), %edx
	movq	%rsp, %rsi
	leal	1(%rdx), %eax
	cltq
	leaq	15(,%rax,8), %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L50
.L72:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L72
.L50:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L73
.L51:
	movq	%rsp, %r12
	testl	%edx, %edx
	jle	.L52
	movq	%r12, %rbx
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L53:
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addl	$1, %r15d
	addq	$8, %rbx
	cmpl	%r15d, %eax
	jg	.L53
	movl	%eax, %esi
	subl	$1, %esi
	je	.L54
.L59:
	movq	%r12, %rdx
	xorl	%edi, %edi
	call	merge.part.0
	movl	-60(%rbp), %eax
.L54:
	testl	%eax, %eax
	jle	.L61
	movslq	%eax, %rdx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L74:
	movl	4(%r12), %r13d
	addl	$1, %r8d
.L57:
	addq	$1, %rax
	cmpq	%rax, %rdx
	je	.L55
.L58:
	testq	%rax, %rax
	je	.L74
	movl	4(%r12,%rax,8), %ecx
	cmpl	-4(%r12,%rax,8), %ecx
	je	.L57
	cmpl	%r13d, (%r12,%rax,8)
	jl	.L57
	addq	$1, %rax
	addl	$1, %r8d
	movl	%ecx, %r13d
	cmpq	%rax, %rdx
	jne	.L58
	.p2align 4,,10
	.p2align 3
.L55:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L75
	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
.L73:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L51
.L52:
	leal	-1(%rdx), %esi
	jmp	.L59
.L61:
	xorl	%r8d, %r8d
	jmp	.L55
.L75:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 800016
c:
	.zero	800016
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.text.unlikely,"ax",@progbits
.LCOLDB0:
	.text
.LHOTB0:
	.p2align 4
	.type	merge.part.0, @function
merge.part.0:
.LFB25:
	.cfi_startproc
	leal	(%rdi,%rsi), %eax
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%eax, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	shrl	$31, %r13d
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	addl	%eax, %r13d
	movq	%rdx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sarl	%r13d
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	%r13d, %edi
	je	.L2
	movl	%r13d, %esi
	call	merge.part.0
.L2:
	leal	1(%r13), %ebx
	cmpl	%ebx, %r12d
	je	.L3
	movq	%rbp, %rdx
	movl	%r12d, %esi
	movl	%ebx, %edi
	call	merge.part.0
.L3:
	cmpl	%r12d, %r14d
	jg	.L1
	movslq	%r14d, %rax
	leaq	c(%rip), %r8
	movl	%r14d, %ecx
	movl	%r14d, %edx
	movq	%rax, 8(%rsp)
	salq	$3, %rax
	leaq	(%r8,%rax), %r9
	movq	%rax, (%rsp)
	movq	%r9, %r10
	movq	%r9, %rax
	.p2align 4,,10
	.p2align 3
.L29:
	cmpl	%edx, %r13d
	jge	.L5
	movslq	%ebx, %rdx
	addl	$1, %ebx
	leaq	0(%rbp,%rdx,8), %rdx
	movl	(%rdx), %esi
	movl	%esi, (%rax)
	movl	4(%rdx), %edx
	movl	%edx, 4(%rax)
	leal	1(%rcx), %eax
	cmpl	%eax, %r12d
	jl	.L7
	movslq	%eax, %r11
	movslq	%ebx, %rbx
	leaq	0(,%r11,8), %rdx
	leaq	0(%rbp,%rbx,8), %rdi
	leaq	(%r8,%rdx), %r13
	leaq	16(%r8,%rdx), %rdx
	leaq	16(,%rbx,8), %rsi
	cmpq	%rdx, %rdi
	jnb	.L27
	addq	%rbp, %rsi
	cmpq	%rsi, %r13
	jb	.L43
.L27:
	movl	%r12d, %edx
	subl	%ecx, %edx
	cmpl	%eax, %r12d
	movl	$1, %ecx
	cmovl	%ecx, %edx
	je	.L31
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	%edx, %rsi
	leaq	0(%rbp,%rsi,8), %rsi
	cmpl	%ebx, %r12d
	jge	.L8
	movl	(%rsi), %edi
	addl	$1, %edx
	movl	%edi, (%rax)
	movl	4(%rsi), %edi
.L9:
	addl	$1, %ecx
	movl	%edi, 4(%rax)
	cmpl	%ecx, %r12d
	jl	.L7
	addq	$8, %rax
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	%ebx, %r11
	movl	4(%rsi), %edi
	leaq	0(%rbp,%r11,8), %r11
	movl	4(%r11), %r15d
	cmpl	%r15d, %edi
	jge	.L10
	movl	(%rsi), %esi
.L11:
	movl	%esi, (%rax)
	addl	$1, %edx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%r11), %r11d
	je	.L44
.L12:
	movl	%r11d, (%rax)
	addl	$1, %ebx
	movl	%r15d, %edi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	movq	(%rsp), %rdi
	leaq	16(%rdi), %rax
	leaq	0(%rbp,%rdi), %rdx
	leaq	(%r8,%rax), %rcx
	cmpq	%rcx, %rdx
	jnb	.L33
	addq	%rbp, %rax
	cmpq	%rax, %r9
	jb	.L18
.L33:
	movl	%r12d, %esi
	subl	%r14d, %esi
	addl	$1, %esi
	cmpl	%r12d, %r14d
	je	.L32
	movl	%esi, %ecx
	xorl	%eax, %eax
	shrl	%ecx
	salq	$4, %rcx
	.p2align 4,,10
	.p2align 3
.L21:
	movdqu	(%r9,%rax), %xmm0
	movups	%xmm0, (%rdx,%rax)
	addq	$16, %rax
	cmpq	%rcx, %rax
	jne	.L21
	movl	%esi, %eax
	andl	$-2, %eax
	andl	$1, %esi
	je	.L1
.L20:
	addq	8(%rsp), %rax
	movq	(%r8,%rax,8), %rdx
	movq	%rdx, 0(%rbp,%rax,8)
.L1:
	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
.L43:
	.cfi_restore_state
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L44:
	movl	(%rsi), %esi
	cmpl	%r11d, %esi
	jle	.L12
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	subl	%r14d, %r12d
	addq	8(%rsp), %r12
	movq	%rdx, %rax
	leaq	8(%rbp,%r12,8), %rcx
	.p2align 4,,10
	.p2align 3
.L25:
	movq	(%r10), %rdx
	addq	$8, %rax
	addq	$8, %r10
	movq	%rdx, -8(%rax)
	cmpq	%rcx, %rax
	jne	.L25
	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
.L32:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L20
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	merge.part.0.cold, @function
merge.part.0.cold:
.LFSB25:
.L31:
	.cfi_def_cfa_offset 80
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	xorl	%eax, %eax
.L13:
	addq	%rax, %rbx
	addq	%r11, %rax
	movq	0(%rbp,%rbx,8), %rdx
	movq	%rdx, (%r8,%rax,8)
	jmp	.L7
.L16:
	movq	(%rdi), %rax
	addq	$8, %rdi
	movq	%rax, (%r8,%r11,8)
	addq	$1, %r11
	cmpl	%r11d, %r12d
	jge	.L16
	jmp	.L7
.L38:
	movl	%edx, %esi
	xorl	%eax, %eax
	shrl	%esi
.L14:
	movq	%rax, %rcx
	addq	$1, %rax
	salq	$4, %rcx
	movdqu	(%rdi,%rcx), %xmm1
	movups	%xmm1, 0(%r13,%rcx)
	cmpl	%eax, %esi
	ja	.L14
	movl	%edx, %eax
	andl	$-2, %eax
	andb	$1, %dl
	jne	.L13
	jmp	.L7
	.cfi_endproc
.LFE25:
	.text
	.size	merge.part.0, .-merge.part.0
	.section	.text.unlikely
	.size	merge.part.0.cold, .-merge.part.0.cold
.LCOLDE0:
	.text
.LHOTE0:
	.p2align 4
	.globl	merge
	.type	merge, @function
merge:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	jne	.L47
	ret
	.p2align 4,,10
	.p2align 3
.L47:
	jmp	merge.part.0
	.cfi_endproc
.LFE23:
	.size	merge, .-merge
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.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
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	leaq	.LC1(%rip), %r14
	leaq	-60(%rbp), %rdx
	pushq	%r13
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.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
	movl	-60(%rbp), %edx
	movq	%rsp, %rsi
	leal	1(%rdx), %eax
	cltq
	leaq	15(,%rax,8), %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L50
.L72:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L72
.L50:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L73
.L51:
	movq	%rsp, %r12
	testl	%edx, %edx
	jle	.L52
	movq	%r12, %rbx
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L53:
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addl	$1, %r15d
	addq	$8, %rbx
	cmpl	%r15d, %eax
	jg	.L53
	movl	%eax, %esi
	subl	$1, %esi
	je	.L54
.L59:
	movq	%r12, %rdx
	xorl	%edi, %edi
	call	merge.part.0
	movl	-60(%rbp), %eax
.L54:
	testl	%eax, %eax
	jle	.L61
	movslq	%eax, %rdx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L74:
	movl	4(%r12), %r13d
	addl	$1, %r8d
.L57:
	addq	$1, %rax
	cmpq	%rax, %rdx
	je	.L55
.L58:
	testq	%rax, %rax
	je	.L74
	movl	4(%r12,%rax,8), %ecx
	cmpl	-4(%r12,%rax,8), %ecx
	je	.L57
	cmpl	%r13d, (%r12,%rax,8)
	jl	.L57
	addq	$1, %rax
	addl	$1, %r8d
	movl	%ecx, %r13d
	cmpq	%rax, %rdx
	jne	.L58
	.p2align 4,,10
	.p2align 3
.L55:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L75
	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
.L73:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L51
.L52:
	leal	-1(%rdx), %esi
	jmp	.L59
.L61:
	xorl	%r8d, %r8d
	jmp	.L55
.L75:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 800016
c:
	.zero	800016
	.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>
//aは降順、bは昇順
int c[100002][2];
void merge(int i,int j,int s[][2]){
  if(i!=j){
    merge(i,(i+j)/2,s);
    merge((i+j)/2+1,j,s);
    int a=i,b=(i+j)/2+1;
    int d;
    for(d=i;d<=j;d++){
      if((i+j)/2<a){
        c[d][0]=s[b][0];
        c[d][1]=s[b][1];
        b++;
      }
      else if(j<b){
        c[d][0]=s[a][0];
        c[d][1]=s[a][1];
        a++;
      }
      else if(s[a][1]<s[b][1] || (s[a][1]==s[b][1] && s[a][0]>s[b][0])){
        c[d][0]=s[a][0];
        c[d][1]=s[a][1];
        a++;
      }
      else{
        c[d][0]=s[b][0];
        c[d][1]=s[b][1];
        b++;
      }
    }
    for(d=i;d<=j;d++){
      s[d][0]=c[d][0];
      s[d][1]=c[d][1];
    }
  }
}

int main(){
  int n,m,i,count=0,sum=0,mass;
  scanf("%d%d",&n,&m);
  int a[m+1][2];
  for(i=0;i<m;i++)
    scanf("%d%d",&a[i][0],&a[i][1]);
  merge(0,m-1,a);
  for(i=0;i<m;i++){
    if(i==0){
      mass=a[i][1];
      sum++;
    }
    else if(a[i][1]!=a[i-1][1] && a[i][0]>=mass){
      mass=a[i][1];
      sum++;
    }
  }
  printf("%d\n",sum);
  return 0;
}

5 2
2 4
2 5
 9 5
1 8
2 7
3 5
4 6
7 5
 5 10
1 2
1 4
1 4
1 5
2 3
2 4
2 5
3 4
3 5
4 5
 5 10
1 2
1 3
1 4
1 5
2 3
2 4
2 5
3 5
3 5
4 5
 5 2
1 5
2 5
 5 1
1 5
2 5
 5 1
0 5
2 5
 5 2
1 4
2 8
 9 5
2 8
2 7
3 5
4 6
7 5
 5 2
0 5
2 5

1
 1
 4
 3
 1
 1
 1
 1
 1
 1

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
//aは降順、bは昇順
int c[100002][2];
void merge(int i,int j,int s[][2]){
  if(i!=j){
    merge(i,(i+j)/2,s);
    merge((i+j)/2+1,j,s);
    int a=i,b=(i+j)/2+1;
    int d;
    for(d=i;d<=j;d++){
      if((i+j)/2<a){
        c[d][0]=s[b][0];
        c[d][1]=s[b][1];
        b++;
      }
      else if(j<b){
        c[d][0]=s[a][0];
        c[d][1]=s[a][1];
        a++;
      }
      else if(s[a][1]<s[b][1] || (s[a][1]==s[b][1] && s[a][0]>s[b][0])){
        c[d][0]=s[a][0];
        c[d][1]=s[a][1];
        a++;
      }
      else{
        c[d][0]=s[b][0];
        c[d][1]=s[b][1];
        b++;
      }
    }
    for(d=i;d<=j;d++){
      s[d][0]=c[d][0];
      s[d][1]=c[d][1];
    }
  }
}

int main(){
  int n,m,i,count=0,sum=0,mass;
  scanf("%d%d",&n,&m);
  int a[m+1][2];
  for(i=0;i<m;i++)
    scanf("%d%d",&a[i][0],&a[i][1]);
  merge(0,m-1,a);
  for(i=0;i<m;i++){
    if(i==0){
      mass=a[i][1];
      sum++;
    }
    else if(a[i][1]!=a[i-1][1] && a[i][0]>=mass){
      mass=a[i][1];
      sum++;
    }
  }
  printf("%d\n",sum);
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 800016
c:
	.zero	800016
	.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
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	je	.L12
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movq	-32(%rbp), %rdx
	movl	-20(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	merge
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	leal	1(%rax), %ecx
	movq	-32(%rbp), %rdx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	merge
	movl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L3
.L9:
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -12(%rbp)
	jle	.L4
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -8(%rbp)
	jmp	.L5
.L4:
	movl	-24(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L6
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
	jmp	.L5
.L6:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jl	.L7
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jne	.L8
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L8
.L7:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
	jmp	.L5
.L8:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -8(%rbp)
.L5:
	addl	$1, -4(%rbp)
.L3:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L9
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	c(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	%eax, (%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+c(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	%eax, 4(%rdx)
	addl	$1, -4(%rbp)
.L10:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L11
.L12:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	merge, .-merge
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	$56, %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
	movl	$0, -76(%rbp)
	movl	$0, -84(%rbp)
	leaq	-92(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%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,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
.L14:
	cmpq	%rdx, %rsp
	je	.L15
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L14
.L15:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L16
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L16:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -88(%rbp)
	jmp	.L17
.L18:
	movl	-88(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	4(%rax), %rdx
	movq	-64(%rbp), %rax
	addq	%rax, %rdx
	movl	-88(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-64(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -88(%rbp)
.L17:
	movl	-92(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L18
	movl	-92(%rbp), %eax
	leal	-1(%rax), %ecx
	movq	-64(%rbp), %rax
	movq	%rax, %rdx
	movl	%ecx, %esi
	movl	$0, %edi
	call	merge
	movl	$0, -88(%rbp)
	jmp	.L19
.L22:
	cmpl	$0, -88(%rbp)
	jne	.L20
	movq	-64(%rbp), %rax
	movl	-88(%rbp), %edx
	movslq	%edx, %rdx
	movl	4(%rax,%rdx,8), %eax
	movl	%eax, -80(%rbp)
	addl	$1, -84(%rbp)
	jmp	.L21
.L20:
	movq	-64(%rbp), %rax
	movl	-88(%rbp), %edx
	movslq	%edx, %rdx
	movl	4(%rax,%rdx,8), %ecx
	movl	-88(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	4(%rax,%rdx,8), %eax
	cmpl	%eax, %ecx
	je	.L21
	movq	-64(%rbp), %rax
	movl	-88(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,8), %eax
	cmpl	%eax, -80(%rbp)
	jg	.L21
	movq	-64(%rbp), %rax
	movl	-88(%rbp), %edx
	movslq	%edx, %rdx
	movl	4(%rax,%rdx,8), %eax
	movl	%eax, -80(%rbp)
	addl	$1, -84(%rbp)
.L21:
	addl	$1, -88(%rbp)
.L19:
	movl	-92(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L22
	movl	-84(%rbp), %eax
	movl	%eax, %esi
	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	.L24
	call	__stack_chk_fail@PLT
.L24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 800016
c:
	.zero	800016
	.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
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	je	.L12
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movq	-32(%rbp), %rdx
	movl	-20(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	merge
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	leal	1(%rax), %ecx
	movq	-32(%rbp), %rdx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	merge
	movl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L3
.L9:
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -12(%rbp)
	jle	.L4
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -8(%rbp)
	jmp	.L5
.L4:
	movl	-24(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L6
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
	jmp	.L5
.L6:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jl	.L7
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jne	.L8
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L8
.L7:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
	jmp	.L5
.L8:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -8(%rbp)
.L5:
	addl	$1, -4(%rbp)
.L3:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L9
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	c(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	%eax, (%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+c(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	%eax, 4(%rdx)
	addl	$1, -4(%rbp)
.L10:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L11
.L12:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	merge, .-merge
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	$56, %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
	movl	$0, -76(%rbp)
	movl	$0, -84(%rbp)
	leaq	-92(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%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,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
.L14:
	cmpq	%rdx, %rsp
	je	.L15
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L14
.L15:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L16
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L16:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -88(%rbp)
	jmp	.L17
.L18:
	movl	-88(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	4(%rax), %rdx
	movq	-64(%rbp), %rax
	addq	%rax, %rdx
	movl	-88(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-64(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -88(%rbp)
.L17:
	movl	-92(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L18
	movl	-92(%rbp), %eax
	leal	-1(%rax), %ecx
	movq	-64(%rbp), %rax
	movq	%rax, %rdx
	movl	%ecx, %esi
	movl	$0, %edi
	call	merge
	movl	$0, -88(%rbp)
	jmp	.L19
.L22:
	cmpl	$0, -88(%rbp)
	jne	.L20
	movq	-64(%rbp), %rax
	movl	-88(%rbp), %edx
	movslq	%edx, %rdx
	movl	4(%rax,%rdx,8), %eax
	movl	%eax, -80(%rbp)
	addl	$1, -84(%rbp)
	jmp	.L21
.L20:
	movq	-64(%rbp), %rax
	movl	-88(%rbp), %edx
	movslq	%edx, %rdx
	movl	4(%rax,%rdx,8), %ecx
	movl	-88(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	4(%rax,%rdx,8), %eax
	cmpl	%eax, %ecx
	je	.L21
	movq	-64(%rbp), %rax
	movl	-88(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,8), %eax
	cmpl	%eax, -80(%rbp)
	jg	.L21
	movq	-64(%rbp), %rax
	movl	-88(%rbp), %edx
	movslq	%edx, %rdx
	movl	4(%rax,%rdx,8), %eax
	movl	%eax, -80(%rbp)
	addl	$1, -84(%rbp)
.L21:
	addl	$1, -88(%rbp)
.L19:
	movl	-92(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L22
	movl	-84(%rbp), %eax
	movl	%eax, %esi
	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	.L24
	call	__stack_chk_fail@PLT
.L24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
