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, 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);
}```

Assembly Code:

```assembly
	.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:
```

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	"%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
```assembly
	.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:
```
```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);
}```
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, 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);
}```

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:

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 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);
}```

Assembly Code:

```assembly
	.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:
```

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	"%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:
```