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>

typedef long long int int64;

#define MIN(a,b) ((a)<(b)?(a):(b))

#define POS(i,j)  ((i)*(400+1)+(j))

int a[100];

int64 calc(int x,int y,int64 *dp){
  if(y-x<=1) return 0;
  if(dp[POS(x,y)]>0) return dp[POS(x,y)];
  int64 local=1000000000000000000LL;
  int i;
  for(i=x+1;i<y;i++){
    int64 t=calc(x,i,dp)+calc(i,y,dp);
    local=MIN(local,t);
  }
  int64 sum=0;
  for(i=x;i<y;i++) sum+=a[i];
  dp[POS(x,y)]=local+sum;
  return dp[POS(x,y)];
}

void run(void){
  int n;
  scanf("%d",&n);
  int i;
  for(i=0;i<n;i++) scanf("%d",a+i);
  int64 *dp=(int64 *)calloc((400+1)*(400+1),sizeof(int64));
  int64 ans=calc(0,n,dp);
  printf("%lld\n",ans);
}

int main(void){
  run();
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400
a:
	.zero	400
	.text
	.globl	calc
	.type	calc, @function
calc:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	movl	%edi, -52(%rbp)
	movl	%esi, -56(%rbp)
	movq	%rdx, -64(%rbp)
	movl	-56(%rbp), %eax
	subl	-52(%rbp), %eax
	cmpl	$1, %eax
	jg	.L2
	movl	$0, %eax
	jmp	.L3
.L2:
	movl	-52(%rbp), %eax
	imull	$401, %eax, %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jle	.L4
	movl	-52(%rbp), %eax
	imull	$401, %eax, %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	jmp	.L3
.L4:
	movabsq	$1000000000000000000, %rax
	movq	%rax, -40(%rbp)
	movl	-52(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -44(%rbp)
	jmp	.L5
.L6:
	movq	-64(%rbp), %rdx
	movl	-44(%rbp), %ecx
	movl	-52(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	calc
	movq	%rax, %rbx
	movq	-64(%rbp), %rdx
	movl	-56(%rbp), %ecx
	movl	-44(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	calc
	addq	%rbx, %rax
	movq	%rax, -24(%rbp)
	movq	-40(%rbp), %rdx
	movq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, -40(%rbp)
	addl	$1, -44(%rbp)
.L5:
	movl	-44(%rbp), %eax
	cmpl	-56(%rbp), %eax
	jl	.L6
	movq	$0, -32(%rbp)
	movl	-52(%rbp), %eax
	movl	%eax, -44(%rbp)
	jmp	.L7
.L8:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	addq	%rax, -32(%rbp)
	addl	$1, -44(%rbp)
.L7:
	movl	-44(%rbp), %eax
	cmpl	-56(%rbp), %eax
	jl	.L8
	movl	-52(%rbp), %eax
	imull	$401, %eax, %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	-40(%rbp), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
	movl	-52(%rbp), %eax
	imull	$401, %eax, %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
.L3:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	calc, .-calc
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	run
	.type	run, @function
run:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -28(%rbp)
	jmp	.L10
.L11:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -28(%rbp)
.L10:
	movl	-32(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L11
	movl	$8, %esi
	movl	$160801, %edi
	call	calloc@PLT
	movq	%rax, -24(%rbp)
	movl	-32(%rbp), %eax
	movq	-24(%rbp), %rdx
	movl	%eax, %esi
	movl	$0, %edi
	call	calc
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	run, .-run
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	call	run
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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
	.p2align 4
	.globl	calc
	.type	calc, @function
calc:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%esi, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	subl	%edi, %eax
	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
	subq	$280, %rsp
	.cfi_def_cfa_offset 336
	movl	%edi, 64(%rsp)
	movl	%esi, 140(%rsp)
	movq	$0, 72(%rsp)
	cmpl	$1, %eax
	jle	.L1
	imull	$401, %edi, %eax
	movl	%esi, %ebx
	movl	%eax, 104(%rsp)
	addl	%esi, %eax
	cltq
	leaq	(%rdx,%rax,8), %rax
	movq	%rax, 256(%rsp)
	movq	(%rax), %rax
	movq	%rax, 72(%rsp)
	testq	%rax, %rax
	jg	.L1
	movabsq	$1000000000000000000, %rax
	leal	1(%rdi), %ecx
	movl	%ecx, 184(%rsp)
	movq	%rax, 72(%rsp)
	cmpl	%ecx, %esi
	jle	.L3
	subl	%ecx, %ebx
	movslq	%edi, %rax
	movslq	%ecx, %rcx
	movl	$1, 136(%rsp)
	imull	$401, %ecx, %esi
	movq	%rdx, %r15
	leaq	4(,%rax,4), %rax
	movl	%ebx, 160(%rsp)
	leaq	a(%rip), %rbx
	movl	$0, 224(%rsp)
	leaq	(%rbx,%rax), %rdi
	leaq	-4(%rbx,%rax), %rax
	movq	%rbx, 8(%rsp)
	movq	%rdi, 152(%rsp)
	movq	%rcx, %rdi
	leaq	(%rbx,%rcx,4), %rcx
	movl	%esi, 264(%rsp)
	movl	%edi, %r12d
	movq	%rcx, 240(%rsp)
	movq	%rax, 200(%rsp)
	movl	%esi, 68(%rsp)
.L104:
	cmpl	$1, 136(%rsp)
	movq	$0, 16(%rsp)
	jle	.L4
	movl	104(%rsp), %eax
	addl	%r12d, %eax
	cltq
	leaq	(%r15,%rax,8), %rax
	movq	%rax, 192(%rsp)
	movq	(%rax), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	jg	.L4
	movl	184(%rsp), %r14d
	movabsq	$1000000000000000000, %rax
	movq	%rax, 16(%rsp)
	cmpl	%r12d, %r14d
	jge	.L5
	movl	264(%rsp), %eax
	movl	$1, 88(%rsp)
	movq	%r15, %rbp
	addl	%r12d, %eax
	movl	%eax, 108(%rsp)
	movq	240(%rsp), %rax
	movq	%rax, 128(%rsp)
	movl	224(%rsp), %eax
	movl	%eax, 92(%rsp)
.L49:
	movl	88(%rsp), %ecx
	movq	$0, (%rsp)
	cmpl	$1, %ecx
	jle	.L6
	movl	104(%rsp), %eax
	addl	%r14d, %eax
	cltq
	leaq	0(%rbp,%rax,8), %rax
	movq	%rax, 96(%rsp)
	movq	(%rax), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	jg	.L6
	movl	184(%rsp), %r13d
	movabsq	$1000000000000000000, %rax
	movq	%rax, (%rsp)
	cmpl	%r14d, %r13d
	jge	.L7
	leal	-1(%rcx), %eax
	movl	$1, 24(%rsp)
	movl	%eax, 40(%rsp)
	movl	264(%rsp), %eax
	movl	%r12d, 144(%rsp)
	movl	%r13d, %r12d
	addl	%r14d, %eax
	movl	%eax, 48(%rsp)
	movq	240(%rsp), %rax
	movq	%rax, 56(%rsp)
.L22:
	xorl	%r15d, %r15d
	cmpl	$1, 24(%rsp)
	jle	.L8
	movl	104(%rsp), %eax
	addl	%r12d, %eax
	cltq
	leaq	0(%rbp,%rax,8), %rax
	movq	(%rax), %r15
	movq	%rax, 32(%rsp)
	testq	%r15, %r15
	jg	.L8
	movl	184(%rsp), %eax
	movabsq	$1000000000000000000, %r15
	cmpl	%r12d, %eax
	jge	.L9
	movl	64(%rsp), %ebx
	movl	%r14d, 80(%rsp)
	movl	%eax, %r13d
	movq	%r15, %r14
.L10:
	movl	%r13d, %esi
	movq	%rbp, %rdx
	movl	%ebx, %edi
	call	calc
	movl	%r13d, %edi
	movq	%rbp, %rdx
	movl	%r12d, %esi
	movq	%rax, %r15
	call	calc
	addq	%r15, %rax
	cmpq	%rax, %r14
	cmovg	%rax, %r14
	addl	$1, %r13d
	cmpl	%r13d, %r12d
	jne	.L10
	movq	%r14, %r15
	movl	80(%rsp), %r14d
.L9:
	cmpl	%r12d, 64(%rsp)
	jge	.L11
	movl	24(%rsp), %ebx
	leal	-1(%rbx), %eax
	cmpl	$2, %eax
	jbe	.L118
	movl	%ebx, %eax
	movq	200(%rsp), %rbx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbx,%rax), %rdx
	movq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L13:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rdx, %rax
	jne	.L13
	movl	24(%rsp), %edi
	movdqa	%xmm0, %xmm1
	movl	64(%rsp), %ecx
	psrldq	$8, %xmm1
	movl	%edi, %esi
	paddq	%xmm1, %xmm0
	andl	$-4, %esi
	movq	%xmm0, %rax
	leal	(%rsi,%rcx), %edx
	cmpl	%esi, %edi
	je	.L14
.L12:
	movq	8(%rsp), %rdi
	movslq	%edx, %rsi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rsi, %rax
	leal	1(%rdx), %esi
	cmpl	%esi, %r12d
	jle	.L14
	movslq	%esi, %rsi
	addl	$2, %edx
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rsi, %rax
	cmpl	%edx, %r12d
	jle	.L14
	movslq	%edx, %rdx
	movslq	(%rdi,%rdx,4), %rdx
	addq	%rdx, %rax
.L14:
	addq	%rax, %r15
.L11:
	movq	32(%rsp), %rax
	movq	%r15, (%rax)
.L8:
	leal	1(%r12), %r11d
	cmpl	$1, 40(%rsp)
	movl	%r11d, 32(%rsp)
	jle	.L15
	movslq	48(%rsp), %rax
	leaq	0(%rbp,%rax,8), %rax
	movq	%rax, 80(%rsp)
	movq	(%rax), %rax
	testq	%rax, %rax
	jg	.L187
	movabsq	$1000000000000000000, %r8
	cmpl	%r11d, %r14d
	jle	.L17
	movl	%r11d, 120(%rsp)
	movl	%r11d, %r13d
	movq	%r8, %rbx
	movq	%r15, 112(%rsp)
	movl	%r12d, %r15d
.L18:
	movl	%r13d, %esi
	movq	%rbp, %rdx
	movl	%r15d, %edi
	call	calc
	movl	%r13d, %edi
	movq	%rbp, %rdx
	movl	%r14d, %esi
	movq	%rax, %r12
	call	calc
	addq	%r12, %rax
	cmpq	%rax, %rbx
	cmovg	%rax, %rbx
	addl	$1, %r13d
	cmpl	%r14d, %r13d
	jne	.L18
	movl	%r15d, %r12d
	movl	120(%rsp), %r11d
	movq	112(%rsp), %r15
	movq	%rbx, %r8
.L17:
	movl	%r14d, %eax
	cmpl	%r14d, %r12d
	movl	$1, %esi
	cmovl	40(%rsp), %esi
	subl	%r11d, %eax
	cmpl	$2, %eax
	jbe	.L120
	cmpl	%r14d, %r12d
	jge	.L120
	movl	%esi, %eax
	movq	56(%rsp), %rcx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rcx,%rax), %rdx
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L20:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rdx, %rax
	jne	.L20
	movdqa	%xmm0, %xmm1
	movl	%esi, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddq	%xmm1, %xmm0
	addl	%edx, %r12d
	movq	%xmm0, %rax
	leal	1(%r12), %r11d
	cmpl	%edx, %esi
	je	.L21
.L19:
	movq	8(%rsp), %rbx
	movslq	%r12d, %rdx
	movslq	(%rbx,%rdx,4), %rdx
	addq	%rdx, %rax
	cmpl	%r11d, %r14d
	jle	.L21
	movslq	%r11d, %r11
	leal	2(%r12), %ecx
	movslq	(%rbx,%r11,4), %rdx
	addq	%rdx, %rax
	cmpl	%ecx, %r14d
	jle	.L21
	movslq	%ecx, %rcx
	movslq	(%rbx,%rcx,4), %rdx
	addq	%rdx, %rax
.L21:
	leaq	(%r8,%rax), %r10
	movq	80(%rsp), %rax
	addq	%r10, %r15
	movq	%r10, (%rax)
.L15:
	movq	(%rsp), %rax
	cmpq	%r15, %rax
	cmovle	%rax, %r15
	addl	$1, 24(%rsp)
	subl	$1, 40(%rsp)
	addl	$401, 48(%rsp)
	addq	$4, 56(%rsp)
	movq	%r15, (%rsp)
	cmpl	32(%rsp), %r14d
	je	.L188
	movl	32(%rsp), %r12d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L3:
	movl	140(%rsp), %esi
	movl	64(%rsp), %ecx
	cmpl	%ecx, %esi
	jle	.L105
	subl	%ecx, %esi
	leal	-1(%rsi), %eax
	cmpl	$2, %eax
	jbe	.L153
	movslq	%ecx, %rax
	leaq	a(%rip), %rcx
	pxor	%xmm0, %xmm0
	leaq	(%rcx,%rax,4), %rdx
	movl	%esi, %eax
	movq	%rcx, 8(%rsp)
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	leal	-1(%rax), %ecx
	leaq	16(%rdx), %rax
	salq	$4, %rcx
	addq	%rax, %rcx
	jmp	.L107
	.p2align 4,,10
	.p2align 3
.L189:
	addq	$16, %rax
.L107:
	movdqu	(%rdx), %xmm2
	movdqa	%xmm4, %xmm3
	movq	%rax, %rdx
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rcx, %rax
	jne	.L189
	movdqa	%xmm0, %xmm1
	movl	%esi, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	addl	%eax, 64(%rsp)
	movl	64(%rsp), %ecx
	paddq	%xmm1, %xmm0
	movq	%xmm0, %rdx
	cmpl	%eax, %esi
	je	.L108
	leal	1(%rcx), %eax
	movl	%eax, 184(%rsp)
.L106:
	movq	8(%rsp), %rbx
	movslq	%ecx, %rax
	movl	140(%rsp), %edi
	movslq	(%rbx,%rax,4), %rax
	addq	%rax, %rdx
	movslq	184(%rsp), %rax
	cmpl	%eax, %edi
	jle	.L108
	movslq	(%rbx,%rax,4), %rax
	addq	%rax, %rdx
	movl	%ecx, %eax
	addl	$2, %eax
	cmpl	%eax, %edi
	jle	.L108
	cltq
	movslq	(%rbx,%rax,4), %rax
	addq	%rax, %rdx
.L108:
	addq	%rdx, 72(%rsp)
.L105:
	movq	256(%rsp), %rax
	movq	72(%rsp), %rbx
	movq	%rbx, (%rax)
.L1:
	movq	72(%rsp), %rax
	addq	$280, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L188:
	.cfi_restore_state
	movl	144(%rsp), %r12d
.L7:
	cmpl	%r14d, 64(%rsp)
	jge	.L23
	movl	88(%rsp), %edi
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L122
	movl	%edi, %eax
	movq	200(%rsp), %rbx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbx,%rax), %rcx
	movq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L25:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rcx, %rax
	jne	.L25
	movl	88(%rsp), %edi
	movdqa	%xmm0, %xmm1
	movl	64(%rsp), %ecx
	psrldq	$8, %xmm1
	movl	%edi, %esi
	paddq	%xmm1, %xmm0
	andl	$-4, %esi
	movq	%xmm0, %rax
	addl	%esi, %ecx
	cmpl	%esi, %edi
	je	.L26
.L24:
	movq	8(%rsp), %rdi
	movslq	%ecx, %rsi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rsi, %rax
	leal	1(%rcx), %esi
	cmpl	%esi, %r14d
	jle	.L26
	movslq	%esi, %rsi
	addl	$2, %ecx
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rsi, %rax
	cmpl	%ecx, %r14d
	jle	.L26
	movslq	%ecx, %rcx
	movslq	(%rdi,%rcx,4), %rcx
	addq	%rcx, %rax
.L26:
	addq	%rax, (%rsp)
.L23:
	movq	96(%rsp), %rax
	movq	(%rsp), %rcx
	movq	%rcx, (%rax)
.L6:
	leal	1(%r14), %eax
	cmpl	$1, 92(%rsp)
	movl	%eax, 56(%rsp)
	movl	%eax, 96(%rsp)
	movslq	108(%rsp), %rax
	leal	401(%rax), %ebx
	movl	%ebx, 120(%rsp)
	jle	.L27
	leaq	0(%rbp,%rax,8), %rax
	movq	%rax, 168(%rsp)
	movq	(%rax), %rax
	testq	%rax, %rax
	jg	.L184
	movabsq	$1000000000000000000, %rax
	movl	56(%rsp), %r13d
	movq	%rax, 24(%rsp)
	cmpl	%r13d, %r12d
	jle	.L29
	movl	%r12d, %eax
	movq	8(%rsp), %rcx
	movl	$1, 32(%rsp)
	subl	%r13d, %eax
	movl	%eax, 48(%rsp)
	movl	120(%rsp), %eax
	movl	%eax, 80(%rsp)
	movslq	%r13d, %rax
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, 112(%rsp)
	movl	108(%rsp), %eax
	movl	%r14d, 108(%rsp)
	movl	%r13d, %r14d
	subl	%r12d, %eax
	movl	%eax, 164(%rsp)
.L44:
	xorl	%r15d, %r15d
	cmpl	$1, 32(%rsp)
	jle	.L30
	movl	164(%rsp), %eax
	addl	%r14d, %eax
	cltq
	leaq	0(%rbp,%rax,8), %rax
	movq	(%rax), %r15
	movq	%rax, 40(%rsp)
	testq	%r15, %r15
	jg	.L30
	movabsq	$1000000000000000000, %r15
	movl	56(%rsp), %eax
	cmpl	%eax, %r14d
	jle	.L31
	movl	108(%rsp), %ebx
	movl	%r12d, 144(%rsp)
	movl	%eax, %r13d
	movq	%r15, %r12
.L32:
	movl	%r13d, %esi
	movq	%rbp, %rdx
	movl	%ebx, %edi
	call	calc
	movl	%r13d, %edi
	movq	%rbp, %rdx
	movl	%r14d, %esi
	movq	%rax, %r15
	call	calc
	addq	%r15, %rax
	cmpq	%rax, %r12
	cmovg	%rax, %r12
	addl	$1, %r13d
	cmpl	%r14d, %r13d
	jne	.L32
	movq	%r12, %r15
	movl	144(%rsp), %r12d
.L31:
	cmpl	108(%rsp), %r14d
	jle	.L33
	movl	32(%rsp), %ecx
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L126
	movl	%ecx, %eax
	movq	128(%rsp), %rcx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rcx,%rax), %rdx
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L35:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rdx, %rax
	jne	.L35
	movl	32(%rsp), %ebx
	movdqa	%xmm0, %xmm1
	movl	108(%rsp), %ecx
	psrldq	$8, %xmm1
	movl	%ebx, %esi
	paddq	%xmm1, %xmm0
	andl	$-4, %esi
	movq	%xmm0, %rax
	leal	(%rsi,%rcx), %edx
	cmpl	%esi, %ebx
	je	.L36
.L34:
	movq	8(%rsp), %rbx
	movslq	%edx, %rsi
	movslq	(%rbx,%rsi,4), %rsi
	addq	%rsi, %rax
	leal	1(%rdx), %esi
	cmpl	%esi, %r14d
	jle	.L36
	movslq	%esi, %rsi
	addl	$2, %edx
	movslq	(%rbx,%rsi,4), %rsi
	addq	%rsi, %rax
	cmpl	%edx, %r14d
	jle	.L36
	movslq	%edx, %rdx
	movslq	(%rbx,%rdx,4), %rdx
	addq	%rdx, %rax
.L36:
	addq	%rax, %r15
.L33:
	movq	40(%rsp), %rax
	movq	%r15, (%rax)
.L30:
	leal	1(%r14), %r11d
	cmpl	$1, 48(%rsp)
	movl	%r11d, 40(%rsp)
	jle	.L37
	movslq	80(%rsp), %rax
	leaq	0(%rbp,%rax,8), %rax
	movq	%rax, 144(%rsp)
	movq	(%rax), %rax
	testq	%rax, %rax
	jg	.L190
	movabsq	$1000000000000000000, %r8
	cmpl	%r11d, %r12d
	jle	.L39
	movl	%r11d, 188(%rsp)
	movl	%r11d, %r13d
	movq	%r8, %rbx
	movq	%r15, 176(%rsp)
	movl	%r14d, %r15d
.L40:
	movl	%r13d, %esi
	movq	%rbp, %rdx
	movl	%r15d, %edi
	call	calc
	movl	%r13d, %edi
	movq	%rbp, %rdx
	movl	%r12d, %esi
	movq	%rax, %r14
	call	calc
	addq	%r14, %rax
	cmpq	%rax, %rbx
	cmovg	%rax, %rbx
	addl	$1, %r13d
	cmpl	%r12d, %r13d
	jne	.L40
	movl	%r15d, %r14d
	movl	188(%rsp), %r11d
	movq	176(%rsp), %r15
	movq	%rbx, %r8
.L39:
	movl	%r12d, %eax
	cmpl	%r12d, %r14d
	movl	$1, %esi
	cmovl	48(%rsp), %esi
	subl	%r11d, %eax
	cmpl	$2, %eax
	jbe	.L128
	cmpl	%r12d, %r14d
	jge	.L128
	movl	%esi, %eax
	movq	112(%rsp), %rcx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rcx,%rax), %rdx
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L42:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rdx, %rax
	jne	.L42
	movdqa	%xmm0, %xmm1
	movl	%esi, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddq	%xmm1, %xmm0
	addl	%edx, %r14d
	movq	%xmm0, %rax
	leal	1(%r14), %r11d
	cmpl	%edx, %esi
	je	.L43
.L41:
	movq	8(%rsp), %rdi
	movslq	%r14d, %rdx
	movslq	(%rdi,%rdx,4), %rdx
	addq	%rdx, %rax
	cmpl	%r11d, %r12d
	jle	.L43
	movslq	%r11d, %r11
	leal	2(%r14), %ecx
	movslq	(%rdi,%r11,4), %rdx
	addq	%rdx, %rax
	cmpl	%ecx, %r12d
	jle	.L43
	movslq	%ecx, %rcx
	movslq	(%rdi,%rcx,4), %rdx
	addq	%rdx, %rax
.L43:
	leaq	(%r8,%rax), %r10
	movq	144(%rsp), %rax
	addq	%r10, %r15
	movq	%r10, (%rax)
.L37:
	movq	24(%rsp), %rax
	cmpq	%r15, %rax
	cmovle	%rax, %r15
	addl	$1, 32(%rsp)
	subl	$1, 48(%rsp)
	addl	$401, 80(%rsp)
	addq	$4, 112(%rsp)
	movq	%r15, 24(%rsp)
	cmpl	40(%rsp), %r12d
	je	.L191
	movl	40(%rsp), %r14d
	jmp	.L44
	.p2align 4,,10
	.p2align 3
.L191:
	movl	108(%rsp), %r14d
.L29:
	cmpl	%r12d, %r14d
	jge	.L45
	movl	%r12d, %eax
	subl	56(%rsp), %eax
	cmpl	$2, %eax
	jbe	.L130
	movl	92(%rsp), %eax
	movq	128(%rsp), %rdi
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rdi,%rax), %rcx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L47:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rax, %rcx
	jne	.L47
	movl	92(%rsp), %ebx
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	movl	%ebx, %eax
	paddq	%xmm1, %xmm0
	andl	$-4, %eax
	movq	%xmm0, %rcx
	addl	%eax, %r14d
	cmpl	%eax, %ebx
	je	.L48
	leal	1(%r14), %eax
	movl	%eax, 56(%rsp)
.L46:
	movq	8(%rsp), %rbx
	movslq	%r14d, %rax
	movslq	(%rbx,%rax,4), %rax
	addq	%rax, %rcx
	movslq	56(%rsp), %rax
	cmpl	%r12d, %eax
	jge	.L48
	movslq	(%rbx,%rax,4), %rax
	addl	$2, %r14d
	addq	%rax, %rcx
	cmpl	%r12d, %r14d
	jge	.L48
	movslq	%r14d, %r14
	movslq	(%rbx,%r14,4), %rax
	addq	%rax, %rcx
.L48:
	addq	%rcx, 24(%rsp)
.L45:
	movq	168(%rsp), %rcx
	movq	24(%rsp), %rax
	movq	%rax, (%rcx)
.L184:
	addq	%rax, (%rsp)
.L27:
	movq	16(%rsp), %rbx
	movq	(%rsp), %rax
	cmpq	%rax, %rbx
	cmovle	%rbx, %rax
	addl	$1, 88(%rsp)
	subl	$1, 92(%rsp)
	movq	%rax, 16(%rsp)
	movl	120(%rsp), %eax
	addq	$4, 128(%rsp)
	movl	%eax, 108(%rsp)
	cmpl	96(%rsp), %r12d
	je	.L192
	movl	96(%rsp), %r14d
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L192:
	movq	%rbp, %r15
.L5:
	cmpl	%r12d, 64(%rsp)
	jge	.L50
	cmpl	$2, 224(%rsp)
	jbe	.L132
	movl	136(%rsp), %eax
	movq	200(%rsp), %rbx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbx,%rax), %rcx
	movq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L52:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rcx, %rax
	jne	.L52
	movl	136(%rsp), %ebx
	movdqa	%xmm0, %xmm1
	movl	64(%rsp), %eax
	psrldq	$8, %xmm1
	movl	%ebx, %ecx
	paddq	%xmm1, %xmm0
	andl	$-4, %ecx
	movq	%xmm0, %rsi
	addl	%ecx, %eax
	cmpl	%ecx, %ebx
	je	.L53
.L51:
	movq	8(%rsp), %rdi
	movslq	%eax, %rcx
	movslq	(%rdi,%rcx,4), %rcx
	addq	%rcx, %rsi
	leal	1(%rax), %ecx
	cmpl	%ecx, %r12d
	jle	.L53
	movslq	%ecx, %rcx
	addl	$2, %eax
	movslq	(%rdi,%rcx,4), %rcx
	addq	%rcx, %rsi
	cmpl	%eax, %r12d
	jle	.L53
	cltq
	movslq	(%rdi,%rax,4), %rax
	addq	%rax, %rsi
.L53:
	addq	%rsi, 16(%rsp)
.L50:
	movq	192(%rsp), %rax
	movq	16(%rsp), %rcx
	movq	%rcx, (%rax)
.L4:
	movl	68(%rsp), %ebx
	leal	1(%r12), %eax
	cmpl	$1, 160(%rsp)
	movl	%eax, 128(%rsp)
	movl	%eax, 168(%rsp)
	leal	401(%rbx), %eax
	movl	%eax, 188(%rsp)
	je	.L54
	movl	140(%rsp), %eax
	addl	%ebx, %eax
	cltq
	leaq	(%r15,%rax,8), %rax
	movq	%rax, 232(%rsp)
	movq	(%rax), %rax
	testq	%rax, %rax
	jg	.L193
	movl	140(%rsp), %ebx
	movl	128(%rsp), %r14d
	cmpl	%r14d, %ebx
	jle	.L56
	imull	$401, %r14d, %eax
	movq	8(%rsp), %rdi
	movl	%ebx, %ecx
	movl	$1, 88(%rsp)
	subl	%r14d, %ecx
	movl	%r12d, 164(%rsp)
	movq	%r15, %rbp
	movl	%ebx, %r12d
	movl	%ecx, 268(%rsp)
	addl	%ebx, %eax
	movl	%ecx, 92(%rsp)
	movl	%eax, 108(%rsp)
	movslq	%r14d, %rax
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, 248(%rsp)
	movq	%rax, 144(%rsp)
	movabsq	$1000000000000000000, %rax
	movq	%rax, 96(%rsp)
.L100:
	movl	88(%rsp), %edi
	movq	$0, (%rsp)
	cmpl	$1, %edi
	jle	.L57
	movl	68(%rsp), %eax
	addl	%r14d, %eax
	cltq
	leaq	0(%rbp,%rax,8), %rax
	movq	%rax, 120(%rsp)
	movq	(%rax), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	jg	.L57
	movl	128(%rsp), %r13d
	cmpl	%r13d, %r14d
	jle	.L134
	leal	-1(%rdi), %eax
	movl	136(%rsp), %ecx
	movl	$1, 24(%rsp)
	movl	%eax, 40(%rsp)
	movl	188(%rsp), %eax
	movl	%r12d, 208(%rsp)
	movl	%r13d, %r12d
	addl	%r14d, %eax
	movl	%eax, 48(%rsp)
	movq	248(%rsp), %rax
	movq	%rax, 56(%rsp)
	movabsq	$1000000000000000000, %rax
	movq	%rax, (%rsp)
	movl	64(%rsp), %eax
	addl	%ecx, %eax
	movl	%eax, 112(%rsp)
.L73:
	xorl	%r15d, %r15d
	cmpl	$1, 24(%rsp)
	jle	.L59
	movl	68(%rsp), %eax
	addl	%r12d, %eax
	cltq
	leaq	0(%rbp,%rax,8), %rax
	movq	(%rax), %r15
	movq	%rax, 32(%rsp)
	testq	%r15, %r15
	jg	.L59
	movl	128(%rsp), %eax
	movabsq	$1000000000000000000, %r15
	cmpl	%eax, %r12d
	jle	.L60
	movl	164(%rsp), %ebx
	movl	%r14d, 80(%rsp)
	movl	%eax, %r13d
	movq	%r15, %r14
.L61:
	movl	%r13d, %esi
	movq	%rbp, %rdx
	movl	%ebx, %edi
	call	calc
	movl	%r13d, %edi
	movq	%rbp, %rdx
	movl	%r12d, %esi
	movq	%rax, %r15
	call	calc
	addq	%r15, %rax
	cmpq	%rax, %r14
	cmovg	%rax, %r14
	addl	$1, %r13d
	cmpl	%r12d, %r13d
	jne	.L61
	movq	%r14, %r15
	movl	80(%rsp), %r14d
.L60:
	cmpl	112(%rsp), %r12d
	jle	.L62
	movl	24(%rsp), %ebx
	leal	-1(%rbx), %eax
	cmpl	$2, %eax
	jbe	.L137
	movl	%ebx, %eax
	movq	152(%rsp), %rbx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbx,%rax), %rdx
	movq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L64:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rax, %rdx
	jne	.L64
	movl	24(%rsp), %ecx
	movdqa	%xmm0, %xmm1
	movl	164(%rsp), %edi
	psrldq	$8, %xmm1
	movl	%ecx, %esi
	paddq	%xmm1, %xmm0
	andl	$-4, %esi
	movq	%xmm0, %rax
	leal	(%rsi,%rdi), %edx
	cmpl	%esi, %ecx
	je	.L65
.L63:
	movq	8(%rsp), %rcx
	movslq	%edx, %rsi
	movslq	(%rcx,%rsi,4), %rsi
	addq	%rsi, %rax
	leal	1(%rdx), %esi
	cmpl	%esi, %r12d
	jle	.L65
	movslq	%esi, %rsi
	addl	$2, %edx
	movslq	(%rcx,%rsi,4), %rsi
	addq	%rsi, %rax
	cmpl	%edx, %r12d
	jle	.L65
	movslq	%edx, %rdx
	movslq	(%rcx,%rdx,4), %rdx
	addq	%rdx, %rax
.L65:
	addq	%rax, %r15
.L62:
	movq	32(%rsp), %rax
	movq	%r15, (%rax)
.L59:
	leal	1(%r12), %r11d
	cmpl	$1, 40(%rsp)
	movl	%r11d, 32(%rsp)
	jle	.L66
	movslq	48(%rsp), %rax
	leaq	0(%rbp,%rax,8), %rax
	movq	%rax, 80(%rsp)
	movq	(%rax), %rax
	testq	%rax, %rax
	jg	.L194
	movabsq	$1000000000000000000, %r8
	cmpl	%r11d, %r14d
	jle	.L68
	movl	%r11d, 192(%rsp)
	movl	%r11d, %r13d
	movq	%r8, %rbx
	movq	%r15, 176(%rsp)
	movl	%r12d, %r15d
.L69:
	movl	%r13d, %esi
	movq	%rbp, %rdx
	movl	%r15d, %edi
	call	calc
	movl	%r13d, %edi
	movq	%rbp, %rdx
	movl	%r14d, %esi
	movq	%rax, %r12
	call	calc
	addq	%r12, %rax
	cmpq	%rax, %rbx
	cmovg	%rax, %rbx
	addl	$1, %r13d
	cmpl	%r14d, %r13d
	jne	.L69
	movl	%r15d, %r12d
	movl	192(%rsp), %r11d
	movq	176(%rsp), %r15
	movq	%rbx, %r8
.L68:
	movl	%r14d, %eax
	cmpl	%r14d, %r12d
	movl	$1, %esi
	cmovl	40(%rsp), %esi
	subl	%r11d, %eax
	cmpl	$2, %eax
	jbe	.L139
	cmpl	%r14d, %r12d
	jge	.L139
	movl	%esi, %eax
	movq	56(%rsp), %rcx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rcx,%rax), %rdx
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L71:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rdx, %rax
	jne	.L71
	movdqa	%xmm0, %xmm1
	movl	%esi, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddq	%xmm1, %xmm0
	addl	%edx, %r12d
	movq	%xmm0, %rax
	leal	1(%r12), %r11d
	cmpl	%edx, %esi
	je	.L72
.L70:
	movq	8(%rsp), %rbx
	movslq	%r12d, %rdx
	movslq	(%rbx,%rdx,4), %rdx
	addq	%rdx, %rax
	cmpl	%r14d, %r11d
	jge	.L72
	movslq	%r11d, %r11
	leal	2(%r12), %ecx
	movslq	(%rbx,%r11,4), %rdx
	addq	%rdx, %rax
	cmpl	%ecx, %r14d
	jle	.L72
	movslq	%ecx, %rcx
	movslq	(%rbx,%rcx,4), %rdx
	addq	%rdx, %rax
.L72:
	leaq	(%r8,%rax), %r10
	movq	80(%rsp), %rax
	addq	%r10, %r15
	movq	%r10, (%rax)
.L66:
	movq	(%rsp), %rax
	cmpq	%r15, %rax
	cmovle	%rax, %r15
	addl	$1, 24(%rsp)
	subl	$1, 40(%rsp)
	addl	$401, 48(%rsp)
	addq	$4, 56(%rsp)
	movq	%r15, (%rsp)
	cmpl	32(%rsp), %r14d
	je	.L195
	movl	32(%rsp), %r12d
	jmp	.L73
	.p2align 4,,10
	.p2align 3
.L195:
	movl	208(%rsp), %r12d
.L58:
	cmpl	112(%rsp), %r14d
	jle	.L74
	movl	88(%rsp), %ebx
	leal	-1(%rbx), %eax
	cmpl	$2, %eax
	jbe	.L141
	movl	%ebx, %eax
	movq	152(%rsp), %rbx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbx,%rax), %rcx
	movq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L76:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rcx, %rax
	jne	.L76
	movl	88(%rsp), %edi
	movdqa	%xmm0, %xmm1
	movl	164(%rsp), %ecx
	psrldq	$8, %xmm1
	movl	%edi, %esi
	paddq	%xmm1, %xmm0
	andl	$-4, %esi
	movq	%xmm0, %rax
	addl	%esi, %ecx
	cmpl	%edi, %esi
	je	.L77
.L75:
	movq	8(%rsp), %rdi
	movslq	%ecx, %rsi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rsi, %rax
	leal	1(%rcx), %esi
	cmpl	%r14d, %esi
	jge	.L77
	movslq	%esi, %rsi
	addl	$2, %ecx
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rsi, %rax
	cmpl	%r14d, %ecx
	jge	.L77
	movslq	%ecx, %rcx
	movslq	(%rdi,%rcx,4), %rcx
	addq	%rcx, %rax
.L77:
	addq	%rax, (%rsp)
.L74:
	movq	120(%rsp), %rax
	movq	(%rsp), %rcx
	movq	%rcx, (%rax)
.L57:
	leal	1(%r14), %eax
	cmpl	$1, 92(%rsp)
	movl	%eax, 40(%rsp)
	movslq	108(%rsp), %rax
	leal	401(%rax), %edi
	movl	%edi, 120(%rsp)
	jle	.L78
	leaq	0(%rbp,%rax,8), %rax
	movq	%rax, 208(%rsp)
	movq	(%rax), %rax
	testq	%rax, %rax
	jg	.L185
	movabsq	$1000000000000000000, %rax
	movl	40(%rsp), %r13d
	movq	%rax, 24(%rsp)
	cmpl	%r13d, %r12d
	jle	.L80
	movl	%r12d, %eax
	movq	8(%rsp), %rcx
	movl	$1, 32(%rsp)
	subl	%r13d, %eax
	movl	%eax, 56(%rsp)
	movl	120(%rsp), %eax
	movl	%eax, 80(%rsp)
	movslq	%r13d, %rax
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, 112(%rsp)
	movl	108(%rsp), %eax
	movl	%r14d, 108(%rsp)
	movl	%r13d, %r14d
	subl	%r12d, %eax
	movl	%eax, 192(%rsp)
.L95:
	xorl	%r15d, %r15d
	cmpl	$1, 32(%rsp)
	jle	.L81
	movl	192(%rsp), %eax
	addl	%r14d, %eax
	cltq
	leaq	0(%rbp,%rax,8), %rax
	movq	(%rax), %r15
	movq	%rax, 48(%rsp)
	testq	%r15, %r15
	jg	.L81
	movabsq	$1000000000000000000, %r15
	movl	40(%rsp), %eax
	cmpl	%eax, %r14d
	jle	.L82
	movl	108(%rsp), %ebx
	movl	%r12d, 176(%rsp)
	movl	%eax, %r13d
	movq	%r15, %r12
.L83:
	movl	%r13d, %esi
	movq	%rbp, %rdx
	movl	%ebx, %edi
	call	calc
	movl	%r13d, %edi
	movq	%rbp, %rdx
	movl	%r14d, %esi
	movq	%rax, %r15
	call	calc
	addq	%r15, %rax
	cmpq	%rax, %r12
	cmovg	%rax, %r12
	addl	$1, %r13d
	cmpl	%r14d, %r13d
	jne	.L83
	movq	%r12, %r15
	movl	176(%rsp), %r12d
.L82:
	cmpl	108(%rsp), %r14d
	jle	.L84
	movl	32(%rsp), %ecx
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L145
	movl	%ecx, %eax
	movq	144(%rsp), %rcx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rcx,%rax), %rdx
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L86:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rax, %rdx
	jne	.L86
	movl	32(%rsp), %edi
	movdqa	%xmm0, %xmm1
	movl	108(%rsp), %ecx
	psrldq	$8, %xmm1
	movl	%edi, %esi
	paddq	%xmm1, %xmm0
	andl	$-4, %esi
	movq	%xmm0, %rax
	leal	(%rsi,%rcx), %edx
	cmpl	%esi, %edi
	je	.L87
.L85:
	movq	8(%rsp), %rdi
	movslq	%edx, %rsi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rsi, %rax
	leal	1(%rdx), %esi
	cmpl	%r14d, %esi
	jge	.L87
	movslq	%esi, %rsi
	addl	$2, %edx
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rsi, %rax
	cmpl	%edx, %r14d
	jle	.L87
	movslq	%edx, %rdx
	movslq	(%rdi,%rdx,4), %rdx
	addq	%rdx, %rax
.L87:
	addq	%rax, %r15
.L84:
	movq	48(%rsp), %rax
	movq	%r15, (%rax)
.L81:
	leal	1(%r14), %r11d
	cmpl	$1, 56(%rsp)
	movl	%r11d, 48(%rsp)
	jle	.L88
	movslq	80(%rsp), %rax
	leaq	0(%rbp,%rax,8), %rax
	movq	%rax, 176(%rsp)
	movq	(%rax), %rax
	testq	%rax, %rax
	jg	.L196
	movabsq	$1000000000000000000, %r8
	cmpl	%r11d, %r12d
	jle	.L90
	movl	%r11d, 228(%rsp)
	movl	%r11d, %r13d
	movq	%r8, %rbx
	movq	%r15, 216(%rsp)
	movl	%r14d, %r15d
.L91:
	movl	%r13d, %esi
	movq	%rbp, %rdx
	movl	%r15d, %edi
	call	calc
	movl	%r13d, %edi
	movq	%rbp, %rdx
	movl	%r12d, %esi
	movq	%rax, %r14
	call	calc
	addq	%r14, %rax
	cmpq	%rax, %rbx
	cmovg	%rax, %rbx
	addl	$1, %r13d
	cmpl	%r13d, %r12d
	jne	.L91
	movl	%r15d, %r14d
	movl	228(%rsp), %r11d
	movq	216(%rsp), %r15
	movq	%rbx, %r8
.L90:
	movl	%r12d, %eax
	cmpl	%r14d, %r12d
	movl	$1, %esi
	cmovg	56(%rsp), %esi
	subl	%r11d, %eax
	cmpl	$2, %eax
	jbe	.L147
	cmpl	%r14d, %r12d
	jle	.L147
	movl	%esi, %eax
	movq	112(%rsp), %rcx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rcx,%rax), %rdx
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L93:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rax, %rdx
	jne	.L93
	movdqa	%xmm0, %xmm1
	movl	%esi, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddq	%xmm1, %xmm0
	addl	%edx, %r14d
	movq	%xmm0, %rax
	leal	1(%r14), %r11d
	cmpl	%edx, %esi
	je	.L94
.L92:
	movq	8(%rsp), %rdi
	movslq	%r14d, %rdx
	movslq	(%rdi,%rdx,4), %rdx
	addq	%rdx, %rax
	cmpl	%r11d, %r12d
	jle	.L94
	movslq	%r11d, %r11
	leal	2(%r14), %ecx
	movslq	(%rdi,%r11,4), %rdx
	addq	%rdx, %rax
	cmpl	%ecx, %r12d
	jle	.L94
	movslq	%ecx, %rcx
	movslq	(%rdi,%rcx,4), %rdx
	addq	%rdx, %rax
.L94:
	leaq	(%r8,%rax), %r10
	movq	176(%rsp), %rax
	addq	%r10, %r15
	movq	%r10, (%rax)
.L88:
	movq	24(%rsp), %rax
	cmpq	%r15, %rax
	cmovle	%rax, %r15
	addl	$1, 32(%rsp)
	subl	$1, 56(%rsp)
	addl	$401, 80(%rsp)
	addq	$4, 112(%rsp)
	movq	%r15, 24(%rsp)
	cmpl	48(%rsp), %r12d
	je	.L197
	movl	48(%rsp), %r14d
	jmp	.L95
	.p2align 4,,10
	.p2align 3
.L197:
	movl	108(%rsp), %r14d
.L80:
	cmpl	%r14d, %r12d
	jle	.L96
	movl	%r12d, %eax
	subl	40(%rsp), %eax
	cmpl	$2, %eax
	jbe	.L149
	movl	92(%rsp), %eax
	movq	144(%rsp), %rdi
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rdi,%rax), %rcx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L98:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rax, %rcx
	jne	.L98
	movl	92(%rsp), %ebx
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	movl	%ebx, %esi
	paddq	%xmm1, %xmm0
	andl	$-4, %esi
	movq	%xmm0, %rax
	leal	(%rsi,%r14), %ecx
	cmpl	%esi, %ebx
	je	.L99
.L97:
	movq	8(%rsp), %rbx
	movslq	%ecx, %rsi
	movslq	(%rbx,%rsi,4), %rsi
	addq	%rsi, %rax
	leal	1(%rcx), %esi
	cmpl	%esi, %r12d
	jle	.L99
	movslq	%esi, %rsi
	addl	$2, %ecx
	movslq	(%rbx,%rsi,4), %rsi
	addq	%rsi, %rax
	cmpl	%ecx, %r12d
	jle	.L99
	movslq	%ecx, %rcx
	movslq	(%rbx,%rcx,4), %rcx
	addq	%rcx, %rax
.L99:
	addq	%rax, 24(%rsp)
.L96:
	movq	208(%rsp), %rcx
	movq	24(%rsp), %rax
	movq	%rax, (%rcx)
.L185:
	addq	%rax, (%rsp)
.L78:
	movq	96(%rsp), %rdi
	movq	(%rsp), %rax
	cmpq	%rax, %rdi
	cmovle	%rdi, %rax
	addl	$1, 88(%rsp)
	subl	$1, 92(%rsp)
	movq	%rax, 96(%rsp)
	movl	120(%rsp), %eax
	addq	$4, 144(%rsp)
	movl	%eax, 108(%rsp)
	cmpl	40(%rsp), %r12d
	je	.L198
	movl	40(%rsp), %r14d
	jmp	.L100
	.p2align 4,,10
	.p2align 3
.L198:
	cmpl	$2, 268(%rsp)
	movl	164(%rsp), %r12d
	movq	%rbp, %r15
	jbe	.L151
	movl	160(%rsp), %eax
	movq	152(%rsp), %rbx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbx,%rax), %rcx
	movq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L102:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rax, %rcx
	jne	.L102
	movl	160(%rsp), %edi
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	movl	%edi, %eax
	paddq	%xmm1, %xmm0
	andl	$-4, %eax
	movq	%xmm0, %rcx
	addl	%eax, %r12d
	cmpl	%edi, %eax
	je	.L109
	leal	1(%r12), %eax
	movl	%eax, 128(%rsp)
.L101:
	movq	8(%rsp), %rdi
	movslq	%r12d, %rax
	movslq	(%rdi,%rax,4), %rax
	addq	%rax, %rcx
	cmpl	%r14d, %r12d
	jge	.L109
	movslq	128(%rsp), %rax
	movslq	(%rdi,%rax,4), %rax
	addq	%rax, %rcx
	leal	2(%r12), %eax
	cmpl	40(%rsp), %eax
	jge	.L109
	cltq
	movslq	(%rdi,%rax,4), %rax
	addq	%rax, %rcx
.L109:
	movq	232(%rsp), %rax
	addq	96(%rsp), %rcx
	addq	%rcx, 16(%rsp)
	movq	%rcx, (%rax)
.L54:
	movq	72(%rsp), %rcx
	movq	16(%rsp), %rax
	cmpq	%rax, %rcx
	cmovle	%rcx, %rax
	addl	$1, 224(%rsp)
	movl	168(%rsp), %ecx
	addl	$1, 136(%rsp)
	movq	%rax, 72(%rsp)
	movl	188(%rsp), %eax
	subl	$1, 160(%rsp)
	addq	$4, 152(%rsp)
	movl	%eax, 68(%rsp)
	cmpl	%ecx, 140(%rsp)
	je	.L3
	movl	%ecx, %r12d
	jmp	.L104
	.p2align 4,,10
	.p2align 3
.L196:
	addq	%rax, %r15
	jmp	.L88
	.p2align 4,,10
	.p2align 3
.L194:
	addq	%rax, %r15
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L190:
	addq	%rax, %r15
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L187:
	addq	%rax, %r15
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L193:
	addq	%rax, 16(%rsp)
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L134:
	movabsq	$1000000000000000000, %rax
	movl	136(%rsp), %ecx
	movq	%rax, (%rsp)
	movl	64(%rsp), %eax
	addl	%ecx, %eax
	movl	%eax, 112(%rsp)
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L120:
	xorl	%eax, %eax
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L147:
	xorl	%eax, %eax
	jmp	.L92
	.p2align 4,,10
	.p2align 3
.L139:
	xorl	%eax, %eax
	jmp	.L70
	.p2align 4,,10
	.p2align 3
.L128:
	xorl	%eax, %eax
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L56:
	movq	152(%rsp), %rax
	movslq	(%rax), %rcx
	movabsq	$1000000000000000000, %rax
	movq	%rax, 96(%rsp)
	jmp	.L109
.L137:
	movl	164(%rsp), %edx
	xorl	%eax, %eax
	jmp	.L63
.L145:
	movl	108(%rsp), %edx
	xorl	%eax, %eax
	jmp	.L85
.L126:
	movl	108(%rsp), %edx
	xorl	%eax, %eax
	jmp	.L34
.L118:
	movl	64(%rsp), %edx
	xorl	%eax, %eax
	jmp	.L12
.L122:
	movl	64(%rsp), %ecx
	xorl	%eax, %eax
	jmp	.L24
.L141:
	movl	164(%rsp), %ecx
	xorl	%eax, %eax
	jmp	.L75
.L130:
	xorl	%ecx, %ecx
	jmp	.L46
.L149:
	movl	%r14d, %ecx
	xorl	%eax, %eax
	jmp	.L97
.L132:
	movl	64(%rsp), %eax
	xorl	%esi, %esi
	jmp	.L51
.L151:
	xorl	%ecx, %ecx
	jmp	.L101
.L153:
	leaq	a(%rip), %rax
	xorl	%edx, %edx
	movq	%rax, 8(%rsp)
	jmp	.L106
	.cfi_endproc
.LFE39:
	.size	calc, .-calc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.text
	.p2align 4
	.globl	run
	.type	run, @function
run:
.LFB40:
	.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
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %rdi
	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
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L209
	leaq	a(%rip), %r13
	xorl	%ebx, %ebx
	movq	%r13, %rbp
	.p2align 4,,10
	.p2align 3
.L201:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r12d
	addq	$4, %rbp
	cmpl	%ebx, %r12d
	jg	.L201
	movl	$8, %esi
	movl	$160801, %edi
	call	calloc@PLT
	movq	%rax, %r14
	cmpl	$1, %r12d
	jle	.L209
	movslq	%r12d, %rax
	leaq	(%r14,%rax,8), %rbx
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	jg	.L200
	movabsq	$1000000000000000000, %r15
	movl	$1, %r9d
.L202:
	movl	%r9d, %esi
	xorl	%edi, %edi
	movq	%r14, %rdx
	call	calc
	movl	%r9d, %edi
	movq	%r14, %rdx
	movl	%r12d, %esi
	movq	%rax, %rbp
	call	calc
	addq	%rbp, %rax
	cmpq	%rax, %r15
	cmovg	%rax, %r15
	addl	$1, %r9d
	cmpl	%r9d, %r12d
	jne	.L202
	leal	-1(%r12), %eax
	cmpl	$2, %eax
	jbe	.L203
	movl	%r12d, %edx
	leaq	a(%rip), %rax
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	leaq	16(%rax), %rcx
	pxor	%xmm4, %xmm4
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rcx, %rdx
	.p2align 4,,10
	.p2align 3
.L204:
	movdqa	(%rax), %xmm1
	movdqa	%xmm4, %xmm2
	addq	$16, %rax
	pcmpgtd	%xmm1, %xmm2
	movdqa	%xmm1, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm1
	paddq	%xmm3, %xmm0
	paddq	%xmm1, %xmm0
	cmpq	%rdx, %rax
	jne	.L204
	movdqa	%xmm0, %xmm1
	movl	%r12d, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	paddq	%xmm1, %xmm0
	movq	%xmm0, %rdx
	testb	$3, %r12b
	je	.L205
	movslq	%eax, %rcx
	addl	$1, %eax
	movslq	0(%r13,%rcx,4), %rcx
	addq	%rcx, %rdx
	cmpl	%eax, %r12d
	jle	.L205
.L206:
	movslq	%eax, %rcx
	addl	$1, %eax
	movslq	0(%r13,%rcx,4), %rcx
	addq	%rcx, %rdx
	cmpl	%eax, %r12d
	jle	.L205
	cltq
	movslq	0(%r13,%rax,4), %rax
	addq	%rax, %rdx
.L205:
	addq	%r15, %rdx
	movq	%rdx, (%rbx)
.L200:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L215
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L209:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L200
.L203:
	movslq	a(%rip), %rdx
	movl	$1, %eax
	jmp	.L206
.L215:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	run, .-run
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	call	run
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE41:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400
a:
	.zero	400
	.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
	.p2align 4
	.globl	calc
	.type	calc, @function
calc:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%esi, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	subl	%edi, %eax
	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
	subq	$280, %rsp
	.cfi_def_cfa_offset 336
	movl	%edi, 64(%rsp)
	movl	%esi, 140(%rsp)
	movq	$0, 72(%rsp)
	cmpl	$1, %eax
	jle	.L1
	imull	$401, %edi, %eax
	movl	%esi, %ebx
	movl	%eax, 104(%rsp)
	addl	%esi, %eax
	cltq
	leaq	(%rdx,%rax,8), %rax
	movq	%rax, 256(%rsp)
	movq	(%rax), %rax
	movq	%rax, 72(%rsp)
	testq	%rax, %rax
	jg	.L1
	movabsq	$1000000000000000000, %rax
	leal	1(%rdi), %ecx
	movl	%ecx, 184(%rsp)
	movq	%rax, 72(%rsp)
	cmpl	%ecx, %esi
	jle	.L3
	subl	%ecx, %ebx
	movslq	%edi, %rax
	movslq	%ecx, %rcx
	movl	$1, 136(%rsp)
	imull	$401, %ecx, %esi
	movq	%rdx, %r15
	leaq	4(,%rax,4), %rax
	movl	%ebx, 160(%rsp)
	leaq	a(%rip), %rbx
	movl	$0, 224(%rsp)
	leaq	(%rbx,%rax), %rdi
	leaq	-4(%rbx,%rax), %rax
	movq	%rbx, 8(%rsp)
	movq	%rdi, 152(%rsp)
	movq	%rcx, %rdi
	leaq	(%rbx,%rcx,4), %rcx
	movl	%esi, 264(%rsp)
	movl	%edi, %r12d
	movq	%rcx, 240(%rsp)
	movq	%rax, 200(%rsp)
	movl	%esi, 68(%rsp)
.L104:
	cmpl	$1, 136(%rsp)
	movq	$0, 16(%rsp)
	jle	.L4
	movl	104(%rsp), %eax
	addl	%r12d, %eax
	cltq
	leaq	(%r15,%rax,8), %rax
	movq	%rax, 192(%rsp)
	movq	(%rax), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	jg	.L4
	movl	184(%rsp), %r14d
	movabsq	$1000000000000000000, %rax
	movq	%rax, 16(%rsp)
	cmpl	%r12d, %r14d
	jge	.L5
	movl	264(%rsp), %eax
	movl	$1, 88(%rsp)
	movq	%r15, %rbp
	addl	%r12d, %eax
	movl	%eax, 108(%rsp)
	movq	240(%rsp), %rax
	movq	%rax, 128(%rsp)
	movl	224(%rsp), %eax
	movl	%eax, 92(%rsp)
.L49:
	movl	88(%rsp), %ecx
	movq	$0, (%rsp)
	cmpl	$1, %ecx
	jle	.L6
	movl	104(%rsp), %eax
	addl	%r14d, %eax
	cltq
	leaq	0(%rbp,%rax,8), %rax
	movq	%rax, 96(%rsp)
	movq	(%rax), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	jg	.L6
	movl	184(%rsp), %r13d
	movabsq	$1000000000000000000, %rax
	movq	%rax, (%rsp)
	cmpl	%r14d, %r13d
	jge	.L7
	leal	-1(%rcx), %eax
	movl	$1, 24(%rsp)
	movl	%eax, 40(%rsp)
	movl	264(%rsp), %eax
	movl	%r12d, 144(%rsp)
	movl	%r13d, %r12d
	addl	%r14d, %eax
	movl	%eax, 48(%rsp)
	movq	240(%rsp), %rax
	movq	%rax, 56(%rsp)
.L22:
	xorl	%r15d, %r15d
	cmpl	$1, 24(%rsp)
	jle	.L8
	movl	104(%rsp), %eax
	addl	%r12d, %eax
	cltq
	leaq	0(%rbp,%rax,8), %rax
	movq	(%rax), %r15
	movq	%rax, 32(%rsp)
	testq	%r15, %r15
	jg	.L8
	movl	184(%rsp), %eax
	movabsq	$1000000000000000000, %r15
	cmpl	%r12d, %eax
	jge	.L9
	movl	64(%rsp), %ebx
	movl	%r14d, 80(%rsp)
	movl	%eax, %r13d
	movq	%r15, %r14
.L10:
	movl	%r13d, %esi
	movq	%rbp, %rdx
	movl	%ebx, %edi
	call	calc
	movl	%r13d, %edi
	movq	%rbp, %rdx
	movl	%r12d, %esi
	movq	%rax, %r15
	call	calc
	addq	%r15, %rax
	cmpq	%rax, %r14
	cmovg	%rax, %r14
	addl	$1, %r13d
	cmpl	%r13d, %r12d
	jne	.L10
	movq	%r14, %r15
	movl	80(%rsp), %r14d
.L9:
	cmpl	%r12d, 64(%rsp)
	jge	.L11
	movl	24(%rsp), %ebx
	leal	-1(%rbx), %eax
	cmpl	$2, %eax
	jbe	.L118
	movl	%ebx, %eax
	movq	200(%rsp), %rbx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbx,%rax), %rdx
	movq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L13:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rdx, %rax
	jne	.L13
	movl	24(%rsp), %edi
	movdqa	%xmm0, %xmm1
	movl	64(%rsp), %ecx
	psrldq	$8, %xmm1
	movl	%edi, %esi
	paddq	%xmm1, %xmm0
	andl	$-4, %esi
	movq	%xmm0, %rax
	leal	(%rsi,%rcx), %edx
	cmpl	%esi, %edi
	je	.L14
.L12:
	movq	8(%rsp), %rdi
	movslq	%edx, %rsi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rsi, %rax
	leal	1(%rdx), %esi
	cmpl	%esi, %r12d
	jle	.L14
	movslq	%esi, %rsi
	addl	$2, %edx
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rsi, %rax
	cmpl	%edx, %r12d
	jle	.L14
	movslq	%edx, %rdx
	movslq	(%rdi,%rdx,4), %rdx
	addq	%rdx, %rax
.L14:
	addq	%rax, %r15
.L11:
	movq	32(%rsp), %rax
	movq	%r15, (%rax)
.L8:
	leal	1(%r12), %r11d
	cmpl	$1, 40(%rsp)
	movl	%r11d, 32(%rsp)
	jle	.L15
	movslq	48(%rsp), %rax
	leaq	0(%rbp,%rax,8), %rax
	movq	%rax, 80(%rsp)
	movq	(%rax), %rax
	testq	%rax, %rax
	jg	.L187
	movabsq	$1000000000000000000, %r8
	cmpl	%r11d, %r14d
	jle	.L17
	movl	%r11d, 120(%rsp)
	movl	%r11d, %r13d
	movq	%r8, %rbx
	movq	%r15, 112(%rsp)
	movl	%r12d, %r15d
.L18:
	movl	%r13d, %esi
	movq	%rbp, %rdx
	movl	%r15d, %edi
	call	calc
	movl	%r13d, %edi
	movq	%rbp, %rdx
	movl	%r14d, %esi
	movq	%rax, %r12
	call	calc
	addq	%r12, %rax
	cmpq	%rax, %rbx
	cmovg	%rax, %rbx
	addl	$1, %r13d
	cmpl	%r14d, %r13d
	jne	.L18
	movl	%r15d, %r12d
	movl	120(%rsp), %r11d
	movq	112(%rsp), %r15
	movq	%rbx, %r8
.L17:
	movl	%r14d, %eax
	cmpl	%r14d, %r12d
	movl	$1, %esi
	cmovl	40(%rsp), %esi
	subl	%r11d, %eax
	cmpl	$2, %eax
	jbe	.L120
	cmpl	%r14d, %r12d
	jge	.L120
	movl	%esi, %eax
	movq	56(%rsp), %rcx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rcx,%rax), %rdx
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L20:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rdx, %rax
	jne	.L20
	movdqa	%xmm0, %xmm1
	movl	%esi, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddq	%xmm1, %xmm0
	addl	%edx, %r12d
	movq	%xmm0, %rax
	leal	1(%r12), %r11d
	cmpl	%edx, %esi
	je	.L21
.L19:
	movq	8(%rsp), %rbx
	movslq	%r12d, %rdx
	movslq	(%rbx,%rdx,4), %rdx
	addq	%rdx, %rax
	cmpl	%r11d, %r14d
	jle	.L21
	movslq	%r11d, %r11
	leal	2(%r12), %ecx
	movslq	(%rbx,%r11,4), %rdx
	addq	%rdx, %rax
	cmpl	%ecx, %r14d
	jle	.L21
	movslq	%ecx, %rcx
	movslq	(%rbx,%rcx,4), %rdx
	addq	%rdx, %rax
.L21:
	leaq	(%r8,%rax), %r10
	movq	80(%rsp), %rax
	addq	%r10, %r15
	movq	%r10, (%rax)
.L15:
	movq	(%rsp), %rax
	cmpq	%r15, %rax
	cmovle	%rax, %r15
	addl	$1, 24(%rsp)
	subl	$1, 40(%rsp)
	addl	$401, 48(%rsp)
	addq	$4, 56(%rsp)
	movq	%r15, (%rsp)
	cmpl	32(%rsp), %r14d
	je	.L188
	movl	32(%rsp), %r12d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L3:
	movl	140(%rsp), %esi
	movl	64(%rsp), %ecx
	cmpl	%ecx, %esi
	jle	.L105
	subl	%ecx, %esi
	leal	-1(%rsi), %eax
	cmpl	$2, %eax
	jbe	.L153
	movslq	%ecx, %rax
	leaq	a(%rip), %rcx
	pxor	%xmm0, %xmm0
	leaq	(%rcx,%rax,4), %rdx
	movl	%esi, %eax
	movq	%rcx, 8(%rsp)
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	leal	-1(%rax), %ecx
	leaq	16(%rdx), %rax
	salq	$4, %rcx
	addq	%rax, %rcx
	jmp	.L107
	.p2align 4,,10
	.p2align 3
.L189:
	addq	$16, %rax
.L107:
	movdqu	(%rdx), %xmm2
	movdqa	%xmm4, %xmm3
	movq	%rax, %rdx
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rcx, %rax
	jne	.L189
	movdqa	%xmm0, %xmm1
	movl	%esi, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	addl	%eax, 64(%rsp)
	movl	64(%rsp), %ecx
	paddq	%xmm1, %xmm0
	movq	%xmm0, %rdx
	cmpl	%eax, %esi
	je	.L108
	leal	1(%rcx), %eax
	movl	%eax, 184(%rsp)
.L106:
	movq	8(%rsp), %rbx
	movslq	%ecx, %rax
	movl	140(%rsp), %edi
	movslq	(%rbx,%rax,4), %rax
	addq	%rax, %rdx
	movslq	184(%rsp), %rax
	cmpl	%eax, %edi
	jle	.L108
	movslq	(%rbx,%rax,4), %rax
	addq	%rax, %rdx
	movl	%ecx, %eax
	addl	$2, %eax
	cmpl	%eax, %edi
	jle	.L108
	cltq
	movslq	(%rbx,%rax,4), %rax
	addq	%rax, %rdx
.L108:
	addq	%rdx, 72(%rsp)
.L105:
	movq	256(%rsp), %rax
	movq	72(%rsp), %rbx
	movq	%rbx, (%rax)
.L1:
	movq	72(%rsp), %rax
	addq	$280, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L188:
	.cfi_restore_state
	movl	144(%rsp), %r12d
.L7:
	cmpl	%r14d, 64(%rsp)
	jge	.L23
	movl	88(%rsp), %edi
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L122
	movl	%edi, %eax
	movq	200(%rsp), %rbx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbx,%rax), %rcx
	movq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L25:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rcx, %rax
	jne	.L25
	movl	88(%rsp), %edi
	movdqa	%xmm0, %xmm1
	movl	64(%rsp), %ecx
	psrldq	$8, %xmm1
	movl	%edi, %esi
	paddq	%xmm1, %xmm0
	andl	$-4, %esi
	movq	%xmm0, %rax
	addl	%esi, %ecx
	cmpl	%esi, %edi
	je	.L26
.L24:
	movq	8(%rsp), %rdi
	movslq	%ecx, %rsi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rsi, %rax
	leal	1(%rcx), %esi
	cmpl	%esi, %r14d
	jle	.L26
	movslq	%esi, %rsi
	addl	$2, %ecx
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rsi, %rax
	cmpl	%ecx, %r14d
	jle	.L26
	movslq	%ecx, %rcx
	movslq	(%rdi,%rcx,4), %rcx
	addq	%rcx, %rax
.L26:
	addq	%rax, (%rsp)
.L23:
	movq	96(%rsp), %rax
	movq	(%rsp), %rcx
	movq	%rcx, (%rax)
.L6:
	leal	1(%r14), %eax
	cmpl	$1, 92(%rsp)
	movl	%eax, 56(%rsp)
	movl	%eax, 96(%rsp)
	movslq	108(%rsp), %rax
	leal	401(%rax), %ebx
	movl	%ebx, 120(%rsp)
	jle	.L27
	leaq	0(%rbp,%rax,8), %rax
	movq	%rax, 168(%rsp)
	movq	(%rax), %rax
	testq	%rax, %rax
	jg	.L184
	movabsq	$1000000000000000000, %rax
	movl	56(%rsp), %r13d
	movq	%rax, 24(%rsp)
	cmpl	%r13d, %r12d
	jle	.L29
	movl	%r12d, %eax
	movq	8(%rsp), %rcx
	movl	$1, 32(%rsp)
	subl	%r13d, %eax
	movl	%eax, 48(%rsp)
	movl	120(%rsp), %eax
	movl	%eax, 80(%rsp)
	movslq	%r13d, %rax
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, 112(%rsp)
	movl	108(%rsp), %eax
	movl	%r14d, 108(%rsp)
	movl	%r13d, %r14d
	subl	%r12d, %eax
	movl	%eax, 164(%rsp)
.L44:
	xorl	%r15d, %r15d
	cmpl	$1, 32(%rsp)
	jle	.L30
	movl	164(%rsp), %eax
	addl	%r14d, %eax
	cltq
	leaq	0(%rbp,%rax,8), %rax
	movq	(%rax), %r15
	movq	%rax, 40(%rsp)
	testq	%r15, %r15
	jg	.L30
	movabsq	$1000000000000000000, %r15
	movl	56(%rsp), %eax
	cmpl	%eax, %r14d
	jle	.L31
	movl	108(%rsp), %ebx
	movl	%r12d, 144(%rsp)
	movl	%eax, %r13d
	movq	%r15, %r12
.L32:
	movl	%r13d, %esi
	movq	%rbp, %rdx
	movl	%ebx, %edi
	call	calc
	movl	%r13d, %edi
	movq	%rbp, %rdx
	movl	%r14d, %esi
	movq	%rax, %r15
	call	calc
	addq	%r15, %rax
	cmpq	%rax, %r12
	cmovg	%rax, %r12
	addl	$1, %r13d
	cmpl	%r14d, %r13d
	jne	.L32
	movq	%r12, %r15
	movl	144(%rsp), %r12d
.L31:
	cmpl	108(%rsp), %r14d
	jle	.L33
	movl	32(%rsp), %ecx
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L126
	movl	%ecx, %eax
	movq	128(%rsp), %rcx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rcx,%rax), %rdx
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L35:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rdx, %rax
	jne	.L35
	movl	32(%rsp), %ebx
	movdqa	%xmm0, %xmm1
	movl	108(%rsp), %ecx
	psrldq	$8, %xmm1
	movl	%ebx, %esi
	paddq	%xmm1, %xmm0
	andl	$-4, %esi
	movq	%xmm0, %rax
	leal	(%rsi,%rcx), %edx
	cmpl	%esi, %ebx
	je	.L36
.L34:
	movq	8(%rsp), %rbx
	movslq	%edx, %rsi
	movslq	(%rbx,%rsi,4), %rsi
	addq	%rsi, %rax
	leal	1(%rdx), %esi
	cmpl	%esi, %r14d
	jle	.L36
	movslq	%esi, %rsi
	addl	$2, %edx
	movslq	(%rbx,%rsi,4), %rsi
	addq	%rsi, %rax
	cmpl	%edx, %r14d
	jle	.L36
	movslq	%edx, %rdx
	movslq	(%rbx,%rdx,4), %rdx
	addq	%rdx, %rax
.L36:
	addq	%rax, %r15
.L33:
	movq	40(%rsp), %rax
	movq	%r15, (%rax)
.L30:
	leal	1(%r14), %r11d
	cmpl	$1, 48(%rsp)
	movl	%r11d, 40(%rsp)
	jle	.L37
	movslq	80(%rsp), %rax
	leaq	0(%rbp,%rax,8), %rax
	movq	%rax, 144(%rsp)
	movq	(%rax), %rax
	testq	%rax, %rax
	jg	.L190
	movabsq	$1000000000000000000, %r8
	cmpl	%r11d, %r12d
	jle	.L39
	movl	%r11d, 188(%rsp)
	movl	%r11d, %r13d
	movq	%r8, %rbx
	movq	%r15, 176(%rsp)
	movl	%r14d, %r15d
.L40:
	movl	%r13d, %esi
	movq	%rbp, %rdx
	movl	%r15d, %edi
	call	calc
	movl	%r13d, %edi
	movq	%rbp, %rdx
	movl	%r12d, %esi
	movq	%rax, %r14
	call	calc
	addq	%r14, %rax
	cmpq	%rax, %rbx
	cmovg	%rax, %rbx
	addl	$1, %r13d
	cmpl	%r12d, %r13d
	jne	.L40
	movl	%r15d, %r14d
	movl	188(%rsp), %r11d
	movq	176(%rsp), %r15
	movq	%rbx, %r8
.L39:
	movl	%r12d, %eax
	cmpl	%r12d, %r14d
	movl	$1, %esi
	cmovl	48(%rsp), %esi
	subl	%r11d, %eax
	cmpl	$2, %eax
	jbe	.L128
	cmpl	%r12d, %r14d
	jge	.L128
	movl	%esi, %eax
	movq	112(%rsp), %rcx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rcx,%rax), %rdx
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L42:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rdx, %rax
	jne	.L42
	movdqa	%xmm0, %xmm1
	movl	%esi, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddq	%xmm1, %xmm0
	addl	%edx, %r14d
	movq	%xmm0, %rax
	leal	1(%r14), %r11d
	cmpl	%edx, %esi
	je	.L43
.L41:
	movq	8(%rsp), %rdi
	movslq	%r14d, %rdx
	movslq	(%rdi,%rdx,4), %rdx
	addq	%rdx, %rax
	cmpl	%r11d, %r12d
	jle	.L43
	movslq	%r11d, %r11
	leal	2(%r14), %ecx
	movslq	(%rdi,%r11,4), %rdx
	addq	%rdx, %rax
	cmpl	%ecx, %r12d
	jle	.L43
	movslq	%ecx, %rcx
	movslq	(%rdi,%rcx,4), %rdx
	addq	%rdx, %rax
.L43:
	leaq	(%r8,%rax), %r10
	movq	144(%rsp), %rax
	addq	%r10, %r15
	movq	%r10, (%rax)
.L37:
	movq	24(%rsp), %rax
	cmpq	%r15, %rax
	cmovle	%rax, %r15
	addl	$1, 32(%rsp)
	subl	$1, 48(%rsp)
	addl	$401, 80(%rsp)
	addq	$4, 112(%rsp)
	movq	%r15, 24(%rsp)
	cmpl	40(%rsp), %r12d
	je	.L191
	movl	40(%rsp), %r14d
	jmp	.L44
	.p2align 4,,10
	.p2align 3
.L191:
	movl	108(%rsp), %r14d
.L29:
	cmpl	%r12d, %r14d
	jge	.L45
	movl	%r12d, %eax
	subl	56(%rsp), %eax
	cmpl	$2, %eax
	jbe	.L130
	movl	92(%rsp), %eax
	movq	128(%rsp), %rdi
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rdi,%rax), %rcx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L47:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rax, %rcx
	jne	.L47
	movl	92(%rsp), %ebx
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	movl	%ebx, %eax
	paddq	%xmm1, %xmm0
	andl	$-4, %eax
	movq	%xmm0, %rcx
	addl	%eax, %r14d
	cmpl	%eax, %ebx
	je	.L48
	leal	1(%r14), %eax
	movl	%eax, 56(%rsp)
.L46:
	movq	8(%rsp), %rbx
	movslq	%r14d, %rax
	movslq	(%rbx,%rax,4), %rax
	addq	%rax, %rcx
	movslq	56(%rsp), %rax
	cmpl	%r12d, %eax
	jge	.L48
	movslq	(%rbx,%rax,4), %rax
	addl	$2, %r14d
	addq	%rax, %rcx
	cmpl	%r12d, %r14d
	jge	.L48
	movslq	%r14d, %r14
	movslq	(%rbx,%r14,4), %rax
	addq	%rax, %rcx
.L48:
	addq	%rcx, 24(%rsp)
.L45:
	movq	168(%rsp), %rcx
	movq	24(%rsp), %rax
	movq	%rax, (%rcx)
.L184:
	addq	%rax, (%rsp)
.L27:
	movq	16(%rsp), %rbx
	movq	(%rsp), %rax
	cmpq	%rax, %rbx
	cmovle	%rbx, %rax
	addl	$1, 88(%rsp)
	subl	$1, 92(%rsp)
	movq	%rax, 16(%rsp)
	movl	120(%rsp), %eax
	addq	$4, 128(%rsp)
	movl	%eax, 108(%rsp)
	cmpl	96(%rsp), %r12d
	je	.L192
	movl	96(%rsp), %r14d
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L192:
	movq	%rbp, %r15
.L5:
	cmpl	%r12d, 64(%rsp)
	jge	.L50
	cmpl	$2, 224(%rsp)
	jbe	.L132
	movl	136(%rsp), %eax
	movq	200(%rsp), %rbx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbx,%rax), %rcx
	movq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L52:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rcx, %rax
	jne	.L52
	movl	136(%rsp), %ebx
	movdqa	%xmm0, %xmm1
	movl	64(%rsp), %eax
	psrldq	$8, %xmm1
	movl	%ebx, %ecx
	paddq	%xmm1, %xmm0
	andl	$-4, %ecx
	movq	%xmm0, %rsi
	addl	%ecx, %eax
	cmpl	%ecx, %ebx
	je	.L53
.L51:
	movq	8(%rsp), %rdi
	movslq	%eax, %rcx
	movslq	(%rdi,%rcx,4), %rcx
	addq	%rcx, %rsi
	leal	1(%rax), %ecx
	cmpl	%ecx, %r12d
	jle	.L53
	movslq	%ecx, %rcx
	addl	$2, %eax
	movslq	(%rdi,%rcx,4), %rcx
	addq	%rcx, %rsi
	cmpl	%eax, %r12d
	jle	.L53
	cltq
	movslq	(%rdi,%rax,4), %rax
	addq	%rax, %rsi
.L53:
	addq	%rsi, 16(%rsp)
.L50:
	movq	192(%rsp), %rax
	movq	16(%rsp), %rcx
	movq	%rcx, (%rax)
.L4:
	movl	68(%rsp), %ebx
	leal	1(%r12), %eax
	cmpl	$1, 160(%rsp)
	movl	%eax, 128(%rsp)
	movl	%eax, 168(%rsp)
	leal	401(%rbx), %eax
	movl	%eax, 188(%rsp)
	je	.L54
	movl	140(%rsp), %eax
	addl	%ebx, %eax
	cltq
	leaq	(%r15,%rax,8), %rax
	movq	%rax, 232(%rsp)
	movq	(%rax), %rax
	testq	%rax, %rax
	jg	.L193
	movl	140(%rsp), %ebx
	movl	128(%rsp), %r14d
	cmpl	%r14d, %ebx
	jle	.L56
	imull	$401, %r14d, %eax
	movq	8(%rsp), %rdi
	movl	%ebx, %ecx
	movl	$1, 88(%rsp)
	subl	%r14d, %ecx
	movl	%r12d, 164(%rsp)
	movq	%r15, %rbp
	movl	%ebx, %r12d
	movl	%ecx, 268(%rsp)
	addl	%ebx, %eax
	movl	%ecx, 92(%rsp)
	movl	%eax, 108(%rsp)
	movslq	%r14d, %rax
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, 248(%rsp)
	movq	%rax, 144(%rsp)
	movabsq	$1000000000000000000, %rax
	movq	%rax, 96(%rsp)
.L100:
	movl	88(%rsp), %edi
	movq	$0, (%rsp)
	cmpl	$1, %edi
	jle	.L57
	movl	68(%rsp), %eax
	addl	%r14d, %eax
	cltq
	leaq	0(%rbp,%rax,8), %rax
	movq	%rax, 120(%rsp)
	movq	(%rax), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	jg	.L57
	movl	128(%rsp), %r13d
	cmpl	%r13d, %r14d
	jle	.L134
	leal	-1(%rdi), %eax
	movl	136(%rsp), %ecx
	movl	$1, 24(%rsp)
	movl	%eax, 40(%rsp)
	movl	188(%rsp), %eax
	movl	%r12d, 208(%rsp)
	movl	%r13d, %r12d
	addl	%r14d, %eax
	movl	%eax, 48(%rsp)
	movq	248(%rsp), %rax
	movq	%rax, 56(%rsp)
	movabsq	$1000000000000000000, %rax
	movq	%rax, (%rsp)
	movl	64(%rsp), %eax
	addl	%ecx, %eax
	movl	%eax, 112(%rsp)
.L73:
	xorl	%r15d, %r15d
	cmpl	$1, 24(%rsp)
	jle	.L59
	movl	68(%rsp), %eax
	addl	%r12d, %eax
	cltq
	leaq	0(%rbp,%rax,8), %rax
	movq	(%rax), %r15
	movq	%rax, 32(%rsp)
	testq	%r15, %r15
	jg	.L59
	movl	128(%rsp), %eax
	movabsq	$1000000000000000000, %r15
	cmpl	%eax, %r12d
	jle	.L60
	movl	164(%rsp), %ebx
	movl	%r14d, 80(%rsp)
	movl	%eax, %r13d
	movq	%r15, %r14
.L61:
	movl	%r13d, %esi
	movq	%rbp, %rdx
	movl	%ebx, %edi
	call	calc
	movl	%r13d, %edi
	movq	%rbp, %rdx
	movl	%r12d, %esi
	movq	%rax, %r15
	call	calc
	addq	%r15, %rax
	cmpq	%rax, %r14
	cmovg	%rax, %r14
	addl	$1, %r13d
	cmpl	%r12d, %r13d
	jne	.L61
	movq	%r14, %r15
	movl	80(%rsp), %r14d
.L60:
	cmpl	112(%rsp), %r12d
	jle	.L62
	movl	24(%rsp), %ebx
	leal	-1(%rbx), %eax
	cmpl	$2, %eax
	jbe	.L137
	movl	%ebx, %eax
	movq	152(%rsp), %rbx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbx,%rax), %rdx
	movq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L64:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rax, %rdx
	jne	.L64
	movl	24(%rsp), %ecx
	movdqa	%xmm0, %xmm1
	movl	164(%rsp), %edi
	psrldq	$8, %xmm1
	movl	%ecx, %esi
	paddq	%xmm1, %xmm0
	andl	$-4, %esi
	movq	%xmm0, %rax
	leal	(%rsi,%rdi), %edx
	cmpl	%esi, %ecx
	je	.L65
.L63:
	movq	8(%rsp), %rcx
	movslq	%edx, %rsi
	movslq	(%rcx,%rsi,4), %rsi
	addq	%rsi, %rax
	leal	1(%rdx), %esi
	cmpl	%esi, %r12d
	jle	.L65
	movslq	%esi, %rsi
	addl	$2, %edx
	movslq	(%rcx,%rsi,4), %rsi
	addq	%rsi, %rax
	cmpl	%edx, %r12d
	jle	.L65
	movslq	%edx, %rdx
	movslq	(%rcx,%rdx,4), %rdx
	addq	%rdx, %rax
.L65:
	addq	%rax, %r15
.L62:
	movq	32(%rsp), %rax
	movq	%r15, (%rax)
.L59:
	leal	1(%r12), %r11d
	cmpl	$1, 40(%rsp)
	movl	%r11d, 32(%rsp)
	jle	.L66
	movslq	48(%rsp), %rax
	leaq	0(%rbp,%rax,8), %rax
	movq	%rax, 80(%rsp)
	movq	(%rax), %rax
	testq	%rax, %rax
	jg	.L194
	movabsq	$1000000000000000000, %r8
	cmpl	%r11d, %r14d
	jle	.L68
	movl	%r11d, 192(%rsp)
	movl	%r11d, %r13d
	movq	%r8, %rbx
	movq	%r15, 176(%rsp)
	movl	%r12d, %r15d
.L69:
	movl	%r13d, %esi
	movq	%rbp, %rdx
	movl	%r15d, %edi
	call	calc
	movl	%r13d, %edi
	movq	%rbp, %rdx
	movl	%r14d, %esi
	movq	%rax, %r12
	call	calc
	addq	%r12, %rax
	cmpq	%rax, %rbx
	cmovg	%rax, %rbx
	addl	$1, %r13d
	cmpl	%r14d, %r13d
	jne	.L69
	movl	%r15d, %r12d
	movl	192(%rsp), %r11d
	movq	176(%rsp), %r15
	movq	%rbx, %r8
.L68:
	movl	%r14d, %eax
	cmpl	%r14d, %r12d
	movl	$1, %esi
	cmovl	40(%rsp), %esi
	subl	%r11d, %eax
	cmpl	$2, %eax
	jbe	.L139
	cmpl	%r14d, %r12d
	jge	.L139
	movl	%esi, %eax
	movq	56(%rsp), %rcx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rcx,%rax), %rdx
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L71:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rdx, %rax
	jne	.L71
	movdqa	%xmm0, %xmm1
	movl	%esi, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddq	%xmm1, %xmm0
	addl	%edx, %r12d
	movq	%xmm0, %rax
	leal	1(%r12), %r11d
	cmpl	%edx, %esi
	je	.L72
.L70:
	movq	8(%rsp), %rbx
	movslq	%r12d, %rdx
	movslq	(%rbx,%rdx,4), %rdx
	addq	%rdx, %rax
	cmpl	%r14d, %r11d
	jge	.L72
	movslq	%r11d, %r11
	leal	2(%r12), %ecx
	movslq	(%rbx,%r11,4), %rdx
	addq	%rdx, %rax
	cmpl	%ecx, %r14d
	jle	.L72
	movslq	%ecx, %rcx
	movslq	(%rbx,%rcx,4), %rdx
	addq	%rdx, %rax
.L72:
	leaq	(%r8,%rax), %r10
	movq	80(%rsp), %rax
	addq	%r10, %r15
	movq	%r10, (%rax)
.L66:
	movq	(%rsp), %rax
	cmpq	%r15, %rax
	cmovle	%rax, %r15
	addl	$1, 24(%rsp)
	subl	$1, 40(%rsp)
	addl	$401, 48(%rsp)
	addq	$4, 56(%rsp)
	movq	%r15, (%rsp)
	cmpl	32(%rsp), %r14d
	je	.L195
	movl	32(%rsp), %r12d
	jmp	.L73
	.p2align 4,,10
	.p2align 3
.L195:
	movl	208(%rsp), %r12d
.L58:
	cmpl	112(%rsp), %r14d
	jle	.L74
	movl	88(%rsp), %ebx
	leal	-1(%rbx), %eax
	cmpl	$2, %eax
	jbe	.L141
	movl	%ebx, %eax
	movq	152(%rsp), %rbx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbx,%rax), %rcx
	movq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L76:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rcx, %rax
	jne	.L76
	movl	88(%rsp), %edi
	movdqa	%xmm0, %xmm1
	movl	164(%rsp), %ecx
	psrldq	$8, %xmm1
	movl	%edi, %esi
	paddq	%xmm1, %xmm0
	andl	$-4, %esi
	movq	%xmm0, %rax
	addl	%esi, %ecx
	cmpl	%edi, %esi
	je	.L77
.L75:
	movq	8(%rsp), %rdi
	movslq	%ecx, %rsi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rsi, %rax
	leal	1(%rcx), %esi
	cmpl	%r14d, %esi
	jge	.L77
	movslq	%esi, %rsi
	addl	$2, %ecx
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rsi, %rax
	cmpl	%r14d, %ecx
	jge	.L77
	movslq	%ecx, %rcx
	movslq	(%rdi,%rcx,4), %rcx
	addq	%rcx, %rax
.L77:
	addq	%rax, (%rsp)
.L74:
	movq	120(%rsp), %rax
	movq	(%rsp), %rcx
	movq	%rcx, (%rax)
.L57:
	leal	1(%r14), %eax
	cmpl	$1, 92(%rsp)
	movl	%eax, 40(%rsp)
	movslq	108(%rsp), %rax
	leal	401(%rax), %edi
	movl	%edi, 120(%rsp)
	jle	.L78
	leaq	0(%rbp,%rax,8), %rax
	movq	%rax, 208(%rsp)
	movq	(%rax), %rax
	testq	%rax, %rax
	jg	.L185
	movabsq	$1000000000000000000, %rax
	movl	40(%rsp), %r13d
	movq	%rax, 24(%rsp)
	cmpl	%r13d, %r12d
	jle	.L80
	movl	%r12d, %eax
	movq	8(%rsp), %rcx
	movl	$1, 32(%rsp)
	subl	%r13d, %eax
	movl	%eax, 56(%rsp)
	movl	120(%rsp), %eax
	movl	%eax, 80(%rsp)
	movslq	%r13d, %rax
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, 112(%rsp)
	movl	108(%rsp), %eax
	movl	%r14d, 108(%rsp)
	movl	%r13d, %r14d
	subl	%r12d, %eax
	movl	%eax, 192(%rsp)
.L95:
	xorl	%r15d, %r15d
	cmpl	$1, 32(%rsp)
	jle	.L81
	movl	192(%rsp), %eax
	addl	%r14d, %eax
	cltq
	leaq	0(%rbp,%rax,8), %rax
	movq	(%rax), %r15
	movq	%rax, 48(%rsp)
	testq	%r15, %r15
	jg	.L81
	movabsq	$1000000000000000000, %r15
	movl	40(%rsp), %eax
	cmpl	%eax, %r14d
	jle	.L82
	movl	108(%rsp), %ebx
	movl	%r12d, 176(%rsp)
	movl	%eax, %r13d
	movq	%r15, %r12
.L83:
	movl	%r13d, %esi
	movq	%rbp, %rdx
	movl	%ebx, %edi
	call	calc
	movl	%r13d, %edi
	movq	%rbp, %rdx
	movl	%r14d, %esi
	movq	%rax, %r15
	call	calc
	addq	%r15, %rax
	cmpq	%rax, %r12
	cmovg	%rax, %r12
	addl	$1, %r13d
	cmpl	%r14d, %r13d
	jne	.L83
	movq	%r12, %r15
	movl	176(%rsp), %r12d
.L82:
	cmpl	108(%rsp), %r14d
	jle	.L84
	movl	32(%rsp), %ecx
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L145
	movl	%ecx, %eax
	movq	144(%rsp), %rcx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rcx,%rax), %rdx
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L86:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rax, %rdx
	jne	.L86
	movl	32(%rsp), %edi
	movdqa	%xmm0, %xmm1
	movl	108(%rsp), %ecx
	psrldq	$8, %xmm1
	movl	%edi, %esi
	paddq	%xmm1, %xmm0
	andl	$-4, %esi
	movq	%xmm0, %rax
	leal	(%rsi,%rcx), %edx
	cmpl	%esi, %edi
	je	.L87
.L85:
	movq	8(%rsp), %rdi
	movslq	%edx, %rsi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rsi, %rax
	leal	1(%rdx), %esi
	cmpl	%r14d, %esi
	jge	.L87
	movslq	%esi, %rsi
	addl	$2, %edx
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rsi, %rax
	cmpl	%edx, %r14d
	jle	.L87
	movslq	%edx, %rdx
	movslq	(%rdi,%rdx,4), %rdx
	addq	%rdx, %rax
.L87:
	addq	%rax, %r15
.L84:
	movq	48(%rsp), %rax
	movq	%r15, (%rax)
.L81:
	leal	1(%r14), %r11d
	cmpl	$1, 56(%rsp)
	movl	%r11d, 48(%rsp)
	jle	.L88
	movslq	80(%rsp), %rax
	leaq	0(%rbp,%rax,8), %rax
	movq	%rax, 176(%rsp)
	movq	(%rax), %rax
	testq	%rax, %rax
	jg	.L196
	movabsq	$1000000000000000000, %r8
	cmpl	%r11d, %r12d
	jle	.L90
	movl	%r11d, 228(%rsp)
	movl	%r11d, %r13d
	movq	%r8, %rbx
	movq	%r15, 216(%rsp)
	movl	%r14d, %r15d
.L91:
	movl	%r13d, %esi
	movq	%rbp, %rdx
	movl	%r15d, %edi
	call	calc
	movl	%r13d, %edi
	movq	%rbp, %rdx
	movl	%r12d, %esi
	movq	%rax, %r14
	call	calc
	addq	%r14, %rax
	cmpq	%rax, %rbx
	cmovg	%rax, %rbx
	addl	$1, %r13d
	cmpl	%r13d, %r12d
	jne	.L91
	movl	%r15d, %r14d
	movl	228(%rsp), %r11d
	movq	216(%rsp), %r15
	movq	%rbx, %r8
.L90:
	movl	%r12d, %eax
	cmpl	%r14d, %r12d
	movl	$1, %esi
	cmovg	56(%rsp), %esi
	subl	%r11d, %eax
	cmpl	$2, %eax
	jbe	.L147
	cmpl	%r14d, %r12d
	jle	.L147
	movl	%esi, %eax
	movq	112(%rsp), %rcx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rcx,%rax), %rdx
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L93:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rax, %rdx
	jne	.L93
	movdqa	%xmm0, %xmm1
	movl	%esi, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddq	%xmm1, %xmm0
	addl	%edx, %r14d
	movq	%xmm0, %rax
	leal	1(%r14), %r11d
	cmpl	%edx, %esi
	je	.L94
.L92:
	movq	8(%rsp), %rdi
	movslq	%r14d, %rdx
	movslq	(%rdi,%rdx,4), %rdx
	addq	%rdx, %rax
	cmpl	%r11d, %r12d
	jle	.L94
	movslq	%r11d, %r11
	leal	2(%r14), %ecx
	movslq	(%rdi,%r11,4), %rdx
	addq	%rdx, %rax
	cmpl	%ecx, %r12d
	jle	.L94
	movslq	%ecx, %rcx
	movslq	(%rdi,%rcx,4), %rdx
	addq	%rdx, %rax
.L94:
	leaq	(%r8,%rax), %r10
	movq	176(%rsp), %rax
	addq	%r10, %r15
	movq	%r10, (%rax)
.L88:
	movq	24(%rsp), %rax
	cmpq	%r15, %rax
	cmovle	%rax, %r15
	addl	$1, 32(%rsp)
	subl	$1, 56(%rsp)
	addl	$401, 80(%rsp)
	addq	$4, 112(%rsp)
	movq	%r15, 24(%rsp)
	cmpl	48(%rsp), %r12d
	je	.L197
	movl	48(%rsp), %r14d
	jmp	.L95
	.p2align 4,,10
	.p2align 3
.L197:
	movl	108(%rsp), %r14d
.L80:
	cmpl	%r14d, %r12d
	jle	.L96
	movl	%r12d, %eax
	subl	40(%rsp), %eax
	cmpl	$2, %eax
	jbe	.L149
	movl	92(%rsp), %eax
	movq	144(%rsp), %rdi
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rdi,%rax), %rcx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L98:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rax, %rcx
	jne	.L98
	movl	92(%rsp), %ebx
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	movl	%ebx, %esi
	paddq	%xmm1, %xmm0
	andl	$-4, %esi
	movq	%xmm0, %rax
	leal	(%rsi,%r14), %ecx
	cmpl	%esi, %ebx
	je	.L99
.L97:
	movq	8(%rsp), %rbx
	movslq	%ecx, %rsi
	movslq	(%rbx,%rsi,4), %rsi
	addq	%rsi, %rax
	leal	1(%rcx), %esi
	cmpl	%esi, %r12d
	jle	.L99
	movslq	%esi, %rsi
	addl	$2, %ecx
	movslq	(%rbx,%rsi,4), %rsi
	addq	%rsi, %rax
	cmpl	%ecx, %r12d
	jle	.L99
	movslq	%ecx, %rcx
	movslq	(%rbx,%rcx,4), %rcx
	addq	%rcx, %rax
.L99:
	addq	%rax, 24(%rsp)
.L96:
	movq	208(%rsp), %rcx
	movq	24(%rsp), %rax
	movq	%rax, (%rcx)
.L185:
	addq	%rax, (%rsp)
.L78:
	movq	96(%rsp), %rdi
	movq	(%rsp), %rax
	cmpq	%rax, %rdi
	cmovle	%rdi, %rax
	addl	$1, 88(%rsp)
	subl	$1, 92(%rsp)
	movq	%rax, 96(%rsp)
	movl	120(%rsp), %eax
	addq	$4, 144(%rsp)
	movl	%eax, 108(%rsp)
	cmpl	40(%rsp), %r12d
	je	.L198
	movl	40(%rsp), %r14d
	jmp	.L100
	.p2align 4,,10
	.p2align 3
.L198:
	cmpl	$2, 268(%rsp)
	movl	164(%rsp), %r12d
	movq	%rbp, %r15
	jbe	.L151
	movl	160(%rsp), %eax
	movq	152(%rsp), %rbx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbx,%rax), %rcx
	movq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L102:
	movdqu	(%rax), %xmm2
	movdqa	%xmm4, %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%rax, %rcx
	jne	.L102
	movl	160(%rsp), %edi
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	movl	%edi, %eax
	paddq	%xmm1, %xmm0
	andl	$-4, %eax
	movq	%xmm0, %rcx
	addl	%eax, %r12d
	cmpl	%edi, %eax
	je	.L109
	leal	1(%r12), %eax
	movl	%eax, 128(%rsp)
.L101:
	movq	8(%rsp), %rdi
	movslq	%r12d, %rax
	movslq	(%rdi,%rax,4), %rax
	addq	%rax, %rcx
	cmpl	%r14d, %r12d
	jge	.L109
	movslq	128(%rsp), %rax
	movslq	(%rdi,%rax,4), %rax
	addq	%rax, %rcx
	leal	2(%r12), %eax
	cmpl	40(%rsp), %eax
	jge	.L109
	cltq
	movslq	(%rdi,%rax,4), %rax
	addq	%rax, %rcx
.L109:
	movq	232(%rsp), %rax
	addq	96(%rsp), %rcx
	addq	%rcx, 16(%rsp)
	movq	%rcx, (%rax)
.L54:
	movq	72(%rsp), %rcx
	movq	16(%rsp), %rax
	cmpq	%rax, %rcx
	cmovle	%rcx, %rax
	addl	$1, 224(%rsp)
	movl	168(%rsp), %ecx
	addl	$1, 136(%rsp)
	movq	%rax, 72(%rsp)
	movl	188(%rsp), %eax
	subl	$1, 160(%rsp)
	addq	$4, 152(%rsp)
	movl	%eax, 68(%rsp)
	cmpl	%ecx, 140(%rsp)
	je	.L3
	movl	%ecx, %r12d
	jmp	.L104
	.p2align 4,,10
	.p2align 3
.L196:
	addq	%rax, %r15
	jmp	.L88
	.p2align 4,,10
	.p2align 3
.L194:
	addq	%rax, %r15
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L190:
	addq	%rax, %r15
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L187:
	addq	%rax, %r15
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L193:
	addq	%rax, 16(%rsp)
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L134:
	movabsq	$1000000000000000000, %rax
	movl	136(%rsp), %ecx
	movq	%rax, (%rsp)
	movl	64(%rsp), %eax
	addl	%ecx, %eax
	movl	%eax, 112(%rsp)
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L120:
	xorl	%eax, %eax
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L147:
	xorl	%eax, %eax
	jmp	.L92
	.p2align 4,,10
	.p2align 3
.L139:
	xorl	%eax, %eax
	jmp	.L70
	.p2align 4,,10
	.p2align 3
.L128:
	xorl	%eax, %eax
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L56:
	movq	152(%rsp), %rax
	movslq	(%rax), %rcx
	movabsq	$1000000000000000000, %rax
	movq	%rax, 96(%rsp)
	jmp	.L109
.L137:
	movl	164(%rsp), %edx
	xorl	%eax, %eax
	jmp	.L63
.L145:
	movl	108(%rsp), %edx
	xorl	%eax, %eax
	jmp	.L85
.L126:
	movl	108(%rsp), %edx
	xorl	%eax, %eax
	jmp	.L34
.L118:
	movl	64(%rsp), %edx
	xorl	%eax, %eax
	jmp	.L12
.L122:
	movl	64(%rsp), %ecx
	xorl	%eax, %eax
	jmp	.L24
.L141:
	movl	164(%rsp), %ecx
	xorl	%eax, %eax
	jmp	.L75
.L130:
	xorl	%ecx, %ecx
	jmp	.L46
.L149:
	movl	%r14d, %ecx
	xorl	%eax, %eax
	jmp	.L97
.L132:
	movl	64(%rsp), %eax
	xorl	%esi, %esi
	jmp	.L51
.L151:
	xorl	%ecx, %ecx
	jmp	.L101
.L153:
	leaq	a(%rip), %rax
	xorl	%edx, %edx
	movq	%rax, 8(%rsp)
	jmp	.L106
	.cfi_endproc
.LFE39:
	.size	calc, .-calc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.text
	.p2align 4
	.globl	run
	.type	run, @function
run:
.LFB40:
	.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
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %rdi
	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
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L209
	leaq	a(%rip), %r13
	xorl	%ebx, %ebx
	movq	%r13, %rbp
	.p2align 4,,10
	.p2align 3
.L201:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r12d
	addq	$4, %rbp
	cmpl	%ebx, %r12d
	jg	.L201
	movl	$8, %esi
	movl	$160801, %edi
	call	calloc@PLT
	movq	%rax, %r14
	cmpl	$1, %r12d
	jle	.L209
	movslq	%r12d, %rax
	leaq	(%r14,%rax,8), %rbx
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	jg	.L200
	movabsq	$1000000000000000000, %r15
	movl	$1, %r9d
.L202:
	movl	%r9d, %esi
	xorl	%edi, %edi
	movq	%r14, %rdx
	call	calc
	movl	%r9d, %edi
	movq	%r14, %rdx
	movl	%r12d, %esi
	movq	%rax, %rbp
	call	calc
	addq	%rbp, %rax
	cmpq	%rax, %r15
	cmovg	%rax, %r15
	addl	$1, %r9d
	cmpl	%r9d, %r12d
	jne	.L202
	leal	-1(%r12), %eax
	cmpl	$2, %eax
	jbe	.L203
	movl	%r12d, %edx
	leaq	a(%rip), %rax
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	leaq	16(%rax), %rcx
	pxor	%xmm4, %xmm4
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rcx, %rdx
	.p2align 4,,10
	.p2align 3
.L204:
	movdqa	(%rax), %xmm1
	movdqa	%xmm4, %xmm2
	addq	$16, %rax
	pcmpgtd	%xmm1, %xmm2
	movdqa	%xmm1, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm1
	paddq	%xmm3, %xmm0
	paddq	%xmm1, %xmm0
	cmpq	%rdx, %rax
	jne	.L204
	movdqa	%xmm0, %xmm1
	movl	%r12d, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	paddq	%xmm1, %xmm0
	movq	%xmm0, %rdx
	testb	$3, %r12b
	je	.L205
	movslq	%eax, %rcx
	addl	$1, %eax
	movslq	0(%r13,%rcx,4), %rcx
	addq	%rcx, %rdx
	cmpl	%eax, %r12d
	jle	.L205
.L206:
	movslq	%eax, %rcx
	addl	$1, %eax
	movslq	0(%r13,%rcx,4), %rcx
	addq	%rcx, %rdx
	cmpl	%eax, %r12d
	jle	.L205
	cltq
	movslq	0(%r13,%rax,4), %rax
	addq	%rax, %rdx
.L205:
	addq	%r15, %rdx
	movq	%rdx, (%rbx)
.L200:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L215
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L209:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L200
.L203:
	movslq	a(%rip), %rdx
	movl	$1, %eax
	jmp	.L206
.L215:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	run, .-run
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	call	run
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE41:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400
a:
	.zero	400
	.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>

typedef long long int int64;

#define MIN(a,b) ((a)<(b)?(a):(b))

#define POS(i,j)  ((i)*(400+1)+(j))

int a[100];

int64 calc(int x,int y,int64 *dp){
  if(y-x<=1) return 0;
  if(dp[POS(x,y)]>0) return dp[POS(x,y)];
  int64 local=1000000000000000000LL;
  int i;
  for(i=x+1;i<y;i++){
    int64 t=calc(x,i,dp)+calc(i,y,dp);
    local=MIN(local,t);
  }
  int64 sum=0;
  for(i=x;i<y;i++) sum+=a[i];
  dp[POS(x,y)]=local+sum;
  return dp[POS(x,y)];
}

void run(void){
  int n;
  scanf("%d",&n);
  int i;
  for(i=0;i<n;i++) scanf("%d",a+i);
  int64 *dp=(int64 *)calloc((400+1)*(400+1),sizeof(int64));
  int64 ans=calc(0,n,dp);
  printf("%lld\n",ans);
}

int main(void){
  run();
  return 0;
}

6
7 9 8 6 1 1
 5
10 8 10 10 10
 3
1001000000 1000000000 1000000000
 4
10 20 30 46
 6
7 9 13 6 1 1
 5
19 8 10 10 10
 3
1001000000 1000000001 1000000000
 4
10 5 30 46
 6
7 9 13 6 1 2
 5
19 8 10 10 1

74
 114
 5001000000
 196
 84
 132
 5001000002
 151
 88
 106

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>

typedef long long int int64;

#define MIN(a,b) ((a)<(b)?(a):(b))

#define POS(i,j)  ((i)*(400+1)+(j))

int a[100];

int64 calc(int x,int y,int64 *dp){
  if(y-x<=1) return 0;
  if(dp[POS(x,y)]>0) return dp[POS(x,y)];
  int64 local=1000000000000000000LL;
  int i;
  for(i=x+1;i<y;i++){
    int64 t=calc(x,i,dp)+calc(i,y,dp);
    local=MIN(local,t);
  }
  int64 sum=0;
  for(i=x;i<y;i++) sum+=a[i];
  dp[POS(x,y)]=local+sum;
  return dp[POS(x,y)];
}

void run(void){
  int n;
  scanf("%d",&n);
  int i;
  for(i=0;i<n;i++) scanf("%d",a+i);
  int64 *dp=(int64 *)calloc((400+1)*(400+1),sizeof(int64));
  int64 ans=calc(0,n,dp);
  printf("%lld\n",ans);
}

int main(void){
  run();
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400
a:
	.zero	400
	.text
	.globl	calc
	.type	calc, @function
calc:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	movl	%edi, -52(%rbp)
	movl	%esi, -56(%rbp)
	movq	%rdx, -64(%rbp)
	movl	-56(%rbp), %eax
	subl	-52(%rbp), %eax
	cmpl	$1, %eax
	jg	.L2
	movl	$0, %eax
	jmp	.L3
.L2:
	movl	-52(%rbp), %eax
	imull	$401, %eax, %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jle	.L4
	movl	-52(%rbp), %eax
	imull	$401, %eax, %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	jmp	.L3
.L4:
	movabsq	$1000000000000000000, %rax
	movq	%rax, -40(%rbp)
	movl	-52(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -44(%rbp)
	jmp	.L5
.L6:
	movq	-64(%rbp), %rdx
	movl	-44(%rbp), %ecx
	movl	-52(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	calc
	movq	%rax, %rbx
	movq	-64(%rbp), %rdx
	movl	-56(%rbp), %ecx
	movl	-44(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	calc
	addq	%rbx, %rax
	movq	%rax, -24(%rbp)
	movq	-40(%rbp), %rdx
	movq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, -40(%rbp)
	addl	$1, -44(%rbp)
.L5:
	movl	-44(%rbp), %eax
	cmpl	-56(%rbp), %eax
	jl	.L6
	movq	$0, -32(%rbp)
	movl	-52(%rbp), %eax
	movl	%eax, -44(%rbp)
	jmp	.L7
.L8:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	addq	%rax, -32(%rbp)
	addl	$1, -44(%rbp)
.L7:
	movl	-44(%rbp), %eax
	cmpl	-56(%rbp), %eax
	jl	.L8
	movl	-52(%rbp), %eax
	imull	$401, %eax, %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	-40(%rbp), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
	movl	-52(%rbp), %eax
	imull	$401, %eax, %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
.L3:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	calc, .-calc
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	run
	.type	run, @function
run:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -28(%rbp)
	jmp	.L10
.L11:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -28(%rbp)
.L10:
	movl	-32(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L11
	movl	$8, %esi
	movl	$160801, %edi
	call	calloc@PLT
	movq	%rax, -24(%rbp)
	movl	-32(%rbp), %eax
	movq	-24(%rbp), %rdx
	movl	%eax, %esi
	movl	$0, %edi
	call	calc
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	run, .-run
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	call	run
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400
a:
	.zero	400
	.text
	.globl	calc
	.type	calc, @function
calc:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	movl	%edi, -52(%rbp)
	movl	%esi, -56(%rbp)
	movq	%rdx, -64(%rbp)
	movl	-56(%rbp), %eax
	subl	-52(%rbp), %eax
	cmpl	$1, %eax
	jg	.L2
	movl	$0, %eax
	jmp	.L3
.L2:
	movl	-52(%rbp), %eax
	imull	$401, %eax, %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jle	.L4
	movl	-52(%rbp), %eax
	imull	$401, %eax, %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	jmp	.L3
.L4:
	movabsq	$1000000000000000000, %rax
	movq	%rax, -40(%rbp)
	movl	-52(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -44(%rbp)
	jmp	.L5
.L6:
	movq	-64(%rbp), %rdx
	movl	-44(%rbp), %ecx
	movl	-52(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	calc
	movq	%rax, %rbx
	movq	-64(%rbp), %rdx
	movl	-56(%rbp), %ecx
	movl	-44(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	calc
	addq	%rbx, %rax
	movq	%rax, -24(%rbp)
	movq	-40(%rbp), %rdx
	movq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, -40(%rbp)
	addl	$1, -44(%rbp)
.L5:
	movl	-44(%rbp), %eax
	cmpl	-56(%rbp), %eax
	jl	.L6
	movq	$0, -32(%rbp)
	movl	-52(%rbp), %eax
	movl	%eax, -44(%rbp)
	jmp	.L7
.L8:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	addq	%rax, -32(%rbp)
	addl	$1, -44(%rbp)
.L7:
	movl	-44(%rbp), %eax
	cmpl	-56(%rbp), %eax
	jl	.L8
	movl	-52(%rbp), %eax
	imull	$401, %eax, %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	-40(%rbp), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
	movl	-52(%rbp), %eax
	imull	$401, %eax, %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
.L3:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	calc, .-calc
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	run
	.type	run, @function
run:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -28(%rbp)
	jmp	.L10
.L11:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -28(%rbp)
.L10:
	movl	-32(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L11
	movl	$8, %esi
	movl	$160801, %edi
	call	calloc@PLT
	movq	%rax, -24(%rbp)
	movl	-32(%rbp), %eax
	movq	-24(%rbp), %rdx
	movl	%eax, %esi
	movl	$0, %edi
	call	calc
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	run, .-run
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	call	run
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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:
