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>

int main(void){
  int n,m,L[100005],R[100005],L1=0,R1=100005;
  scanf("%d %d",&n,&m);
  for(int i=0;i<m;i++){
    scanf("%d%d",&L[i],&R[i]);
  }
  for(int i=0;i<m;i++){
    if(L[i]>L1) L1=L[i];
    if(R1>R[i]) R1=R[i];
    }
  if(R1-L1<0){
    printf("0\n");
    return 0;
  }
  printf("%d\n",R1-L1+1);

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"0"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1376, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -800080(%rbp)
	movl	$100005, -800076(%rbp)
	leaq	-800084(%rbp), %rdx
	leaq	-800088(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800072(%rbp)
	jmp	.L2
.L3:
	leaq	-400032(%rbp), %rdx
	movl	-800072(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-800064(%rbp), %rcx
	movl	-800072(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -800072(%rbp)
.L2:
	movl	-800084(%rbp), %eax
	cmpl	%eax, -800072(%rbp)
	jl	.L3
	movl	$0, -800068(%rbp)
	jmp	.L4
.L7:
	movl	-800068(%rbp), %eax
	cltq
	movl	-800064(%rbp,%rax,4), %eax
	cmpl	%eax, -800080(%rbp)
	jge	.L5
	movl	-800068(%rbp), %eax
	cltq
	movl	-800064(%rbp,%rax,4), %eax
	movl	%eax, -800080(%rbp)
.L5:
	movl	-800068(%rbp), %eax
	cltq
	movl	-400032(%rbp,%rax,4), %eax
	cmpl	%eax, -800076(%rbp)
	jle	.L6
	movl	-800068(%rbp), %eax
	cltq
	movl	-400032(%rbp,%rax,4), %eax
	movl	%eax, -800076(%rbp)
.L6:
	addl	$1, -800068(%rbp)
.L4:
	movl	-800084(%rbp), %eax
	cmpl	%eax, -800068(%rbp)
	jl	.L7
	movl	-800076(%rbp), %eax
	subl	-800080(%rbp), %eax
	testl	%eax, %eax
	jns	.L8
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L10
.L8:
	movl	-800076(%rbp), %eax
	subl	-800080(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L10:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d%d"
.LC3:
	.string	"0"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798768
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1360, %rsp
	.cfi_def_cfa_offset 800128
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 800072(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebx, %ebx
	leaq	400048(%rsp), %r14
	movq	%r12, %rbp
	leaq	.LC2(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	(%r14,%rbx,4), %rdx
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addq	$1, %rbx
	addq	$4, %rbp
	cmpl	%ebx, %ecx
	jg	.L3
	testl	%ecx, %ecx
	jle	.L2
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L10
	movl	%ecx, %edx
	movdqa	.LC0(%rip), %xmm3
	xorl	%eax, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	salq	$4, %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	%xmm0, %xmm1
	movdqa	%xmm3, %xmm2
	pcmpgtd	(%r12,%rax), %xmm1
	pcmpgtd	(%r14,%rax), %xmm2
	pand	%xmm1, %xmm0
	pandn	(%r12,%rax), %xmm1
	por	%xmm1, %xmm0
	movdqa	(%r14,%rax), %xmm1
	addq	$16, %rax
	pand	%xmm2, %xmm1
	pandn	%xmm3, %xmm2
	movdqa	%xmm2, %xmm3
	por	%xmm1, %xmm3
	cmpq	%rdx, %rax
	jne	.L5
	movdqa	%xmm3, %xmm1
	movl	%ecx, %esi
	psrldq	$8, %xmm1
	andl	$-4, %esi
	movdqa	%xmm1, %xmm2
	pcmpgtd	%xmm3, %xmm2
	pand	%xmm2, %xmm3
	pandn	%xmm1, %xmm2
	por	%xmm3, %xmm2
	movdqa	%xmm2, %xmm3
	psrldq	$4, %xmm3
	movdqa	%xmm3, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm3, %xmm1
	por	%xmm2, %xmm1
	movdqa	%xmm0, %xmm2
	psrldq	$8, %xmm2
	movd	%xmm1, %edx
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %eax
	testb	$3, %cl
	je	.L6
.L4:
	movslq	%esi, %rdi
	movl	16(%rsp,%rdi,4), %r8d
	movl	400048(%rsp,%rdi,4), %edi
	cmpl	%r8d, %eax
	cmovl	%r8d, %eax
	cmpl	%edi, %edx
	cmovg	%edi, %edx
	leal	1(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	movl	16(%rsp,%rdi,4), %r8d
	movl	400048(%rsp,%rdi,4), %edi
	cmpl	%r8d, %eax
	cmovl	%r8d, %eax
	cmpl	%edi, %edx
	cmovg	%edi, %edx
	addl	$2, %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movl	16(%rsp,%rsi,4), %ecx
	cmpl	%ecx, %eax
	cmovl	%ecx, %eax
	movl	400048(%rsp,%rsi,4), %ecx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
.L6:
	subl	%eax, %edx
	js	.L16
.L7:
	addl	$1, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L8:
	movq	800072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$800080, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L2:
	movl	$100005, %edx
	jmp	.L7
.L10:
	xorl	%esi, %esi
	movl	$100005, %edx
	xorl	%eax, %eax
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	100005
	.long	100005
	.long	100005
	.long	100005
	.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	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d%d"
.LC3:
	.string	"0"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798768
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1360, %rsp
	.cfi_def_cfa_offset 800128
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 800072(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebx, %ebx
	leaq	400048(%rsp), %r14
	movq	%r12, %rbp
	leaq	.LC2(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	(%r14,%rbx,4), %rdx
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addq	$1, %rbx
	addq	$4, %rbp
	cmpl	%ebx, %ecx
	jg	.L3
	testl	%ecx, %ecx
	jle	.L2
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L10
	movl	%ecx, %edx
	movdqa	.LC0(%rip), %xmm3
	xorl	%eax, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	salq	$4, %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	%xmm0, %xmm1
	movdqa	%xmm3, %xmm2
	pcmpgtd	(%r12,%rax), %xmm1
	pcmpgtd	(%r14,%rax), %xmm2
	pand	%xmm1, %xmm0
	pandn	(%r12,%rax), %xmm1
	por	%xmm1, %xmm0
	movdqa	(%r14,%rax), %xmm1
	addq	$16, %rax
	pand	%xmm2, %xmm1
	pandn	%xmm3, %xmm2
	movdqa	%xmm2, %xmm3
	por	%xmm1, %xmm3
	cmpq	%rdx, %rax
	jne	.L5
	movdqa	%xmm3, %xmm1
	movl	%ecx, %esi
	psrldq	$8, %xmm1
	andl	$-4, %esi
	movdqa	%xmm1, %xmm2
	pcmpgtd	%xmm3, %xmm2
	pand	%xmm2, %xmm3
	pandn	%xmm1, %xmm2
	por	%xmm3, %xmm2
	movdqa	%xmm2, %xmm3
	psrldq	$4, %xmm3
	movdqa	%xmm3, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm3, %xmm1
	por	%xmm2, %xmm1
	movdqa	%xmm0, %xmm2
	psrldq	$8, %xmm2
	movd	%xmm1, %edx
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %eax
	testb	$3, %cl
	je	.L6
.L4:
	movslq	%esi, %rdi
	movl	16(%rsp,%rdi,4), %r8d
	movl	400048(%rsp,%rdi,4), %edi
	cmpl	%r8d, %eax
	cmovl	%r8d, %eax
	cmpl	%edi, %edx
	cmovg	%edi, %edx
	leal	1(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	movl	16(%rsp,%rdi,4), %r8d
	movl	400048(%rsp,%rdi,4), %edi
	cmpl	%r8d, %eax
	cmovl	%r8d, %eax
	cmpl	%edi, %edx
	cmovg	%edi, %edx
	addl	$2, %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movl	16(%rsp,%rsi,4), %ecx
	cmpl	%ecx, %eax
	cmovl	%ecx, %eax
	movl	400048(%rsp,%rsi,4), %ecx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
.L6:
	subl	%eax, %edx
	js	.L16
.L7:
	addl	$1, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L8:
	movq	800072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$800080, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L2:
	movl	$100005, %edx
	jmp	.L7
.L10:
	xorl	%esi, %esi
	movl	$100005, %edx
	xorl	%eax, %eax
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	100005
	.long	100005
	.long	100005
	.long	100005
	.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>

int main(void){
  int n,m,L[100005],R[100005],L1=0,R1=100005;
  scanf("%d %d",&n,&m);
  for(int i=0;i<m;i++){
    scanf("%d%d",&L[i],&R[i]);
  }
  for(int i=0;i<m;i++){
    if(L[i]>L1) L1=L[i];
    if(R1>R[i]) R1=R[i];
    }
  if(R1-L1<0){
    printf("0\n");
    return 0;
  }
  printf("%d\n",R1-L1+1);

  return 0;
}
101000 1
1 100000
 4 2
1 6
2 4
 10 3
3 6
7 7
6 9
 101000 1
1 100100
 101000 1
1 100110
 101000 1
1 100010
 101100 1
2 100110
 8 3
1 7
7 7
1 11
 8 1
1 7
7 7
2 11
 4 1
1 4
2 4

100000
 3
 0
 100005
 100005
 100005
 100004
 1
 7
 4

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>

int main(void){
  int n,m,L[100005],R[100005],L1=0,R1=100005;
  scanf("%d %d",&n,&m);
  for(int i=0;i<m;i++){
    scanf("%d%d",&L[i],&R[i]);
  }
  for(int i=0;i<m;i++){
    if(L[i]>L1) L1=L[i];
    if(R1>R[i]) R1=R[i];
    }
  if(R1-L1<0){
    printf("0\n");
    return 0;
  }
  printf("%d\n",R1-L1+1);

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"0"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1376, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -800080(%rbp)
	movl	$100005, -800076(%rbp)
	leaq	-800084(%rbp), %rdx
	leaq	-800088(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800072(%rbp)
	jmp	.L2
.L3:
	leaq	-400032(%rbp), %rdx
	movl	-800072(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-800064(%rbp), %rcx
	movl	-800072(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -800072(%rbp)
.L2:
	movl	-800084(%rbp), %eax
	cmpl	%eax, -800072(%rbp)
	jl	.L3
	movl	$0, -800068(%rbp)
	jmp	.L4
.L7:
	movl	-800068(%rbp), %eax
	cltq
	movl	-800064(%rbp,%rax,4), %eax
	cmpl	%eax, -800080(%rbp)
	jge	.L5
	movl	-800068(%rbp), %eax
	cltq
	movl	-800064(%rbp,%rax,4), %eax
	movl	%eax, -800080(%rbp)
.L5:
	movl	-800068(%rbp), %eax
	cltq
	movl	-400032(%rbp,%rax,4), %eax
	cmpl	%eax, -800076(%rbp)
	jle	.L6
	movl	-800068(%rbp), %eax
	cltq
	movl	-400032(%rbp,%rax,4), %eax
	movl	%eax, -800076(%rbp)
.L6:
	addl	$1, -800068(%rbp)
.L4:
	movl	-800084(%rbp), %eax
	cmpl	%eax, -800068(%rbp)
	jl	.L7
	movl	-800076(%rbp), %eax
	subl	-800080(%rbp), %eax
	testl	%eax, %eax
	jns	.L8
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L10
.L8:
	movl	-800076(%rbp), %eax
	subl	-800080(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L10:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"0"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1376, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -800080(%rbp)
	movl	$100005, -800076(%rbp)
	leaq	-800084(%rbp), %rdx
	leaq	-800088(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800072(%rbp)
	jmp	.L2
.L3:
	leaq	-400032(%rbp), %rdx
	movl	-800072(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-800064(%rbp), %rcx
	movl	-800072(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -800072(%rbp)
.L2:
	movl	-800084(%rbp), %eax
	cmpl	%eax, -800072(%rbp)
	jl	.L3
	movl	$0, -800068(%rbp)
	jmp	.L4
.L7:
	movl	-800068(%rbp), %eax
	cltq
	movl	-800064(%rbp,%rax,4), %eax
	cmpl	%eax, -800080(%rbp)
	jge	.L5
	movl	-800068(%rbp), %eax
	cltq
	movl	-800064(%rbp,%rax,4), %eax
	movl	%eax, -800080(%rbp)
.L5:
	movl	-800068(%rbp), %eax
	cltq
	movl	-400032(%rbp,%rax,4), %eax
	cmpl	%eax, -800076(%rbp)
	jle	.L6
	movl	-800068(%rbp), %eax
	cltq
	movl	-400032(%rbp,%rax,4), %eax
	movl	%eax, -800076(%rbp)
.L6:
	addl	$1, -800068(%rbp)
.L4:
	movl	-800084(%rbp), %eax
	cmpl	%eax, -800068(%rbp)
	jl	.L7
	movl	-800076(%rbp), %eax
	subl	-800080(%rbp), %eax
	testl	%eax, %eax
	jns	.L8
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L10
.L8:
	movl	-800076(%rbp), %eax
	subl	-800080(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L10:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
