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

```c
#include <stdio.h>

#define Mod 998244353

int main()
{
	int A, B, C, D;
	scanf("%d %d %d %d", &A, &B, &C, &D);
	if (A == C && B == D) {
		printf("1\n");
		fflush(stdout);
		return 0;
	}
	
	int i, j;
	long long dp[2][3002] = {};
	dp[0][0] = 1;
	for (j = 1; j <= D - B; j++) dp[0][j] = dp[0][j-1] * A % Mod;
	for (i = 1; i <= C - A; i++) {
		dp[i%2][0] = dp[1-i%2][0] * B % Mod;
		for (j = 1; j <= D - B; j++) dp[i%2][j] = (dp[i%2][j-1] * (A + i) + dp[1-i%2][j] * (B + j) - dp[1-i%2][j-1] * (A + i - 1) * (B + j - 1)) % Mod;
	}
	
	printf("%lld\n", (dp[(C-A)%2][D-B] >= 0)? dp[(C-A)%2][D-B]: dp[(C-A)%2][D-B] + Mod);
	fflush(stdout);
	return 0; 
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"1"
.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	-45056(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3024, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-48060(%rbp), %rsi
	leaq	-48064(%rbp), %rcx
	leaq	-48068(%rbp), %rdx
	leaq	-48072(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-48072(%rbp), %edx
	movl	-48064(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L2
	movl	-48068(%rbp), %edx
	movl	-48060(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L2
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	jmp	.L12
.L2:
	leaq	-48048(%rbp), %rax
	movl	$48032, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	$1, -48048(%rbp)
	movl	$1, -48052(%rbp)
	jmp	.L4
.L5:
	movl	-48052(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-48048(%rbp,%rax,8), %rdx
	movl	-48072(%rbp), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-48052(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rax, -48048(%rbp,%rdx,8)
	addl	$1, -48052(%rbp)
.L4:
	movl	-48060(%rbp), %eax
	movl	-48068(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -48052(%rbp)
	jle	.L5
	movl	$1, -48056(%rbp)
	jmp	.L6
.L9:
	movl	-48056(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	$1, %eax
	subl	%edx, %eax
	cltq
	imulq	$24016, %rax, %rax
	addq	%rbp, %rax
	subq	$48048, %rax
	movq	(%rax), %rdx
	movl	-48068(%rbp), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movl	-48056(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movslq	%esi, %rdx
	imulq	$24016, %rdx, %rdx
	addq	%rbp, %rdx
	subq	$48048, %rdx
	movq	%rax, (%rdx)
	movl	$1, -48052(%rbp)
	jmp	.L7
.L8:
	movl	-48056(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-48052(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$3002, %rax, %rax
	addq	%rdx, %rax
	movq	-48048(%rbp,%rax,8), %rdx
	movl	-48072(%rbp), %ecx
	movl	-48056(%rbp), %eax
	addl	%ecx, %eax
	cltq
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movl	-48056(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	movl	$1, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	movl	-48052(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	imulq	$3002, %rax, %rax
	addq	%rsi, %rax
	movq	-48048(%rbp,%rax,8), %rdx
	movl	-48068(%rbp), %esi
	movl	-48052(%rbp), %eax
	addl	%esi, %eax
	cltq
	imulq	%rdx, %rax
	addq	%rax, %rcx
	movl	-48056(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	movl	$1, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	movl	-48052(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	imulq	$3002, %rax, %rax
	addq	%rsi, %rax
	movq	-48048(%rbp,%rax,8), %rdx
	movl	-48072(%rbp), %esi
	movl	-48056(%rbp), %eax
	addl	%esi, %eax
	subl	$1, %eax
	cltq
	imulq	%rax, %rdx
	movl	-48068(%rbp), %esi
	movl	-48052(%rbp), %eax
	addl	%esi, %eax
	subl	$1, %eax
	cltq
	imulq	%rdx, %rax
	subq	%rax, %rcx
	movl	-48056(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-48052(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%esi, %rdx
	imulq	$3002, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rax, -48048(%rbp,%rdx,8)
	addl	$1, -48052(%rbp)
.L7:
	movl	-48060(%rbp), %eax
	movl	-48068(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -48052(%rbp)
	jle	.L8
	addl	$1, -48056(%rbp)
.L6:
	movl	-48064(%rbp), %eax
	movl	-48072(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -48056(%rbp)
	jle	.L9
	movl	-48064(%rbp), %eax
	movl	-48072(%rbp), %edx
	subl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-48060(%rbp), %eax
	movl	-48068(%rbp), %edx
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$3002, %rax, %rax
	addq	%rdx, %rax
	movq	-48048(%rbp,%rax,8), %rax
	testq	%rax, %rax
	js	.L10
	movl	-48064(%rbp), %eax
	movl	-48072(%rbp), %edx
	subl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-48060(%rbp), %eax
	movl	-48068(%rbp), %edx
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$3002, %rax, %rax
	addq	%rdx, %rax
	movq	-48048(%rbp,%rax,8), %rax
	jmp	.L11
.L10:
	movl	-48064(%rbp), %eax
	movl	-48072(%rbp), %edx
	subl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-48060(%rbp), %eax
	movl	-48068(%rbp), %edx
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$3002, %rax, %rax
	addq	%rdx, %rax
	movq	-48048(%rbp,%rax,8), %rax
	addq	$998244353, %rax
.L11:
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
.L12:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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 %d"
.LC1:
	.string	"1"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	leaq	-45056(%rsp), %r11
	.cfi_def_cfa 11, 45112
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3048, %rsp
	.cfi_def_cfa_offset 48160
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 48088(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rcx
	leaq	36(%rsp), %rdx
	leaq	32(%rsp), %rsi
	leaq	44(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %r13d
	movl	40(%rsp), %ebx
	cmpl	%ebx, %r13d
	je	.L20
.L2:
	leaq	48(%rsp), %rax
	movl	$48032, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	movq	%rax, 16(%rsp)
	call	memset@PLT
	movslq	36(%rsp), %r14
	movl	44(%rsp), %r15d
	movq	$1, 48(%rsp)
	subl	%r14d, %r15d
	testl	%r15d, %r15d
	jle	.L8
	leal	-1(%r15), %eax
	movslq	%r13d, %r9
	leaq	56(%rsp), %rcx
	movl	$1, %edx
	movabsq	$155014655926305585, %rdi
	leaq	64(%rsp,%rax,8), %r8
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rdx, %rsi
	addq	$8, %rcx
	imulq	%r9, %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, -8(%rcx)
	movq	%rsi, %rdx
	cmpq	%r8, %rcx
	jne	.L7
.L8:
	subl	%r13d, %ebx
	movl	%ebx, 28(%rsp)
	testl	%ebx, %ebx
	jle	.L6
	movl	%ebx, %eax
	movl	$1, %ecx
	movl	$1, %r12d
	movabsq	$155014655926305585, %rbx
	addl	$1, %eax
	movl	%eax, 12(%rsp)
	leal	-1(%r13), %eax
	movl	%eax, 24(%rsp)
	leal	-1(%r15), %eax
	leaq	2(%r14,%rax), %rbp
	.p2align 4,,10
	.p2align 3
.L13:
	imulq	%r14, %rcx
	movl	%r12d, %r8d
	movl	$1, %r9d
	andl	$1, %r8d
	subl	%r8d, %r9d
	movslq	%r8d, %r8
	movq	%rcx, %rax
	imulq	$24016, %r8, %r8
	imulq	%rbx
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	movq	%rcx, 48(%rsp,%r8)
	testl	%r15d, %r15d
	jle	.L12
	movl	24(%rsp), %eax
	movslq	%r9d, %r9
	leal	(%r12,%r13), %r11d
	movq	48(%rsp,%r8), %rdx
	imulq	$24016, %r9, %r9
	movslq	%r11d, %r11
	leaq	1(%r14), %rdi
	leal	(%rax,%r12), %r10d
	movq	16(%rsp), %rax
	movslq	%r10d, %r10
	leaq	8(%rax,%r9), %rsi
	.p2align 4,,10
	.p2align 3
.L11:
	movq	(%rsi), %rcx
	movq	-8(%rsi), %rax
	imulq	%r11, %rdx
	imulq	%rdi, %rcx
	imulq	%r10, %rax
	addq	%rdx, %rcx
	leaq	-1(%rdi), %rdx
	addq	$1, %rdi
	imulq	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rbx
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	movq	%rsi, %rax
	addq	$8, %rsi
	subq	%r9, %rax
	movq	%rcx, %rdx
	movq	%rcx, (%rax,%r8)
	cmpq	%rdi, %rbp
	jne	.L11
.L12:
	addl	$1, %r12d
	cmpl	%r12d, 12(%rsp)
	je	.L6
	movl	%r12d, %eax
	notl	%eax
	andl	$1, %eax
	imulq	$24016, %rax, %rax
	movq	48(%rsp,%rax), %rcx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L6:
	movl	28(%rsp), %eax
	movslq	%r15d, %r15
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cltq
	imulq	$3002, %rax, %rax
	addq	%r15, %rax
	movq	48(%rsp,%rax,8), %rdx
	testq	%rdx, %rdx
	leaq	998244353(%rdx), %rax
	cmovs	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
.L3:
	movq	48088(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$48104, %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
.L20:
	.cfi_restore_state
	movl	44(%rsp), %eax
	cmpl	%eax, 36(%rsp)
	jne	.L2
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	jmp	.L3
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"1"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	leaq	-45056(%rsp), %r11
	.cfi_def_cfa 11, 45112
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3048, %rsp
	.cfi_def_cfa_offset 48160
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 48088(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rcx
	leaq	36(%rsp), %rdx
	leaq	32(%rsp), %rsi
	leaq	44(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %r13d
	movl	40(%rsp), %ebx
	cmpl	%ebx, %r13d
	je	.L20
.L2:
	leaq	48(%rsp), %rax
	movl	$48032, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	movq	%rax, 16(%rsp)
	call	memset@PLT
	movslq	36(%rsp), %r14
	movl	44(%rsp), %r15d
	movq	$1, 48(%rsp)
	subl	%r14d, %r15d
	testl	%r15d, %r15d
	jle	.L8
	leal	-1(%r15), %eax
	movslq	%r13d, %r9
	leaq	56(%rsp), %rcx
	movl	$1, %edx
	movabsq	$155014655926305585, %rdi
	leaq	64(%rsp,%rax,8), %r8
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rdx, %rsi
	addq	$8, %rcx
	imulq	%r9, %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, -8(%rcx)
	movq	%rsi, %rdx
	cmpq	%r8, %rcx
	jne	.L7
.L8:
	subl	%r13d, %ebx
	movl	%ebx, 28(%rsp)
	testl	%ebx, %ebx
	jle	.L6
	movl	%ebx, %eax
	movl	$1, %ecx
	movl	$1, %r12d
	movabsq	$155014655926305585, %rbx
	addl	$1, %eax
	movl	%eax, 12(%rsp)
	leal	-1(%r13), %eax
	movl	%eax, 24(%rsp)
	leal	-1(%r15), %eax
	leaq	2(%r14,%rax), %rbp
	.p2align 4,,10
	.p2align 3
.L13:
	imulq	%r14, %rcx
	movl	%r12d, %r8d
	movl	$1, %r9d
	andl	$1, %r8d
	subl	%r8d, %r9d
	movslq	%r8d, %r8
	movq	%rcx, %rax
	imulq	$24016, %r8, %r8
	imulq	%rbx
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	movq	%rcx, 48(%rsp,%r8)
	testl	%r15d, %r15d
	jle	.L12
	movl	24(%rsp), %eax
	movslq	%r9d, %r9
	leal	(%r12,%r13), %r11d
	movq	48(%rsp,%r8), %rdx
	imulq	$24016, %r9, %r9
	movslq	%r11d, %r11
	leaq	1(%r14), %rdi
	leal	(%rax,%r12), %r10d
	movq	16(%rsp), %rax
	movslq	%r10d, %r10
	leaq	8(%rax,%r9), %rsi
	.p2align 4,,10
	.p2align 3
.L11:
	movq	(%rsi), %rcx
	movq	-8(%rsi), %rax
	imulq	%r11, %rdx
	imulq	%rdi, %rcx
	imulq	%r10, %rax
	addq	%rdx, %rcx
	leaq	-1(%rdi), %rdx
	addq	$1, %rdi
	imulq	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rbx
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	movq	%rsi, %rax
	addq	$8, %rsi
	subq	%r9, %rax
	movq	%rcx, %rdx
	movq	%rcx, (%rax,%r8)
	cmpq	%rdi, %rbp
	jne	.L11
.L12:
	addl	$1, %r12d
	cmpl	%r12d, 12(%rsp)
	je	.L6
	movl	%r12d, %eax
	notl	%eax
	andl	$1, %eax
	imulq	$24016, %rax, %rax
	movq	48(%rsp,%rax), %rcx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L6:
	movl	28(%rsp), %eax
	movslq	%r15d, %r15
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cltq
	imulq	$3002, %rax, %rax
	addq	%r15, %rax
	movq	48(%rsp,%rax,8), %rdx
	testq	%rdx, %rdx
	leaq	998244353(%rdx), %rax
	cmovs	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
.L3:
	movq	48088(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$48104, %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
.L20:
	.cfi_restore_state
	movl	44(%rsp), %eax
	cmpl	%eax, 36(%rsp)
	jne	.L2
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	jmp	.L3
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:

#include <stdio.h>

#define Mod 998244353

int main()
{
	int A, B, C, D;
	scanf("%d %d %d %d", &A, &B, &C, &D);
	if (A == C && B == D) {
		printf("1\n");
		fflush(stdout);
		return 0;
	}
	
	int i, j;
	long long dp[2][3002] = {};
	dp[0][0] = 1;
	for (j = 1; j <= D - B; j++) dp[0][j] = dp[0][j-1] * A % Mod;
	for (i = 1; i <= C - A; i++) {
		dp[i%2][0] = dp[1-i%2][0] * B % Mod;
		for (j = 1; j <= D - B; j++) dp[i%2][j] = (dp[i%2][j-1] * (A + i) + dp[1-i%2][j] * (B + j) - dp[1-i%2][j-1] * (A + i - 1) * (B + j - 1)) % Mod;
	}
	
	printf("%lld\n", (dp[(C-A)%2][D-B] >= 0)? dp[(C-A)%2][D-B]: dp[(C-A)%2][D-B] + Mod);
	fflush(stdout);
	return 0; 
}
2 0 3 4
 54 41 59 265
 1 0 2 2
 2 0 3 0
 54 41 59 202
 1 0 2 3
 2 0 3 1
 41 41 59 202
 2 0 3 2
 50 41 59 202

130
 630730430
 3
 0
 436335769
 7
 2
 424344021
 10
 153856517

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

```c
#include <stdio.h>

#define Mod 998244353

int main()
{
	int A, B, C, D;
	scanf("%d %d %d %d", &A, &B, &C, &D);
	if (A == C && B == D) {
		printf("1\n");
		fflush(stdout);
		return 0;
	}
	
	int i, j;
	long long dp[2][3002] = {};
	dp[0][0] = 1;
	for (j = 1; j <= D - B; j++) dp[0][j] = dp[0][j-1] * A % Mod;
	for (i = 1; i <= C - A; i++) {
		dp[i%2][0] = dp[1-i%2][0] * B % Mod;
		for (j = 1; j <= D - B; j++) dp[i%2][j] = (dp[i%2][j-1] * (A + i) + dp[1-i%2][j] * (B + j) - dp[1-i%2][j-1] * (A + i - 1) * (B + j - 1)) % Mod;
	}
	
	printf("%lld\n", (dp[(C-A)%2][D-B] >= 0)? dp[(C-A)%2][D-B]: dp[(C-A)%2][D-B] + Mod);
	fflush(stdout);
	return 0; 
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"1"
.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	-45056(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3024, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-48060(%rbp), %rsi
	leaq	-48064(%rbp), %rcx
	leaq	-48068(%rbp), %rdx
	leaq	-48072(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-48072(%rbp), %edx
	movl	-48064(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L2
	movl	-48068(%rbp), %edx
	movl	-48060(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L2
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	jmp	.L12
.L2:
	leaq	-48048(%rbp), %rax
	movl	$48032, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	$1, -48048(%rbp)
	movl	$1, -48052(%rbp)
	jmp	.L4
.L5:
	movl	-48052(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-48048(%rbp,%rax,8), %rdx
	movl	-48072(%rbp), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-48052(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rax, -48048(%rbp,%rdx,8)
	addl	$1, -48052(%rbp)
.L4:
	movl	-48060(%rbp), %eax
	movl	-48068(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -48052(%rbp)
	jle	.L5
	movl	$1, -48056(%rbp)
	jmp	.L6
.L9:
	movl	-48056(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	$1, %eax
	subl	%edx, %eax
	cltq
	imulq	$24016, %rax, %rax
	addq	%rbp, %rax
	subq	$48048, %rax
	movq	(%rax), %rdx
	movl	-48068(%rbp), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movl	-48056(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movslq	%esi, %rdx
	imulq	$24016, %rdx, %rdx
	addq	%rbp, %rdx
	subq	$48048, %rdx
	movq	%rax, (%rdx)
	movl	$1, -48052(%rbp)
	jmp	.L7
.L8:
	movl	-48056(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-48052(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$3002, %rax, %rax
	addq	%rdx, %rax
	movq	-48048(%rbp,%rax,8), %rdx
	movl	-48072(%rbp), %ecx
	movl	-48056(%rbp), %eax
	addl	%ecx, %eax
	cltq
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movl	-48056(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	movl	$1, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	movl	-48052(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	imulq	$3002, %rax, %rax
	addq	%rsi, %rax
	movq	-48048(%rbp,%rax,8), %rdx
	movl	-48068(%rbp), %esi
	movl	-48052(%rbp), %eax
	addl	%esi, %eax
	cltq
	imulq	%rdx, %rax
	addq	%rax, %rcx
	movl	-48056(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	movl	$1, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	movl	-48052(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	imulq	$3002, %rax, %rax
	addq	%rsi, %rax
	movq	-48048(%rbp,%rax,8), %rdx
	movl	-48072(%rbp), %esi
	movl	-48056(%rbp), %eax
	addl	%esi, %eax
	subl	$1, %eax
	cltq
	imulq	%rax, %rdx
	movl	-48068(%rbp), %esi
	movl	-48052(%rbp), %eax
	addl	%esi, %eax
	subl	$1, %eax
	cltq
	imulq	%rdx, %rax
	subq	%rax, %rcx
	movl	-48056(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-48052(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%esi, %rdx
	imulq	$3002, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rax, -48048(%rbp,%rdx,8)
	addl	$1, -48052(%rbp)
.L7:
	movl	-48060(%rbp), %eax
	movl	-48068(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -48052(%rbp)
	jle	.L8
	addl	$1, -48056(%rbp)
.L6:
	movl	-48064(%rbp), %eax
	movl	-48072(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -48056(%rbp)
	jle	.L9
	movl	-48064(%rbp), %eax
	movl	-48072(%rbp), %edx
	subl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-48060(%rbp), %eax
	movl	-48068(%rbp), %edx
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$3002, %rax, %rax
	addq	%rdx, %rax
	movq	-48048(%rbp,%rax,8), %rax
	testq	%rax, %rax
	js	.L10
	movl	-48064(%rbp), %eax
	movl	-48072(%rbp), %edx
	subl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-48060(%rbp), %eax
	movl	-48068(%rbp), %edx
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$3002, %rax, %rax
	addq	%rdx, %rax
	movq	-48048(%rbp,%rax,8), %rax
	jmp	.L11
.L10:
	movl	-48064(%rbp), %eax
	movl	-48072(%rbp), %edx
	subl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-48060(%rbp), %eax
	movl	-48068(%rbp), %edx
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$3002, %rax, %rax
	addq	%rdx, %rax
	movq	-48048(%rbp,%rax,8), %rax
	addq	$998244353, %rax
.L11:
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
.L12:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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
	.section	.rodata
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"1"
.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	-45056(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3024, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-48060(%rbp), %rsi
	leaq	-48064(%rbp), %rcx
	leaq	-48068(%rbp), %rdx
	leaq	-48072(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-48072(%rbp), %edx
	movl	-48064(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L2
	movl	-48068(%rbp), %edx
	movl	-48060(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L2
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	jmp	.L12
.L2:
	leaq	-48048(%rbp), %rax
	movl	$48032, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	$1, -48048(%rbp)
	movl	$1, -48052(%rbp)
	jmp	.L4
.L5:
	movl	-48052(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-48048(%rbp,%rax,8), %rdx
	movl	-48072(%rbp), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-48052(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rax, -48048(%rbp,%rdx,8)
	addl	$1, -48052(%rbp)
.L4:
	movl	-48060(%rbp), %eax
	movl	-48068(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -48052(%rbp)
	jle	.L5
	movl	$1, -48056(%rbp)
	jmp	.L6
.L9:
	movl	-48056(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	$1, %eax
	subl	%edx, %eax
	cltq
	imulq	$24016, %rax, %rax
	addq	%rbp, %rax
	subq	$48048, %rax
	movq	(%rax), %rdx
	movl	-48068(%rbp), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movl	-48056(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movslq	%esi, %rdx
	imulq	$24016, %rdx, %rdx
	addq	%rbp, %rdx
	subq	$48048, %rdx
	movq	%rax, (%rdx)
	movl	$1, -48052(%rbp)
	jmp	.L7
.L8:
	movl	-48056(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-48052(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$3002, %rax, %rax
	addq	%rdx, %rax
	movq	-48048(%rbp,%rax,8), %rdx
	movl	-48072(%rbp), %ecx
	movl	-48056(%rbp), %eax
	addl	%ecx, %eax
	cltq
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movl	-48056(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	movl	$1, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	movl	-48052(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	imulq	$3002, %rax, %rax
	addq	%rsi, %rax
	movq	-48048(%rbp,%rax,8), %rdx
	movl	-48068(%rbp), %esi
	movl	-48052(%rbp), %eax
	addl	%esi, %eax
	cltq
	imulq	%rdx, %rax
	addq	%rax, %rcx
	movl	-48056(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	movl	$1, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	movl	-48052(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	imulq	$3002, %rax, %rax
	addq	%rsi, %rax
	movq	-48048(%rbp,%rax,8), %rdx
	movl	-48072(%rbp), %esi
	movl	-48056(%rbp), %eax
	addl	%esi, %eax
	subl	$1, %eax
	cltq
	imulq	%rax, %rdx
	movl	-48068(%rbp), %esi
	movl	-48052(%rbp), %eax
	addl	%esi, %eax
	subl	$1, %eax
	cltq
	imulq	%rdx, %rax
	subq	%rax, %rcx
	movl	-48056(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-48052(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%esi, %rdx
	imulq	$3002, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rax, -48048(%rbp,%rdx,8)
	addl	$1, -48052(%rbp)
.L7:
	movl	-48060(%rbp), %eax
	movl	-48068(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -48052(%rbp)
	jle	.L8
	addl	$1, -48056(%rbp)
.L6:
	movl	-48064(%rbp), %eax
	movl	-48072(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -48056(%rbp)
	jle	.L9
	movl	-48064(%rbp), %eax
	movl	-48072(%rbp), %edx
	subl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-48060(%rbp), %eax
	movl	-48068(%rbp), %edx
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$3002, %rax, %rax
	addq	%rdx, %rax
	movq	-48048(%rbp,%rax,8), %rax
	testq	%rax, %rax
	js	.L10
	movl	-48064(%rbp), %eax
	movl	-48072(%rbp), %edx
	subl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-48060(%rbp), %eax
	movl	-48068(%rbp), %edx
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$3002, %rax, %rax
	addq	%rdx, %rax
	movq	-48048(%rbp,%rax,8), %rax
	jmp	.L11
.L10:
	movl	-48064(%rbp), %eax
	movl	-48072(%rbp), %edx
	subl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-48060(%rbp), %eax
	movl	-48068(%rbp), %edx
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$3002, %rax, %rax
	addq	%rdx, %rax
	movq	-48048(%rbp,%rax,8), %rax
	addq	$998244353, %rax
.L11:
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
.L12:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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:
