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 n;
    scanf("%d",&n);
    long int t=0;
    long int s=0;
    long int x[200000]={};
    long int y[200000]={};
    int xmax=0;
    int xmin=0;
    int ymax=0;
    int ymin=0;
    long int ans=0;
    for(int i=0;i<n;i++){
        scanf("%ld %ld",&t,&s);
        x[i]=t+s;
        y[i]=t-s;
        //printf("%ld %ld\n",x[i],y[i]);
        
        if(!i){
            xmax=i;
            xmin=i;
        }else if(x[i]>x[xmax]){
            xmax=i;
        }else if(x[i]<x[xmin]){
            xmin=i;
        }
        if(!i){
            ymax=i;
            ymin=i;
        }else if(y[i]>y[ymax]){
            ymax=i;
        }else if(y[i]<y[ymin]){
            ymin=i;
        }
    }
    
    //printf("%ld %ld %ld %ld\n",x[xmax],x[xmin],y[ymax],y[ymin]);
    
    for(int i=0;i<n;i++){
        //printf(";%ld\n",(abs(x[i]-x[xmax])>=abs(y[i]-y[xmax])?abs(x[i]-x[xmax]):abs(y[i]-y[xmax])));
                                                                                                  //(abs(x[i]-x[xmax])>=abs(y[i]-y[xmax])?abs(x[i]-x[xmax]):abs(y[i]-y[xmax]))
        if(ans < (abs(x[i]-x[xmax])>=abs(y[i]-y[xmax])?abs(x[i]-x[xmax]):abs(y[i]-y[xmax]))  )ans=(abs(x[i]-x[xmax])>=abs(y[i]-y[xmax])?abs(x[i]-x[xmax]):abs(y[i]-y[xmax]));
        if(ans < (abs(x[i]-x[xmin])>=abs(y[i]-y[xmin])?abs(x[i]-x[xmin]):abs(y[i]-y[xmin]))  )ans=(abs(x[i]-x[xmin])>=abs(y[i]-y[xmin])?abs(x[i]-x[xmin]):abs(y[i]-y[xmin]));
        if(ans < (abs(x[i]-x[ymax])>=abs(y[i]-y[ymax])?abs(x[i]-x[ymax]):abs(y[i]-y[ymax]))  )ans=(abs(x[i]-x[ymax])>=abs(y[i]-y[ymax])?abs(x[i]-x[ymax]):abs(y[i]-y[ymax]));
        if(ans < (abs(x[i]-x[ymin])>=abs(y[i]-y[ymin])?abs(x[i]-x[ymin]):abs(y[i]-y[ymin]))  )ans=(abs(x[i]-x[ymin])>=abs(y[i]-y[ymin])?abs(x[i]-x[ymin]):abs(y[i]-y[ymin]));
    
        
    }
   printf("%ld\n",ans);
    
}```

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:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-3198976(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1104, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-3200068(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -3200040(%rbp)
	movq	$0, -3200032(%rbp)
	leaq	-3200016(%rbp), %rax
	movl	$1600000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-1600016(%rbp), %rax
	movl	$1600000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -3200064(%rbp)
	movl	$0, -3200060(%rbp)
	movl	$0, -3200056(%rbp)
	movl	$0, -3200052(%rbp)
	movq	$0, -3200024(%rbp)
	movl	$0, -3200048(%rbp)
	jmp	.L2
.L9:
	leaq	-3200032(%rbp), %rdx
	leaq	-3200040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-3200040(%rbp), %rdx
	movq	-3200032(%rbp), %rax
	addq	%rax, %rdx
	movl	-3200048(%rbp), %eax
	cltq
	movq	%rdx, -3200016(%rbp,%rax,8)
	movq	-3200040(%rbp), %rax
	movq	-3200032(%rbp), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movl	-3200048(%rbp), %eax
	cltq
	movq	%rdx, -1600016(%rbp,%rax,8)
	cmpl	$0, -3200048(%rbp)
	jne	.L3
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200064(%rbp)
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200060(%rbp)
	jmp	.L4
.L3:
	movl	-3200048(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200064(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jle	.L5
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200064(%rbp)
	jmp	.L4
.L5:
	movl	-3200048(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200060(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jge	.L4
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200060(%rbp)
.L4:
	cmpl	$0, -3200048(%rbp)
	jne	.L6
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200056(%rbp)
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200052(%rbp)
	jmp	.L7
.L6:
	movl	-3200048(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rdx
	movl	-3200056(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jle	.L8
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200056(%rbp)
	jmp	.L7
.L8:
	movl	-3200048(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rdx
	movl	-3200052(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jge	.L7
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200052(%rbp)
.L7:
	addl	$1, -3200048(%rbp)
.L2:
	movl	-3200068(%rbp), %eax
	cmpl	%eax, -3200048(%rbp)
	jl	.L9
	movl	$0, -3200044(%rbp)
	jmp	.L10
.L15:
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200064(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200064(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	cmpq	%rax, -3200024(%rbp)
	jge	.L11
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200064(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200064(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	movq	%rax, -3200024(%rbp)
.L11:
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200060(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200060(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	cmpq	%rax, -3200024(%rbp)
	jge	.L12
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200060(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200060(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	movq	%rax, -3200024(%rbp)
.L12:
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200056(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200056(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	cmpq	%rax, -3200024(%rbp)
	jge	.L13
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200056(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200056(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	movq	%rax, -3200024(%rbp)
.L13:
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200052(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200052(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	cmpq	%rax, -3200024(%rbp)
	jge	.L14
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200052(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200052(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	movq	%rax, -3200024(%rbp)
.L14:
	addl	$1, -3200044(%rbp)
.L10:
	movl	-3200068(%rbp), %eax
	cmpl	%eax, -3200044(%rbp)
	jl	.L15
	movq	-3200024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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	"%ld %ld"
.LC2:
	.string	"%ld\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
	leaq	-3198976(%rsp), %r11
	.cfi_def_cfa 11, 3199032
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1128, %rsp
	.cfi_def_cfa_offset 3200160
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 3200088(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %rsi
	leaq	80(%rsp), %rbx
	leaq	1600080(%rsp), %r12
	call	__isoc99_scanf@PLT
	movl	$1600000, %edx
	xorl	%esi, %esi
	movq	%rbx, %rdi
	movq	$0, 64(%rsp)
	movq	$0, 72(%rsp)
	call	memset@PLT
	movl	$1600000, %edx
	xorl	%esi, %esi
	movq	%r12, %rdi
	call	memset@PLT
	movl	60(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebp, %ebp
	movq	%rbx, 24(%rsp)
	leaq	72(%rsp), %r15
	leaq	64(%rsp), %r14
	movl	$0, 44(%rsp)
	leaq	.LC1(%rip), %r13
	movq	%rbp, %rbx
	movl	$0, 16(%rsp)
	movl	$0, 32(%rsp)
	movl	$0, 8(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L21:
	movslq	8(%rsp), %rsi
	cmpq	80(%rsp,%rsi,8), %rdx
	jg	.L11
	movslq	32(%rsp), %rsi
	movq	%rsi, %rcx
	cmpq	80(%rsp,%rsi,8), %rdx
	cmovl	%ebx, %ecx
	movl	%ecx, 32(%rsp)
.L4:
	movslq	16(%rsp), %rdx
	cmpq	1600080(%rsp,%rdx,8), %rax
	jle	.L19
	movl	%ebp, 16(%rsp)
.L3:
	movslq	60(%rsp), %rax
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jle	.L20
.L5:
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	64(%rsp), %rax
	movq	72(%rsp), %rdx
	movl	%ebx, %ebp
	movq	24(%rsp), %rcx
	addq	%rax, %rdx
	subq	72(%rsp), %rax
	movq	%rdx, (%rcx,%rbx,8)
	movq	%rax, (%r12,%rbx,8)
	testq	%rbx, %rbx
	jne	.L21
	movslq	60(%rsp), %rax
	addq	$1, %rbx
	movl	$0, 32(%rsp)
	movl	$0, 8(%rsp)
	movl	$0, 44(%rsp)
	movl	$0, 16(%rsp)
	cmpl	%ebx, %eax
	jg	.L5
.L20:
	movq	24(%rsp), %rbx
	testl	%eax, %eax
	jle	.L2
	movslq	8(%rsp), %rdx
	movslq	32(%rsp), %rbp
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
	movq	80(%rsp,%rdx,8), %rcx
	movq	1600080(%rsp,%rdx,8), %r11
	movslq	16(%rsp), %rdx
	movq	%rax, 16(%rsp)
	movq	%rcx, 8(%rsp)
	movq	80(%rsp,%rbp,8), %rcx
	movq	1600080(%rsp,%rdx,8), %r8
	movq	%rcx, 24(%rsp)
	movq	1600080(%rsp,%rbp,8), %rcx
	movq	80(%rsp,%rdx,8), %rbp
	movslq	44(%rsp), %rdx
	movq	%rcx, 32(%rsp)
	movq	80(%rsp,%rdx,8), %r13
	movq	1600080(%rsp,%rdx,8), %rcx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	(%rbx,%r9,8), %rdi
	movq	(%r12,%r9,8), %rsi
	movq	%rdi, %rdx
	subq	8(%rsp), %rdx
	movl	%edx, %eax
	negl	%eax
	cmovs	%edx, %eax
	movq	%rsi, %rdx
	subq	%r11, %rdx
	movl	%edx, %r14d
	negl	%r14d
	cmovs	%edx, %r14d
	cmpl	%r14d, %eax
	cmovl	%r14d, %eax
	movq	%rdi, %r14
	subq	24(%rsp), %r14
	movl	%r14d, %edx
	negl	%edx
	cltq
	cmovs	%r14d, %edx
	movq	%rsi, %r14
	subq	32(%rsp), %r14
	movl	%r14d, %r15d
	negl	%r15d
	cmovs	%r14d, %r15d
	movq	%rdi, %r14
	cmpl	%r15d, %edx
	cmovl	%r15d, %edx
	movslq	%edx, %rdx
	cmpq	%rdx, %rax
	cmovge	%rax, %rdx
	subq	%rbp, %r14
	movl	%r14d, %eax
	negl	%eax
	cmovs	%r14d, %eax
	movq	%rsi, %r14
	subq	%r8, %r14
	movl	%r14d, %r15d
	negl	%r15d
	cmovs	%r14d, %r15d
	cmpl	%r15d, %eax
	cmovl	%r15d, %eax
	cltq
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	subq	%r13, %rdi
	movl	%edi, %edx
	negl	%edx
	cmovs	%edi, %edx
	subq	%rcx, %rsi
	movl	%esi, %edi
	negl	%edi
	cmovs	%esi, %edi
	cmpl	%edi, %edx
	cmovl	%edi, %edx
	movslq	%edx, %rdx
	cmpq	%rdx, %rax
	cmovl	%rdx, %rax
	cmpq	%rax, %r10
	cmovl	%rax, %r10
	addq	$1, %r9
	cmpq	%r9, 16(%rsp)
	jne	.L6
.L7:
	xorl	%eax, %eax
	movq	%r10, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	3200088(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$3200104, %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
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	movslq	44(%rsp), %rdx
	cmpq	1600080(%rsp,%rdx,8), %rax
	cmovge	%edx, %ebp
	movl	%ebp, 44(%rsp)
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%ebx, 8(%rsp)
	jmp	.L4
.L2:
	xorl	%r10d, %r10d
	jmp	.L7
.L22:
	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	"%ld %ld"
.LC2:
	.string	"%ld\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
	leaq	-3198976(%rsp), %r11
	.cfi_def_cfa 11, 3199032
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1128, %rsp
	.cfi_def_cfa_offset 3200160
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 3200088(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %rsi
	leaq	80(%rsp), %rbx
	leaq	1600080(%rsp), %r12
	call	__isoc99_scanf@PLT
	movl	$1600000, %edx
	xorl	%esi, %esi
	movq	%rbx, %rdi
	movq	$0, 64(%rsp)
	movq	$0, 72(%rsp)
	call	memset@PLT
	movl	$1600000, %edx
	xorl	%esi, %esi
	movq	%r12, %rdi
	call	memset@PLT
	movl	60(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebp, %ebp
	movq	%rbx, 24(%rsp)
	leaq	72(%rsp), %r15
	leaq	64(%rsp), %r14
	movl	$0, 44(%rsp)
	leaq	.LC1(%rip), %r13
	movq	%rbp, %rbx
	movl	$0, 16(%rsp)
	movl	$0, 32(%rsp)
	movl	$0, 8(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L21:
	movslq	8(%rsp), %rsi
	cmpq	80(%rsp,%rsi,8), %rdx
	jg	.L11
	movslq	32(%rsp), %rsi
	movq	%rsi, %rcx
	cmpq	80(%rsp,%rsi,8), %rdx
	cmovl	%ebx, %ecx
	movl	%ecx, 32(%rsp)
.L4:
	movslq	16(%rsp), %rdx
	cmpq	1600080(%rsp,%rdx,8), %rax
	jle	.L19
	movl	%ebp, 16(%rsp)
.L3:
	movslq	60(%rsp), %rax
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jle	.L20
.L5:
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	64(%rsp), %rax
	movq	72(%rsp), %rdx
	movl	%ebx, %ebp
	movq	24(%rsp), %rcx
	addq	%rax, %rdx
	subq	72(%rsp), %rax
	movq	%rdx, (%rcx,%rbx,8)
	movq	%rax, (%r12,%rbx,8)
	testq	%rbx, %rbx
	jne	.L21
	movslq	60(%rsp), %rax
	addq	$1, %rbx
	movl	$0, 32(%rsp)
	movl	$0, 8(%rsp)
	movl	$0, 44(%rsp)
	movl	$0, 16(%rsp)
	cmpl	%ebx, %eax
	jg	.L5
.L20:
	movq	24(%rsp), %rbx
	testl	%eax, %eax
	jle	.L2
	movslq	8(%rsp), %rdx
	movslq	32(%rsp), %rbp
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
	movq	80(%rsp,%rdx,8), %rcx
	movq	1600080(%rsp,%rdx,8), %r11
	movslq	16(%rsp), %rdx
	movq	%rax, 16(%rsp)
	movq	%rcx, 8(%rsp)
	movq	80(%rsp,%rbp,8), %rcx
	movq	1600080(%rsp,%rdx,8), %r8
	movq	%rcx, 24(%rsp)
	movq	1600080(%rsp,%rbp,8), %rcx
	movq	80(%rsp,%rdx,8), %rbp
	movslq	44(%rsp), %rdx
	movq	%rcx, 32(%rsp)
	movq	80(%rsp,%rdx,8), %r13
	movq	1600080(%rsp,%rdx,8), %rcx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	(%rbx,%r9,8), %rdi
	movq	(%r12,%r9,8), %rsi
	movq	%rdi, %rdx
	subq	8(%rsp), %rdx
	movl	%edx, %eax
	negl	%eax
	cmovs	%edx, %eax
	movq	%rsi, %rdx
	subq	%r11, %rdx
	movl	%edx, %r14d
	negl	%r14d
	cmovs	%edx, %r14d
	cmpl	%r14d, %eax
	cmovl	%r14d, %eax
	movq	%rdi, %r14
	subq	24(%rsp), %r14
	movl	%r14d, %edx
	negl	%edx
	cltq
	cmovs	%r14d, %edx
	movq	%rsi, %r14
	subq	32(%rsp), %r14
	movl	%r14d, %r15d
	negl	%r15d
	cmovs	%r14d, %r15d
	movq	%rdi, %r14
	cmpl	%r15d, %edx
	cmovl	%r15d, %edx
	movslq	%edx, %rdx
	cmpq	%rdx, %rax
	cmovge	%rax, %rdx
	subq	%rbp, %r14
	movl	%r14d, %eax
	negl	%eax
	cmovs	%r14d, %eax
	movq	%rsi, %r14
	subq	%r8, %r14
	movl	%r14d, %r15d
	negl	%r15d
	cmovs	%r14d, %r15d
	cmpl	%r15d, %eax
	cmovl	%r15d, %eax
	cltq
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	subq	%r13, %rdi
	movl	%edi, %edx
	negl	%edx
	cmovs	%edi, %edx
	subq	%rcx, %rsi
	movl	%esi, %edi
	negl	%edi
	cmovs	%esi, %edi
	cmpl	%edi, %edx
	cmovl	%edi, %edx
	movslq	%edx, %rdx
	cmpq	%rdx, %rax
	cmovl	%rdx, %rax
	cmpq	%rax, %r10
	cmovl	%rax, %r10
	addq	$1, %r9
	cmpq	%r9, 16(%rsp)
	jne	.L6
.L7:
	xorl	%eax, %eax
	movq	%r10, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	3200088(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$3200104, %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
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	movslq	44(%rsp), %rdx
	cmpq	1600080(%rsp,%rdx,8), %rax
	cmovge	%edx, %ebp
	movl	%ebp, 44(%rsp)
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%ebx, 8(%rsp)
	jmp	.L4
.L2:
	xorl	%r10d, %r10d
	jmp	.L7
.L22:
	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 n;
    scanf("%d",&n);
    long int t=0;
    long int s=0;
    long int x[200000]={};
    long int y[200000]={};
    int xmax=0;
    int xmin=0;
    int ymax=0;
    int ymin=0;
    long int ans=0;
    for(int i=0;i<n;i++){
        scanf("%ld %ld",&t,&s);
        x[i]=t+s;
        y[i]=t-s;
        //printf("%ld %ld\n",x[i],y[i]);
        
        if(!i){
            xmax=i;
            xmin=i;
        }else if(x[i]>x[xmax]){
            xmax=i;
        }else if(x[i]<x[xmin]){
            xmin=i;
        }
        if(!i){
            ymax=i;
            ymin=i;
        }else if(y[i]>y[ymax]){
            ymax=i;
        }else if(y[i]<y[ymin]){
            ymin=i;
        }
    }
    
    //printf("%ld %ld %ld %ld\n",x[xmax],x[xmin],y[ymax],y[ymin]);
    
    for(int i=0;i<n;i++){
        //printf(";%ld\n",(abs(x[i]-x[xmax])>=abs(y[i]-y[xmax])?abs(x[i]-x[xmax]):abs(y[i]-y[xmax])));
                                                                                                  //(abs(x[i]-x[xmax])>=abs(y[i]-y[xmax])?abs(x[i]-x[xmax]):abs(y[i]-y[xmax]))
        if(ans < (abs(x[i]-x[xmax])>=abs(y[i]-y[xmax])?abs(x[i]-x[xmax]):abs(y[i]-y[xmax]))  )ans=(abs(x[i]-x[xmax])>=abs(y[i]-y[xmax])?abs(x[i]-x[xmax]):abs(y[i]-y[xmax]));
        if(ans < (abs(x[i]-x[xmin])>=abs(y[i]-y[xmin])?abs(x[i]-x[xmin]):abs(y[i]-y[xmin]))  )ans=(abs(x[i]-x[xmin])>=abs(y[i]-y[xmin])?abs(x[i]-x[xmin]):abs(y[i]-y[xmin]));
        if(ans < (abs(x[i]-x[ymax])>=abs(y[i]-y[ymax])?abs(x[i]-x[ymax]):abs(y[i]-y[ymax]))  )ans=(abs(x[i]-x[ymax])>=abs(y[i]-y[ymax])?abs(x[i]-x[ymax]):abs(y[i]-y[ymax]));
        if(ans < (abs(x[i]-x[ymin])>=abs(y[i]-y[ymin])?abs(x[i]-x[ymin]):abs(y[i]-y[ymin]))  )ans=(abs(x[i]-x[ymin])>=abs(y[i]-y[ymin])?abs(x[i]-x[ymin]):abs(y[i]-y[ymin]));
    
        
    }
   printf("%ld\n",ans);
    
}
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>
int main(void){
    int n;
    scanf("%d",&n);
    long int t=0;
    long int s=0;
    long int x[200000]={};
    long int y[200000]={};
    int xmax=0;
    int xmin=0;
    int ymax=0;
    int ymin=0;
    long int ans=0;
    for(int i=0;i<n;i++){
        scanf("%ld %ld",&t,&s);
        x[i]=t+s;
        y[i]=t-s;
        //printf("%ld %ld\n",x[i],y[i]);
        
        if(!i){
            xmax=i;
            xmin=i;
        }else if(x[i]>x[xmax]){
            xmax=i;
        }else if(x[i]<x[xmin]){
            xmin=i;
        }
        if(!i){
            ymax=i;
            ymin=i;
        }else if(y[i]>y[ymax]){
            ymax=i;
        }else if(y[i]<y[ymin]){
            ymin=i;
        }
    }
    
    //printf("%ld %ld %ld %ld\n",x[xmax],x[xmin],y[ymax],y[ymin]);
    
    for(int i=0;i<n;i++){
        //printf(";%ld\n",(abs(x[i]-x[xmax])>=abs(y[i]-y[xmax])?abs(x[i]-x[xmax]):abs(y[i]-y[xmax])));
                                                                                                  //(abs(x[i]-x[xmax])>=abs(y[i]-y[xmax])?abs(x[i]-x[xmax]):abs(y[i]-y[xmax]))
        if(ans < (abs(x[i]-x[xmax])>=abs(y[i]-y[xmax])?abs(x[i]-x[xmax]):abs(y[i]-y[xmax]))  )ans=(abs(x[i]-x[xmax])>=abs(y[i]-y[xmax])?abs(x[i]-x[xmax]):abs(y[i]-y[xmax]));
        if(ans < (abs(x[i]-x[xmin])>=abs(y[i]-y[xmin])?abs(x[i]-x[xmin]):abs(y[i]-y[xmin]))  )ans=(abs(x[i]-x[xmin])>=abs(y[i]-y[xmin])?abs(x[i]-x[xmin]):abs(y[i]-y[xmin]));
        if(ans < (abs(x[i]-x[ymax])>=abs(y[i]-y[ymax])?abs(x[i]-x[ymax]):abs(y[i]-y[ymax]))  )ans=(abs(x[i]-x[ymax])>=abs(y[i]-y[ymax])?abs(x[i]-x[ymax]):abs(y[i]-y[ymax]));
        if(ans < (abs(x[i]-x[ymin])>=abs(y[i]-y[ymin])?abs(x[i]-x[ymin]):abs(y[i]-y[ymin]))  )ans=(abs(x[i]-x[ymin])>=abs(y[i]-y[ymin])?abs(x[i]-x[ymin]):abs(y[i]-y[ymin]));
    
        
    }
   printf("%ld\n",ans);
    
}```

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:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-3198976(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1104, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-3200068(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -3200040(%rbp)
	movq	$0, -3200032(%rbp)
	leaq	-3200016(%rbp), %rax
	movl	$1600000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-1600016(%rbp), %rax
	movl	$1600000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -3200064(%rbp)
	movl	$0, -3200060(%rbp)
	movl	$0, -3200056(%rbp)
	movl	$0, -3200052(%rbp)
	movq	$0, -3200024(%rbp)
	movl	$0, -3200048(%rbp)
	jmp	.L2
.L9:
	leaq	-3200032(%rbp), %rdx
	leaq	-3200040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-3200040(%rbp), %rdx
	movq	-3200032(%rbp), %rax
	addq	%rax, %rdx
	movl	-3200048(%rbp), %eax
	cltq
	movq	%rdx, -3200016(%rbp,%rax,8)
	movq	-3200040(%rbp), %rax
	movq	-3200032(%rbp), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movl	-3200048(%rbp), %eax
	cltq
	movq	%rdx, -1600016(%rbp,%rax,8)
	cmpl	$0, -3200048(%rbp)
	jne	.L3
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200064(%rbp)
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200060(%rbp)
	jmp	.L4
.L3:
	movl	-3200048(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200064(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jle	.L5
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200064(%rbp)
	jmp	.L4
.L5:
	movl	-3200048(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200060(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jge	.L4
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200060(%rbp)
.L4:
	cmpl	$0, -3200048(%rbp)
	jne	.L6
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200056(%rbp)
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200052(%rbp)
	jmp	.L7
.L6:
	movl	-3200048(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rdx
	movl	-3200056(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jle	.L8
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200056(%rbp)
	jmp	.L7
.L8:
	movl	-3200048(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rdx
	movl	-3200052(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jge	.L7
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200052(%rbp)
.L7:
	addl	$1, -3200048(%rbp)
.L2:
	movl	-3200068(%rbp), %eax
	cmpl	%eax, -3200048(%rbp)
	jl	.L9
	movl	$0, -3200044(%rbp)
	jmp	.L10
.L15:
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200064(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200064(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	cmpq	%rax, -3200024(%rbp)
	jge	.L11
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200064(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200064(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	movq	%rax, -3200024(%rbp)
.L11:
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200060(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200060(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	cmpq	%rax, -3200024(%rbp)
	jge	.L12
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200060(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200060(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	movq	%rax, -3200024(%rbp)
.L12:
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200056(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200056(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	cmpq	%rax, -3200024(%rbp)
	jge	.L13
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200056(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200056(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	movq	%rax, -3200024(%rbp)
.L13:
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200052(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200052(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	cmpq	%rax, -3200024(%rbp)
	jge	.L14
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200052(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200052(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	movq	%rax, -3200024(%rbp)
.L14:
	addl	$1, -3200044(%rbp)
.L10:
	movl	-3200068(%rbp), %eax
	cmpl	%eax, -3200044(%rbp)
	jl	.L15
	movq	-3200024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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	"%ld %ld"
.LC2:
	.string	"%ld\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
	leaq	-3198976(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1104, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-3200068(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -3200040(%rbp)
	movq	$0, -3200032(%rbp)
	leaq	-3200016(%rbp), %rax
	movl	$1600000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-1600016(%rbp), %rax
	movl	$1600000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -3200064(%rbp)
	movl	$0, -3200060(%rbp)
	movl	$0, -3200056(%rbp)
	movl	$0, -3200052(%rbp)
	movq	$0, -3200024(%rbp)
	movl	$0, -3200048(%rbp)
	jmp	.L2
.L9:
	leaq	-3200032(%rbp), %rdx
	leaq	-3200040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-3200040(%rbp), %rdx
	movq	-3200032(%rbp), %rax
	addq	%rax, %rdx
	movl	-3200048(%rbp), %eax
	cltq
	movq	%rdx, -3200016(%rbp,%rax,8)
	movq	-3200040(%rbp), %rax
	movq	-3200032(%rbp), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movl	-3200048(%rbp), %eax
	cltq
	movq	%rdx, -1600016(%rbp,%rax,8)
	cmpl	$0, -3200048(%rbp)
	jne	.L3
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200064(%rbp)
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200060(%rbp)
	jmp	.L4
.L3:
	movl	-3200048(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200064(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jle	.L5
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200064(%rbp)
	jmp	.L4
.L5:
	movl	-3200048(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200060(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jge	.L4
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200060(%rbp)
.L4:
	cmpl	$0, -3200048(%rbp)
	jne	.L6
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200056(%rbp)
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200052(%rbp)
	jmp	.L7
.L6:
	movl	-3200048(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rdx
	movl	-3200056(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jle	.L8
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200056(%rbp)
	jmp	.L7
.L8:
	movl	-3200048(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rdx
	movl	-3200052(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jge	.L7
	movl	-3200048(%rbp), %eax
	movl	%eax, -3200052(%rbp)
.L7:
	addl	$1, -3200048(%rbp)
.L2:
	movl	-3200068(%rbp), %eax
	cmpl	%eax, -3200048(%rbp)
	jl	.L9
	movl	$0, -3200044(%rbp)
	jmp	.L10
.L15:
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200064(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200064(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	cmpq	%rax, -3200024(%rbp)
	jge	.L11
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200064(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200064(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	movq	%rax, -3200024(%rbp)
.L11:
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200060(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200060(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	cmpq	%rax, -3200024(%rbp)
	jge	.L12
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200060(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200060(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	movq	%rax, -3200024(%rbp)
.L12:
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200056(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200056(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	cmpq	%rax, -3200024(%rbp)
	jge	.L13
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200056(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200056(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	movq	%rax, -3200024(%rbp)
.L13:
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200052(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200052(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	cmpq	%rax, -3200024(%rbp)
	jge	.L14
	movl	-3200044(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rdx
	movl	-3200052(%rbp), %eax
	cltq
	movq	-3200016(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200052(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cltq
	movq	%rax, -3200024(%rbp)
.L14:
	addl	$1, -3200044(%rbp)
.L10:
	movl	-3200068(%rbp), %eax
	cmpl	%eax, -3200044(%rbp)
	jl	.L15
	movq	-3200024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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:
