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>
typedef struct point{int x,y;}point;
int main(){
    point con[200],sky[1000];
    int m,n,i,j,k,flag;
    while (1) {
        scanf("%d",&m);
        if (m==0) {
            return 0;
        }
        for (i=0; i<m; i++) {
            scanf("%d %d",&con[i].x,&con[i].y);
        }
        scanf("%d",&n);
        for (i=0; i<n; i++) {
            scanf("%d %d",&sky[i].x,&sky[i].y);
        }
        for (i=0; i<n; i++) {
            for (j=1; j<m; j++) {
                flag=0;
                for (k=0; k<n; k++) {
                    if (sky[k].x==sky[i].x+con[j].x-con[0].x&&sky[k].y==sky[i].y+con[j].y-con[0].y) {
                        flag=1;
                        break;
                    }
                }
                if (!flag) {
                    break;
                }
            }
            if (flag) {
                printf("%d %d\n",sky[i].x-con[0].x,sky[i].y-con[0].y);
                break;
            }
        }
    }
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$1456, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L20:
	leaq	-9640(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-9640(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	jmp	.L22
.L2:
	movl	$0, -9632(%rbp)
	jmp	.L4
.L5:
	leaq	-9616(%rbp), %rdx
	movl	-9632(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	4(%rax), %rdx
	leaq	-9616(%rbp), %rcx
	movl	-9632(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -9632(%rbp)
.L4:
	movl	-9640(%rbp), %eax
	cmpl	%eax, -9632(%rbp)
	jl	.L5
	leaq	-9636(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -9632(%rbp)
	jmp	.L6
.L7:
	leaq	-8016(%rbp), %rdx
	movl	-9632(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	4(%rax), %rdx
	leaq	-8016(%rbp), %rcx
	movl	-9632(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -9632(%rbp)
.L6:
	movl	-9636(%rbp), %eax
	cmpl	%eax, -9632(%rbp)
	jl	.L7
	movl	$0, -9632(%rbp)
	jmp	.L8
.L19:
	movl	$1, -9628(%rbp)
	jmp	.L9
.L16:
	movl	$0, -9620(%rbp)
	movl	$0, -9624(%rbp)
	jmp	.L10
.L13:
	movl	-9624(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,8), %edx
	movl	-9632(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,8), %ecx
	movl	-9628(%rbp), %eax
	cltq
	movl	-9616(%rbp,%rax,8), %eax
	addl	%ecx, %eax
	movl	-9616(%rbp), %ecx
	subl	%ecx, %eax
	cmpl	%eax, %edx
	jne	.L11
	movl	-9624(%rbp), %eax
	cltq
	movl	-8012(%rbp,%rax,8), %edx
	movl	-9632(%rbp), %eax
	cltq
	movl	-8012(%rbp,%rax,8), %ecx
	movl	-9628(%rbp), %eax
	cltq
	movl	-9612(%rbp,%rax,8), %eax
	addl	%ecx, %eax
	movl	-9612(%rbp), %ecx
	subl	%ecx, %eax
	cmpl	%eax, %edx
	jne	.L11
	movl	$1, -9620(%rbp)
	jmp	.L12
.L11:
	addl	$1, -9624(%rbp)
.L10:
	movl	-9636(%rbp), %eax
	cmpl	%eax, -9624(%rbp)
	jl	.L13
.L12:
	cmpl	$0, -9620(%rbp)
	je	.L23
	addl	$1, -9628(%rbp)
.L9:
	movl	-9640(%rbp), %eax
	cmpl	%eax, -9628(%rbp)
	jl	.L16
	jmp	.L15
.L23:
	nop
.L15:
	cmpl	$0, -9620(%rbp)
	je	.L17
	movl	-9632(%rbp), %eax
	cltq
	movl	-8012(%rbp,%rax,8), %eax
	movl	-9612(%rbp), %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-9632(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,8), %eax
	movl	-9616(%rbp), %ecx
	subl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L18
.L17:
	addl	$1, -9632(%rbp)
.L8:
	movl	-9636(%rbp), %eax
	cmpl	%eax, -9632(%rbp)
	jl	.L19
.L18:
	jmp	.L20
.L22:
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.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	$1496, %rsp
	.cfi_def_cfa_offset 9744
	movq	%fs:40, %rax
	movq	%rax, 9672(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rax
	leaq	1664(%rsp), %r15
	movq	%rax, 24(%rsp)
	leaq	1672(%rsp), %rax
	movq	%rax, 40(%rsp)
.L16:
	leaq	60(%rsp), %rax
	movl	$1, %ebp
	movq	%rax, 32(%rsp)
.L17:
	movq	24(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	56(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	leaq	64(%rsp), %rbx
	movl	$0, %r12d
	jle	.L7
.L6:
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %r12d
	addq	$8, %rbx
	cmpl	%r12d, 56(%rsp)
	jg	.L6
.L7:
	movq	32(%rsp), %rsi
	xorl	%eax, %eax
	movq	%r15, %rbx
	xorl	%r12d, %r12d
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %eax
	testl	%eax, %eax
	jle	.L17
.L8:
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %r13d
	addl	$1, %r12d
	addq	$8, %rbx
	cmpl	%r12d, %r13d
	jg	.L8
	testl	%r13d, %r13d
	jle	.L17
	movl	56(%rsp), %r14d
	cmpl	$1, %r14d
	jle	.L36
	movl	64(%rsp), %r12d
	movl	68(%rsp), %r10d
	leaq	72(%rsp), %rax
	xorl	%ebx, %ebx
	movq	40(%rsp), %rdi
	movq	%rax, 8(%rsp)
	leal	-1(%r13), %eax
	movl	%r12d, 16(%rsp)
	movl	%r10d, 20(%rsp)
	leaq	(%rdi,%rax,8), %rsi
	.p2align 4,,10
	.p2align 3
.L15:
	movslq	%ebx, %r9
	movq	8(%rsp), %r8
	movl	$1, %r11d
	movl	1664(%rsp,%r9,8), %ebp
	.p2align 4,,10
	.p2align 3
.L19:
	movl	(%r8), %ecx
	movq	%r15, %rax
	addl	%ebp, %ecx
	subl	%r12d, %ecx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$8, %rax
	cmpq	%rax, %rsi
	je	.L37
.L12:
	cmpl	%ecx, (%rax)
	jne	.L10
	movl	1668(%rsp,%r9,8), %edi
	movl	4(%r8), %edx
	addl	%edi, %edx
	subl	%r10d, %edx
	cmpl	%edx, 4(%rax)
	jne	.L10
	addl	$1, %r11d
	addq	$8, %r8
	cmpl	%r14d, %r11d
	jl	.L19
.L20:
	subl	20(%rsp), %edi
	movl	%ebp, %edx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	%edi, %ecx
	subl	16(%rsp), %edx
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L37:
	addl	$1, %ebx
	cmpl	%ebx, %r13d
	jg	.L15
	xorl	%ebp, %ebp
	jmp	.L17
.L36:
	testl	%ebp, %ebp
	je	.L17
	movl	64(%rsp), %eax
	movl	1668(%rsp), %edi
	movl	1664(%rsp), %ebp
	movl	%eax, 16(%rsp)
	movl	68(%rsp), %eax
	movl	%eax, 20(%rsp)
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L2:
	movq	9672(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L38
	addq	$9688, %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
.L38:
	.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
	.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	$1496, %rsp
	.cfi_def_cfa_offset 9744
	movq	%fs:40, %rax
	movq	%rax, 9672(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rax
	leaq	1664(%rsp), %r15
	movq	%rax, 24(%rsp)
	leaq	1672(%rsp), %rax
	movq	%rax, 40(%rsp)
.L16:
	leaq	60(%rsp), %rax
	movl	$1, %ebp
	movq	%rax, 32(%rsp)
.L17:
	movq	24(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	56(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	leaq	64(%rsp), %rbx
	movl	$0, %r12d
	jle	.L7
.L6:
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %r12d
	addq	$8, %rbx
	cmpl	%r12d, 56(%rsp)
	jg	.L6
.L7:
	movq	32(%rsp), %rsi
	xorl	%eax, %eax
	movq	%r15, %rbx
	xorl	%r12d, %r12d
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %eax
	testl	%eax, %eax
	jle	.L17
.L8:
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %r13d
	addl	$1, %r12d
	addq	$8, %rbx
	cmpl	%r12d, %r13d
	jg	.L8
	testl	%r13d, %r13d
	jle	.L17
	movl	56(%rsp), %r14d
	cmpl	$1, %r14d
	jle	.L36
	movl	64(%rsp), %r12d
	movl	68(%rsp), %r10d
	leaq	72(%rsp), %rax
	xorl	%ebx, %ebx
	movq	40(%rsp), %rdi
	movq	%rax, 8(%rsp)
	leal	-1(%r13), %eax
	movl	%r12d, 16(%rsp)
	movl	%r10d, 20(%rsp)
	leaq	(%rdi,%rax,8), %rsi
	.p2align 4,,10
	.p2align 3
.L15:
	movslq	%ebx, %r9
	movq	8(%rsp), %r8
	movl	$1, %r11d
	movl	1664(%rsp,%r9,8), %ebp
	.p2align 4,,10
	.p2align 3
.L19:
	movl	(%r8), %ecx
	movq	%r15, %rax
	addl	%ebp, %ecx
	subl	%r12d, %ecx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$8, %rax
	cmpq	%rax, %rsi
	je	.L37
.L12:
	cmpl	%ecx, (%rax)
	jne	.L10
	movl	1668(%rsp,%r9,8), %edi
	movl	4(%r8), %edx
	addl	%edi, %edx
	subl	%r10d, %edx
	cmpl	%edx, 4(%rax)
	jne	.L10
	addl	$1, %r11d
	addq	$8, %r8
	cmpl	%r14d, %r11d
	jl	.L19
.L20:
	subl	20(%rsp), %edi
	movl	%ebp, %edx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	%edi, %ecx
	subl	16(%rsp), %edx
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L37:
	addl	$1, %ebx
	cmpl	%ebx, %r13d
	jg	.L15
	xorl	%ebp, %ebp
	jmp	.L17
.L36:
	testl	%ebp, %ebp
	je	.L17
	movl	64(%rsp), %eax
	movl	1668(%rsp), %edi
	movl	1664(%rsp), %ebp
	movl	%eax, 16(%rsp)
	movl	68(%rsp), %eax
	movl	%eax, 20(%rsp)
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L2:
	movq	9672(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L38
	addq	$9688, %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
.L38:
	.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:

#include <stdio.h>
typedef struct point{int x,y;}point;
int main(){
    point con[200],sky[1000];
    int m,n,i,j,k,flag;
    while (1) {
        scanf("%d",&m);
        if (m==0) {
            return 0;
        }
        for (i=0; i<m; i++) {
            scanf("%d %d",&con[i].x,&con[i].y);
        }
        scanf("%d",&n);
        for (i=0; i<n; i++) {
            scanf("%d %d",&sky[i].x,&sky[i].y);
        }
        for (i=0; i<n; i++) {
            for (j=1; j<m; j++) {
                flag=0;
                for (k=0; k<n; k++) {
                    if (sky[k].x==sky[i].x+con[j].x-con[0].x&&sky[k].y==sky[i].y+con[j].y-con[0].y) {
                        flag=1;
                        break;
                    }
                }
                if (!flag) {
                    break;
                }
            }
            if (flag) {
                printf("%d %d\n",sky[i].x-con[0].x,sky[i].y-con[0].y);
                break;
            }
        }
    }
}
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 unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
typedef struct point{int x,y;}point;
int main(){
    point con[200],sky[1000];
    int m,n,i,j,k,flag;
    while (1) {
        scanf("%d",&m);
        if (m==0) {
            return 0;
        }
        for (i=0; i<m; i++) {
            scanf("%d %d",&con[i].x,&con[i].y);
        }
        scanf("%d",&n);
        for (i=0; i<n; i++) {
            scanf("%d %d",&sky[i].x,&sky[i].y);
        }
        for (i=0; i<n; i++) {
            for (j=1; j<m; j++) {
                flag=0;
                for (k=0; k<n; k++) {
                    if (sky[k].x==sky[i].x+con[j].x-con[0].x&&sky[k].y==sky[i].y+con[j].y-con[0].y) {
                        flag=1;
                        break;
                    }
                }
                if (!flag) {
                    break;
                }
            }
            if (flag) {
                printf("%d %d\n",sky[i].x-con[0].x,sky[i].y-con[0].y);
                break;
            }
        }
    }
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$1456, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L20:
	leaq	-9640(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-9640(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	jmp	.L22
.L2:
	movl	$0, -9632(%rbp)
	jmp	.L4
.L5:
	leaq	-9616(%rbp), %rdx
	movl	-9632(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	4(%rax), %rdx
	leaq	-9616(%rbp), %rcx
	movl	-9632(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -9632(%rbp)
.L4:
	movl	-9640(%rbp), %eax
	cmpl	%eax, -9632(%rbp)
	jl	.L5
	leaq	-9636(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -9632(%rbp)
	jmp	.L6
.L7:
	leaq	-8016(%rbp), %rdx
	movl	-9632(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	4(%rax), %rdx
	leaq	-8016(%rbp), %rcx
	movl	-9632(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -9632(%rbp)
.L6:
	movl	-9636(%rbp), %eax
	cmpl	%eax, -9632(%rbp)
	jl	.L7
	movl	$0, -9632(%rbp)
	jmp	.L8
.L19:
	movl	$1, -9628(%rbp)
	jmp	.L9
.L16:
	movl	$0, -9620(%rbp)
	movl	$0, -9624(%rbp)
	jmp	.L10
.L13:
	movl	-9624(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,8), %edx
	movl	-9632(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,8), %ecx
	movl	-9628(%rbp), %eax
	cltq
	movl	-9616(%rbp,%rax,8), %eax
	addl	%ecx, %eax
	movl	-9616(%rbp), %ecx
	subl	%ecx, %eax
	cmpl	%eax, %edx
	jne	.L11
	movl	-9624(%rbp), %eax
	cltq
	movl	-8012(%rbp,%rax,8), %edx
	movl	-9632(%rbp), %eax
	cltq
	movl	-8012(%rbp,%rax,8), %ecx
	movl	-9628(%rbp), %eax
	cltq
	movl	-9612(%rbp,%rax,8), %eax
	addl	%ecx, %eax
	movl	-9612(%rbp), %ecx
	subl	%ecx, %eax
	cmpl	%eax, %edx
	jne	.L11
	movl	$1, -9620(%rbp)
	jmp	.L12
.L11:
	addl	$1, -9624(%rbp)
.L10:
	movl	-9636(%rbp), %eax
	cmpl	%eax, -9624(%rbp)
	jl	.L13
.L12:
	cmpl	$0, -9620(%rbp)
	je	.L23
	addl	$1, -9628(%rbp)
.L9:
	movl	-9640(%rbp), %eax
	cmpl	%eax, -9628(%rbp)
	jl	.L16
	jmp	.L15
.L23:
	nop
.L15:
	cmpl	$0, -9620(%rbp)
	je	.L17
	movl	-9632(%rbp), %eax
	cltq
	movl	-8012(%rbp,%rax,8), %eax
	movl	-9612(%rbp), %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-9632(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,8), %eax
	movl	-9616(%rbp), %ecx
	subl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L18
.L17:
	addl	$1, -9632(%rbp)
.L8:
	movl	-9636(%rbp), %eax
	cmpl	%eax, -9632(%rbp)
	jl	.L19
.L18:
	jmp	.L20
.L22:
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$1456, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L20:
	leaq	-9640(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-9640(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	jmp	.L22
.L2:
	movl	$0, -9632(%rbp)
	jmp	.L4
.L5:
	leaq	-9616(%rbp), %rdx
	movl	-9632(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	4(%rax), %rdx
	leaq	-9616(%rbp), %rcx
	movl	-9632(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -9632(%rbp)
.L4:
	movl	-9640(%rbp), %eax
	cmpl	%eax, -9632(%rbp)
	jl	.L5
	leaq	-9636(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -9632(%rbp)
	jmp	.L6
.L7:
	leaq	-8016(%rbp), %rdx
	movl	-9632(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	4(%rax), %rdx
	leaq	-8016(%rbp), %rcx
	movl	-9632(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -9632(%rbp)
.L6:
	movl	-9636(%rbp), %eax
	cmpl	%eax, -9632(%rbp)
	jl	.L7
	movl	$0, -9632(%rbp)
	jmp	.L8
.L19:
	movl	$1, -9628(%rbp)
	jmp	.L9
.L16:
	movl	$0, -9620(%rbp)
	movl	$0, -9624(%rbp)
	jmp	.L10
.L13:
	movl	-9624(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,8), %edx
	movl	-9632(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,8), %ecx
	movl	-9628(%rbp), %eax
	cltq
	movl	-9616(%rbp,%rax,8), %eax
	addl	%ecx, %eax
	movl	-9616(%rbp), %ecx
	subl	%ecx, %eax
	cmpl	%eax, %edx
	jne	.L11
	movl	-9624(%rbp), %eax
	cltq
	movl	-8012(%rbp,%rax,8), %edx
	movl	-9632(%rbp), %eax
	cltq
	movl	-8012(%rbp,%rax,8), %ecx
	movl	-9628(%rbp), %eax
	cltq
	movl	-9612(%rbp,%rax,8), %eax
	addl	%ecx, %eax
	movl	-9612(%rbp), %ecx
	subl	%ecx, %eax
	cmpl	%eax, %edx
	jne	.L11
	movl	$1, -9620(%rbp)
	jmp	.L12
.L11:
	addl	$1, -9624(%rbp)
.L10:
	movl	-9636(%rbp), %eax
	cmpl	%eax, -9624(%rbp)
	jl	.L13
.L12:
	cmpl	$0, -9620(%rbp)
	je	.L23
	addl	$1, -9628(%rbp)
.L9:
	movl	-9640(%rbp), %eax
	cmpl	%eax, -9628(%rbp)
	jl	.L16
	jmp	.L15
.L23:
	nop
.L15:
	cmpl	$0, -9620(%rbp)
	je	.L17
	movl	-9632(%rbp), %eax
	cltq
	movl	-8012(%rbp,%rax,8), %eax
	movl	-9612(%rbp), %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-9632(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,8), %eax
	movl	-9616(%rbp), %ecx
	subl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L18
.L17:
	addl	$1, -9632(%rbp)
.L8:
	movl	-9636(%rbp), %eax
	cmpl	%eax, -9632(%rbp)
	jl	.L19
.L18:
	jmp	.L20
.L22:
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
