Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>

int main()
{
	int i, N;
	long long a[200001];
	scanf("%d", &N);
	for (i = 1; i <= N; i++) scanf("%lld", &(a[i]));
	
	long long sum[200001] = {}, min;
	for (i = 1; i <= N; i++) sum[i] = sum[i-1] + a[i];
	for (i = 2, min = llabs(sum[N] - sum[1] * 2); i < N; i++) {
		if (llabs(sum[N] - sum[i] * 2) < min) min = llabs(sum[N] - sum[i] * 2);
	}
	
	printf("%lld\n", min);
	fflush(stdout);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-3198976(%rsp), %r11
	.cfi_def_cfa 11, 3199016
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1080, %rsp
	.cfi_def_cfa_offset 3200096
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 3200040(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rbx
	testl	%ebx, %ebx
	jle	.L2
	leaq	24(%rsp), %rbp
	movl	$1, %ebx
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %r12
	addq	$8, %rbp
	cmpl	%ebx, %r12d
	jge	.L3
	leaq	1600032(%rsp), %rcx
	movl	$1600008, %edx
	xorl	%esi, %esi
	movq	%rcx, %rdi
	call	memset@PLT
	movq	%rax, %rcx
	testl	%r12d, %r12d
	jle	.L4
	leal	1(%r12), %edi
	movl	$1, %eax
	xorl	%edx, %edx
	leaq	16(%rsp), %rsi
	.p2align 4,,10
	.p2align 3
.L5:
	addq	(%rsi,%rax,8), %rdx
	movq	%rdx, (%rcx,%rax,8)
	addq	$1, %rax
	cmpq	%rax, %rdi
	jne	.L5
	movslq	%r12d, %rax
	movq	1600032(%rsp,%rax,8), %rsi
	movq	1600040(%rsp), %rax
	leaq	(%rax,%rax), %rdx
	movq	%rsi, %rax
	subq	%rdx, %rax
	movq	%rax, %r8
	negq	%r8
	cmovs	%rax, %r8
	cmpl	$2, %r12d
	jle	.L6
	leal	-3(%r12), %eax
	leaq	1600048(%rsp), %rdx
	leaq	1600056(%rsp,%rax,8), %rdi
	.p2align 4,,10
	.p2align 3
.L7:
	movq	(%rdx), %rax
	movq	%rsi, %rcx
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rax
	negq	%rax
	cmovs	%rcx, %rax
	cmpq	%rax, %r8
	cmovg	%rax, %r8
	addq	$8, %rdx
	cmpq	%rdx, %rdi
	jne	.L7
.L6:
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r8, %rdx
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	3200040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$3200056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movl	$1600008, %edx
	xorl	%esi, %esi
	leaq	1600032(%rsp), %rdi
	call	memset@PLT
	movq	1600040(%rsp), %rdx
	movq	1600032(%rsp,%rbx,8), %rax
	addq	%rdx, %rdx
	subq	%rdx, %rax
	movq	%rax, %r8
	negq	%r8
	cmovs	%rax, %r8
	jmp	.L6
.L4:
	movq	1600040(%rsp), %rdx
	movq	1600032(%rsp,%r12,8), %rax
	addq	%rdx, %rdx
	subq	%rdx, %rax
	movq	%rax, %r8
	negq	%r8
	cmovs	%rax, %r8
	jmp	.L6
.L15:
	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:
```

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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-3198976(%rsp), %r11
	.cfi_def_cfa 11, 3199016
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1080, %rsp
	.cfi_def_cfa_offset 3200096
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 3200040(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rbx
	testl	%ebx, %ebx
	jle	.L2
	leaq	24(%rsp), %rbp
	movl	$1, %ebx
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %r12
	addq	$8, %rbp
	cmpl	%ebx, %r12d
	jge	.L3
	leaq	1600032(%rsp), %rcx
	movl	$1600008, %edx
	xorl	%esi, %esi
	movq	%rcx, %rdi
	call	memset@PLT
	movq	%rax, %rcx
	testl	%r12d, %r12d
	jle	.L4
	leal	1(%r12), %edi
	movl	$1, %eax
	xorl	%edx, %edx
	leaq	16(%rsp), %rsi
	.p2align 4,,10
	.p2align 3
.L5:
	addq	(%rsi,%rax,8), %rdx
	movq	%rdx, (%rcx,%rax,8)
	addq	$1, %rax
	cmpq	%rax, %rdi
	jne	.L5
	movslq	%r12d, %rax
	movq	1600032(%rsp,%rax,8), %rsi
	movq	1600040(%rsp), %rax
	leaq	(%rax,%rax), %rdx
	movq	%rsi, %rax
	subq	%rdx, %rax
	movq	%rax, %r8
	negq	%r8
	cmovs	%rax, %r8
	cmpl	$2, %r12d
	jle	.L6
	leal	-3(%r12), %eax
	leaq	1600048(%rsp), %rdx
	leaq	1600056(%rsp,%rax,8), %rdi
	.p2align 4,,10
	.p2align 3
.L7:
	movq	(%rdx), %rax
	movq	%rsi, %rcx
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rax
	negq	%rax
	cmovs	%rcx, %rax
	cmpq	%rax, %r8
	cmovg	%rax, %r8
	addq	$8, %rdx
	cmpq	%rdx, %rdi
	jne	.L7
.L6:
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r8, %rdx
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	3200040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$3200056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movl	$1600008, %edx
	xorl	%esi, %esi
	leaq	1600032(%rsp), %rdi
	call	memset@PLT
	movq	1600040(%rsp), %rdx
	movq	1600032(%rsp,%rbx,8), %rax
	addq	%rdx, %rdx
	subq	%rdx, %rax
	movq	%rax, %r8
	negq	%r8
	cmovs	%rax, %r8
	jmp	.L6
.L4:
	movq	1600040(%rsp), %rdx
	movq	1600032(%rsp,%r12,8), %rax
	addq	%rdx, %rdx
	subq	%rdx, %rax
	movq	%rax, %r8
	negq	%r8
	cmovs	%rax, %r8
	jmp	.L6
.L15:
	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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-3198976(%rsp), %r11
	.cfi_def_cfa 11, 3199016
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1080, %rsp
	.cfi_def_cfa_offset 3200096
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 3200040(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rbx
	testl	%ebx, %ebx
	jle	.L2
	leaq	24(%rsp), %rbp
	movl	$1, %ebx
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %r12
	addq	$8, %rbp
	cmpl	%ebx, %r12d
	jge	.L3
	leaq	1600032(%rsp), %rcx
	movl	$1600008, %edx
	xorl	%esi, %esi
	movq	%rcx, %rdi
	call	memset@PLT
	movq	%rax, %rcx
	testl	%r12d, %r12d
	jle	.L4
	leal	1(%r12), %edi
	movl	$1, %eax
	xorl	%edx, %edx
	leaq	16(%rsp), %rsi
	.p2align 4,,10
	.p2align 3
.L5:
	addq	(%rsi,%rax,8), %rdx
	movq	%rdx, (%rcx,%rax,8)
	addq	$1, %rax
	cmpq	%rax, %rdi
	jne	.L5
	movslq	%r12d, %rax
	movq	1600032(%rsp,%rax,8), %rsi
	movq	1600040(%rsp), %rax
	leaq	(%rax,%rax), %rdx
	movq	%rsi, %rax
	subq	%rdx, %rax
	movq	%rax, %r8
	negq	%r8
	cmovs	%rax, %r8
	cmpl	$2, %r12d
	jle	.L6
	leal	-3(%r12), %eax
	leaq	1600048(%rsp), %rdx
	leaq	1600056(%rsp,%rax,8), %rdi
	.p2align 4,,10
	.p2align 3
.L7:
	movq	(%rdx), %rax
	movq	%rsi, %rcx
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rax
	negq	%rax
	cmovs	%rcx, %rax
	cmpq	%rax, %r8
	cmovg	%rax, %r8
	addq	$8, %rdx
	cmpq	%rdx, %rdi
	jne	.L7
.L6:
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r8, %rdx
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	3200040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$3200056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movl	$1600008, %edx
	xorl	%esi, %esi
	leaq	1600032(%rsp), %rdi
	call	memset@PLT
	movq	1600040(%rsp), %rdx
	movq	1600032(%rsp,%rbx,8), %rax
	addq	%rdx, %rdx
	subq	%rdx, %rax
	movq	%rax, %r8
	negq	%r8
	cmovs	%rax, %r8
	jmp	.L6
.L4:
	movq	1600040(%rsp), %rdx
	movq	1600032(%rsp,%r12,8), %rax
	addq	%rdx, %rdx
	subq	%rdx, %rax
	movq	%rax, %r8
	negq	%r8
	cmovs	%rax, %r8
	jmp	.L6
.L15:
	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:
```
```c
#include <stdio.h>
#include <stdlib.h>

int main()
{
	int i, N;
	long long a[200001];
	scanf("%d", &N);
	for (i = 1; i <= N; i++) scanf("%lld", &(a[i]));
	
	long long sum[200001] = {}, min;
	for (i = 1; i <= N; i++) sum[i] = sum[i-1] + a[i];
	for (i = 2, min = llabs(sum[N] - sum[1] * 2); i < N; i++) {
		if (llabs(sum[N] - sum[i] * 2) < min) min = llabs(sum[N] - sum[i] * 2);
	}
	
	printf("%lld\n", min);
	fflush(stdout);
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>

int main()
{
	int i, N;
	long long a[200001];
	scanf("%d", &N);
	for (i = 1; i <= N; i++) scanf("%lld", &(a[i]));
	
	long long sum[200001] = {}, min;
	for (i = 1; i <= N; i++) sum[i] = sum[i-1] + a[i];
	for (i = 2, min = llabs(sum[N] - sum[1] * 2); i < N; i++) {
		if (llabs(sum[N] - sum[i] * 2) < min) min = llabs(sum[N] - sum[i] * 2);
	}
	
	printf("%lld\n", min);
	fflush(stdout);
	return 0;
}```

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.
Optimized Assembly Code:

6
0 2 3 4 5 6
 2
0 -10
 6
0 2 3 7 5 6
 2
0 -19
 6
-1 2 3 7 5 6
 2
1 -19
 2
1 -33
 2
0 -33
 6
1 2 3 7 8 8
 2
-1 -33

2
 10
 1
 19
 0
 20
 34
 33
 3
 32

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>

int main()
{
	int i, N;
	long long a[200001];
	scanf("%d", &N);
	for (i = 1; i <= N; i++) scanf("%lld", &(a[i]));
	
	long long sum[200001] = {}, min;
	for (i = 1; i <= N; i++) sum[i] = sum[i-1] + a[i];
	for (i = 2, min = llabs(sum[N] - sum[1] * 2); i < N; i++) {
		if (llabs(sum[N] - sum[i] * 2) < min) min = llabs(sum[N] - sum[i] * 2);
	}
	
	printf("%lld\n", min);
	fflush(stdout);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-3198976(%rsp), %r11
	.cfi_def_cfa 11, 3199016
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1080, %rsp
	.cfi_def_cfa_offset 3200096
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 3200040(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rbx
	testl	%ebx, %ebx
	jle	.L2
	leaq	24(%rsp), %rbp
	movl	$1, %ebx
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %r12
	addq	$8, %rbp
	cmpl	%ebx, %r12d
	jge	.L3
	leaq	1600032(%rsp), %rcx
	movl	$1600008, %edx
	xorl	%esi, %esi
	movq	%rcx, %rdi
	call	memset@PLT
	movq	%rax, %rcx
	testl	%r12d, %r12d
	jle	.L4
	leal	1(%r12), %edi
	movl	$1, %eax
	xorl	%edx, %edx
	leaq	16(%rsp), %rsi
	.p2align 4,,10
	.p2align 3
.L5:
	addq	(%rsi,%rax,8), %rdx
	movq	%rdx, (%rcx,%rax,8)
	addq	$1, %rax
	cmpq	%rax, %rdi
	jne	.L5
	movslq	%r12d, %rax
	movq	1600032(%rsp,%rax,8), %rsi
	movq	1600040(%rsp), %rax
	leaq	(%rax,%rax), %rdx
	movq	%rsi, %rax
	subq	%rdx, %rax
	movq	%rax, %r8
	negq	%r8
	cmovs	%rax, %r8
	cmpl	$2, %r12d
	jle	.L6
	leal	-3(%r12), %eax
	leaq	1600048(%rsp), %rdx
	leaq	1600056(%rsp,%rax,8), %rdi
	.p2align 4,,10
	.p2align 3
.L7:
	movq	(%rdx), %rax
	movq	%rsi, %rcx
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rax
	negq	%rax
	cmovs	%rcx, %rax
	cmpq	%rax, %r8
	cmovg	%rax, %r8
	addq	$8, %rdx
	cmpq	%rdx, %rdi
	jne	.L7
.L6:
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r8, %rdx
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	3200040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$3200056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movl	$1600008, %edx
	xorl	%esi, %esi
	leaq	1600032(%rsp), %rdi
	call	memset@PLT
	movq	1600040(%rsp), %rdx
	movq	1600032(%rsp,%rbx,8), %rax
	addq	%rdx, %rdx
	subq	%rdx, %rax
	movq	%rax, %r8
	negq	%r8
	cmovs	%rax, %r8
	jmp	.L6
.L4:
	movq	1600040(%rsp), %rdx
	movq	1600032(%rsp,%r12,8), %rax
	addq	%rdx, %rdx
	subq	%rdx, %rax
	movq	%rax, %r8
	negq	%r8
	cmovs	%rax, %r8
	jmp	.L6
.L15:
	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:
```

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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-3198976(%rsp), %r11
	.cfi_def_cfa 11, 3199016
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1080, %rsp
	.cfi_def_cfa_offset 3200096
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 3200040(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rbx
	testl	%ebx, %ebx
	jle	.L2
	leaq	24(%rsp), %rbp
	movl	$1, %ebx
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %r12
	addq	$8, %rbp
	cmpl	%ebx, %r12d
	jge	.L3
	leaq	1600032(%rsp), %rcx
	movl	$1600008, %edx
	xorl	%esi, %esi
	movq	%rcx, %rdi
	call	memset@PLT
	movq	%rax, %rcx
	testl	%r12d, %r12d
	jle	.L4
	leal	1(%r12), %edi
	movl	$1, %eax
	xorl	%edx, %edx
	leaq	16(%rsp), %rsi
	.p2align 4,,10
	.p2align 3
.L5:
	addq	(%rsi,%rax,8), %rdx
	movq	%rdx, (%rcx,%rax,8)
	addq	$1, %rax
	cmpq	%rax, %rdi
	jne	.L5
	movslq	%r12d, %rax
	movq	1600032(%rsp,%rax,8), %rsi
	movq	1600040(%rsp), %rax
	leaq	(%rax,%rax), %rdx
	movq	%rsi, %rax
	subq	%rdx, %rax
	movq	%rax, %r8
	negq	%r8
	cmovs	%rax, %r8
	cmpl	$2, %r12d
	jle	.L6
	leal	-3(%r12), %eax
	leaq	1600048(%rsp), %rdx
	leaq	1600056(%rsp,%rax,8), %rdi
	.p2align 4,,10
	.p2align 3
.L7:
	movq	(%rdx), %rax
	movq	%rsi, %rcx
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rax
	negq	%rax
	cmovs	%rcx, %rax
	cmpq	%rax, %r8
	cmovg	%rax, %r8
	addq	$8, %rdx
	cmpq	%rdx, %rdi
	jne	.L7
.L6:
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r8, %rdx
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	3200040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$3200056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movl	$1600008, %edx
	xorl	%esi, %esi
	leaq	1600032(%rsp), %rdi
	call	memset@PLT
	movq	1600040(%rsp), %rdx
	movq	1600032(%rsp,%rbx,8), %rax
	addq	%rdx, %rdx
	subq	%rdx, %rax
	movq	%rax, %r8
	negq	%r8
	cmovs	%rax, %r8
	jmp	.L6
.L4:
	movq	1600040(%rsp), %rdx
	movq	1600032(%rsp,%r12,8), %rax
	addq	%rdx, %rdx
	subq	%rdx, %rax
	movq	%rax, %r8
	negq	%r8
	cmovs	%rax, %r8
	jmp	.L6
.L15:
	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:
```