Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

#define _overload(a, b, c, d, ...) d
#define _rep1(X, A, Y) for (int X = (A); X <= (Y);++X)
#define _rep2(X, Y) for (int X = 0; X < (Y); ++X)
#define rep(...) _overload(__VA_ARGS__, _rep1, _rep2)(__VA_ARGS__)
typedef long long ll;

#define MAX_N 50
#define MAX_A 50
int N, A;
int x[MAX_N + 1];
ll dp[MAX_N + 1][MAX_N + 1][MAX_N * MAX_A + 1];

int main() {
    scanf("%d %d", &N, &A);
    rep(i, 1, N) scanf("%d", &x[i]);

    rep(i, N) dp[i][0][0] = 1;

    rep(i, 1, N) {
        rep(j, 1, i) {
            rep(k, 1, N * A) {
                if (k < x[i]) {
                    dp[i][j][k] = dp[i - 1][j][k];
                } else {
                    dp[i][j][k] = dp[i - 1][j][k] + dp[i - 1][j - 1][k - x[i]];
                }
            }
        }
    }

    ll ans = 0;
    rep(j, 1, N) {
        ans += dp[N][j][j * A];
    }

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

    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	A
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.zero	4
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 204
x:
	.zero	204
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 52040808
dp:
	.zero	52040808
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.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	$32, %rsp
	leaq	A(%rip), %rax
	movq	%rax, %rdx
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -32(%rbp)
	jmp	.L2
.L3:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -32(%rbp)
.L2:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jle	.L3
	movl	$0, -28(%rbp)
	jmp	.L4
.L5:
	movl	-28(%rbp), %eax
	cltq
	imulq	$1020408, %rax, %rax
	leaq	dp(%rip), %rdx
	movq	$1, (%rax,%rdx)
	addl	$1, -28(%rbp)
.L4:
	movl	N(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L5
	movl	$1, -24(%rbp)
	jmp	.L6
.L13:
	movl	$1, -20(%rbp)
	jmp	.L7
.L12:
	movl	$1, -16(%rbp)
	jmp	.L8
.L11:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -16(%rbp)
	jge	.L9
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movl	-20(%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
	movl	-16(%rbp), %edx
	movslq	%edx, %rsi
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movl	-20(%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)
	jmp	.L10
.L9:
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movl	-20(%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), %rdi
	movl	-24(%rbp), %eax
	leal	-1(%rax), %esi
	movl	-20(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %r8
	movslq	%esi, %rdx
	movslq	%ecx, %rax
	imulq	$127551, %rdx, %rdx
	imulq	$2501, %rax, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	(%rdi,%rax), %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rsi
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%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)
.L10:
	addl	$1, -16(%rbp)
.L8:
	movl	N(%rip), %edx
	movl	A(%rip), %eax
	imull	%edx, %eax
	cmpl	%eax, -16(%rbp)
	jle	.L11
	addl	$1, -20(%rbp)
.L7:
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L12
	addl	$1, -24(%rbp)
.L6:
	movl	N(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jle	.L13
	movq	$0, -8(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L14
.L15:
	movl	N(%rip), %edx
	movl	A(%rip), %eax
	imull	-12(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movl	-12(%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, -8(%rbp)
	addl	$1, -12(%rbp)
.L14:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L15
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	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
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d"
.LC5:
	.string	"%lld\n"
	.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	A(%rip), %rdx
	leaq	N(%rip), %rsi
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC1(%rip), %rdi
	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	$136, %rsp
	.cfi_def_cfa_offset 192
	call	__isoc99_scanf@PLT
	movl	N(%rip), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	4+x(%rip), %rbp
	movl	$1, %ebx
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	N(%rip), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jge	.L3
	movl	%eax, 108(%rsp)
	testl	%eax, %eax
	jle	.L2
	subl	$1, %eax
	leaq	dp(%rip), %r15
	imulq	$1020408, %rax, %rdx
	movq	%rax, 120(%rsp)
	leaq	1020408(%r15), %rax
	addq	%rax, %rdx
	movq	%r15, %rax
	.p2align 4,,10
	.p2align 3
.L4:
	movq	$1, (%rax)
	addq	$1020408, %rax
	cmpq	%rdx, %rax
	jne	.L4
	movl	108(%rsp), %ebx
	movl	A(%rip), %esi
	movl	%ebx, %eax
	movl	%esi, 112(%rsp)
	imull	%esi, %eax
	movl	%eax, 116(%rsp)
	testl	%eax, %eax
	jle	.L5
	addl	$1, %ebx
	movl	%eax, %r12d
	movq	$2501, 80(%rsp)
	movdqa	.LC3(%rip), %xmm4
	movl	%ebx, 92(%rsp)
	leaq	-1000392(%r15), %rbx
	movdqa	.LC4(%rip), %xmm3
	movq	%rbx, 96(%rsp)
	leal	1(%rax), %ebx
	movq	$1020408, 56(%rsp)
	movq	$0, 64(%rsp)
	movq	$0, 72(%rsp)
	movl	$1, 24(%rsp)
	movl	%ebx, 104(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	72(%rsp), %rdx
	leaq	4+x(%rip), %rax
	movl	104(%rsp), %edi
	movq	96(%rsp), %rsi
	addq	56(%rsp), %rsi
	movl	(%rax,%rdx,4), %ebx
	movslq	24(%rsp), %rbp
	cmpl	%ebx, %edi
	cmovg	%ebx, %edi
	cmpl	$1, %edi
	leal	-1(%rdi), %eax
	movl	%edi, 20(%rsp)
	movl	$1, %edi
	cmovle	%edi, %eax
	movl	%eax, %edi
	movl	%eax, 32(%rsp)
	shrl	$2, %eax
	subl	$1, %eax
	andl	$-4, %edi
	addq	$1, %rax
	movl	%edi, 36(%rsp)
	salq	$5, %rax
	movq	%rax, 40(%rsp)
	leal	1(%rdi), %eax
	movslq	%edx, %rdi
	movl	%eax, 88(%rsp)
	movslq	%ebx, %rax
	movq	%rax, 48(%rsp)
	leaq	1040408(,%rax,8), %rax
	testq	%rax, %rax
	movq	80(%rsp), %rax
	setne	31(%rsp)
	imulq	$127551, %rbp, %rbp
	xorl	%r8d, %r8d
	movq	%rax, 8(%rsp)
	imulq	$127551, %rdi, %rdi
	.p2align 4,,10
	.p2align 3
.L20:
	movslq	%r8d, %rdx
	addl	$1, %r8d
	cmpl	$1, %ebx
	jg	.L19
	movl	$1, %eax
.L17:
	movl	%r12d, %r11d
	subl	%eax, %r11d
	cmpl	%r12d, %eax
	setle	%cl
	testb	%cl, 31(%rsp)
	je	.L10
	cmpl	$1, %r11d
	jbe	.L10
	addl	$1, %r11d
	movl	$1, %ecx
	cmpl	%r12d, %eax
	movslq	%eax, %r10
	cmovg	%ecx, %r11d
	movq	8(%rsp), %rcx
	addq	$127551, %rcx
	leaq	(%r10,%rcx), %r9
	subq	48(%rsp), %rcx
	addq	%r10, %rcx
	movl	%r11d, %r10d
	salq	$3, %r9
	shrl	%r10d
	leaq	-1020408(%r15,%r9), %r14
	leaq	-1040416(%r15,%rcx,8), %r13
	addq	%r15, %r9
	salq	$4, %r10
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L11:
	movdqu	(%r14,%rcx), %xmm0
	movdqu	0(%r13,%rcx), %xmm6
	paddq	%xmm6, %xmm0
	movups	%xmm0, (%r9,%rcx)
	addq	$16, %rcx
	cmpq	%r10, %rcx
	jne	.L11
	movl	%r11d, %ecx
	andl	$-2, %ecx
	addl	%ecx, %eax
	cmpl	%ecx, %r11d
	je	.L13
	movslq	%r8d, %rcx
	imulq	$2501, %rdx, %rdx
	movslq	%eax, %r10
	subl	%ebx, %eax
	imulq	$2501, %rcx, %rcx
	cltq
	addq	%rdi, %rdx
	leaq	0(%rbp,%rcx), %r9
	addq	%rdi, %rcx
	addq	%rax, %rdx
	addq	%r10, %rcx
	addq	%r10, %r9
	movq	(%r15,%rcx,8), %rax
	addq	(%r15,%rdx,8), %rax
	movq	%rax, (%r15,%r9,8)
.L13:
	addq	$2501, 8(%rsp)
	addq	$20008, %rsi
	cmpl	24(%rsp), %r8d
	jne	.L20
	addl	$1, 24(%rsp)
	movl	24(%rsp), %eax
	addq	$1, 72(%rsp)
	subq	$1020408, 64(%rsp)
	addq	$1020408, 56(%rsp)
	addq	$127551, 80(%rsp)
	cmpl	92(%rsp), %eax
	jne	.L6
.L5:
	cmpl	$1, 112(%rsp)
	jne	.L43
	movslq	116(%rsp), %rax
	leaq	40032+dp(%rip), %rcx
	xorl	%r8d, %r8d
	imulq	$1020408, %rax, %rax
	leaq	20016(%r15,%rax), %rdx
	addq	%rcx, %rax
	imulq	$20016, 120(%rsp), %rcx
	addq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L24:
	addq	(%rdx), %r8
	addq	$20016, %rdx
	cmpq	%rdx, %rax
	jne	.L24
.L25:
	movq	%r8, %rdx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$136, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	cmpl	$4, 20(%rsp)
	jle	.L26
	movdqa	.LC0(%rip), %xmm1
	movq	40(%rsp), %r9
	leaq	1020408(%rsi), %rcx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L8:
	movdqu	16(%rsi,%rax), %xmm2
	movdqu	(%rsi,%rax), %xmm5
	movdqa	%xmm1, %xmm0
	paddd	%xmm4, %xmm1
	paddd	%xmm3, %xmm0
	movups	%xmm5, (%rcx,%rax)
	movups	%xmm2, 16(%rcx,%rax)
	addq	$32, %rax
	cmpq	%r9, %rax
	jne	.L8
	pshufd	$255, %xmm0, %xmm0
	movl	36(%rsp), %r14d
	movd	%xmm0, %eax
	cmpl	%r14d, 32(%rsp)
	je	.L9
	movl	88(%rsp), %r10d
.L7:
	movslq	%r8d, %rcx
	movslq	%r10d, %rax
	movl	20(%rsp), %r14d
	imulq	$2501, %rcx, %rcx
	leaq	(%rdi,%rcx), %r9
	addq	%rbp, %rcx
	leaq	(%r9,%rax), %r11
	addq	%rcx, %rax
	movq	(%r15,%r11,8), %r11
	movq	%r11, (%r15,%rax,8)
	leal	1(%r10), %eax
	cmpl	%eax, %r14d
	jle	.L9
	cltq
	leaq	(%r9,%rax), %r11
	addq	%rcx, %rax
	movq	(%r15,%r11,8), %r11
	movq	%r11, (%r15,%rax,8)
	leal	2(%r10), %eax
	cmpl	%eax, %r14d
	jle	.L9
	cltq
	addq	%rax, %r9
	addq	%rax, %rcx
	leal	3(%r10), %eax
	movq	(%r15,%r9,8), %r9
	movq	%r9, (%r15,%rcx,8)
.L9:
	cmpl	%eax, %r12d
	jge	.L17
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L10:
	movq	8(%rsp), %rdx
	movl	%eax, %r10d
	movslq	%eax, %rcx
	movq	64(%rsp), %r11
	subl	%ebx, %r10d
	movq	56(%rsp), %r13
	addq	%rcx, %rdx
	movslq	%r10d, %r10
	leaq	(%r15,%rdx,8), %rdx
	subq	%rcx, %r10
	.p2align 4,,10
	.p2align 3
.L15:
	movq	(%rdx), %rcx
	leaq	(%rdx,%r11), %r9
	addl	$1, %eax
	addq	-20008(%rdx,%r10,8), %rcx
	movq	%rcx, (%r9,%r13)
	addq	$8, %rdx
	cmpl	%eax, %r12d
	jge	.L15
	jmp	.L13
.L26:
	movl	$1, %r10d
	jmp	.L7
.L43:
	movslq	108(%rsp), %rdx
	movslq	112(%rsp), %rax
	xorl	%r8d, %r8d
	movq	%rdx, %rbx
	imulq	$127551, %rdx, %rdx
	leaq	20008(,%rax,8), %rsi
	addq	%rdx, %rax
	movl	$1, %edx
	leaq	(%r15,%rax,8), %rcx
	leal	1(%rbx), %eax
.L22:
	addl	$1, %edx
	addq	20008(%rcx), %r8
	addq	%rsi, %rcx
	cmpl	%eax, %edx
	jne	.L22
	jmp	.L25
.L2:
	xorl	%r8d, %r8d
	jmp	.L25
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 52040808
dp:
	.zero	52040808
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 204
x:
	.zero	204
	.globl	A
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC3:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC4:
	.long	1
	.long	1
	.long	1
	.long	1
	.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
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d"
.LC5:
	.string	"%lld\n"
	.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	A(%rip), %rdx
	leaq	N(%rip), %rsi
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC1(%rip), %rdi
	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	$136, %rsp
	.cfi_def_cfa_offset 192
	call	__isoc99_scanf@PLT
	movl	N(%rip), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	4+x(%rip), %rbp
	movl	$1, %ebx
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	N(%rip), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jge	.L3
	movl	%eax, 108(%rsp)
	testl	%eax, %eax
	jle	.L2
	subl	$1, %eax
	leaq	dp(%rip), %r15
	imulq	$1020408, %rax, %rdx
	movq	%rax, 120(%rsp)
	leaq	1020408(%r15), %rax
	addq	%rax, %rdx
	movq	%r15, %rax
	.p2align 4,,10
	.p2align 3
.L4:
	movq	$1, (%rax)
	addq	$1020408, %rax
	cmpq	%rdx, %rax
	jne	.L4
	movl	108(%rsp), %ebx
	movl	A(%rip), %esi
	movl	%ebx, %eax
	movl	%esi, 112(%rsp)
	imull	%esi, %eax
	movl	%eax, 116(%rsp)
	testl	%eax, %eax
	jle	.L5
	addl	$1, %ebx
	movl	%eax, %r12d
	movq	$2501, 80(%rsp)
	movdqa	.LC3(%rip), %xmm4
	movl	%ebx, 92(%rsp)
	leaq	-1000392(%r15), %rbx
	movdqa	.LC4(%rip), %xmm3
	movq	%rbx, 96(%rsp)
	leal	1(%rax), %ebx
	movq	$1020408, 56(%rsp)
	movq	$0, 64(%rsp)
	movq	$0, 72(%rsp)
	movl	$1, 24(%rsp)
	movl	%ebx, 104(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	72(%rsp), %rdx
	leaq	4+x(%rip), %rax
	movl	104(%rsp), %edi
	movq	96(%rsp), %rsi
	addq	56(%rsp), %rsi
	movl	(%rax,%rdx,4), %ebx
	movslq	24(%rsp), %rbp
	cmpl	%ebx, %edi
	cmovg	%ebx, %edi
	cmpl	$1, %edi
	leal	-1(%rdi), %eax
	movl	%edi, 20(%rsp)
	movl	$1, %edi
	cmovle	%edi, %eax
	movl	%eax, %edi
	movl	%eax, 32(%rsp)
	shrl	$2, %eax
	subl	$1, %eax
	andl	$-4, %edi
	addq	$1, %rax
	movl	%edi, 36(%rsp)
	salq	$5, %rax
	movq	%rax, 40(%rsp)
	leal	1(%rdi), %eax
	movslq	%edx, %rdi
	movl	%eax, 88(%rsp)
	movslq	%ebx, %rax
	movq	%rax, 48(%rsp)
	leaq	1040408(,%rax,8), %rax
	testq	%rax, %rax
	movq	80(%rsp), %rax
	setne	31(%rsp)
	imulq	$127551, %rbp, %rbp
	xorl	%r8d, %r8d
	movq	%rax, 8(%rsp)
	imulq	$127551, %rdi, %rdi
	.p2align 4,,10
	.p2align 3
.L20:
	movslq	%r8d, %rdx
	addl	$1, %r8d
	cmpl	$1, %ebx
	jg	.L19
	movl	$1, %eax
.L17:
	movl	%r12d, %r11d
	subl	%eax, %r11d
	cmpl	%r12d, %eax
	setle	%cl
	testb	%cl, 31(%rsp)
	je	.L10
	cmpl	$1, %r11d
	jbe	.L10
	addl	$1, %r11d
	movl	$1, %ecx
	cmpl	%r12d, %eax
	movslq	%eax, %r10
	cmovg	%ecx, %r11d
	movq	8(%rsp), %rcx
	addq	$127551, %rcx
	leaq	(%r10,%rcx), %r9
	subq	48(%rsp), %rcx
	addq	%r10, %rcx
	movl	%r11d, %r10d
	salq	$3, %r9
	shrl	%r10d
	leaq	-1020408(%r15,%r9), %r14
	leaq	-1040416(%r15,%rcx,8), %r13
	addq	%r15, %r9
	salq	$4, %r10
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L11:
	movdqu	(%r14,%rcx), %xmm0
	movdqu	0(%r13,%rcx), %xmm6
	paddq	%xmm6, %xmm0
	movups	%xmm0, (%r9,%rcx)
	addq	$16, %rcx
	cmpq	%r10, %rcx
	jne	.L11
	movl	%r11d, %ecx
	andl	$-2, %ecx
	addl	%ecx, %eax
	cmpl	%ecx, %r11d
	je	.L13
	movslq	%r8d, %rcx
	imulq	$2501, %rdx, %rdx
	movslq	%eax, %r10
	subl	%ebx, %eax
	imulq	$2501, %rcx, %rcx
	cltq
	addq	%rdi, %rdx
	leaq	0(%rbp,%rcx), %r9
	addq	%rdi, %rcx
	addq	%rax, %rdx
	addq	%r10, %rcx
	addq	%r10, %r9
	movq	(%r15,%rcx,8), %rax
	addq	(%r15,%rdx,8), %rax
	movq	%rax, (%r15,%r9,8)
.L13:
	addq	$2501, 8(%rsp)
	addq	$20008, %rsi
	cmpl	24(%rsp), %r8d
	jne	.L20
	addl	$1, 24(%rsp)
	movl	24(%rsp), %eax
	addq	$1, 72(%rsp)
	subq	$1020408, 64(%rsp)
	addq	$1020408, 56(%rsp)
	addq	$127551, 80(%rsp)
	cmpl	92(%rsp), %eax
	jne	.L6
.L5:
	cmpl	$1, 112(%rsp)
	jne	.L43
	movslq	116(%rsp), %rax
	leaq	40032+dp(%rip), %rcx
	xorl	%r8d, %r8d
	imulq	$1020408, %rax, %rax
	leaq	20016(%r15,%rax), %rdx
	addq	%rcx, %rax
	imulq	$20016, 120(%rsp), %rcx
	addq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L24:
	addq	(%rdx), %r8
	addq	$20016, %rdx
	cmpq	%rdx, %rax
	jne	.L24
.L25:
	movq	%r8, %rdx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$136, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	cmpl	$4, 20(%rsp)
	jle	.L26
	movdqa	.LC0(%rip), %xmm1
	movq	40(%rsp), %r9
	leaq	1020408(%rsi), %rcx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L8:
	movdqu	16(%rsi,%rax), %xmm2
	movdqu	(%rsi,%rax), %xmm5
	movdqa	%xmm1, %xmm0
	paddd	%xmm4, %xmm1
	paddd	%xmm3, %xmm0
	movups	%xmm5, (%rcx,%rax)
	movups	%xmm2, 16(%rcx,%rax)
	addq	$32, %rax
	cmpq	%r9, %rax
	jne	.L8
	pshufd	$255, %xmm0, %xmm0
	movl	36(%rsp), %r14d
	movd	%xmm0, %eax
	cmpl	%r14d, 32(%rsp)
	je	.L9
	movl	88(%rsp), %r10d
.L7:
	movslq	%r8d, %rcx
	movslq	%r10d, %rax
	movl	20(%rsp), %r14d
	imulq	$2501, %rcx, %rcx
	leaq	(%rdi,%rcx), %r9
	addq	%rbp, %rcx
	leaq	(%r9,%rax), %r11
	addq	%rcx, %rax
	movq	(%r15,%r11,8), %r11
	movq	%r11, (%r15,%rax,8)
	leal	1(%r10), %eax
	cmpl	%eax, %r14d
	jle	.L9
	cltq
	leaq	(%r9,%rax), %r11
	addq	%rcx, %rax
	movq	(%r15,%r11,8), %r11
	movq	%r11, (%r15,%rax,8)
	leal	2(%r10), %eax
	cmpl	%eax, %r14d
	jle	.L9
	cltq
	addq	%rax, %r9
	addq	%rax, %rcx
	leal	3(%r10), %eax
	movq	(%r15,%r9,8), %r9
	movq	%r9, (%r15,%rcx,8)
.L9:
	cmpl	%eax, %r12d
	jge	.L17
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L10:
	movq	8(%rsp), %rdx
	movl	%eax, %r10d
	movslq	%eax, %rcx
	movq	64(%rsp), %r11
	subl	%ebx, %r10d
	movq	56(%rsp), %r13
	addq	%rcx, %rdx
	movslq	%r10d, %r10
	leaq	(%r15,%rdx,8), %rdx
	subq	%rcx, %r10
	.p2align 4,,10
	.p2align 3
.L15:
	movq	(%rdx), %rcx
	leaq	(%rdx,%r11), %r9
	addl	$1, %eax
	addq	-20008(%rdx,%r10,8), %rcx
	movq	%rcx, (%r9,%r13)
	addq	$8, %rdx
	cmpl	%eax, %r12d
	jge	.L15
	jmp	.L13
.L26:
	movl	$1, %r10d
	jmp	.L7
.L43:
	movslq	108(%rsp), %rdx
	movslq	112(%rsp), %rax
	xorl	%r8d, %r8d
	movq	%rdx, %rbx
	imulq	$127551, %rdx, %rdx
	leaq	20008(,%rax,8), %rsi
	addq	%rdx, %rax
	movl	$1, %edx
	leaq	(%r15,%rax,8), %rcx
	leal	1(%rbx), %eax
.L22:
	addl	$1, %edx
	addq	20008(%rcx), %r8
	addq	%rsi, %rcx
	cmpl	%eax, %edx
	jne	.L22
	jmp	.L25
.L2:
	xorl	%r8d, %r8d
	jmp	.L25
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 52040808
dp:
	.zero	52040808
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 204
x:
	.zero	204
	.globl	A
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC3:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC4:
	.long	1
	.long	1
	.long	1
	.long	1
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>

#define _overload(a, b, c, d, ...) d
#define _rep1(X, A, Y) for (int X = (A); X <= (Y);++X)
#define _rep2(X, Y) for (int X = 0; X < (Y); ++X)
#define rep(...) _overload(__VA_ARGS__, _rep1, _rep2)(__VA_ARGS__)
typedef long long ll;

#define MAX_N 50
#define MAX_A 50
int N, A;
int x[MAX_N + 1];
ll dp[MAX_N + 1][MAX_N + 1][MAX_N * MAX_A + 1];

int main() {
    scanf("%d %d", &N, &A);
    rep(i, 1, N) scanf("%d", &x[i]);

    rep(i, N) dp[i][0][0] = 1;

    rep(i, 1, N) {
        rep(j, 1, i) {
            rep(k, 1, N * A) {
                if (k < x[i]) {
                    dp[i][j][k] = dp[i - 1][j][k];
                } else {
                    dp[i][j][k] = dp[i - 1][j][k] + dp[i - 1][j - 1][k - x[i]];
                }
            }
        }
    }

    ll ans = 0;
    rep(j, 1, N) {
        ans += dp[N][j][j * A];
    }

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

    return 0;
}

4 8
7 12 8 9
 3 8
9 6 9
 33 3
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 1 3 3 3 3
 8 5
3 6 2 8 7 2 5 9
 3 8
15 6 9
 33 3
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 1 3 3 3 3 3 3 3 3 3 3 3 1 3 3 3 3
 8 5
3 6 2 8 7 2 5 16
 33 3
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 1 0 3 3 3 3 3 3 3 3 3 3 1 3 3 3 3
 8 5
3 6 2 8 3 2 5 16
 8 8
3 6 2 8 3 2 5 16

3
 1
 4294967295
 25
 0
 2147483647
 17
 1073741823
 7
 9

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

#define _overload(a, b, c, d, ...) d
#define _rep1(X, A, Y) for (int X = (A); X <= (Y);++X)
#define _rep2(X, Y) for (int X = 0; X < (Y); ++X)
#define rep(...) _overload(__VA_ARGS__, _rep1, _rep2)(__VA_ARGS__)
typedef long long ll;

#define MAX_N 50
#define MAX_A 50
int N, A;
int x[MAX_N + 1];
ll dp[MAX_N + 1][MAX_N + 1][MAX_N * MAX_A + 1];

int main() {
    scanf("%d %d", &N, &A);
    rep(i, 1, N) scanf("%d", &x[i]);

    rep(i, N) dp[i][0][0] = 1;

    rep(i, 1, N) {
        rep(j, 1, i) {
            rep(k, 1, N * A) {
                if (k < x[i]) {
                    dp[i][j][k] = dp[i - 1][j][k];
                } else {
                    dp[i][j][k] = dp[i - 1][j][k] + dp[i - 1][j - 1][k - x[i]];
                }
            }
        }
    }

    ll ans = 0;
    rep(j, 1, N) {
        ans += dp[N][j][j * A];
    }

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

    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	A
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.zero	4
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 204
x:
	.zero	204
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 52040808
dp:
	.zero	52040808
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.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	$32, %rsp
	leaq	A(%rip), %rax
	movq	%rax, %rdx
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -32(%rbp)
	jmp	.L2
.L3:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -32(%rbp)
.L2:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jle	.L3
	movl	$0, -28(%rbp)
	jmp	.L4
.L5:
	movl	-28(%rbp), %eax
	cltq
	imulq	$1020408, %rax, %rax
	leaq	dp(%rip), %rdx
	movq	$1, (%rax,%rdx)
	addl	$1, -28(%rbp)
.L4:
	movl	N(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L5
	movl	$1, -24(%rbp)
	jmp	.L6
.L13:
	movl	$1, -20(%rbp)
	jmp	.L7
.L12:
	movl	$1, -16(%rbp)
	jmp	.L8
.L11:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -16(%rbp)
	jge	.L9
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movl	-20(%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
	movl	-16(%rbp), %edx
	movslq	%edx, %rsi
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movl	-20(%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)
	jmp	.L10
.L9:
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movl	-20(%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), %rdi
	movl	-24(%rbp), %eax
	leal	-1(%rax), %esi
	movl	-20(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %r8
	movslq	%esi, %rdx
	movslq	%ecx, %rax
	imulq	$127551, %rdx, %rdx
	imulq	$2501, %rax, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	(%rdi,%rax), %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rsi
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%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)
.L10:
	addl	$1, -16(%rbp)
.L8:
	movl	N(%rip), %edx
	movl	A(%rip), %eax
	imull	%edx, %eax
	cmpl	%eax, -16(%rbp)
	jle	.L11
	addl	$1, -20(%rbp)
.L7:
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L12
	addl	$1, -24(%rbp)
.L6:
	movl	N(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jle	.L13
	movq	$0, -8(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L14
.L15:
	movl	N(%rip), %edx
	movl	A(%rip), %eax
	imull	-12(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movl	-12(%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, -8(%rbp)
	addl	$1, -12(%rbp)
.L14:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L15
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	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	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	A
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.zero	4
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 204
x:
	.zero	204
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 52040808
dp:
	.zero	52040808
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.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	$32, %rsp
	leaq	A(%rip), %rax
	movq	%rax, %rdx
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -32(%rbp)
	jmp	.L2
.L3:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -32(%rbp)
.L2:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jle	.L3
	movl	$0, -28(%rbp)
	jmp	.L4
.L5:
	movl	-28(%rbp), %eax
	cltq
	imulq	$1020408, %rax, %rax
	leaq	dp(%rip), %rdx
	movq	$1, (%rax,%rdx)
	addl	$1, -28(%rbp)
.L4:
	movl	N(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L5
	movl	$1, -24(%rbp)
	jmp	.L6
.L13:
	movl	$1, -20(%rbp)
	jmp	.L7
.L12:
	movl	$1, -16(%rbp)
	jmp	.L8
.L11:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -16(%rbp)
	jge	.L9
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movl	-20(%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
	movl	-16(%rbp), %edx
	movslq	%edx, %rsi
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movl	-20(%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)
	jmp	.L10
.L9:
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movl	-20(%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), %rdi
	movl	-24(%rbp), %eax
	leal	-1(%rax), %esi
	movl	-20(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %r8
	movslq	%esi, %rdx
	movslq	%ecx, %rax
	imulq	$127551, %rdx, %rdx
	imulq	$2501, %rax, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	(%rdi,%rax), %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rsi
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%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)
.L10:
	addl	$1, -16(%rbp)
.L8:
	movl	N(%rip), %edx
	movl	A(%rip), %eax
	imull	%edx, %eax
	cmpl	%eax, -16(%rbp)
	jle	.L11
	addl	$1, -20(%rbp)
.L7:
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L12
	addl	$1, -24(%rbp)
.L6:
	movl	N(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jle	.L13
	movq	$0, -8(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L14
.L15:
	movl	N(%rip), %edx
	movl	A(%rip), %eax
	imull	-12(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movl	-12(%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, -8(%rbp)
	addl	$1, -12(%rbp)
.L14:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L15
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	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:
