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

```c
/*
	submission # - User: herp_sy
	https://atcoder.jp/contests/
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>

#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
#define TBMod 1000000007

int main(int argc, char const *argv[])
{
	int n,l;
	int a[203];
	int sum = 0;
	scanf("%d%d",&n,&l);
	for (int i = 1; i <= n; ++i){
		a[i] = l + i - 1;
		sum += a[i];
	}
	for (int i = 1; i <= n; ++i)
	{
		if(a[i] == 0){
			printf("%d\n", sum);
			return 0;
		}
	}
	if(sum < 0){
		printf("%d\n", sum - a[n]);
	}
	else{
		printf("%d\n", sum - a[1]);
	}
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$856, %rsp
	.cfi_def_cfa_offset 864
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %esi
	testl	%esi, %esi
	jle	.L10
	leal	-1(%rsi), %eax
	movl	12(%rsp), %edi
	cmpl	$2, %eax
	jbe	.L11
	movd	%edi, %xmm6
	leaq	20(%rsp), %rax
	pxor	%xmm1, %xmm1
	movl	%esi, %edx
	shrl	$2, %edx
	pshufd	$0, %xmm6, %xmm5
	pcmpeqd	%xmm3, %xmm3
	movdqa	.LC0(%rip), %xmm2
	subl	$1, %edx
	movdqa	.LC2(%rip), %xmm4
	salq	$4, %rdx
	leaq	36(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movdqa	%xmm2, %xmm0
	addq	$16, %rax
	paddd	%xmm4, %xmm2
	paddd	%xmm5, %xmm0
	paddd	%xmm3, %xmm0
	movups	%xmm0, -16(%rax)
	paddd	%xmm0, %xmm1
	cmpq	%rdx, %rax
	jne	.L4
	movdqa	%xmm1, %xmm0
	movl	%esi, %eax
	psrldq	$8, %xmm0
	andl	$-4, %eax
	paddd	%xmm0, %xmm1
	leal	1(%rax), %ecx
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpl	%eax, %esi
	je	.L5
.L3:
	leal	-1(%rdi,%rcx), %eax
	movslq	%ecx, %r8
	movl	%eax, 16(%rsp,%r8,4)
	addl	%eax, %edx
	leal	1(%rcx), %eax
	cmpl	%eax, %esi
	jl	.L5
	leal	-1(%rdi,%rax), %r8d
	addl	$2, %ecx
	cltq
	movl	%r8d, 16(%rsp,%rax,4)
	addl	%r8d, %edx
	cmpl	%ecx, %esi
	jl	.L5
	leal	-1(%rdi,%rcx), %eax
	movslq	%ecx, %rcx
	movl	%eax, 16(%rsp,%rcx,4)
	addl	%eax, %edx
.L5:
	movl	$1, %eax
	leaq	16(%rsp), %rcx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rax
	cmpl	%eax, %esi
	jl	.L17
.L8:
	movl	(%rcx,%rax,4), %edi
	testl	%edi, %edi
	jne	.L6
.L15:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L7:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	xorl	%eax, %eax
	addq	$856, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	testl	%edx, %edx
	js	.L19
.L2:
	subl	20(%rsp), %edx
	jmp	.L15
.L19:
	movslq	%esi, %rax
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	subl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L10:
	xorl	%edx, %edx
	jmp	.L2
.L11:
	movl	$1, %ecx
	xorl	%edx, %edx
	jmp	.L3
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```

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\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$856, %rsp
	.cfi_def_cfa_offset 864
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %esi
	testl	%esi, %esi
	jle	.L10
	leal	-1(%rsi), %eax
	movl	12(%rsp), %edi
	cmpl	$2, %eax
	jbe	.L11
	movd	%edi, %xmm6
	leaq	20(%rsp), %rax
	pxor	%xmm1, %xmm1
	movl	%esi, %edx
	shrl	$2, %edx
	pshufd	$0, %xmm6, %xmm5
	pcmpeqd	%xmm3, %xmm3
	movdqa	.LC0(%rip), %xmm2
	subl	$1, %edx
	movdqa	.LC2(%rip), %xmm4
	salq	$4, %rdx
	leaq	36(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movdqa	%xmm2, %xmm0
	addq	$16, %rax
	paddd	%xmm4, %xmm2
	paddd	%xmm5, %xmm0
	paddd	%xmm3, %xmm0
	movups	%xmm0, -16(%rax)
	paddd	%xmm0, %xmm1
	cmpq	%rdx, %rax
	jne	.L4
	movdqa	%xmm1, %xmm0
	movl	%esi, %eax
	psrldq	$8, %xmm0
	andl	$-4, %eax
	paddd	%xmm0, %xmm1
	leal	1(%rax), %ecx
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpl	%eax, %esi
	je	.L5
.L3:
	leal	-1(%rdi,%rcx), %eax
	movslq	%ecx, %r8
	movl	%eax, 16(%rsp,%r8,4)
	addl	%eax, %edx
	leal	1(%rcx), %eax
	cmpl	%eax, %esi
	jl	.L5
	leal	-1(%rdi,%rax), %r8d
	addl	$2, %ecx
	cltq
	movl	%r8d, 16(%rsp,%rax,4)
	addl	%r8d, %edx
	cmpl	%ecx, %esi
	jl	.L5
	leal	-1(%rdi,%rcx), %eax
	movslq	%ecx, %rcx
	movl	%eax, 16(%rsp,%rcx,4)
	addl	%eax, %edx
.L5:
	movl	$1, %eax
	leaq	16(%rsp), %rcx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rax
	cmpl	%eax, %esi
	jl	.L17
.L8:
	movl	(%rcx,%rax,4), %edi
	testl	%edi, %edi
	jne	.L6
.L15:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L7:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	xorl	%eax, %eax
	addq	$856, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	testl	%edx, %edx
	js	.L19
.L2:
	subl	20(%rsp), %edx
	jmp	.L15
.L19:
	movslq	%esi, %rax
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	subl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L10:
	xorl	%edx, %edx
	jmp	.L2
.L11:
	movl	$1, %ecx
	xorl	%edx, %edx
	jmp	.L3
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$856, %rsp
	.cfi_def_cfa_offset 864
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %esi
	testl	%esi, %esi
	jle	.L10
	leal	-1(%rsi), %eax
	movl	12(%rsp), %edi
	cmpl	$2, %eax
	jbe	.L11
	movd	%edi, %xmm6
	leaq	20(%rsp), %rax
	pxor	%xmm1, %xmm1
	movl	%esi, %edx
	shrl	$2, %edx
	pshufd	$0, %xmm6, %xmm5
	pcmpeqd	%xmm3, %xmm3
	movdqa	.LC0(%rip), %xmm2
	subl	$1, %edx
	movdqa	.LC2(%rip), %xmm4
	salq	$4, %rdx
	leaq	36(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movdqa	%xmm2, %xmm0
	addq	$16, %rax
	paddd	%xmm4, %xmm2
	paddd	%xmm5, %xmm0
	paddd	%xmm3, %xmm0
	movups	%xmm0, -16(%rax)
	paddd	%xmm0, %xmm1
	cmpq	%rdx, %rax
	jne	.L4
	movdqa	%xmm1, %xmm0
	movl	%esi, %eax
	psrldq	$8, %xmm0
	andl	$-4, %eax
	paddd	%xmm0, %xmm1
	leal	1(%rax), %ecx
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpl	%eax, %esi
	je	.L5
.L3:
	leal	-1(%rdi,%rcx), %eax
	movslq	%ecx, %r8
	movl	%eax, 16(%rsp,%r8,4)
	addl	%eax, %edx
	leal	1(%rcx), %eax
	cmpl	%eax, %esi
	jl	.L5
	leal	-1(%rdi,%rax), %r8d
	addl	$2, %ecx
	cltq
	movl	%r8d, 16(%rsp,%rax,4)
	addl	%r8d, %edx
	cmpl	%ecx, %esi
	jl	.L5
	leal	-1(%rdi,%rcx), %eax
	movslq	%ecx, %rcx
	movl	%eax, 16(%rsp,%rcx,4)
	addl	%eax, %edx
.L5:
	movl	$1, %eax
	leaq	16(%rsp), %rcx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rax
	cmpl	%eax, %esi
	jl	.L17
.L8:
	movl	(%rcx,%rax,4), %edi
	testl	%edi, %edi
	jne	.L6
.L15:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L7:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	xorl	%eax, %eax
	addq	$856, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	testl	%edx, %edx
	js	.L19
.L2:
	subl	20(%rsp), %edx
	jmp	.L15
.L19:
	movslq	%esi, %rax
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	subl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L10:
	xorl	%edx, %edx
	jmp	.L2
.L11:
	movl	$1, %ecx
	xorl	%edx, %edx
	jmp	.L3
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```
```c
/*
	submission # - User: herp_sy
	https://atcoder.jp/contests/
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>

#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
#define TBMod 1000000007

int main(int argc, char const *argv[])
{
	int n,l;
	int a[203];
	int sum = 0;
	scanf("%d%d",&n,&l);
	for (int i = 1; i <= n; ++i){
		a[i] = l + i - 1;
		sum += a[i];
	}
	for (int i = 1; i <= n; ++i)
	{
		if(a[i] == 0){
			printf("%d\n", sum);
			return 0;
		}
	}
	if(sum < 0){
		printf("%d\n", sum - a[n]);
	}
	else{
		printf("%d\n", sum - a[1]);
	}
	return 0;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
/*
	submission # - User: herp_sy
	https://atcoder.jp/contests/
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>

#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
#define TBMod 1000000007

int main(int argc, char const *argv[])
{
	int n,l;
	int a[203];
	int sum = 0;
	scanf("%d%d",&n,&l);
	for (int i = 1; i <= n; ++i){
		a[i] = l + i - 1;
		sum += a[i];
	}
	for (int i = 1; i <= n; ++i)
	{
		if(a[i] == 0){
			printf("%d\n", sum);
			return 0;
		}
	}
	if(sum < 0){
		printf("%d\n", sum - a[n]);
	}
	else{
		printf("%d\n", sum - a[1]);
	}
	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
/*
	submission # - User: herp_sy
	https://atcoder.jp/contests/
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>

#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
#define TBMod 1000000007

int main(int argc, char const *argv[])
{
	int n,l;
	int a[203];
	int sum = 0;
	scanf("%d%d",&n,&l);
	for (int i = 1; i <= n; ++i){
		a[i] = l + i - 1;
		sum += a[i];
	}
	for (int i = 1; i <= n; ++i)
	{
		if(a[i] == 0){
			printf("%d\n", sum);
			return 0;
		}
	}
	if(sum < 0){
		printf("%d\n", sum - a[n]);
	}
	else{
		printf("%d\n", sum - a[1]);
	}
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$856, %rsp
	.cfi_def_cfa_offset 864
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %esi
	testl	%esi, %esi
	jle	.L10
	leal	-1(%rsi), %eax
	movl	12(%rsp), %edi
	cmpl	$2, %eax
	jbe	.L11
	movd	%edi, %xmm6
	leaq	20(%rsp), %rax
	pxor	%xmm1, %xmm1
	movl	%esi, %edx
	shrl	$2, %edx
	pshufd	$0, %xmm6, %xmm5
	pcmpeqd	%xmm3, %xmm3
	movdqa	.LC0(%rip), %xmm2
	subl	$1, %edx
	movdqa	.LC2(%rip), %xmm4
	salq	$4, %rdx
	leaq	36(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movdqa	%xmm2, %xmm0
	addq	$16, %rax
	paddd	%xmm4, %xmm2
	paddd	%xmm5, %xmm0
	paddd	%xmm3, %xmm0
	movups	%xmm0, -16(%rax)
	paddd	%xmm0, %xmm1
	cmpq	%rdx, %rax
	jne	.L4
	movdqa	%xmm1, %xmm0
	movl	%esi, %eax
	psrldq	$8, %xmm0
	andl	$-4, %eax
	paddd	%xmm0, %xmm1
	leal	1(%rax), %ecx
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpl	%eax, %esi
	je	.L5
.L3:
	leal	-1(%rdi,%rcx), %eax
	movslq	%ecx, %r8
	movl	%eax, 16(%rsp,%r8,4)
	addl	%eax, %edx
	leal	1(%rcx), %eax
	cmpl	%eax, %esi
	jl	.L5
	leal	-1(%rdi,%rax), %r8d
	addl	$2, %ecx
	cltq
	movl	%r8d, 16(%rsp,%rax,4)
	addl	%r8d, %edx
	cmpl	%ecx, %esi
	jl	.L5
	leal	-1(%rdi,%rcx), %eax
	movslq	%ecx, %rcx
	movl	%eax, 16(%rsp,%rcx,4)
	addl	%eax, %edx
.L5:
	movl	$1, %eax
	leaq	16(%rsp), %rcx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rax
	cmpl	%eax, %esi
	jl	.L17
.L8:
	movl	(%rcx,%rax,4), %edi
	testl	%edi, %edi
	jne	.L6
.L15:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L7:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	xorl	%eax, %eax
	addq	$856, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	testl	%edx, %edx
	js	.L19
.L2:
	subl	20(%rsp), %edx
	jmp	.L15
.L19:
	movslq	%esi, %rax
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	subl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L10:
	xorl	%edx, %edx
	jmp	.L2
.L11:
	movl	$1, %ecx
	xorl	%edx, %edx
	jmp	.L3
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```

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\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$856, %rsp
	.cfi_def_cfa_offset 864
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %esi
	testl	%esi, %esi
	jle	.L10
	leal	-1(%rsi), %eax
	movl	12(%rsp), %edi
	cmpl	$2, %eax
	jbe	.L11
	movd	%edi, %xmm6
	leaq	20(%rsp), %rax
	pxor	%xmm1, %xmm1
	movl	%esi, %edx
	shrl	$2, %edx
	pshufd	$0, %xmm6, %xmm5
	pcmpeqd	%xmm3, %xmm3
	movdqa	.LC0(%rip), %xmm2
	subl	$1, %edx
	movdqa	.LC2(%rip), %xmm4
	salq	$4, %rdx
	leaq	36(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movdqa	%xmm2, %xmm0
	addq	$16, %rax
	paddd	%xmm4, %xmm2
	paddd	%xmm5, %xmm0
	paddd	%xmm3, %xmm0
	movups	%xmm0, -16(%rax)
	paddd	%xmm0, %xmm1
	cmpq	%rdx, %rax
	jne	.L4
	movdqa	%xmm1, %xmm0
	movl	%esi, %eax
	psrldq	$8, %xmm0
	andl	$-4, %eax
	paddd	%xmm0, %xmm1
	leal	1(%rax), %ecx
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpl	%eax, %esi
	je	.L5
.L3:
	leal	-1(%rdi,%rcx), %eax
	movslq	%ecx, %r8
	movl	%eax, 16(%rsp,%r8,4)
	addl	%eax, %edx
	leal	1(%rcx), %eax
	cmpl	%eax, %esi
	jl	.L5
	leal	-1(%rdi,%rax), %r8d
	addl	$2, %ecx
	cltq
	movl	%r8d, 16(%rsp,%rax,4)
	addl	%r8d, %edx
	cmpl	%ecx, %esi
	jl	.L5
	leal	-1(%rdi,%rcx), %eax
	movslq	%ecx, %rcx
	movl	%eax, 16(%rsp,%rcx,4)
	addl	%eax, %edx
.L5:
	movl	$1, %eax
	leaq	16(%rsp), %rcx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rax
	cmpl	%eax, %esi
	jl	.L17
.L8:
	movl	(%rcx,%rax,4), %edi
	testl	%edi, %edi
	jne	.L6
.L15:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L7:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	xorl	%eax, %eax
	addq	$856, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	testl	%edx, %edx
	js	.L19
.L2:
	subl	20(%rsp), %edx
	jmp	.L15
.L19:
	movslq	%esi, %rax
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	subl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L10:
	xorl	%edx, %edx
	jmp	.L2
.L11:
	movl	$1, %ecx
	xorl	%edx, %edx
	jmp	.L3
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```