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>

int main(){
	long n, l, i, max = 0, nmax, sum;
	long a[100005];
	scanf("%ld%ld", &n, &l);
	for(i = 0; i < n; i++) scanf("%ld", &a[i]);
	
	for(i = 0; i < n - 1; i++){
		sum = a[i] + a[i+1];
		if(max < sum ){
			max = sum;
			nmax = i;
		}
	}
	if(max < l){
		printf("Impossible\n");
		return 0;
	}
	printf("Possible\n");
	
	for(i = 0; i < nmax; i++)    printf("%ld\n", i + 1);
	for(i = n-2; i >= nmax; i--) printf("%ld\n", i + 1);

	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld%ld"
.LC1:
	.string	"%ld"
.LC2:
	.string	"Impossible"
.LC3:
	.string	"Possible"
.LC4:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798760
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1352, %rsp
	.cfi_def_cfa_offset 800112
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 800056(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	testq	%rax, %rax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	addq	$8, %r12
	cmpq	%rbp, %rax
	jg	.L3
.L2:
	leaq	-1(%rax), %rcx
	testq	%rcx, %rcx
	jle	.L14
	movq	16(%rsp), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	leaq	16(%rsp), %r9
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rax, %r8
	addq	$1, %rax
	movq	%rsi, %rdx
	movq	(%r9,%rax,8), %rsi
	addq	%rsi, %rdx
	cmpq	%rdi, %rdx
	jle	.L5
	movq	%r8, %rbx
	movq	%rdx, %rdi
.L5:
	cmpq	%rcx, %rax
	jne	.L6
.L4:
	cmpq	%rdi, 8(%rsp)
	jg	.L24
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	testq	%rbx, %rbx
	je	.L9
	xorl	%ebp, %ebp
	leaq	.LC4(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$1, %rbp
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	movq	%rbp, %rdx
	call	__printf_chk@PLT
	cmpq	%rbx, %rbp
	jne	.L10
.L9:
	movq	(%rsp), %rbp
	leaq	-2(%rbp), %rax
	cmpq	%rbx, %rax
	jl	.L8
	subq	$1, %rbp
	leaq	.LC4(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%rbp, %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	subq	$1, %rbp
	cmpq	%rbx, %rbp
	jne	.L12
.L8:
	movq	800056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$800072, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L14:
	xorl	%edi, %edi
	jmp	.L4
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld%ld"
.LC1:
	.string	"%ld"
.LC2:
	.string	"Impossible"
.LC3:
	.string	"Possible"
.LC4:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798760
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1352, %rsp
	.cfi_def_cfa_offset 800112
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 800056(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	testq	%rax, %rax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	addq	$8, %r12
	cmpq	%rbp, %rax
	jg	.L3
.L2:
	leaq	-1(%rax), %rcx
	testq	%rcx, %rcx
	jle	.L14
	movq	16(%rsp), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	leaq	16(%rsp), %r9
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rax, %r8
	addq	$1, %rax
	movq	%rsi, %rdx
	movq	(%r9,%rax,8), %rsi
	addq	%rsi, %rdx
	cmpq	%rdi, %rdx
	jle	.L5
	movq	%r8, %rbx
	movq	%rdx, %rdi
.L5:
	cmpq	%rcx, %rax
	jne	.L6
.L4:
	cmpq	%rdi, 8(%rsp)
	jg	.L24
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	testq	%rbx, %rbx
	je	.L9
	xorl	%ebp, %ebp
	leaq	.LC4(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$1, %rbp
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	movq	%rbp, %rdx
	call	__printf_chk@PLT
	cmpq	%rbx, %rbp
	jne	.L10
.L9:
	movq	(%rsp), %rbp
	leaq	-2(%rbp), %rax
	cmpq	%rbx, %rax
	jl	.L8
	subq	$1, %rbp
	leaq	.LC4(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%rbp, %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	subq	$1, %rbp
	cmpq	%rbx, %rbp
	jne	.L12
.L8:
	movq	800056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$800072, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L14:
	xorl	%edi, %edi
	jmp	.L4
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld%ld"
.LC1:
	.string	"%ld"
.LC2:
	.string	"Impossible"
.LC3:
	.string	"Possible"
.LC4:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798760
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1352, %rsp
	.cfi_def_cfa_offset 800112
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 800056(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	testq	%rax, %rax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	addq	$8, %r12
	cmpq	%rbp, %rax
	jg	.L3
.L2:
	leaq	-1(%rax), %rcx
	testq	%rcx, %rcx
	jle	.L14
	movq	16(%rsp), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	leaq	16(%rsp), %r9
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rax, %r8
	addq	$1, %rax
	movq	%rsi, %rdx
	movq	(%r9,%rax,8), %rsi
	addq	%rsi, %rdx
	cmpq	%rdi, %rdx
	jle	.L5
	movq	%r8, %rbx
	movq	%rdx, %rdi
.L5:
	cmpq	%rcx, %rax
	jne	.L6
.L4:
	cmpq	%rdi, 8(%rsp)
	jg	.L24
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	testq	%rbx, %rbx
	je	.L9
	xorl	%ebp, %ebp
	leaq	.LC4(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$1, %rbp
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	movq	%rbp, %rdx
	call	__printf_chk@PLT
	cmpq	%rbx, %rbp
	jne	.L10
.L9:
	movq	(%rsp), %rbp
	leaq	-2(%rbp), %rax
	cmpq	%rbx, %rax
	jl	.L8
	subq	$1, %rbp
	leaq	.LC4(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%rbp, %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	subq	$1, %rbp
	cmpq	%rbx, %rbp
	jne	.L12
.L8:
	movq	800056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$800072, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L14:
	xorl	%edi, %edi
	jmp	.L4
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```
```c
#include<stdio.h>

int main(){
	long n, l, i, max = 0, nmax, sum;
	long a[100005];
	scanf("%ld%ld", &n, &l);
	for(i = 0; i < n; i++) scanf("%ld", &a[i]);
	
	for(i = 0; i < n - 1; i++){
		sum = a[i] + a[i+1];
		if(max < sum ){
			max = sum;
			nmax = i;
		}
	}
	if(max < l){
		printf("Impossible\n");
		return 0;
	}
	printf("Possible\n");
	
	for(i = 0; i < nmax; i++)    printf("%ld\n", i + 1);
	for(i = n-2; i >= nmax; i--) printf("%ld\n", i + 1);

	return 0;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>

int main(){
	long n, l, i, max = 0, nmax, sum;
	long a[100005];
	scanf("%ld%ld", &n, &l);
	for(i = 0; i < n; i++) scanf("%ld", &a[i]);
	
	for(i = 0; i < n - 1; i++){
		sum = a[i] + a[i+1];
		if(max < sum ){
			max = sum;
			nmax = i;
		}
	}
	if(max < l){
		printf("Impossible\n");
		return 0;
	}
	printf("Possible\n");
	
	for(i = 0; i < nmax; i++)    printf("%ld\n", i + 1);
	for(i = n-2; i >= nmax; i--) printf("%ld\n", i + 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:

3 50
30 17 10
 5 50
10 20 30 40 88
 2 21
10 20
 3 50
55 17 10
 5 80
10 20 30 40 50
 5 50
10 20 29 51 104
 5 30
10 20 29 51 104
 3 23
0 17 18
 2 21
10 13
 3 50
34 17 10

Impossible
 Possible
1
2
3
4
 Possible
1
 Possible
2
1
 Possible
1
2
3
4
 Possible
1
2
3
4
 Possible
1
2
3
4
 Possible
1
2
 Possible
1
 Possible
2
1

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>

int main(){
	long n, l, i, max = 0, nmax, sum;
	long a[100005];
	scanf("%ld%ld", &n, &l);
	for(i = 0; i < n; i++) scanf("%ld", &a[i]);
	
	for(i = 0; i < n - 1; i++){
		sum = a[i] + a[i+1];
		if(max < sum ){
			max = sum;
			nmax = i;
		}
	}
	if(max < l){
		printf("Impossible\n");
		return 0;
	}
	printf("Possible\n");
	
	for(i = 0; i < nmax; i++)    printf("%ld\n", i + 1);
	for(i = n-2; i >= nmax; i--) printf("%ld\n", i + 1);

	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld%ld"
.LC1:
	.string	"%ld"
.LC2:
	.string	"Impossible"
.LC3:
	.string	"Possible"
.LC4:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798760
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1352, %rsp
	.cfi_def_cfa_offset 800112
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 800056(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	testq	%rax, %rax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	addq	$8, %r12
	cmpq	%rbp, %rax
	jg	.L3
.L2:
	leaq	-1(%rax), %rcx
	testq	%rcx, %rcx
	jle	.L14
	movq	16(%rsp), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	leaq	16(%rsp), %r9
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rax, %r8
	addq	$1, %rax
	movq	%rsi, %rdx
	movq	(%r9,%rax,8), %rsi
	addq	%rsi, %rdx
	cmpq	%rdi, %rdx
	jle	.L5
	movq	%r8, %rbx
	movq	%rdx, %rdi
.L5:
	cmpq	%rcx, %rax
	jne	.L6
.L4:
	cmpq	%rdi, 8(%rsp)
	jg	.L24
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	testq	%rbx, %rbx
	je	.L9
	xorl	%ebp, %ebp
	leaq	.LC4(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$1, %rbp
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	movq	%rbp, %rdx
	call	__printf_chk@PLT
	cmpq	%rbx, %rbp
	jne	.L10
.L9:
	movq	(%rsp), %rbp
	leaq	-2(%rbp), %rax
	cmpq	%rbx, %rax
	jl	.L8
	subq	$1, %rbp
	leaq	.LC4(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%rbp, %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	subq	$1, %rbp
	cmpq	%rbx, %rbp
	jne	.L12
.L8:
	movq	800056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$800072, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L14:
	xorl	%edi, %edi
	jmp	.L4
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld%ld"
.LC1:
	.string	"%ld"
.LC2:
	.string	"Impossible"
.LC3:
	.string	"Possible"
.LC4:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798760
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1352, %rsp
	.cfi_def_cfa_offset 800112
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 800056(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	testq	%rax, %rax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	addq	$8, %r12
	cmpq	%rbp, %rax
	jg	.L3
.L2:
	leaq	-1(%rax), %rcx
	testq	%rcx, %rcx
	jle	.L14
	movq	16(%rsp), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	leaq	16(%rsp), %r9
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rax, %r8
	addq	$1, %rax
	movq	%rsi, %rdx
	movq	(%r9,%rax,8), %rsi
	addq	%rsi, %rdx
	cmpq	%rdi, %rdx
	jle	.L5
	movq	%r8, %rbx
	movq	%rdx, %rdi
.L5:
	cmpq	%rcx, %rax
	jne	.L6
.L4:
	cmpq	%rdi, 8(%rsp)
	jg	.L24
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	testq	%rbx, %rbx
	je	.L9
	xorl	%ebp, %ebp
	leaq	.LC4(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$1, %rbp
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	movq	%rbp, %rdx
	call	__printf_chk@PLT
	cmpq	%rbx, %rbp
	jne	.L10
.L9:
	movq	(%rsp), %rbp
	leaq	-2(%rbp), %rax
	cmpq	%rbx, %rax
	jl	.L8
	subq	$1, %rbp
	leaq	.LC4(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%rbp, %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	subq	$1, %rbp
	cmpq	%rbx, %rbp
	jne	.L12
.L8:
	movq	800056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$800072, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L14:
	xorl	%edi, %edi
	jmp	.L4
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```