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>
#include<stdlib.h>
int main(void) {
	int i, n, l, sum = 0, sa = 2147483647;
	scanf("%d %d", &n, &l);
	for (i = 1; i <= n; i++)
		if (abs(sa) > abs(i + l - 1)) sa = (i + l - 1);
	for (i = 1; i <= n; i++) sum += (i + l - 1);
	printf("%d", sum - sa);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -16(%rbp)
	movl	$2147483647, -12(%rbp)
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -20(%rbp)
	jmp	.L2
.L4:
	movl	-12(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-24(%rbp), %ecx
	movl	-20(%rbp), %eax
	addl	%ecx, %eax
	subl	$1, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	jle	.L3
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -12(%rbp)
.L3:
	addl	$1, -20(%rbp)
.L2:
	movl	-28(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L4
	movl	$1, -20(%rbp)
	jmp	.L5
.L6:
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	addl	%eax, -16(%rbp)
	addl	$1, -20(%rbp)
.L5:
	movl	-28(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L6
	movl	-16(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, %esi
	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	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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
.LC1:
	.string	"%d %d"
.LC3:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L10
	movl	4(%rsp), %r9d
	movl	$2147483647, %ecx
	movl	%r9d, %eax
	leal	(%r8,%r9), %edi
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%eax, %esi
	movl	%ecx, %edx
	negl	%esi
	cmovs	%eax, %esi
	negl	%edx
	cmovs	%ecx, %edx
	cmpl	%edx, %esi
	cmovl	%eax, %ecx
	addl	$1, %eax
	cmpl	%edi, %eax
	jne	.L4
	leal	-1(%r8), %eax
	cmpl	$4, %eax
	jbe	.L12
	movl	%r8d, %edx
	movd	%r9d, %xmm6
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	movdqa	.LC0(%rip), %xmm2
	movdqa	.LC2(%rip), %xmm4
	shrl	$2, %edx
	pcmpeqd	%xmm3, %xmm3
	pshufd	$0, %xmm6, %xmm5
	.p2align 4,,10
	.p2align 3
.L6:
	movdqa	%xmm2, %xmm0
	addl	$1, %eax
	paddd	%xmm4, %xmm2
	paddd	%xmm5, %xmm0
	paddd	%xmm3, %xmm0
	paddd	%xmm0, %xmm1
	cmpl	%eax, %edx
	jne	.L6
	movdqa	%xmm1, %xmm0
	movl	%r8d, %esi
	psrldq	$8, %xmm0
	andl	$-4, %esi
	paddd	%xmm0, %xmm1
	leal	1(%rsi), %eax
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpl	%esi, %r8d
	je	.L2
.L5:
	leal	-1(%r9,%rax), %esi
	addl	%esi, %edx
	leal	1(%rax), %esi
	cmpl	%r8d, %esi
	jg	.L2
	leal	-1(%r9,%rsi), %esi
	addl	%esi, %edx
	leal	2(%rax), %esi
	cmpl	%r8d, %esi
	jg	.L2
	leal	-1(%rsi,%r9), %esi
	addl	%esi, %edx
	leal	3(%rax), %esi
	cmpl	%esi, %r8d
	jl	.L2
	leal	-1(%r9,%rsi), %esi
	addl	$4, %eax
	addl	%esi, %edx
	cmpl	%eax, %r8d
	jl	.L2
	leal	-1(%r9,%rax), %eax
	addl	%eax, %edx
.L2:
	subl	%ecx, %edx
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	movl	$2147483647, %ecx
	xorl	%edx, %edx
	jmp	.L2
.L12:
	xorl	%edx, %edx
	movl	$1, %eax
	jmp	.L5
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.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
.LC1:
	.string	"%d %d"
.LC3:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L10
	movl	4(%rsp), %r9d
	movl	$2147483647, %ecx
	movl	%r9d, %eax
	leal	(%r8,%r9), %edi
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%eax, %esi
	movl	%ecx, %edx
	negl	%esi
	cmovs	%eax, %esi
	negl	%edx
	cmovs	%ecx, %edx
	cmpl	%edx, %esi
	cmovl	%eax, %ecx
	addl	$1, %eax
	cmpl	%edi, %eax
	jne	.L4
	leal	-1(%r8), %eax
	cmpl	$4, %eax
	jbe	.L12
	movl	%r8d, %edx
	movd	%r9d, %xmm6
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	movdqa	.LC0(%rip), %xmm2
	movdqa	.LC2(%rip), %xmm4
	shrl	$2, %edx
	pcmpeqd	%xmm3, %xmm3
	pshufd	$0, %xmm6, %xmm5
	.p2align 4,,10
	.p2align 3
.L6:
	movdqa	%xmm2, %xmm0
	addl	$1, %eax
	paddd	%xmm4, %xmm2
	paddd	%xmm5, %xmm0
	paddd	%xmm3, %xmm0
	paddd	%xmm0, %xmm1
	cmpl	%eax, %edx
	jne	.L6
	movdqa	%xmm1, %xmm0
	movl	%r8d, %esi
	psrldq	$8, %xmm0
	andl	$-4, %esi
	paddd	%xmm0, %xmm1
	leal	1(%rsi), %eax
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpl	%esi, %r8d
	je	.L2
.L5:
	leal	-1(%r9,%rax), %esi
	addl	%esi, %edx
	leal	1(%rax), %esi
	cmpl	%r8d, %esi
	jg	.L2
	leal	-1(%r9,%rsi), %esi
	addl	%esi, %edx
	leal	2(%rax), %esi
	cmpl	%r8d, %esi
	jg	.L2
	leal	-1(%rsi,%r9), %esi
	addl	%esi, %edx
	leal	3(%rax), %esi
	cmpl	%esi, %r8d
	jl	.L2
	leal	-1(%r9,%rsi), %esi
	addl	$4, %eax
	addl	%esi, %edx
	cmpl	%eax, %r8d
	jl	.L2
	leal	-1(%r9,%rax), %eax
	addl	%eax, %edx
.L2:
	subl	%ecx, %edx
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	movl	$2147483647, %ecx
	xorl	%edx, %edx
	jmp	.L2
.L12:
	xorl	%edx, %edx
	movl	$1, %eax
	jmp	.L5
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.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>
#include<stdlib.h>
int main(void) {
	int i, n, l, sum = 0, sa = 2147483647;
	scanf("%d %d", &n, &l);
	for (i = 1; i <= n; i++)
		if (abs(sa) > abs(i + l - 1)) sa = (i + l - 1);
	for (i = 1; i <= n; i++) sum += (i + l - 1);
	printf("%d", sum - sa);
	return 0;
}
5 4
 13 -50
 3 -2
 5 7
 16 -50
 5 -2
 5 9
 23 -50
 4 -2
 8 9

26 -534 -3 38 -645 0 46 -869 -2 91
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>
#include<stdlib.h>
int main(void) {
	int i, n, l, sum = 0, sa = 2147483647;
	scanf("%d %d", &n, &l);
	for (i = 1; i <= n; i++)
		if (abs(sa) > abs(i + l - 1)) sa = (i + l - 1);
	for (i = 1; i <= n; i++) sum += (i + l - 1);
	printf("%d", sum - sa);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -16(%rbp)
	movl	$2147483647, -12(%rbp)
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -20(%rbp)
	jmp	.L2
.L4:
	movl	-12(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-24(%rbp), %ecx
	movl	-20(%rbp), %eax
	addl	%ecx, %eax
	subl	$1, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	jle	.L3
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -12(%rbp)
.L3:
	addl	$1, -20(%rbp)
.L2:
	movl	-28(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L4
	movl	$1, -20(%rbp)
	jmp	.L5
.L6:
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	addl	%eax, -16(%rbp)
	addl	$1, -20(%rbp)
.L5:
	movl	-28(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L6
	movl	-16(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, %esi
	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	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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 %d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -16(%rbp)
	movl	$2147483647, -12(%rbp)
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -20(%rbp)
	jmp	.L2
.L4:
	movl	-12(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-24(%rbp), %ecx
	movl	-20(%rbp), %eax
	addl	%ecx, %eax
	subl	$1, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	jle	.L3
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -12(%rbp)
.L3:
	addl	$1, -20(%rbp)
.L2:
	movl	-28(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L4
	movl	$1, -20(%rbp)
	jmp	.L5
.L6:
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	addl	%eax, -16(%rbp)
	addl	$1, -20(%rbp)
.L5:
	movl	-28(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L6
	movl	-16(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, %esi
	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	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
