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>
int main(void){

	int m,n,s[200][2],t[1000][2];
	int i,j,k,x,y;

	while(1){
		scanf("%d",&m);
		if(!m)break;
		for(i=0;i<m;i++){
			scanf("%d%d",&s[i][0],&s[i][1]);
		}
		scanf("%d",&n);
		for(i=0;i<n;i++){
			scanf("%d%d",&t[i][0],&t[i][1]);
		}
		for(i=0;i<n;i++){
			x=t[i][0]-s[0][0];
			y=t[i][1]-s[0][1];
			for(j=1;j<m;j++){
				for(k=0;k<n;k++){
					if(s[j][0]+x==t[k][0]&&s[j][1]+y==t[k][1]){
						break;
					}
				}
				if(k==n)break;
			}
			if(j==m){
				printf("%d %d\n",x,y);
				break;
			}
		}
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8248
	orq	$0, (%rsp)
	subq	$1480, %rsp
	.cfi_def_cfa_offset 9728
	leaq	.LC1(%rip), %r15
	movq	%fs:40, %rax
	movq	%rax, 9656(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	leaq	1652(%rsp), %rbx
	movq	%rax, 16(%rsp)
	movq	%rbx, %r14
.L17:
	leaq	44(%rsp), %rax
	movq	%rax, 24(%rsp)
.L2:
	movq	16(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	testl	%eax, %eax
	je	.L3
	leaq	48(%rsp), %rbx
	movl	$0, %ebp
	jle	.L8
.L7:
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, 40(%rsp)
	jg	.L7
.L8:
	movq	24(%rsp), %rsi
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	leaq	.LC0(%rip), %rdi
	leaq	1648(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	movq	%rbx, %rbp
	testl	%eax, %eax
	jle	.L2
.L9:
	movq	%rbp, %rsi
	leaq	4(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %esi
	addl	$1, %r12d
	addq	$8, %rbp
	cmpl	%r12d, %esi
	jg	.L9
	testl	%esi, %esi
	jle	.L2
	leal	-1(%rsi), %eax
	movl	48(%rsp), %r13d
	movl	52(%rsp), %r12d
	leaq	8(%rbx,%rax,8), %rax
	movl	40(%rsp), %ebp
	movq	%rax, 8(%rsp)
.L18:
	movl	(%rbx), %r11d
	movl	4(%rbx), %r9d
	subl	%r13d, %r11d
	subl	%r12d, %r9d
	cmpl	$1, %ebp
	jle	.L10
	leaq	56(%rsp), %r8
	movl	$1, %r10d
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%r8), %ecx
	movq	%r14, %rax
	xorl	%edx, %edx
	addl	%r11d, %ecx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L12:
	addl	$1, %edx
	addq	$8, %rax
	cmpl	%edx, %esi
	je	.L15
.L14:
	cmpl	-4(%rax), %ecx
	jne	.L12
	movl	4(%r8), %edi
	addl	%r9d, %edi
	cmpl	(%rax), %edi
	jne	.L12
	addl	$1, %r10d
	addq	$8, %r8
	cmpl	%r10d, %ebp
	jne	.L11
.L16:
	movl	%r9d, %ecx
	movl	%r11d, %edx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L17
.L10:
	je	.L16
	.p2align 4,,10
	.p2align 3
.L15:
	addq	$8, %rbx
	cmpq	%rbx, 8(%rsp)
	jne	.L18
	jmp	.L2
.L3:
	movq	9656(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$9672, %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
.L30:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8248
	orq	$0, (%rsp)
	subq	$1480, %rsp
	.cfi_def_cfa_offset 9728
	leaq	.LC1(%rip), %r15
	movq	%fs:40, %rax
	movq	%rax, 9656(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	leaq	1652(%rsp), %rbx
	movq	%rax, 16(%rsp)
	movq	%rbx, %r14
.L17:
	leaq	44(%rsp), %rax
	movq	%rax, 24(%rsp)
.L2:
	movq	16(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	testl	%eax, %eax
	je	.L3
	leaq	48(%rsp), %rbx
	movl	$0, %ebp
	jle	.L8
.L7:
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, 40(%rsp)
	jg	.L7
.L8:
	movq	24(%rsp), %rsi
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	leaq	.LC0(%rip), %rdi
	leaq	1648(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	movq	%rbx, %rbp
	testl	%eax, %eax
	jle	.L2
.L9:
	movq	%rbp, %rsi
	leaq	4(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %esi
	addl	$1, %r12d
	addq	$8, %rbp
	cmpl	%r12d, %esi
	jg	.L9
	testl	%esi, %esi
	jle	.L2
	leal	-1(%rsi), %eax
	movl	48(%rsp), %r13d
	movl	52(%rsp), %r12d
	leaq	8(%rbx,%rax,8), %rax
	movl	40(%rsp), %ebp
	movq	%rax, 8(%rsp)
.L18:
	movl	(%rbx), %r11d
	movl	4(%rbx), %r9d
	subl	%r13d, %r11d
	subl	%r12d, %r9d
	cmpl	$1, %ebp
	jle	.L10
	leaq	56(%rsp), %r8
	movl	$1, %r10d
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%r8), %ecx
	movq	%r14, %rax
	xorl	%edx, %edx
	addl	%r11d, %ecx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L12:
	addl	$1, %edx
	addq	$8, %rax
	cmpl	%edx, %esi
	je	.L15
.L14:
	cmpl	-4(%rax), %ecx
	jne	.L12
	movl	4(%r8), %edi
	addl	%r9d, %edi
	cmpl	(%rax), %edi
	jne	.L12
	addl	$1, %r10d
	addq	$8, %r8
	cmpl	%r10d, %ebp
	jne	.L11
.L16:
	movl	%r9d, %ecx
	movl	%r11d, %edx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L17
.L10:
	je	.L16
	.p2align 4,,10
	.p2align 3
.L15:
	addq	$8, %rbx
	cmpq	%rbx, 8(%rsp)
	jne	.L18
	jmp	.L2
.L3:
	movq	9656(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$9672, %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
.L30:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8248
	orq	$0, (%rsp)
	subq	$1480, %rsp
	.cfi_def_cfa_offset 9728
	leaq	.LC1(%rip), %r15
	movq	%fs:40, %rax
	movq	%rax, 9656(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	leaq	1652(%rsp), %rbx
	movq	%rax, 16(%rsp)
	movq	%rbx, %r14
.L17:
	leaq	44(%rsp), %rax
	movq	%rax, 24(%rsp)
.L2:
	movq	16(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	testl	%eax, %eax
	je	.L3
	leaq	48(%rsp), %rbx
	movl	$0, %ebp
	jle	.L8
.L7:
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, 40(%rsp)
	jg	.L7
.L8:
	movq	24(%rsp), %rsi
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	leaq	.LC0(%rip), %rdi
	leaq	1648(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	movq	%rbx, %rbp
	testl	%eax, %eax
	jle	.L2
.L9:
	movq	%rbp, %rsi
	leaq	4(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %esi
	addl	$1, %r12d
	addq	$8, %rbp
	cmpl	%r12d, %esi
	jg	.L9
	testl	%esi, %esi
	jle	.L2
	leal	-1(%rsi), %eax
	movl	48(%rsp), %r13d
	movl	52(%rsp), %r12d
	leaq	8(%rbx,%rax,8), %rax
	movl	40(%rsp), %ebp
	movq	%rax, 8(%rsp)
.L18:
	movl	(%rbx), %r11d
	movl	4(%rbx), %r9d
	subl	%r13d, %r11d
	subl	%r12d, %r9d
	cmpl	$1, %ebp
	jle	.L10
	leaq	56(%rsp), %r8
	movl	$1, %r10d
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%r8), %ecx
	movq	%r14, %rax
	xorl	%edx, %edx
	addl	%r11d, %ecx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L12:
	addl	$1, %edx
	addq	$8, %rax
	cmpl	%edx, %esi
	je	.L15
.L14:
	cmpl	-4(%rax), %ecx
	jne	.L12
	movl	4(%r8), %edi
	addl	%r9d, %edi
	cmpl	(%rax), %edi
	jne	.L12
	addl	$1, %r10d
	addq	$8, %r8
	cmpl	%r10d, %ebp
	jne	.L11
.L16:
	movl	%r9d, %ecx
	movl	%r11d, %edx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L17
.L10:
	je	.L16
	.p2align 4,,10
	.p2align 3
.L15:
	addq	$8, %rbx
	cmpq	%rbx, 8(%rsp)
	jne	.L18
	jmp	.L2
.L3:
	movq	9656(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$9672, %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
.L30:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```
```c
#include<stdio.h>
int main(void){

	int m,n,s[200][2],t[1000][2];
	int i,j,k,x,y;

	while(1){
		scanf("%d",&m);
		if(!m)break;
		for(i=0;i<m;i++){
			scanf("%d%d",&s[i][0],&s[i][1]);
		}
		scanf("%d",&n);
		for(i=0;i<n;i++){
			scanf("%d%d",&t[i][0],&t[i][1]);
		}
		for(i=0;i<n;i++){
			x=t[i][0]-s[0][0];
			y=t[i][1]-s[0][1];
			for(j=1;j<m;j++){
				for(k=0;k<n;k++){
					if(s[j][0]+x==t[k][0]&&s[j][1]+y==t[k][1]){
						break;
					}
				}
				if(k==n)break;
			}
			if(j==m){
				printf("%d %d\n",x,y);
				break;
			}
		}
	}
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
int main(void){

	int m,n,s[200][2],t[1000][2];
	int i,j,k,x,y;

	while(1){
		scanf("%d",&m);
		if(!m)break;
		for(i=0;i<m;i++){
			scanf("%d%d",&s[i][0],&s[i][1]);
		}
		scanf("%d",&n);
		for(i=0;i<n;i++){
			scanf("%d%d",&t[i][0],&t[i][1]);
		}
		for(i=0;i<n;i++){
			x=t[i][0]-s[0][0];
			y=t[i][1]-s[0][1];
			for(j=1;j<m;j++){
				for(k=0;k<n;k++){
					if(s[j][0]+x==t[k][0]&&s[j][1]+y==t[k][1]){
						break;
					}
				}
				if(k==n)break;
			}
			if(j==m){
				printf("%d %d\n",x,y);
				break;
			}
		}
	}
	return 0;
}```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

5
8 5
6 4
4 3
7 10
0 10
10
10 5
2 7
10 7
8 10
10 2
1 2
8 1
6 7
6 0
0 9
5
904207 809784
845370 244806
499091 59863
638406 182509
435076 362268
10
757559 866424
114810 239537
519926 989458
461089 424480
674361 448440
81851 150384
459107 795405
299682 6700
254125 362183
50795 541942
0
 5
8 5
6 4
4 3
7 10
0 10
10
10 5
2 7
9 7
8 10
10 2
1 2
8 1
6 7
6 0
0 9
5
904207 809784
845370 244806
499091 59863
638406 182509
435076 362268
10
757559 866424
114810 239537
919396 989458
461089 424480
674361 448440
81851 150384
459107 795405
299682 6700
254125 362183
50795 541942
0
 5
8 5
6 4
4 3
7 10
0 10
10
10 5
2 7
9 7
8 10
10 2
1 2
8 1
6 7
6 0
0 0
5
904207 809784
845370 244806
499091 59863
638406 182509
435076 362268
10
757559 866424
114810 239537
519926 989458
461089 424480
674361 448440
81851 150384
459107 795405
299682 6700
254125 362183
50795 541942
0
 5
8 5
6 4
4 3
11 10
0 10
10
10 5
2 7
10 7
8 10
10 2
1 2
8 1
6 7
6 0
0 9
5
904207 809784
845370 244806
499091 59863
638406 182509
435076 362268
10
757559 866424
114810 239537
519926 989458
461089 424480
674361 448440
81851 150384
459107 795405
299682 6700
254125 362183
50795 541942
0
 5
8 5
6 4
4 3
11 10
0 10
10
10 5
2 4
10 7
8 10
10 2
1 2
8 1
6 7
6 0
0 9
5
904207 809784
845370 244806
499091 59863
638406 182509
435076 362268
10
757559 866424
114810 239537
519926 989458
461089 424480
674361 448440
81851 150384
459107 795405
299682 6700
254125 362183
50795 541942
0
 5
8 5
6 4
4 3
11 10
0 10
10
10 5
2 4
10 7
8 10
10 2
1 2
8 1
6 7
6 0
0 9
5
904207 809784
845370 244806
499091 59863
638406 182509
435076 362268
10
757559 866424
114810 239537
519926 989458
461089 424480
1244032 448440
81851 150384
459107 795405
299682 6700
254125 362183
50795 541942
0
 5
8 5
6 4
4 3
11 10
0 10
10
10 5
2 4
10 7
8 10
10 2
1 2
8 1
6 7
6 0
0 9
5
904207 809784
845370 244806
499091 59863
638406 182509
435076 362268
10
757559 866424
114810 239537
519926 989458
461089 424480
1244032 646221
81851 150384
459107 795405
299682 6700
254125 362183
50795 541942
0
 5
8 5
6 4
4 3
7 10
0 10
10
10 5
2 7
10 7
8 10
10 2
1 2
8 1
6 8
6 0
0 9
5
904207 809784
845370 244806
499091 59863
638406 182509
435076 362268
10
757559 866424
114810 239537
519926 989458
461089 424480
674361 448440
81851 150384
459107 795405
299682 6700
254125 362183
50795 541942
0
 5
8 5
6 4
4 3
11 10
0 10
10
10 5
2 7
10 7
8 10
10 2
1 2
8 1
6 7
6 0
0 9
5
904207 809784
845370 244806
499091 59863
638406 182509
435076 362268
10
757559 866424
114810 239537
519926 989458
461089 424480
674361 448440
81851 150384
459107 795405
299682 499
254125 362183
50795 541942
0
 5
8 5
6 4
4 3
11 10
0 10
10
10 5
2 4
8 7
8 10
10 2
1 2
8 1
6 7
6 0
0 9
5
904207 809784
845370 244806
499091 59863
638406 182509
435076 362268
10
757559 866424
114810 239537
519926 989458
461089 424480
674361 448440
81851 150384
459107 795405
299682 6700
254125 362183
50795 541942
0

-384281 179674
 2 -3
 2 -3
-384281 179674
 -384281 179674
 -384281 179674
 -384281 179674
 -384281 179674
 -384281 179674
 -384281 179674
 -384281 179674

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>
int main(void){

	int m,n,s[200][2],t[1000][2];
	int i,j,k,x,y;

	while(1){
		scanf("%d",&m);
		if(!m)break;
		for(i=0;i<m;i++){
			scanf("%d%d",&s[i][0],&s[i][1]);
		}
		scanf("%d",&n);
		for(i=0;i<n;i++){
			scanf("%d%d",&t[i][0],&t[i][1]);
		}
		for(i=0;i<n;i++){
			x=t[i][0]-s[0][0];
			y=t[i][1]-s[0][1];
			for(j=1;j<m;j++){
				for(k=0;k<n;k++){
					if(s[j][0]+x==t[k][0]&&s[j][1]+y==t[k][1]){
						break;
					}
				}
				if(k==n)break;
			}
			if(j==m){
				printf("%d %d\n",x,y);
				break;
			}
		}
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8248
	orq	$0, (%rsp)
	subq	$1480, %rsp
	.cfi_def_cfa_offset 9728
	leaq	.LC1(%rip), %r15
	movq	%fs:40, %rax
	movq	%rax, 9656(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	leaq	1652(%rsp), %rbx
	movq	%rax, 16(%rsp)
	movq	%rbx, %r14
.L17:
	leaq	44(%rsp), %rax
	movq	%rax, 24(%rsp)
.L2:
	movq	16(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	testl	%eax, %eax
	je	.L3
	leaq	48(%rsp), %rbx
	movl	$0, %ebp
	jle	.L8
.L7:
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, 40(%rsp)
	jg	.L7
.L8:
	movq	24(%rsp), %rsi
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	leaq	.LC0(%rip), %rdi
	leaq	1648(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	movq	%rbx, %rbp
	testl	%eax, %eax
	jle	.L2
.L9:
	movq	%rbp, %rsi
	leaq	4(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %esi
	addl	$1, %r12d
	addq	$8, %rbp
	cmpl	%r12d, %esi
	jg	.L9
	testl	%esi, %esi
	jle	.L2
	leal	-1(%rsi), %eax
	movl	48(%rsp), %r13d
	movl	52(%rsp), %r12d
	leaq	8(%rbx,%rax,8), %rax
	movl	40(%rsp), %ebp
	movq	%rax, 8(%rsp)
.L18:
	movl	(%rbx), %r11d
	movl	4(%rbx), %r9d
	subl	%r13d, %r11d
	subl	%r12d, %r9d
	cmpl	$1, %ebp
	jle	.L10
	leaq	56(%rsp), %r8
	movl	$1, %r10d
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%r8), %ecx
	movq	%r14, %rax
	xorl	%edx, %edx
	addl	%r11d, %ecx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L12:
	addl	$1, %edx
	addq	$8, %rax
	cmpl	%edx, %esi
	je	.L15
.L14:
	cmpl	-4(%rax), %ecx
	jne	.L12
	movl	4(%r8), %edi
	addl	%r9d, %edi
	cmpl	(%rax), %edi
	jne	.L12
	addl	$1, %r10d
	addq	$8, %r8
	cmpl	%r10d, %ebp
	jne	.L11
.L16:
	movl	%r9d, %ecx
	movl	%r11d, %edx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L17
.L10:
	je	.L16
	.p2align 4,,10
	.p2align 3
.L15:
	addq	$8, %rbx
	cmpq	%rbx, 8(%rsp)
	jne	.L18
	jmp	.L2
.L3:
	movq	9656(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$9672, %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
.L30:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8248
	orq	$0, (%rsp)
	subq	$1480, %rsp
	.cfi_def_cfa_offset 9728
	leaq	.LC1(%rip), %r15
	movq	%fs:40, %rax
	movq	%rax, 9656(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	leaq	1652(%rsp), %rbx
	movq	%rax, 16(%rsp)
	movq	%rbx, %r14
.L17:
	leaq	44(%rsp), %rax
	movq	%rax, 24(%rsp)
.L2:
	movq	16(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	testl	%eax, %eax
	je	.L3
	leaq	48(%rsp), %rbx
	movl	$0, %ebp
	jle	.L8
.L7:
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, 40(%rsp)
	jg	.L7
.L8:
	movq	24(%rsp), %rsi
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	leaq	.LC0(%rip), %rdi
	leaq	1648(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	movq	%rbx, %rbp
	testl	%eax, %eax
	jle	.L2
.L9:
	movq	%rbp, %rsi
	leaq	4(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %esi
	addl	$1, %r12d
	addq	$8, %rbp
	cmpl	%r12d, %esi
	jg	.L9
	testl	%esi, %esi
	jle	.L2
	leal	-1(%rsi), %eax
	movl	48(%rsp), %r13d
	movl	52(%rsp), %r12d
	leaq	8(%rbx,%rax,8), %rax
	movl	40(%rsp), %ebp
	movq	%rax, 8(%rsp)
.L18:
	movl	(%rbx), %r11d
	movl	4(%rbx), %r9d
	subl	%r13d, %r11d
	subl	%r12d, %r9d
	cmpl	$1, %ebp
	jle	.L10
	leaq	56(%rsp), %r8
	movl	$1, %r10d
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%r8), %ecx
	movq	%r14, %rax
	xorl	%edx, %edx
	addl	%r11d, %ecx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L12:
	addl	$1, %edx
	addq	$8, %rax
	cmpl	%edx, %esi
	je	.L15
.L14:
	cmpl	-4(%rax), %ecx
	jne	.L12
	movl	4(%r8), %edi
	addl	%r9d, %edi
	cmpl	(%rax), %edi
	jne	.L12
	addl	$1, %r10d
	addq	$8, %r8
	cmpl	%r10d, %ebp
	jne	.L11
.L16:
	movl	%r9d, %ecx
	movl	%r11d, %edx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L17
.L10:
	je	.L16
	.p2align 4,,10
	.p2align 3
.L15:
	addq	$8, %rbx
	cmpq	%rbx, 8(%rsp)
	jne	.L18
	jmp	.L2
.L3:
	movq	9656(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$9672, %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
.L30:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```