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>
#include <stdlib.h>

int asc(const void *a, const void *b){
  if(*(long *)a > *(long *)b){
    return 1;
  }else if(*(long *)a == *(long *)b){
    asc(a+1, b+1);
  }else{
    return -1;
  }
}

int main(void){
	int i, j, k;

	int n;
	scanf("%d", &n);

	long pos[50][2] = {};
	for(i = 0; i < n; i++){
		scanf("%ld%ld", &pos[i][0], &pos[i][1]);
	}

	qsort(pos, n, sizeof(long)*2, asc);

	long dif[2500][2] = {};
	for(i = 0; i < n-1; i++){
		for(j = i+1; j < n; j++){
			for(k = 0; ; k++){
				if(dif[k][0] == 0 && dif[k][1] == 0){
					dif[k][0] = pos[j][0]-pos[i][0];
					dif[k][1] = pos[j][1]-pos[i][1];
					break;
				}
			}
		}
	}

	int ans = 0, cnt = 0;
	for(i = 0; ; i++){
		if(dif[i][0] == 0 && dif[i][1] == 0) break;
		cnt = 0;
		for(j = i+1; ;j++){
			if(dif[j][0] == 0 && dif[j][1] == 0) break;
			if(dif[j][0] == dif[i][0] && dif[j][1] == dif[i][1] || dif[j][0] == -dif[i][0] && dif[j][1] == -dif[i][1]) cnt++;
		}
		if(cnt > ans) ans = cnt;
	}

	if(n == 1) printf("1\n");
	else printf("%d\n",n-ans-1);

	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	asc
	.type	asc, @function
asc:
.LFB6:
	.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
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L2
	movl	$1, %eax
	jmp	.L1
.L2:
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jne	.L4
	movq	-16(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	asc
	jmp	.L1
.L4:
	movl	$-1, %eax
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	asc, .-asc
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld%ld"
.LC2:
	.string	"1"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-36864(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3984, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40840(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-40816(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -40836(%rbp)
	jmp	.L7
.L8:
	leaq	-40816(%rbp), %rdx
	movl	-40836(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	$8, %rax
	addq	%rax, %rdx
	leaq	-40816(%rbp), %rcx
	movl	-40836(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40836(%rbp)
.L7:
	movl	-40840(%rbp), %eax
	cmpl	%eax, -40836(%rbp)
	jl	.L8
	movl	-40840(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-40816(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$16, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	leaq	-40016(%rbp), %rax
	movl	$40000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -40836(%rbp)
	jmp	.L9
.L15:
	movl	-40836(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -40832(%rbp)
	jmp	.L10
.L14:
	movl	$0, -40828(%rbp)
.L13:
	movl	-40828(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L11
	movl	-40828(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L11
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40816, %rax
	movq	(%rax), %rax
	movl	-40836(%rbp), %edx
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$40816, %rdx
	movq	(%rdx), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movl	-40828(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	%rdx, (%rax)
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40808, %rax
	movq	(%rax), %rax
	movl	-40836(%rbp), %edx
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$40808, %rdx
	movq	(%rdx), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movl	-40828(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	%rdx, (%rax)
	jmp	.L30
.L11:
	addl	$1, -40828(%rbp)
	jmp	.L13
.L30:
	addl	$1, -40832(%rbp)
.L10:
	movl	-40840(%rbp), %eax
	cmpl	%eax, -40832(%rbp)
	jl	.L14
	addl	$1, -40836(%rbp)
.L9:
	movl	-40840(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -40836(%rbp)
	jl	.L15
	movl	$0, -40824(%rbp)
	movl	$0, -40820(%rbp)
	movl	$0, -40836(%rbp)
.L25:
	movl	-40836(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L16
	movl	-40836(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	.L33
.L16:
	movl	$0, -40820(%rbp)
	movl	-40836(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -40832(%rbp)
.L23:
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L18
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	.L34
.L18:
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	(%rax), %rdx
	movl	-40836(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jne	.L20
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	(%rax), %rdx
	movl	-40836(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	je	.L21
.L20:
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	(%rax), %rax
	movl	-40836(%rbp), %edx
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$40016, %rdx
	movq	(%rdx), %rdx
	negq	%rdx
	cmpq	%rdx, %rax
	jne	.L22
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	(%rax), %rax
	movl	-40836(%rbp), %edx
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$40008, %rdx
	movq	(%rdx), %rdx
	negq	%rdx
	cmpq	%rdx, %rax
	jne	.L22
.L21:
	addl	$1, -40820(%rbp)
.L22:
	addl	$1, -40832(%rbp)
	jmp	.L23
.L34:
	nop
	movl	-40820(%rbp), %eax
	cmpl	-40824(%rbp), %eax
	jle	.L24
	movl	-40820(%rbp), %eax
	movl	%eax, -40824(%rbp)
.L24:
	addl	$1, -40836(%rbp)
	jmp	.L25
.L33:
	nop
	movl	-40840(%rbp), %eax
	cmpl	$1, %eax
	jne	.L26
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L27
.L26:
	movl	-40840(%rbp), %eax
	subl	-40824(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L27:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	asc
	.type	asc, @function
asc:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rdx
	movq	(%rsi), %rcx
	cmpq	%rdx, %rcx
	jl	.L4
	movl	$1, %eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	movq	(%rdi,%rax), %rdx
	addq	$1, %rax
	movq	-1(%rsi,%rax), %rcx
	cmpq	%rcx, %rdx
	jg	.L4
.L3:
	cmpq	%rcx, %rdx
	je	.L8
	movl	$-1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	asc, .-asc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld%ld"
.LC2:
	.string	"1"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-36864(%rsp), %r11
	.cfi_def_cfa 11, 36904
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3976, %rsp
	.cfi_def_cfa_offset 40880
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40824(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %r12
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	movl	$100, %ecx
	movq	%r12, %rdi
	rep stosq
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L10
	movq	%r12, %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
.L11:
	leaq	8(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addl	$1, %ebp
	addq	$16, %rbx
	cmpl	%ebp, %eax
	jg	.L11
.L10:
	movslq	%eax, %rsi
	movl	$16, %edx
	leaq	48(%rsp), %rbp
	movq	%r12, %rdi
	leaq	asc(%rip), %rcx
	call	qsort@PLT
	leaq	816(%rsp), %rdi
	movl	$40000, %edx
	xorl	%esi, %esi
	call	memset@PLT
	movl	12(%rsp), %r9d
	xorl	%r11d, %r11d
	xorl	%r8d, %r8d
	movq	%rax, %rdi
	leaq	32(%rsp), %r10
	leal	-1(%r9), %ebx
	testl	%ebx, %ebx
	jle	.L20
.L19:
	addl	$1, %r8d
	cmpl	%r8d, %r9d
	jle	.L15
	movl	%ebx, %esi
	movdqa	-16(%r10), %xmm1
	movq	%r10, %rcx
	subl	%r8d, %esi
	addq	%r11, %rsi
	salq	$4, %rsi
	addq	%rbp, %rsi
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%rdi, %rax
	xorl	%edx, %edx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L16:
	addl	$1, %edx
	addq	$16, %rax
.L18:
	cmpq	$0, (%rax)
	jne	.L16
	cmpq	$0, 8(%rax)
	jne	.L16
	movdqa	(%rcx), %xmm0
	movslq	%edx, %rdx
	addq	$16, %rcx
	salq	$4, %rdx
	psubq	%xmm1, %xmm0
	movaps	%xmm0, (%rdi,%rdx)
	cmpq	%rsi, %rcx
	jne	.L17
.L15:
	addq	$1, %r11
	addq	$16, %r10
	cmpl	%r8d, %ebx
	jne	.L19
.L20:
	leaq	840(%rsp), %rdi
	xorl	%r10d, %r10d
	.p2align 4,,10
	.p2align 3
.L13:
	movq	-24(%rdi), %rcx
	testq	%rcx, %rcx
	jne	.L32
	cmpq	$0, -16(%rdi)
	je	.L22
.L32:
	movq	%rcx, %rsi
	movq	%rdi, %rax
	xorl	%r8d, %r8d
	negq	%rsi
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L25:
	cmpq	%rsi, %rdx
	je	.L38
.L27:
	addq	$16, %rax
.L28:
	movq	-8(%rax), %rdx
	testq	%rdx, %rdx
	jne	.L23
	cmpq	$0, (%rax)
	je	.L24
.L23:
	cmpq	%rdx, %rcx
	jne	.L25
	movq	-16(%rdi), %rbx
	cmpq	%rbx, (%rax)
	jne	.L25
	addl	$1, %r8d
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L38:
	movq	-16(%rdi), %rdx
	addq	(%rax), %rdx
	jne	.L27
	addl	$1, %r8d
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L24:
	cmpl	%r8d, %r10d
	cmovl	%r8d, %r10d
	addq	$16, %rdi
	jmp	.L13
.L22:
	cmpl	$1, %r9d
	je	.L39
	movl	%r9d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	subl	%r10d, %edx
	subl	$1, %edx
	call	__printf_chk@PLT
.L30:
	movq	40824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L40
	addq	$40840, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L39:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L30
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	asc
	.type	asc, @function
asc:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rdx
	movq	(%rsi), %rcx
	cmpq	%rdx, %rcx
	jl	.L4
	movl	$1, %eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	movq	(%rdi,%rax), %rdx
	addq	$1, %rax
	movq	-1(%rsi,%rax), %rcx
	cmpq	%rcx, %rdx
	jg	.L4
.L3:
	cmpq	%rcx, %rdx
	je	.L8
	movl	$-1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	asc, .-asc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld%ld"
.LC2:
	.string	"1"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-36864(%rsp), %r11
	.cfi_def_cfa 11, 36904
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3976, %rsp
	.cfi_def_cfa_offset 40880
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40824(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %r12
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	movl	$100, %ecx
	movq	%r12, %rdi
	rep stosq
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L10
	movq	%r12, %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
.L11:
	leaq	8(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addl	$1, %ebp
	addq	$16, %rbx
	cmpl	%ebp, %eax
	jg	.L11
.L10:
	movslq	%eax, %rsi
	movl	$16, %edx
	leaq	48(%rsp), %rbp
	movq	%r12, %rdi
	leaq	asc(%rip), %rcx
	call	qsort@PLT
	leaq	816(%rsp), %rdi
	movl	$40000, %edx
	xorl	%esi, %esi
	call	memset@PLT
	movl	12(%rsp), %r9d
	xorl	%r11d, %r11d
	xorl	%r8d, %r8d
	movq	%rax, %rdi
	leaq	32(%rsp), %r10
	leal	-1(%r9), %ebx
	testl	%ebx, %ebx
	jle	.L20
.L19:
	addl	$1, %r8d
	cmpl	%r8d, %r9d
	jle	.L15
	movl	%ebx, %esi
	movdqa	-16(%r10), %xmm1
	movq	%r10, %rcx
	subl	%r8d, %esi
	addq	%r11, %rsi
	salq	$4, %rsi
	addq	%rbp, %rsi
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%rdi, %rax
	xorl	%edx, %edx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L16:
	addl	$1, %edx
	addq	$16, %rax
.L18:
	cmpq	$0, (%rax)
	jne	.L16
	cmpq	$0, 8(%rax)
	jne	.L16
	movdqa	(%rcx), %xmm0
	movslq	%edx, %rdx
	addq	$16, %rcx
	salq	$4, %rdx
	psubq	%xmm1, %xmm0
	movaps	%xmm0, (%rdi,%rdx)
	cmpq	%rsi, %rcx
	jne	.L17
.L15:
	addq	$1, %r11
	addq	$16, %r10
	cmpl	%r8d, %ebx
	jne	.L19
.L20:
	leaq	840(%rsp), %rdi
	xorl	%r10d, %r10d
	.p2align 4,,10
	.p2align 3
.L13:
	movq	-24(%rdi), %rcx
	testq	%rcx, %rcx
	jne	.L32
	cmpq	$0, -16(%rdi)
	je	.L22
.L32:
	movq	%rcx, %rsi
	movq	%rdi, %rax
	xorl	%r8d, %r8d
	negq	%rsi
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L25:
	cmpq	%rsi, %rdx
	je	.L38
.L27:
	addq	$16, %rax
.L28:
	movq	-8(%rax), %rdx
	testq	%rdx, %rdx
	jne	.L23
	cmpq	$0, (%rax)
	je	.L24
.L23:
	cmpq	%rdx, %rcx
	jne	.L25
	movq	-16(%rdi), %rbx
	cmpq	%rbx, (%rax)
	jne	.L25
	addl	$1, %r8d
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L38:
	movq	-16(%rdi), %rdx
	addq	(%rax), %rdx
	jne	.L27
	addl	$1, %r8d
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L24:
	cmpl	%r8d, %r10d
	cmovl	%r8d, %r10d
	addq	$16, %rdi
	jmp	.L13
.L22:
	cmpl	$1, %r9d
	je	.L39
	movl	%r9d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	subl	%r10d, %edx
	subl	$1, %edx
	call	__printf_chk@PLT
.L30:
	movq	40824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L40
	addq	$40840, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L39:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L30
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

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

int asc(const void *a, const void *b){
  if(*(long *)a > *(long *)b){
    return 1;
  }else if(*(long *)a == *(long *)b){
    asc(a+1, b+1);
  }else{
    return -1;
  }
}

int main(void){
	int i, j, k;

	int n;
	scanf("%d", &n);

	long pos[50][2] = {};
	for(i = 0; i < n; i++){
		scanf("%ld%ld", &pos[i][0], &pos[i][1]);
	}

	qsort(pos, n, sizeof(long)*2, asc);

	long dif[2500][2] = {};
	for(i = 0; i < n-1; i++){
		for(j = i+1; j < n; j++){
			for(k = 0; ; k++){
				if(dif[k][0] == 0 && dif[k][1] == 0){
					dif[k][0] = pos[j][0]-pos[i][0];
					dif[k][1] = pos[j][1]-pos[i][1];
					break;
				}
			}
		}
	}

	int ans = 0, cnt = 0;
	for(i = 0; ; i++){
		if(dif[i][0] == 0 && dif[i][1] == 0) break;
		cnt = 0;
		for(j = i+1; ;j++){
			if(dif[j][0] == 0 && dif[j][1] == 0) break;
			if(dif[j][0] == dif[i][0] && dif[j][1] == dif[i][1] || dif[j][0] == -dif[i][0] && dif[j][1] == -dif[i][1]) cnt++;
		}
		if(cnt > ans) ans = cnt;
	}

	if(n == 1) printf("1\n");
	else printf("%d\n",n-ans-1);

	return 0;
}

3
1 4
4 6
11 8
 2
1 2
2 2
 4
1 1
1 4
2 1
2 2
 3
1 4
4 6
11 3
 3
0 4
4 6
11 3
 3
-1 4
4 6
11 3
 3
-2 4
4 6
11 3
 3
-2 4
5 6
11 3
 3
-2 4
5 6
11 4
 3
-1 4
5 6
11 4

2
 1
 3
 2
 2
 2
 2
 2
 2
 2

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>
#include <stdlib.h>

int asc(const void *a, const void *b){
  if(*(long *)a > *(long *)b){
    return 1;
  }else if(*(long *)a == *(long *)b){
    asc(a+1, b+1);
  }else{
    return -1;
  }
}

int main(void){
	int i, j, k;

	int n;
	scanf("%d", &n);

	long pos[50][2] = {};
	for(i = 0; i < n; i++){
		scanf("%ld%ld", &pos[i][0], &pos[i][1]);
	}

	qsort(pos, n, sizeof(long)*2, asc);

	long dif[2500][2] = {};
	for(i = 0; i < n-1; i++){
		for(j = i+1; j < n; j++){
			for(k = 0; ; k++){
				if(dif[k][0] == 0 && dif[k][1] == 0){
					dif[k][0] = pos[j][0]-pos[i][0];
					dif[k][1] = pos[j][1]-pos[i][1];
					break;
				}
			}
		}
	}

	int ans = 0, cnt = 0;
	for(i = 0; ; i++){
		if(dif[i][0] == 0 && dif[i][1] == 0) break;
		cnt = 0;
		for(j = i+1; ;j++){
			if(dif[j][0] == 0 && dif[j][1] == 0) break;
			if(dif[j][0] == dif[i][0] && dif[j][1] == dif[i][1] || dif[j][0] == -dif[i][0] && dif[j][1] == -dif[i][1]) cnt++;
		}
		if(cnt > ans) ans = cnt;
	}

	if(n == 1) printf("1\n");
	else printf("%d\n",n-ans-1);

	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	asc
	.type	asc, @function
asc:
.LFB6:
	.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
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L2
	movl	$1, %eax
	jmp	.L1
.L2:
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jne	.L4
	movq	-16(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	asc
	jmp	.L1
.L4:
	movl	$-1, %eax
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	asc, .-asc
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld%ld"
.LC2:
	.string	"1"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-36864(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3984, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40840(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-40816(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -40836(%rbp)
	jmp	.L7
.L8:
	leaq	-40816(%rbp), %rdx
	movl	-40836(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	$8, %rax
	addq	%rax, %rdx
	leaq	-40816(%rbp), %rcx
	movl	-40836(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40836(%rbp)
.L7:
	movl	-40840(%rbp), %eax
	cmpl	%eax, -40836(%rbp)
	jl	.L8
	movl	-40840(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-40816(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$16, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	leaq	-40016(%rbp), %rax
	movl	$40000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -40836(%rbp)
	jmp	.L9
.L15:
	movl	-40836(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -40832(%rbp)
	jmp	.L10
.L14:
	movl	$0, -40828(%rbp)
.L13:
	movl	-40828(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L11
	movl	-40828(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L11
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40816, %rax
	movq	(%rax), %rax
	movl	-40836(%rbp), %edx
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$40816, %rdx
	movq	(%rdx), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movl	-40828(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	%rdx, (%rax)
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40808, %rax
	movq	(%rax), %rax
	movl	-40836(%rbp), %edx
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$40808, %rdx
	movq	(%rdx), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movl	-40828(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	%rdx, (%rax)
	jmp	.L30
.L11:
	addl	$1, -40828(%rbp)
	jmp	.L13
.L30:
	addl	$1, -40832(%rbp)
.L10:
	movl	-40840(%rbp), %eax
	cmpl	%eax, -40832(%rbp)
	jl	.L14
	addl	$1, -40836(%rbp)
.L9:
	movl	-40840(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -40836(%rbp)
	jl	.L15
	movl	$0, -40824(%rbp)
	movl	$0, -40820(%rbp)
	movl	$0, -40836(%rbp)
.L25:
	movl	-40836(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L16
	movl	-40836(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	.L33
.L16:
	movl	$0, -40820(%rbp)
	movl	-40836(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -40832(%rbp)
.L23:
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L18
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	.L34
.L18:
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	(%rax), %rdx
	movl	-40836(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jne	.L20
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	(%rax), %rdx
	movl	-40836(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	je	.L21
.L20:
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	(%rax), %rax
	movl	-40836(%rbp), %edx
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$40016, %rdx
	movq	(%rdx), %rdx
	negq	%rdx
	cmpq	%rdx, %rax
	jne	.L22
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	(%rax), %rax
	movl	-40836(%rbp), %edx
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$40008, %rdx
	movq	(%rdx), %rdx
	negq	%rdx
	cmpq	%rdx, %rax
	jne	.L22
.L21:
	addl	$1, -40820(%rbp)
.L22:
	addl	$1, -40832(%rbp)
	jmp	.L23
.L34:
	nop
	movl	-40820(%rbp), %eax
	cmpl	-40824(%rbp), %eax
	jle	.L24
	movl	-40820(%rbp), %eax
	movl	%eax, -40824(%rbp)
.L24:
	addl	$1, -40836(%rbp)
	jmp	.L25
.L33:
	nop
	movl	-40840(%rbp), %eax
	cmpl	$1, %eax
	jne	.L26
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L27
.L26:
	movl	-40840(%rbp), %eax
	subl	-40824(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L27:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	asc
	.type	asc, @function
asc:
.LFB6:
	.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
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L2
	movl	$1, %eax
	jmp	.L1
.L2:
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jne	.L4
	movq	-16(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	asc
	jmp	.L1
.L4:
	movl	$-1, %eax
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	asc, .-asc
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld%ld"
.LC2:
	.string	"1"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-36864(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3984, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40840(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-40816(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -40836(%rbp)
	jmp	.L7
.L8:
	leaq	-40816(%rbp), %rdx
	movl	-40836(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	$8, %rax
	addq	%rax, %rdx
	leaq	-40816(%rbp), %rcx
	movl	-40836(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40836(%rbp)
.L7:
	movl	-40840(%rbp), %eax
	cmpl	%eax, -40836(%rbp)
	jl	.L8
	movl	-40840(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-40816(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$16, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	leaq	-40016(%rbp), %rax
	movl	$40000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -40836(%rbp)
	jmp	.L9
.L15:
	movl	-40836(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -40832(%rbp)
	jmp	.L10
.L14:
	movl	$0, -40828(%rbp)
.L13:
	movl	-40828(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L11
	movl	-40828(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L11
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40816, %rax
	movq	(%rax), %rax
	movl	-40836(%rbp), %edx
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$40816, %rdx
	movq	(%rdx), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movl	-40828(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	%rdx, (%rax)
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40808, %rax
	movq	(%rax), %rax
	movl	-40836(%rbp), %edx
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$40808, %rdx
	movq	(%rdx), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movl	-40828(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	%rdx, (%rax)
	jmp	.L30
.L11:
	addl	$1, -40828(%rbp)
	jmp	.L13
.L30:
	addl	$1, -40832(%rbp)
.L10:
	movl	-40840(%rbp), %eax
	cmpl	%eax, -40832(%rbp)
	jl	.L14
	addl	$1, -40836(%rbp)
.L9:
	movl	-40840(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -40836(%rbp)
	jl	.L15
	movl	$0, -40824(%rbp)
	movl	$0, -40820(%rbp)
	movl	$0, -40836(%rbp)
.L25:
	movl	-40836(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L16
	movl	-40836(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	.L33
.L16:
	movl	$0, -40820(%rbp)
	movl	-40836(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -40832(%rbp)
.L23:
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L18
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	.L34
.L18:
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	(%rax), %rdx
	movl	-40836(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jne	.L20
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	(%rax), %rdx
	movl	-40836(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	je	.L21
.L20:
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40016, %rax
	movq	(%rax), %rax
	movl	-40836(%rbp), %edx
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$40016, %rdx
	movq	(%rdx), %rdx
	negq	%rdx
	cmpq	%rdx, %rax
	jne	.L22
	movl	-40832(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$40008, %rax
	movq	(%rax), %rax
	movl	-40836(%rbp), %edx
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$40008, %rdx
	movq	(%rdx), %rdx
	negq	%rdx
	cmpq	%rdx, %rax
	jne	.L22
.L21:
	addl	$1, -40820(%rbp)
.L22:
	addl	$1, -40832(%rbp)
	jmp	.L23
.L34:
	nop
	movl	-40820(%rbp), %eax
	cmpl	-40824(%rbp), %eax
	jle	.L24
	movl	-40820(%rbp), %eax
	movl	%eax, -40824(%rbp)
.L24:
	addl	$1, -40836(%rbp)
	jmp	.L25
.L33:
	nop
	movl	-40840(%rbp), %eax
	cmpl	$1, %eax
	jne	.L26
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L27
.L26:
	movl	-40840(%rbp), %eax
	subl	-40824(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L27:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
