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

```c
/*
AizuOnline A2331
A Way to Invite Friends
13/01/08
*/
#define DEBUGx 1
#include <stdio.h>
// Select Below
//#include <stdlib.h>
#include <string.h>
//#include <float.h>
//#include <math.h>
//#include <limits.h>
#define min(x,y) (((x)<(y))?(x):(y))
//Global data section
int N;
int a[100000];
int b[100000];
int ab[200000]; // merge A+B
//
// desc
int comp(const void *a, const void *b)
{
    return *(int*)b - *(int*)a;
}
int search_run(int ** ar,int num,int * limit)
{
  int i=0;
  while(**ar == num && *ar < limit)
    {
      *ar=*ar+1;
      i++;
    }
  return(i);
}
print()
{
  int i;
  printf("a:");
  for(i=0;i<N;i++)
    printf("%d ",a[i]);
  printf("\nb:");
  for(i=0;i<N;i++)
    printf("%d ",b[i]);
  printf("\nab:");
  for(i=0;i<N*2;i++)
    printf("%d ",ab[i]);
  printf("\n");
}
main()
{
  int s,i,j,nin,w1,w2;

  int *pa,*pb,*pab,**ppa,**ppb,**ppab;

  
  if(EOF != scanf("%d",&N))
    {
      for(i=0;i<N;i++)
	{
	  scanf("%d %d",&(a[i]),&(b[i]));
	}
      //print();
      memmove(ab,a,N*sizeof(int));
      memmove(ab+N,b,N*sizeof(int));

      qsort(a,N,sizeof(int),comp);
      qsort(b,N,sizeof(int),comp);
      qsort(ab,2*N,sizeof(int),comp);
#ifdef DEBUG
      print();
#endif
      if(N == 1)
	{
	  if(a[0] <= 2 && b[0] > 1)
	    printf("%d\n",1);
	  else
	    printf("%d\n",0);
	  goto END;
	}
      /*
      if(a[n-1] < N && b[0] > N)
	{
	  
	}
      */
      s=ab[0];
      nin=0;pa=a;pb=b;pab=ab;ppa=&pa;ppb=&pb;ppab=&pab;
      while(*ppa < pa +N && *ppb < pb + N && *ppab < pab+2*N && s)
	{
	  w1=search_run(ppb,s,a+N);
	  w2=search_run(ppa,s,a+N);
	  nin += w1;
#ifdef DEBUG
	  printf("s:%d nin:%d w1:%d w2:%d \n",s,nin,w1,w2);	  
#endif
	  if(nin+1 >= s)
	    {	    
	      printf("%d\n",s-1); //except me 
	      goto END;
	    }
	  if(nin == N && a[0] < N)     // call all friends
	    {	    
	      printf("%d\n",N);  
	      goto END;
	    }
	  nin -= w2;
	  search_run(ppab,s,ab+2*N);
	  s = **ppab;
	}
    }
    printf("%d\n",0);
 END:
return(0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 400000
a:
	.zero	400000
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 400000
b:
	.zero	400000
	.globl	ab
	.align 32
	.type	ab, @object
	.size	ab, 800000
ab:
	.zero	800000
	.text
	.globl	comp
	.type	comp, @function
comp:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	comp, .-comp
	.globl	search_run
	.type	search_run, @function
search_run:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	%rdx, -40(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L4
.L6:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	leaq	4(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, (%rax)
	addl	$1, -4(%rbp)
.L4:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jne	.L5
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, -40(%rbp)
	ja	.L6
.L5:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	search_run, .-search_run
	.section	.rodata
.LC0:
	.string	"a:"
.LC1:
	.string	"%d "
.LC2:
	.string	"\nb:"
.LC3:
	.string	"\nab:"
	.text
	.globl	print
	.type	print, @function
print:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -4(%rbp)
	jmp	.L9
.L10:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L9:
	movl	N(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L10
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -4(%rbp)
	jmp	.L11
.L12:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L11:
	movl	N(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L12
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -4(%rbp)
	jmp	.L13
.L14:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ab(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L13:
	movl	N(%rip), %eax
	addl	%eax, %eax
	cmpl	%eax, -4(%rbp)
	jl	.L14
	movl	$10, %edi
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	print, .-print
	.section	.rodata
.LC4:
	.string	"%d"
.LC5:
	.string	"%d %d"
.LC6:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L16
	movl	$0, -72(%rbp)
	jmp	.L17
.L18:
	movl	-72(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	addq	%rax, %rdx
	movl	-72(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -72(%rbp)
.L17:
	movl	N(%rip), %eax
	cmpl	%eax, -72(%rbp)
	jl	.L18
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ab(%rip), %rax
	leaq	a(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ab(%rip), %rax
	addq	%rcx, %rax
	leaq	b(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memmove@PLT
	movl	N(%rip), %eax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movl	%eax, %esi
	leaq	a(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	qsort@PLT
	movl	N(%rip), %eax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movl	%eax, %esi
	leaq	b(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	qsort@PLT
	movl	N(%rip), %eax
	addl	%eax, %eax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movl	%eax, %esi
	leaq	ab(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	qsort@PLT
	movl	N(%rip), %eax
	cmpl	$1, %eax
	jne	.L19
	movl	a(%rip), %eax
	cmpl	$2, %eax
	jg	.L20
	movl	b(%rip), %eax
	cmpl	$1, %eax
	jle	.L20
	movl	$1, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L22
.L20:
	movl	$0, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L22
.L19:
	movl	ab(%rip), %eax
	movl	%eax, -76(%rbp)
	movl	$0, -68(%rbp)
	leaq	a(%rip), %rax
	movq	%rax, -56(%rbp)
	leaq	b(%rip), %rax
	movq	%rax, -48(%rbp)
	leaq	ab(%rip), %rax
	movq	%rax, -40(%rbp)
	leaq	-56(%rbp), %rax
	movq	%rax, -32(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -24(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, -16(%rbp)
	jmp	.L23
.L26:
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rax, %rdx
	movl	-76(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	search_run
	movl	%eax, -64(%rbp)
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rax, %rdx
	movl	-76(%rbp), %ecx
	movq	-32(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	search_run
	movl	%eax, -60(%rbp)
	movl	-64(%rbp), %eax
	addl	%eax, -68(%rbp)
	movl	-68(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -76(%rbp)
	jg	.L24
	movl	-76(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L22
.L24:
	movl	N(%rip), %eax
	cmpl	%eax, -68(%rbp)
	jne	.L25
	movl	a(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jge	.L25
	movl	N(%rip), %eax
	movl	%eax, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L22
.L25:
	movl	-60(%rbp), %eax
	subl	%eax, -68(%rbp)
	movl	N(%rip), %eax
	addl	%eax, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ab(%rip), %rax
	addq	%rax, %rdx
	movl	-76(%rbp), %ecx
	movq	-16(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	search_run
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
.L23:
	movq	-32(%rbp), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx
	movl	N(%rip), %edx
	movslq	%edx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	cmpq	%rdx, %rax
	jnb	.L16
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx
	movl	N(%rip), %edx
	movslq	%edx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	cmpq	%rdx, %rax
	jnb	.L16
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movq	-40(%rbp), %rcx
	movl	N(%rip), %edx
	addl	%edx, %edx
	movslq	%edx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	cmpq	%rdx, %rax
	jnb	.L16
	cmpl	$0, -76(%rbp)
	jne	.L26
.L16:
	movl	$0, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L22:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	comp
	.type	comp, @function
comp:
.LFB35:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE35:
	.size	comp, .-comp
	.p2align 4
	.globl	search_run
	.type	search_run, @function
search_run:
.LFB36:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	cmpl	%esi, (%rax)
	jne	.L7
	cmpq	%rax, %rdx
	jbe	.L7
	addq	$4, %rax
	xorl	%r8d, %r8d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	cmpq	%rdx, %rcx
	jnb	.L8
.L5:
	movq	%rax, %rcx
	addl	$1, %r8d
	addq	$4, %rax
	cmpl	%esi, (%rcx)
	je	.L19
.L8:
	movq	%rcx, (%rdi)
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	xorl	%r8d, %r8d
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE36:
	.size	search_run, .-search_run
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"a:"
.LC1:
	.string	"%d "
.LC2:
	.string	"\nb:"
.LC3:
	.string	"\nab:"
	.text
	.p2align 4
	.globl	print
	.type	print, @function
print:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	__printf_chk@PLT
	movl	N(%rip), %ecx
	testl	%ecx, %ecx
	jle	.L21
	xorl	%ebx, %ebx
	leaq	a(%rip), %r12
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L22:
	movl	(%r12,%rbx,4), %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, N(%rip)
	jg	.L22
.L21:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	N(%rip), %edx
	testl	%edx, %edx
	jle	.L23
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %rbp
	leaq	b(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L24:
	movl	(%r12,%rbx,4), %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, N(%rip)
	jg	.L24
.L23:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	N(%rip), %eax
	testl	%eax, %eax
	jle	.L25
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %rbp
	leaq	ab(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L26:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	movl	N(%rip), %eax
	addl	%eax, %eax
	cmpl	%ebx, %eax
	jg	.L26
.L25:
	popq	%rbx
	.cfi_def_cfa_offset 24
	movl	$10, %edi
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	jmp	putchar@PLT
	.cfi_endproc
.LFE37:
	.size	print, .-print
	.section	.rodata.str1.1
.LC4:
	.string	"%d"
.LC5:
	.string	"%d\n"
.LC6:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB38:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	leaq	N(%rip), %rsi
	leaq	.LC4(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L37
	movl	N(%rip), %r14d
	leaq	a(%rip), %r12
	leaq	b(%rip), %rbp
	testl	%r14d, %r14d
	jle	.L34
	movq	%r12, %r13
	xorl	%ebx, %ebx
	leaq	.LC6(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L35:
	leaq	0(%rbp,%rbx,4), %rdx
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	N(%rip), %r14d
	addq	$1, %rbx
	addq	$4, %r13
	cmpl	%ebx, %r14d
	jg	.L35
.L34:
	movslq	%r14d, %r13
	leaq	ab(%rip), %rbx
	movl	$800000, %ecx
	movq	%r12, %rsi
	salq	$2, %r13
	movq	%rbx, %rdi
	movq	%r13, %rdx
	call	__memmove_chk@PLT
	leaq	(%rbx,%r13), %rdi
	movq	%r13, %rdx
	movq	%rbp, %rsi
	call	memcpy@PLT
	movl	$4, %edx
	movl	%r14d, %esi
	movq	%r12, %rdi
	leaq	comp(%rip), %r13
	xorl	%eax, %eax
	movq	%r13, %rcx
	call	qsort@PLT
	movl	N(%rip), %esi
	movq	%r13, %rcx
	xorl	%eax, %eax
	movl	$4, %edx
	movq	%rbp, %rdi
	call	qsort@PLT
	movq	%r13, %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	movl	N(%rip), %eax
	leal	(%rax,%rax), %esi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	N(%rip), %r13d
	cmpl	$1, %r13d
	je	.L98
	movslq	%r13d, %r11
	movl	ab(%rip), %esi
	salq	$2, %r11
	leaq	(%r12,%r11), %r9
	cmpq	%r12, %r9
	jbe	.L37
	leaq	0(%rbp,%r11), %rax
	cmpq	%rbp, %rax
	jbe	.L37
	leal	(%r13,%r13), %ebp
	movslq	%ebp, %rbp
	salq	$2, %rbp
	leaq	(%rbx,%rbp), %r10
	testl	%esi, %esi
	je	.L37
	cmpq	%rbx, %r10
	jbe	.L37
	movl	a(%rip), %r12d
	movq	%rbx, %rcx
	xorl	%ebx, %ebx
	leaq	b(%rip), %rdx
	leaq	a(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L49:
	xorl	%edi, %edi
	cmpl	%esi, (%rdx)
	jne	.L38
	cmpq	%rdx, %r9
	ja	.L39
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L99:
	cmpq	%r9, %rdx
	jnb	.L38
.L39:
	addq	$4, %rdx
	addl	$1, %edi
	cmpl	%esi, (%rdx)
	je	.L99
.L38:
	xorl	%r8d, %r8d
	cmpl	%esi, (%rax)
	jne	.L41
	cmpq	%rax, %r9
	ja	.L42
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L100:
	cmpq	%r9, %rax
	jnb	.L41
.L42:
	addq	$4, %rax
	addl	$1, %r8d
	cmpl	%esi, (%rax)
	je	.L100
.L41:
	addl	%ebx, %edi
	leal	1(%rdi), %ebx
	cmpl	%esi, %ebx
	jge	.L101
	cmpl	%edi, %r13d
	je	.L102
.L45:
	movl	%edi, %ebx
	movl	(%rcx), %edi
	subl	%r8d, %ebx
	cmpl	%esi, %edi
	jne	.L53
	cmpq	%rcx, %r10
	ja	.L47
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L103:
	cmpq	%r10, %rcx
	jnb	.L53
.L47:
	movl	4(%rcx), %edi
	addq	$4, %rcx
	cmpl	%esi, %edi
	je	.L103
.L53:
	movl	%edi, %esi
	leaq	(%rax,%r11), %rdi
	cmpq	%rdi, %rax
	jnb	.L37
	leaq	(%rdx,%r11), %rdi
	cmpq	%rdi, %rdx
	jnb	.L37
	leaq	(%rcx,%rbp), %rdi
	cmpq	%rdi, %rcx
	jnb	.L37
	testl	%esi, %esi
	jne	.L49
	.p2align 4,,10
	.p2align 3
.L37:
	xorl	%edx, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L33:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L102:
	.cfi_restore_state
	cmpl	%r12d, %r13d
	jle	.L45
	movl	%r13d, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L33
.L98:
	cmpl	$2, a(%rip)
	jg	.L37
	cmpl	$1, b(%rip)
	jle	.L37
	movl	$1, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L33
.L101:
	leal	-1(%rsi), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC5(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L33
	.cfi_endproc
.LFE38:
	.size	main, .-main
	.globl	ab
	.bss
	.align 32
	.type	ab, @object
	.size	ab, 800000
ab:
	.zero	800000
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 400000
b:
	.zero	400000
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 400000
a:
	.zero	400000
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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	comp
	.type	comp, @function
comp:
.LFB35:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE35:
	.size	comp, .-comp
	.p2align 4
	.globl	search_run
	.type	search_run, @function
search_run:
.LFB36:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	cmpl	%esi, (%rax)
	jne	.L7
	cmpq	%rax, %rdx
	jbe	.L7
	addq	$4, %rax
	xorl	%r8d, %r8d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	cmpq	%rdx, %rcx
	jnb	.L8
.L5:
	movq	%rax, %rcx
	addl	$1, %r8d
	addq	$4, %rax
	cmpl	%esi, (%rcx)
	je	.L19
.L8:
	movq	%rcx, (%rdi)
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	xorl	%r8d, %r8d
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE36:
	.size	search_run, .-search_run
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"a:"
.LC1:
	.string	"%d "
.LC2:
	.string	"\nb:"
.LC3:
	.string	"\nab:"
	.text
	.p2align 4
	.globl	print
	.type	print, @function
print:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	__printf_chk@PLT
	movl	N(%rip), %ecx
	testl	%ecx, %ecx
	jle	.L21
	xorl	%ebx, %ebx
	leaq	a(%rip), %r12
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L22:
	movl	(%r12,%rbx,4), %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, N(%rip)
	jg	.L22
.L21:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	N(%rip), %edx
	testl	%edx, %edx
	jle	.L23
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %rbp
	leaq	b(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L24:
	movl	(%r12,%rbx,4), %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, N(%rip)
	jg	.L24
.L23:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	N(%rip), %eax
	testl	%eax, %eax
	jle	.L25
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %rbp
	leaq	ab(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L26:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	movl	N(%rip), %eax
	addl	%eax, %eax
	cmpl	%ebx, %eax
	jg	.L26
.L25:
	popq	%rbx
	.cfi_def_cfa_offset 24
	movl	$10, %edi
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	jmp	putchar@PLT
	.cfi_endproc
.LFE37:
	.size	print, .-print
	.section	.rodata.str1.1
.LC4:
	.string	"%d"
.LC5:
	.string	"%d\n"
.LC6:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB38:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	leaq	N(%rip), %rsi
	leaq	.LC4(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L37
	movl	N(%rip), %r14d
	leaq	a(%rip), %r12
	leaq	b(%rip), %rbp
	testl	%r14d, %r14d
	jle	.L34
	movq	%r12, %r13
	xorl	%ebx, %ebx
	leaq	.LC6(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L35:
	leaq	0(%rbp,%rbx,4), %rdx
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	N(%rip), %r14d
	addq	$1, %rbx
	addq	$4, %r13
	cmpl	%ebx, %r14d
	jg	.L35
.L34:
	movslq	%r14d, %r13
	leaq	ab(%rip), %rbx
	movl	$800000, %ecx
	movq	%r12, %rsi
	salq	$2, %r13
	movq	%rbx, %rdi
	movq	%r13, %rdx
	call	__memmove_chk@PLT
	leaq	(%rbx,%r13), %rdi
	movq	%r13, %rdx
	movq	%rbp, %rsi
	call	memcpy@PLT
	movl	$4, %edx
	movl	%r14d, %esi
	movq	%r12, %rdi
	leaq	comp(%rip), %r13
	xorl	%eax, %eax
	movq	%r13, %rcx
	call	qsort@PLT
	movl	N(%rip), %esi
	movq	%r13, %rcx
	xorl	%eax, %eax
	movl	$4, %edx
	movq	%rbp, %rdi
	call	qsort@PLT
	movq	%r13, %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	movl	N(%rip), %eax
	leal	(%rax,%rax), %esi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	N(%rip), %r13d
	cmpl	$1, %r13d
	je	.L98
	movslq	%r13d, %r11
	movl	ab(%rip), %esi
	salq	$2, %r11
	leaq	(%r12,%r11), %r9
	cmpq	%r12, %r9
	jbe	.L37
	leaq	0(%rbp,%r11), %rax
	cmpq	%rbp, %rax
	jbe	.L37
	leal	(%r13,%r13), %ebp
	movslq	%ebp, %rbp
	salq	$2, %rbp
	leaq	(%rbx,%rbp), %r10
	testl	%esi, %esi
	je	.L37
	cmpq	%rbx, %r10
	jbe	.L37
	movl	a(%rip), %r12d
	movq	%rbx, %rcx
	xorl	%ebx, %ebx
	leaq	b(%rip), %rdx
	leaq	a(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L49:
	xorl	%edi, %edi
	cmpl	%esi, (%rdx)
	jne	.L38
	cmpq	%rdx, %r9
	ja	.L39
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L99:
	cmpq	%r9, %rdx
	jnb	.L38
.L39:
	addq	$4, %rdx
	addl	$1, %edi
	cmpl	%esi, (%rdx)
	je	.L99
.L38:
	xorl	%r8d, %r8d
	cmpl	%esi, (%rax)
	jne	.L41
	cmpq	%rax, %r9
	ja	.L42
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L100:
	cmpq	%r9, %rax
	jnb	.L41
.L42:
	addq	$4, %rax
	addl	$1, %r8d
	cmpl	%esi, (%rax)
	je	.L100
.L41:
	addl	%ebx, %edi
	leal	1(%rdi), %ebx
	cmpl	%esi, %ebx
	jge	.L101
	cmpl	%edi, %r13d
	je	.L102
.L45:
	movl	%edi, %ebx
	movl	(%rcx), %edi
	subl	%r8d, %ebx
	cmpl	%esi, %edi
	jne	.L53
	cmpq	%rcx, %r10
	ja	.L47
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L103:
	cmpq	%r10, %rcx
	jnb	.L53
.L47:
	movl	4(%rcx), %edi
	addq	$4, %rcx
	cmpl	%esi, %edi
	je	.L103
.L53:
	movl	%edi, %esi
	leaq	(%rax,%r11), %rdi
	cmpq	%rdi, %rax
	jnb	.L37
	leaq	(%rdx,%r11), %rdi
	cmpq	%rdi, %rdx
	jnb	.L37
	leaq	(%rcx,%rbp), %rdi
	cmpq	%rdi, %rcx
	jnb	.L37
	testl	%esi, %esi
	jne	.L49
	.p2align 4,,10
	.p2align 3
.L37:
	xorl	%edx, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L33:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L102:
	.cfi_restore_state
	cmpl	%r12d, %r13d
	jle	.L45
	movl	%r13d, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L33
.L98:
	cmpl	$2, a(%rip)
	jg	.L37
	cmpl	$1, b(%rip)
	jle	.L37
	movl	$1, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L33
.L101:
	leal	-1(%rsi), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC5(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L33
	.cfi_endproc
.LFE38:
	.size	main, .-main
	.globl	ab
	.bss
	.align 32
	.type	ab, @object
	.size	ab, 800000
ab:
	.zero	800000
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 400000
b:
	.zero	400000
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 400000
a:
	.zero	400000
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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:

/*
AizuOnline A2331
A Way to Invite Friends
13/01/08
*/
#define DEBUGx 1
#include <stdio.h>
// Select Below
//#include <stdlib.h>
#include <string.h>
//#include <float.h>
//#include <math.h>
//#include <limits.h>
#define min(x,y) (((x)<(y))?(x):(y))
//Global data section
int N;
int a[100000];
int b[100000];
int ab[200000]; // merge A+B
//
// desc
int comp(const void *a, const void *b)
{
    return *(int*)b - *(int*)a;
}
int search_run(int ** ar,int num,int * limit)
{
  int i=0;
  while(**ar == num && *ar < limit)
    {
      *ar=*ar+1;
      i++;
    }
  return(i);
}
print()
{
  int i;
  printf("a:");
  for(i=0;i<N;i++)
    printf("%d ",a[i]);
  printf("\nb:");
  for(i=0;i<N;i++)
    printf("%d ",b[i]);
  printf("\nab:");
  for(i=0;i<N*2;i++)
    printf("%d ",ab[i]);
  printf("\n");
}
main()
{
  int s,i,j,nin,w1,w2;

  int *pa,*pb,*pab,**ppa,**ppb,**ppab;

  
  if(EOF != scanf("%d",&N))
    {
      for(i=0;i<N;i++)
	{
	  scanf("%d %d",&(a[i]),&(b[i]));
	}
      //print();
      memmove(ab,a,N*sizeof(int));
      memmove(ab+N,b,N*sizeof(int));

      qsort(a,N,sizeof(int),comp);
      qsort(b,N,sizeof(int),comp);
      qsort(ab,2*N,sizeof(int),comp);
#ifdef DEBUG
      print();
#endif
      if(N == 1)
	{
	  if(a[0] <= 2 && b[0] > 1)
	    printf("%d\n",1);
	  else
	    printf("%d\n",0);
	  goto END;
	}
      /*
      if(a[n-1] < N && b[0] > N)
	{
	  
	}
      */
      s=ab[0];
      nin=0;pa=a;pb=b;pab=ab;ppa=&pa;ppb=&pb;ppab=&pab;
      while(*ppa < pa +N && *ppb < pb + N && *ppab < pab+2*N && s)
	{
	  w1=search_run(ppb,s,a+N);
	  w2=search_run(ppa,s,a+N);
	  nin += w1;
#ifdef DEBUG
	  printf("s:%d nin:%d w1:%d w2:%d \n",s,nin,w1,w2);	  
#endif
	  if(nin+1 >= s)
	    {	    
	      printf("%d\n",s-1); //except me 
	      goto END;
	    }
	  if(nin == N && a[0] < N)     // call all friends
	    {	    
	      printf("%d\n",N);  
	      goto END;
	    }
	  nin -= w2;
	  search_run(ppab,s,ab+2*N);
	  s = **ppab;
	}
    }
    printf("%d\n",0);
 END:
return(0);
}
5
8 100001
14 100001
12 100001
8 100001
3 100001
 4
2 5
4 7
2 4
5 6
 6
2 9
4 8
6 7
6 6
5 4
2 100001
 4
2 1
4 7
2 4
5 6
 5
8 100001
7 100001
12 100001
3 100001
3 100001
 6
2 9
2 8
6 7
6 6
5 4
2 100001
 6
4 9
2 8
6 7
6 6
5 4
2 100001
 5
6 100001
7 100001
12 100001
8 100001
3 100001
 4
2 2
4 7
2 4
3 6
 4
2 6
4 7
2 4
5 6

0
 0
 0
 0
 0
 0
 0
 0
 0
 0

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

```c
/*
AizuOnline A2331
A Way to Invite Friends
13/01/08
*/
#define DEBUGx 1
#include <stdio.h>
// Select Below
//#include <stdlib.h>
#include <string.h>
//#include <float.h>
//#include <math.h>
//#include <limits.h>
#define min(x,y) (((x)<(y))?(x):(y))
//Global data section
int N;
int a[100000];
int b[100000];
int ab[200000]; // merge A+B
//
// desc
int comp(const void *a, const void *b)
{
    return *(int*)b - *(int*)a;
}
int search_run(int ** ar,int num,int * limit)
{
  int i=0;
  while(**ar == num && *ar < limit)
    {
      *ar=*ar+1;
      i++;
    }
  return(i);
}
print()
{
  int i;
  printf("a:");
  for(i=0;i<N;i++)
    printf("%d ",a[i]);
  printf("\nb:");
  for(i=0;i<N;i++)
    printf("%d ",b[i]);
  printf("\nab:");
  for(i=0;i<N*2;i++)
    printf("%d ",ab[i]);
  printf("\n");
}
main()
{
  int s,i,j,nin,w1,w2;

  int *pa,*pb,*pab,**ppa,**ppb,**ppab;

  
  if(EOF != scanf("%d",&N))
    {
      for(i=0;i<N;i++)
	{
	  scanf("%d %d",&(a[i]),&(b[i]));
	}
      //print();
      memmove(ab,a,N*sizeof(int));
      memmove(ab+N,b,N*sizeof(int));

      qsort(a,N,sizeof(int),comp);
      qsort(b,N,sizeof(int),comp);
      qsort(ab,2*N,sizeof(int),comp);
#ifdef DEBUG
      print();
#endif
      if(N == 1)
	{
	  if(a[0] <= 2 && b[0] > 1)
	    printf("%d\n",1);
	  else
	    printf("%d\n",0);
	  goto END;
	}
      /*
      if(a[n-1] < N && b[0] > N)
	{
	  
	}
      */
      s=ab[0];
      nin=0;pa=a;pb=b;pab=ab;ppa=&pa;ppb=&pb;ppab=&pab;
      while(*ppa < pa +N && *ppb < pb + N && *ppab < pab+2*N && s)
	{
	  w1=search_run(ppb,s,a+N);
	  w2=search_run(ppa,s,a+N);
	  nin += w1;
#ifdef DEBUG
	  printf("s:%d nin:%d w1:%d w2:%d \n",s,nin,w1,w2);	  
#endif
	  if(nin+1 >= s)
	    {	    
	      printf("%d\n",s-1); //except me 
	      goto END;
	    }
	  if(nin == N && a[0] < N)     // call all friends
	    {	    
	      printf("%d\n",N);  
	      goto END;
	    }
	  nin -= w2;
	  search_run(ppab,s,ab+2*N);
	  s = **ppab;
	}
    }
    printf("%d\n",0);
 END:
return(0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 400000
a:
	.zero	400000
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 400000
b:
	.zero	400000
	.globl	ab
	.align 32
	.type	ab, @object
	.size	ab, 800000
ab:
	.zero	800000
	.text
	.globl	comp
	.type	comp, @function
comp:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	comp, .-comp
	.globl	search_run
	.type	search_run, @function
search_run:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	%rdx, -40(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L4
.L6:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	leaq	4(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, (%rax)
	addl	$1, -4(%rbp)
.L4:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jne	.L5
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, -40(%rbp)
	ja	.L6
.L5:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	search_run, .-search_run
	.section	.rodata
.LC0:
	.string	"a:"
.LC1:
	.string	"%d "
.LC2:
	.string	"\nb:"
.LC3:
	.string	"\nab:"
	.text
	.globl	print
	.type	print, @function
print:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -4(%rbp)
	jmp	.L9
.L10:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L9:
	movl	N(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L10
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -4(%rbp)
	jmp	.L11
.L12:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L11:
	movl	N(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L12
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -4(%rbp)
	jmp	.L13
.L14:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ab(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L13:
	movl	N(%rip), %eax
	addl	%eax, %eax
	cmpl	%eax, -4(%rbp)
	jl	.L14
	movl	$10, %edi
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	print, .-print
	.section	.rodata
.LC4:
	.string	"%d"
.LC5:
	.string	"%d %d"
.LC6:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L16
	movl	$0, -72(%rbp)
	jmp	.L17
.L18:
	movl	-72(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	addq	%rax, %rdx
	movl	-72(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -72(%rbp)
.L17:
	movl	N(%rip), %eax
	cmpl	%eax, -72(%rbp)
	jl	.L18
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ab(%rip), %rax
	leaq	a(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ab(%rip), %rax
	addq	%rcx, %rax
	leaq	b(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memmove@PLT
	movl	N(%rip), %eax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movl	%eax, %esi
	leaq	a(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	qsort@PLT
	movl	N(%rip), %eax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movl	%eax, %esi
	leaq	b(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	qsort@PLT
	movl	N(%rip), %eax
	addl	%eax, %eax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movl	%eax, %esi
	leaq	ab(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	qsort@PLT
	movl	N(%rip), %eax
	cmpl	$1, %eax
	jne	.L19
	movl	a(%rip), %eax
	cmpl	$2, %eax
	jg	.L20
	movl	b(%rip), %eax
	cmpl	$1, %eax
	jle	.L20
	movl	$1, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L22
.L20:
	movl	$0, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L22
.L19:
	movl	ab(%rip), %eax
	movl	%eax, -76(%rbp)
	movl	$0, -68(%rbp)
	leaq	a(%rip), %rax
	movq	%rax, -56(%rbp)
	leaq	b(%rip), %rax
	movq	%rax, -48(%rbp)
	leaq	ab(%rip), %rax
	movq	%rax, -40(%rbp)
	leaq	-56(%rbp), %rax
	movq	%rax, -32(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -24(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, -16(%rbp)
	jmp	.L23
.L26:
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rax, %rdx
	movl	-76(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	search_run
	movl	%eax, -64(%rbp)
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rax, %rdx
	movl	-76(%rbp), %ecx
	movq	-32(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	search_run
	movl	%eax, -60(%rbp)
	movl	-64(%rbp), %eax
	addl	%eax, -68(%rbp)
	movl	-68(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -76(%rbp)
	jg	.L24
	movl	-76(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L22
.L24:
	movl	N(%rip), %eax
	cmpl	%eax, -68(%rbp)
	jne	.L25
	movl	a(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jge	.L25
	movl	N(%rip), %eax
	movl	%eax, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L22
.L25:
	movl	-60(%rbp), %eax
	subl	%eax, -68(%rbp)
	movl	N(%rip), %eax
	addl	%eax, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ab(%rip), %rax
	addq	%rax, %rdx
	movl	-76(%rbp), %ecx
	movq	-16(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	search_run
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
.L23:
	movq	-32(%rbp), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx
	movl	N(%rip), %edx
	movslq	%edx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	cmpq	%rdx, %rax
	jnb	.L16
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx
	movl	N(%rip), %edx
	movslq	%edx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	cmpq	%rdx, %rax
	jnb	.L16
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movq	-40(%rbp), %rcx
	movl	N(%rip), %edx
	addl	%edx, %edx
	movslq	%edx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	cmpq	%rdx, %rax
	jnb	.L16
	cmpl	$0, -76(%rbp)
	jne	.L26
.L16:
	movl	$0, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L22:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 400000
a:
	.zero	400000
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 400000
b:
	.zero	400000
	.globl	ab
	.align 32
	.type	ab, @object
	.size	ab, 800000
ab:
	.zero	800000
	.text
	.globl	comp
	.type	comp, @function
comp:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	comp, .-comp
	.globl	search_run
	.type	search_run, @function
search_run:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	%rdx, -40(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L4
.L6:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	leaq	4(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, (%rax)
	addl	$1, -4(%rbp)
.L4:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jne	.L5
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, -40(%rbp)
	ja	.L6
.L5:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	search_run, .-search_run
	.section	.rodata
.LC0:
	.string	"a:"
.LC1:
	.string	"%d "
.LC2:
	.string	"\nb:"
.LC3:
	.string	"\nab:"
	.text
	.globl	print
	.type	print, @function
print:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -4(%rbp)
	jmp	.L9
.L10:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L9:
	movl	N(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L10
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -4(%rbp)
	jmp	.L11
.L12:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L11:
	movl	N(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L12
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -4(%rbp)
	jmp	.L13
.L14:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ab(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L13:
	movl	N(%rip), %eax
	addl	%eax, %eax
	cmpl	%eax, -4(%rbp)
	jl	.L14
	movl	$10, %edi
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	print, .-print
	.section	.rodata
.LC4:
	.string	"%d"
.LC5:
	.string	"%d %d"
.LC6:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L16
	movl	$0, -72(%rbp)
	jmp	.L17
.L18:
	movl	-72(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	addq	%rax, %rdx
	movl	-72(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -72(%rbp)
.L17:
	movl	N(%rip), %eax
	cmpl	%eax, -72(%rbp)
	jl	.L18
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ab(%rip), %rax
	leaq	a(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ab(%rip), %rax
	addq	%rcx, %rax
	leaq	b(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memmove@PLT
	movl	N(%rip), %eax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movl	%eax, %esi
	leaq	a(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	qsort@PLT
	movl	N(%rip), %eax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movl	%eax, %esi
	leaq	b(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	qsort@PLT
	movl	N(%rip), %eax
	addl	%eax, %eax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movl	%eax, %esi
	leaq	ab(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	qsort@PLT
	movl	N(%rip), %eax
	cmpl	$1, %eax
	jne	.L19
	movl	a(%rip), %eax
	cmpl	$2, %eax
	jg	.L20
	movl	b(%rip), %eax
	cmpl	$1, %eax
	jle	.L20
	movl	$1, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L22
.L20:
	movl	$0, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L22
.L19:
	movl	ab(%rip), %eax
	movl	%eax, -76(%rbp)
	movl	$0, -68(%rbp)
	leaq	a(%rip), %rax
	movq	%rax, -56(%rbp)
	leaq	b(%rip), %rax
	movq	%rax, -48(%rbp)
	leaq	ab(%rip), %rax
	movq	%rax, -40(%rbp)
	leaq	-56(%rbp), %rax
	movq	%rax, -32(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -24(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, -16(%rbp)
	jmp	.L23
.L26:
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rax, %rdx
	movl	-76(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	search_run
	movl	%eax, -64(%rbp)
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rax, %rdx
	movl	-76(%rbp), %ecx
	movq	-32(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	search_run
	movl	%eax, -60(%rbp)
	movl	-64(%rbp), %eax
	addl	%eax, -68(%rbp)
	movl	-68(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -76(%rbp)
	jg	.L24
	movl	-76(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L22
.L24:
	movl	N(%rip), %eax
	cmpl	%eax, -68(%rbp)
	jne	.L25
	movl	a(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jge	.L25
	movl	N(%rip), %eax
	movl	%eax, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L22
.L25:
	movl	-60(%rbp), %eax
	subl	%eax, -68(%rbp)
	movl	N(%rip), %eax
	addl	%eax, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ab(%rip), %rax
	addq	%rax, %rdx
	movl	-76(%rbp), %ecx
	movq	-16(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	search_run
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
.L23:
	movq	-32(%rbp), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx
	movl	N(%rip), %edx
	movslq	%edx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	cmpq	%rdx, %rax
	jnb	.L16
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx
	movl	N(%rip), %edx
	movslq	%edx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	cmpq	%rdx, %rax
	jnb	.L16
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movq	-40(%rbp), %rcx
	movl	N(%rip), %edx
	addl	%edx, %edx
	movslq	%edx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	cmpq	%rdx, %rax
	jnb	.L16
	cmpl	$0, -76(%rbp)
	jne	.L26
.L16:
	movl	$0, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L22:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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:
