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>
int dp[50][3001];
int main(){
	int n,m,s;
	int i,j,k;
	while(1){
	scanf("%d %d %d",&n,&m,&s);
	if(n==0)return 0;
	for(i=0;i<=n*n;i++)for(j=0;j<=s;j++)dp[i][j]=0;
	dp[0][0]=1;
	for(i=1;i<=m;i++){
		for(j=s;j>=0;j--){
			if(j+i<=s){
				for(k=0;k<n*n;k++){
					dp[k+1][j+i]=(dp[k+1][j+i]+dp[k][j])%100000;
				}
			}
		}
	}
	printf("%d\n",dp[n*n][s]);
	}
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 600200
dp:
	.zero	600200
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d\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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L15:
	leaq	-24(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	jmp	.L17
.L2:
	movl	$0, -20(%rbp)
	jmp	.L4
.L7:
	movl	$0, -16(%rbp)
	jmp	.L5
.L6:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$3001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L5:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L6
	addl	$1, -20(%rbp)
.L4:
	movl	-32(%rbp), %edx
	movl	-32(%rbp), %eax
	imull	%edx, %eax
	cmpl	%eax, -20(%rbp)
	jle	.L7
	movl	$1, dp(%rip)
	movl	$1, -20(%rbp)
	jmp	.L8
.L14:
	movl	-24(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L9
.L13:
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%eax, %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jg	.L10
	movl	$0, -12(%rbp)
	jmp	.L11
.L12:
	movl	-12(%rbp), %eax
	addl	$1, %eax
	movl	-16(%rbp), %ecx
	movl	-20(%rbp), %edx
	addl	%ecx, %edx
	movslq	%edx, %rdx
	cltq
	imulq	$3001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-12(%rbp), %eax
	cltq
	imulq	$3001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edx
	movl	-12(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-16(%rbp), %esi
	movl	-20(%rbp), %eax
	addl	%eax, %esi
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	imull	$100000, %eax, %edi
	movl	%edx, %eax
	subl	%edi, %eax
	movslq	%esi, %rsi
	movslq	%ecx, %rdx
	imulq	$3001, %rdx, %rdx
	addq	%rsi, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
.L11:
	movl	-32(%rbp), %edx
	movl	-32(%rbp), %eax
	imull	%edx, %eax
	cmpl	%eax, -12(%rbp)
	jl	.L12
.L10:
	subl	$1, -16(%rbp)
.L9:
	cmpl	$0, -16(%rbp)
	jns	.L13
	addl	$1, -20(%rbp)
.L8:
	movl	-28(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L14
	movl	-32(%rbp), %edx
	movl	-32(%rbp), %eax
	imull	%edx, %eax
	movl	-24(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	imulq	$3001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L15
.L17:
	call	__stack_chk_fail@PLT
.L16:
	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 %d"
.LC1:
	.string	"%d\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
	pxor	%xmm4, %xmm4
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movdqa	%xmm4, %xmm5
	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	$216, %rsp
	.cfi_def_cfa_offset 272
	movdqa	.LC2(%rip), %xmm3
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	196(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	192(%rsp), %rax
	pcmpgtd	%xmm3, %xmm5
	movq	%rax, 144(%rsp)
	leaq	188(%rsp), %rax
	movq	%rax, 136(%rsp)
	movaps	%xmm5, 160(%rsp)
.L6:
	movq	152(%rsp), %rcx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	movq	144(%rsp), %rdx
	movq	136(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	188(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	imull	%eax, %eax
	movl	196(%rsp), %r15d
	movl	%eax, %r14d
	testl	%r15d, %r15d
	js	.L3
	movl	%eax, %ebp
	leaq	dp(%rip), %rbx
	imulq	$12004, %rbp, %rbp
	leaq	12004(%rbx), %rax
	movq	%rbx, %rcx
	addq	%rax, %rbp
	movslq	%r15d, %rax
	movq	%rax, 96(%rsp)
	leaq	4(,%rax,4), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%esi, %esi
	movq	%rcx, %rdi
	movq	%r12, %rdx
	call	memset@PLT
	movdqa	.LC2(%rip), %xmm3
	pxor	%xmm4, %xmm4
	movq	%rax, %rcx
	addq	$12004, %rcx
	cmpq	%rbp, %rcx
	jne	.L4
	movl	192(%rsp), %edx
	movl	$1, dp(%rip)
	testl	%edx, %edx
	jle	.L10
	leal	-1(%r14), %eax
	movl	%r14d, %esi
	xorl	%r12d, %r12d
	movq	$4, 56(%rsp)
	movl	%eax, 116(%rsp)
	imulq	$12004, %rax, %rax
	andl	$-4, %esi
	movdqa	160(%rsp), %xmm5
	leal	1(%rsi), %ecx
	leal	2(%rsi), %edi
	movl	%esi, 28(%rsp)
	addl	$3, %esi
	movl	%esi, 112(%rsp)
	movq	$-1, %r11
	addq	$4, %rax
	movl	%ecx, 84(%rsp)
	movq	%rax, 40(%rsp)
	movl	$4, %eax
	subq	%rbx, %rax
	movl	%edi, 80(%rsp)
	movq	%rax, 48(%rsp)
	leal	1(%rdx), %eax
	movq	%rax, 120(%rsp)
	movq	96(%rsp), %rax
	movq	$1, 16(%rsp)
	leaq	(%rbx,%rax,2), %rdx
	leaq	(%rbx,%rax,4), %rax
	movq	%rax, 104(%rsp)
	movl	%r14d, %eax
	leaq	12004(%rdx,%rdx), %rsi
	shrl	$2, %eax
	movq	%rsi, 128(%rsp)
	subl	$1, %eax
	addq	$1, %rax
	imulq	$48016, %rax, %rax
	movq	%rax, 64(%rsp)
	movslq	%ecx, %rax
	imulq	$3001, %rax, %rax
	movq	%rax, 88(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	movl	16(%rsp), %eax
	movq	128(%rsp), %rcx
	movq	40(%rsp), %rdi
	addq	48(%rsp), %rcx
	addl	%r15d, %eax
	cmpq	$24008, 56(%rsp)
	seta	%sil
	cmpl	$2, 116(%rsp)
	seta	%dl
	addq	$12004, %rdi
	movq	%rdi, 72(%rsp)
	movslq	28(%rsp), %rdi
	andl	%edx, %esi
	movb	%sil, 27(%rsp)
	movq	96(%rsp), %rdx
	imulq	$3001, %rdi, %rdi
	movq	104(%rsp), %rsi
	movq	%rdi, 32(%rsp)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L11:
	subl	$1, %eax
	subq	$1, %rdx
	subq	$4, %rcx
	subq	$4, %rsi
	cmpl	%r12d, %eax
	je	.L29
.L8:
	movslq	%edx, %rdi
	cmpl	%r15d, %eax
	jg	.L11
	testl	%r14d, %r14d
	jle	.L11
	cmpb	$0, 27(%rsp)
	je	.L12
	movq	64(%rsp), %r10
	movq	%rsi, %r9
	movq	%rcx, %r8
	addq	%rcx, %r10
	.p2align 4,,10
	.p2align 3
.L13:
	movd	(%r8), %xmm0
	movdqa	%xmm4, %xmm6
	movd	36012(%r8), %xmm7
	addq	$48016, %r8
	movd	-24008(%r8), %xmm1
	addq	$48016, %r9
	movd	-24008(%r9), %xmm2
	punpckldq	%xmm7, %xmm1
	movd	-36012(%r8), %xmm7
	punpckldq	%xmm7, %xmm0
	movd	-12004(%r9), %xmm7
	punpcklqdq	%xmm1, %xmm0
	movd	-48016(%r9), %xmm1
	punpckldq	%xmm7, %xmm2
	movd	-36012(%r9), %xmm7
	punpckldq	%xmm7, %xmm1
	movdqa	%xmm5, %xmm7
	punpcklqdq	%xmm2, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	punpckldq	%xmm0, %xmm1
	pcmpgtd	%xmm1, %xmm6
	pmuludq	%xmm1, %xmm7
	movdqa	%xmm1, %xmm2
	pmuludq	%xmm3, %xmm2
	movdqa	%xmm0, %xmm1
	punpckhdq	%xmm0, %xmm1
	pmuludq	%xmm3, %xmm6
	paddq	%xmm7, %xmm6
	movdqa	%xmm5, %xmm7
	psllq	$32, %xmm6
	pmuludq	%xmm1, %xmm7
	paddq	%xmm6, %xmm2
	movdqa	%xmm4, %xmm6
	pcmpgtd	%xmm1, %xmm6
	pmuludq	%xmm3, %xmm1
	pmuludq	%xmm3, %xmm6
	paddq	%xmm7, %xmm6
	psllq	$32, %xmm6
	paddq	%xmm6, %xmm1
	shufps	$221, %xmm1, %xmm2
	movdqa	%xmm0, %xmm1
	psrad	$13, %xmm2
	psrad	$31, %xmm1
	psubd	%xmm1, %xmm2
	movdqa	%xmm2, %xmm1
	pslld	$1, %xmm1
	paddd	%xmm2, %xmm1
	movdqa	%xmm1, %xmm6
	pslld	$6, %xmm6
	paddd	%xmm6, %xmm1
	pslld	$2, %xmm1
	paddd	%xmm2, %xmm1
	pslld	$2, %xmm1
	paddd	%xmm2, %xmm1
	pslld	$5, %xmm1
	psubd	%xmm1, %xmm0
	movd	%xmm0, -48016(%r8)
	pshufd	$85, %xmm0, %xmm1
	movd	%xmm1, -36012(%r8)
	movdqa	%xmm0, %xmm1
	punpckhdq	%xmm0, %xmm1
	pshufd	$255, %xmm0, %xmm0
	movd	%xmm1, -24008(%r8)
	movd	%xmm0, -12004(%r8)
	cmpq	%r10, %r8
	jne	.L13
	cmpl	%r14d, 28(%rsp)
	je	.L11
	movq	88(%rsp), %rbp
	movq	32(%rsp), %r8
	movslq	%eax, %r9
	movq	%r9, 8(%rsp)
	movq	%rbp, %r10
	addq	%rdi, %r8
	addq	%r9, %r10
	movl	(%rbx,%r8,4), %r9d
	addl	(%rbx,%r10,4), %r9d
	movslq	%r9d, %r8
	movl	%r9d, %r13d
	imulq	$351843721, %r8, %r8
	sarl	$31, %r13d
	sarq	$45, %r8
	subl	%r13d, %r8d
	imull	$100000, %r8d, %r8d
	subl	%r8d, %r9d
	movl	%r9d, (%rbx,%r10,4)
	cmpl	84(%rsp), %r14d
	jle	.L11
	movslq	80(%rsp), %r10
	movq	8(%rsp), %r9
	leaq	0(%rbp,%rdi), %r8
	imulq	$3001, %r10, %r10
	leaq	(%r10,%r9), %r13
	movl	(%rbx,%r8,4), %r9d
	addl	(%rbx,%r13,4), %r9d
	movslq	%r9d, %r8
	movl	%r9d, %ebp
	imulq	$351843721, %r8, %r8
	sarl	$31, %ebp
	sarq	$45, %r8
	subl	%ebp, %r8d
	imull	$100000, %r8d, %r8d
	subl	%r8d, %r9d
	movl	%r9d, (%rbx,%r13,4)
	cmpl	80(%rsp), %r14d
	jle	.L11
	movslq	112(%rsp), %r8
	addq	%rdi, %r10
	movl	(%rbx,%r10,4), %r9d
	imulq	$3001, %r8, %r8
	addq	8(%rsp), %r8
	addl	(%rbx,%r8,4), %r9d
	movslq	%r9d, %rdi
	movl	%r9d, %r10d
	imulq	$351843721, %rdi, %rdi
	sarl	$31, %r10d
	sarq	$45, %rdi
	subl	%r10d, %edi
	imull	$100000, %edi, %edi
	subl	%edi, %r9d
	movl	%r9d, (%rbx,%r8,4)
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L29:
	addq	$1, 16(%rsp)
	addq	$1, %r12
	movq	16(%rsp), %rax
	subq	$1, %r11
	addq	$4, 40(%rsp)
	addq	$4, 48(%rsp)
	addq	$4, 56(%rsp)
	cmpq	120(%rsp), %rax
	jne	.L9
.L10:
	movslq	%r14d, %rax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	imulq	$3001, %rax, %rax
	addq	96(%rsp), %rax
	movl	(%rbx,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	movq	72(%rsp), %rdi
	leaq	-12004(%rcx), %r9
	leaq	(%rdi,%rsi), %rbp
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%r9,%r11,4), %r8d
	addl	12004(%r9), %r8d
	addq	$12004, %r9
	movslq	%r8d, %rdi
	movl	%r8d, %r10d
	imulq	$351843721, %rdi, %rdi
	sarl	$31, %r10d
	sarq	$45, %rdi
	subl	%r10d, %edi
	imull	$100000, %edi, %edi
	subl	%edi, %r8d
	movl	%r8d, (%r9)
	cmpq	%rbp, %r9
	jne	.L16
	jmp	.L11
.L2:
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$216, %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
.L3:
	.cfi_restore_state
	movslq	%r15d, %rax
	leaq	dp(%rip), %rbx
	movl	$1, dp(%rip)
	movq	%rax, 96(%rsp)
	jmp	.L10
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 600200
dp:
	.zero	600200
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	351843721
	.long	351843721
	.long	351843721
	.long	351843721
	.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 %d"
.LC1:
	.string	"%d\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
	pxor	%xmm4, %xmm4
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movdqa	%xmm4, %xmm5
	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	$216, %rsp
	.cfi_def_cfa_offset 272
	movdqa	.LC2(%rip), %xmm3
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	196(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	192(%rsp), %rax
	pcmpgtd	%xmm3, %xmm5
	movq	%rax, 144(%rsp)
	leaq	188(%rsp), %rax
	movq	%rax, 136(%rsp)
	movaps	%xmm5, 160(%rsp)
.L6:
	movq	152(%rsp), %rcx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	movq	144(%rsp), %rdx
	movq	136(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	188(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	imull	%eax, %eax
	movl	196(%rsp), %r15d
	movl	%eax, %r14d
	testl	%r15d, %r15d
	js	.L3
	movl	%eax, %ebp
	leaq	dp(%rip), %rbx
	imulq	$12004, %rbp, %rbp
	leaq	12004(%rbx), %rax
	movq	%rbx, %rcx
	addq	%rax, %rbp
	movslq	%r15d, %rax
	movq	%rax, 96(%rsp)
	leaq	4(,%rax,4), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%esi, %esi
	movq	%rcx, %rdi
	movq	%r12, %rdx
	call	memset@PLT
	movdqa	.LC2(%rip), %xmm3
	pxor	%xmm4, %xmm4
	movq	%rax, %rcx
	addq	$12004, %rcx
	cmpq	%rbp, %rcx
	jne	.L4
	movl	192(%rsp), %edx
	movl	$1, dp(%rip)
	testl	%edx, %edx
	jle	.L10
	leal	-1(%r14), %eax
	movl	%r14d, %esi
	xorl	%r12d, %r12d
	movq	$4, 56(%rsp)
	movl	%eax, 116(%rsp)
	imulq	$12004, %rax, %rax
	andl	$-4, %esi
	movdqa	160(%rsp), %xmm5
	leal	1(%rsi), %ecx
	leal	2(%rsi), %edi
	movl	%esi, 28(%rsp)
	addl	$3, %esi
	movl	%esi, 112(%rsp)
	movq	$-1, %r11
	addq	$4, %rax
	movl	%ecx, 84(%rsp)
	movq	%rax, 40(%rsp)
	movl	$4, %eax
	subq	%rbx, %rax
	movl	%edi, 80(%rsp)
	movq	%rax, 48(%rsp)
	leal	1(%rdx), %eax
	movq	%rax, 120(%rsp)
	movq	96(%rsp), %rax
	movq	$1, 16(%rsp)
	leaq	(%rbx,%rax,2), %rdx
	leaq	(%rbx,%rax,4), %rax
	movq	%rax, 104(%rsp)
	movl	%r14d, %eax
	leaq	12004(%rdx,%rdx), %rsi
	shrl	$2, %eax
	movq	%rsi, 128(%rsp)
	subl	$1, %eax
	addq	$1, %rax
	imulq	$48016, %rax, %rax
	movq	%rax, 64(%rsp)
	movslq	%ecx, %rax
	imulq	$3001, %rax, %rax
	movq	%rax, 88(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	movl	16(%rsp), %eax
	movq	128(%rsp), %rcx
	movq	40(%rsp), %rdi
	addq	48(%rsp), %rcx
	addl	%r15d, %eax
	cmpq	$24008, 56(%rsp)
	seta	%sil
	cmpl	$2, 116(%rsp)
	seta	%dl
	addq	$12004, %rdi
	movq	%rdi, 72(%rsp)
	movslq	28(%rsp), %rdi
	andl	%edx, %esi
	movb	%sil, 27(%rsp)
	movq	96(%rsp), %rdx
	imulq	$3001, %rdi, %rdi
	movq	104(%rsp), %rsi
	movq	%rdi, 32(%rsp)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L11:
	subl	$1, %eax
	subq	$1, %rdx
	subq	$4, %rcx
	subq	$4, %rsi
	cmpl	%r12d, %eax
	je	.L29
.L8:
	movslq	%edx, %rdi
	cmpl	%r15d, %eax
	jg	.L11
	testl	%r14d, %r14d
	jle	.L11
	cmpb	$0, 27(%rsp)
	je	.L12
	movq	64(%rsp), %r10
	movq	%rsi, %r9
	movq	%rcx, %r8
	addq	%rcx, %r10
	.p2align 4,,10
	.p2align 3
.L13:
	movd	(%r8), %xmm0
	movdqa	%xmm4, %xmm6
	movd	36012(%r8), %xmm7
	addq	$48016, %r8
	movd	-24008(%r8), %xmm1
	addq	$48016, %r9
	movd	-24008(%r9), %xmm2
	punpckldq	%xmm7, %xmm1
	movd	-36012(%r8), %xmm7
	punpckldq	%xmm7, %xmm0
	movd	-12004(%r9), %xmm7
	punpcklqdq	%xmm1, %xmm0
	movd	-48016(%r9), %xmm1
	punpckldq	%xmm7, %xmm2
	movd	-36012(%r9), %xmm7
	punpckldq	%xmm7, %xmm1
	movdqa	%xmm5, %xmm7
	punpcklqdq	%xmm2, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	punpckldq	%xmm0, %xmm1
	pcmpgtd	%xmm1, %xmm6
	pmuludq	%xmm1, %xmm7
	movdqa	%xmm1, %xmm2
	pmuludq	%xmm3, %xmm2
	movdqa	%xmm0, %xmm1
	punpckhdq	%xmm0, %xmm1
	pmuludq	%xmm3, %xmm6
	paddq	%xmm7, %xmm6
	movdqa	%xmm5, %xmm7
	psllq	$32, %xmm6
	pmuludq	%xmm1, %xmm7
	paddq	%xmm6, %xmm2
	movdqa	%xmm4, %xmm6
	pcmpgtd	%xmm1, %xmm6
	pmuludq	%xmm3, %xmm1
	pmuludq	%xmm3, %xmm6
	paddq	%xmm7, %xmm6
	psllq	$32, %xmm6
	paddq	%xmm6, %xmm1
	shufps	$221, %xmm1, %xmm2
	movdqa	%xmm0, %xmm1
	psrad	$13, %xmm2
	psrad	$31, %xmm1
	psubd	%xmm1, %xmm2
	movdqa	%xmm2, %xmm1
	pslld	$1, %xmm1
	paddd	%xmm2, %xmm1
	movdqa	%xmm1, %xmm6
	pslld	$6, %xmm6
	paddd	%xmm6, %xmm1
	pslld	$2, %xmm1
	paddd	%xmm2, %xmm1
	pslld	$2, %xmm1
	paddd	%xmm2, %xmm1
	pslld	$5, %xmm1
	psubd	%xmm1, %xmm0
	movd	%xmm0, -48016(%r8)
	pshufd	$85, %xmm0, %xmm1
	movd	%xmm1, -36012(%r8)
	movdqa	%xmm0, %xmm1
	punpckhdq	%xmm0, %xmm1
	pshufd	$255, %xmm0, %xmm0
	movd	%xmm1, -24008(%r8)
	movd	%xmm0, -12004(%r8)
	cmpq	%r10, %r8
	jne	.L13
	cmpl	%r14d, 28(%rsp)
	je	.L11
	movq	88(%rsp), %rbp
	movq	32(%rsp), %r8
	movslq	%eax, %r9
	movq	%r9, 8(%rsp)
	movq	%rbp, %r10
	addq	%rdi, %r8
	addq	%r9, %r10
	movl	(%rbx,%r8,4), %r9d
	addl	(%rbx,%r10,4), %r9d
	movslq	%r9d, %r8
	movl	%r9d, %r13d
	imulq	$351843721, %r8, %r8
	sarl	$31, %r13d
	sarq	$45, %r8
	subl	%r13d, %r8d
	imull	$100000, %r8d, %r8d
	subl	%r8d, %r9d
	movl	%r9d, (%rbx,%r10,4)
	cmpl	84(%rsp), %r14d
	jle	.L11
	movslq	80(%rsp), %r10
	movq	8(%rsp), %r9
	leaq	0(%rbp,%rdi), %r8
	imulq	$3001, %r10, %r10
	leaq	(%r10,%r9), %r13
	movl	(%rbx,%r8,4), %r9d
	addl	(%rbx,%r13,4), %r9d
	movslq	%r9d, %r8
	movl	%r9d, %ebp
	imulq	$351843721, %r8, %r8
	sarl	$31, %ebp
	sarq	$45, %r8
	subl	%ebp, %r8d
	imull	$100000, %r8d, %r8d
	subl	%r8d, %r9d
	movl	%r9d, (%rbx,%r13,4)
	cmpl	80(%rsp), %r14d
	jle	.L11
	movslq	112(%rsp), %r8
	addq	%rdi, %r10
	movl	(%rbx,%r10,4), %r9d
	imulq	$3001, %r8, %r8
	addq	8(%rsp), %r8
	addl	(%rbx,%r8,4), %r9d
	movslq	%r9d, %rdi
	movl	%r9d, %r10d
	imulq	$351843721, %rdi, %rdi
	sarl	$31, %r10d
	sarq	$45, %rdi
	subl	%r10d, %edi
	imull	$100000, %edi, %edi
	subl	%edi, %r9d
	movl	%r9d, (%rbx,%r8,4)
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L29:
	addq	$1, 16(%rsp)
	addq	$1, %r12
	movq	16(%rsp), %rax
	subq	$1, %r11
	addq	$4, 40(%rsp)
	addq	$4, 48(%rsp)
	addq	$4, 56(%rsp)
	cmpq	120(%rsp), %rax
	jne	.L9
.L10:
	movslq	%r14d, %rax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	imulq	$3001, %rax, %rax
	addq	96(%rsp), %rax
	movl	(%rbx,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	movq	72(%rsp), %rdi
	leaq	-12004(%rcx), %r9
	leaq	(%rdi,%rsi), %rbp
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%r9,%r11,4), %r8d
	addl	12004(%r9), %r8d
	addq	$12004, %r9
	movslq	%r8d, %rdi
	movl	%r8d, %r10d
	imulq	$351843721, %rdi, %rdi
	sarl	$31, %r10d
	sarq	$45, %rdi
	subl	%r10d, %edi
	imull	$100000, %edi, %edi
	subl	%edi, %r8d
	movl	%r8d, (%r9)
	cmpq	%rbp, %r9
	jne	.L16
	jmp	.L11
.L2:
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$216, %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
.L3:
	.cfi_restore_state
	movslq	%r15d, %rax
	leaq	dp(%rip), %rbx
	movl	$1, dp(%rip)
	movq	%rax, 96(%rsp)
	jmp	.L10
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 600200
dp:
	.zero	600200
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	351843721
	.long	351843721
	.long	351843721
	.long	351843721
	.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>
int dp[50][3001];
int main(){
	int n,m,s;
	int i,j,k;
	while(1){
	scanf("%d %d %d",&n,&m,&s);
	if(n==0)return 0;
	for(i=0;i<=n*n;i++)for(j=0;j<=s;j++)dp[i][j]=0;
	dp[0][0]=1;
	for(i=1;i<=m;i++){
		for(j=s;j>=0;j--){
			if(j+i<=s){
				for(k=0;k<n*n;k++){
					dp[k+1][j+i]=(dp[k+1][j+i]+dp[k][j])%100000;
				}
			}
		}
	}
	printf("%d\n",dp[n*n][s]);
	}
}
3 9 45
3 100 50
5 50 308
0 0 0
 3 12 45
3 100 75
5 50 308
0 0 0
 3 12 45
3 100 69
5 50 308
0 0 0
 3 12 45
3 100 69
5 90 548
0 0 0
 3 12 45
3 100 50
5 50 331
0 0 0
 3 3 45
3 100 69
5 50 308
0 0 0
 3 12 60
3 100 69
5 90 308
0 0 0
 3 3 45
3 100 85
5 50 308
0 0 0
 3 12 45
3 100 34
5 50 331
0 0 1
 3 12 60
5 100 69
5 90 308
0 0 -1

1
7
0
 1
3060
0
 1
1076
0
 1
1076
3141
 1
7
11
 0
1076
0
 15
1076
0
 0
13338
0
 1
0
11
 15
0
0

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>
int dp[50][3001];
int main(){
	int n,m,s;
	int i,j,k;
	while(1){
	scanf("%d %d %d",&n,&m,&s);
	if(n==0)return 0;
	for(i=0;i<=n*n;i++)for(j=0;j<=s;j++)dp[i][j]=0;
	dp[0][0]=1;
	for(i=1;i<=m;i++){
		for(j=s;j>=0;j--){
			if(j+i<=s){
				for(k=0;k<n*n;k++){
					dp[k+1][j+i]=(dp[k+1][j+i]+dp[k][j])%100000;
				}
			}
		}
	}
	printf("%d\n",dp[n*n][s]);
	}
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 600200
dp:
	.zero	600200
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d\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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L15:
	leaq	-24(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	jmp	.L17
.L2:
	movl	$0, -20(%rbp)
	jmp	.L4
.L7:
	movl	$0, -16(%rbp)
	jmp	.L5
.L6:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$3001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L5:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L6
	addl	$1, -20(%rbp)
.L4:
	movl	-32(%rbp), %edx
	movl	-32(%rbp), %eax
	imull	%edx, %eax
	cmpl	%eax, -20(%rbp)
	jle	.L7
	movl	$1, dp(%rip)
	movl	$1, -20(%rbp)
	jmp	.L8
.L14:
	movl	-24(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L9
.L13:
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%eax, %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jg	.L10
	movl	$0, -12(%rbp)
	jmp	.L11
.L12:
	movl	-12(%rbp), %eax
	addl	$1, %eax
	movl	-16(%rbp), %ecx
	movl	-20(%rbp), %edx
	addl	%ecx, %edx
	movslq	%edx, %rdx
	cltq
	imulq	$3001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-12(%rbp), %eax
	cltq
	imulq	$3001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edx
	movl	-12(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-16(%rbp), %esi
	movl	-20(%rbp), %eax
	addl	%eax, %esi
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	imull	$100000, %eax, %edi
	movl	%edx, %eax
	subl	%edi, %eax
	movslq	%esi, %rsi
	movslq	%ecx, %rdx
	imulq	$3001, %rdx, %rdx
	addq	%rsi, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
.L11:
	movl	-32(%rbp), %edx
	movl	-32(%rbp), %eax
	imull	%edx, %eax
	cmpl	%eax, -12(%rbp)
	jl	.L12
.L10:
	subl	$1, -16(%rbp)
.L9:
	cmpl	$0, -16(%rbp)
	jns	.L13
	addl	$1, -20(%rbp)
.L8:
	movl	-28(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L14
	movl	-32(%rbp), %edx
	movl	-32(%rbp), %eax
	imull	%edx, %eax
	movl	-24(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	imulq	$3001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L15
.L17:
	call	__stack_chk_fail@PLT
.L16:
	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, 600200
dp:
	.zero	600200
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d\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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L15:
	leaq	-24(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	jmp	.L17
.L2:
	movl	$0, -20(%rbp)
	jmp	.L4
.L7:
	movl	$0, -16(%rbp)
	jmp	.L5
.L6:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$3001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L5:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L6
	addl	$1, -20(%rbp)
.L4:
	movl	-32(%rbp), %edx
	movl	-32(%rbp), %eax
	imull	%edx, %eax
	cmpl	%eax, -20(%rbp)
	jle	.L7
	movl	$1, dp(%rip)
	movl	$1, -20(%rbp)
	jmp	.L8
.L14:
	movl	-24(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L9
.L13:
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%eax, %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jg	.L10
	movl	$0, -12(%rbp)
	jmp	.L11
.L12:
	movl	-12(%rbp), %eax
	addl	$1, %eax
	movl	-16(%rbp), %ecx
	movl	-20(%rbp), %edx
	addl	%ecx, %edx
	movslq	%edx, %rdx
	cltq
	imulq	$3001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-12(%rbp), %eax
	cltq
	imulq	$3001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edx
	movl	-12(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-16(%rbp), %esi
	movl	-20(%rbp), %eax
	addl	%eax, %esi
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	imull	$100000, %eax, %edi
	movl	%edx, %eax
	subl	%edi, %eax
	movslq	%esi, %rsi
	movslq	%ecx, %rdx
	imulq	$3001, %rdx, %rdx
	addq	%rsi, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
.L11:
	movl	-32(%rbp), %edx
	movl	-32(%rbp), %eax
	imull	%edx, %eax
	cmpl	%eax, -12(%rbp)
	jl	.L12
.L10:
	subl	$1, -16(%rbp)
.L9:
	cmpl	$0, -16(%rbp)
	jns	.L13
	addl	$1, -20(%rbp)
.L8:
	movl	-28(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L14
	movl	-32(%rbp), %edx
	movl	-32(%rbp), %eax
	imull	%edx, %eax
	movl	-24(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	imulq	$3001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L15
.L17:
	call	__stack_chk_fail@PLT
.L16:
	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:
