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>
long long dp[51][51][2501]={0};
int main(void){
	int n,a,i,x[51];
	scanf("%d %d",&n,&a);
	for(i=0;i<n;i++)scanf("%d",&x[i]);
	long long ans=0;
	dp[0][0][0]=1;
	for(i=0;i<51;i++)dp[i][0][0]=1;
	for(int j=0;j<n;j++){
		for(int k=1;k<=n;k++){
			for(int s=0;s<=2500;s++){
				if(s>=x[j])dp[j+1][k][s]=dp[j][k][s]+dp[j][k-1][s-x[j]];
				else dp[j+1][k][s]=dp[j][k][s];

			}
		}
	}
	for(int k=1;k<=n;k++){ans+=dp[n][k][k*a];}
	
	printf("%lld",ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 52040808
dp:
	.zero	52040808
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$272, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-256(%rbp), %rdx
	leaq	-260(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -252(%rbp)
	jmp	.L2
.L3:
	leaq	-224(%rbp), %rdx
	movl	-252(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -252(%rbp)
.L2:
	movl	-260(%rbp), %eax
	cmpl	%eax, -252(%rbp)
	jl	.L3
	movq	$0, -232(%rbp)
	movq	$1, dp(%rip)
	movl	$0, -252(%rbp)
	jmp	.L4
.L5:
	movl	-252(%rbp), %eax
	cltq
	imulq	$1020408, %rax, %rax
	leaq	dp(%rip), %rdx
	movq	$1, (%rax,%rdx)
	addl	$1, -252(%rbp)
.L4:
	cmpl	$50, -252(%rbp)
	jle	.L5
	movl	$0, -248(%rbp)
	jmp	.L6
.L13:
	movl	$1, -244(%rbp)
	jmp	.L7
.L12:
	movl	$0, -240(%rbp)
	jmp	.L8
.L11:
	movl	-248(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	cmpl	%eax, -240(%rbp)
	jl	.L9
	movl	-240(%rbp), %eax
	movslq	%eax, %rcx
	movl	-248(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244(%rbp), %eax
	cltq
	imulq	$127551, %rdx, %rdx
	imulq	$2501, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movl	-244(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-248(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-240(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %rdi
	movl	-248(%rbp), %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$127551, %rdx, %rdx
	imulq	$2501, %rax, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-248(%rbp), %eax
	leal	1(%rax), %edx
	addq	%rsi, %rcx
	movl	-240(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movl	-244(%rbp), %eax
	cltq
	imulq	$127551, %rdx, %rdx
	imulq	$2501, %rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	jmp	.L10
.L9:
	movl	-248(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-240(%rbp), %eax
	movslq	%eax, %rsi
	movl	-248(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244(%rbp), %eax
	cltq
	imulq	$127551, %rdx, %rdx
	imulq	$2501, %rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-240(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%ecx, %rcx
	movl	-244(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$127551, %rcx, %rcx
	imulq	$2501, %rdx, %rdx
	addq	%rcx, %rdx
	addq	%rsi, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
.L10:
	addl	$1, -240(%rbp)
.L8:
	cmpl	$2500, -240(%rbp)
	jle	.L11
	addl	$1, -244(%rbp)
.L7:
	movl	-260(%rbp), %eax
	cmpl	%eax, -244(%rbp)
	jle	.L12
	addl	$1, -248(%rbp)
.L6:
	movl	-260(%rbp), %eax
	cmpl	%eax, -248(%rbp)
	jl	.L13
	movl	$1, -236(%rbp)
	jmp	.L14
.L15:
	movl	-260(%rbp), %edx
	movl	-256(%rbp), %eax
	imull	-236(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movl	-236(%rbp), %eax
	cltq
	imulq	$127551, %rdx, %rdx
	imulq	$2501, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, -232(%rbp)
	addl	$1, -236(%rbp)
.L14:
	movl	-260(%rbp), %eax
	cmpl	%eax, -236(%rbp)
	jle	.L15
	movq	-232(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$280, %rsp
	.cfi_def_cfa_offset 336
	movq	%fs:40, %rax
	movq	%rax, 264(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rdx
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.L2
	leaq	48(%rsp), %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %ebp
	addq	$4, %r12
	cmpl	%ebx, %ebp
	jg	.L3
.L2:
	movq	$1, dp(%rip)
	leaq	dp(%rip), %r11
	leaq	52040808(%r11), %rdx
	movq	%r11, %rax
.L4:
	movq	$1, (%rax)
	addq	$1020408, %rax
	cmpq	%rdx, %rax
	jne	.L4
	testl	%ebp, %ebp
	jle	.L19
	leal	-1(%rbp), %eax
	movl	%ebp, %r13d
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	movq	%rax, 8(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	20008(%r11), %rax
	movq	$1020408, (%rsp)
	movq	%rax, 24(%rsp)
.L6:
	movq	16(%rsp), %rax
	movslq	%r14d, %r12
	movq	(%rsp), %r8
	xorl	%ebx, %ebx
	imulq	$127551, %r12, %r12
	movl	(%rax,%r14,4), %r9d
	movq	24(%rsp), %rax
	addq	%rax, %r8
	leaq	(%rax,%r15), %rdi
.L13:
	movslq	%ebx, %r10
	movl	%r9d, %ecx
	xorl	%eax, %eax
	imulq	$2501, %r10, %r10
	negl	%ecx
	addq	%r12, %r10
	.p2align 4,,10
	.p2align 3
.L11:
	movq	(%rdi,%rax,8), %rdx
	cmpl	%eax, %r9d
	jg	.L7
	movslq	%ecx, %rsi
	addq	%r10, %rsi
	addq	(%r11,%rsi,8), %rdx
.L7:
	movq	%rdx, (%r8,%rax,8)
	addq	$1, %rax
	addl	$1, %ecx
	cmpq	$2501, %rax
	jne	.L11
	addq	$1, %rbx
	addq	$20008, %r8
	addq	$20008, %rdi
	cmpq	%r13, %rbx
	jne	.L13
	addq	$1, %r14
	addq	$1020408, (%rsp)
	addq	$1020408, %r15
	cmpq	%rbx, %r14
	jne	.L6
	movslq	44(%rsp), %rdx
	cmpl	$1, %edx
	jne	.L26
	movslq	%ebp, %rax
	leaq	40032+dp(%rip), %rdx
	imulq	$1020408, %rax, %rax
	leaq	20016(%r11,%rax), %rcx
	addq	%rdx, %rax
	imulq	$20016, 8(%rsp), %rdx
	addq	%rdx, %rax
	xorl	%edx, %edx
.L17:
	addq	(%rcx), %rdx
	addq	$20016, %rcx
	cmpq	%rax, %rcx
	jne	.L17
.L5:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$280, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L5
.L26:
	movslq	%ebp, %rax
	leaq	20008(,%rdx,8), %rsi
	addl	$1, %ebp
	imulq	$127551, %rax, %rax
	addq	%rdx, %rax
	xorl	%edx, %edx
	leaq	(%r11,%rax,8), %rcx
	movl	$1, %eax
.L15:
	addl	$1, %eax
	addq	20008(%rcx), %rdx
	addq	%rsi, %rcx
	cmpl	%ebp, %eax
	jne	.L15
	jmp	.L5
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 52040808
dp:
	.zero	52040808
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$280, %rsp
	.cfi_def_cfa_offset 336
	movq	%fs:40, %rax
	movq	%rax, 264(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rdx
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.L2
	leaq	48(%rsp), %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %ebp
	addq	$4, %r12
	cmpl	%ebx, %ebp
	jg	.L3
.L2:
	movq	$1, dp(%rip)
	leaq	dp(%rip), %r11
	leaq	52040808(%r11), %rdx
	movq	%r11, %rax
.L4:
	movq	$1, (%rax)
	addq	$1020408, %rax
	cmpq	%rdx, %rax
	jne	.L4
	testl	%ebp, %ebp
	jle	.L19
	leal	-1(%rbp), %eax
	movl	%ebp, %r13d
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	movq	%rax, 8(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	20008(%r11), %rax
	movq	$1020408, (%rsp)
	movq	%rax, 24(%rsp)
.L6:
	movq	16(%rsp), %rax
	movslq	%r14d, %r12
	movq	(%rsp), %r8
	xorl	%ebx, %ebx
	imulq	$127551, %r12, %r12
	movl	(%rax,%r14,4), %r9d
	movq	24(%rsp), %rax
	addq	%rax, %r8
	leaq	(%rax,%r15), %rdi
.L13:
	movslq	%ebx, %r10
	movl	%r9d, %ecx
	xorl	%eax, %eax
	imulq	$2501, %r10, %r10
	negl	%ecx
	addq	%r12, %r10
	.p2align 4,,10
	.p2align 3
.L11:
	movq	(%rdi,%rax,8), %rdx
	cmpl	%eax, %r9d
	jg	.L7
	movslq	%ecx, %rsi
	addq	%r10, %rsi
	addq	(%r11,%rsi,8), %rdx
.L7:
	movq	%rdx, (%r8,%rax,8)
	addq	$1, %rax
	addl	$1, %ecx
	cmpq	$2501, %rax
	jne	.L11
	addq	$1, %rbx
	addq	$20008, %r8
	addq	$20008, %rdi
	cmpq	%r13, %rbx
	jne	.L13
	addq	$1, %r14
	addq	$1020408, (%rsp)
	addq	$1020408, %r15
	cmpq	%rbx, %r14
	jne	.L6
	movslq	44(%rsp), %rdx
	cmpl	$1, %edx
	jne	.L26
	movslq	%ebp, %rax
	leaq	40032+dp(%rip), %rdx
	imulq	$1020408, %rax, %rax
	leaq	20016(%r11,%rax), %rcx
	addq	%rdx, %rax
	imulq	$20016, 8(%rsp), %rdx
	addq	%rdx, %rax
	xorl	%edx, %edx
.L17:
	addq	(%rcx), %rdx
	addq	$20016, %rcx
	cmpq	%rax, %rcx
	jne	.L17
.L5:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$280, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L5
.L26:
	movslq	%ebp, %rax
	leaq	20008(,%rdx,8), %rsi
	addl	$1, %ebp
	imulq	$127551, %rax, %rax
	addq	%rdx, %rax
	xorl	%edx, %edx
	leaq	(%r11,%rax,8), %rcx
	movl	$1, %eax
.L15:
	addl	$1, %eax
	addq	20008(%rcx), %rdx
	addq	%rsi, %rcx
	cmpl	%ebp, %eax
	jne	.L15
	jmp	.L5
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 52040808
dp:
	.zero	52040808
	.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>
long long dp[51][51][2501]={0};
int main(void){
	int n,a,i,x[51];
	scanf("%d %d",&n,&a);
	for(i=0;i<n;i++)scanf("%d",&x[i]);
	long long ans=0;
	dp[0][0][0]=1;
	for(i=0;i<51;i++)dp[i][0][0]=1;
	for(int j=0;j<n;j++){
		for(int k=1;k<=n;k++){
			for(int s=0;s<=2500;s++){
				if(s>=x[j])dp[j+1][k][s]=dp[j][k][s]+dp[j][k-1][s-x[j]];
				else dp[j+1][k][s]=dp[j][k][s];

			}
		}
	}
	for(int k=1;k<=n;k++){ans+=dp[n][k][k*a];}
	
	printf("%lld",ans);
	return 0;
}
4 8
7 9 8 9

5
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>
long long dp[51][51][2501]={0};
int main(void){
	int n,a,i,x[51];
	scanf("%d %d",&n,&a);
	for(i=0;i<n;i++)scanf("%d",&x[i]);
	long long ans=0;
	dp[0][0][0]=1;
	for(i=0;i<51;i++)dp[i][0][0]=1;
	for(int j=0;j<n;j++){
		for(int k=1;k<=n;k++){
			for(int s=0;s<=2500;s++){
				if(s>=x[j])dp[j+1][k][s]=dp[j][k][s]+dp[j][k-1][s-x[j]];
				else dp[j+1][k][s]=dp[j][k][s];

			}
		}
	}
	for(int k=1;k<=n;k++){ans+=dp[n][k][k*a];}
	
	printf("%lld",ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 52040808
dp:
	.zero	52040808
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$272, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-256(%rbp), %rdx
	leaq	-260(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -252(%rbp)
	jmp	.L2
.L3:
	leaq	-224(%rbp), %rdx
	movl	-252(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -252(%rbp)
.L2:
	movl	-260(%rbp), %eax
	cmpl	%eax, -252(%rbp)
	jl	.L3
	movq	$0, -232(%rbp)
	movq	$1, dp(%rip)
	movl	$0, -252(%rbp)
	jmp	.L4
.L5:
	movl	-252(%rbp), %eax
	cltq
	imulq	$1020408, %rax, %rax
	leaq	dp(%rip), %rdx
	movq	$1, (%rax,%rdx)
	addl	$1, -252(%rbp)
.L4:
	cmpl	$50, -252(%rbp)
	jle	.L5
	movl	$0, -248(%rbp)
	jmp	.L6
.L13:
	movl	$1, -244(%rbp)
	jmp	.L7
.L12:
	movl	$0, -240(%rbp)
	jmp	.L8
.L11:
	movl	-248(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	cmpl	%eax, -240(%rbp)
	jl	.L9
	movl	-240(%rbp), %eax
	movslq	%eax, %rcx
	movl	-248(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244(%rbp), %eax
	cltq
	imulq	$127551, %rdx, %rdx
	imulq	$2501, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movl	-244(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-248(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-240(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %rdi
	movl	-248(%rbp), %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$127551, %rdx, %rdx
	imulq	$2501, %rax, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-248(%rbp), %eax
	leal	1(%rax), %edx
	addq	%rsi, %rcx
	movl	-240(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movl	-244(%rbp), %eax
	cltq
	imulq	$127551, %rdx, %rdx
	imulq	$2501, %rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	jmp	.L10
.L9:
	movl	-248(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-240(%rbp), %eax
	movslq	%eax, %rsi
	movl	-248(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244(%rbp), %eax
	cltq
	imulq	$127551, %rdx, %rdx
	imulq	$2501, %rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-240(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%ecx, %rcx
	movl	-244(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$127551, %rcx, %rcx
	imulq	$2501, %rdx, %rdx
	addq	%rcx, %rdx
	addq	%rsi, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
.L10:
	addl	$1, -240(%rbp)
.L8:
	cmpl	$2500, -240(%rbp)
	jle	.L11
	addl	$1, -244(%rbp)
.L7:
	movl	-260(%rbp), %eax
	cmpl	%eax, -244(%rbp)
	jle	.L12
	addl	$1, -248(%rbp)
.L6:
	movl	-260(%rbp), %eax
	cmpl	%eax, -248(%rbp)
	jl	.L13
	movl	$1, -236(%rbp)
	jmp	.L14
.L15:
	movl	-260(%rbp), %edx
	movl	-256(%rbp), %eax
	imull	-236(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movl	-236(%rbp), %eax
	cltq
	imulq	$127551, %rdx, %rdx
	imulq	$2501, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, -232(%rbp)
	addl	$1, -236(%rbp)
.L14:
	movl	-260(%rbp), %eax
	cmpl	%eax, -236(%rbp)
	jle	.L15
	movq	-232(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 52040808
dp:
	.zero	52040808
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$272, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-256(%rbp), %rdx
	leaq	-260(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -252(%rbp)
	jmp	.L2
.L3:
	leaq	-224(%rbp), %rdx
	movl	-252(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -252(%rbp)
.L2:
	movl	-260(%rbp), %eax
	cmpl	%eax, -252(%rbp)
	jl	.L3
	movq	$0, -232(%rbp)
	movq	$1, dp(%rip)
	movl	$0, -252(%rbp)
	jmp	.L4
.L5:
	movl	-252(%rbp), %eax
	cltq
	imulq	$1020408, %rax, %rax
	leaq	dp(%rip), %rdx
	movq	$1, (%rax,%rdx)
	addl	$1, -252(%rbp)
.L4:
	cmpl	$50, -252(%rbp)
	jle	.L5
	movl	$0, -248(%rbp)
	jmp	.L6
.L13:
	movl	$1, -244(%rbp)
	jmp	.L7
.L12:
	movl	$0, -240(%rbp)
	jmp	.L8
.L11:
	movl	-248(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	cmpl	%eax, -240(%rbp)
	jl	.L9
	movl	-240(%rbp), %eax
	movslq	%eax, %rcx
	movl	-248(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244(%rbp), %eax
	cltq
	imulq	$127551, %rdx, %rdx
	imulq	$2501, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movl	-244(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-248(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-240(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %rdi
	movl	-248(%rbp), %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$127551, %rdx, %rdx
	imulq	$2501, %rax, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-248(%rbp), %eax
	leal	1(%rax), %edx
	addq	%rsi, %rcx
	movl	-240(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movl	-244(%rbp), %eax
	cltq
	imulq	$127551, %rdx, %rdx
	imulq	$2501, %rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	jmp	.L10
.L9:
	movl	-248(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-240(%rbp), %eax
	movslq	%eax, %rsi
	movl	-248(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244(%rbp), %eax
	cltq
	imulq	$127551, %rdx, %rdx
	imulq	$2501, %rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-240(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%ecx, %rcx
	movl	-244(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$127551, %rcx, %rcx
	imulq	$2501, %rdx, %rdx
	addq	%rcx, %rdx
	addq	%rsi, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
.L10:
	addl	$1, -240(%rbp)
.L8:
	cmpl	$2500, -240(%rbp)
	jle	.L11
	addl	$1, -244(%rbp)
.L7:
	movl	-260(%rbp), %eax
	cmpl	%eax, -244(%rbp)
	jle	.L12
	addl	$1, -248(%rbp)
.L6:
	movl	-260(%rbp), %eax
	cmpl	%eax, -248(%rbp)
	jl	.L13
	movl	$1, -236(%rbp)
	jmp	.L14
.L15:
	movl	-260(%rbp), %edx
	movl	-256(%rbp), %eax
	imull	-236(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movl	-236(%rbp), %eax
	cltq
	imulq	$127551, %rdx, %rdx
	imulq	$2501, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, -232(%rbp)
	addl	$1, -236(%rbp)
.L14:
	movl	-260(%rbp), %eax
	cmpl	%eax, -236(%rbp)
	jle	.L15
	movq	-232(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
