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 n, k, i;
	int p[200000];
	int a[200000];
	scanf("%d %d", &n, &k);
	for(i=0; i<n; i++){
		scanf("%d", p+i);
	}
	a[0]=p[0];
	for(i=1; i<k; i++){
		a[i] = a[i-1]+p[i];
	}
	int max=a[k-1];
	for(i=k; i<n; i++){
		a[i] = a[i-1]+p[i]-p[i-k];
		if(a[i]>max) max=a[i];
	}
	long ans = ((long)max)+k;
	if(ans%2==0) printf("%ld\n", ans/2);
	else printf("%ld.5\n", ans/2);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%ld\n"
.LC3:
	.string	"%ld.5\n"
	.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
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2608, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600036(%rbp), %rdx
	leaq	-1600040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600032(%rbp)
	jmp	.L2
.L3:
	movl	-1600032(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	-1600016(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1600032(%rbp)
.L2:
	movl	-1600040(%rbp), %eax
	cmpl	%eax, -1600032(%rbp)
	jl	.L3
	movl	-1600016(%rbp), %eax
	movl	%eax, -800016(%rbp)
	movl	$1, -1600032(%rbp)
	jmp	.L4
.L5:
	movl	-1600032(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edx
	movl	-1600032(%rbp), %eax
	cltq
	movl	-1600016(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-1600032(%rbp), %eax
	cltq
	movl	%edx, -800016(%rbp,%rax,4)
	addl	$1, -1600032(%rbp)
.L4:
	movl	-1600036(%rbp), %eax
	cmpl	%eax, -1600032(%rbp)
	jl	.L5
	movl	-1600036(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, -1600028(%rbp)
	movl	-1600036(%rbp), %eax
	movl	%eax, -1600032(%rbp)
	jmp	.L6
.L8:
	movl	-1600032(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edx
	movl	-1600032(%rbp), %eax
	cltq
	movl	-1600016(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-1600036(%rbp), %ecx
	movl	-1600032(%rbp), %eax
	subl	%ecx, %eax
	cltq
	movl	-1600016(%rbp,%rax,4), %eax
	subl	%eax, %edx
	movl	-1600032(%rbp), %eax
	cltq
	movl	%edx, -800016(%rbp,%rax,4)
	movl	-1600032(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	cmpl	%eax, -1600028(%rbp)
	jge	.L7
	movl	-1600032(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, -1600028(%rbp)
.L7:
	addl	$1, -1600032(%rbp)
.L6:
	movl	-1600040(%rbp), %eax
	cmpl	%eax, -1600032(%rbp)
	jl	.L8
	movl	-1600028(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1600036(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, -1600024(%rbp)
	movq	-1600024(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	jne	.L9
	movq	-1600024(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L10
.L9:
	movq	-1600024(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%ld\n"
.LC3:
	.string	"%ld.5\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597472
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2592, %rsp
	.cfi_def_cfa_offset 1600064
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1600024(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %esi
	testl	%esi, %esi
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %esi
	addq	$4, %rbp
	cmpl	%ebx, %esi
	jg	.L3
.L2:
	movl	16(%rsp), %edx
	movl	12(%rsp), %r9d
	movl	$1, %eax
	leaq	16(%rsp), %rdi
	leaq	800016(%rsp), %rcx
	movl	%edx, 800016(%rsp)
	movslq	%r9d, %r8
	cmpl	$1, %r9d
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	addl	(%rdi,%rax,4), %edx
	movl	%edx, (%rcx,%rax,4)
	addq	$1, %rax
	cmpq	%rax, %r8
	jne	.L7
.L8:
	leal	-1(%r9), %eax
	cltq
	movl	800016(%rsp,%rax,4), %ecx
	cmpl	%r9d, %esi
	jle	.L6
	subl	%r9d, %esi
	leaq	0(,%r8,4), %rdx
	leaq	16(%rsp), %rdi
	subl	$1, %esi
	movl	800012(%rsp,%rdx), %eax
	leaq	(%rdi,%rdx), %r9
	leaq	4(,%rsi,4), %r10
	leaq	800016(%rsp,%rdx), %rsi
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L9:
	addl	(%r9,%rdx), %eax
	subl	(%rdi,%rdx), %eax
	cmpl	%eax, %ecx
	movl	%eax, (%rsi,%rdx)
	cmovl	%eax, %ecx
	addq	$4, %rdx
	cmpq	%rdx, %r10
	jne	.L9
.L6:
	movslq	%ecx, %rcx
	addq	%r8, %rcx
	movq	%rcx, %rdx
	shrq	$63, %rdx
	addq	%rcx, %rdx
	sarq	%rdx
	andl	$1, %ecx
	jne	.L10
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movq	1600024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$1600032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%ld\n"
.LC3:
	.string	"%ld.5\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597472
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2592, %rsp
	.cfi_def_cfa_offset 1600064
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1600024(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %esi
	testl	%esi, %esi
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %esi
	addq	$4, %rbp
	cmpl	%ebx, %esi
	jg	.L3
.L2:
	movl	16(%rsp), %edx
	movl	12(%rsp), %r9d
	movl	$1, %eax
	leaq	16(%rsp), %rdi
	leaq	800016(%rsp), %rcx
	movl	%edx, 800016(%rsp)
	movslq	%r9d, %r8
	cmpl	$1, %r9d
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	addl	(%rdi,%rax,4), %edx
	movl	%edx, (%rcx,%rax,4)
	addq	$1, %rax
	cmpq	%rax, %r8
	jne	.L7
.L8:
	leal	-1(%r9), %eax
	cltq
	movl	800016(%rsp,%rax,4), %ecx
	cmpl	%r9d, %esi
	jle	.L6
	subl	%r9d, %esi
	leaq	0(,%r8,4), %rdx
	leaq	16(%rsp), %rdi
	subl	$1, %esi
	movl	800012(%rsp,%rdx), %eax
	leaq	(%rdi,%rdx), %r9
	leaq	4(,%rsi,4), %r10
	leaq	800016(%rsp,%rdx), %rsi
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L9:
	addl	(%r9,%rdx), %eax
	subl	(%rdi,%rdx), %eax
	cmpl	%eax, %ecx
	movl	%eax, (%rsi,%rdx)
	cmovl	%eax, %ecx
	addq	$4, %rdx
	cmpq	%rdx, %r10
	jne	.L9
.L6:
	movslq	%ecx, %rcx
	addq	%r8, %rcx
	movq	%rcx, %rdx
	shrq	$63, %rdx
	addq	%rcx, %rdx
	sarq	%rdx
	andl	$1, %ecx
	jne	.L10
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movq	1600024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$1600032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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>

#include <stdlib.h>
 
int main(void){
	int n, k, i;
	int p[200000];
	int a[200000];
	scanf("%d %d", &n, &k);
	for(i=0; i<n; i++){
		scanf("%d", p+i);
	}
	a[0]=p[0];
	for(i=1; i<k; i++){
		a[i] = a[i-1]+p[i];
	}
	int max=a[k-1];
	for(i=k; i<n; i++){
		a[i] = a[i-1]+p[i]-p[i-k];
		if(a[i]>max) max=a[i];
	}
	long ans = ((long)max)+k;
	if(ans%2==0) printf("%ld\n", ans/2);
	else printf("%ld.5\n", ans/2);
}
10 4
17 21 13 12 15 20 10 13 17 11
 3 1
6 6 6 6
 10 4
15 21 13 12 15 20 10 13 17 11
 3 1
11 6 6 6
 1 1
15 6 6 6
 10 4
17 13 13 14 15 20 10 13 17 11
 3 0
6 6 6 6
 10 4
15 21 13 12 15 29 10 13 17 11
 10 4
27 13 13 14 15 20 10 13 17 11
 10 4
15 21 13 12 15 29 10 13 22 11

33.5
 3.5
 32.5
 6
 8
 33
 0
 36.5
 35.5
 39

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 n, k, i;
	int p[200000];
	int a[200000];
	scanf("%d %d", &n, &k);
	for(i=0; i<n; i++){
		scanf("%d", p+i);
	}
	a[0]=p[0];
	for(i=1; i<k; i++){
		a[i] = a[i-1]+p[i];
	}
	int max=a[k-1];
	for(i=k; i<n; i++){
		a[i] = a[i-1]+p[i]-p[i-k];
		if(a[i]>max) max=a[i];
	}
	long ans = ((long)max)+k;
	if(ans%2==0) printf("%ld\n", ans/2);
	else printf("%ld.5\n", ans/2);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%ld\n"
.LC3:
	.string	"%ld.5\n"
	.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
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2608, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600036(%rbp), %rdx
	leaq	-1600040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600032(%rbp)
	jmp	.L2
.L3:
	movl	-1600032(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	-1600016(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1600032(%rbp)
.L2:
	movl	-1600040(%rbp), %eax
	cmpl	%eax, -1600032(%rbp)
	jl	.L3
	movl	-1600016(%rbp), %eax
	movl	%eax, -800016(%rbp)
	movl	$1, -1600032(%rbp)
	jmp	.L4
.L5:
	movl	-1600032(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edx
	movl	-1600032(%rbp), %eax
	cltq
	movl	-1600016(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-1600032(%rbp), %eax
	cltq
	movl	%edx, -800016(%rbp,%rax,4)
	addl	$1, -1600032(%rbp)
.L4:
	movl	-1600036(%rbp), %eax
	cmpl	%eax, -1600032(%rbp)
	jl	.L5
	movl	-1600036(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, -1600028(%rbp)
	movl	-1600036(%rbp), %eax
	movl	%eax, -1600032(%rbp)
	jmp	.L6
.L8:
	movl	-1600032(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edx
	movl	-1600032(%rbp), %eax
	cltq
	movl	-1600016(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-1600036(%rbp), %ecx
	movl	-1600032(%rbp), %eax
	subl	%ecx, %eax
	cltq
	movl	-1600016(%rbp,%rax,4), %eax
	subl	%eax, %edx
	movl	-1600032(%rbp), %eax
	cltq
	movl	%edx, -800016(%rbp,%rax,4)
	movl	-1600032(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	cmpl	%eax, -1600028(%rbp)
	jge	.L7
	movl	-1600032(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, -1600028(%rbp)
.L7:
	addl	$1, -1600032(%rbp)
.L6:
	movl	-1600040(%rbp), %eax
	cmpl	%eax, -1600032(%rbp)
	jl	.L8
	movl	-1600028(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1600036(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, -1600024(%rbp)
	movq	-1600024(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	jne	.L9
	movq	-1600024(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L10
.L9:
	movq	-1600024(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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"
.LC2:
	.string	"%ld\n"
.LC3:
	.string	"%ld.5\n"
	.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
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2608, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600036(%rbp), %rdx
	leaq	-1600040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600032(%rbp)
	jmp	.L2
.L3:
	movl	-1600032(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	-1600016(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1600032(%rbp)
.L2:
	movl	-1600040(%rbp), %eax
	cmpl	%eax, -1600032(%rbp)
	jl	.L3
	movl	-1600016(%rbp), %eax
	movl	%eax, -800016(%rbp)
	movl	$1, -1600032(%rbp)
	jmp	.L4
.L5:
	movl	-1600032(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edx
	movl	-1600032(%rbp), %eax
	cltq
	movl	-1600016(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-1600032(%rbp), %eax
	cltq
	movl	%edx, -800016(%rbp,%rax,4)
	addl	$1, -1600032(%rbp)
.L4:
	movl	-1600036(%rbp), %eax
	cmpl	%eax, -1600032(%rbp)
	jl	.L5
	movl	-1600036(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, -1600028(%rbp)
	movl	-1600036(%rbp), %eax
	movl	%eax, -1600032(%rbp)
	jmp	.L6
.L8:
	movl	-1600032(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edx
	movl	-1600032(%rbp), %eax
	cltq
	movl	-1600016(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-1600036(%rbp), %ecx
	movl	-1600032(%rbp), %eax
	subl	%ecx, %eax
	cltq
	movl	-1600016(%rbp,%rax,4), %eax
	subl	%eax, %edx
	movl	-1600032(%rbp), %eax
	cltq
	movl	%edx, -800016(%rbp,%rax,4)
	movl	-1600032(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	cmpl	%eax, -1600028(%rbp)
	jge	.L7
	movl	-1600032(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, -1600028(%rbp)
.L7:
	addl	$1, -1600032(%rbp)
.L6:
	movl	-1600040(%rbp), %eax
	cmpl	%eax, -1600032(%rbp)
	jl	.L8
	movl	-1600028(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1600036(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, -1600024(%rbp)
	movq	-1600024(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	jne	.L9
	movq	-1600024(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L10
.L9:
	movq	-1600024(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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:
