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

```c
#include <stdio.h>
#include <stdlib.h>

typedef struct sort_t{
    int X;
    int L;
}sort;
sort lr[100000];
int comp(const void *a, const void *b)
{
    sort lr1 = *((sort *)a);
    sort lr2 = *((sort *)b);
    int v1 = lr1.X + lr1.L;
    int v2 = lr2.X + lr2.L;

    if (v1 > v2) {
      return 1;
    } else if (v1 < v2) {
      return -1;
    } else {
      return 0;
    }
}

int main(void)
{
    int N, X, L;
    int cnt = 0;
    int min = -1000000000;
    int i;

    scanf("%d", &N);
    for (i = 0; i < N; i++) {
        scanf("%d %d", &lr[i].X, &lr[i].L);
    }
    qsort(lr, N, sizeof(*lr), comp);

    for (i = 0; i < N; i++) {
        int left = lr[i].X - lr[i].L;
        int right = lr[i].X + lr[i].L;
        if (min <= left){
            cnt++;
            min = right;
        }
    }

    printf("%d", cnt);

    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %ecx
	movl	(%rsi), %edx
	xorl	%eax, %eax
	addl	4(%rsi), %edx
	addl	4(%rdi), %ecx
	cmpl	%edx, %ecx
	setl	%al
	negl	%eax
	cmpl	%edx, %ecx
	movl	$1, %edx
	cmovg	%edx, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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
	leaq	lr(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rsi
	testl	%esi, %esi
	jle	.L6
	movq	%r13, %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbx, %rsi
	leaq	4(%rbx), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rsi
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, %esi
	jg	.L7
.L6:
	movl	$8, %edx
	leaq	comp(%rip), %rcx
	movq	%r13, %rdi
	call	qsort@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jle	.L12
	leaq	lr(%rip), %rax
	leal	-1(%rdx), %ecx
	movl	$-1000000000, %edi
	xorl	%r8d, %r8d
	leaq	8(%rax), %rdx
	leaq	(%rdx,%rcx,8), %r9
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	movl	%edx, %esi
	subl	%ecx, %esi
	cmpl	%edi, %esi
	jl	.L9
	leal	(%rcx,%rdx), %edi
	addl	$1, %r8d
.L9:
	addq	$8, %rax
	cmpq	%rax, %r9
	jne	.L10
.L8:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$16, %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
.L12:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L8
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	lr
	.bss
	.align 32
	.type	lr, @object
	.size	lr, 800000
lr:
	.zero	800000
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %ecx
	movl	(%rsi), %edx
	xorl	%eax, %eax
	addl	4(%rsi), %edx
	addl	4(%rdi), %ecx
	cmpl	%edx, %ecx
	setl	%al
	negl	%eax
	cmpl	%edx, %ecx
	movl	$1, %edx
	cmovg	%edx, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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
	leaq	lr(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rsi
	testl	%esi, %esi
	jle	.L6
	movq	%r13, %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbx, %rsi
	leaq	4(%rbx), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rsi
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, %esi
	jg	.L7
.L6:
	movl	$8, %edx
	leaq	comp(%rip), %rcx
	movq	%r13, %rdi
	call	qsort@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jle	.L12
	leaq	lr(%rip), %rax
	leal	-1(%rdx), %ecx
	movl	$-1000000000, %edi
	xorl	%r8d, %r8d
	leaq	8(%rax), %rdx
	leaq	(%rdx,%rcx,8), %r9
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	movl	%edx, %esi
	subl	%ecx, %esi
	cmpl	%edi, %esi
	jl	.L9
	leal	(%rcx,%rdx), %edi
	addl	$1, %r8d
.L9:
	addq	$8, %rax
	cmpq	%rax, %r9
	jne	.L10
.L8:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$16, %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
.L12:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L8
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	lr
	.bss
	.align 32
	.type	lr, @object
	.size	lr, 800000
lr:
	.zero	800000
	.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
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %ecx
	movl	(%rsi), %edx
	xorl	%eax, %eax
	addl	4(%rsi), %edx
	addl	4(%rdi), %ecx
	cmpl	%edx, %ecx
	setl	%al
	negl	%eax
	cmpl	%edx, %ecx
	movl	$1, %edx
	cmovg	%edx, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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
	leaq	lr(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rsi
	testl	%esi, %esi
	jle	.L6
	movq	%r13, %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbx, %rsi
	leaq	4(%rbx), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rsi
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, %esi
	jg	.L7
.L6:
	movl	$8, %edx
	leaq	comp(%rip), %rcx
	movq	%r13, %rdi
	call	qsort@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jle	.L12
	leaq	lr(%rip), %rax
	leal	-1(%rdx), %ecx
	movl	$-1000000000, %edi
	xorl	%r8d, %r8d
	leaq	8(%rax), %rdx
	leaq	(%rdx,%rcx,8), %r9
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	movl	%edx, %esi
	subl	%ecx, %esi
	cmpl	%edi, %esi
	jl	.L9
	leal	(%rcx,%rdx), %edi
	addl	$1, %r8d
.L9:
	addq	$8, %rax
	cmpq	%rax, %r9
	jne	.L10
.L8:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$16, %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
.L12:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L8
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	lr
	.bss
	.align 32
	.type	lr, @object
	.size	lr, 800000
lr:
	.zero	800000
	.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:
```
```c
#include <stdio.h>
#include <stdlib.h>

typedef struct sort_t{
    int X;
    int L;
}sort;
sort lr[100000];
int comp(const void *a, const void *b)
{
    sort lr1 = *((sort *)a);
    sort lr2 = *((sort *)b);
    int v1 = lr1.X + lr1.L;
    int v2 = lr2.X + lr2.L;

    if (v1 > v2) {
      return 1;
    } else if (v1 < v2) {
      return -1;
    } else {
      return 0;
    }
}

int main(void)
{
    int N, X, L;
    int cnt = 0;
    int min = -1000000000;
    int i;

    scanf("%d", &N);
    for (i = 0; i < N; i++) {
        scanf("%d %d", &lr[i].X, &lr[i].L);
    }
    qsort(lr, N, sizeof(*lr), comp);

    for (i = 0; i < N; i++) {
        int left = lr[i].X - lr[i].L;
        int right = lr[i].X + lr[i].L;
        if (min <= left){
            cnt++;
            min = right;
        }
    }

    printf("%d", cnt);

    return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>

typedef struct sort_t{
    int X;
    int L;
}sort;
sort lr[100000];
int comp(const void *a, const void *b)
{
    sort lr1 = *((sort *)a);
    sort lr2 = *((sort *)b);
    int v1 = lr1.X + lr1.L;
    int v2 = lr2.X + lr2.L;

    if (v1 > v2) {
      return 1;
    } else if (v1 < v2) {
      return -1;
    } else {
      return 0;
    }
}

int main(void)
{
    int N, X, L;
    int cnt = 0;
    int min = -1000000000;
    int i;

    scanf("%d", &N);
    for (i = 0; i < N; i++) {
        scanf("%d %d", &lr[i].X, &lr[i].L);
    }
    qsort(lr, N, sizeof(*lr), comp);

    for (i = 0; i < N; i++) {
        int left = lr[i].X - lr[i].L;
        int right = lr[i].X + lr[i].L;
        if (min <= left){
            cnt++;
            min = right;
        }
    }

    printf("%d", cnt);

    return 0;
}```

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.
Optimized Assembly Code:

5
10 1
2 2
4 1
6 1
8 1
 2
8 20
1 13
 4
2 4
4 3
14 3
100 5
 4
4 16
4 3
6 2
101 5
 5
18 1
2 1
4 1
6 1
8 1
 5
10 1
2 2
4 1
6 1
8 2
 2
12 20
1 13
 4
4 4
4 3
14 3
100 5
 2
12 14
1 13
 4
4 4
4 3
28 3
100 5

4 1 3 2 5 3 1 3 1 3
Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>

typedef struct sort_t{
    int X;
    int L;
}sort;
sort lr[100000];
int comp(const void *a, const void *b)
{
    sort lr1 = *((sort *)a);
    sort lr2 = *((sort *)b);
    int v1 = lr1.X + lr1.L;
    int v2 = lr2.X + lr2.L;

    if (v1 > v2) {
      return 1;
    } else if (v1 < v2) {
      return -1;
    } else {
      return 0;
    }
}

int main(void)
{
    int N, X, L;
    int cnt = 0;
    int min = -1000000000;
    int i;

    scanf("%d", &N);
    for (i = 0; i < N; i++) {
        scanf("%d %d", &lr[i].X, &lr[i].L);
    }
    qsort(lr, N, sizeof(*lr), comp);

    for (i = 0; i < N; i++) {
        int left = lr[i].X - lr[i].L;
        int right = lr[i].X + lr[i].L;
        if (min <= left){
            cnt++;
            min = right;
        }
    }

    printf("%d", cnt);

    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %ecx
	movl	(%rsi), %edx
	xorl	%eax, %eax
	addl	4(%rsi), %edx
	addl	4(%rdi), %ecx
	cmpl	%edx, %ecx
	setl	%al
	negl	%eax
	cmpl	%edx, %ecx
	movl	$1, %edx
	cmovg	%edx, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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
	leaq	lr(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rsi
	testl	%esi, %esi
	jle	.L6
	movq	%r13, %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbx, %rsi
	leaq	4(%rbx), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rsi
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, %esi
	jg	.L7
.L6:
	movl	$8, %edx
	leaq	comp(%rip), %rcx
	movq	%r13, %rdi
	call	qsort@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jle	.L12
	leaq	lr(%rip), %rax
	leal	-1(%rdx), %ecx
	movl	$-1000000000, %edi
	xorl	%r8d, %r8d
	leaq	8(%rax), %rdx
	leaq	(%rdx,%rcx,8), %r9
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	movl	%edx, %esi
	subl	%ecx, %esi
	cmpl	%edi, %esi
	jl	.L9
	leal	(%rcx,%rdx), %edi
	addl	$1, %r8d
.L9:
	addq	$8, %rax
	cmpq	%rax, %r9
	jne	.L10
.L8:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$16, %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
.L12:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L8
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	lr
	.bss
	.align 32
	.type	lr, @object
	.size	lr, 800000
lr:
	.zero	800000
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %ecx
	movl	(%rsi), %edx
	xorl	%eax, %eax
	addl	4(%rsi), %edx
	addl	4(%rdi), %ecx
	cmpl	%edx, %ecx
	setl	%al
	negl	%eax
	cmpl	%edx, %ecx
	movl	$1, %edx
	cmovg	%edx, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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
	leaq	lr(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rsi
	testl	%esi, %esi
	jle	.L6
	movq	%r13, %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbx, %rsi
	leaq	4(%rbx), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rsi
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, %esi
	jg	.L7
.L6:
	movl	$8, %edx
	leaq	comp(%rip), %rcx
	movq	%r13, %rdi
	call	qsort@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jle	.L12
	leaq	lr(%rip), %rax
	leal	-1(%rdx), %ecx
	movl	$-1000000000, %edi
	xorl	%r8d, %r8d
	leaq	8(%rax), %rdx
	leaq	(%rdx,%rcx,8), %r9
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	movl	%edx, %esi
	subl	%ecx, %esi
	cmpl	%edi, %esi
	jl	.L9
	leal	(%rcx,%rdx), %edi
	addl	$1, %r8d
.L9:
	addq	$8, %rax
	cmpq	%rax, %r9
	jne	.L10
.L8:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$16, %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
.L12:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L8
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	lr
	.bss
	.align 32
	.type	lr, @object
	.size	lr, 800000
lr:
	.zero	800000
	.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:
```