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){
  return *(int *)a - *(int *)b;
}

int
main(int argc, char *argv[])
{
  int n, x[51], y[51];
  scanf("%d", &n);
  int k = 0; int ymin = 1000000000;
  for(int i = 0; i < n; i++){
    scanf("%d %d", &x[i], &y[i]);
  }

  int p, q; int used[50]; int z; int min = 100; int arr[50]; int cnt;

  if(n == 1) min = 1;

  for(int i = 0; i < n - 1; i++){
    for(int j = i + 1; j < n; j++){
      for(int r = 0; r < n; r++){
	used[r] = 0;
      }
      z = 0;
      p = x[i] - x[j];
      q = y[i] - y[j];
      if(p != 0){
	for(int k = 0; k < n; k++){
	  if(used[k] == 0){
	    cnt = 0;
	    for(int l = 0; l < n; l++){
	      if(used[l] == 0 && (x[k] - x[l]) % p == 0 && ((x[k] - x[l]) / p) * q == y[k] - y[l]){
		used[l] = 1;
		arr[cnt++] = (x[k] - x[l])/p;
	      }
	    }
	   
	    if(cnt == 1) z++;
	    else{
	      qsort(arr, cnt, sizeof(int), asc);
	     
	      z++;
	      for(int r = 1; r < cnt; r++){
	
		if(arr[r - 1] + 1 != arr[r]) z++;
	      }
	      
	    }
	  }
	}
      }
      else{
	for(int k = 0; k < n; k++){
	  if(used[k] == 0){
	    cnt = 0;
	    for(int l = 0; l < n; l++){
	      if(used[l] == 0 && (y[k] - y[l]) % q == 0 && ((y[k] - y[l]) / q) * p == x[k] - x[l]){
		used[l] = 1;
		arr[cnt++] = (y[k] - y[l])/q;
	      }
	    }
	    if(cnt == 1) z++;
	    else{
	      qsort(arr, cnt, sizeof(int), asc);
	     
	      z++;
	      for(int r = 1; r < cnt; r++){
		
		if(arr[r - 1] + 1 != arr[r]) z++;
	      }
	      
	    }
	  }
	}
      }
      if(min > z) min = z;
    }
  }

  printf("%d\n", min);

  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
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	asc, .-asc
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.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
	subq	$944, %rsp
	movl	%edi, -932(%rbp)
	movq	%rsi, -944(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-920(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -864(%rbp)
	movl	$1000000000, -860(%rbp)
	movl	$0, -916(%rbp)
	jmp	.L4
.L5:
	leaq	-224(%rbp), %rdx
	movl	-916(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-432(%rbp), %rcx
	movl	-916(%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, -916(%rbp)
.L4:
	movl	-920(%rbp), %eax
	cmpl	%eax, -916(%rbp)
	jl	.L5
	movl	$100, -908(%rbp)
	movl	-920(%rbp), %eax
	cmpl	$1, %eax
	jne	.L6
	movl	$1, -908(%rbp)
.L6:
	movl	$0, -900(%rbp)
	jmp	.L7
.L35:
	movl	-900(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -896(%rbp)
	jmp	.L8
.L34:
	movl	$0, -892(%rbp)
	jmp	.L9
.L10:
	movl	-892(%rbp), %eax
	cltq
	movl	$0, -848(%rbp,%rax,4)
	addl	$1, -892(%rbp)
.L9:
	movl	-920(%rbp), %eax
	cmpl	%eax, -892(%rbp)
	jl	.L10
	movl	$0, -912(%rbp)
	movl	-900(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %edx
	movl	-896(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -856(%rbp)
	movl	-900(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-896(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -852(%rbp)
	cmpl	$0, -856(%rbp)
	je	.L11
	movl	$0, -888(%rbp)
	jmp	.L12
.L21:
	movl	-888(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L13
	movl	$0, -904(%rbp)
	movl	$0, -884(%rbp)
	jmp	.L14
.L16:
	movl	-884(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L15
	movl	-888(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %edx
	movl	-884(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltd
	idivl	-856(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L15
	movl	-888(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %edx
	movl	-884(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltd
	idivl	-856(%rbp)
	imull	-852(%rbp), %eax
	movl	%eax, %edx
	movl	-888(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %ecx
	movl	-884(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %esi
	movl	%ecx, %eax
	subl	%esi, %eax
	cmpl	%eax, %edx
	jne	.L15
	movl	-884(%rbp), %eax
	cltq
	movl	$1, -848(%rbp,%rax,4)
	movl	-888(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %edx
	movl	-884(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %eax
	subl	%eax, %edx
	movl	-904(%rbp), %ecx
	leal	1(%rcx), %eax
	movl	%eax, -904(%rbp)
	movl	%edx, %eax
	cltd
	idivl	-856(%rbp)
	movl	%eax, %edx
	movslq	%ecx, %rax
	movl	%edx, -640(%rbp,%rax,4)
.L15:
	addl	$1, -884(%rbp)
.L14:
	movl	-920(%rbp), %eax
	cmpl	%eax, -884(%rbp)
	jl	.L16
	cmpl	$1, -904(%rbp)
	jne	.L17
	addl	$1, -912(%rbp)
	jmp	.L13
.L17:
	movl	-904(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-640(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	addl	$1, -912(%rbp)
	movl	$1, -880(%rbp)
	jmp	.L18
.L20:
	movl	-880(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-640(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-880(%rbp), %eax
	cltq
	movl	-640(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L19
	addl	$1, -912(%rbp)
.L19:
	addl	$1, -880(%rbp)
.L18:
	movl	-880(%rbp), %eax
	cmpl	-904(%rbp), %eax
	jl	.L20
.L13:
	addl	$1, -888(%rbp)
.L12:
	movl	-920(%rbp), %eax
	cmpl	%eax, -888(%rbp)
	jl	.L21
	jmp	.L22
.L11:
	movl	$0, -876(%rbp)
	jmp	.L23
.L32:
	movl	-876(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L24
	movl	$0, -904(%rbp)
	movl	$0, -872(%rbp)
	jmp	.L25
.L27:
	movl	-872(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L26
	movl	-876(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-872(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltd
	idivl	-852(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L26
	movl	-876(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-872(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltd
	idivl	-852(%rbp)
	imull	-856(%rbp), %eax
	movl	%eax, %edx
	movl	-876(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %ecx
	movl	-872(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %esi
	movl	%ecx, %eax
	subl	%esi, %eax
	cmpl	%eax, %edx
	jne	.L26
	movl	-872(%rbp), %eax
	cltq
	movl	$1, -848(%rbp,%rax,4)
	movl	-876(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-872(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	subl	%eax, %edx
	movl	-904(%rbp), %ecx
	leal	1(%rcx), %eax
	movl	%eax, -904(%rbp)
	movl	%edx, %eax
	cltd
	idivl	-852(%rbp)
	movl	%eax, %edx
	movslq	%ecx, %rax
	movl	%edx, -640(%rbp,%rax,4)
.L26:
	addl	$1, -872(%rbp)
.L25:
	movl	-920(%rbp), %eax
	cmpl	%eax, -872(%rbp)
	jl	.L27
	cmpl	$1, -904(%rbp)
	jne	.L28
	addl	$1, -912(%rbp)
	jmp	.L24
.L28:
	movl	-904(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-640(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	addl	$1, -912(%rbp)
	movl	$1, -868(%rbp)
	jmp	.L29
.L31:
	movl	-868(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-640(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-868(%rbp), %eax
	cltq
	movl	-640(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L30
	addl	$1, -912(%rbp)
.L30:
	addl	$1, -868(%rbp)
.L29:
	movl	-868(%rbp), %eax
	cmpl	-904(%rbp), %eax
	jl	.L31
.L24:
	addl	$1, -876(%rbp)
.L23:
	movl	-920(%rbp), %eax
	cmpl	%eax, -876(%rbp)
	jl	.L32
.L22:
	movl	-908(%rbp), %eax
	cmpl	-912(%rbp), %eax
	jle	.L33
	movl	-912(%rbp), %eax
	movl	%eax, -908(%rbp)
.L33:
	addl	$1, -896(%rbp)
.L8:
	movl	-920(%rbp), %eax
	cmpl	%eax, -896(%rbp)
	jl	.L34
	addl	$1, -900(%rbp)
.L7:
	movl	-920(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -900(%rbp)
	jl	.L35
	movl	-908(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	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
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	asc, .-asc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%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	$936, %rsp
	.cfi_def_cfa_offset 992
	movq	%fs:40, %rax
	movq	%rax, 920(%rsp)
	xorl	%eax, %eax
	leaq	76(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %r15d
	testl	%r15d, %r15d
	jle	.L4
	leaq	496(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	704(%rsp), %r13
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	0(%r13,%rbx,4), %rdx
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %r15d
	addq	$1, %rbx
	addq	$4, %rbp
	cmpl	%ebx, %r15d
	jg	.L5
	movl	$1, 12(%rsp)
	cmpl	$1, %r15d
	je	.L6
.L4:
	cmpl	$1, %r15d
	jle	.L127
	movq	$1, 56(%rsp)
	leal	-1(%r15), %ebp
	movl	$100, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L35:
	movq	56(%rsp), %r9
	cmpl	%r9d, %r15d
	jle	.L7
	movq	%r9, %r10
	leaq	496(%rsp), %r12
	leaq	80(%rsp), %rbx
	movl	%r15d, %ecx
	leaq	704(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L34:
	movl	%ebp, %eax
	testl	%ecx, %ecx
	movq	%rbx, %rdi
	movq	%r9, 32(%rsp)
	leaq	4(,%rax,4), %rdx
	movl	$4, %eax
	movq	%r10, 24(%rsp)
	cmovle	%rax, %rdx
	xorl	%esi, %esi
	movl	%ecx, 16(%rsp)
	call	memset@PLT
	movq	32(%rsp), %r9
	movq	24(%rsp), %r10
	movl	16(%rsp), %ecx
	movl	-4(%r12,%r9,4), %r15d
	movl	-4(%r13,%r9,4), %r14d
	subl	0(%r13,%r10,4), %r14d
	subl	(%r12,%r10,4), %r15d
	jne	.L8
	xorl	%r8d, %r8d
	xorl	%r15d, %r15d
	leaq	288(%rsp), %rdi
	testl	%ecx, %ecx
	jg	.L9
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$1, %r15
	cmpl	%r15d, %ecx
	jle	.L126
.L9:
	movl	(%rbx,%r15,4), %ebp
	testl	%ebp, %ebp
	jne	.L23
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L25:
	movl	(%rbx,%rsi,4), %eax
	testl	%eax, %eax
	jne	.L24
	movl	0(%r13,%r15,4), %eax
	subl	0(%r13,%rsi,4), %eax
	cltd
	idivl	%r14d
	testl	%edx, %edx
	jne	.L24
	movl	(%r12,%rsi,4), %edx
	cmpl	%edx, (%r12,%r15,4)
	jne	.L24
	movslq	%ebp, %rdx
	movl	$1, (%rbx,%rsi,4)
	addl	$1, %ebp
	movl	%eax, 288(%rsp,%rdx,4)
	.p2align 4,,10
	.p2align 3
.L24:
	addq	$1, %rsi
	cmpl	%esi, %ecx
	jg	.L25
	addl	$1, %r8d
	cmpl	$1, %ebp
	je	.L23
	movslq	%ebp, %rsi
	movl	$4, %edx
	movq	%r9, 40(%rsp)
	leaq	asc(%rip), %rcx
	movq	%r10, 32(%rsp)
	movl	%r8d, 24(%rsp)
	movq	%rdi, 16(%rsp)
	call	qsort@PLT
	cmpl	$1, %ebp
	movq	16(%rsp), %rdi
	movl	24(%rsp), %r8d
	movq	32(%rsp), %r10
	movq	40(%rsp), %r9
	jle	.L29
	leal	-2(%rbp), %eax
	leal	-1(%rbp), %edx
	cmpl	$2, %eax
	jbe	.L41
	movdqa	.LC2(%rip), %xmm0
	movl	%edx, %eax
	paddd	288(%rsp), %xmm0
	movdqu	292(%rsp), %xmm4
	shrl	$2, %eax
	pcmpeqd	%xmm4, %xmm0
	pandn	.LC2(%rip), %xmm0
	cmpl	$1, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	pxor	%xmm2, %xmm2
	paddd	304(%rsp), %xmm1
	movdqu	308(%rsp), %xmm6
	pcmpeqd	%xmm6, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$2, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	movdqu	324(%rsp), %xmm7
	paddd	320(%rsp), %xmm1
	pcmpeqd	%xmm7, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$3, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	movdqu	340(%rsp), %xmm6
	paddd	336(%rsp), %xmm1
	pcmpeqd	%xmm6, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$4, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	movdqu	356(%rsp), %xmm4
	paddd	352(%rsp), %xmm1
	pcmpeqd	%xmm4, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$5, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	movdqu	372(%rsp), %xmm6
	paddd	368(%rsp), %xmm1
	pcmpeqd	%xmm6, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$6, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	movdqu	388(%rsp), %xmm3
	paddd	384(%rsp), %xmm1
	pcmpeqd	%xmm3, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$7, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	movdqu	404(%rsp), %xmm7
	paddd	400(%rsp), %xmm1
	pcmpeqd	%xmm7, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$8, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	movdqu	420(%rsp), %xmm3
	paddd	416(%rsp), %xmm1
	pcmpeqd	%xmm3, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$9, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	movdqu	436(%rsp), %xmm6
	paddd	432(%rsp), %xmm1
	pcmpeqd	%xmm6, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$10, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	movdqu	452(%rsp), %xmm6
	paddd	448(%rsp), %xmm1
	pcmpeqd	%xmm6, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$11, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	movdqu	468(%rsp), %xmm7
	paddd	464(%rsp), %xmm1
	pcmpeqd	%xmm7, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	.p2align 4,,10
	.p2align 3
.L28:
	movdqa	%xmm0, %xmm1
	movl	%edx, %ecx
	psrldq	$8, %xmm1
	andl	$-4, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%eax, %r8d
	leal	1(%rcx), %eax
	cmpl	%ecx, %edx
	je	.L29
.L27:
	movslq	%eax, %rcx
	movl	288(%rsp,%rcx,4), %edx
	movl	284(%rsp,%rcx,4), %ecx
	addl	$1, %ecx
	cmpl	%edx, %ecx
	setne	%cl
	movzbl	%cl, %ecx
	addl	%ecx, %r8d
	leal	1(%rax), %ecx
	cmpl	%ecx, %ebp
	jle	.L29
	movslq	%ecx, %rcx
	addl	$1, %edx
	movl	288(%rsp,%rcx,4), %ecx
	cmpl	%ecx, %edx
	setne	%dl
	addl	$2, %eax
	movzbl	%dl, %edx
	addl	%edx, %r8d
	cmpl	%eax, %ebp
	jle	.L29
	cltq
	addl	$1, %ecx
	cmpl	288(%rsp,%rax,4), %ecx
	je	.L29
	addl	$1, %r8d
.L29:
	movl	76(%rsp), %ecx
	addq	$1, %r15
	cmpl	%r15d, %ecx
	jg	.L9
	.p2align 4,,10
	.p2align 3
.L126:
	leal	-1(%rcx), %ebp
.L10:
	movl	12(%rsp), %eax
	cmpl	%r8d, %eax
	cmovle	%eax, %r8d
	addq	$1, %r10
	movl	%r8d, 12(%rsp)
	cmpl	%r10d, %ecx
	jg	.L34
	movl	%ecx, %r15d
.L7:
	addq	$1, 56(%rsp)
	movq	56(%rsp), %rax
	subl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L35
.L6:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	920(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L128
	addq	$936, %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
.L8:
	.cfi_restore_state
	testl	%ecx, %ecx
	jle	.L39
	leaq	288(%rsp), %rax
	xorl	%ebp, %ebp
	xorl	%r8d, %r8d
	movl	%r14d, %r11d
	movq	%rax, 16(%rsp)
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$1, %rbp
	cmpl	%ebp, %ecx
	jle	.L126
.L22:
	movl	(%rbx,%rbp,4), %r14d
	testl	%r14d, %r14d
	jne	.L11
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L13:
	movl	(%rbx,%rsi,4), %edx
	testl	%edx, %edx
	jne	.L12
	movl	(%r12,%rbp,4), %eax
	subl	(%r12,%rsi,4), %eax
	cltd
	idivl	%r15d
	testl	%edx, %edx
	jne	.L12
	movl	%eax, %edi
	movl	0(%r13,%rbp,4), %edx
	subl	0(%r13,%rsi,4), %edx
	imull	%r11d, %edi
	cmpl	%edx, %edi
	jne	.L12
	movslq	%r14d, %rdx
	movl	$1, (%rbx,%rsi,4)
	addl	$1, %r14d
	movl	%eax, 288(%rsp,%rdx,4)
	.p2align 4,,10
	.p2align 3
.L12:
	addq	$1, %rsi
	cmpl	%esi, %ecx
	jg	.L13
	addl	$1, %r8d
	cmpl	$1, %r14d
	je	.L11
	movq	16(%rsp), %rdi
	movslq	%r14d, %rsi
	movl	$4, %edx
	leaq	asc(%rip), %rcx
	movq	%r9, 48(%rsp)
	movq	%r10, 40(%rsp)
	movl	%r11d, 32(%rsp)
	movl	%r8d, 24(%rsp)
	call	qsort@PLT
	cmpl	$1, %r14d
	movl	24(%rsp), %r8d
	movl	32(%rsp), %r11d
	movq	40(%rsp), %r10
	movq	48(%rsp), %r9
	jle	.L17
	leal	-2(%r14), %eax
	leal	-1(%r14), %edx
	cmpl	$2, %eax
	jbe	.L40
	movdqa	.LC2(%rip), %xmm0
	movl	%edx, %eax
	paddd	288(%rsp), %xmm0
	movdqu	292(%rsp), %xmm3
	shrl	$2, %eax
	pcmpeqd	%xmm3, %xmm0
	pandn	.LC2(%rip), %xmm0
	cmpl	$1, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	pxor	%xmm2, %xmm2
	paddd	304(%rsp), %xmm1
	movdqu	308(%rsp), %xmm5
	pcmpeqd	%xmm5, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$2, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	movdqu	324(%rsp), %xmm7
	paddd	320(%rsp), %xmm1
	pcmpeqd	%xmm7, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$3, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	movdqu	340(%rsp), %xmm5
	paddd	336(%rsp), %xmm1
	pcmpeqd	%xmm5, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$4, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	movdqu	356(%rsp), %xmm3
	paddd	352(%rsp), %xmm1
	pcmpeqd	%xmm3, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$5, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	movdqu	372(%rsp), %xmm5
	paddd	368(%rsp), %xmm1
	pcmpeqd	%xmm5, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$6, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	movdqu	388(%rsp), %xmm7
	paddd	384(%rsp), %xmm1
	pcmpeqd	%xmm7, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$7, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	movdqu	404(%rsp), %xmm4
	paddd	400(%rsp), %xmm1
	pcmpeqd	%xmm4, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$8, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	movdqu	420(%rsp), %xmm4
	paddd	416(%rsp), %xmm1
	pcmpeqd	%xmm4, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$9, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	movdqu	436(%rsp), %xmm5
	paddd	432(%rsp), %xmm1
	pcmpeqd	%xmm5, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$10, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	movdqu	452(%rsp), %xmm4
	paddd	448(%rsp), %xmm1
	pcmpeqd	%xmm4, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$11, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	movdqu	468(%rsp), %xmm5
	paddd	464(%rsp), %xmm1
	pcmpeqd	%xmm5, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	.p2align 4,,10
	.p2align 3
.L16:
	movdqa	%xmm0, %xmm1
	movl	%edx, %ecx
	psrldq	$8, %xmm1
	andl	$-4, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%eax, %r8d
	leal	1(%rcx), %eax
	cmpl	%edx, %ecx
	je	.L17
.L15:
	movslq	%eax, %rcx
	movl	288(%rsp,%rcx,4), %edx
	movl	284(%rsp,%rcx,4), %ecx
	addl	$1, %ecx
	cmpl	%edx, %ecx
	setne	%cl
	movzbl	%cl, %ecx
	addl	%ecx, %r8d
	leal	1(%rax), %ecx
	cmpl	%r14d, %ecx
	jge	.L17
	movslq	%ecx, %rcx
	addl	$1, %edx
	movl	288(%rsp,%rcx,4), %ecx
	cmpl	%edx, %ecx
	setne	%dl
	addl	$2, %eax
	movzbl	%dl, %edx
	addl	%edx, %r8d
	cmpl	%eax, %r14d
	jle	.L17
	cltq
	addl	$1, %ecx
	cmpl	%ecx, 288(%rsp,%rax,4)
	je	.L17
	addl	$1, %r8d
.L17:
	movl	76(%rsp), %ecx
	jmp	.L11
.L39:
	xorl	%r8d, %r8d
	jmp	.L10
.L40:
	movl	$1, %eax
	jmp	.L15
.L41:
	movl	$1, %eax
	jmp	.L27
.L127:
	movl	$100, 12(%rsp)
	jmp	.L6
.L128:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	asc, .-asc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%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	$936, %rsp
	.cfi_def_cfa_offset 992
	movq	%fs:40, %rax
	movq	%rax, 920(%rsp)
	xorl	%eax, %eax
	leaq	76(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %r15d
	testl	%r15d, %r15d
	jle	.L4
	leaq	496(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	704(%rsp), %r13
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	0(%r13,%rbx,4), %rdx
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %r15d
	addq	$1, %rbx
	addq	$4, %rbp
	cmpl	%ebx, %r15d
	jg	.L5
	movl	$1, 12(%rsp)
	cmpl	$1, %r15d
	je	.L6
.L4:
	cmpl	$1, %r15d
	jle	.L127
	movq	$1, 56(%rsp)
	leal	-1(%r15), %ebp
	movl	$100, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L35:
	movq	56(%rsp), %r9
	cmpl	%r9d, %r15d
	jle	.L7
	movq	%r9, %r10
	leaq	496(%rsp), %r12
	leaq	80(%rsp), %rbx
	movl	%r15d, %ecx
	leaq	704(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L34:
	movl	%ebp, %eax
	testl	%ecx, %ecx
	movq	%rbx, %rdi
	movq	%r9, 32(%rsp)
	leaq	4(,%rax,4), %rdx
	movl	$4, %eax
	movq	%r10, 24(%rsp)
	cmovle	%rax, %rdx
	xorl	%esi, %esi
	movl	%ecx, 16(%rsp)
	call	memset@PLT
	movq	32(%rsp), %r9
	movq	24(%rsp), %r10
	movl	16(%rsp), %ecx
	movl	-4(%r12,%r9,4), %r15d
	movl	-4(%r13,%r9,4), %r14d
	subl	0(%r13,%r10,4), %r14d
	subl	(%r12,%r10,4), %r15d
	jne	.L8
	xorl	%r8d, %r8d
	xorl	%r15d, %r15d
	leaq	288(%rsp), %rdi
	testl	%ecx, %ecx
	jg	.L9
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$1, %r15
	cmpl	%r15d, %ecx
	jle	.L126
.L9:
	movl	(%rbx,%r15,4), %ebp
	testl	%ebp, %ebp
	jne	.L23
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L25:
	movl	(%rbx,%rsi,4), %eax
	testl	%eax, %eax
	jne	.L24
	movl	0(%r13,%r15,4), %eax
	subl	0(%r13,%rsi,4), %eax
	cltd
	idivl	%r14d
	testl	%edx, %edx
	jne	.L24
	movl	(%r12,%rsi,4), %edx
	cmpl	%edx, (%r12,%r15,4)
	jne	.L24
	movslq	%ebp, %rdx
	movl	$1, (%rbx,%rsi,4)
	addl	$1, %ebp
	movl	%eax, 288(%rsp,%rdx,4)
	.p2align 4,,10
	.p2align 3
.L24:
	addq	$1, %rsi
	cmpl	%esi, %ecx
	jg	.L25
	addl	$1, %r8d
	cmpl	$1, %ebp
	je	.L23
	movslq	%ebp, %rsi
	movl	$4, %edx
	movq	%r9, 40(%rsp)
	leaq	asc(%rip), %rcx
	movq	%r10, 32(%rsp)
	movl	%r8d, 24(%rsp)
	movq	%rdi, 16(%rsp)
	call	qsort@PLT
	cmpl	$1, %ebp
	movq	16(%rsp), %rdi
	movl	24(%rsp), %r8d
	movq	32(%rsp), %r10
	movq	40(%rsp), %r9
	jle	.L29
	leal	-2(%rbp), %eax
	leal	-1(%rbp), %edx
	cmpl	$2, %eax
	jbe	.L41
	movdqa	.LC2(%rip), %xmm0
	movl	%edx, %eax
	paddd	288(%rsp), %xmm0
	movdqu	292(%rsp), %xmm4
	shrl	$2, %eax
	pcmpeqd	%xmm4, %xmm0
	pandn	.LC2(%rip), %xmm0
	cmpl	$1, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	pxor	%xmm2, %xmm2
	paddd	304(%rsp), %xmm1
	movdqu	308(%rsp), %xmm6
	pcmpeqd	%xmm6, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$2, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	movdqu	324(%rsp), %xmm7
	paddd	320(%rsp), %xmm1
	pcmpeqd	%xmm7, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$3, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	movdqu	340(%rsp), %xmm6
	paddd	336(%rsp), %xmm1
	pcmpeqd	%xmm6, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$4, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	movdqu	356(%rsp), %xmm4
	paddd	352(%rsp), %xmm1
	pcmpeqd	%xmm4, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$5, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	movdqu	372(%rsp), %xmm6
	paddd	368(%rsp), %xmm1
	pcmpeqd	%xmm6, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$6, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	movdqu	388(%rsp), %xmm3
	paddd	384(%rsp), %xmm1
	pcmpeqd	%xmm3, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$7, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	movdqu	404(%rsp), %xmm7
	paddd	400(%rsp), %xmm1
	pcmpeqd	%xmm7, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$8, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	movdqu	420(%rsp), %xmm3
	paddd	416(%rsp), %xmm1
	pcmpeqd	%xmm3, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$9, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	movdqu	436(%rsp), %xmm6
	paddd	432(%rsp), %xmm1
	pcmpeqd	%xmm6, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$10, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	movdqu	452(%rsp), %xmm6
	paddd	448(%rsp), %xmm1
	pcmpeqd	%xmm6, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$11, %eax
	je	.L28
	movdqa	.LC2(%rip), %xmm1
	movdqu	468(%rsp), %xmm7
	paddd	464(%rsp), %xmm1
	pcmpeqd	%xmm7, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	.p2align 4,,10
	.p2align 3
.L28:
	movdqa	%xmm0, %xmm1
	movl	%edx, %ecx
	psrldq	$8, %xmm1
	andl	$-4, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%eax, %r8d
	leal	1(%rcx), %eax
	cmpl	%ecx, %edx
	je	.L29
.L27:
	movslq	%eax, %rcx
	movl	288(%rsp,%rcx,4), %edx
	movl	284(%rsp,%rcx,4), %ecx
	addl	$1, %ecx
	cmpl	%edx, %ecx
	setne	%cl
	movzbl	%cl, %ecx
	addl	%ecx, %r8d
	leal	1(%rax), %ecx
	cmpl	%ecx, %ebp
	jle	.L29
	movslq	%ecx, %rcx
	addl	$1, %edx
	movl	288(%rsp,%rcx,4), %ecx
	cmpl	%ecx, %edx
	setne	%dl
	addl	$2, %eax
	movzbl	%dl, %edx
	addl	%edx, %r8d
	cmpl	%eax, %ebp
	jle	.L29
	cltq
	addl	$1, %ecx
	cmpl	288(%rsp,%rax,4), %ecx
	je	.L29
	addl	$1, %r8d
.L29:
	movl	76(%rsp), %ecx
	addq	$1, %r15
	cmpl	%r15d, %ecx
	jg	.L9
	.p2align 4,,10
	.p2align 3
.L126:
	leal	-1(%rcx), %ebp
.L10:
	movl	12(%rsp), %eax
	cmpl	%r8d, %eax
	cmovle	%eax, %r8d
	addq	$1, %r10
	movl	%r8d, 12(%rsp)
	cmpl	%r10d, %ecx
	jg	.L34
	movl	%ecx, %r15d
.L7:
	addq	$1, 56(%rsp)
	movq	56(%rsp), %rax
	subl	$1, %eax
	cmpl	%eax, %ebp
	jg	.L35
.L6:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	920(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L128
	addq	$936, %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
.L8:
	.cfi_restore_state
	testl	%ecx, %ecx
	jle	.L39
	leaq	288(%rsp), %rax
	xorl	%ebp, %ebp
	xorl	%r8d, %r8d
	movl	%r14d, %r11d
	movq	%rax, 16(%rsp)
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$1, %rbp
	cmpl	%ebp, %ecx
	jle	.L126
.L22:
	movl	(%rbx,%rbp,4), %r14d
	testl	%r14d, %r14d
	jne	.L11
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L13:
	movl	(%rbx,%rsi,4), %edx
	testl	%edx, %edx
	jne	.L12
	movl	(%r12,%rbp,4), %eax
	subl	(%r12,%rsi,4), %eax
	cltd
	idivl	%r15d
	testl	%edx, %edx
	jne	.L12
	movl	%eax, %edi
	movl	0(%r13,%rbp,4), %edx
	subl	0(%r13,%rsi,4), %edx
	imull	%r11d, %edi
	cmpl	%edx, %edi
	jne	.L12
	movslq	%r14d, %rdx
	movl	$1, (%rbx,%rsi,4)
	addl	$1, %r14d
	movl	%eax, 288(%rsp,%rdx,4)
	.p2align 4,,10
	.p2align 3
.L12:
	addq	$1, %rsi
	cmpl	%esi, %ecx
	jg	.L13
	addl	$1, %r8d
	cmpl	$1, %r14d
	je	.L11
	movq	16(%rsp), %rdi
	movslq	%r14d, %rsi
	movl	$4, %edx
	leaq	asc(%rip), %rcx
	movq	%r9, 48(%rsp)
	movq	%r10, 40(%rsp)
	movl	%r11d, 32(%rsp)
	movl	%r8d, 24(%rsp)
	call	qsort@PLT
	cmpl	$1, %r14d
	movl	24(%rsp), %r8d
	movl	32(%rsp), %r11d
	movq	40(%rsp), %r10
	movq	48(%rsp), %r9
	jle	.L17
	leal	-2(%r14), %eax
	leal	-1(%r14), %edx
	cmpl	$2, %eax
	jbe	.L40
	movdqa	.LC2(%rip), %xmm0
	movl	%edx, %eax
	paddd	288(%rsp), %xmm0
	movdqu	292(%rsp), %xmm3
	shrl	$2, %eax
	pcmpeqd	%xmm3, %xmm0
	pandn	.LC2(%rip), %xmm0
	cmpl	$1, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	pxor	%xmm2, %xmm2
	paddd	304(%rsp), %xmm1
	movdqu	308(%rsp), %xmm5
	pcmpeqd	%xmm5, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$2, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	movdqu	324(%rsp), %xmm7
	paddd	320(%rsp), %xmm1
	pcmpeqd	%xmm7, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$3, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	movdqu	340(%rsp), %xmm5
	paddd	336(%rsp), %xmm1
	pcmpeqd	%xmm5, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$4, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	movdqu	356(%rsp), %xmm3
	paddd	352(%rsp), %xmm1
	pcmpeqd	%xmm3, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$5, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	movdqu	372(%rsp), %xmm5
	paddd	368(%rsp), %xmm1
	pcmpeqd	%xmm5, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$6, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	movdqu	388(%rsp), %xmm7
	paddd	384(%rsp), %xmm1
	pcmpeqd	%xmm7, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$7, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	movdqu	404(%rsp), %xmm4
	paddd	400(%rsp), %xmm1
	pcmpeqd	%xmm4, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$8, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	movdqu	420(%rsp), %xmm4
	paddd	416(%rsp), %xmm1
	pcmpeqd	%xmm4, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$9, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	movdqu	436(%rsp), %xmm5
	paddd	432(%rsp), %xmm1
	pcmpeqd	%xmm5, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$10, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	movdqu	452(%rsp), %xmm4
	paddd	448(%rsp), %xmm1
	pcmpeqd	%xmm4, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpl	$11, %eax
	je	.L16
	movdqa	.LC2(%rip), %xmm1
	movdqu	468(%rsp), %xmm5
	paddd	464(%rsp), %xmm1
	pcmpeqd	%xmm5, %xmm1
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	.p2align 4,,10
	.p2align 3
.L16:
	movdqa	%xmm0, %xmm1
	movl	%edx, %ecx
	psrldq	$8, %xmm1
	andl	$-4, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%eax, %r8d
	leal	1(%rcx), %eax
	cmpl	%edx, %ecx
	je	.L17
.L15:
	movslq	%eax, %rcx
	movl	288(%rsp,%rcx,4), %edx
	movl	284(%rsp,%rcx,4), %ecx
	addl	$1, %ecx
	cmpl	%edx, %ecx
	setne	%cl
	movzbl	%cl, %ecx
	addl	%ecx, %r8d
	leal	1(%rax), %ecx
	cmpl	%r14d, %ecx
	jge	.L17
	movslq	%ecx, %rcx
	addl	$1, %edx
	movl	288(%rsp,%rcx,4), %ecx
	cmpl	%edx, %ecx
	setne	%dl
	addl	$2, %eax
	movzbl	%dl, %edx
	addl	%edx, %r8d
	cmpl	%eax, %r14d
	jle	.L17
	cltq
	addl	$1, %ecx
	cmpl	%ecx, 288(%rsp,%rax,4)
	je	.L17
	addl	$1, %r8d
.L17:
	movl	76(%rsp), %ecx
	jmp	.L11
.L39:
	xorl	%r8d, %r8d
	jmp	.L10
.L40:
	movl	$1, %eax
	jmp	.L15
.L41:
	movl	$1, %eax
	jmp	.L27
.L127:
	movl	$100, 12(%rsp)
	jmp	.L6
.L128:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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){
  return *(int *)a - *(int *)b;
}

int
main(int argc, char *argv[])
{
  int n, x[51], y[51];
  scanf("%d", &n);
  int k = 0; int ymin = 1000000000;
  for(int i = 0; i < n; i++){
    scanf("%d %d", &x[i], &y[i]);
  }

  int p, q; int used[50]; int z; int min = 100; int arr[50]; int cnt;

  if(n == 1) min = 1;

  for(int i = 0; i < n - 1; i++){
    for(int j = i + 1; j < n; j++){
      for(int r = 0; r < n; r++){
	used[r] = 0;
      }
      z = 0;
      p = x[i] - x[j];
      q = y[i] - y[j];
      if(p != 0){
	for(int k = 0; k < n; k++){
	  if(used[k] == 0){
	    cnt = 0;
	    for(int l = 0; l < n; l++){
	      if(used[l] == 0 && (x[k] - x[l]) % p == 0 && ((x[k] - x[l]) / p) * q == y[k] - y[l]){
		used[l] = 1;
		arr[cnt++] = (x[k] - x[l])/p;
	      }
	    }
	   
	    if(cnt == 1) z++;
	    else{
	      qsort(arr, cnt, sizeof(int), asc);
	     
	      z++;
	      for(int r = 1; r < cnt; r++){
	
		if(arr[r - 1] + 1 != arr[r]) z++;
	      }
	      
	    }
	  }
	}
      }
      else{
	for(int k = 0; k < n; k++){
	  if(used[k] == 0){
	    cnt = 0;
	    for(int l = 0; l < n; l++){
	      if(used[l] == 0 && (y[k] - y[l]) % q == 0 && ((y[k] - y[l]) / q) * p == x[k] - x[l]){
		used[l] = 1;
		arr[cnt++] = (y[k] - y[l])/q;
	      }
	    }
	    if(cnt == 1) z++;
	    else{
	      qsort(arr, cnt, sizeof(int), asc);
	     
	      z++;
	      for(int r = 1; r < cnt; r++){
		
		if(arr[r - 1] + 1 != arr[r]) z++;
	      }
	      
	    }
	  }
	}
      }
      if(min > z) min = z;
    }
  }

  printf("%d\n", min);

  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){
  return *(int *)a - *(int *)b;
}

int
main(int argc, char *argv[])
{
  int n, x[51], y[51];
  scanf("%d", &n);
  int k = 0; int ymin = 1000000000;
  for(int i = 0; i < n; i++){
    scanf("%d %d", &x[i], &y[i]);
  }

  int p, q; int used[50]; int z; int min = 100; int arr[50]; int cnt;

  if(n == 1) min = 1;

  for(int i = 0; i < n - 1; i++){
    for(int j = i + 1; j < n; j++){
      for(int r = 0; r < n; r++){
	used[r] = 0;
      }
      z = 0;
      p = x[i] - x[j];
      q = y[i] - y[j];
      if(p != 0){
	for(int k = 0; k < n; k++){
	  if(used[k] == 0){
	    cnt = 0;
	    for(int l = 0; l < n; l++){
	      if(used[l] == 0 && (x[k] - x[l]) % p == 0 && ((x[k] - x[l]) / p) * q == y[k] - y[l]){
		used[l] = 1;
		arr[cnt++] = (x[k] - x[l])/p;
	      }
	    }
	   
	    if(cnt == 1) z++;
	    else{
	      qsort(arr, cnt, sizeof(int), asc);
	     
	      z++;
	      for(int r = 1; r < cnt; r++){
	
		if(arr[r - 1] + 1 != arr[r]) z++;
	      }
	      
	    }
	  }
	}
      }
      else{
	for(int k = 0; k < n; k++){
	  if(used[k] == 0){
	    cnt = 0;
	    for(int l = 0; l < n; l++){
	      if(used[l] == 0 && (y[k] - y[l]) % q == 0 && ((y[k] - y[l]) / q) * p == x[k] - x[l]){
		used[l] = 1;
		arr[cnt++] = (y[k] - y[l])/q;
	      }
	    }
	    if(cnt == 1) z++;
	    else{
	      qsort(arr, cnt, sizeof(int), asc);
	     
	      z++;
	      for(int r = 1; r < cnt; r++){
		
		if(arr[r - 1] + 1 != arr[r]) z++;
	      }
	      
	    }
	  }
	}
      }
      if(min > z) min = z;
    }
  }

  printf("%d\n", min);

  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
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	asc, .-asc
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.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
	subq	$944, %rsp
	movl	%edi, -932(%rbp)
	movq	%rsi, -944(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-920(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -864(%rbp)
	movl	$1000000000, -860(%rbp)
	movl	$0, -916(%rbp)
	jmp	.L4
.L5:
	leaq	-224(%rbp), %rdx
	movl	-916(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-432(%rbp), %rcx
	movl	-916(%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, -916(%rbp)
.L4:
	movl	-920(%rbp), %eax
	cmpl	%eax, -916(%rbp)
	jl	.L5
	movl	$100, -908(%rbp)
	movl	-920(%rbp), %eax
	cmpl	$1, %eax
	jne	.L6
	movl	$1, -908(%rbp)
.L6:
	movl	$0, -900(%rbp)
	jmp	.L7
.L35:
	movl	-900(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -896(%rbp)
	jmp	.L8
.L34:
	movl	$0, -892(%rbp)
	jmp	.L9
.L10:
	movl	-892(%rbp), %eax
	cltq
	movl	$0, -848(%rbp,%rax,4)
	addl	$1, -892(%rbp)
.L9:
	movl	-920(%rbp), %eax
	cmpl	%eax, -892(%rbp)
	jl	.L10
	movl	$0, -912(%rbp)
	movl	-900(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %edx
	movl	-896(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -856(%rbp)
	movl	-900(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-896(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -852(%rbp)
	cmpl	$0, -856(%rbp)
	je	.L11
	movl	$0, -888(%rbp)
	jmp	.L12
.L21:
	movl	-888(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L13
	movl	$0, -904(%rbp)
	movl	$0, -884(%rbp)
	jmp	.L14
.L16:
	movl	-884(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L15
	movl	-888(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %edx
	movl	-884(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltd
	idivl	-856(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L15
	movl	-888(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %edx
	movl	-884(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltd
	idivl	-856(%rbp)
	imull	-852(%rbp), %eax
	movl	%eax, %edx
	movl	-888(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %ecx
	movl	-884(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %esi
	movl	%ecx, %eax
	subl	%esi, %eax
	cmpl	%eax, %edx
	jne	.L15
	movl	-884(%rbp), %eax
	cltq
	movl	$1, -848(%rbp,%rax,4)
	movl	-888(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %edx
	movl	-884(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %eax
	subl	%eax, %edx
	movl	-904(%rbp), %ecx
	leal	1(%rcx), %eax
	movl	%eax, -904(%rbp)
	movl	%edx, %eax
	cltd
	idivl	-856(%rbp)
	movl	%eax, %edx
	movslq	%ecx, %rax
	movl	%edx, -640(%rbp,%rax,4)
.L15:
	addl	$1, -884(%rbp)
.L14:
	movl	-920(%rbp), %eax
	cmpl	%eax, -884(%rbp)
	jl	.L16
	cmpl	$1, -904(%rbp)
	jne	.L17
	addl	$1, -912(%rbp)
	jmp	.L13
.L17:
	movl	-904(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-640(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	addl	$1, -912(%rbp)
	movl	$1, -880(%rbp)
	jmp	.L18
.L20:
	movl	-880(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-640(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-880(%rbp), %eax
	cltq
	movl	-640(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L19
	addl	$1, -912(%rbp)
.L19:
	addl	$1, -880(%rbp)
.L18:
	movl	-880(%rbp), %eax
	cmpl	-904(%rbp), %eax
	jl	.L20
.L13:
	addl	$1, -888(%rbp)
.L12:
	movl	-920(%rbp), %eax
	cmpl	%eax, -888(%rbp)
	jl	.L21
	jmp	.L22
.L11:
	movl	$0, -876(%rbp)
	jmp	.L23
.L32:
	movl	-876(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L24
	movl	$0, -904(%rbp)
	movl	$0, -872(%rbp)
	jmp	.L25
.L27:
	movl	-872(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L26
	movl	-876(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-872(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltd
	idivl	-852(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L26
	movl	-876(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-872(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltd
	idivl	-852(%rbp)
	imull	-856(%rbp), %eax
	movl	%eax, %edx
	movl	-876(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %ecx
	movl	-872(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %esi
	movl	%ecx, %eax
	subl	%esi, %eax
	cmpl	%eax, %edx
	jne	.L26
	movl	-872(%rbp), %eax
	cltq
	movl	$1, -848(%rbp,%rax,4)
	movl	-876(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-872(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	subl	%eax, %edx
	movl	-904(%rbp), %ecx
	leal	1(%rcx), %eax
	movl	%eax, -904(%rbp)
	movl	%edx, %eax
	cltd
	idivl	-852(%rbp)
	movl	%eax, %edx
	movslq	%ecx, %rax
	movl	%edx, -640(%rbp,%rax,4)
.L26:
	addl	$1, -872(%rbp)
.L25:
	movl	-920(%rbp), %eax
	cmpl	%eax, -872(%rbp)
	jl	.L27
	cmpl	$1, -904(%rbp)
	jne	.L28
	addl	$1, -912(%rbp)
	jmp	.L24
.L28:
	movl	-904(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-640(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	addl	$1, -912(%rbp)
	movl	$1, -868(%rbp)
	jmp	.L29
.L31:
	movl	-868(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-640(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-868(%rbp), %eax
	cltq
	movl	-640(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L30
	addl	$1, -912(%rbp)
.L30:
	addl	$1, -868(%rbp)
.L29:
	movl	-868(%rbp), %eax
	cmpl	-904(%rbp), %eax
	jl	.L31
.L24:
	addl	$1, -876(%rbp)
.L23:
	movl	-920(%rbp), %eax
	cmpl	%eax, -876(%rbp)
	jl	.L32
.L22:
	movl	-908(%rbp), %eax
	cmpl	-912(%rbp), %eax
	jle	.L33
	movl	-912(%rbp), %eax
	movl	%eax, -908(%rbp)
.L33:
	addl	$1, -896(%rbp)
.L8:
	movl	-920(%rbp), %eax
	cmpl	%eax, -896(%rbp)
	jl	.L34
	addl	$1, -900(%rbp)
.L7:
	movl	-920(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -900(%rbp)
	jl	.L35
	movl	-908(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	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
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	asc, .-asc
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.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
	subq	$944, %rsp
	movl	%edi, -932(%rbp)
	movq	%rsi, -944(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-920(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -864(%rbp)
	movl	$1000000000, -860(%rbp)
	movl	$0, -916(%rbp)
	jmp	.L4
.L5:
	leaq	-224(%rbp), %rdx
	movl	-916(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-432(%rbp), %rcx
	movl	-916(%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, -916(%rbp)
.L4:
	movl	-920(%rbp), %eax
	cmpl	%eax, -916(%rbp)
	jl	.L5
	movl	$100, -908(%rbp)
	movl	-920(%rbp), %eax
	cmpl	$1, %eax
	jne	.L6
	movl	$1, -908(%rbp)
.L6:
	movl	$0, -900(%rbp)
	jmp	.L7
.L35:
	movl	-900(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -896(%rbp)
	jmp	.L8
.L34:
	movl	$0, -892(%rbp)
	jmp	.L9
.L10:
	movl	-892(%rbp), %eax
	cltq
	movl	$0, -848(%rbp,%rax,4)
	addl	$1, -892(%rbp)
.L9:
	movl	-920(%rbp), %eax
	cmpl	%eax, -892(%rbp)
	jl	.L10
	movl	$0, -912(%rbp)
	movl	-900(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %edx
	movl	-896(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -856(%rbp)
	movl	-900(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-896(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -852(%rbp)
	cmpl	$0, -856(%rbp)
	je	.L11
	movl	$0, -888(%rbp)
	jmp	.L12
.L21:
	movl	-888(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L13
	movl	$0, -904(%rbp)
	movl	$0, -884(%rbp)
	jmp	.L14
.L16:
	movl	-884(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L15
	movl	-888(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %edx
	movl	-884(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltd
	idivl	-856(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L15
	movl	-888(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %edx
	movl	-884(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltd
	idivl	-856(%rbp)
	imull	-852(%rbp), %eax
	movl	%eax, %edx
	movl	-888(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %ecx
	movl	-884(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %esi
	movl	%ecx, %eax
	subl	%esi, %eax
	cmpl	%eax, %edx
	jne	.L15
	movl	-884(%rbp), %eax
	cltq
	movl	$1, -848(%rbp,%rax,4)
	movl	-888(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %edx
	movl	-884(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %eax
	subl	%eax, %edx
	movl	-904(%rbp), %ecx
	leal	1(%rcx), %eax
	movl	%eax, -904(%rbp)
	movl	%edx, %eax
	cltd
	idivl	-856(%rbp)
	movl	%eax, %edx
	movslq	%ecx, %rax
	movl	%edx, -640(%rbp,%rax,4)
.L15:
	addl	$1, -884(%rbp)
.L14:
	movl	-920(%rbp), %eax
	cmpl	%eax, -884(%rbp)
	jl	.L16
	cmpl	$1, -904(%rbp)
	jne	.L17
	addl	$1, -912(%rbp)
	jmp	.L13
.L17:
	movl	-904(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-640(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	addl	$1, -912(%rbp)
	movl	$1, -880(%rbp)
	jmp	.L18
.L20:
	movl	-880(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-640(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-880(%rbp), %eax
	cltq
	movl	-640(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L19
	addl	$1, -912(%rbp)
.L19:
	addl	$1, -880(%rbp)
.L18:
	movl	-880(%rbp), %eax
	cmpl	-904(%rbp), %eax
	jl	.L20
.L13:
	addl	$1, -888(%rbp)
.L12:
	movl	-920(%rbp), %eax
	cmpl	%eax, -888(%rbp)
	jl	.L21
	jmp	.L22
.L11:
	movl	$0, -876(%rbp)
	jmp	.L23
.L32:
	movl	-876(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L24
	movl	$0, -904(%rbp)
	movl	$0, -872(%rbp)
	jmp	.L25
.L27:
	movl	-872(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L26
	movl	-876(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-872(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltd
	idivl	-852(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L26
	movl	-876(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-872(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltd
	idivl	-852(%rbp)
	imull	-856(%rbp), %eax
	movl	%eax, %edx
	movl	-876(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %ecx
	movl	-872(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %esi
	movl	%ecx, %eax
	subl	%esi, %eax
	cmpl	%eax, %edx
	jne	.L26
	movl	-872(%rbp), %eax
	cltq
	movl	$1, -848(%rbp,%rax,4)
	movl	-876(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-872(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	subl	%eax, %edx
	movl	-904(%rbp), %ecx
	leal	1(%rcx), %eax
	movl	%eax, -904(%rbp)
	movl	%edx, %eax
	cltd
	idivl	-852(%rbp)
	movl	%eax, %edx
	movslq	%ecx, %rax
	movl	%edx, -640(%rbp,%rax,4)
.L26:
	addl	$1, -872(%rbp)
.L25:
	movl	-920(%rbp), %eax
	cmpl	%eax, -872(%rbp)
	jl	.L27
	cmpl	$1, -904(%rbp)
	jne	.L28
	addl	$1, -912(%rbp)
	jmp	.L24
.L28:
	movl	-904(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-640(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	addl	$1, -912(%rbp)
	movl	$1, -868(%rbp)
	jmp	.L29
.L31:
	movl	-868(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-640(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-868(%rbp), %eax
	cltq
	movl	-640(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L30
	addl	$1, -912(%rbp)
.L30:
	addl	$1, -868(%rbp)
.L29:
	movl	-868(%rbp), %eax
	cmpl	-904(%rbp), %eax
	jl	.L31
.L24:
	addl	$1, -876(%rbp)
.L23:
	movl	-920(%rbp), %eax
	cmpl	%eax, -876(%rbp)
	jl	.L32
.L22:
	movl	-908(%rbp), %eax
	cmpl	-912(%rbp), %eax
	jle	.L33
	movl	-912(%rbp), %eax
	movl	%eax, -908(%rbp)
.L33:
	addl	$1, -896(%rbp)
.L8:
	movl	-920(%rbp), %eax
	cmpl	%eax, -896(%rbp)
	jl	.L34
	addl	$1, -900(%rbp)
.L7:
	movl	-920(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -900(%rbp)
	jl	.L35
	movl	-908(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	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:
