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 <stdlib.h>

int main (void) {
    int n;
    scanf("%d", &n);
    long int x, y, minz = 2000000000, maxz = 2, minw = 1000000000, maxw = -1000000000;
    for (int i = 0; i < n; i++) {
        scanf("%ld %ld", &x, &y);
        if (x + y < minz) {
            minz = x + y;
        }
        if (x + y > maxz) {
            maxz = x + y;
        }
        if (x - y < minw) {
            minw = x - y;
        }
        if (x - y > maxw) {
            maxw = x - y;
        }
    }

    if (maxz - minz > maxw - minw) {
        printf("%ld\n", maxz - minz);
    } else {
        printf("%ld\n", maxw - minw);
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld %ld"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$2000000000, -40(%rbp)
	movq	$2, -32(%rbp)
	movq	$1000000000, -24(%rbp)
	movq	$-1000000000, -16(%rbp)
	movl	$0, -60(%rbp)
	jmp	.L2
.L7:
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	cmpq	%rax, -40(%rbp)
	jle	.L3
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -40(%rbp)
.L3:
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	cmpq	%rax, -32(%rbp)
	jge	.L4
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -32(%rbp)
.L4:
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rdx
	subq	%rdx, %rax
	cmpq	%rax, -24(%rbp)
	jle	.L5
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, -24(%rbp)
.L5:
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rdx
	subq	%rdx, %rax
	cmpq	%rax, -16(%rbp)
	jge	.L6
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
.L6:
	addl	$1, -60(%rbp)
.L2:
	movl	-64(%rbp), %eax
	cmpl	%eax, -60(%rbp)
	jl	.L7
	movq	-32(%rbp), %rax
	subq	-40(%rbp), %rax
	movq	%rax, %rdx
	movq	-16(%rbp), %rax
	subq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L8
	movq	-32(%rbp), %rax
	subq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L9
.L8:
	movq	-16(%rbp), %rax
	subq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L9:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"%ld %ld"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	jle	.L7
	leaq	24(%rsp), %rax
	xorl	%ebp, %ebp
	movq	$-1000000000, %r14
	movl	$1000000000, %r15d
	movq	%rax, 8(%rsp)
	movl	$2, %r13d
	movl	$2000000000, %ebx
	leaq	32(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	8(%rsp), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	24(%rsp), %rax
	movq	32(%rsp), %rdx
	addq	%rax, %rdx
	cmpq	%rdx, %rbx
	cmovg	%rdx, %rbx
	cmpq	%rdx, %r13
	cmovl	%rdx, %r13
	subq	32(%rsp), %rax
	cmpq	%rax, %r15
	cmovg	%rax, %r15
	cmpq	%rax, %r14
	cmovl	%rax, %r14
	addl	$1, %ebp
	cmpl	%ebp, 20(%rsp)
	jg	.L3
	subq	%rbx, %r13
	subq	%r15, %r14
	cmpq	%r14, %r13
	jg	.L2
	movq	%r14, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	addq	$56, %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
.L7:
	.cfi_restore_state
	movq	$-1999999998, %r13
.L2:
	movq	%r13, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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	"%ld %ld"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	jle	.L7
	leaq	24(%rsp), %rax
	xorl	%ebp, %ebp
	movq	$-1000000000, %r14
	movl	$1000000000, %r15d
	movq	%rax, 8(%rsp)
	movl	$2, %r13d
	movl	$2000000000, %ebx
	leaq	32(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	8(%rsp), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	24(%rsp), %rax
	movq	32(%rsp), %rdx
	addq	%rax, %rdx
	cmpq	%rdx, %rbx
	cmovg	%rdx, %rbx
	cmpq	%rdx, %r13
	cmovl	%rdx, %r13
	subq	32(%rsp), %rax
	cmpq	%rax, %r15
	cmovg	%rax, %r15
	cmpq	%rax, %r14
	cmovl	%rax, %r14
	addl	$1, %ebp
	cmpl	%ebp, 20(%rsp)
	jg	.L3
	subq	%rbx, %r13
	subq	%r15, %r14
	cmpq	%r14, %r13
	jg	.L2
	movq	%r14, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	addq	$56, %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
.L7:
	.cfi_restore_state
	movq	$-1999999998, %r13
.L2:
	movq	%r13, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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>
#include <stdlib.h>

int main (void) {
    int n;
    scanf("%d", &n);
    long int x, y, minz = 2000000000, maxz = 2, minw = 1000000000, maxw = -1000000000;
    for (int i = 0; i < n; i++) {
        scanf("%ld %ld", &x, &y);
        if (x + y < minz) {
            minz = x + y;
        }
        if (x + y > maxz) {
            maxz = x + y;
        }
        if (x - y < minw) {
            minw = x - y;
        }
        if (x - y > maxw) {
            maxw = x - y;
        }
    }

    if (maxz - minz > maxw - minw) {
        printf("%ld\n", maxz - minz);
    } else {
        printf("%ld\n", maxw - minw);
    }
    return 0;
}
3
1 2
2 4
3 2
 2
0 1
1 1
 2
0 0
1 1
 3
1 2
1 4
3 1
 2
0 -1
1 2
 3
0 0
1 4
6 1
 3
0 0
2 4
6 1
 3
0 0
2 4
9 1
 3
0 0
2 5
9 1
 3
-1 0
2 5
9 0

3
 1
 2
 5
 4
 8
 7
 10
 11
 12

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 <stdlib.h>

int main (void) {
    int n;
    scanf("%d", &n);
    long int x, y, minz = 2000000000, maxz = 2, minw = 1000000000, maxw = -1000000000;
    for (int i = 0; i < n; i++) {
        scanf("%ld %ld", &x, &y);
        if (x + y < minz) {
            minz = x + y;
        }
        if (x + y > maxz) {
            maxz = x + y;
        }
        if (x - y < minw) {
            minw = x - y;
        }
        if (x - y > maxw) {
            maxw = x - y;
        }
    }

    if (maxz - minz > maxw - minw) {
        printf("%ld\n", maxz - minz);
    } else {
        printf("%ld\n", maxw - minw);
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld %ld"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$2000000000, -40(%rbp)
	movq	$2, -32(%rbp)
	movq	$1000000000, -24(%rbp)
	movq	$-1000000000, -16(%rbp)
	movl	$0, -60(%rbp)
	jmp	.L2
.L7:
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	cmpq	%rax, -40(%rbp)
	jle	.L3
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -40(%rbp)
.L3:
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	cmpq	%rax, -32(%rbp)
	jge	.L4
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -32(%rbp)
.L4:
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rdx
	subq	%rdx, %rax
	cmpq	%rax, -24(%rbp)
	jle	.L5
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, -24(%rbp)
.L5:
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rdx
	subq	%rdx, %rax
	cmpq	%rax, -16(%rbp)
	jge	.L6
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
.L6:
	addl	$1, -60(%rbp)
.L2:
	movl	-64(%rbp), %eax
	cmpl	%eax, -60(%rbp)
	jl	.L7
	movq	-32(%rbp), %rax
	subq	-40(%rbp), %rax
	movq	%rax, %rdx
	movq	-16(%rbp), %rax
	subq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L8
	movq	-32(%rbp), %rax
	subq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L9
.L8:
	movq	-16(%rbp), %rax
	subq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L9:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"%ld %ld"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$2000000000, -40(%rbp)
	movq	$2, -32(%rbp)
	movq	$1000000000, -24(%rbp)
	movq	$-1000000000, -16(%rbp)
	movl	$0, -60(%rbp)
	jmp	.L2
.L7:
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	cmpq	%rax, -40(%rbp)
	jle	.L3
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -40(%rbp)
.L3:
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	cmpq	%rax, -32(%rbp)
	jge	.L4
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -32(%rbp)
.L4:
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rdx
	subq	%rdx, %rax
	cmpq	%rax, -24(%rbp)
	jle	.L5
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, -24(%rbp)
.L5:
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rdx
	subq	%rdx, %rax
	cmpq	%rax, -16(%rbp)
	jge	.L6
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
.L6:
	addl	$1, -60(%rbp)
.L2:
	movl	-64(%rbp), %eax
	cmpl	%eax, -60(%rbp)
	jl	.L7
	movq	-32(%rbp), %rax
	subq	-40(%rbp), %rax
	movq	%rax, %rdx
	movq	-16(%rbp), %rax
	subq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L8
	movq	-32(%rbp), %rax
	subq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L9
.L8:
	movq	-16(%rbp), %rax
	subq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L9:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
