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

```c
long long n,a,b,c,f[5006][5006],i,j,r,y,s,m=1000000007;main(){scanf("%llu%llu%llu%llu",&n,&a,&b,&c);if(b%2)exit(!puts("0"));for(f[0][0]=1;++i<=n;s=c+3)for(f[i][j=0]=1;++j<=i;)f[i][j]=(f[i-1][j-1]+f[i-1][j])%m;for(i=0;(s-=3)>=0;r+=y%m*f[a+b/2+i][i]%m,i++)if(b)for(y=j=0;j<=a&&j<=s;j++)y+=f[a][j]*f[s+b/2-1-j][b/2-1]%m;else if(s<=a)y=f[a][s];printf("%lld\n",r%m*f[a+b/2][a]%m);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.globl	a
	.align 8
	.type	a, @object
	.size	a, 8
a:
	.zero	8
	.globl	b
	.align 8
	.type	b, @object
	.size	b, 8
b:
	.zero	8
	.globl	c
	.align 8
	.type	c, @object
	.size	c, 8
c:
	.zero	8
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 200480288
f:
	.zero	200480288
	.globl	i
	.align 8
	.type	i, @object
	.size	i, 8
i:
	.zero	8
	.globl	j
	.align 8
	.type	j, @object
	.size	j, 8
j:
	.zero	8
	.globl	r
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.globl	y
	.align 8
	.type	y, @object
	.size	y, 8
y:
	.zero	8
	.globl	s
	.align 8
	.type	s, @object
	.size	s, 8
s:
	.zero	8
	.globl	m
	.data
	.align 8
	.type	m, @object
	.size	m, 8
m:
	.quad	1000000007
	.section	.rodata
.LC0:
	.string	"%llu%llu%llu%llu"
.LC1:
	.string	"0"
.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
	leaq	c(%rip), %r8
	leaq	b(%rip), %rax
	movq	%rax, %rcx
	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	scanf@PLT
	movq	b(%rip), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L2
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movl	%eax, %edi
	call	exit@PLT
.L2:
	movq	$1, f(%rip)
	jmp	.L3
.L6:
	movq	i(%rip), %rax
	movq	$0, j(%rip)
	movq	j(%rip), %rdx
	imulq	$5006, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	$1, (%rdx,%rax)
	jmp	.L4
.L5:
	movq	i(%rip), %rax
	leaq	-1(%rax), %rdx
	movq	j(%rip), %rax
	leaq	-1(%rax), %rcx
	imulq	$5006, %rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	i(%rip), %rax
	subq	$1, %rax
	movq	j(%rip), %rdx
	imulq	$5006, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rcx, %rax
	movq	m(%rip), %rsi
	movq	i(%rip), %rcx
	movq	j(%rip), %rdi
	cqto
	idivq	%rsi
	movq	%rdx, %rsi
	imulq	$5006, %rcx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	%rsi, (%rdx,%rax)
.L4:
	movq	j(%rip), %rax
	addq	$1, %rax
	movq	%rax, j(%rip)
	movq	j(%rip), %rdx
	movq	i(%rip), %rax
	cmpq	%rax, %rdx
	jle	.L5
	movq	c(%rip), %rax
	addq	$3, %rax
	movq	%rax, s(%rip)
.L3:
	movq	i(%rip), %rax
	addq	$1, %rax
	movq	%rax, i(%rip)
	movq	i(%rip), %rdx
	movq	n(%rip), %rax
	cmpq	%rax, %rdx
	jle	.L6
	movq	$0, i(%rip)
	jmp	.L7
.L12:
	movq	b(%rip), %rax
	testq	%rax, %rax
	je	.L8
	movq	$0, j(%rip)
	movq	j(%rip), %rax
	movq	%rax, y(%rip)
	jmp	.L9
.L11:
	movq	a(%rip), %rax
	movq	j(%rip), %rdx
	imulq	$5006, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	b(%rip), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	s(%rip), %rax
	addq	%rcx, %rax
	subq	$1, %rax
	movq	j(%rip), %rsi
	subq	%rsi, %rax
	movq	%rax, %rcx
	movq	b(%rip), %rax
	movq	%rax, %rsi
	shrq	$63, %rsi
	addq	%rsi, %rax
	sarq	%rax
	leaq	-1(%rax), %rsi
	imulq	$5006, %rcx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rcx
	leaq	f(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rdx, %rax
	movq	m(%rip), %rcx
	cqto
	idivq	%rcx
	movq	y(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, y(%rip)
	movq	j(%rip), %rax
	addq	$1, %rax
	movq	%rax, j(%rip)
.L9:
	movq	j(%rip), %rdx
	movq	a(%rip), %rax
	cmpq	%rax, %rdx
	jg	.L10
	movq	j(%rip), %rdx
	movq	s(%rip), %rax
	cmpq	%rax, %rdx
	jle	.L11
	jmp	.L10
.L8:
	movq	s(%rip), %rdx
	movq	a(%rip), %rax
	cmpq	%rax, %rdx
	jg	.L10
	movq	a(%rip), %rax
	movq	s(%rip), %rdx
	imulq	$5006, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, y(%rip)
.L10:
	movq	y(%rip), %rax
	movq	m(%rip), %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movq	b(%rip), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	a(%rip), %rax
	addq	%rax, %rdx
	movq	i(%rip), %rax
	addq	%rdx, %rax
	movq	i(%rip), %rdx
	imulq	$5006, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	%rcx, %rax
	movq	m(%rip), %rcx
	cqto
	idivq	%rcx
	movq	r(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, r(%rip)
	movq	i(%rip), %rax
	addq	$1, %rax
	movq	%rax, i(%rip)
.L7:
	movq	s(%rip), %rax
	subq	$3, %rax
	movq	%rax, s(%rip)
	movq	s(%rip), %rax
	testq	%rax, %rax
	jns	.L12
	movq	r(%rip), %rax
	movq	m(%rip), %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movq	b(%rip), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	a(%rip), %rax
	addq	%rdx, %rax
	movq	a(%rip), %rdx
	imulq	$5006, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	%rcx, %rax
	movq	m(%rip), %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	popq	%rbp
	.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	"%llu%llu%llu%llu"
.LC1:
	.string	"0"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	c(%rip), %r8
	xorl	%eax, %eax
	leaq	b(%rip), %rcx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	a(%rip), %rdx
	leaq	n(%rip), %rsi
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %rdi
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	call	scanf@PLT
	movq	b(%rip), %r14
	testb	$1, %r14b
	jne	.L50
	movq	i(%rip), %r13
	movq	s(%rip), %r8
	movq	$1, f(%rip)
	leaq	f(%rip), %r12
	movq	n(%rip), %r15
	movq	m(%rip), %rcx
	leaq	1(%r13), %rbp
	subq	$3, %r8
	cmpq	%r15, %rbp
	jg	.L4
	movq	c(%rip), %r8
	testq	%r13, %r13
	jns	.L5
	xorl	%edx, %edx
	testq	%r15, %r15
	cmovle	%r15, %rdx
	imulq	$40048, %rbp, %rax
	addq	%r12, %rax
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %r13
	movq	$1, (%rax)
	addq	$1, %rbp
	addq	$40048, %rax
	cmpq	%r13, %rdx
	jg	.L7
	cmpq	%r15, %rbp
	jg	.L51
.L5:
	imulq	$40048, %rbp, %r11
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r13, %r10
	movq	$1, (%r12,%r11)
	movq	%rbp, %r13
	xorl	%edi, %edi
	imulq	$40048, %r10, %rbx
	leaq	8(%r12,%rbx), %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	movq	-8(%rsi), %rax
	addq	(%rsi), %rax
	movq	%rsi, %r9
	addq	$1, %rdi
	cqto
	subq	%rbx, %r9
	addq	$8, %rsi
	idivq	%rcx
	movq	%rdx, (%r9,%r11)
	cmpq	%rdi, %r10
	jge	.L8
	addq	$1, %rbp
	addq	$2, %r10
	addq	$40048, %r11
	cmpq	%rbp, %r15
	jge	.L9
.L10:
	movq	%r10, j(%rip)
.L4:
	movq	%r14, %rax
	movq	%r8, s(%rip)
	movq	$0, i(%rip)
	shrq	$63, %rax
	addq	%r14, %rax
	sarq	%rax
	movq	%rax, 24(%rsp)
	movq	a(%rip), %rax
	movq	%rax, 8(%rsp)
	movq	r(%rip), %rax
	movq	%rax, %r10
	testq	%r8, %r8
	js	.L52
	movq	24(%rsp), %rdi
	movq	8(%rsp), %rdx
	movq	y(%rip), %rsi
	movq	%rdi, %rbx
	leaq	-1(%rdi), %r15
	addq	%rdx, %rbx
	movq	%r15, 40(%rsp)
	movq	%rbx, 32(%rsp)
	cmpq	%rdx, %r8
	jle	.L27
	testq	%rdx, %rdx
	movq	16(%rsp), %r11
	movl	$1, %ebp
	movq	$-1, %rax
	cmovns	%rdx, %rax
	imulq	$40048, %rbx, %rbx
	xorl	%r9d, %r9d
	imulq	$40048, %rdx, %r13
	movq	%rax, (%rsp)
	leaq	(%r8,%rdi), %rax
	xorl	%edi, %edi
	imulq	$5006, %rax, %rax
	addq	%r12, %rbx
	addq	%r12, %r13
	addq	%r15, %rax
	leaq	(%r12,%rax,8), %r15
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rsi, %rax
	subq	$3, %r8
	addq	$40056, %rbx
	subq	$120144, %r15
	cqto
	idivq	%rcx
	movq	-40056(%rbx), %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rcx
	movq	%rbp, %rax
	addq	$1, %rbp
	addq	%rdx, %r10
	cmpq	(%rsp), %r8
	jle	.L53
.L17:
	testq	%r14, %r14
	je	.L14
	movq	8(%rsp), %rax
	movq	%rax, %rdi
	orq	%r8, %rdi
	js	.L28
	cmpq	%rax, %r8
	movq	%r15, %r9
	cmovle	%r8, %rax
	xorl	%edi, %edi
	xorl	%esi, %esi
	movq	%rax, %r11
	.p2align 4,,10
	.p2align 3
.L15:
	movq	0(%r13,%rdi,8), %rax
	addq	$1, %rdi
	imulq	-40048(%r9), %rax
	subq	$40048, %r9
	cqto
	idivq	%rcx
	addq	%rdx, %rsi
	cmpq	%r11, %rdi
	jle	.L15
	xorl	%eax, %eax
	testq	%r11, %r11
	movl	$1, %edi
	movl	$1, %r9d
	cmovs	%rax, %r11
	addq	$1, %r11
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L27:
	xorl	%eax, %eax
	xorl	%edi, %edi
.L13:
	imulq	$40048, 32(%rsp), %r11
	leaq	1(%rax), %rbp
	movq	16(%rsp), %rbx
	imulq	$40056, %rax, %rax
	imulq	$40048, 8(%rsp), %r13
	addq	%rax, %r11
	movq	24(%rsp), %rax
	addq	%r12, %r11
	addq	%r12, %r13
	addq	%r8, %rax
	imulq	$5006, %rax, %rax
	addq	40(%rsp), %rax
	leaq	(%r12,%rax,8), %r15
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L18:
	movq	0(%r13,%r8,8), %rsi
.L19:
	movq	%rsi, %rax
	addq	$40056, %r11
	subq	$120144, %r15
	cqto
	idivq	%rcx
	movq	-40056(%r11), %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rcx
	movq	%rbp, %rax
	addq	$1, %rbp
	addq	%rdx, %r10
	subq	$3, %r8
	js	.L54
.L21:
	testq	%r14, %r14
	je	.L18
	movq	8(%rsp), %rbx
	movq	%rbx, %rax
	orq	%r8, %rax
	js	.L29
	cmpq	%rbx, %r8
	movq	%r15, %r9
	cmovle	%r8, %rbx
	xorl	%edi, %edi
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L20:
	movq	-40048(%r9), %rax
	imulq	0(%r13,%rdi,8), %rax
	addq	$1, %rdi
	subq	$40048, %r9
	cqto
	idivq	%rcx
	addq	%rdx, %rsi
	cmpq	%rbx, %rdi
	jle	.L20
	xorl	%eax, %eax
	testq	%rbx, %rbx
	movl	$1, %edi
	cmovs	%rax, %rbx
	addq	$1, %rbx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L53:
	movq	%r11, 16(%rsp)
	testq	%r8, %r8
	jns	.L13
	movq	%r10, r(%rip)
	movq	%rax, i(%rip)
	movq	%r8, s(%rip)
	testb	%dil, %dil
	je	.L23
	movl	%r9d, %edi
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L54:
	movq	%rbx, 16(%rsp)
	movq	%r10, r(%rip)
	movq	%rax, i(%rip)
	movq	%r8, s(%rip)
	testb	%dil, %dil
	je	.L26
.L25:
	movq	16(%rsp), %rax
	movl	%edi, %r9d
	movq	%rax, j(%rip)
.L23:
	movq	r(%rip), %rax
	testb	%r9b, %r9b
	jne	.L26
.L12:
	cqto
	leaq	.LC2(%rip), %rdi
	idivq	%rcx
	imulq	$5006, 32(%rsp), %rax
	addq	8(%rsp), %rax
	imulq	(%r12,%rax,8), %rdx
	movq	%rdx, %rax
	cqto
	idivq	%rcx
	xorl	%eax, %eax
	movq	%rdx, %rsi
	call	printf@PLT
	addq	$56, %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
.L26:
	.cfi_restore_state
	movq	%rsi, y(%rip)
	movq	r(%rip), %rax
	jmp	.L12
.L29:
	movl	$1, %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	jmp	.L19
.L28:
	movl	$1, %edi
	xorl	%r11d, %r11d
	movl	$1, %r9d
	xorl	%esi, %esi
	jmp	.L14
.L51:
	movl	$1, %r10d
	jmp	.L10
.L52:
	movq	24(%rsp), %rbx
	movq	8(%rsp), %rdi
	addq	%rdi, %rbx
	movq	%rbx, 32(%rsp)
	jmp	.L12
.L50:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	m
	.data
	.align 8
	.type	m, @object
	.size	m, 8
m:
	.quad	1000000007
	.globl	s
	.bss
	.align 8
	.type	s, @object
	.size	s, 8
s:
	.zero	8
	.globl	y
	.align 8
	.type	y, @object
	.size	y, 8
y:
	.zero	8
	.globl	r
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.globl	j
	.align 8
	.type	j, @object
	.size	j, 8
j:
	.zero	8
	.globl	i
	.align 8
	.type	i, @object
	.size	i, 8
i:
	.zero	8
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 200480288
f:
	.zero	200480288
	.globl	c
	.align 8
	.type	c, @object
	.size	c, 8
c:
	.zero	8
	.globl	b
	.align 8
	.type	b, @object
	.size	b, 8
b:
	.zero	8
	.globl	a
	.align 8
	.type	a, @object
	.size	a, 8
a:
	.zero	8
	.globl	n
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.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	"%llu%llu%llu%llu"
.LC1:
	.string	"0"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	c(%rip), %r8
	xorl	%eax, %eax
	leaq	b(%rip), %rcx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	a(%rip), %rdx
	leaq	n(%rip), %rsi
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %rdi
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	call	scanf@PLT
	movq	b(%rip), %r14
	testb	$1, %r14b
	jne	.L50
	movq	i(%rip), %r13
	movq	s(%rip), %r8
	movq	$1, f(%rip)
	leaq	f(%rip), %r12
	movq	n(%rip), %r15
	movq	m(%rip), %rcx
	leaq	1(%r13), %rbp
	subq	$3, %r8
	cmpq	%r15, %rbp
	jg	.L4
	movq	c(%rip), %r8
	testq	%r13, %r13
	jns	.L5
	xorl	%edx, %edx
	testq	%r15, %r15
	cmovle	%r15, %rdx
	imulq	$40048, %rbp, %rax
	addq	%r12, %rax
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %r13
	movq	$1, (%rax)
	addq	$1, %rbp
	addq	$40048, %rax
	cmpq	%r13, %rdx
	jg	.L7
	cmpq	%r15, %rbp
	jg	.L51
.L5:
	imulq	$40048, %rbp, %r11
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r13, %r10
	movq	$1, (%r12,%r11)
	movq	%rbp, %r13
	xorl	%edi, %edi
	imulq	$40048, %r10, %rbx
	leaq	8(%r12,%rbx), %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	movq	-8(%rsi), %rax
	addq	(%rsi), %rax
	movq	%rsi, %r9
	addq	$1, %rdi
	cqto
	subq	%rbx, %r9
	addq	$8, %rsi
	idivq	%rcx
	movq	%rdx, (%r9,%r11)
	cmpq	%rdi, %r10
	jge	.L8
	addq	$1, %rbp
	addq	$2, %r10
	addq	$40048, %r11
	cmpq	%rbp, %r15
	jge	.L9
.L10:
	movq	%r10, j(%rip)
.L4:
	movq	%r14, %rax
	movq	%r8, s(%rip)
	movq	$0, i(%rip)
	shrq	$63, %rax
	addq	%r14, %rax
	sarq	%rax
	movq	%rax, 24(%rsp)
	movq	a(%rip), %rax
	movq	%rax, 8(%rsp)
	movq	r(%rip), %rax
	movq	%rax, %r10
	testq	%r8, %r8
	js	.L52
	movq	24(%rsp), %rdi
	movq	8(%rsp), %rdx
	movq	y(%rip), %rsi
	movq	%rdi, %rbx
	leaq	-1(%rdi), %r15
	addq	%rdx, %rbx
	movq	%r15, 40(%rsp)
	movq	%rbx, 32(%rsp)
	cmpq	%rdx, %r8
	jle	.L27
	testq	%rdx, %rdx
	movq	16(%rsp), %r11
	movl	$1, %ebp
	movq	$-1, %rax
	cmovns	%rdx, %rax
	imulq	$40048, %rbx, %rbx
	xorl	%r9d, %r9d
	imulq	$40048, %rdx, %r13
	movq	%rax, (%rsp)
	leaq	(%r8,%rdi), %rax
	xorl	%edi, %edi
	imulq	$5006, %rax, %rax
	addq	%r12, %rbx
	addq	%r12, %r13
	addq	%r15, %rax
	leaq	(%r12,%rax,8), %r15
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rsi, %rax
	subq	$3, %r8
	addq	$40056, %rbx
	subq	$120144, %r15
	cqto
	idivq	%rcx
	movq	-40056(%rbx), %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rcx
	movq	%rbp, %rax
	addq	$1, %rbp
	addq	%rdx, %r10
	cmpq	(%rsp), %r8
	jle	.L53
.L17:
	testq	%r14, %r14
	je	.L14
	movq	8(%rsp), %rax
	movq	%rax, %rdi
	orq	%r8, %rdi
	js	.L28
	cmpq	%rax, %r8
	movq	%r15, %r9
	cmovle	%r8, %rax
	xorl	%edi, %edi
	xorl	%esi, %esi
	movq	%rax, %r11
	.p2align 4,,10
	.p2align 3
.L15:
	movq	0(%r13,%rdi,8), %rax
	addq	$1, %rdi
	imulq	-40048(%r9), %rax
	subq	$40048, %r9
	cqto
	idivq	%rcx
	addq	%rdx, %rsi
	cmpq	%r11, %rdi
	jle	.L15
	xorl	%eax, %eax
	testq	%r11, %r11
	movl	$1, %edi
	movl	$1, %r9d
	cmovs	%rax, %r11
	addq	$1, %r11
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L27:
	xorl	%eax, %eax
	xorl	%edi, %edi
.L13:
	imulq	$40048, 32(%rsp), %r11
	leaq	1(%rax), %rbp
	movq	16(%rsp), %rbx
	imulq	$40056, %rax, %rax
	imulq	$40048, 8(%rsp), %r13
	addq	%rax, %r11
	movq	24(%rsp), %rax
	addq	%r12, %r11
	addq	%r12, %r13
	addq	%r8, %rax
	imulq	$5006, %rax, %rax
	addq	40(%rsp), %rax
	leaq	(%r12,%rax,8), %r15
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L18:
	movq	0(%r13,%r8,8), %rsi
.L19:
	movq	%rsi, %rax
	addq	$40056, %r11
	subq	$120144, %r15
	cqto
	idivq	%rcx
	movq	-40056(%r11), %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rcx
	movq	%rbp, %rax
	addq	$1, %rbp
	addq	%rdx, %r10
	subq	$3, %r8
	js	.L54
.L21:
	testq	%r14, %r14
	je	.L18
	movq	8(%rsp), %rbx
	movq	%rbx, %rax
	orq	%r8, %rax
	js	.L29
	cmpq	%rbx, %r8
	movq	%r15, %r9
	cmovle	%r8, %rbx
	xorl	%edi, %edi
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L20:
	movq	-40048(%r9), %rax
	imulq	0(%r13,%rdi,8), %rax
	addq	$1, %rdi
	subq	$40048, %r9
	cqto
	idivq	%rcx
	addq	%rdx, %rsi
	cmpq	%rbx, %rdi
	jle	.L20
	xorl	%eax, %eax
	testq	%rbx, %rbx
	movl	$1, %edi
	cmovs	%rax, %rbx
	addq	$1, %rbx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L53:
	movq	%r11, 16(%rsp)
	testq	%r8, %r8
	jns	.L13
	movq	%r10, r(%rip)
	movq	%rax, i(%rip)
	movq	%r8, s(%rip)
	testb	%dil, %dil
	je	.L23
	movl	%r9d, %edi
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L54:
	movq	%rbx, 16(%rsp)
	movq	%r10, r(%rip)
	movq	%rax, i(%rip)
	movq	%r8, s(%rip)
	testb	%dil, %dil
	je	.L26
.L25:
	movq	16(%rsp), %rax
	movl	%edi, %r9d
	movq	%rax, j(%rip)
.L23:
	movq	r(%rip), %rax
	testb	%r9b, %r9b
	jne	.L26
.L12:
	cqto
	leaq	.LC2(%rip), %rdi
	idivq	%rcx
	imulq	$5006, 32(%rsp), %rax
	addq	8(%rsp), %rax
	imulq	(%r12,%rax,8), %rdx
	movq	%rdx, %rax
	cqto
	idivq	%rcx
	xorl	%eax, %eax
	movq	%rdx, %rsi
	call	printf@PLT
	addq	$56, %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
.L26:
	.cfi_restore_state
	movq	%rsi, y(%rip)
	movq	r(%rip), %rax
	jmp	.L12
.L29:
	movl	$1, %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	jmp	.L19
.L28:
	movl	$1, %edi
	xorl	%r11d, %r11d
	movl	$1, %r9d
	xorl	%esi, %esi
	jmp	.L14
.L51:
	movl	$1, %r10d
	jmp	.L10
.L52:
	movq	24(%rsp), %rbx
	movq	8(%rsp), %rdi
	addq	%rdi, %rbx
	movq	%rbx, 32(%rsp)
	jmp	.L12
.L50:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	m
	.data
	.align 8
	.type	m, @object
	.size	m, 8
m:
	.quad	1000000007
	.globl	s
	.bss
	.align 8
	.type	s, @object
	.size	s, 8
s:
	.zero	8
	.globl	y
	.align 8
	.type	y, @object
	.size	y, 8
y:
	.zero	8
	.globl	r
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.globl	j
	.align 8
	.type	j, @object
	.size	j, 8
j:
	.zero	8
	.globl	i
	.align 8
	.type	i, @object
	.size	i, 8
i:
	.zero	8
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 200480288
f:
	.zero	200480288
	.globl	c
	.align 8
	.type	c, @object
	.size	c, 8
c:
	.zero	8
	.globl	b
	.align 8
	.type	b, @object
	.size	b, 8
b:
	.zero	8
	.globl	a
	.align 8
	.type	a, @object
	.size	a, 8
a:
	.zero	8
	.globl	n
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.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:

long long n,a,b,c,f[5006][5006],i,j,r,y,s,m=1000000007;main(){scanf("%llu%llu%llu%llu",&n,&a,&b,&c);if(b%2)exit(!puts("0"));for(f[0][0]=1;++i<=n;s=c+3)for(f[i][j=0]=1;++j<=i;)f[i][j]=(f[i-1][j-1]+f[i-1][j])%m;for(i=0;(s-=3)>=0;r+=y%m*f[a+b/2+i][i]%m,i++)if(b)for(y=j=0;j<=a&&j<=s;j++)y+=f[a][j]*f[s+b/2-1-j][b/2-1]%m;else if(s<=a)y=f[a][s];printf("%lld\n",r%m*f[a+b/2][a]%m);}
3 1 2 0

2

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

```c
long long n,a,b,c,f[5006][5006],i,j,r,y,s,m=1000000007;main(){scanf("%llu%llu%llu%llu",&n,&a,&b,&c);if(b%2)exit(!puts("0"));for(f[0][0]=1;++i<=n;s=c+3)for(f[i][j=0]=1;++j<=i;)f[i][j]=(f[i-1][j-1]+f[i-1][j])%m;for(i=0;(s-=3)>=0;r+=y%m*f[a+b/2+i][i]%m,i++)if(b)for(y=j=0;j<=a&&j<=s;j++)y+=f[a][j]*f[s+b/2-1-j][b/2-1]%m;else if(s<=a)y=f[a][s];printf("%lld\n",r%m*f[a+b/2][a]%m);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.globl	a
	.align 8
	.type	a, @object
	.size	a, 8
a:
	.zero	8
	.globl	b
	.align 8
	.type	b, @object
	.size	b, 8
b:
	.zero	8
	.globl	c
	.align 8
	.type	c, @object
	.size	c, 8
c:
	.zero	8
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 200480288
f:
	.zero	200480288
	.globl	i
	.align 8
	.type	i, @object
	.size	i, 8
i:
	.zero	8
	.globl	j
	.align 8
	.type	j, @object
	.size	j, 8
j:
	.zero	8
	.globl	r
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.globl	y
	.align 8
	.type	y, @object
	.size	y, 8
y:
	.zero	8
	.globl	s
	.align 8
	.type	s, @object
	.size	s, 8
s:
	.zero	8
	.globl	m
	.data
	.align 8
	.type	m, @object
	.size	m, 8
m:
	.quad	1000000007
	.section	.rodata
.LC0:
	.string	"%llu%llu%llu%llu"
.LC1:
	.string	"0"
.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
	leaq	c(%rip), %r8
	leaq	b(%rip), %rax
	movq	%rax, %rcx
	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	scanf@PLT
	movq	b(%rip), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L2
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movl	%eax, %edi
	call	exit@PLT
.L2:
	movq	$1, f(%rip)
	jmp	.L3
.L6:
	movq	i(%rip), %rax
	movq	$0, j(%rip)
	movq	j(%rip), %rdx
	imulq	$5006, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	$1, (%rdx,%rax)
	jmp	.L4
.L5:
	movq	i(%rip), %rax
	leaq	-1(%rax), %rdx
	movq	j(%rip), %rax
	leaq	-1(%rax), %rcx
	imulq	$5006, %rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	i(%rip), %rax
	subq	$1, %rax
	movq	j(%rip), %rdx
	imulq	$5006, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rcx, %rax
	movq	m(%rip), %rsi
	movq	i(%rip), %rcx
	movq	j(%rip), %rdi
	cqto
	idivq	%rsi
	movq	%rdx, %rsi
	imulq	$5006, %rcx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	%rsi, (%rdx,%rax)
.L4:
	movq	j(%rip), %rax
	addq	$1, %rax
	movq	%rax, j(%rip)
	movq	j(%rip), %rdx
	movq	i(%rip), %rax
	cmpq	%rax, %rdx
	jle	.L5
	movq	c(%rip), %rax
	addq	$3, %rax
	movq	%rax, s(%rip)
.L3:
	movq	i(%rip), %rax
	addq	$1, %rax
	movq	%rax, i(%rip)
	movq	i(%rip), %rdx
	movq	n(%rip), %rax
	cmpq	%rax, %rdx
	jle	.L6
	movq	$0, i(%rip)
	jmp	.L7
.L12:
	movq	b(%rip), %rax
	testq	%rax, %rax
	je	.L8
	movq	$0, j(%rip)
	movq	j(%rip), %rax
	movq	%rax, y(%rip)
	jmp	.L9
.L11:
	movq	a(%rip), %rax
	movq	j(%rip), %rdx
	imulq	$5006, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	b(%rip), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	s(%rip), %rax
	addq	%rcx, %rax
	subq	$1, %rax
	movq	j(%rip), %rsi
	subq	%rsi, %rax
	movq	%rax, %rcx
	movq	b(%rip), %rax
	movq	%rax, %rsi
	shrq	$63, %rsi
	addq	%rsi, %rax
	sarq	%rax
	leaq	-1(%rax), %rsi
	imulq	$5006, %rcx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rcx
	leaq	f(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rdx, %rax
	movq	m(%rip), %rcx
	cqto
	idivq	%rcx
	movq	y(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, y(%rip)
	movq	j(%rip), %rax
	addq	$1, %rax
	movq	%rax, j(%rip)
.L9:
	movq	j(%rip), %rdx
	movq	a(%rip), %rax
	cmpq	%rax, %rdx
	jg	.L10
	movq	j(%rip), %rdx
	movq	s(%rip), %rax
	cmpq	%rax, %rdx
	jle	.L11
	jmp	.L10
.L8:
	movq	s(%rip), %rdx
	movq	a(%rip), %rax
	cmpq	%rax, %rdx
	jg	.L10
	movq	a(%rip), %rax
	movq	s(%rip), %rdx
	imulq	$5006, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, y(%rip)
.L10:
	movq	y(%rip), %rax
	movq	m(%rip), %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movq	b(%rip), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	a(%rip), %rax
	addq	%rax, %rdx
	movq	i(%rip), %rax
	addq	%rdx, %rax
	movq	i(%rip), %rdx
	imulq	$5006, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	%rcx, %rax
	movq	m(%rip), %rcx
	cqto
	idivq	%rcx
	movq	r(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, r(%rip)
	movq	i(%rip), %rax
	addq	$1, %rax
	movq	%rax, i(%rip)
.L7:
	movq	s(%rip), %rax
	subq	$3, %rax
	movq	%rax, s(%rip)
	movq	s(%rip), %rax
	testq	%rax, %rax
	jns	.L12
	movq	r(%rip), %rax
	movq	m(%rip), %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movq	b(%rip), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	a(%rip), %rax
	addq	%rdx, %rax
	movq	a(%rip), %rdx
	imulq	$5006, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	%rcx, %rax
	movq	m(%rip), %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	popq	%rbp
	.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 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.globl	a
	.align 8
	.type	a, @object
	.size	a, 8
a:
	.zero	8
	.globl	b
	.align 8
	.type	b, @object
	.size	b, 8
b:
	.zero	8
	.globl	c
	.align 8
	.type	c, @object
	.size	c, 8
c:
	.zero	8
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 200480288
f:
	.zero	200480288
	.globl	i
	.align 8
	.type	i, @object
	.size	i, 8
i:
	.zero	8
	.globl	j
	.align 8
	.type	j, @object
	.size	j, 8
j:
	.zero	8
	.globl	r
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.globl	y
	.align 8
	.type	y, @object
	.size	y, 8
y:
	.zero	8
	.globl	s
	.align 8
	.type	s, @object
	.size	s, 8
s:
	.zero	8
	.globl	m
	.data
	.align 8
	.type	m, @object
	.size	m, 8
m:
	.quad	1000000007
	.section	.rodata
.LC0:
	.string	"%llu%llu%llu%llu"
.LC1:
	.string	"0"
.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
	leaq	c(%rip), %r8
	leaq	b(%rip), %rax
	movq	%rax, %rcx
	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	scanf@PLT
	movq	b(%rip), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L2
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movl	%eax, %edi
	call	exit@PLT
.L2:
	movq	$1, f(%rip)
	jmp	.L3
.L6:
	movq	i(%rip), %rax
	movq	$0, j(%rip)
	movq	j(%rip), %rdx
	imulq	$5006, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	$1, (%rdx,%rax)
	jmp	.L4
.L5:
	movq	i(%rip), %rax
	leaq	-1(%rax), %rdx
	movq	j(%rip), %rax
	leaq	-1(%rax), %rcx
	imulq	$5006, %rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	i(%rip), %rax
	subq	$1, %rax
	movq	j(%rip), %rdx
	imulq	$5006, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rcx, %rax
	movq	m(%rip), %rsi
	movq	i(%rip), %rcx
	movq	j(%rip), %rdi
	cqto
	idivq	%rsi
	movq	%rdx, %rsi
	imulq	$5006, %rcx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	%rsi, (%rdx,%rax)
.L4:
	movq	j(%rip), %rax
	addq	$1, %rax
	movq	%rax, j(%rip)
	movq	j(%rip), %rdx
	movq	i(%rip), %rax
	cmpq	%rax, %rdx
	jle	.L5
	movq	c(%rip), %rax
	addq	$3, %rax
	movq	%rax, s(%rip)
.L3:
	movq	i(%rip), %rax
	addq	$1, %rax
	movq	%rax, i(%rip)
	movq	i(%rip), %rdx
	movq	n(%rip), %rax
	cmpq	%rax, %rdx
	jle	.L6
	movq	$0, i(%rip)
	jmp	.L7
.L12:
	movq	b(%rip), %rax
	testq	%rax, %rax
	je	.L8
	movq	$0, j(%rip)
	movq	j(%rip), %rax
	movq	%rax, y(%rip)
	jmp	.L9
.L11:
	movq	a(%rip), %rax
	movq	j(%rip), %rdx
	imulq	$5006, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	b(%rip), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	s(%rip), %rax
	addq	%rcx, %rax
	subq	$1, %rax
	movq	j(%rip), %rsi
	subq	%rsi, %rax
	movq	%rax, %rcx
	movq	b(%rip), %rax
	movq	%rax, %rsi
	shrq	$63, %rsi
	addq	%rsi, %rax
	sarq	%rax
	leaq	-1(%rax), %rsi
	imulq	$5006, %rcx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rcx
	leaq	f(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rdx, %rax
	movq	m(%rip), %rcx
	cqto
	idivq	%rcx
	movq	y(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, y(%rip)
	movq	j(%rip), %rax
	addq	$1, %rax
	movq	%rax, j(%rip)
.L9:
	movq	j(%rip), %rdx
	movq	a(%rip), %rax
	cmpq	%rax, %rdx
	jg	.L10
	movq	j(%rip), %rdx
	movq	s(%rip), %rax
	cmpq	%rax, %rdx
	jle	.L11
	jmp	.L10
.L8:
	movq	s(%rip), %rdx
	movq	a(%rip), %rax
	cmpq	%rax, %rdx
	jg	.L10
	movq	a(%rip), %rax
	movq	s(%rip), %rdx
	imulq	$5006, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, y(%rip)
.L10:
	movq	y(%rip), %rax
	movq	m(%rip), %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movq	b(%rip), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	a(%rip), %rax
	addq	%rax, %rdx
	movq	i(%rip), %rax
	addq	%rdx, %rax
	movq	i(%rip), %rdx
	imulq	$5006, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	%rcx, %rax
	movq	m(%rip), %rcx
	cqto
	idivq	%rcx
	movq	r(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, r(%rip)
	movq	i(%rip), %rax
	addq	$1, %rax
	movq	%rax, i(%rip)
.L7:
	movq	s(%rip), %rax
	subq	$3, %rax
	movq	%rax, s(%rip)
	movq	s(%rip), %rax
	testq	%rax, %rax
	jns	.L12
	movq	r(%rip), %rax
	movq	m(%rip), %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movq	b(%rip), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	a(%rip), %rax
	addq	%rdx, %rax
	movq	a(%rip), %rdx
	imulq	$5006, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	f(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	%rcx, %rax
	movq	m(%rip), %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	popq	%rbp
	.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:
