Given the following C code and unoptimized 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;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 800000
a:
	.zero	800000
	.globl	aSum
	.align 32
	.type	aSum, @object
	.size	aSum, 1600000
aSum:
	.zero	1600000
	.globl	bSum
	.align 32
	.type	bSum, @object
	.size	bSum, 1600000
bSum:
	.zero	1600000
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -24(%rbp)
	movabsq	$1000000000000000000, %rax
	movq	%rax, -16(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L2
.L3:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	addq	%rax, -24(%rbp)
	addl	$1, -36(%rbp)
.L2:
	movl	-40(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L3
	movl	a(%rip), %eax
	cltq
	movq	%rax, aSum(%rip)
	movl	a(%rip), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, bSum(%rip)
	movl	$1, -32(%rbp)
	jmp	.L4
.L5:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	aSum(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	aSum(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	addq	%rsi, %rax
	addq	%rax, %rcx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	aSum(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	aSum(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-24(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rcx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	bSum(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L4:
	movl	-40(%rbp), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L5
	movl	$0, -28(%rbp)
	jmp	.L6
.L8:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	aSum(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	bSum(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	cmpq	%rax, -16(%rbp)
	jle	.L7
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	aSum(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	bSum(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	movq	%rax, -16(%rbp)
.L7:
	addl	$1, -28(%rbp)
.L6:
	movl	-40(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L8
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	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	.L10
	call	__stack_chk_fail@PLT
.L10:
	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	"%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
	.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:

#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;
}
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 unoptimized 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;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 800000
a:
	.zero	800000
	.globl	aSum
	.align 32
	.type	aSum, @object
	.size	aSum, 1600000
aSum:
	.zero	1600000
	.globl	bSum
	.align 32
	.type	bSum, @object
	.size	bSum, 1600000
bSum:
	.zero	1600000
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -24(%rbp)
	movabsq	$1000000000000000000, %rax
	movq	%rax, -16(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L2
.L3:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	addq	%rax, -24(%rbp)
	addl	$1, -36(%rbp)
.L2:
	movl	-40(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L3
	movl	a(%rip), %eax
	cltq
	movq	%rax, aSum(%rip)
	movl	a(%rip), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, bSum(%rip)
	movl	$1, -32(%rbp)
	jmp	.L4
.L5:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	aSum(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	aSum(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	addq	%rsi, %rax
	addq	%rax, %rcx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	aSum(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	aSum(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-24(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rcx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	bSum(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L4:
	movl	-40(%rbp), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L5
	movl	$0, -28(%rbp)
	jmp	.L6
.L8:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	aSum(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	bSum(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	cmpq	%rax, -16(%rbp)
	jle	.L7
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	aSum(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	bSum(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	movq	%rax, -16(%rbp)
.L7:
	addl	$1, -28(%rbp)
.L6:
	movl	-40(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L8
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	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	.L10
	call	__stack_chk_fail@PLT
.L10:
	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
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 800000
a:
	.zero	800000
	.globl	aSum
	.align 32
	.type	aSum, @object
	.size	aSum, 1600000
aSum:
	.zero	1600000
	.globl	bSum
	.align 32
	.type	bSum, @object
	.size	bSum, 1600000
bSum:
	.zero	1600000
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -24(%rbp)
	movabsq	$1000000000000000000, %rax
	movq	%rax, -16(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L2
.L3:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	addq	%rax, -24(%rbp)
	addl	$1, -36(%rbp)
.L2:
	movl	-40(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L3
	movl	a(%rip), %eax
	cltq
	movq	%rax, aSum(%rip)
	movl	a(%rip), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, bSum(%rip)
	movl	$1, -32(%rbp)
	jmp	.L4
.L5:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	aSum(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	aSum(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	addq	%rsi, %rax
	addq	%rax, %rcx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	aSum(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	aSum(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-24(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rcx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	bSum(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L4:
	movl	-40(%rbp), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L5
	movl	$0, -28(%rbp)
	jmp	.L6
.L8:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	aSum(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	bSum(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	cmpq	%rax, -16(%rbp)
	jle	.L7
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	aSum(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	bSum(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	movq	%rax, -16(%rbp)
.L7:
	addl	$1, -28(%rbp)
.L6:
	movl	-40(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L8
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	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	.L10
	call	__stack_chk_fail@PLT
.L10:
	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:
