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

typedef long long ll;
const double PI = 3.1415926535897932384626433;
const int MOD = 1e9+7;
const int INF = 1e9;
#define rep(i, n) for(int i=0;i<(n);++i)

//prototype declaration

//gloval variable

typedef struct{
  int x;
  int y;
}point;

void shift(point * p , point * q, int dx, int dy){
  (p->x) = (q->x) + dx;
  (p->y) = (q->y) + dy;
}

int main(void){
  point p1, p2;
  scanf("%d %d %d %d", &p1.x, &p1.y, &p2.x, &p2.y);
  point p3, p4;
  shift(&p3, &p2, -(p2.y-p1.y), p2.x-p1.x);
  shift(&p4, &p3, -(p3.y-p2.y), p3.x-p2.x);
  printf("%d %d %d %d\n", p3.x, p3.y, p4.x, p4.y);
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	PI
	.section	.rodata
	.align 8
	.type	PI, @object
	.size	PI, 8
PI:
	.long	1413754136
	.long	1074340347
	.globl	MOD
	.align 4
	.type	MOD, @object
	.size	MOD, 4
MOD:
	.long	1000000007
	.globl	INF
	.align 4
	.type	INF, @object
	.size	INF, 4
INF:
	.long	1000000000
	.text
	.globl	shift
	.type	shift, @function
shift:
.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)
	movl	%edx, -20(%rbp)
	movl	%ecx, -24(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movl	-20(%rbp), %eax
	addl	%eax, %edx
	movq	-8(%rbp), %rax
	movl	%edx, (%rax)
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movl	-24(%rbp), %eax
	addl	%eax, %edx
	movq	-8(%rbp), %rax
	movl	%edx, 4(%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	shift, .-shift
	.section	.rodata
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"%d %d %d %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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rax
	leaq	4(%rax), %rcx
	leaq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rax
	leaq	4(%rax), %rsi
	leaq	-40(%rbp), %rax
	movq	%rcx, %r8
	movq	%rdx, %rcx
	movq	%rsi, %rdx
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	movl	-40(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-36(%rbp), %eax
	movl	-28(%rbp), %esi
	subl	%esi, %eax
	movl	%eax, %edx
	leaq	-32(%rbp), %rsi
	leaq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	shift
	movl	-24(%rbp), %eax
	movl	-32(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-28(%rbp), %eax
	movl	-20(%rbp), %esi
	subl	%esi, %eax
	movl	%eax, %edx
	leaq	-24(%rbp), %rsi
	leaq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	shift
	movl	-12(%rbp), %esi
	movl	-16(%rbp), %ecx
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	movl	%esi, %r8d
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	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	shift
	.type	shift, @function
shift:
.LFB51:
	.cfi_startproc
	endbr64
	movq	(%rsi), %xmm0
	movd	%edx, %xmm1
	movd	%ecx, %xmm2
	punpckldq	%xmm2, %xmm1
	paddd	%xmm1, %xmm0
	movq	%xmm0, (%rdi)
	ret
	.cfi_endproc
.LFE51:
	.size	shift, .-shift
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"%d %d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %edx
	movl	8(%rsp), %esi
	movl	12(%rsp), %edi
	movl	20(%rsp), %ecx
	movl	%edx, %r8d
	subl	%esi, %r8d
	movl	%edi, %eax
	subl	20(%rsp), %eax
	addl	%r8d, %ecx
	addl	%eax, %edx
	leal	(%r8,%rdi), %r9d
	movl	$1, %edi
	leal	(%rsi,%rax), %r8d
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L6
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.globl	INF
	.section	.rodata
	.align 4
	.type	INF, @object
	.size	INF, 4
INF:
	.long	1000000000
	.globl	MOD
	.align 4
	.type	MOD, @object
	.size	MOD, 4
MOD:
	.long	1000000007
	.globl	PI
	.align 8
	.type	PI, @object
	.size	PI, 8
PI:
	.long	1413754136
	.long	1074340347
	.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	shift
	.type	shift, @function
shift:
.LFB51:
	.cfi_startproc
	endbr64
	movq	(%rsi), %xmm0
	movd	%edx, %xmm1
	movd	%ecx, %xmm2
	punpckldq	%xmm2, %xmm1
	paddd	%xmm1, %xmm0
	movq	%xmm0, (%rdi)
	ret
	.cfi_endproc
.LFE51:
	.size	shift, .-shift
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"%d %d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %edx
	movl	8(%rsp), %esi
	movl	12(%rsp), %edi
	movl	20(%rsp), %ecx
	movl	%edx, %r8d
	subl	%esi, %r8d
	movl	%edi, %eax
	subl	20(%rsp), %eax
	addl	%r8d, %ecx
	addl	%eax, %edx
	leal	(%r8,%rdi), %r9d
	movl	$1, %edi
	leal	(%rsi,%rax), %r8d
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L6
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.globl	INF
	.section	.rodata
	.align 4
	.type	INF, @object
	.size	INF, 4
INF:
	.long	1000000000
	.globl	MOD
	.align 4
	.type	MOD, @object
	.size	MOD, 4
MOD:
	.long	1000000007
	.globl	PI
	.align 8
	.type	PI, @object
	.size	PI, 8
PI:
	.long	1413754136
	.long	1074340347
	.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 <math.h>
#include <stdlib.h>
#include <string.h>

typedef long long ll;
const double PI = 3.1415926535897932384626433;
const int MOD = 1e9+7;
const int INF = 1e9;
#define rep(i, n) for(int i=0;i<(n);++i)

//prototype declaration

//gloval variable

typedef struct{
  int x;
  int y;
}point;

void shift(point * p , point * q, int dx, int dy){
  (p->x) = (q->x) + dx;
  (p->y) = (q->y) + dy;
}

int main(void){
  point p1, p2;
  scanf("%d %d %d %d", &p1.x, &p1.y, &p2.x, &p2.y);
  point p3, p4;
  shift(&p3, &p2, -(p2.y-p1.y), p2.x-p1.x);
  shift(&p4, &p3, -(p3.y-p2.y), p3.x-p2.x);
  printf("%d %d %d %d\n", p3.x, p3.y, p4.x, p4.y);
  return 0;
}

2 1 6 6
 0 0 -1 1
 1 -41 -59 26
 2 2 6 6
 0 0 -1 2
 1 -46 -59 26
 2 2 6 2
 0 -1 -1 2
 1 -46 -59 12
 2 2 6 1

1 10 -3 5
 -2 0 -1 -1
 -126 -34 -66 -101
 2 10 -2 6
 -3 1 -2 -1
 -131 -34 -71 -106
 6 6 2 6
 -4 1 -3 -2
 -117 -48 -57 -106
 7 5 3 6

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

typedef long long ll;
const double PI = 3.1415926535897932384626433;
const int MOD = 1e9+7;
const int INF = 1e9;
#define rep(i, n) for(int i=0;i<(n);++i)

//prototype declaration

//gloval variable

typedef struct{
  int x;
  int y;
}point;

void shift(point * p , point * q, int dx, int dy){
  (p->x) = (q->x) + dx;
  (p->y) = (q->y) + dy;
}

int main(void){
  point p1, p2;
  scanf("%d %d %d %d", &p1.x, &p1.y, &p2.x, &p2.y);
  point p3, p4;
  shift(&p3, &p2, -(p2.y-p1.y), p2.x-p1.x);
  shift(&p4, &p3, -(p3.y-p2.y), p3.x-p2.x);
  printf("%d %d %d %d\n", p3.x, p3.y, p4.x, p4.y);
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	PI
	.section	.rodata
	.align 8
	.type	PI, @object
	.size	PI, 8
PI:
	.long	1413754136
	.long	1074340347
	.globl	MOD
	.align 4
	.type	MOD, @object
	.size	MOD, 4
MOD:
	.long	1000000007
	.globl	INF
	.align 4
	.type	INF, @object
	.size	INF, 4
INF:
	.long	1000000000
	.text
	.globl	shift
	.type	shift, @function
shift:
.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)
	movl	%edx, -20(%rbp)
	movl	%ecx, -24(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movl	-20(%rbp), %eax
	addl	%eax, %edx
	movq	-8(%rbp), %rax
	movl	%edx, (%rax)
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movl	-24(%rbp), %eax
	addl	%eax, %edx
	movq	-8(%rbp), %rax
	movl	%edx, 4(%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	shift, .-shift
	.section	.rodata
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"%d %d %d %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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rax
	leaq	4(%rax), %rcx
	leaq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rax
	leaq	4(%rax), %rsi
	leaq	-40(%rbp), %rax
	movq	%rcx, %r8
	movq	%rdx, %rcx
	movq	%rsi, %rdx
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	movl	-40(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-36(%rbp), %eax
	movl	-28(%rbp), %esi
	subl	%esi, %eax
	movl	%eax, %edx
	leaq	-32(%rbp), %rsi
	leaq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	shift
	movl	-24(%rbp), %eax
	movl	-32(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-28(%rbp), %eax
	movl	-20(%rbp), %esi
	subl	%esi, %eax
	movl	%eax, %edx
	leaq	-24(%rbp), %rsi
	leaq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	shift
	movl	-12(%rbp), %esi
	movl	-16(%rbp), %ecx
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	movl	%esi, %r8d
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	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	PI
	.section	.rodata
	.align 8
	.type	PI, @object
	.size	PI, 8
PI:
	.long	1413754136
	.long	1074340347
	.globl	MOD
	.align 4
	.type	MOD, @object
	.size	MOD, 4
MOD:
	.long	1000000007
	.globl	INF
	.align 4
	.type	INF, @object
	.size	INF, 4
INF:
	.long	1000000000
	.text
	.globl	shift
	.type	shift, @function
shift:
.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)
	movl	%edx, -20(%rbp)
	movl	%ecx, -24(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movl	-20(%rbp), %eax
	addl	%eax, %edx
	movq	-8(%rbp), %rax
	movl	%edx, (%rax)
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movl	-24(%rbp), %eax
	addl	%eax, %edx
	movq	-8(%rbp), %rax
	movl	%edx, 4(%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	shift, .-shift
	.section	.rodata
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"%d %d %d %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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rax
	leaq	4(%rax), %rcx
	leaq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rax
	leaq	4(%rax), %rsi
	leaq	-40(%rbp), %rax
	movq	%rcx, %r8
	movq	%rdx, %rcx
	movq	%rsi, %rdx
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	movl	-40(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-36(%rbp), %eax
	movl	-28(%rbp), %esi
	subl	%esi, %eax
	movl	%eax, %edx
	leaq	-32(%rbp), %rsi
	leaq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	shift
	movl	-24(%rbp), %eax
	movl	-32(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-28(%rbp), %eax
	movl	-20(%rbp), %esi
	subl	%esi, %eax
	movl	%eax, %edx
	leaq	-24(%rbp), %rsi
	leaq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	shift
	movl	-12(%rbp), %esi
	movl	-16(%rbp), %ecx
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	movl	%esi, %r8d
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	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:
