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>
long long Dc(long long a)
{
    if(a<0) return -a;
    else    return a;
}
int main(void)
{
    long long n,i,x,num=0,num1=0,num2;
    scanf("%lld",&n);
    long long a[n];
    for(i=0;i<n;i++)
    {
        scanf("%lld",&a[i]);
    }
    for(i=0;i<n;i++)
    {
        num+=a[i];
    }
    x=Dc(num-2*a[0]);
    for(i=0;i<n-1;i++)
    {
        num1+=a[i];
        num2=num-num1;
        if(Dc(num1-num2)<x)    x=Dc(num1-num2);
    }
        printf("%lld\n",x);
        return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	Dc
	.type	Dc, @function
Dc:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	cmpq	$0, -8(%rbp)
	jns	.L2
	movq	-8(%rbp), %rax
	negq	%rax
	jmp	.L3
.L2:
	movq	-8(%rbp), %rax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Dc, .-Dc
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	leaq	-120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-120(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -80(%rbp)
	movq	%rax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movq	%rax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -72(%rbp)
	movq	$0, -112(%rbp)
	jmp	.L8
.L9:
	movq	-112(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -112(%rbp)
.L8:
	movq	-120(%rbp), %rax
	cmpq	%rax, -112(%rbp)
	jl	.L9
	movq	$0, -112(%rbp)
	jmp	.L10
.L11:
	movq	-72(%rbp), %rax
	movq	-112(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	addq	%rax, -96(%rbp)
	addq	$1, -112(%rbp)
.L10:
	movq	-120(%rbp), %rax
	cmpq	%rax, -112(%rbp)
	jl	.L11
	movq	-72(%rbp), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax), %rdx
	movq	-96(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rdi
	call	Dc
	movq	%rax, -104(%rbp)
	movq	$0, -112(%rbp)
	jmp	.L12
.L14:
	movq	-72(%rbp), %rax
	movq	-112(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	addq	%rax, -88(%rbp)
	movq	-96(%rbp), %rax
	subq	-88(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	-88(%rbp), %rax
	subq	-64(%rbp), %rax
	movq	%rax, %rdi
	call	Dc
	cmpq	%rax, -104(%rbp)
	jle	.L13
	movq	-88(%rbp), %rax
	subq	-64(%rbp), %rax
	movq	%rax, %rdi
	call	Dc
	movq	%rax, -104(%rbp)
.L13:
	addq	$1, -112(%rbp)
.L12:
	movq	-120(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -112(%rbp)
	jl	.L14
	movq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.p2align 4
	.globl	Dc
	.type	Dc, @function
Dc:
.LFB23:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	negq	%rax
	cmovs	%rdi, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	Dc, .-Dc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	.cfi_offset 15, -24
	leaq	.LC0(%rip), %r15
	pushq	%r14
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rsi
	movq	%rsp, %rcx
	leaq	15(,%rsi,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L5
.L28:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L28
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L29
.L6:
	leaq	7(%rsp), %r13
	movq	%r13, %r14
	andq	$-8, %r13
	shrq	$3, %r14
	testq	%rsi, %rsi
	jle	.L20
	movq	%r13, %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r12, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rsi
	addq	$8, %r12
	cmpq	%rbx, %rsi
	jg	.L8
	testq	%rsi, %rsi
	jle	.L20
	cmpq	$1, %rsi
	je	.L21
	movq	%rsi, %rcx
	xorl	%eax, %eax
	pxor	%xmm0, %xmm0
	shrq	%rcx
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rax, %rdx
	addq	$1, %rax
	salq	$4, %rdx
	movdqu	0(%r13,%rdx), %xmm1
	paddq	%xmm1, %xmm0
	cmpq	%rax, %rcx
	jne	.L10
	movdqa	%xmm0, %xmm1
	movq	%rsi, %rax
	psrldq	$8, %xmm1
	andq	$-2, %rax
	paddq	%xmm1, %xmm0
	movq	%xmm0, %rcx
	testb	$1, %sil
	je	.L7
.L9:
	addq	0(%r13,%rax,8), %rcx
.L7:
	movq	0(,%r14,8), %rax
	movq	%rcx, %r8
	addq	%rax, %rax
	movq	%rax, %rdx
	subq	%rcx, %rdx
	subq	%rax, %r8
	cmovs	%rdx, %r8
	subq	$1, %rsi
	testq	%rsi, %rsi
	jle	.L14
	xorl	%eax, %eax
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L17:
	addq	0(%r13,%rdi,8), %rax
	movq	%rcx, %rdx
	subq	%rax, %rdx
	movq	%rax, %r9
	subq	%rdx, %r9
	js	.L30
	cmpq	%r9, %r8
	cmovg	%r9, %r8
	addq	$1, %rdi
	cmpq	%rsi, %rdi
	jne	.L17
.L14:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L31
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	subq	%rax, %rdx
	cmpq	%rdx, %r8
	cmovg	%rdx, %r8
	addq	$1, %rdi
	cmpq	%rdi, %rsi
	jne	.L17
	jmp	.L14
.L29:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L20:
	xorl	%ecx, %ecx
	jmp	.L7
.L21:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	.L9
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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
	.p2align 4
	.globl	Dc
	.type	Dc, @function
Dc:
.LFB23:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	negq	%rax
	cmovs	%rdi, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	Dc, .-Dc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	.cfi_offset 15, -24
	leaq	.LC0(%rip), %r15
	pushq	%r14
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rsi
	movq	%rsp, %rcx
	leaq	15(,%rsi,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L5
.L28:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L28
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L29
.L6:
	leaq	7(%rsp), %r13
	movq	%r13, %r14
	andq	$-8, %r13
	shrq	$3, %r14
	testq	%rsi, %rsi
	jle	.L20
	movq	%r13, %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r12, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rsi
	addq	$8, %r12
	cmpq	%rbx, %rsi
	jg	.L8
	testq	%rsi, %rsi
	jle	.L20
	cmpq	$1, %rsi
	je	.L21
	movq	%rsi, %rcx
	xorl	%eax, %eax
	pxor	%xmm0, %xmm0
	shrq	%rcx
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rax, %rdx
	addq	$1, %rax
	salq	$4, %rdx
	movdqu	0(%r13,%rdx), %xmm1
	paddq	%xmm1, %xmm0
	cmpq	%rax, %rcx
	jne	.L10
	movdqa	%xmm0, %xmm1
	movq	%rsi, %rax
	psrldq	$8, %xmm1
	andq	$-2, %rax
	paddq	%xmm1, %xmm0
	movq	%xmm0, %rcx
	testb	$1, %sil
	je	.L7
.L9:
	addq	0(%r13,%rax,8), %rcx
.L7:
	movq	0(,%r14,8), %rax
	movq	%rcx, %r8
	addq	%rax, %rax
	movq	%rax, %rdx
	subq	%rcx, %rdx
	subq	%rax, %r8
	cmovs	%rdx, %r8
	subq	$1, %rsi
	testq	%rsi, %rsi
	jle	.L14
	xorl	%eax, %eax
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L17:
	addq	0(%r13,%rdi,8), %rax
	movq	%rcx, %rdx
	subq	%rax, %rdx
	movq	%rax, %r9
	subq	%rdx, %r9
	js	.L30
	cmpq	%r9, %r8
	cmovg	%r9, %r8
	addq	$1, %rdi
	cmpq	%rsi, %rdi
	jne	.L17
.L14:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L31
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	subq	%rax, %rdx
	cmpq	%rdx, %r8
	cmovg	%rdx, %r8
	addq	$1, %rdi
	cmpq	%rdi, %rsi
	jne	.L17
	jmp	.L14
.L29:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L20:
	xorl	%ecx, %ecx
	jmp	.L7
.L21:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	.L9
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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>
long long Dc(long long a)
{
    if(a<0) return -a;
    else    return a;
}
int main(void)
{
    long long n,i,x,num=0,num1=0,num2;
    scanf("%lld",&n);
    long long a[n];
    for(i=0;i<n;i++)
    {
        scanf("%lld",&a[i]);
    }
    for(i=0;i<n;i++)
    {
        num+=a[i];
    }
    x=Dc(num-2*a[0]);
    for(i=0;i<n-1;i++)
    {
        num1+=a[i];
        num2=num-num1;
        if(Dc(num1-num2)<x)    x=Dc(num1-num2);
    }
        printf("%lld\n",x);
        return 0;
}

6
1 2 3 4 5 6

1

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>
long long Dc(long long a)
{
    if(a<0) return -a;
    else    return a;
}
int main(void)
{
    long long n,i,x,num=0,num1=0,num2;
    scanf("%lld",&n);
    long long a[n];
    for(i=0;i<n;i++)
    {
        scanf("%lld",&a[i]);
    }
    for(i=0;i<n;i++)
    {
        num+=a[i];
    }
    x=Dc(num-2*a[0]);
    for(i=0;i<n-1;i++)
    {
        num1+=a[i];
        num2=num-num1;
        if(Dc(num1-num2)<x)    x=Dc(num1-num2);
    }
        printf("%lld\n",x);
        return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	Dc
	.type	Dc, @function
Dc:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	cmpq	$0, -8(%rbp)
	jns	.L2
	movq	-8(%rbp), %rax
	negq	%rax
	jmp	.L3
.L2:
	movq	-8(%rbp), %rax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Dc, .-Dc
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	leaq	-120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-120(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -80(%rbp)
	movq	%rax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movq	%rax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -72(%rbp)
	movq	$0, -112(%rbp)
	jmp	.L8
.L9:
	movq	-112(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -112(%rbp)
.L8:
	movq	-120(%rbp), %rax
	cmpq	%rax, -112(%rbp)
	jl	.L9
	movq	$0, -112(%rbp)
	jmp	.L10
.L11:
	movq	-72(%rbp), %rax
	movq	-112(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	addq	%rax, -96(%rbp)
	addq	$1, -112(%rbp)
.L10:
	movq	-120(%rbp), %rax
	cmpq	%rax, -112(%rbp)
	jl	.L11
	movq	-72(%rbp), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax), %rdx
	movq	-96(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rdi
	call	Dc
	movq	%rax, -104(%rbp)
	movq	$0, -112(%rbp)
	jmp	.L12
.L14:
	movq	-72(%rbp), %rax
	movq	-112(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	addq	%rax, -88(%rbp)
	movq	-96(%rbp), %rax
	subq	-88(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	-88(%rbp), %rax
	subq	-64(%rbp), %rax
	movq	%rax, %rdi
	call	Dc
	cmpq	%rax, -104(%rbp)
	jle	.L13
	movq	-88(%rbp), %rax
	subq	-64(%rbp), %rax
	movq	%rax, %rdi
	call	Dc
	movq	%rax, -104(%rbp)
.L13:
	addq	$1, -112(%rbp)
.L12:
	movq	-120(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -112(%rbp)
	jl	.L14
	movq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	Dc
	.type	Dc, @function
Dc:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	cmpq	$0, -8(%rbp)
	jns	.L2
	movq	-8(%rbp), %rax
	negq	%rax
	jmp	.L3
.L2:
	movq	-8(%rbp), %rax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Dc, .-Dc
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	leaq	-120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-120(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -80(%rbp)
	movq	%rax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movq	%rax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -72(%rbp)
	movq	$0, -112(%rbp)
	jmp	.L8
.L9:
	movq	-112(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -112(%rbp)
.L8:
	movq	-120(%rbp), %rax
	cmpq	%rax, -112(%rbp)
	jl	.L9
	movq	$0, -112(%rbp)
	jmp	.L10
.L11:
	movq	-72(%rbp), %rax
	movq	-112(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	addq	%rax, -96(%rbp)
	addq	$1, -112(%rbp)
.L10:
	movq	-120(%rbp), %rax
	cmpq	%rax, -112(%rbp)
	jl	.L11
	movq	-72(%rbp), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax), %rdx
	movq	-96(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rdi
	call	Dc
	movq	%rax, -104(%rbp)
	movq	$0, -112(%rbp)
	jmp	.L12
.L14:
	movq	-72(%rbp), %rax
	movq	-112(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	addq	%rax, -88(%rbp)
	movq	-96(%rbp), %rax
	subq	-88(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	-88(%rbp), %rax
	subq	-64(%rbp), %rax
	movq	%rax, %rdi
	call	Dc
	cmpq	%rax, -104(%rbp)
	jle	.L13
	movq	-88(%rbp), %rax
	subq	-64(%rbp), %rax
	movq	%rax, %rdi
	call	Dc
	movq	%rax, -104(%rbp)
.L13:
	addq	$1, -112(%rbp)
.L12:
	movq	-120(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -112(%rbp)
	jl	.L14
	movq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
