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

int X[100], Y[100];

int main() {
  int N, result;
  int i, j, p, q, k, l, cnt;
  scanf ("%d", &N);
  
  for (i=0;i<N;i++) {
      scanf("%d %d", &X[i], &Y[i]);
  }
  
  result = 0;
  for (i=0;i<N;i++) {
    for (j=0;j<N;j++) {
      if (i!=0) {
        p=X[j]-X[i];
        q=Y[j]-Y[i];
        cnt=0;
        for (k=0;k<N;k++) {
          for (l=0;l<N;l++) {
            if (l!=k && p==X[l]-X[k] && q==Y[l]-Y[k]) cnt++;
          }
        }
        if (cnt>result) result = cnt;
      }
    }
  }
  
  
  printf("%d", N-result);
  return 0;
}


```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.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:
.LFB51:
	.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	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r15d
	testl	%r15d, %r15d
	jle	.L13
	leaq	X(%rip), %rbx
	xorl	%r13d, %r13d
	leaq	Y(%rip), %r12
	movq	%rbx, %rbp
	leaq	.LC1(%rip), %r14
.L3:
	leaq	(%r12,%r13,4), %rdx
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r15d
	addq	$1, %r13
	addq	$4, %rbp
	cmpl	%r13d, %r15d
	jg	.L3
	testl	%r15d, %r15d
	jle	.L13
	movslq	%r15d, %rsi
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
.L10:
	xorl	%r11d, %r11d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	addq	$1, %r11
	cmpq	%rsi, %r11
	je	.L23
.L9:
	testq	%r13, %r13
	je	.L4
	movl	(%rbx,%r11,4), %r8d
	movl	(%r12,%r11,4), %r10d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	subl	(%rbx,%r13,4), %r8d
	subl	(%r12,%r13,4), %r10d
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%ecx, %eax
	je	.L6
	movl	(%rbx,%rax,4), %edx
	subl	(%rdi), %edx
	cmpl	%r8d, %edx
	jne	.L6
	movl	(%r12,%rax,4), %edx
	subl	(%r12,%rcx,4), %edx
	cmpl	%r10d, %edx
	sete	%dl
	movzbl	%dl, %edx
	addl	%edx, %r9d
.L6:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L7
	addq	$1, %rcx
	addq	$4, %rdi
	cmpq	%rsi, %rcx
	jne	.L5
	cmpl	%r9d, %r14d
	cmovl	%r9d, %r14d
	addq	$1, %r11
	cmpq	%rsi, %r11
	jne	.L9
.L23:
	addq	$1, %r13
	cmpq	%rsi, %r13
	jne	.L10
.L2:
	movl	%r15d, %edx
	xorl	%eax, %eax
	movl	$1, %edi
	subl	%r14d, %edx
	leaq	.LC0(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$24, %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
.L13:
	.cfi_restore_state
	xorl	%r14d, %r14d
	jmp	.L2
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	Y
	.bss
	.align 32
	.type	Y, @object
	.size	Y, 400
Y:
	.zero	400
	.globl	X
	.align 32
	.type	X, @object
	.size	X, 400
X:
	.zero	400
	.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
	.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:
.LFB51:
	.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	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r15d
	testl	%r15d, %r15d
	jle	.L13
	leaq	X(%rip), %rbx
	xorl	%r13d, %r13d
	leaq	Y(%rip), %r12
	movq	%rbx, %rbp
	leaq	.LC1(%rip), %r14
.L3:
	leaq	(%r12,%r13,4), %rdx
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r15d
	addq	$1, %r13
	addq	$4, %rbp
	cmpl	%r13d, %r15d
	jg	.L3
	testl	%r15d, %r15d
	jle	.L13
	movslq	%r15d, %rsi
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
.L10:
	xorl	%r11d, %r11d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	addq	$1, %r11
	cmpq	%rsi, %r11
	je	.L23
.L9:
	testq	%r13, %r13
	je	.L4
	movl	(%rbx,%r11,4), %r8d
	movl	(%r12,%r11,4), %r10d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	subl	(%rbx,%r13,4), %r8d
	subl	(%r12,%r13,4), %r10d
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%ecx, %eax
	je	.L6
	movl	(%rbx,%rax,4), %edx
	subl	(%rdi), %edx
	cmpl	%r8d, %edx
	jne	.L6
	movl	(%r12,%rax,4), %edx
	subl	(%r12,%rcx,4), %edx
	cmpl	%r10d, %edx
	sete	%dl
	movzbl	%dl, %edx
	addl	%edx, %r9d
.L6:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L7
	addq	$1, %rcx
	addq	$4, %rdi
	cmpq	%rsi, %rcx
	jne	.L5
	cmpl	%r9d, %r14d
	cmovl	%r9d, %r14d
	addq	$1, %r11
	cmpq	%rsi, %r11
	jne	.L9
.L23:
	addq	$1, %r13
	cmpq	%rsi, %r13
	jne	.L10
.L2:
	movl	%r15d, %edx
	xorl	%eax, %eax
	movl	$1, %edi
	subl	%r14d, %edx
	leaq	.LC0(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$24, %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
.L13:
	.cfi_restore_state
	xorl	%r14d, %r14d
	jmp	.L2
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	Y
	.bss
	.align 32
	.type	Y, @object
	.size	Y, 400
Y:
	.zero	400
	.globl	X
	.align 32
	.type	X, @object
	.size	X, 400
X:
	.zero	400
	.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
	.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:
.LFB51:
	.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	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r15d
	testl	%r15d, %r15d
	jle	.L13
	leaq	X(%rip), %rbx
	xorl	%r13d, %r13d
	leaq	Y(%rip), %r12
	movq	%rbx, %rbp
	leaq	.LC1(%rip), %r14
.L3:
	leaq	(%r12,%r13,4), %rdx
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r15d
	addq	$1, %r13
	addq	$4, %rbp
	cmpl	%r13d, %r15d
	jg	.L3
	testl	%r15d, %r15d
	jle	.L13
	movslq	%r15d, %rsi
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
.L10:
	xorl	%r11d, %r11d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	addq	$1, %r11
	cmpq	%rsi, %r11
	je	.L23
.L9:
	testq	%r13, %r13
	je	.L4
	movl	(%rbx,%r11,4), %r8d
	movl	(%r12,%r11,4), %r10d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	subl	(%rbx,%r13,4), %r8d
	subl	(%r12,%r13,4), %r10d
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%ecx, %eax
	je	.L6
	movl	(%rbx,%rax,4), %edx
	subl	(%rdi), %edx
	cmpl	%r8d, %edx
	jne	.L6
	movl	(%r12,%rax,4), %edx
	subl	(%r12,%rcx,4), %edx
	cmpl	%r10d, %edx
	sete	%dl
	movzbl	%dl, %edx
	addl	%edx, %r9d
.L6:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L7
	addq	$1, %rcx
	addq	$4, %rdi
	cmpq	%rsi, %rcx
	jne	.L5
	cmpl	%r9d, %r14d
	cmovl	%r9d, %r14d
	addq	$1, %r11
	cmpq	%rsi, %r11
	jne	.L9
.L23:
	addq	$1, %r13
	cmpq	%rsi, %r13
	jne	.L10
.L2:
	movl	%r15d, %edx
	xorl	%eax, %eax
	movl	$1, %edi
	subl	%r14d, %edx
	leaq	.LC0(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$24, %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
.L13:
	.cfi_restore_state
	xorl	%r14d, %r14d
	jmp	.L2
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	Y
	.bss
	.align 32
	.type	Y, @object
	.size	Y, 400
Y:
	.zero	400
	.globl	X
	.align 32
	.type	X, @object
	.size	X, 400
X:
	.zero	400
	.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>
#include <string.h>

int X[100], Y[100];

int main() {
  int N, result;
  int i, j, p, q, k, l, cnt;
  scanf ("%d", &N);
  
  for (i=0;i<N;i++) {
      scanf("%d %d", &X[i], &Y[i]);
  }
  
  result = 0;
  for (i=0;i<N;i++) {
    for (j=0;j<N;j++) {
      if (i!=0) {
        p=X[j]-X[i];
        q=Y[j]-Y[i];
        cnt=0;
        for (k=0;k<N;k++) {
          for (l=0;l<N;l++) {
            if (l!=k && p==X[l]-X[k] && q==Y[l]-Y[k]) cnt++;
          }
        }
        if (cnt>result) result = cnt;
      }
    }
  }
  
  
  printf("%d", N-result);
  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>
#include <string.h>

int X[100], Y[100];

int main() {
  int N, result;
  int i, j, p, q, k, l, cnt;
  scanf ("%d", &N);
  
  for (i=0;i<N;i++) {
      scanf("%d %d", &X[i], &Y[i]);
  }
  
  result = 0;
  for (i=0;i<N;i++) {
    for (j=0;j<N;j++) {
      if (i!=0) {
        p=X[j]-X[i];
        q=Y[j]-Y[i];
        cnt=0;
        for (k=0;k<N;k++) {
          for (l=0;l<N;l++) {
            if (l!=k && p==X[l]-X[k] && q==Y[l]-Y[k]) cnt++;
          }
        }
        if (cnt>result) result = cnt;
      }
    }
  }
  
  
  printf("%d", N-result);
  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:

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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

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

int X[100], Y[100];

int main() {
  int N, result;
  int i, j, p, q, k, l, cnt;
  scanf ("%d", &N);
  
  for (i=0;i<N;i++) {
      scanf("%d %d", &X[i], &Y[i]);
  }
  
  result = 0;
  for (i=0;i<N;i++) {
    for (j=0;j<N;j++) {
      if (i!=0) {
        p=X[j]-X[i];
        q=Y[j]-Y[i];
        cnt=0;
        for (k=0;k<N;k++) {
          for (l=0;l<N;l++) {
            if (l!=k && p==X[l]-X[k] && q==Y[l]-Y[k]) cnt++;
          }
        }
        if (cnt>result) result = cnt;
      }
    }
  }
  
  
  printf("%d", N-result);
  return 0;
}


```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.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:
.LFB51:
	.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	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r15d
	testl	%r15d, %r15d
	jle	.L13
	leaq	X(%rip), %rbx
	xorl	%r13d, %r13d
	leaq	Y(%rip), %r12
	movq	%rbx, %rbp
	leaq	.LC1(%rip), %r14
.L3:
	leaq	(%r12,%r13,4), %rdx
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r15d
	addq	$1, %r13
	addq	$4, %rbp
	cmpl	%r13d, %r15d
	jg	.L3
	testl	%r15d, %r15d
	jle	.L13
	movslq	%r15d, %rsi
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
.L10:
	xorl	%r11d, %r11d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	addq	$1, %r11
	cmpq	%rsi, %r11
	je	.L23
.L9:
	testq	%r13, %r13
	je	.L4
	movl	(%rbx,%r11,4), %r8d
	movl	(%r12,%r11,4), %r10d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	subl	(%rbx,%r13,4), %r8d
	subl	(%r12,%r13,4), %r10d
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%ecx, %eax
	je	.L6
	movl	(%rbx,%rax,4), %edx
	subl	(%rdi), %edx
	cmpl	%r8d, %edx
	jne	.L6
	movl	(%r12,%rax,4), %edx
	subl	(%r12,%rcx,4), %edx
	cmpl	%r10d, %edx
	sete	%dl
	movzbl	%dl, %edx
	addl	%edx, %r9d
.L6:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L7
	addq	$1, %rcx
	addq	$4, %rdi
	cmpq	%rsi, %rcx
	jne	.L5
	cmpl	%r9d, %r14d
	cmovl	%r9d, %r14d
	addq	$1, %r11
	cmpq	%rsi, %r11
	jne	.L9
.L23:
	addq	$1, %r13
	cmpq	%rsi, %r13
	jne	.L10
.L2:
	movl	%r15d, %edx
	xorl	%eax, %eax
	movl	$1, %edi
	subl	%r14d, %edx
	leaq	.LC0(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$24, %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
.L13:
	.cfi_restore_state
	xorl	%r14d, %r14d
	jmp	.L2
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	Y
	.bss
	.align 32
	.type	Y, @object
	.size	Y, 400
Y:
	.zero	400
	.globl	X
	.align 32
	.type	X, @object
	.size	X, 400
X:
	.zero	400
	.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
	.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:
.LFB51:
	.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	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r15d
	testl	%r15d, %r15d
	jle	.L13
	leaq	X(%rip), %rbx
	xorl	%r13d, %r13d
	leaq	Y(%rip), %r12
	movq	%rbx, %rbp
	leaq	.LC1(%rip), %r14
.L3:
	leaq	(%r12,%r13,4), %rdx
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r15d
	addq	$1, %r13
	addq	$4, %rbp
	cmpl	%r13d, %r15d
	jg	.L3
	testl	%r15d, %r15d
	jle	.L13
	movslq	%r15d, %rsi
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
.L10:
	xorl	%r11d, %r11d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	addq	$1, %r11
	cmpq	%rsi, %r11
	je	.L23
.L9:
	testq	%r13, %r13
	je	.L4
	movl	(%rbx,%r11,4), %r8d
	movl	(%r12,%r11,4), %r10d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	subl	(%rbx,%r13,4), %r8d
	subl	(%r12,%r13,4), %r10d
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%ecx, %eax
	je	.L6
	movl	(%rbx,%rax,4), %edx
	subl	(%rdi), %edx
	cmpl	%r8d, %edx
	jne	.L6
	movl	(%r12,%rax,4), %edx
	subl	(%r12,%rcx,4), %edx
	cmpl	%r10d, %edx
	sete	%dl
	movzbl	%dl, %edx
	addl	%edx, %r9d
.L6:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L7
	addq	$1, %rcx
	addq	$4, %rdi
	cmpq	%rsi, %rcx
	jne	.L5
	cmpl	%r9d, %r14d
	cmovl	%r9d, %r14d
	addq	$1, %r11
	cmpq	%rsi, %r11
	jne	.L9
.L23:
	addq	$1, %r13
	cmpq	%rsi, %r13
	jne	.L10
.L2:
	movl	%r15d, %edx
	xorl	%eax, %eax
	movl	$1, %edi
	subl	%r14d, %edx
	leaq	.LC0(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$24, %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
.L13:
	.cfi_restore_state
	xorl	%r14d, %r14d
	jmp	.L2
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	Y
	.bss
	.align 32
	.type	Y, @object
	.size	Y, 400
Y:
	.zero	400
	.globl	X
	.align 32
	.type	X, @object
	.size	X, 400
X:
	.zero	400
	.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:
```