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 <string.h>

int V[50];
long long int dp[51][51][100];

long long int MAX(long long int a, long long int b, long long int c) {
	if (a >= b && a >= c) {
		return a;
	}
	else if (b >= a && b >= c) {
		return b;
	}
	else {
		return c;
	}
}

long long int suteru(long long int sum, int k, int fu[50], int cnt) {
	int i;
	for (i = cnt - 1; i >= 0 && k != 0; i--) {
		sum = sum - fu[i];
		k--;
	}
	return sum;
}

long long int rec(long long int sum, int left, int right, int value, int k, int* fu, int cnt) {
	
	int i;
	int temp[50];

	for (i = cnt - 1; i >= 0; i--) {
		temp[i] = fu[i];
	}

	if (value < 0) {
		for (i = cnt; i > 0 && temp[i - 1] < value; i--) {
			temp[i] = temp[i - 1];
		}		
		temp[i] = value;
		cnt++;
	}

	sum = sum + value;

	if (k == 0 || left > right) {
		return suteru(sum, k, temp, cnt);
	}

	if (dp[left][right][k] != -1) {
		return dp[left][right][k];
	}

	return dp[left][right][k] = MAX(suteru(sum, k, temp, cnt), rec(sum, left + 1, right, V[left], k - 1, temp, cnt), rec(sum, left, right - 1, V[right], k - 1, temp, cnt));
}

int main() {
	int N, K, i, fu[50], cnt = 0;
	long long int vmax = 0;

	memset(fu, 0, sizeof(fu));
	memset(dp, -1, sizeof(dp));

	scanf("%d %d", &N, &K);
	for (i = 0; i < N; i++) {
		scanf("%d", &V[i]);
	}

	vmax = MAX(0, rec(0, 1, N - 1, V[0], K - 1, fu, cnt), rec(0, 0, N - 2, V[N - 1], K - 1, fu, cnt));

	printf("%lld\n", vmax);

	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	V
	.bss
	.align 32
	.type	V, @object
	.size	V, 200
V:
	.zero	200
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 2080800
dp:
	.zero	2080800
	.text
	.globl	MAX
	.type	MAX, @function
MAX:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-8(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jl	.L2
	movq	-8(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jl	.L2
	movq	-8(%rbp), %rax
	jmp	.L3
.L2:
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jl	.L4
	movq	-16(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jl	.L4
	movq	-16(%rbp), %rax
	jmp	.L3
.L4:
	movq	-24(%rbp), %rax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	MAX, .-MAX
	.globl	suteru
	.type	suteru, @function
suteru:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	%rdx, -40(%rbp)
	movl	%ecx, -32(%rbp)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -4(%rbp)
	jmp	.L6
.L8:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	subq	%rax, -24(%rbp)
	subl	$1, -28(%rbp)
	subl	$1, -4(%rbp)
.L6:
	cmpl	$0, -4(%rbp)
	js	.L7
	cmpl	$0, -28(%rbp)
	jne	.L8
.L7:
	movq	-24(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	suteru, .-suteru
	.globl	rec
	.type	rec, @function
rec:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r12
	pushq	%rbx
	subq	$256, %rsp
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	movq	%rdi, -248(%rbp)
	movl	%esi, -252(%rbp)
	movl	%edx, -256(%rbp)
	movl	%ecx, -260(%rbp)
	movl	%r8d, -264(%rbp)
	movq	%r9, -272(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	16(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -228(%rbp)
	jmp	.L11
.L12:
	movl	-228(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-272(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-228(%rbp), %eax
	cltq
	movl	%edx, -224(%rbp,%rax,4)
	subl	$1, -228(%rbp)
.L11:
	cmpl	$0, -228(%rbp)
	jns	.L12
	cmpl	$0, -260(%rbp)
	jns	.L13
	movl	16(%rbp), %eax
	movl	%eax, -228(%rbp)
	jmp	.L14
.L16:
	movl	-228(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-228(%rbp), %eax
	cltq
	movl	%edx, -224(%rbp,%rax,4)
	subl	$1, -228(%rbp)
.L14:
	cmpl	$0, -228(%rbp)
	jle	.L15
	movl	-228(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	cmpl	%eax, -260(%rbp)
	jg	.L16
.L15:
	movl	-228(%rbp), %eax
	cltq
	movl	-260(%rbp), %edx
	movl	%edx, -224(%rbp,%rax,4)
	addl	$1, 16(%rbp)
.L13:
	movl	-260(%rbp), %eax
	cltq
	addq	%rax, -248(%rbp)
	cmpl	$0, -264(%rbp)
	je	.L17
	movl	-252(%rbp), %eax
	cmpl	-256(%rbp), %eax
	jle	.L18
.L17:
	leaq	-224(%rbp), %rdx
	movl	-264(%rbp), %esi
	movq	-248(%rbp), %rax
	movl	16(%rbp), %ecx
	movq	%rax, %rdi
	call	suteru
	jmp	.L21
.L18:
	movl	-264(%rbp), %eax
	movslq	%eax, %rcx
	movl	-252(%rbp), %eax
	cltq
	movl	-256(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$5100, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	$-1, %rax
	je	.L20
	movl	-264(%rbp), %eax
	movslq	%eax, %rcx
	movl	-252(%rbp), %eax
	cltq
	movl	-256(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$5100, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L21
.L20:
	movl	-264(%rbp), %eax
	leal	-1(%rax), %r10d
	movl	-256(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	V(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-256(%rbp), %eax
	leal	-1(%rax), %edi
	leaq	-224(%rbp), %r8
	movl	-252(%rbp), %esi
	movq	-248(%rbp), %rax
	subq	$8, %rsp
	movl	16(%rbp), %ecx
	pushq	%rcx
	movq	%r8, %r9
	movl	%r10d, %r8d
	movl	%edx, %ecx
	movl	%edi, %edx
	movq	%rax, %rdi
	call	rec
	addq	$16, %rsp
	movq	%rax, %r12
	movl	-264(%rbp), %eax
	leal	-1(%rax), %r10d
	movl	-252(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	V(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-252(%rbp), %eax
	leal	1(%rax), %esi
	leaq	-224(%rbp), %r8
	movl	-256(%rbp), %edx
	movq	-248(%rbp), %rax
	subq	$8, %rsp
	movl	16(%rbp), %edi
	pushq	%rdi
	movq	%r8, %r9
	movl	%r10d, %r8d
	movq	%rax, %rdi
	call	rec
	addq	$16, %rsp
	movq	%rax, %rbx
	leaq	-224(%rbp), %rdx
	movl	-264(%rbp), %esi
	movq	-248(%rbp), %rax
	movl	16(%rbp), %ecx
	movq	%rax, %rdi
	call	suteru
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	MAX
	movq	%rax, %rdx
	movl	-264(%rbp), %eax
	movslq	%eax, %rsi
	movl	-252(%rbp), %eax
	cltq
	movl	-256(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	$5100, %rax, %rdi
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rcx
	leaq	dp(%rip), %rax
	movq	%rdx, (%rcx,%rax)
	movl	-264(%rbp), %eax
	movslq	%eax, %rcx
	movl	-252(%rbp), %eax
	cltq
	movl	-256(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$5100, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
.L21:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leaq	-16(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	rec, .-rec
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.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	$248, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -236(%rbp)
	movq	$0, -232(%rbp)
	leaq	-224(%rbp), %rax
	movl	$200, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$2080800, %edx
	movl	$-1, %esi
	leaq	dp(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-244(%rbp), %rdx
	leaq	-248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -240(%rbp)
	jmp	.L24
.L25:
	movl	-240(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	V(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -240(%rbp)
.L24:
	movl	-248(%rbp), %eax
	cmpl	%eax, -240(%rbp)
	jl	.L25
	movl	-244(%rbp), %eax
	leal	-1(%rax), %edi
	movl	-248(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	V(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-248(%rbp), %edx
	subl	$2, %edx
	leaq	-224(%rbp), %rsi
	subq	$8, %rsp
	movl	-236(%rbp), %ecx
	pushq	%rcx
	movq	%rsi, %r9
	movl	%edi, %r8d
	movl	%eax, %ecx
	movl	$0, %esi
	movl	$0, %edi
	call	rec
	addq	$16, %rsp
	movq	%rax, %rbx
	movl	-244(%rbp), %eax
	leal	-1(%rax), %edi
	movl	V(%rip), %eax
	movl	-248(%rbp), %edx
	subl	$1, %edx
	leaq	-224(%rbp), %rsi
	subq	$8, %rsp
	movl	-236(%rbp), %ecx
	pushq	%rcx
	movq	%rsi, %r9
	movl	%edi, %r8d
	movl	%eax, %ecx
	movl	$1, %esi
	movl	$0, %edi
	call	rec
	addq	$16, %rsp
	movq	%rbx, %rdx
	movq	%rax, %rsi
	movl	$0, %edi
	call	MAX
	movq	%rax, -232(%rbp)
	movq	-232(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	MAX
	.type	MAX, @function
MAX:
.LFB35:
	.cfi_startproc
	endbr64
	cmpq	%rdx, %rsi
	movq	%rdx, %rcx
	movq	%rdi, %rax
	cmovge	%rsi, %rcx
	cmpq	%rcx, %rdi
	jge	.L1
	cmpq	%rdx, %rdi
	cmovl	%rdx, %rax
	cmpq	%rax, %rsi
	movq	%rdx, %rax
	cmovge	%rsi, %rax
.L1:
	ret
	.cfi_endproc
.LFE35:
	.size	MAX, .-MAX
	.p2align 4
	.globl	suteru
	.type	suteru, @function
suteru:
.LFB36:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rdx, %rdi
	testl	%ecx, %ecx
	jle	.L6
	testl	%esi, %esi
	je	.L6
	leal	-2(%rcx), %edx
	leal	1(%rsi), %r8d
	movslq	%edx, %rdx
	subl	%ecx, %r8d
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	4(%rdi,%rdx,4), %rcx
	movl	%r8d, %esi
	subq	%rcx, %rax
	movl	%edx, %ecx
	addl	%edx, %esi
	notl	%ecx
	setne	%sil
	subq	$1, %rdx
	shrl	$31, %ecx
	testb	%cl, %sil
	jne	.L8
.L6:
	ret
	.cfi_endproc
.LFE36:
	.size	suteru, .-suteru
	.p2align 4
	.globl	rec
	.type	rec, @function
rec:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdi, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%edx, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%r8d, %ebx
	subq	$264, %rsp
	.cfi_def_cfa_offset 320
	movq	%fs:40, %rax
	movq	%rax, 248(%rsp)
	xorl	%eax, %eax
	movl	320(%rsp), %ebp
	movl	%ebp, %r14d
	subl	$1, %r14d
	js	.L21
	movl	%r14d, %edx
	movslq	%r14d, %rax
	movl	%ecx, (%rsp)
	subq	%rdx, %rax
	leaq	4(,%rdx,4), %rdx
	salq	$2, %rax
	leaq	48(%rsp,%rax), %rdi
	leaq	(%r9,%rax), %rsi
	call	memcpy@PLT
	movl	(%rsp), %ecx
.L21:
	testl	%ecx, %ecx
	js	.L44
	movslq	%ecx, %rdi
	addq	%r15, %rdi
	testl	%ebx, %ebx
	je	.L37
.L47:
	cmpl	%r13d, %r12d
	jg	.L37
	movslq	%r12d, %r10
	movslq	%r13d, %r15
	leaq	dp(%rip), %r11
	movslq	%ebx, %rcx
	imulq	$5100, %r10, %rdx
	leaq	(%r15,%r15,4), %rax
	movq	%rcx, (%rsp)
	leaq	(%rax,%rax,4), %rax
	leaq	(%rdx,%rax,4), %rax
	addq	%rcx, %rax
	movq	(%r11,%rax,8), %r8
	cmpq	$-1, %r8
	je	.L45
.L17:
	movq	248(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L46
	addq	$264, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r8, %rax
	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
.L45:
	.cfi_restore_state
	movq	%r10, 24(%rsp)
	leal	-1(%rbx), %r8d
	leal	-1(%r13), %edx
	movl	%r12d, %esi
	leaq	48(%rsp), %r9
	leaq	V(%rip), %rax
	subq	$8, %rsp
	.cfi_def_cfa_offset 328
	movl	(%rax,%r15,4), %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 336
	movq	%r9, 56(%rsp)
	movl	%r8d, 52(%rsp)
	movq	%rdi, 32(%rsp)
	call	rec
	movq	40(%rsp), %r10
	movl	52(%rsp), %r8d
	movl	%r13d, %edx
	movq	%rax, 24(%rsp)
	movq	32(%rsp), %rdi
	leal	1(%r12), %esi
	leaq	V(%rip), %rax
	movl	(%rax,%r10,4), %ecx
	movq	56(%rsp), %r9
	movl	%ebp, (%rsp)
	call	rec
	testl	%r14d, %r14d
	leaq	dp(%rip), %r11
	movq	%rax, %r8
	popq	%rax
	.cfi_def_cfa_offset 328
	popq	%rdx
	.cfi_def_cfa_offset 320
	movq	16(%rsp), %rdi
	movq	24(%rsp), %r10
	js	.L29
	leal	-1(%r14), %eax
	movq	40(%rsp), %r9
	subl	%r14d, %ebx
	cltq
	.p2align 4,,10
	.p2align 3
.L30:
	movslq	4(%r9,%rax,4), %rdx
	movl	%ebx, %esi
	subq	%rdx, %rdi
	movl	%eax, %edx
	addl	%eax, %esi
	notl	%edx
	setne	%cl
	subq	$1, %rax
	shrl	$31, %edx
	testb	%dl, %cl
	jne	.L30
.L29:
	movq	8(%rsp), %rbx
	cmpq	%r8, %rbx
	movq	%rbx, %rax
	cmovl	%r8, %rax
	cmpq	%rdi, %rax
	jle	.L36
	cmpq	%rdi, %rbx
	cmovge	%rbx, %rdi
	cmpq	%rdi, %r8
	cmovl	%rbx, %r8
.L31:
	imulq	$5100, %r10, %r10
	leaq	(%r15,%r15,4), %rax
	leaq	(%rax,%rax,4), %rax
	leaq	(%r10,%rax,4), %rax
	addq	(%rsp), %rax
	movq	%r8, (%r11,%rax,8)
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L44:
	testl	%ebp, %ebp
	jle	.L33
	movslq	%ebp, %rax
	movl	%ebp, %edx
	leaq	48(%rsp,%rax,4), %rax
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%esi, (%rax)
	subq	$4, %rax
	testl	%edx, %edx
	je	.L34
.L23:
	movl	-4(%rax), %esi
	movslq	%edx, %rdi
	leal	-1(%rdi), %edx
	cmpl	%ecx, %esi
	jl	.L24
.L22:
	movl	%ecx, 48(%rsp,%rdi,4)
	movl	%ebp, %r14d
	addl	$1, %ebp
.L48:
	movslq	%ecx, %rdi
	addq	%r15, %rdi
	testl	%ebx, %ebx
	jne	.L47
.L37:
	testl	%r14d, %r14d
	js	.L35
	testl	%ebx, %ebx
	je	.L35
	leal	-1(%r14), %eax
	movq	%rdi, %r8
	leaq	48(%rsp), %r9
	subl	%r14d, %ebx
	cltq
	.p2align 4,,10
	.p2align 3
.L28:
	movslq	4(%r9,%rax,4), %rdx
	movl	%ebx, %esi
	subq	%rdx, %r8
	movl	%eax, %edx
	addl	%eax, %esi
	notl	%edx
	setne	%cl
	subq	$1, %rax
	shrl	$31, %edx
	testb	%dl, %cl
	jne	.L28
	jmp	.L17
.L36:
	movq	%rdi, %r8
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L34:
	xorl	%edi, %edi
	movl	%ebp, %r14d
	addl	$1, %ebp
	movl	%ecx, 48(%rsp,%rdi,4)
	jmp	.L48
.L35:
	movq	%rdi, %r8
	jmp	.L17
.L33:
	movslq	%ebp, %rdi
	jmp	.L22
.L46:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.size	rec, .-rec
	.p2align 4
	.type	rec.constprop.0, @function
rec.constprop.0:
.LFB39:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movslq	%edx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%ecx, %ebx
	subq	$264, %rsp
	.cfi_def_cfa_offset 320
	movq	%fs:40, %rax
	movq	%rax, 248(%rsp)
	xorl	%eax, %eax
	testl	%ecx, %ecx
	sete	%al
	cmpl	%esi, %edi
	setg	%cl
	orl	%ecx, %eax
	testl	%edx, %edx
	js	.L66
	testb	%al, %al
	jne	.L67
	movslq	%ebp, %rax
	movslq	%r12d, %r14
	leaq	dp(%rip), %rdi
	movslq	%ebx, %rsi
	imulq	$5100, %rax, %rdx
	movq	%rax, 16(%rsp)
	leaq	(%r14,%r14,4), %rax
	leaq	(%rax,%rax,4), %rax
	movq	%rdi, 40(%rsp)
	movq	%rsi, 32(%rsp)
	leaq	(%rdx,%rax,4), %rax
	addq	%rsi, %rax
	movq	(%rdi,%rax,8), %rax
	cmpq	$-1, %rax
	je	.L64
.L49:
	movq	248(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L68
	addq	$264, %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
.L66:
	.cfi_restore_state
	movl	%edx, 48(%rsp)
	testb	%al, %al
	je	.L51
	xorl	%eax, %eax
	testl	%ebx, %ebx
	cmove	%r13, %rax
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L51:
	movslq	%ebp, %rax
	movslq	%r12d, %r14
	leaq	dp(%rip), %rdi
	movslq	%ebx, %rsi
	imulq	$5100, %rax, %rdx
	movq	%rax, 16(%rsp)
	leaq	(%r14,%r14,4), %rax
	leaq	(%rax,%rax,4), %rax
	movq	%rdi, 40(%rsp)
	movq	%rsi, 32(%rsp)
	leaq	(%rdx,%rax,4), %rax
	addq	%rsi, %rax
	movq	(%rdi,%rax,8), %rax
	cmpq	$-1, %rax
	jne	.L49
	leaq	48(%rsp), %r9
	subq	$8, %rsp
	.cfi_def_cfa_offset 328
	subl	$1, %ebx
	movl	%ebp, %esi
	leaq	V(%rip), %r15
	leal	-1(%r12), %edx
	movl	%ebx, %r8d
	movq	%r13, %rdi
	movl	(%r15,%r14,4), %ecx
	pushq	$1
	.cfi_def_cfa_offset 336
	movq	%r9, 24(%rsp)
	call	rec
	movq	24(%rsp), %r9
	leal	1(%rbp), %esi
	movl	%r12d, %edx
	movq	%rax, 40(%rsp)
	movq	32(%rsp), %rax
	movq	%r13, %rdi
	movl	%ebx, %r8d
	movl	(%r15,%rax,4), %ecx
	movl	$1, (%rsp)
	call	rec
	movslq	64(%rsp), %rcx
	popq	%rsi
	.cfi_def_cfa_offset 328
	movq	%rax, %rdx
	movq	%r13, %rax
	popq	%rdi
	.cfi_def_cfa_offset 320
	subq	%rcx, %rax
.L55:
	movq	24(%rsp), %rbx
	cmpq	%rbx, %rdx
	movq	%rbx, %rcx
	cmovge	%rdx, %rcx
	cmpq	%rcx, %rax
	jge	.L53
	cmpq	%rbx, %rax
	cmovl	%rbx, %rax
	cmpq	%rax, %rdx
	movq	%rbx, %rax
	cmovge	%rdx, %rax
.L53:
	imulq	$5100, 16(%rsp), %r15
	leaq	(%r14,%r14,4), %rdx
	movq	40(%rsp), %rdi
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%r15,%rdx,4), %rdx
	addq	32(%rsp), %rdx
	movq	%rax, (%rdi,%rdx,8)
	jmp	.L49
.L67:
	movq	%r13, %rax
	jmp	.L49
.L64:
	leal	-1(%rbx), %r8d
	leaq	48(%rsp), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 328
	movl	%ebp, %esi
	pushq	$0
	.cfi_def_cfa_offset 336
	leaq	V(%rip), %r10
	movq	%rbx, %r9
	movq	%r13, %rdi
	movl	(%r10,%r14,4), %ecx
	leal	-1(%r12), %edx
	movl	%r8d, 24(%rsp)
	call	rec
	movl	24(%rsp), %r8d
	movl	%r12d, %edx
	leal	1(%rbp), %esi
	movq	%rax, 40(%rsp)
	movq	32(%rsp), %rax
	movq	%rbx, %r9
	movq	%r13, %rdi
	leaq	V(%rip), %r10
	movl	$0, (%rsp)
	movl	(%r10,%rax,4), %ecx
	call	rec
	movq	%rax, %rdx
	popq	%rax
	.cfi_def_cfa_offset 328
	movq	%r13, %rax
	popq	%rcx
	.cfi_def_cfa_offset 320
	jmp	.L55
.L68:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	rec.constprop.0, .-rec.constprop.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB38:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$25, %ecx
	movl	$2080800, %edx
	movl	$-1, %esi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	V(%rip), %r14
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$224, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r13
	movq	%r13, %rdi
	rep stosq
	leaq	dp(%rip), %rdi
	call	memset@PLT
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %esi
	testl	%esi, %esi
	jle	.L70
	movq	%r14, %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L71:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %esi
	addq	$4, %rbp
	cmpl	%ebx, %esi
	jg	.L71
.L70:
	movl	12(%rsp), %eax
	leal	-1(%rsi), %ebp
	xorl	%edi, %edi
	subl	$2, %esi
	movq	%r13, %r8
	leal	-1(%rax), %r12d
	movslq	%ebp, %rax
	movl	(%r14,%rax,4), %edx
	movl	%r12d, %ecx
	call	rec.constprop.0
	movl	V(%rip), %edx
	movq	%r13, %r8
	movl	%ebp, %esi
	movl	%r12d, %ecx
	movl	$1, %edi
	movq	%rax, %rbx
	call	rec.constprop.0
	cmpq	%rax, %rbx
	movq	%rax, %rdx
	cmovge	%rbx, %rax
	testq	%rax, %rax
	jle	.L74
	xorl	%eax, %eax
	testq	%rbx, %rbx
	cmovns	%rbx, %rax
	cmpq	%rax, %rdx
	cmovl	%rbx, %rdx
.L72:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L78
	addq	$224, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L74:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L72
.L78:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE38:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 2080800
dp:
	.zero	2080800
	.globl	V
	.align 32
	.type	V, @object
	.size	V, 200
V:
	.zero	200
	.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	MAX
	.type	MAX, @function
MAX:
.LFB35:
	.cfi_startproc
	endbr64
	cmpq	%rdx, %rsi
	movq	%rdx, %rcx
	movq	%rdi, %rax
	cmovge	%rsi, %rcx
	cmpq	%rcx, %rdi
	jge	.L1
	cmpq	%rdx, %rdi
	cmovl	%rdx, %rax
	cmpq	%rax, %rsi
	movq	%rdx, %rax
	cmovge	%rsi, %rax
.L1:
	ret
	.cfi_endproc
.LFE35:
	.size	MAX, .-MAX
	.p2align 4
	.globl	suteru
	.type	suteru, @function
suteru:
.LFB36:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rdx, %rdi
	testl	%ecx, %ecx
	jle	.L6
	testl	%esi, %esi
	je	.L6
	leal	-2(%rcx), %edx
	leal	1(%rsi), %r8d
	movslq	%edx, %rdx
	subl	%ecx, %r8d
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	4(%rdi,%rdx,4), %rcx
	movl	%r8d, %esi
	subq	%rcx, %rax
	movl	%edx, %ecx
	addl	%edx, %esi
	notl	%ecx
	setne	%sil
	subq	$1, %rdx
	shrl	$31, %ecx
	testb	%cl, %sil
	jne	.L8
.L6:
	ret
	.cfi_endproc
.LFE36:
	.size	suteru, .-suteru
	.p2align 4
	.globl	rec
	.type	rec, @function
rec:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdi, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%edx, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%r8d, %ebx
	subq	$264, %rsp
	.cfi_def_cfa_offset 320
	movq	%fs:40, %rax
	movq	%rax, 248(%rsp)
	xorl	%eax, %eax
	movl	320(%rsp), %ebp
	movl	%ebp, %r14d
	subl	$1, %r14d
	js	.L21
	movl	%r14d, %edx
	movslq	%r14d, %rax
	movl	%ecx, (%rsp)
	subq	%rdx, %rax
	leaq	4(,%rdx,4), %rdx
	salq	$2, %rax
	leaq	48(%rsp,%rax), %rdi
	leaq	(%r9,%rax), %rsi
	call	memcpy@PLT
	movl	(%rsp), %ecx
.L21:
	testl	%ecx, %ecx
	js	.L44
	movslq	%ecx, %rdi
	addq	%r15, %rdi
	testl	%ebx, %ebx
	je	.L37
.L47:
	cmpl	%r13d, %r12d
	jg	.L37
	movslq	%r12d, %r10
	movslq	%r13d, %r15
	leaq	dp(%rip), %r11
	movslq	%ebx, %rcx
	imulq	$5100, %r10, %rdx
	leaq	(%r15,%r15,4), %rax
	movq	%rcx, (%rsp)
	leaq	(%rax,%rax,4), %rax
	leaq	(%rdx,%rax,4), %rax
	addq	%rcx, %rax
	movq	(%r11,%rax,8), %r8
	cmpq	$-1, %r8
	je	.L45
.L17:
	movq	248(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L46
	addq	$264, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r8, %rax
	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
.L45:
	.cfi_restore_state
	movq	%r10, 24(%rsp)
	leal	-1(%rbx), %r8d
	leal	-1(%r13), %edx
	movl	%r12d, %esi
	leaq	48(%rsp), %r9
	leaq	V(%rip), %rax
	subq	$8, %rsp
	.cfi_def_cfa_offset 328
	movl	(%rax,%r15,4), %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 336
	movq	%r9, 56(%rsp)
	movl	%r8d, 52(%rsp)
	movq	%rdi, 32(%rsp)
	call	rec
	movq	40(%rsp), %r10
	movl	52(%rsp), %r8d
	movl	%r13d, %edx
	movq	%rax, 24(%rsp)
	movq	32(%rsp), %rdi
	leal	1(%r12), %esi
	leaq	V(%rip), %rax
	movl	(%rax,%r10,4), %ecx
	movq	56(%rsp), %r9
	movl	%ebp, (%rsp)
	call	rec
	testl	%r14d, %r14d
	leaq	dp(%rip), %r11
	movq	%rax, %r8
	popq	%rax
	.cfi_def_cfa_offset 328
	popq	%rdx
	.cfi_def_cfa_offset 320
	movq	16(%rsp), %rdi
	movq	24(%rsp), %r10
	js	.L29
	leal	-1(%r14), %eax
	movq	40(%rsp), %r9
	subl	%r14d, %ebx
	cltq
	.p2align 4,,10
	.p2align 3
.L30:
	movslq	4(%r9,%rax,4), %rdx
	movl	%ebx, %esi
	subq	%rdx, %rdi
	movl	%eax, %edx
	addl	%eax, %esi
	notl	%edx
	setne	%cl
	subq	$1, %rax
	shrl	$31, %edx
	testb	%dl, %cl
	jne	.L30
.L29:
	movq	8(%rsp), %rbx
	cmpq	%r8, %rbx
	movq	%rbx, %rax
	cmovl	%r8, %rax
	cmpq	%rdi, %rax
	jle	.L36
	cmpq	%rdi, %rbx
	cmovge	%rbx, %rdi
	cmpq	%rdi, %r8
	cmovl	%rbx, %r8
.L31:
	imulq	$5100, %r10, %r10
	leaq	(%r15,%r15,4), %rax
	leaq	(%rax,%rax,4), %rax
	leaq	(%r10,%rax,4), %rax
	addq	(%rsp), %rax
	movq	%r8, (%r11,%rax,8)
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L44:
	testl	%ebp, %ebp
	jle	.L33
	movslq	%ebp, %rax
	movl	%ebp, %edx
	leaq	48(%rsp,%rax,4), %rax
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%esi, (%rax)
	subq	$4, %rax
	testl	%edx, %edx
	je	.L34
.L23:
	movl	-4(%rax), %esi
	movslq	%edx, %rdi
	leal	-1(%rdi), %edx
	cmpl	%ecx, %esi
	jl	.L24
.L22:
	movl	%ecx, 48(%rsp,%rdi,4)
	movl	%ebp, %r14d
	addl	$1, %ebp
.L48:
	movslq	%ecx, %rdi
	addq	%r15, %rdi
	testl	%ebx, %ebx
	jne	.L47
.L37:
	testl	%r14d, %r14d
	js	.L35
	testl	%ebx, %ebx
	je	.L35
	leal	-1(%r14), %eax
	movq	%rdi, %r8
	leaq	48(%rsp), %r9
	subl	%r14d, %ebx
	cltq
	.p2align 4,,10
	.p2align 3
.L28:
	movslq	4(%r9,%rax,4), %rdx
	movl	%ebx, %esi
	subq	%rdx, %r8
	movl	%eax, %edx
	addl	%eax, %esi
	notl	%edx
	setne	%cl
	subq	$1, %rax
	shrl	$31, %edx
	testb	%dl, %cl
	jne	.L28
	jmp	.L17
.L36:
	movq	%rdi, %r8
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L34:
	xorl	%edi, %edi
	movl	%ebp, %r14d
	addl	$1, %ebp
	movl	%ecx, 48(%rsp,%rdi,4)
	jmp	.L48
.L35:
	movq	%rdi, %r8
	jmp	.L17
.L33:
	movslq	%ebp, %rdi
	jmp	.L22
.L46:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.size	rec, .-rec
	.p2align 4
	.type	rec.constprop.0, @function
rec.constprop.0:
.LFB39:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movslq	%edx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%ecx, %ebx
	subq	$264, %rsp
	.cfi_def_cfa_offset 320
	movq	%fs:40, %rax
	movq	%rax, 248(%rsp)
	xorl	%eax, %eax
	testl	%ecx, %ecx
	sete	%al
	cmpl	%esi, %edi
	setg	%cl
	orl	%ecx, %eax
	testl	%edx, %edx
	js	.L66
	testb	%al, %al
	jne	.L67
	movslq	%ebp, %rax
	movslq	%r12d, %r14
	leaq	dp(%rip), %rdi
	movslq	%ebx, %rsi
	imulq	$5100, %rax, %rdx
	movq	%rax, 16(%rsp)
	leaq	(%r14,%r14,4), %rax
	leaq	(%rax,%rax,4), %rax
	movq	%rdi, 40(%rsp)
	movq	%rsi, 32(%rsp)
	leaq	(%rdx,%rax,4), %rax
	addq	%rsi, %rax
	movq	(%rdi,%rax,8), %rax
	cmpq	$-1, %rax
	je	.L64
.L49:
	movq	248(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L68
	addq	$264, %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
.L66:
	.cfi_restore_state
	movl	%edx, 48(%rsp)
	testb	%al, %al
	je	.L51
	xorl	%eax, %eax
	testl	%ebx, %ebx
	cmove	%r13, %rax
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L51:
	movslq	%ebp, %rax
	movslq	%r12d, %r14
	leaq	dp(%rip), %rdi
	movslq	%ebx, %rsi
	imulq	$5100, %rax, %rdx
	movq	%rax, 16(%rsp)
	leaq	(%r14,%r14,4), %rax
	leaq	(%rax,%rax,4), %rax
	movq	%rdi, 40(%rsp)
	movq	%rsi, 32(%rsp)
	leaq	(%rdx,%rax,4), %rax
	addq	%rsi, %rax
	movq	(%rdi,%rax,8), %rax
	cmpq	$-1, %rax
	jne	.L49
	leaq	48(%rsp), %r9
	subq	$8, %rsp
	.cfi_def_cfa_offset 328
	subl	$1, %ebx
	movl	%ebp, %esi
	leaq	V(%rip), %r15
	leal	-1(%r12), %edx
	movl	%ebx, %r8d
	movq	%r13, %rdi
	movl	(%r15,%r14,4), %ecx
	pushq	$1
	.cfi_def_cfa_offset 336
	movq	%r9, 24(%rsp)
	call	rec
	movq	24(%rsp), %r9
	leal	1(%rbp), %esi
	movl	%r12d, %edx
	movq	%rax, 40(%rsp)
	movq	32(%rsp), %rax
	movq	%r13, %rdi
	movl	%ebx, %r8d
	movl	(%r15,%rax,4), %ecx
	movl	$1, (%rsp)
	call	rec
	movslq	64(%rsp), %rcx
	popq	%rsi
	.cfi_def_cfa_offset 328
	movq	%rax, %rdx
	movq	%r13, %rax
	popq	%rdi
	.cfi_def_cfa_offset 320
	subq	%rcx, %rax
.L55:
	movq	24(%rsp), %rbx
	cmpq	%rbx, %rdx
	movq	%rbx, %rcx
	cmovge	%rdx, %rcx
	cmpq	%rcx, %rax
	jge	.L53
	cmpq	%rbx, %rax
	cmovl	%rbx, %rax
	cmpq	%rax, %rdx
	movq	%rbx, %rax
	cmovge	%rdx, %rax
.L53:
	imulq	$5100, 16(%rsp), %r15
	leaq	(%r14,%r14,4), %rdx
	movq	40(%rsp), %rdi
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%r15,%rdx,4), %rdx
	addq	32(%rsp), %rdx
	movq	%rax, (%rdi,%rdx,8)
	jmp	.L49
.L67:
	movq	%r13, %rax
	jmp	.L49
.L64:
	leal	-1(%rbx), %r8d
	leaq	48(%rsp), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 328
	movl	%ebp, %esi
	pushq	$0
	.cfi_def_cfa_offset 336
	leaq	V(%rip), %r10
	movq	%rbx, %r9
	movq	%r13, %rdi
	movl	(%r10,%r14,4), %ecx
	leal	-1(%r12), %edx
	movl	%r8d, 24(%rsp)
	call	rec
	movl	24(%rsp), %r8d
	movl	%r12d, %edx
	leal	1(%rbp), %esi
	movq	%rax, 40(%rsp)
	movq	32(%rsp), %rax
	movq	%rbx, %r9
	movq	%r13, %rdi
	leaq	V(%rip), %r10
	movl	$0, (%rsp)
	movl	(%r10,%rax,4), %ecx
	call	rec
	movq	%rax, %rdx
	popq	%rax
	.cfi_def_cfa_offset 328
	movq	%r13, %rax
	popq	%rcx
	.cfi_def_cfa_offset 320
	jmp	.L55
.L68:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	rec.constprop.0, .-rec.constprop.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB38:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$25, %ecx
	movl	$2080800, %edx
	movl	$-1, %esi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	V(%rip), %r14
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$224, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r13
	movq	%r13, %rdi
	rep stosq
	leaq	dp(%rip), %rdi
	call	memset@PLT
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %esi
	testl	%esi, %esi
	jle	.L70
	movq	%r14, %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L71:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %esi
	addq	$4, %rbp
	cmpl	%ebx, %esi
	jg	.L71
.L70:
	movl	12(%rsp), %eax
	leal	-1(%rsi), %ebp
	xorl	%edi, %edi
	subl	$2, %esi
	movq	%r13, %r8
	leal	-1(%rax), %r12d
	movslq	%ebp, %rax
	movl	(%r14,%rax,4), %edx
	movl	%r12d, %ecx
	call	rec.constprop.0
	movl	V(%rip), %edx
	movq	%r13, %r8
	movl	%ebp, %esi
	movl	%r12d, %ecx
	movl	$1, %edi
	movq	%rax, %rbx
	call	rec.constprop.0
	cmpq	%rax, %rbx
	movq	%rax, %rdx
	cmovge	%rbx, %rax
	testq	%rax, %rax
	jle	.L74
	xorl	%eax, %eax
	testq	%rbx, %rbx
	cmovns	%rbx, %rax
	cmpq	%rax, %rdx
	cmovl	%rbx, %rdx
.L72:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L78
	addq	$224, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L74:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L72
.L78:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE38:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 2080800
dp:
	.zero	2080800
	.globl	V
	.align 32
	.type	V, @object
	.size	V, 200
V:
	.zero	200
	.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 <string.h>

int V[50];
long long int dp[51][51][100];

long long int MAX(long long int a, long long int b, long long int c) {
	if (a >= b && a >= c) {
		return a;
	}
	else if (b >= a && b >= c) {
		return b;
	}
	else {
		return c;
	}
}

long long int suteru(long long int sum, int k, int fu[50], int cnt) {
	int i;
	for (i = cnt - 1; i >= 0 && k != 0; i--) {
		sum = sum - fu[i];
		k--;
	}
	return sum;
}

long long int rec(long long int sum, int left, int right, int value, int k, int* fu, int cnt) {
	
	int i;
	int temp[50];

	for (i = cnt - 1; i >= 0; i--) {
		temp[i] = fu[i];
	}

	if (value < 0) {
		for (i = cnt; i > 0 && temp[i - 1] < value; i--) {
			temp[i] = temp[i - 1];
		}		
		temp[i] = value;
		cnt++;
	}

	sum = sum + value;

	if (k == 0 || left > right) {
		return suteru(sum, k, temp, cnt);
	}

	if (dp[left][right][k] != -1) {
		return dp[left][right][k];
	}

	return dp[left][right][k] = MAX(suteru(sum, k, temp, cnt), rec(sum, left + 1, right, V[left], k - 1, temp, cnt), rec(sum, left, right - 1, V[right], k - 1, temp, cnt));
}

int main() {
	int N, K, i, fu[50], cnt = 0;
	long long int vmax = 0;

	memset(fu, 0, sizeof(fu));
	memset(dp, -1, sizeof(dp));

	scanf("%d %d", &N, &K);
	for (i = 0; i < N; i++) {
		scanf("%d", &V[i]);
	}

	vmax = MAX(0, rec(0, 1, N - 1, V[0], K - 1, fu, cnt), rec(0, 0, N - 2, V[N - 1], K - 1, fu, cnt));

	printf("%lld\n", vmax);

	return 0;
}
6 4
-10 8 2 0 2 6
 6 4
-1 -100 50 -2 -5 -3
 6 3
-6 -100 50 -2 -9 -3
 6 4
-10 3 2 0 2 6
 6 4
-1 -100 78 -2 -5 -3
 6 4
-10 3 2 0 2 12
 6 4
-10 3 3 0 2 12
 6 7
-1 -100 78 0 -5 -3
 6 4
-15 3 0 0 2 12
 6 7
-1 -100 54 0 -1 -3

14
 49
 0
 10
 77
 16
 17
 78
 15
 54

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 <string.h>

int V[50];
long long int dp[51][51][100];

long long int MAX(long long int a, long long int b, long long int c) {
	if (a >= b && a >= c) {
		return a;
	}
	else if (b >= a && b >= c) {
		return b;
	}
	else {
		return c;
	}
}

long long int suteru(long long int sum, int k, int fu[50], int cnt) {
	int i;
	for (i = cnt - 1; i >= 0 && k != 0; i--) {
		sum = sum - fu[i];
		k--;
	}
	return sum;
}

long long int rec(long long int sum, int left, int right, int value, int k, int* fu, int cnt) {
	
	int i;
	int temp[50];

	for (i = cnt - 1; i >= 0; i--) {
		temp[i] = fu[i];
	}

	if (value < 0) {
		for (i = cnt; i > 0 && temp[i - 1] < value; i--) {
			temp[i] = temp[i - 1];
		}		
		temp[i] = value;
		cnt++;
	}

	sum = sum + value;

	if (k == 0 || left > right) {
		return suteru(sum, k, temp, cnt);
	}

	if (dp[left][right][k] != -1) {
		return dp[left][right][k];
	}

	return dp[left][right][k] = MAX(suteru(sum, k, temp, cnt), rec(sum, left + 1, right, V[left], k - 1, temp, cnt), rec(sum, left, right - 1, V[right], k - 1, temp, cnt));
}

int main() {
	int N, K, i, fu[50], cnt = 0;
	long long int vmax = 0;

	memset(fu, 0, sizeof(fu));
	memset(dp, -1, sizeof(dp));

	scanf("%d %d", &N, &K);
	for (i = 0; i < N; i++) {
		scanf("%d", &V[i]);
	}

	vmax = MAX(0, rec(0, 1, N - 1, V[0], K - 1, fu, cnt), rec(0, 0, N - 2, V[N - 1], K - 1, fu, cnt));

	printf("%lld\n", vmax);

	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	V
	.bss
	.align 32
	.type	V, @object
	.size	V, 200
V:
	.zero	200
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 2080800
dp:
	.zero	2080800
	.text
	.globl	MAX
	.type	MAX, @function
MAX:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-8(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jl	.L2
	movq	-8(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jl	.L2
	movq	-8(%rbp), %rax
	jmp	.L3
.L2:
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jl	.L4
	movq	-16(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jl	.L4
	movq	-16(%rbp), %rax
	jmp	.L3
.L4:
	movq	-24(%rbp), %rax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	MAX, .-MAX
	.globl	suteru
	.type	suteru, @function
suteru:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	%rdx, -40(%rbp)
	movl	%ecx, -32(%rbp)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -4(%rbp)
	jmp	.L6
.L8:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	subq	%rax, -24(%rbp)
	subl	$1, -28(%rbp)
	subl	$1, -4(%rbp)
.L6:
	cmpl	$0, -4(%rbp)
	js	.L7
	cmpl	$0, -28(%rbp)
	jne	.L8
.L7:
	movq	-24(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	suteru, .-suteru
	.globl	rec
	.type	rec, @function
rec:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r12
	pushq	%rbx
	subq	$256, %rsp
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	movq	%rdi, -248(%rbp)
	movl	%esi, -252(%rbp)
	movl	%edx, -256(%rbp)
	movl	%ecx, -260(%rbp)
	movl	%r8d, -264(%rbp)
	movq	%r9, -272(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	16(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -228(%rbp)
	jmp	.L11
.L12:
	movl	-228(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-272(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-228(%rbp), %eax
	cltq
	movl	%edx, -224(%rbp,%rax,4)
	subl	$1, -228(%rbp)
.L11:
	cmpl	$0, -228(%rbp)
	jns	.L12
	cmpl	$0, -260(%rbp)
	jns	.L13
	movl	16(%rbp), %eax
	movl	%eax, -228(%rbp)
	jmp	.L14
.L16:
	movl	-228(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-228(%rbp), %eax
	cltq
	movl	%edx, -224(%rbp,%rax,4)
	subl	$1, -228(%rbp)
.L14:
	cmpl	$0, -228(%rbp)
	jle	.L15
	movl	-228(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	cmpl	%eax, -260(%rbp)
	jg	.L16
.L15:
	movl	-228(%rbp), %eax
	cltq
	movl	-260(%rbp), %edx
	movl	%edx, -224(%rbp,%rax,4)
	addl	$1, 16(%rbp)
.L13:
	movl	-260(%rbp), %eax
	cltq
	addq	%rax, -248(%rbp)
	cmpl	$0, -264(%rbp)
	je	.L17
	movl	-252(%rbp), %eax
	cmpl	-256(%rbp), %eax
	jle	.L18
.L17:
	leaq	-224(%rbp), %rdx
	movl	-264(%rbp), %esi
	movq	-248(%rbp), %rax
	movl	16(%rbp), %ecx
	movq	%rax, %rdi
	call	suteru
	jmp	.L21
.L18:
	movl	-264(%rbp), %eax
	movslq	%eax, %rcx
	movl	-252(%rbp), %eax
	cltq
	movl	-256(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$5100, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	$-1, %rax
	je	.L20
	movl	-264(%rbp), %eax
	movslq	%eax, %rcx
	movl	-252(%rbp), %eax
	cltq
	movl	-256(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$5100, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L21
.L20:
	movl	-264(%rbp), %eax
	leal	-1(%rax), %r10d
	movl	-256(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	V(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-256(%rbp), %eax
	leal	-1(%rax), %edi
	leaq	-224(%rbp), %r8
	movl	-252(%rbp), %esi
	movq	-248(%rbp), %rax
	subq	$8, %rsp
	movl	16(%rbp), %ecx
	pushq	%rcx
	movq	%r8, %r9
	movl	%r10d, %r8d
	movl	%edx, %ecx
	movl	%edi, %edx
	movq	%rax, %rdi
	call	rec
	addq	$16, %rsp
	movq	%rax, %r12
	movl	-264(%rbp), %eax
	leal	-1(%rax), %r10d
	movl	-252(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	V(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-252(%rbp), %eax
	leal	1(%rax), %esi
	leaq	-224(%rbp), %r8
	movl	-256(%rbp), %edx
	movq	-248(%rbp), %rax
	subq	$8, %rsp
	movl	16(%rbp), %edi
	pushq	%rdi
	movq	%r8, %r9
	movl	%r10d, %r8d
	movq	%rax, %rdi
	call	rec
	addq	$16, %rsp
	movq	%rax, %rbx
	leaq	-224(%rbp), %rdx
	movl	-264(%rbp), %esi
	movq	-248(%rbp), %rax
	movl	16(%rbp), %ecx
	movq	%rax, %rdi
	call	suteru
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	MAX
	movq	%rax, %rdx
	movl	-264(%rbp), %eax
	movslq	%eax, %rsi
	movl	-252(%rbp), %eax
	cltq
	movl	-256(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	$5100, %rax, %rdi
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rcx
	leaq	dp(%rip), %rax
	movq	%rdx, (%rcx,%rax)
	movl	-264(%rbp), %eax
	movslq	%eax, %rcx
	movl	-252(%rbp), %eax
	cltq
	movl	-256(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$5100, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
.L21:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leaq	-16(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	rec, .-rec
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.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	$248, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -236(%rbp)
	movq	$0, -232(%rbp)
	leaq	-224(%rbp), %rax
	movl	$200, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$2080800, %edx
	movl	$-1, %esi
	leaq	dp(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-244(%rbp), %rdx
	leaq	-248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -240(%rbp)
	jmp	.L24
.L25:
	movl	-240(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	V(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -240(%rbp)
.L24:
	movl	-248(%rbp), %eax
	cmpl	%eax, -240(%rbp)
	jl	.L25
	movl	-244(%rbp), %eax
	leal	-1(%rax), %edi
	movl	-248(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	V(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-248(%rbp), %edx
	subl	$2, %edx
	leaq	-224(%rbp), %rsi
	subq	$8, %rsp
	movl	-236(%rbp), %ecx
	pushq	%rcx
	movq	%rsi, %r9
	movl	%edi, %r8d
	movl	%eax, %ecx
	movl	$0, %esi
	movl	$0, %edi
	call	rec
	addq	$16, %rsp
	movq	%rax, %rbx
	movl	-244(%rbp), %eax
	leal	-1(%rax), %edi
	movl	V(%rip), %eax
	movl	-248(%rbp), %edx
	subl	$1, %edx
	leaq	-224(%rbp), %rsi
	subq	$8, %rsp
	movl	-236(%rbp), %ecx
	pushq	%rcx
	movq	%rsi, %r9
	movl	%edi, %r8d
	movl	%eax, %ecx
	movl	$1, %esi
	movl	$0, %edi
	call	rec
	addq	$16, %rsp
	movq	%rbx, %rdx
	movq	%rax, %rsi
	movl	$0, %edi
	call	MAX
	movq	%rax, -232(%rbp)
	movq	-232(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	V
	.bss
	.align 32
	.type	V, @object
	.size	V, 200
V:
	.zero	200
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 2080800
dp:
	.zero	2080800
	.text
	.globl	MAX
	.type	MAX, @function
MAX:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-8(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jl	.L2
	movq	-8(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jl	.L2
	movq	-8(%rbp), %rax
	jmp	.L3
.L2:
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jl	.L4
	movq	-16(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jl	.L4
	movq	-16(%rbp), %rax
	jmp	.L3
.L4:
	movq	-24(%rbp), %rax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	MAX, .-MAX
	.globl	suteru
	.type	suteru, @function
suteru:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	%rdx, -40(%rbp)
	movl	%ecx, -32(%rbp)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -4(%rbp)
	jmp	.L6
.L8:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	subq	%rax, -24(%rbp)
	subl	$1, -28(%rbp)
	subl	$1, -4(%rbp)
.L6:
	cmpl	$0, -4(%rbp)
	js	.L7
	cmpl	$0, -28(%rbp)
	jne	.L8
.L7:
	movq	-24(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	suteru, .-suteru
	.globl	rec
	.type	rec, @function
rec:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r12
	pushq	%rbx
	subq	$256, %rsp
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	movq	%rdi, -248(%rbp)
	movl	%esi, -252(%rbp)
	movl	%edx, -256(%rbp)
	movl	%ecx, -260(%rbp)
	movl	%r8d, -264(%rbp)
	movq	%r9, -272(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	16(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -228(%rbp)
	jmp	.L11
.L12:
	movl	-228(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-272(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-228(%rbp), %eax
	cltq
	movl	%edx, -224(%rbp,%rax,4)
	subl	$1, -228(%rbp)
.L11:
	cmpl	$0, -228(%rbp)
	jns	.L12
	cmpl	$0, -260(%rbp)
	jns	.L13
	movl	16(%rbp), %eax
	movl	%eax, -228(%rbp)
	jmp	.L14
.L16:
	movl	-228(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-228(%rbp), %eax
	cltq
	movl	%edx, -224(%rbp,%rax,4)
	subl	$1, -228(%rbp)
.L14:
	cmpl	$0, -228(%rbp)
	jle	.L15
	movl	-228(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	cmpl	%eax, -260(%rbp)
	jg	.L16
.L15:
	movl	-228(%rbp), %eax
	cltq
	movl	-260(%rbp), %edx
	movl	%edx, -224(%rbp,%rax,4)
	addl	$1, 16(%rbp)
.L13:
	movl	-260(%rbp), %eax
	cltq
	addq	%rax, -248(%rbp)
	cmpl	$0, -264(%rbp)
	je	.L17
	movl	-252(%rbp), %eax
	cmpl	-256(%rbp), %eax
	jle	.L18
.L17:
	leaq	-224(%rbp), %rdx
	movl	-264(%rbp), %esi
	movq	-248(%rbp), %rax
	movl	16(%rbp), %ecx
	movq	%rax, %rdi
	call	suteru
	jmp	.L21
.L18:
	movl	-264(%rbp), %eax
	movslq	%eax, %rcx
	movl	-252(%rbp), %eax
	cltq
	movl	-256(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$5100, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	$-1, %rax
	je	.L20
	movl	-264(%rbp), %eax
	movslq	%eax, %rcx
	movl	-252(%rbp), %eax
	cltq
	movl	-256(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$5100, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L21
.L20:
	movl	-264(%rbp), %eax
	leal	-1(%rax), %r10d
	movl	-256(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	V(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-256(%rbp), %eax
	leal	-1(%rax), %edi
	leaq	-224(%rbp), %r8
	movl	-252(%rbp), %esi
	movq	-248(%rbp), %rax
	subq	$8, %rsp
	movl	16(%rbp), %ecx
	pushq	%rcx
	movq	%r8, %r9
	movl	%r10d, %r8d
	movl	%edx, %ecx
	movl	%edi, %edx
	movq	%rax, %rdi
	call	rec
	addq	$16, %rsp
	movq	%rax, %r12
	movl	-264(%rbp), %eax
	leal	-1(%rax), %r10d
	movl	-252(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	V(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-252(%rbp), %eax
	leal	1(%rax), %esi
	leaq	-224(%rbp), %r8
	movl	-256(%rbp), %edx
	movq	-248(%rbp), %rax
	subq	$8, %rsp
	movl	16(%rbp), %edi
	pushq	%rdi
	movq	%r8, %r9
	movl	%r10d, %r8d
	movq	%rax, %rdi
	call	rec
	addq	$16, %rsp
	movq	%rax, %rbx
	leaq	-224(%rbp), %rdx
	movl	-264(%rbp), %esi
	movq	-248(%rbp), %rax
	movl	16(%rbp), %ecx
	movq	%rax, %rdi
	call	suteru
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	MAX
	movq	%rax, %rdx
	movl	-264(%rbp), %eax
	movslq	%eax, %rsi
	movl	-252(%rbp), %eax
	cltq
	movl	-256(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	$5100, %rax, %rdi
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rcx
	leaq	dp(%rip), %rax
	movq	%rdx, (%rcx,%rax)
	movl	-264(%rbp), %eax
	movslq	%eax, %rcx
	movl	-252(%rbp), %eax
	cltq
	movl	-256(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$5100, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
.L21:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leaq	-16(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	rec, .-rec
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.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	$248, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -236(%rbp)
	movq	$0, -232(%rbp)
	leaq	-224(%rbp), %rax
	movl	$200, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$2080800, %edx
	movl	$-1, %esi
	leaq	dp(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-244(%rbp), %rdx
	leaq	-248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -240(%rbp)
	jmp	.L24
.L25:
	movl	-240(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	V(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -240(%rbp)
.L24:
	movl	-248(%rbp), %eax
	cmpl	%eax, -240(%rbp)
	jl	.L25
	movl	-244(%rbp), %eax
	leal	-1(%rax), %edi
	movl	-248(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	V(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-248(%rbp), %edx
	subl	$2, %edx
	leaq	-224(%rbp), %rsi
	subq	$8, %rsp
	movl	-236(%rbp), %ecx
	pushq	%rcx
	movq	%rsi, %r9
	movl	%edi, %r8d
	movl	%eax, %ecx
	movl	$0, %esi
	movl	$0, %edi
	call	rec
	addq	$16, %rsp
	movq	%rax, %rbx
	movl	-244(%rbp), %eax
	leal	-1(%rax), %edi
	movl	V(%rip), %eax
	movl	-248(%rbp), %edx
	subl	$1, %edx
	leaq	-224(%rbp), %rsi
	subq	$8, %rsp
	movl	-236(%rbp), %ecx
	pushq	%rcx
	movq	%rsi, %r9
	movl	%edi, %r8d
	movl	%eax, %ecx
	movl	$1, %esi
	movl	$0, %edi
	call	rec
	addq	$16, %rsp
	movq	%rbx, %rdx
	movq	%rax, %rsi
	movl	$0, %edi
	call	MAX
	movq	%rax, -232(%rbp)
	movq	-232(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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:
