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>
#define MAX(a,b) (((a)>(b))?(a):(b))
#define FOR(i,a,n) for(int i=a;i<n;i++)
#define ll long long

ll a[100001];
ll b[100001];
 int main(void)
 {
 	int n,k;
 	ll res=0;
 	scanf("%d %d",&n,&k);
 	FOR(i,1,n+1){
 		scanf("%lld",&a[i]);
 		b[i]=MAX(0,a[i]);
 		a[i]+=a[i-1],b[i]+=b[i-1];
 	}
 	FOR(i,k,n+1){
 		ll p=a[i]-a[i-k];
 		ll q=b[n]-b[i]+b[i-k];
 		if(p>0) res=MAX(res,p+q);
 		else res=MAX(res,q);
 	}
 	printf("%lld",res);
 	return 0;
 }
    
    ```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lld"
	.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
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	leaq	8+a(%rip), %rbx
	leaq	8+b(%rip), %r12
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rbx), %rax
	movq	-8(%rbx), %rdx
	movl	(%rsp), %edi
	addq	%rax, %rdx
	movq	%rdx, (%rbx)
	xorl	%edx, %edx
	testq	%rax, %rax
	cmovs	%rdx, %rax
	addl	$1, %r13d
	addq	$8, %rbx
	addq	$8, %r12
	addq	-16(%r12), %rax
	movq	%rax, -8(%r12)
	cmpl	%r13d, %edi
	jge	.L3
.L2:
	movslq	4(%rsp), %r9
	cmpl	%edi, %r9d
	jg	.L9
	leaq	b(%rip), %r10
	movslq	%edi, %rax
	subl	%r9d, %edi
	xorl	%edx, %edx
	salq	$3, %r9
	leaq	a(%rip), %r11
	movq	(%r10,%rax,8), %r12
	xorl	%r8d, %r8d
	leaq	(%r11,%r9), %rbx
	addq	%r10, %r9
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rax, %rdx
.L7:
	movq	(%rbx,%rdx,8), %rsi
	movq	%r12, %rax
	subq	(%r11,%rdx,8), %rsi
	subq	(%r9,%rdx,8), %rax
	addq	(%r10,%rdx,8), %rax
	leaq	(%rax,%rsi), %rcx
	cmpq	%rcx, %r8
	cmovge	%r8, %rcx
	cmpq	%rax, %r8
	cmovge	%r8, %rax
	testq	%rsi, %rsi
	cmovle	%rax, %rcx
	leaq	1(%rdx), %rax
	movq	%rcx, %r8
	cmpq	%rdx, %rdi
	jne	.L10
.L4:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$24, %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
.L9:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 800008
b:
	.zero	800008
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 800008
a:
	.zero	800008
	.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	"%lld"
	.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
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	leaq	8+a(%rip), %rbx
	leaq	8+b(%rip), %r12
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rbx), %rax
	movq	-8(%rbx), %rdx
	movl	(%rsp), %edi
	addq	%rax, %rdx
	movq	%rdx, (%rbx)
	xorl	%edx, %edx
	testq	%rax, %rax
	cmovs	%rdx, %rax
	addl	$1, %r13d
	addq	$8, %rbx
	addq	$8, %r12
	addq	-16(%r12), %rax
	movq	%rax, -8(%r12)
	cmpl	%r13d, %edi
	jge	.L3
.L2:
	movslq	4(%rsp), %r9
	cmpl	%edi, %r9d
	jg	.L9
	leaq	b(%rip), %r10
	movslq	%edi, %rax
	subl	%r9d, %edi
	xorl	%edx, %edx
	salq	$3, %r9
	leaq	a(%rip), %r11
	movq	(%r10,%rax,8), %r12
	xorl	%r8d, %r8d
	leaq	(%r11,%r9), %rbx
	addq	%r10, %r9
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rax, %rdx
.L7:
	movq	(%rbx,%rdx,8), %rsi
	movq	%r12, %rax
	subq	(%r11,%rdx,8), %rsi
	subq	(%r9,%rdx,8), %rax
	addq	(%r10,%rdx,8), %rax
	leaq	(%rax,%rsi), %rcx
	cmpq	%rcx, %r8
	cmovge	%r8, %rcx
	cmpq	%rax, %r8
	cmovge	%r8, %rax
	testq	%rsi, %rsi
	cmovle	%rax, %rcx
	leaq	1(%rdx), %rax
	movq	%rcx, %r8
	cmpq	%rdx, %rdi
	jne	.L10
.L4:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$24, %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
.L9:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 800008
b:
	.zero	800008
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 800008
a:
	.zero	800008
	.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	"%lld"
	.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
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	leaq	8+a(%rip), %rbx
	leaq	8+b(%rip), %r12
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rbx), %rax
	movq	-8(%rbx), %rdx
	movl	(%rsp), %edi
	addq	%rax, %rdx
	movq	%rdx, (%rbx)
	xorl	%edx, %edx
	testq	%rax, %rax
	cmovs	%rdx, %rax
	addl	$1, %r13d
	addq	$8, %rbx
	addq	$8, %r12
	addq	-16(%r12), %rax
	movq	%rax, -8(%r12)
	cmpl	%r13d, %edi
	jge	.L3
.L2:
	movslq	4(%rsp), %r9
	cmpl	%edi, %r9d
	jg	.L9
	leaq	b(%rip), %r10
	movslq	%edi, %rax
	subl	%r9d, %edi
	xorl	%edx, %edx
	salq	$3, %r9
	leaq	a(%rip), %r11
	movq	(%r10,%rax,8), %r12
	xorl	%r8d, %r8d
	leaq	(%r11,%r9), %rbx
	addq	%r10, %r9
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rax, %rdx
.L7:
	movq	(%rbx,%rdx,8), %rsi
	movq	%r12, %rax
	subq	(%r11,%rdx,8), %rsi
	subq	(%r9,%rdx,8), %rax
	addq	(%r10,%rdx,8), %rax
	leaq	(%rax,%rsi), %rcx
	cmpq	%rcx, %r8
	cmovge	%r8, %rcx
	cmpq	%rax, %r8
	cmovge	%r8, %rax
	testq	%rsi, %rsi
	cmovle	%rax, %rcx
	leaq	1(%rdx), %rax
	movq	%rcx, %r8
	cmpq	%rdx, %rdi
	jne	.L10
.L4:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$24, %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
.L9:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 800008
b:
	.zero	800008
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 800008
a:
	.zero	800008
	.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>
#define MAX(a,b) (((a)>(b))?(a):(b))
#define FOR(i,a,n) for(int i=a;i<n;i++)
#define ll long long

ll a[100001];
ll b[100001];
 int main(void)
 {
 	int n,k;
 	ll res=0;
 	scanf("%d %d",&n,&k);
 	FOR(i,1,n+1){
 		scanf("%lld",&a[i]);
 		b[i]=MAX(0,a[i]);
 		a[i]+=a[i-1],b[i]+=b[i-1];
 	}
 	FOR(i,k,n+1){
 		ll p=a[i]-a[i-k];
 		ll q=b[n]-b[i]+b[i-k];
 		if(p>0) res=MAX(res,p+q);
 		else res=MAX(res,q);
 	}
 	printf("%lld",res);
 	return 0;
 }
    
    ```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#define MAX(a,b) (((a)>(b))?(a):(b))
#define FOR(i,a,n) for(int i=a;i<n;i++)
#define ll long long

ll a[100001];
ll b[100001];
 int main(void)
 {
 	int n,k;
 	ll res=0;
 	scanf("%d %d",&n,&k);
 	FOR(i,1,n+1){
 		scanf("%lld",&a[i]);
 		b[i]=MAX(0,a[i]);
 		a[i]+=a[i-1],b[i]+=b[i-1];
 	}
 	FOR(i,k,n+1){
 		ll p=a[i]-a[i-k];
 		ll q=b[n]-b[i]+b[i-k];
 		if(p>0) res=MAX(res,p+q);
 		else res=MAX(res,q);
 	}
 	printf("%lld",res);
 	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:

1 1
-16
 5 3
-10 10 -18 10 -10
 4 2
7 -10 -10 10
 4 2
7 -6 -10 12
 4 2
7 -6 -10 20
 4 2
9 -1 -10 20
 4 2
13 -1 -10 20
 4 2
3 -1 -10 20
 4 3
3 -1 -10 20
 4 3
3 -1 -1 20

0 10 17 19 27 29 33 23 20 21
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>
#define MAX(a,b) (((a)>(b))?(a):(b))
#define FOR(i,a,n) for(int i=a;i<n;i++)
#define ll long long

ll a[100001];
ll b[100001];
 int main(void)
 {
 	int n,k;
 	ll res=0;
 	scanf("%d %d",&n,&k);
 	FOR(i,1,n+1){
 		scanf("%lld",&a[i]);
 		b[i]=MAX(0,a[i]);
 		a[i]+=a[i-1],b[i]+=b[i-1];
 	}
 	FOR(i,k,n+1){
 		ll p=a[i]-a[i-k];
 		ll q=b[n]-b[i]+b[i-k];
 		if(p>0) res=MAX(res,p+q);
 		else res=MAX(res,q);
 	}
 	printf("%lld",res);
 	return 0;
 }
    
    ```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lld"
	.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
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	leaq	8+a(%rip), %rbx
	leaq	8+b(%rip), %r12
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rbx), %rax
	movq	-8(%rbx), %rdx
	movl	(%rsp), %edi
	addq	%rax, %rdx
	movq	%rdx, (%rbx)
	xorl	%edx, %edx
	testq	%rax, %rax
	cmovs	%rdx, %rax
	addl	$1, %r13d
	addq	$8, %rbx
	addq	$8, %r12
	addq	-16(%r12), %rax
	movq	%rax, -8(%r12)
	cmpl	%r13d, %edi
	jge	.L3
.L2:
	movslq	4(%rsp), %r9
	cmpl	%edi, %r9d
	jg	.L9
	leaq	b(%rip), %r10
	movslq	%edi, %rax
	subl	%r9d, %edi
	xorl	%edx, %edx
	salq	$3, %r9
	leaq	a(%rip), %r11
	movq	(%r10,%rax,8), %r12
	xorl	%r8d, %r8d
	leaq	(%r11,%r9), %rbx
	addq	%r10, %r9
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rax, %rdx
.L7:
	movq	(%rbx,%rdx,8), %rsi
	movq	%r12, %rax
	subq	(%r11,%rdx,8), %rsi
	subq	(%r9,%rdx,8), %rax
	addq	(%r10,%rdx,8), %rax
	leaq	(%rax,%rsi), %rcx
	cmpq	%rcx, %r8
	cmovge	%r8, %rcx
	cmpq	%rax, %r8
	cmovge	%r8, %rax
	testq	%rsi, %rsi
	cmovle	%rax, %rcx
	leaq	1(%rdx), %rax
	movq	%rcx, %r8
	cmpq	%rdx, %rdi
	jne	.L10
.L4:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$24, %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
.L9:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 800008
b:
	.zero	800008
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 800008
a:
	.zero	800008
	.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	"%lld"
	.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
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	leaq	8+a(%rip), %rbx
	leaq	8+b(%rip), %r12
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rbx), %rax
	movq	-8(%rbx), %rdx
	movl	(%rsp), %edi
	addq	%rax, %rdx
	movq	%rdx, (%rbx)
	xorl	%edx, %edx
	testq	%rax, %rax
	cmovs	%rdx, %rax
	addl	$1, %r13d
	addq	$8, %rbx
	addq	$8, %r12
	addq	-16(%r12), %rax
	movq	%rax, -8(%r12)
	cmpl	%r13d, %edi
	jge	.L3
.L2:
	movslq	4(%rsp), %r9
	cmpl	%edi, %r9d
	jg	.L9
	leaq	b(%rip), %r10
	movslq	%edi, %rax
	subl	%r9d, %edi
	xorl	%edx, %edx
	salq	$3, %r9
	leaq	a(%rip), %r11
	movq	(%r10,%rax,8), %r12
	xorl	%r8d, %r8d
	leaq	(%r11,%r9), %rbx
	addq	%r10, %r9
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rax, %rdx
.L7:
	movq	(%rbx,%rdx,8), %rsi
	movq	%r12, %rax
	subq	(%r11,%rdx,8), %rsi
	subq	(%r9,%rdx,8), %rax
	addq	(%r10,%rdx,8), %rax
	leaq	(%rax,%rsi), %rcx
	cmpq	%rcx, %r8
	cmovge	%r8, %rcx
	cmpq	%rax, %r8
	cmovge	%r8, %rax
	testq	%rsi, %rsi
	cmovle	%rax, %rcx
	leaq	1(%rdx), %rax
	movq	%rcx, %r8
	cmpq	%rdx, %rdi
	jne	.L10
.L4:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$24, %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
.L9:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 800008
b:
	.zero	800008
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 800008
a:
	.zero	800008
	.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:
```