Given the following C code and 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;
}
  ```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

user
```assembly
	.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
```assembly
	.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:
```
```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;
}
  ```
Given the following C 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;
}
  ```

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.
Optimized Assembly Code:

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 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;
}
  ```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

train
```assembly
	.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:
```