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

```c
#include <math.h>
#include <stdio.h>
typedef long long ll;
int a[200000];
ll aSum[200000], bSum[200000];
int main() {
	int n;
	ll sum = 0, min = 1e18;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%d", &a[i]);
		sum += a[i];
	}
	aSum[0] = a[0];
	bSum[0] = sum - a[0];
	for (int i = 1; i < n; i++) {
		aSum[i] += aSum[i - 1] + a[i];
		bSum[i] = sum - aSum[i];
	}
	for (int i = 0; i < n; i++) {
		if (min > llabs(aSum[i] - bSum[i])) {
			min = llabs(aSum[i] - bSum[i]);
		}
	}
	printf("%lld\n", min);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	testl	%esi, %esi
	jle	.L2
	leaq	a(%rip), %rbp
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	movq	%rbp, %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	(%rbx), %rax
	movl	4(%rsp), %esi
	addq	$4, %rbx
	addq	%rax, %r12
	cmpl	%r13d, %esi
	jg	.L3
	movslq	a(%rip), %rdx
	movq	%r12, %rax
	subq	%rdx, %rax
	movq	%rdx, aSum(%rip)
	movq	%rax, bSum(%rip)
	cmpl	$1, %esi
	jle	.L4
	movslq	%esi, %r8
	movl	$1, %eax
	leaq	aSum(%rip), %rdi
	leaq	bSum(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	0(%rbp,%rax,4), %rcx
	addq	%rcx, %rdx
	movq	%r12, %rcx
	addq	(%rdi,%rax,8), %rdx
	subq	%rdx, %rcx
	movq	%rdx, (%rdi,%rax,8)
	movq	%rcx, (%r9,%rax,8)
	addq	$1, %rax
	cmpq	%rax, %r8
	jne	.L5
	movabsq	$1000000000000000000, %r8
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	(%rdi,%rdx,8), %rax
	subq	(%r9,%rdx,8), %rax
	movq	%rax, %rcx
	negq	%rcx
	cmovns	%rcx, %rax
	cmpq	%rax, %r8
	cmovg	%rax, %r8
	addq	$1, %rdx
	cmpl	%edx, %esi
	jg	.L6
.L8:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movslq	a(%rip), %rax
	movq	%rax, aSum(%rip)
	negq	%rax
	movq	%rax, bSum(%rip)
.L4:
	subl	$1, %esi
	je	.L7
	movabsq	$1000000000000000000, %r8
	jmp	.L8
.L7:
	movq	aSum(%rip), %rax
	subq	bSum(%rip), %rax
	movq	%rax, %r8
	negq	%r8
	cmovs	%rax, %r8
	movabsq	$1000000000000000000, %rax
	cmpq	%rax, %r8
	cmovg	%rax, %r8
	jmp	.L8
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	bSum
	.bss
	.align 32
	.type	bSum, @object
	.size	bSum, 1600000
bSum:
	.zero	1600000
	.globl	aSum
	.align 32
	.type	aSum, @object
	.size	aSum, 1600000
aSum:
	.zero	1600000
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 800000
a:
	.zero	800000
	.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\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	testl	%esi, %esi
	jle	.L2
	leaq	a(%rip), %rbp
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	movq	%rbp, %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	(%rbx), %rax
	movl	4(%rsp), %esi
	addq	$4, %rbx
	addq	%rax, %r12
	cmpl	%r13d, %esi
	jg	.L3
	movslq	a(%rip), %rdx
	movq	%r12, %rax
	subq	%rdx, %rax
	movq	%rdx, aSum(%rip)
	movq	%rax, bSum(%rip)
	cmpl	$1, %esi
	jle	.L4
	movslq	%esi, %r8
	movl	$1, %eax
	leaq	aSum(%rip), %rdi
	leaq	bSum(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	0(%rbp,%rax,4), %rcx
	addq	%rcx, %rdx
	movq	%r12, %rcx
	addq	(%rdi,%rax,8), %rdx
	subq	%rdx, %rcx
	movq	%rdx, (%rdi,%rax,8)
	movq	%rcx, (%r9,%rax,8)
	addq	$1, %rax
	cmpq	%rax, %r8
	jne	.L5
	movabsq	$1000000000000000000, %r8
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	(%rdi,%rdx,8), %rax
	subq	(%r9,%rdx,8), %rax
	movq	%rax, %rcx
	negq	%rcx
	cmovns	%rcx, %rax
	cmpq	%rax, %r8
	cmovg	%rax, %r8
	addq	$1, %rdx
	cmpl	%edx, %esi
	jg	.L6
.L8:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movslq	a(%rip), %rax
	movq	%rax, aSum(%rip)
	negq	%rax
	movq	%rax, bSum(%rip)
.L4:
	subl	$1, %esi
	je	.L7
	movabsq	$1000000000000000000, %r8
	jmp	.L8
.L7:
	movq	aSum(%rip), %rax
	subq	bSum(%rip), %rax
	movq	%rax, %r8
	negq	%r8
	cmovs	%rax, %r8
	movabsq	$1000000000000000000, %rax
	cmpq	%rax, %r8
	cmovg	%rax, %r8
	jmp	.L8
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	bSum
	.bss
	.align 32
	.type	bSum, @object
	.size	bSum, 1600000
bSum:
	.zero	1600000
	.globl	aSum
	.align 32
	.type	aSum, @object
	.size	aSum, 1600000
aSum:
	.zero	1600000
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 800000
a:
	.zero	800000
	.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\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	testl	%esi, %esi
	jle	.L2
	leaq	a(%rip), %rbp
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	movq	%rbp, %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	(%rbx), %rax
	movl	4(%rsp), %esi
	addq	$4, %rbx
	addq	%rax, %r12
	cmpl	%r13d, %esi
	jg	.L3
	movslq	a(%rip), %rdx
	movq	%r12, %rax
	subq	%rdx, %rax
	movq	%rdx, aSum(%rip)
	movq	%rax, bSum(%rip)
	cmpl	$1, %esi
	jle	.L4
	movslq	%esi, %r8
	movl	$1, %eax
	leaq	aSum(%rip), %rdi
	leaq	bSum(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	0(%rbp,%rax,4), %rcx
	addq	%rcx, %rdx
	movq	%r12, %rcx
	addq	(%rdi,%rax,8), %rdx
	subq	%rdx, %rcx
	movq	%rdx, (%rdi,%rax,8)
	movq	%rcx, (%r9,%rax,8)
	addq	$1, %rax
	cmpq	%rax, %r8
	jne	.L5
	movabsq	$1000000000000000000, %r8
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	(%rdi,%rdx,8), %rax
	subq	(%r9,%rdx,8), %rax
	movq	%rax, %rcx
	negq	%rcx
	cmovns	%rcx, %rax
	cmpq	%rax, %r8
	cmovg	%rax, %r8
	addq	$1, %rdx
	cmpl	%edx, %esi
	jg	.L6
.L8:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movslq	a(%rip), %rax
	movq	%rax, aSum(%rip)
	negq	%rax
	movq	%rax, bSum(%rip)
.L4:
	subl	$1, %esi
	je	.L7
	movabsq	$1000000000000000000, %r8
	jmp	.L8
.L7:
	movq	aSum(%rip), %rax
	subq	bSum(%rip), %rax
	movq	%rax, %r8
	negq	%r8
	cmovs	%rax, %r8
	movabsq	$1000000000000000000, %rax
	cmpq	%rax, %r8
	cmovg	%rax, %r8
	jmp	.L8
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	bSum
	.bss
	.align 32
	.type	bSum, @object
	.size	bSum, 1600000
bSum:
	.zero	1600000
	.globl	aSum
	.align 32
	.type	aSum, @object
	.size	aSum, 1600000
aSum:
	.zero	1600000
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 800000
a:
	.zero	800000
	.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 <math.h>
#include <stdio.h>
typedef long long ll;
int a[200000];
ll aSum[200000], bSum[200000];
int main() {
	int n;
	ll sum = 0, min = 1e18;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%d", &a[i]);
		sum += a[i];
	}
	aSum[0] = a[0];
	bSum[0] = sum - a[0];
	for (int i = 1; i < n; i++) {
		aSum[i] += aSum[i - 1] + a[i];
		bSum[i] = sum - aSum[i];
	}
	for (int i = 0; i < n; i++) {
		if (min > llabs(aSum[i] - bSum[i])) {
			min = llabs(aSum[i] - bSum[i]);
		}
	}
	printf("%lld\n", min);
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <math.h>
#include <stdio.h>
typedef long long ll;
int a[200000];
ll aSum[200000], bSum[200000];
int main() {
	int n;
	ll sum = 0, min = 1e18;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%d", &a[i]);
		sum += a[i];
	}
	aSum[0] = a[0];
	bSum[0] = sum - a[0];
	for (int i = 1; i < n; i++) {
		aSum[i] += aSum[i - 1] + a[i];
		bSum[i] = sum - aSum[i];
	}
	for (int i = 0; i < n; i++) {
		if (min > llabs(aSum[i] - bSum[i])) {
			min = llabs(aSum[i] - bSum[i]);
		}
	}
	printf("%lld\n", min);
	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:

3
2 5 3
 12
100 104 102 105 103 103 100 105 104 102 104 101
 3
2 8 3
 12
100 104 102 105 103 103 100 117 104 102 104 101
 3
2 8 2
 12
101 104 102 105 103 103 100 117 104 102 104 101
 12
101 104 102 105 103 103 100 117 104 102 104 111
 3
2 0 4
 12
101 104 102 187 103 103 100 117 104 102 104 111
 12
101 104 102 187 103 103 110 117 104 102 104 111

4
 1
 7
 11
 8
 10
 20
 2
 62
 52

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

```c
#include <math.h>
#include <stdio.h>
typedef long long ll;
int a[200000];
ll aSum[200000], bSum[200000];
int main() {
	int n;
	ll sum = 0, min = 1e18;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%d", &a[i]);
		sum += a[i];
	}
	aSum[0] = a[0];
	bSum[0] = sum - a[0];
	for (int i = 1; i < n; i++) {
		aSum[i] += aSum[i - 1] + a[i];
		bSum[i] = sum - aSum[i];
	}
	for (int i = 0; i < n; i++) {
		if (min > llabs(aSum[i] - bSum[i])) {
			min = llabs(aSum[i] - bSum[i]);
		}
	}
	printf("%lld\n", min);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	testl	%esi, %esi
	jle	.L2
	leaq	a(%rip), %rbp
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	movq	%rbp, %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	(%rbx), %rax
	movl	4(%rsp), %esi
	addq	$4, %rbx
	addq	%rax, %r12
	cmpl	%r13d, %esi
	jg	.L3
	movslq	a(%rip), %rdx
	movq	%r12, %rax
	subq	%rdx, %rax
	movq	%rdx, aSum(%rip)
	movq	%rax, bSum(%rip)
	cmpl	$1, %esi
	jle	.L4
	movslq	%esi, %r8
	movl	$1, %eax
	leaq	aSum(%rip), %rdi
	leaq	bSum(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	0(%rbp,%rax,4), %rcx
	addq	%rcx, %rdx
	movq	%r12, %rcx
	addq	(%rdi,%rax,8), %rdx
	subq	%rdx, %rcx
	movq	%rdx, (%rdi,%rax,8)
	movq	%rcx, (%r9,%rax,8)
	addq	$1, %rax
	cmpq	%rax, %r8
	jne	.L5
	movabsq	$1000000000000000000, %r8
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	(%rdi,%rdx,8), %rax
	subq	(%r9,%rdx,8), %rax
	movq	%rax, %rcx
	negq	%rcx
	cmovns	%rcx, %rax
	cmpq	%rax, %r8
	cmovg	%rax, %r8
	addq	$1, %rdx
	cmpl	%edx, %esi
	jg	.L6
.L8:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movslq	a(%rip), %rax
	movq	%rax, aSum(%rip)
	negq	%rax
	movq	%rax, bSum(%rip)
.L4:
	subl	$1, %esi
	je	.L7
	movabsq	$1000000000000000000, %r8
	jmp	.L8
.L7:
	movq	aSum(%rip), %rax
	subq	bSum(%rip), %rax
	movq	%rax, %r8
	negq	%r8
	cmovs	%rax, %r8
	movabsq	$1000000000000000000, %rax
	cmpq	%rax, %r8
	cmovg	%rax, %r8
	jmp	.L8
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	bSum
	.bss
	.align 32
	.type	bSum, @object
	.size	bSum, 1600000
bSum:
	.zero	1600000
	.globl	aSum
	.align 32
	.type	aSum, @object
	.size	aSum, 1600000
aSum:
	.zero	1600000
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 800000
a:
	.zero	800000
	.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\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	testl	%esi, %esi
	jle	.L2
	leaq	a(%rip), %rbp
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	movq	%rbp, %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	(%rbx), %rax
	movl	4(%rsp), %esi
	addq	$4, %rbx
	addq	%rax, %r12
	cmpl	%r13d, %esi
	jg	.L3
	movslq	a(%rip), %rdx
	movq	%r12, %rax
	subq	%rdx, %rax
	movq	%rdx, aSum(%rip)
	movq	%rax, bSum(%rip)
	cmpl	$1, %esi
	jle	.L4
	movslq	%esi, %r8
	movl	$1, %eax
	leaq	aSum(%rip), %rdi
	leaq	bSum(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	0(%rbp,%rax,4), %rcx
	addq	%rcx, %rdx
	movq	%r12, %rcx
	addq	(%rdi,%rax,8), %rdx
	subq	%rdx, %rcx
	movq	%rdx, (%rdi,%rax,8)
	movq	%rcx, (%r9,%rax,8)
	addq	$1, %rax
	cmpq	%rax, %r8
	jne	.L5
	movabsq	$1000000000000000000, %r8
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	(%rdi,%rdx,8), %rax
	subq	(%r9,%rdx,8), %rax
	movq	%rax, %rcx
	negq	%rcx
	cmovns	%rcx, %rax
	cmpq	%rax, %r8
	cmovg	%rax, %r8
	addq	$1, %rdx
	cmpl	%edx, %esi
	jg	.L6
.L8:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movslq	a(%rip), %rax
	movq	%rax, aSum(%rip)
	negq	%rax
	movq	%rax, bSum(%rip)
.L4:
	subl	$1, %esi
	je	.L7
	movabsq	$1000000000000000000, %r8
	jmp	.L8
.L7:
	movq	aSum(%rip), %rax
	subq	bSum(%rip), %rax
	movq	%rax, %r8
	negq	%r8
	cmovs	%rax, %r8
	movabsq	$1000000000000000000, %rax
	cmpq	%rax, %r8
	cmovg	%rax, %r8
	jmp	.L8
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	bSum
	.bss
	.align 32
	.type	bSum, @object
	.size	bSum, 1600000
bSum:
	.zero	1600000
	.globl	aSum
	.align 32
	.type	aSum, @object
	.size	aSum, 1600000
aSum:
	.zero	1600000
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 800000
a:
	.zero	800000
	.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:
```