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>
#define rep(i,n) for((i)=0;(i)<(int)(n);(i)++)

int main(void){
  int i,n,k,a[100001],sum,ans;
  
  while(scanf("%d %d",&n,&k),n,k){
    ans=sum=0;
    rep(i,n)scanf("%d",&a[i]);
    rep(i,k)sum+=a[i];
    for(i=0;k<n;i++,k++){
      sum+=a[k]-a[i];
      ans=(ans>sum)?ans:sum;
    }
    printf("%d\n",ans);
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2736, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L9:
	movl	$0, -400024(%rbp)
	movl	-400024(%rbp), %eax
	movl	%eax, -400020(%rbp)
	movl	$0, -400028(%rbp)
	jmp	.L3
.L4:
	leaq	-400016(%rbp), %rdx
	movl	-400028(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400028(%rbp)
.L3:
	movl	-400036(%rbp), %eax
	cmpl	%eax, -400028(%rbp)
	jl	.L4
	movl	$0, -400028(%rbp)
	jmp	.L5
.L6:
	movl	-400028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	addl	%eax, -400024(%rbp)
	addl	$1, -400028(%rbp)
.L5:
	movl	-400032(%rbp), %eax
	cmpl	%eax, -400028(%rbp)
	jl	.L6
	movl	$0, -400028(%rbp)
	jmp	.L7
.L8:
	movl	-400032(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-400028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	%eax, -400024(%rbp)
	movl	-400020(%rbp), %edx
	movl	-400024(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -400020(%rbp)
	addl	$1, -400028(%rbp)
	movl	-400032(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -400032(%rbp)
.L7:
	movl	-400032(%rbp), %edx
	movl	-400036(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L8
	movl	-400020(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-400032(%rbp), %rdx
	leaq	-400036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400032(%rbp), %eax
	testl	%eax, %eax
	jne	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2744, %rsp
	.cfi_def_cfa_offset 400112
	leaq	.LC2(%rip), %rbp
	leaq	.LC0(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 400040(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rax
	leaq	28(%rsp), %r13
	movq	%rax, 8(%rsp)
	leaq	24(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbp, %rdi
	movq	%r13, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edi
	testl	%edi, %edi
	je	.L11
	movl	24(%rsp), %esi
	leaq	32(%rsp), %r14
	xorl	%r15d, %r15d
	testl	%esi, %esi
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %esi
	addq	$4, %r14
	cmpl	%r15d, %esi
	jg	.L3
	movl	28(%rsp), %edi
.L13:
	testl	%edi, %edi
	jle	.L15
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L16
	movl	%edi, %edx
	leaq	32(%rsp), %rax
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	addq	8(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L6:
	paddd	(%rax), %xmm0
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L6
	movdqa	%xmm0, %xmm1
	movl	%edi, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	testb	$3, %dil
	je	.L4
.L5:
	movslq	%edx, %rcx
	addl	32(%rsp,%rcx,4), %eax
	leal	1(%rdx), %ecx
	cmpl	%edi, %ecx
	jge	.L4
	movslq	%ecx, %rcx
	addl	$2, %edx
	addl	32(%rsp,%rcx,4), %eax
	cmpl	%edx, %edi
	jle	.L4
	movslq	%edx, %rdx
	addl	32(%rsp,%rdx,4), %eax
.L4:
	cmpl	%edi, %esi
	jle	.L17
.L25:
	leal	-1(%rsi), %r8d
	movslq	%edi, %r9
	subl	%edi, %r8d
	leaq	0(,%r9,4), %rcx
	leaq	(%r8,%r9), %rdi
	leaq	32(%rsp,%rcx), %rdx
	xorl	%r8d, %r8d
	negq	%rcx
	leaq	36(%rsp,%rdi,4), %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	addl	(%rdx), %eax
	subl	(%rdx,%rcx), %eax
	cmpl	%eax, %r8d
	cmovl	%eax, %r8d
	addq	$4, %rdx
	cmpq	%rdi, %rdx
	jne	.L10
	movl	%esi, 28(%rsp)
.L9:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	movq	400040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$400056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	xorl	%eax, %eax
	cmpl	%edi, %esi
	jg	.L25
	.p2align 4,,10
	.p2align 3
.L17:
	xorl	%r8d, %r8d
	jmp	.L9
.L16:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L5
.L24:
	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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2744, %rsp
	.cfi_def_cfa_offset 400112
	leaq	.LC2(%rip), %rbp
	leaq	.LC0(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 400040(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rax
	leaq	28(%rsp), %r13
	movq	%rax, 8(%rsp)
	leaq	24(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbp, %rdi
	movq	%r13, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edi
	testl	%edi, %edi
	je	.L11
	movl	24(%rsp), %esi
	leaq	32(%rsp), %r14
	xorl	%r15d, %r15d
	testl	%esi, %esi
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %esi
	addq	$4, %r14
	cmpl	%r15d, %esi
	jg	.L3
	movl	28(%rsp), %edi
.L13:
	testl	%edi, %edi
	jle	.L15
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L16
	movl	%edi, %edx
	leaq	32(%rsp), %rax
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	addq	8(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L6:
	paddd	(%rax), %xmm0
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L6
	movdqa	%xmm0, %xmm1
	movl	%edi, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	testb	$3, %dil
	je	.L4
.L5:
	movslq	%edx, %rcx
	addl	32(%rsp,%rcx,4), %eax
	leal	1(%rdx), %ecx
	cmpl	%edi, %ecx
	jge	.L4
	movslq	%ecx, %rcx
	addl	$2, %edx
	addl	32(%rsp,%rcx,4), %eax
	cmpl	%edx, %edi
	jle	.L4
	movslq	%edx, %rdx
	addl	32(%rsp,%rdx,4), %eax
.L4:
	cmpl	%edi, %esi
	jle	.L17
.L25:
	leal	-1(%rsi), %r8d
	movslq	%edi, %r9
	subl	%edi, %r8d
	leaq	0(,%r9,4), %rcx
	leaq	(%r8,%r9), %rdi
	leaq	32(%rsp,%rcx), %rdx
	xorl	%r8d, %r8d
	negq	%rcx
	leaq	36(%rsp,%rdi,4), %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	addl	(%rdx), %eax
	subl	(%rdx,%rcx), %eax
	cmpl	%eax, %r8d
	cmovl	%eax, %r8d
	addq	$4, %rdx
	cmpq	%rdi, %rdx
	jne	.L10
	movl	%esi, 28(%rsp)
.L9:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	movq	400040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$400056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	xorl	%eax, %eax
	cmpl	%edi, %esi
	jg	.L25
	.p2align 4,,10
	.p2align 3
.L17:
	xorl	%r8d, %r8d
	jmp	.L9
.L16:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L5
.L24:
	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:

#include<stdio.h>
#define rep(i,n) for((i)=0;(i)<(int)(n);(i)++)

int main(void){
  int i,n,k,a[100001],sum,ans;
  
  while(scanf("%d %d",&n,&k),n,k){
    ans=sum=0;
    rep(i,n)scanf("%d",&a[i]);
    rep(i,k)sum+=a[i];
    for(i=0;k<n;i++,k++){
      sum+=a[k]-a[i];
      ans=(ans>sum)?ans:sum;
    }
    printf("%d\n",ans);
  }
  return 0;
}
5 3
2
5
-4
8
3
0 0
 5 3
2
5
-4
12
3
0 0
 5 3
2
5
-4
14
3
0 0
 5 3
2
9
-4
14
1
0 0
 5 3
1
9
-4
2
1
0 0
 5 3
2
8
-4
12
3
0 0
 5 1
2
9
-4
14
1
0 0
 5 3
1
9
-4
13
1
0 0
 5 3
1
2
-4
13
1
0 0
 5 3
2
5
-4
5
3
0 0

9
 13
 15
 19
 7
 16
 14
 18
 11
 6

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>
#define rep(i,n) for((i)=0;(i)<(int)(n);(i)++)

int main(void){
  int i,n,k,a[100001],sum,ans;
  
  while(scanf("%d %d",&n,&k),n,k){
    ans=sum=0;
    rep(i,n)scanf("%d",&a[i]);
    rep(i,k)sum+=a[i];
    for(i=0;k<n;i++,k++){
      sum+=a[k]-a[i];
      ans=(ans>sum)?ans:sum;
    }
    printf("%d\n",ans);
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2736, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L9:
	movl	$0, -400024(%rbp)
	movl	-400024(%rbp), %eax
	movl	%eax, -400020(%rbp)
	movl	$0, -400028(%rbp)
	jmp	.L3
.L4:
	leaq	-400016(%rbp), %rdx
	movl	-400028(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400028(%rbp)
.L3:
	movl	-400036(%rbp), %eax
	cmpl	%eax, -400028(%rbp)
	jl	.L4
	movl	$0, -400028(%rbp)
	jmp	.L5
.L6:
	movl	-400028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	addl	%eax, -400024(%rbp)
	addl	$1, -400028(%rbp)
.L5:
	movl	-400032(%rbp), %eax
	cmpl	%eax, -400028(%rbp)
	jl	.L6
	movl	$0, -400028(%rbp)
	jmp	.L7
.L8:
	movl	-400032(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-400028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	%eax, -400024(%rbp)
	movl	-400020(%rbp), %edx
	movl	-400024(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -400020(%rbp)
	addl	$1, -400028(%rbp)
	movl	-400032(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -400032(%rbp)
.L7:
	movl	-400032(%rbp), %edx
	movl	-400036(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L8
	movl	-400020(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-400032(%rbp), %rdx
	leaq	-400036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400032(%rbp), %eax
	testl	%eax, %eax
	jne	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2736, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L9:
	movl	$0, -400024(%rbp)
	movl	-400024(%rbp), %eax
	movl	%eax, -400020(%rbp)
	movl	$0, -400028(%rbp)
	jmp	.L3
.L4:
	leaq	-400016(%rbp), %rdx
	movl	-400028(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400028(%rbp)
.L3:
	movl	-400036(%rbp), %eax
	cmpl	%eax, -400028(%rbp)
	jl	.L4
	movl	$0, -400028(%rbp)
	jmp	.L5
.L6:
	movl	-400028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	addl	%eax, -400024(%rbp)
	addl	$1, -400028(%rbp)
.L5:
	movl	-400032(%rbp), %eax
	cmpl	%eax, -400028(%rbp)
	jl	.L6
	movl	$0, -400028(%rbp)
	jmp	.L7
.L8:
	movl	-400032(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-400028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	%eax, -400024(%rbp)
	movl	-400020(%rbp), %edx
	movl	-400024(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -400020(%rbp)
	addl	$1, -400028(%rbp)
	movl	-400032(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -400032(%rbp)
.L7:
	movl	-400032(%rbp), %edx
	movl	-400036(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L8
	movl	-400020(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-400032(%rbp), %rdx
	leaq	-400036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400032(%rbp), %eax
	testl	%eax, %eax
	jne	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
