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>

int main(void) {
	int seiza[200][2];
	int seizamax;
	int hosimax;
	int hosi[1000][2];
	int i,j,k;
	int xoffset,yoffset;
	int x,y;
	int ok;
	while(1) {
		/*f[^ÇÝÝ*/
		/*¯ÀÌ`*/
		scanf("%d",&seizamax);
		if(seizamax==0)break;
		for(i=0;i<seizamax;i++) {
			scanf("%d %d",&seiza[i][0],&seiza[i][1]);
		}
		/*¯Ìzu*/
		scanf("%d",&hosimax);
		for(i=0;i<hosimax;i++) {
			scanf("%d %d",&hosi[i][0],&hosi[i][1]);
		}
		/*Tõ*/
		for(i=0;i<hosimax;i++) {
			/*Çê¾¯½sÚ®·é©*/
			xoffset=hosi[i][0]-seiza[0][0];
			yoffset=hosi[i][1]-seiza[0][1];
			/*êv·é©²×é*/
			for(j=1;j<seizamax;j++) {
				x=seiza[j][0]+xoffset;
				y=seiza[j][1]+yoffset;
				ok=0;
				for(k=0;k<hosimax;k++) {
					if(x==hosi[k][0] && y==hosi[k][1]) {
						/*¯ª Á½*/
						ok=1;
						break;
					}
				}
				if(ok==0)break;
			}
			if(j>=seizamax)break;/*ÅãÜÅ·×Ä©Â©Á½*/
		}
		/*ÊÌoÍ*/
		printf("%d %d\n",xoffset,yoffset);
	}
	return 0;
}```

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	$1472, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L20:
	leaq	-9656(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-9656(%rbp), %eax
	testl	%eax, %eax
	je	.L24
	movl	$0, -9648(%rbp)
	jmp	.L4
.L5:
	leaq	-9616(%rbp), %rdx
	movl	-9648(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	$4, %rax
	addq	%rax, %rdx
	leaq	-9616(%rbp), %rcx
	movl	-9648(%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, -9648(%rbp)
.L4:
	movl	-9656(%rbp), %eax
	cmpl	%eax, -9648(%rbp)
	jl	.L5
	leaq	-9652(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -9648(%rbp)
	jmp	.L6
.L7:
	leaq	-8016(%rbp), %rdx
	movl	-9648(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	$4, %rax
	addq	%rax, %rdx
	leaq	-8016(%rbp), %rcx
	movl	-9648(%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, -9648(%rbp)
.L6:
	movl	-9652(%rbp), %eax
	cmpl	%eax, -9648(%rbp)
	jl	.L7
	movl	$0, -9648(%rbp)
	jmp	.L8
.L19:
	movl	-9648(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,8), %eax
	movl	-9616(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -9636(%rbp)
	movl	-9648(%rbp), %eax
	cltq
	movl	-8012(%rbp,%rax,8), %eax
	movl	-9612(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -9632(%rbp)
	movl	$1, -9644(%rbp)
	jmp	.L9
.L16:
	movl	-9644(%rbp), %eax
	cltq
	movl	-9616(%rbp,%rax,8), %edx
	movl	-9636(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -9624(%rbp)
	movl	-9644(%rbp), %eax
	cltq
	movl	-9612(%rbp,%rax,8), %edx
	movl	-9632(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -9620(%rbp)
	movl	$0, -9628(%rbp)
	movl	$0, -9640(%rbp)
	jmp	.L10
.L13:
	movl	-9640(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,8), %eax
	cmpl	%eax, -9624(%rbp)
	jne	.L11
	movl	-9640(%rbp), %eax
	cltq
	movl	-8012(%rbp,%rax,8), %eax
	cmpl	%eax, -9620(%rbp)
	jne	.L11
	movl	$1, -9628(%rbp)
	jmp	.L12
.L11:
	addl	$1, -9640(%rbp)
.L10:
	movl	-9652(%rbp), %eax
	cmpl	%eax, -9640(%rbp)
	jl	.L13
.L12:
	cmpl	$0, -9628(%rbp)
	je	.L25
	addl	$1, -9644(%rbp)
.L9:
	movl	-9656(%rbp), %eax
	cmpl	%eax, -9644(%rbp)
	jl	.L16
	jmp	.L15
.L25:
	nop
.L15:
	movl	-9656(%rbp), %eax
	cmpl	%eax, -9644(%rbp)
	jge	.L26
	addl	$1, -9648(%rbp)
.L8:
	movl	-9652(%rbp), %eax
	cmpl	%eax, -9648(%rbp)
	jl	.L19
	jmp	.L18
.L26:
	nop
.L18:
	movl	-9632(%rbp), %edx
	movl	-9636(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L20
.L24:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	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	$1464, %rsp
	.cfi_def_cfa_offset 9712
	leaq	.LC1(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 9640(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	1632(%rsp), %r14
	movq	%rax, (%rsp)
	leaq	1640(%rsp), %rax
	movq	%rax, 8(%rsp)
.L13:
	movq	(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	leaq	32(%rsp), %rbp
	movl	$0, %r15d
	jle	.L7
.L6:
	leaq	4(%rbp), %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %r15d
	addq	$8, %rbp
	cmpl	%r15d, 24(%rsp)
	jg	.L6
.L7:
	leaq	28(%rsp), %rsi
	xorl	%eax, %eax
	movq	%r14, %rbp
	xorl	%r15d, %r15d
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
.L8:
	leaq	4(%rbp), %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	addl	$1, %r15d
	addq	$8, %rbp
	cmpl	%r15d, %eax
	jg	.L8
	testl	%eax, %eax
	jle	.L5
	movl	24(%rsp), %r10d
	movq	8(%rsp), %rdi
	subl	$1, %eax
	movq	%r14, %r9
	movl	32(%rsp), %ebp
	movl	36(%rsp), %r11d
	leaq	(%rdi,%rax,8), %rcx
	leal	-2(%r10), %eax
	leaq	48(%rsp,%rax,8), %r8
.L14:
	movl	(%r9), %r12d
	movl	4(%r9), %r13d
	subl	%ebp, %r12d
	subl	%r11d, %r13d
	cmpl	$1, %r10d
	jle	.L5
	leaq	40(%rsp), %rdi
	.p2align 4,,10
	.p2align 3
.L15:
	movl	(%rdi), %edx
	movl	4(%rdi), %esi
	movq	%r14, %rax
	addl	%r12d, %edx
	addl	%r13d, %esi
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$8, %rax
	cmpq	%rcx, %rax
	je	.L30
.L11:
	cmpl	%edx, (%rax)
	jne	.L9
	cmpl	%esi, 4(%rax)
	jne	.L9
	addq	$8, %rdi
	cmpq	%rdi, %r8
	jne	.L15
.L5:
	movl	%r13d, %ecx
	movl	%r12d, %edx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L30:
	addq	$8, %r9
	cmpq	%rcx, %r9
	jne	.L14
	jmp	.L5
.L2:
	movq	9640(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$9656, %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
.L31:
	.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	$1464, %rsp
	.cfi_def_cfa_offset 9712
	leaq	.LC1(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 9640(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	1632(%rsp), %r14
	movq	%rax, (%rsp)
	leaq	1640(%rsp), %rax
	movq	%rax, 8(%rsp)
.L13:
	movq	(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	leaq	32(%rsp), %rbp
	movl	$0, %r15d
	jle	.L7
.L6:
	leaq	4(%rbp), %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %r15d
	addq	$8, %rbp
	cmpl	%r15d, 24(%rsp)
	jg	.L6
.L7:
	leaq	28(%rsp), %rsi
	xorl	%eax, %eax
	movq	%r14, %rbp
	xorl	%r15d, %r15d
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
.L8:
	leaq	4(%rbp), %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	addl	$1, %r15d
	addq	$8, %rbp
	cmpl	%r15d, %eax
	jg	.L8
	testl	%eax, %eax
	jle	.L5
	movl	24(%rsp), %r10d
	movq	8(%rsp), %rdi
	subl	$1, %eax
	movq	%r14, %r9
	movl	32(%rsp), %ebp
	movl	36(%rsp), %r11d
	leaq	(%rdi,%rax,8), %rcx
	leal	-2(%r10), %eax
	leaq	48(%rsp,%rax,8), %r8
.L14:
	movl	(%r9), %r12d
	movl	4(%r9), %r13d
	subl	%ebp, %r12d
	subl	%r11d, %r13d
	cmpl	$1, %r10d
	jle	.L5
	leaq	40(%rsp), %rdi
	.p2align 4,,10
	.p2align 3
.L15:
	movl	(%rdi), %edx
	movl	4(%rdi), %esi
	movq	%r14, %rax
	addl	%r12d, %edx
	addl	%r13d, %esi
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$8, %rax
	cmpq	%rcx, %rax
	je	.L30
.L11:
	cmpl	%edx, (%rax)
	jne	.L9
	cmpl	%esi, 4(%rax)
	jne	.L9
	addq	$8, %rdi
	cmpq	%rdi, %r8
	jne	.L15
.L5:
	movl	%r13d, %ecx
	movl	%r12d, %edx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L30:
	addq	$8, %r9
	cmpq	%rcx, %r9
	jne	.L14
	jmp	.L5
.L2:
	movq	9640(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$9656, %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
.L31:
	.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>

int main(void) {
	int seiza[200][2];
	int seizamax;
	int hosimax;
	int hosi[1000][2];
	int i,j,k;
	int xoffset,yoffset;
	int x,y;
	int ok;
	while(1) {
		/*f[^ÇÝÝ*/
		/*¯ÀÌ`*/
		scanf("%d",&seizamax);
		if(seizamax==0)break;
		for(i=0;i<seizamax;i++) {
			scanf("%d %d",&seiza[i][0],&seiza[i][1]);
		}
		/*¯Ìzu*/
		scanf("%d",&hosimax);
		for(i=0;i<hosimax;i++) {
			scanf("%d %d",&hosi[i][0],&hosi[i][1]);
		}
		/*Tõ*/
		for(i=0;i<hosimax;i++) {
			/*Çê¾¯½sÚ®·é©*/
			xoffset=hosi[i][0]-seiza[0][0];
			yoffset=hosi[i][1]-seiza[0][1];
			/*êv·é©²×é*/
			for(j=1;j<seizamax;j++) {
				x=seiza[j][0]+xoffset;
				y=seiza[j][1]+yoffset;
				ok=0;
				for(k=0;k<hosimax;k++) {
					if(x==hosi[k][0] && y==hosi[k][1]) {
						/*¯ª Á½*/
						ok=1;
						break;
					}
				}
				if(ok==0)break;
			}
			if(j>=seizamax)break;/*ÅãÜÅ·×Ä©Â©Á½*/
		}
		/*ÊÌoÍ*/
		printf("%d %d\n",xoffset,yoffset);
	}
	return 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 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

-8 4
-384281 179674
 2 -3
-853412 -267842
 2 -3
-384281 179674
 -8 4
-384281 179674
 -8 4
-384281 179674
 -8 4
-384281 179674
 -8 4
-384281 179674
 -8 4
-384281 179674
 -8 4
-384281 179674
 -8 4
-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>

int main(void) {
	int seiza[200][2];
	int seizamax;
	int hosimax;
	int hosi[1000][2];
	int i,j,k;
	int xoffset,yoffset;
	int x,y;
	int ok;
	while(1) {
		/*f[^ÇÝÝ*/
		/*¯ÀÌ`*/
		scanf("%d",&seizamax);
		if(seizamax==0)break;
		for(i=0;i<seizamax;i++) {
			scanf("%d %d",&seiza[i][0],&seiza[i][1]);
		}
		/*¯Ìzu*/
		scanf("%d",&hosimax);
		for(i=0;i<hosimax;i++) {
			scanf("%d %d",&hosi[i][0],&hosi[i][1]);
		}
		/*Tõ*/
		for(i=0;i<hosimax;i++) {
			/*Çê¾¯½sÚ®·é©*/
			xoffset=hosi[i][0]-seiza[0][0];
			yoffset=hosi[i][1]-seiza[0][1];
			/*êv·é©²×é*/
			for(j=1;j<seizamax;j++) {
				x=seiza[j][0]+xoffset;
				y=seiza[j][1]+yoffset;
				ok=0;
				for(k=0;k<hosimax;k++) {
					if(x==hosi[k][0] && y==hosi[k][1]) {
						/*¯ª Á½*/
						ok=1;
						break;
					}
				}
				if(ok==0)break;
			}
			if(j>=seizamax)break;/*ÅãÜÅ·×Ä©Â©Á½*/
		}
		/*ÊÌoÍ*/
		printf("%d %d\n",xoffset,yoffset);
	}
	return 0;
}```

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	$1472, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L20:
	leaq	-9656(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-9656(%rbp), %eax
	testl	%eax, %eax
	je	.L24
	movl	$0, -9648(%rbp)
	jmp	.L4
.L5:
	leaq	-9616(%rbp), %rdx
	movl	-9648(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	$4, %rax
	addq	%rax, %rdx
	leaq	-9616(%rbp), %rcx
	movl	-9648(%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, -9648(%rbp)
.L4:
	movl	-9656(%rbp), %eax
	cmpl	%eax, -9648(%rbp)
	jl	.L5
	leaq	-9652(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -9648(%rbp)
	jmp	.L6
.L7:
	leaq	-8016(%rbp), %rdx
	movl	-9648(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	$4, %rax
	addq	%rax, %rdx
	leaq	-8016(%rbp), %rcx
	movl	-9648(%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, -9648(%rbp)
.L6:
	movl	-9652(%rbp), %eax
	cmpl	%eax, -9648(%rbp)
	jl	.L7
	movl	$0, -9648(%rbp)
	jmp	.L8
.L19:
	movl	-9648(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,8), %eax
	movl	-9616(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -9636(%rbp)
	movl	-9648(%rbp), %eax
	cltq
	movl	-8012(%rbp,%rax,8), %eax
	movl	-9612(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -9632(%rbp)
	movl	$1, -9644(%rbp)
	jmp	.L9
.L16:
	movl	-9644(%rbp), %eax
	cltq
	movl	-9616(%rbp,%rax,8), %edx
	movl	-9636(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -9624(%rbp)
	movl	-9644(%rbp), %eax
	cltq
	movl	-9612(%rbp,%rax,8), %edx
	movl	-9632(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -9620(%rbp)
	movl	$0, -9628(%rbp)
	movl	$0, -9640(%rbp)
	jmp	.L10
.L13:
	movl	-9640(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,8), %eax
	cmpl	%eax, -9624(%rbp)
	jne	.L11
	movl	-9640(%rbp), %eax
	cltq
	movl	-8012(%rbp,%rax,8), %eax
	cmpl	%eax, -9620(%rbp)
	jne	.L11
	movl	$1, -9628(%rbp)
	jmp	.L12
.L11:
	addl	$1, -9640(%rbp)
.L10:
	movl	-9652(%rbp), %eax
	cmpl	%eax, -9640(%rbp)
	jl	.L13
.L12:
	cmpl	$0, -9628(%rbp)
	je	.L25
	addl	$1, -9644(%rbp)
.L9:
	movl	-9656(%rbp), %eax
	cmpl	%eax, -9644(%rbp)
	jl	.L16
	jmp	.L15
.L25:
	nop
.L15:
	movl	-9656(%rbp), %eax
	cmpl	%eax, -9644(%rbp)
	jge	.L26
	addl	$1, -9648(%rbp)
.L8:
	movl	-9652(%rbp), %eax
	cmpl	%eax, -9648(%rbp)
	jl	.L19
	jmp	.L18
.L26:
	nop
.L18:
	movl	-9632(%rbp), %edx
	movl	-9636(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L20
.L24:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	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	$1472, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L20:
	leaq	-9656(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-9656(%rbp), %eax
	testl	%eax, %eax
	je	.L24
	movl	$0, -9648(%rbp)
	jmp	.L4
.L5:
	leaq	-9616(%rbp), %rdx
	movl	-9648(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	$4, %rax
	addq	%rax, %rdx
	leaq	-9616(%rbp), %rcx
	movl	-9648(%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, -9648(%rbp)
.L4:
	movl	-9656(%rbp), %eax
	cmpl	%eax, -9648(%rbp)
	jl	.L5
	leaq	-9652(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -9648(%rbp)
	jmp	.L6
.L7:
	leaq	-8016(%rbp), %rdx
	movl	-9648(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	$4, %rax
	addq	%rax, %rdx
	leaq	-8016(%rbp), %rcx
	movl	-9648(%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, -9648(%rbp)
.L6:
	movl	-9652(%rbp), %eax
	cmpl	%eax, -9648(%rbp)
	jl	.L7
	movl	$0, -9648(%rbp)
	jmp	.L8
.L19:
	movl	-9648(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,8), %eax
	movl	-9616(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -9636(%rbp)
	movl	-9648(%rbp), %eax
	cltq
	movl	-8012(%rbp,%rax,8), %eax
	movl	-9612(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -9632(%rbp)
	movl	$1, -9644(%rbp)
	jmp	.L9
.L16:
	movl	-9644(%rbp), %eax
	cltq
	movl	-9616(%rbp,%rax,8), %edx
	movl	-9636(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -9624(%rbp)
	movl	-9644(%rbp), %eax
	cltq
	movl	-9612(%rbp,%rax,8), %edx
	movl	-9632(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -9620(%rbp)
	movl	$0, -9628(%rbp)
	movl	$0, -9640(%rbp)
	jmp	.L10
.L13:
	movl	-9640(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,8), %eax
	cmpl	%eax, -9624(%rbp)
	jne	.L11
	movl	-9640(%rbp), %eax
	cltq
	movl	-8012(%rbp,%rax,8), %eax
	cmpl	%eax, -9620(%rbp)
	jne	.L11
	movl	$1, -9628(%rbp)
	jmp	.L12
.L11:
	addl	$1, -9640(%rbp)
.L10:
	movl	-9652(%rbp), %eax
	cmpl	%eax, -9640(%rbp)
	jl	.L13
.L12:
	cmpl	$0, -9628(%rbp)
	je	.L25
	addl	$1, -9644(%rbp)
.L9:
	movl	-9656(%rbp), %eax
	cmpl	%eax, -9644(%rbp)
	jl	.L16
	jmp	.L15
.L25:
	nop
.L15:
	movl	-9656(%rbp), %eax
	cmpl	%eax, -9644(%rbp)
	jge	.L26
	addl	$1, -9648(%rbp)
.L8:
	movl	-9652(%rbp), %eax
	cmpl	%eax, -9648(%rbp)
	jl	.L19
	jmp	.L18
.L26:
	nop
.L18:
	movl	-9632(%rbp), %edx
	movl	-9636(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L20
.L24:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	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:
