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 d[60][3010]={1};
int main(){
  int a,b,c,i,j,k;
  while(scanf("%d %d %d",&a,&b,&c),a){
    for(i=0;i<50*3000;i++)d[i/3000][i%3000]=0;
    d[0][0]=1;
    for(j=1;j<=b;j++){
      for(i=a*a;i;i--){
	for(k=0;k<c;k++){
	  //printf("%3d ",d[i-1][k]);
	  if(k+j<=c)d[i][k+j]=(d[i][k+j]+d[i-1][k])%100000;
	}//printf("\n");
      }//printf("\n\n");
    }
    printf("%d\n",d[a*a][c]);
  }
  return 0;
}
  ```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	d
	.data
	.align 32
	.type	d, @object
	.size	d, 722400
d:
	.long	1
	.zero	12036
	.zero	710360
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d %d %d"
	.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
	jmp	.L2
.L12:
	movl	$0, -20(%rbp)
	jmp	.L3
.L4:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$91625969, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$6, %edx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$91625969, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$6, %edx
	movl	%eax, %esi
	sarl	$31, %esi
	subl	%esi, %edx
	imull	$3000, %edx, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movslq	%edx, %rdx
	movslq	%ecx, %rax
	imulq	$3010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -20(%rbp)
.L3:
	cmpl	$149999, -20(%rbp)
	jle	.L4
	movl	$1, d(%rip)
	movl	$1, -16(%rbp)
	jmp	.L5
.L11:
	movl	-32(%rbp), %edx
	movl	-32(%rbp), %eax
	imull	%edx, %eax
	movl	%eax, -20(%rbp)
	jmp	.L6
.L10:
	movl	$0, -12(%rbp)
	jmp	.L7
.L9:
	movl	-12(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%eax, %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jg	.L8
	movl	-12(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$3010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	imulq	$3010, %rax, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edx
	movl	-12(%rbp), %ecx
	movl	-16(%rbp), %eax
	addl	%eax, %ecx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	imull	$100000, %eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movslq	%ecx, %rcx
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$3010, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	d(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L8:
	addl	$1, -12(%rbp)
.L7:
	movl	-24(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L9
	subl	$1, -20(%rbp)
.L6:
	cmpl	$0, -20(%rbp)
	jne	.L10
	addl	$1, -16(%rbp)
.L5:
	movl	-28(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L11
	movl	-32(%rbp), %edx
	movl	-32(%rbp), %eax
	imull	%edx, %eax
	movl	-24(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	imulq	$3010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-24(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	testl	%eax, %eax
	jne	.L12
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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\n"
.LC1:
	.string	"%d %d %d"
	.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	d(%rip), %r15
	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	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	84(%rsp), %rax
	movq	%rax, 48(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	76(%rsp), %rax
	movq	%rax, 56(%rsp)
.L2:
	movq	48(%rsp), %rcx
	movq	40(%rsp), %rdx
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	56(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %edi
	testl	%edi, %edi
	je	.L22
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%edx, %eax
	movl	%edx, %ecx
	addl	$1, %edx
	imulq	$91625969, %rax, %rax
	shrq	$38, %rax
	imull	$3000, %eax, %esi
	cltq
	imulq	$3010, %rax, %rax
	subl	%esi, %ecx
	movslq	%ecx, %rcx
	addq	%rcx, %rax
	movl	$0, (%r15,%rax,4)
	cmpl	$150000, %edx
	jne	.L3
	movl	80(%rsp), %edx
	movl	%edi, %eax
	movslq	84(%rsp), %r8
	movl	$1, d(%rip)
	imull	%edi, %eax
	testl	%edx, %edx
	jle	.L20
	testl	%r8d, %r8d
	jle	.L20
	leal	1(%rdx), %ebx
	leal	1(%r8), %edi
	movl	$1, %r13d
	movq	%rbx, 16(%rsp)
	movslq	%eax, %rbx
	subl	$1, %eax
	leaq	4+d(%rip), %r14
	imulq	$-12040, %rbx, %rdx
	movq	%rbx, 32(%rsp)
	subq	%rax, %rbx
	imulq	$12040, %rbx, %r12
	leaq	(%r15,%rdx), %rsi
	movq	%rsi, 24(%rsp)
	movq	$-12040, %rsi
	subq	$24080, %r12
	subq	%rdx, %rsi
	movq	%rsi, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	movq	24(%rsp), %r11
	movq	8(%rsp), %r10
	movl	%r13d, %ebp
	leaq	12040(%r14), %rbx
	subq	%r14, %r11
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	(%rbx,%r10), %rsi
	movl	%ebp, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%r8d, %edx
	jg	.L7
	leaq	(%rsi,%r11), %rax
	movl	(%rsi), %ecx
	addl	(%rax,%r10), %ecx
	movslq	%ecx, %rax
	movl	%ecx, %r9d
	imulq	$351843721, %rax, %rax
	sarl	$31, %r9d
	sarq	$45, %rax
	subl	%r9d, %eax
	imull	$100000, %eax, %eax
	subl	%eax, %ecx
	movl	%ecx, (%rsi)
.L7:
	addl	$1, %edx
	addq	$4, %rsi
	cmpl	%edi, %edx
	jne	.L8
	subq	$12040, %r10
	addq	$12040, %r11
	cmpq	%r12, %r10
	jne	.L6
	addl	$1, %edi
	addq	$1, %r13
	addq	$4, %r14
	cmpq	16(%rsp), %r13
	jne	.L10
.L11:
	imulq	$3010, 32(%rsp), %rax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	addq	%r8, %rax
	movl	(%r15,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L20:
	cltq
	movq	%rax, 32(%rsp)
	jmp	.L11
.L22:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$104, %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
.L23:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	d
	.data
	.align 32
	.type	d, @object
	.size	d, 722400
d:
	.long	1
	.zero	12036
	.zero	710360
	.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\n"
.LC1:
	.string	"%d %d %d"
	.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	d(%rip), %r15
	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	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	84(%rsp), %rax
	movq	%rax, 48(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	76(%rsp), %rax
	movq	%rax, 56(%rsp)
.L2:
	movq	48(%rsp), %rcx
	movq	40(%rsp), %rdx
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	56(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %edi
	testl	%edi, %edi
	je	.L22
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%edx, %eax
	movl	%edx, %ecx
	addl	$1, %edx
	imulq	$91625969, %rax, %rax
	shrq	$38, %rax
	imull	$3000, %eax, %esi
	cltq
	imulq	$3010, %rax, %rax
	subl	%esi, %ecx
	movslq	%ecx, %rcx
	addq	%rcx, %rax
	movl	$0, (%r15,%rax,4)
	cmpl	$150000, %edx
	jne	.L3
	movl	80(%rsp), %edx
	movl	%edi, %eax
	movslq	84(%rsp), %r8
	movl	$1, d(%rip)
	imull	%edi, %eax
	testl	%edx, %edx
	jle	.L20
	testl	%r8d, %r8d
	jle	.L20
	leal	1(%rdx), %ebx
	leal	1(%r8), %edi
	movl	$1, %r13d
	movq	%rbx, 16(%rsp)
	movslq	%eax, %rbx
	subl	$1, %eax
	leaq	4+d(%rip), %r14
	imulq	$-12040, %rbx, %rdx
	movq	%rbx, 32(%rsp)
	subq	%rax, %rbx
	imulq	$12040, %rbx, %r12
	leaq	(%r15,%rdx), %rsi
	movq	%rsi, 24(%rsp)
	movq	$-12040, %rsi
	subq	$24080, %r12
	subq	%rdx, %rsi
	movq	%rsi, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	movq	24(%rsp), %r11
	movq	8(%rsp), %r10
	movl	%r13d, %ebp
	leaq	12040(%r14), %rbx
	subq	%r14, %r11
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	(%rbx,%r10), %rsi
	movl	%ebp, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%r8d, %edx
	jg	.L7
	leaq	(%rsi,%r11), %rax
	movl	(%rsi), %ecx
	addl	(%rax,%r10), %ecx
	movslq	%ecx, %rax
	movl	%ecx, %r9d
	imulq	$351843721, %rax, %rax
	sarl	$31, %r9d
	sarq	$45, %rax
	subl	%r9d, %eax
	imull	$100000, %eax, %eax
	subl	%eax, %ecx
	movl	%ecx, (%rsi)
.L7:
	addl	$1, %edx
	addq	$4, %rsi
	cmpl	%edi, %edx
	jne	.L8
	subq	$12040, %r10
	addq	$12040, %r11
	cmpq	%r12, %r10
	jne	.L6
	addl	$1, %edi
	addq	$1, %r13
	addq	$4, %r14
	cmpq	16(%rsp), %r13
	jne	.L10
.L11:
	imulq	$3010, 32(%rsp), %rax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	addq	%r8, %rax
	movl	(%r15,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L20:
	cltq
	movq	%rax, 32(%rsp)
	jmp	.L11
.L22:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$104, %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
.L23:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	d
	.data
	.align 32
	.type	d, @object
	.size	d, 722400
d:
	.long	1
	.zero	12036
	.zero	710360
	.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 d[60][3010]={1};
int main(){
  int a,b,c,i,j,k;
  while(scanf("%d %d %d",&a,&b,&c),a){
    for(i=0;i<50*3000;i++)d[i/3000][i%3000]=0;
    d[0][0]=1;
    for(j=1;j<=b;j++){
      for(i=a*a;i;i--){
	for(k=0;k<c;k++){
	  //printf("%3d ",d[i-1][k]);
	  if(k+j<=c)d[i][k+j]=(d[i][k+j]+d[i-1][k])%100000;
	}//printf("\n");
      }//printf("\n\n");
    }
    printf("%d\n",d[a*a][c]);
  }
  return 0;
}
  
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 d[60][3010]={1};
int main(){
  int a,b,c,i,j,k;
  while(scanf("%d %d %d",&a,&b,&c),a){
    for(i=0;i<50*3000;i++)d[i/3000][i%3000]=0;
    d[0][0]=1;
    for(j=1;j<=b;j++){
      for(i=a*a;i;i--){
	for(k=0;k<c;k++){
	  //printf("%3d ",d[i-1][k]);
	  if(k+j<=c)d[i][k+j]=(d[i][k+j]+d[i-1][k])%100000;
	}//printf("\n");
      }//printf("\n\n");
    }
    printf("%d\n",d[a*a][c]);
  }
  return 0;
}
  ```

Unoptimized Assembly Code:

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