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(void){
int n,l;
  scanf("%d%d",&n,&l);
  int a[n];
  for(int i=0;i<n;i++){
	a[i]=l+i;
  }
  int min=2000,sum=0,idx;
  for(int i=0;i<n;i++){
	if(abs(a[i])<abs(min)){
      min=a[i];
      idx=i;
    }
  	sum+=a[i];
       }
  //printf("%d %d\n",sum,a[idx]);
printf("%d",sum-a[idx]);
       return 0;
       }```

Assembly Code:

```assembly
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rsi
	subq	$24, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-32(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %r9
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L22:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L22
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L23
.L4:
	movq	%rsp, %r10
	testl	%r9d, %r9d
	jle	.L12
	leal	-1(%r9), %eax
	movl	-28(%rbp), %ecx
	cmpl	$2, %eax
	jbe	.L13
	movl	%r9d, %edx
	movd	%ecx, %xmm4
	movq	%r10, %rax
	movdqa	.LC0(%rip), %xmm1
	shrl	$2, %edx
	movdqa	.LC2(%rip), %xmm2
	pshufd	$0, %xmm4, %xmm3
	salq	$4, %rdx
	addq	%r10, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm0
	addq	$16, %rax
	paddd	%xmm2, %xmm1
	paddd	%xmm3, %xmm0
	movups	%xmm0, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L7
	movl	%r9d, %eax
	andl	$-4, %eax
	testb	$3, %r9b
	je	.L8
.L6:
	movslq	%eax, %rdx
	leaq	(%r10,%rdx,4), %rsi
	leal	(%rcx,%rax), %edx
	movl	%edx, (%rsi)
	leal	1(%rax), %edx
	cmpl	%edx, %r9d
	jle	.L8
	addl	%ecx, %edx
	addl	$2, %eax
	movl	%edx, 4(%rsi)
	cmpl	%eax, %r9d
	jle	.L8
	addl	%eax, %ecx
	movl	%ecx, 8(%rsi)
.L8:
	movl	%r9d, %r9d
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$2000, %ecx
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%r10,%rsi,4), %eax
	movl	%ecx, %edi
	movl	%eax, %r8d
	negl	%r8d
	cmovs	%eax, %r8d
	negl	%edi
	cmovs	%ecx, %edi
	cmpl	%edi, %r8d
	cmovl	%esi, %ebx
	cmovl	%eax, %ecx
	addq	$1, %rsi
	addl	%eax, %edx
	cmpq	%rsi, %r9
	jne	.L10
.L5:
	movslq	%ebx, %rbx
	xorl	%eax, %eax
	movl	$1, %edi
	subl	(%r10,%rbx,4), %edx
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L24
	movq	-8(%rbp), %rbx
	xorl	%eax, %eax
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L23:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L12:
	xorl	%edx, %edx
	jmp	.L5
.L13:
	xorl	%eax, %eax
	jmp	.L6
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.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:
```

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
.LC1:
	.string	"%d%d"
.LC3:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rsi
	subq	$24, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-32(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %r9
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L22:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L22
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L23
.L4:
	movq	%rsp, %r10
	testl	%r9d, %r9d
	jle	.L12
	leal	-1(%r9), %eax
	movl	-28(%rbp), %ecx
	cmpl	$2, %eax
	jbe	.L13
	movl	%r9d, %edx
	movd	%ecx, %xmm4
	movq	%r10, %rax
	movdqa	.LC0(%rip), %xmm1
	shrl	$2, %edx
	movdqa	.LC2(%rip), %xmm2
	pshufd	$0, %xmm4, %xmm3
	salq	$4, %rdx
	addq	%r10, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm0
	addq	$16, %rax
	paddd	%xmm2, %xmm1
	paddd	%xmm3, %xmm0
	movups	%xmm0, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L7
	movl	%r9d, %eax
	andl	$-4, %eax
	testb	$3, %r9b
	je	.L8
.L6:
	movslq	%eax, %rdx
	leaq	(%r10,%rdx,4), %rsi
	leal	(%rcx,%rax), %edx
	movl	%edx, (%rsi)
	leal	1(%rax), %edx
	cmpl	%edx, %r9d
	jle	.L8
	addl	%ecx, %edx
	addl	$2, %eax
	movl	%edx, 4(%rsi)
	cmpl	%eax, %r9d
	jle	.L8
	addl	%eax, %ecx
	movl	%ecx, 8(%rsi)
.L8:
	movl	%r9d, %r9d
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$2000, %ecx
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%r10,%rsi,4), %eax
	movl	%ecx, %edi
	movl	%eax, %r8d
	negl	%r8d
	cmovs	%eax, %r8d
	negl	%edi
	cmovs	%ecx, %edi
	cmpl	%edi, %r8d
	cmovl	%esi, %ebx
	cmovl	%eax, %ecx
	addq	$1, %rsi
	addl	%eax, %edx
	cmpq	%rsi, %r9
	jne	.L10
.L5:
	movslq	%ebx, %rbx
	xorl	%eax, %eax
	movl	$1, %edi
	subl	(%r10,%rbx,4), %edx
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L24
	movq	-8(%rbp), %rbx
	xorl	%eax, %eax
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L23:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L12:
	xorl	%edx, %edx
	jmp	.L5
.L13:
	xorl	%eax, %eax
	jmp	.L6
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.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
```assembly
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rsi
	subq	$24, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-32(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %r9
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L22:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L22
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L23
.L4:
	movq	%rsp, %r10
	testl	%r9d, %r9d
	jle	.L12
	leal	-1(%r9), %eax
	movl	-28(%rbp), %ecx
	cmpl	$2, %eax
	jbe	.L13
	movl	%r9d, %edx
	movd	%ecx, %xmm4
	movq	%r10, %rax
	movdqa	.LC0(%rip), %xmm1
	shrl	$2, %edx
	movdqa	.LC2(%rip), %xmm2
	pshufd	$0, %xmm4, %xmm3
	salq	$4, %rdx
	addq	%r10, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm0
	addq	$16, %rax
	paddd	%xmm2, %xmm1
	paddd	%xmm3, %xmm0
	movups	%xmm0, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L7
	movl	%r9d, %eax
	andl	$-4, %eax
	testb	$3, %r9b
	je	.L8
.L6:
	movslq	%eax, %rdx
	leaq	(%r10,%rdx,4), %rsi
	leal	(%rcx,%rax), %edx
	movl	%edx, (%rsi)
	leal	1(%rax), %edx
	cmpl	%edx, %r9d
	jle	.L8
	addl	%ecx, %edx
	addl	$2, %eax
	movl	%edx, 4(%rsi)
	cmpl	%eax, %r9d
	jle	.L8
	addl	%eax, %ecx
	movl	%ecx, 8(%rsi)
.L8:
	movl	%r9d, %r9d
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$2000, %ecx
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%r10,%rsi,4), %eax
	movl	%ecx, %edi
	movl	%eax, %r8d
	negl	%r8d
	cmovs	%eax, %r8d
	negl	%edi
	cmovs	%ecx, %edi
	cmpl	%edi, %r8d
	cmovl	%esi, %ebx
	cmovl	%eax, %ecx
	addq	$1, %rsi
	addl	%eax, %edx
	cmpq	%rsi, %r9
	jne	.L10
.L5:
	movslq	%ebx, %rbx
	xorl	%eax, %eax
	movl	$1, %edi
	subl	(%r10,%rbx,4), %edx
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L24
	movq	-8(%rbp), %rbx
	xorl	%eax, %eax
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L23:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L12:
	xorl	%edx, %edx
	jmp	.L5
.L13:
	xorl	%eax, %eax
	jmp	.L6
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.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:
```
```c
#include<stdio.h>
#include<stdlib.h>
int main(void){
int n,l;
  scanf("%d%d",&n,&l);
  int a[n];
  for(int i=0;i<n;i++){
	a[i]=l+i;
  }
  int min=2000,sum=0,idx;
  for(int i=0;i<n;i++){
	if(abs(a[i])<abs(min)){
      min=a[i];
      idx=i;
    }
  	sum+=a[i];
       }
  //printf("%d %d\n",sum,a[idx]);
printf("%d",sum-a[idx]);
       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(void){
int n,l;
  scanf("%d%d",&n,&l);
  int a[n];
  for(int i=0;i<n;i++){
	a[i]=l+i;
  }
  int min=2000,sum=0,idx;
  for(int i=0;i<n;i++){
	if(abs(a[i])<abs(min)){
      min=a[i];
      idx=i;
    }
  	sum+=a[i];
       }
  //printf("%d %d\n",sum,a[idx]);
printf("%d",sum-a[idx]);
       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:

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 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 n,l;
  scanf("%d%d",&n,&l);
  int a[n];
  for(int i=0;i<n;i++){
	a[i]=l+i;
  }
  int min=2000,sum=0,idx;
  for(int i=0;i<n;i++){
	if(abs(a[i])<abs(min)){
      min=a[i];
      idx=i;
    }
  	sum+=a[i];
       }
  //printf("%d %d\n",sum,a[idx]);
printf("%d",sum-a[idx]);
       return 0;
       }```

Assembly Code:

```assembly
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rsi
	subq	$24, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-32(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %r9
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L22:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L22
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L23
.L4:
	movq	%rsp, %r10
	testl	%r9d, %r9d
	jle	.L12
	leal	-1(%r9), %eax
	movl	-28(%rbp), %ecx
	cmpl	$2, %eax
	jbe	.L13
	movl	%r9d, %edx
	movd	%ecx, %xmm4
	movq	%r10, %rax
	movdqa	.LC0(%rip), %xmm1
	shrl	$2, %edx
	movdqa	.LC2(%rip), %xmm2
	pshufd	$0, %xmm4, %xmm3
	salq	$4, %rdx
	addq	%r10, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm0
	addq	$16, %rax
	paddd	%xmm2, %xmm1
	paddd	%xmm3, %xmm0
	movups	%xmm0, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L7
	movl	%r9d, %eax
	andl	$-4, %eax
	testb	$3, %r9b
	je	.L8
.L6:
	movslq	%eax, %rdx
	leaq	(%r10,%rdx,4), %rsi
	leal	(%rcx,%rax), %edx
	movl	%edx, (%rsi)
	leal	1(%rax), %edx
	cmpl	%edx, %r9d
	jle	.L8
	addl	%ecx, %edx
	addl	$2, %eax
	movl	%edx, 4(%rsi)
	cmpl	%eax, %r9d
	jle	.L8
	addl	%eax, %ecx
	movl	%ecx, 8(%rsi)
.L8:
	movl	%r9d, %r9d
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$2000, %ecx
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%r10,%rsi,4), %eax
	movl	%ecx, %edi
	movl	%eax, %r8d
	negl	%r8d
	cmovs	%eax, %r8d
	negl	%edi
	cmovs	%ecx, %edi
	cmpl	%edi, %r8d
	cmovl	%esi, %ebx
	cmovl	%eax, %ecx
	addq	$1, %rsi
	addl	%eax, %edx
	cmpq	%rsi, %r9
	jne	.L10
.L5:
	movslq	%ebx, %rbx
	xorl	%eax, %eax
	movl	$1, %edi
	subl	(%r10,%rbx,4), %edx
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L24
	movq	-8(%rbp), %rbx
	xorl	%eax, %eax
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L23:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L12:
	xorl	%edx, %edx
	jmp	.L5
.L13:
	xorl	%eax, %eax
	jmp	.L6
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.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:
```

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
.LC1:
	.string	"%d%d"
.LC3:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rsi
	subq	$24, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-32(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %r9
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L22:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L22
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L23
.L4:
	movq	%rsp, %r10
	testl	%r9d, %r9d
	jle	.L12
	leal	-1(%r9), %eax
	movl	-28(%rbp), %ecx
	cmpl	$2, %eax
	jbe	.L13
	movl	%r9d, %edx
	movd	%ecx, %xmm4
	movq	%r10, %rax
	movdqa	.LC0(%rip), %xmm1
	shrl	$2, %edx
	movdqa	.LC2(%rip), %xmm2
	pshufd	$0, %xmm4, %xmm3
	salq	$4, %rdx
	addq	%r10, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm0
	addq	$16, %rax
	paddd	%xmm2, %xmm1
	paddd	%xmm3, %xmm0
	movups	%xmm0, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L7
	movl	%r9d, %eax
	andl	$-4, %eax
	testb	$3, %r9b
	je	.L8
.L6:
	movslq	%eax, %rdx
	leaq	(%r10,%rdx,4), %rsi
	leal	(%rcx,%rax), %edx
	movl	%edx, (%rsi)
	leal	1(%rax), %edx
	cmpl	%edx, %r9d
	jle	.L8
	addl	%ecx, %edx
	addl	$2, %eax
	movl	%edx, 4(%rsi)
	cmpl	%eax, %r9d
	jle	.L8
	addl	%eax, %ecx
	movl	%ecx, 8(%rsi)
.L8:
	movl	%r9d, %r9d
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$2000, %ecx
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%r10,%rsi,4), %eax
	movl	%ecx, %edi
	movl	%eax, %r8d
	negl	%r8d
	cmovs	%eax, %r8d
	negl	%edi
	cmovs	%ecx, %edi
	cmpl	%edi, %r8d
	cmovl	%esi, %ebx
	cmovl	%eax, %ecx
	addq	$1, %rsi
	addl	%eax, %edx
	cmpq	%rsi, %r9
	jne	.L10
.L5:
	movslq	%ebx, %rbx
	xorl	%eax, %eax
	movl	$1, %edi
	subl	(%r10,%rbx,4), %edx
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L24
	movq	-8(%rbp), %rbx
	xorl	%eax, %eax
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L23:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L12:
	xorl	%edx, %edx
	jmp	.L5
.L13:
	xorl	%eax, %eax
	jmp	.L6
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.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:
```