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 main()
{
	int n, s;
	scanf("%d %d", &n, &s);
	int i, j;
	int a[3003];
	for (i = 0; i < n; i++)
		scanf("%d", &a[i]);
	long long int dp[3003];
	long long int p = 998244353;
	for (i = 0; i <= s; i++)
		dp[i] = 0;
	dp[0] = 1;
	for (i = 0; i < n; i++)
	{
		for (j = s - a[i]; j >= 0; j--)
			dp[j + a[i]] = (2 * dp[j + a[i]] + dp[j]) % p;
		for (j = a[i] - 1; j >= 0; j--)
			dp[j] = dp[j] * 2 % p;
	}
	printf("%lld\n", dp[s]);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.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	-32768(%rsp), %r11
	.cfi_def_cfa 11, 32824
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3320, %rsp
	.cfi_def_cfa_offset 36144
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 36072(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r12d
	testl	%r12d, %r12d
	jle	.L2
	leaq	32(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r12d
	addq	$4, %rbp
	cmpl	%ebx, %r12d
	jg	.L3
	movl	28(%rsp), %ebx
	testl	%ebx, %ebx
	js	.L23
.L11:
	movslq	%ebx, %rax
	leaq	12048(%rsp), %rdi
	xorl	%esi, %esi
	leaq	8(,%rax,8), %rdx
	movq	%rax, 8(%rsp)
	call	memset@PLT
.L4:
	movq	$1, 12048(%rsp)
	testl	%r12d, %r12d
	jle	.L5
	leal	-1(%r12), %eax
	leaq	12040(%rsp), %r14
	movabsq	$155014655926305585, %rdi
	leaq	36(%rsp,%rax,4), %r12
	movq	8(%rsp), %rax
	leaq	32(%rsp), %r11
	leaq	12048(%rsp), %rbp
	leaq	0(,%rax,8), %r13
	leaq	(%r14,%r13), %r15
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%r11), %r9d
	movl	%ebx, %eax
	subl	%r9d, %eax
	js	.L6
	cltq
	movq	%r15, %r10
	leaq	0(%rbp,%r13), %rcx
	movslq	%r9d, %r8
	salq	$3, %rax
	negq	%r8
	subq	%rax, %r10
	.p2align 4,,10
	.p2align 3
.L7:
	movq	(%rcx), %rdx
	movq	(%rcx,%r8,8), %rax
	subq	$8, %rcx
	leaq	(%rax,%rdx,2), %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rsi
	movq	%rsi, 8(%rcx)
	cmpq	%r10, %rcx
	jne	.L7
.L6:
	testl	%r9d, %r9d
	jle	.L8
	movslq	%r9d, %r8
	leal	-1(%r9), %eax
	salq	$3, %r8
	salq	$3, %rax
	leaq	0(%rbp,%r8), %rsi
	addq	%r14, %r8
	subq	%rax, %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movq	-8(%rsi), %rax
	subq	$8, %rsi
	leaq	(%rax,%rax), %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	movq	%rcx, (%rsi)
	cmpq	%rsi, %r8
	jne	.L9
.L8:
	addq	$4, %r11
	cmpq	%r12, %r11
	jne	.L10
.L5:
	movq	8(%rsp), %rax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movq	12048(%rsp,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	36072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$36088, %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
.L2:
	.cfi_restore_state
	movl	28(%rsp), %ebx
	testl	%ebx, %ebx
	jns	.L11
	movq	$1, 12048(%rsp)
	movslq	%ebx, %rax
	movq	%rax, 8(%rsp)
	jmp	.L5
.L23:
	movslq	%ebx, %rax
	movq	%rax, 8(%rsp)
	jmp	.L4
.L24:
	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:
```

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 %d"
.LC1:
	.string	"%d"
.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	-32768(%rsp), %r11
	.cfi_def_cfa 11, 32824
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3320, %rsp
	.cfi_def_cfa_offset 36144
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 36072(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r12d
	testl	%r12d, %r12d
	jle	.L2
	leaq	32(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r12d
	addq	$4, %rbp
	cmpl	%ebx, %r12d
	jg	.L3
	movl	28(%rsp), %ebx
	testl	%ebx, %ebx
	js	.L23
.L11:
	movslq	%ebx, %rax
	leaq	12048(%rsp), %rdi
	xorl	%esi, %esi
	leaq	8(,%rax,8), %rdx
	movq	%rax, 8(%rsp)
	call	memset@PLT
.L4:
	movq	$1, 12048(%rsp)
	testl	%r12d, %r12d
	jle	.L5
	leal	-1(%r12), %eax
	leaq	12040(%rsp), %r14
	movabsq	$155014655926305585, %rdi
	leaq	36(%rsp,%rax,4), %r12
	movq	8(%rsp), %rax
	leaq	32(%rsp), %r11
	leaq	12048(%rsp), %rbp
	leaq	0(,%rax,8), %r13
	leaq	(%r14,%r13), %r15
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%r11), %r9d
	movl	%ebx, %eax
	subl	%r9d, %eax
	js	.L6
	cltq
	movq	%r15, %r10
	leaq	0(%rbp,%r13), %rcx
	movslq	%r9d, %r8
	salq	$3, %rax
	negq	%r8
	subq	%rax, %r10
	.p2align 4,,10
	.p2align 3
.L7:
	movq	(%rcx), %rdx
	movq	(%rcx,%r8,8), %rax
	subq	$8, %rcx
	leaq	(%rax,%rdx,2), %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rsi
	movq	%rsi, 8(%rcx)
	cmpq	%r10, %rcx
	jne	.L7
.L6:
	testl	%r9d, %r9d
	jle	.L8
	movslq	%r9d, %r8
	leal	-1(%r9), %eax
	salq	$3, %r8
	salq	$3, %rax
	leaq	0(%rbp,%r8), %rsi
	addq	%r14, %r8
	subq	%rax, %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movq	-8(%rsi), %rax
	subq	$8, %rsi
	leaq	(%rax,%rax), %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	movq	%rcx, (%rsi)
	cmpq	%rsi, %r8
	jne	.L9
.L8:
	addq	$4, %r11
	cmpq	%r12, %r11
	jne	.L10
.L5:
	movq	8(%rsp), %rax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movq	12048(%rsp,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	36072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$36088, %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
.L2:
	.cfi_restore_state
	movl	28(%rsp), %ebx
	testl	%ebx, %ebx
	jns	.L11
	movq	$1, 12048(%rsp)
	movslq	%ebx, %rax
	movq	%rax, 8(%rsp)
	jmp	.L5
.L23:
	movslq	%ebx, %rax
	movq	%rax, 8(%rsp)
	jmp	.L4
.L24:
	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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.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	-32768(%rsp), %r11
	.cfi_def_cfa 11, 32824
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3320, %rsp
	.cfi_def_cfa_offset 36144
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 36072(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r12d
	testl	%r12d, %r12d
	jle	.L2
	leaq	32(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r12d
	addq	$4, %rbp
	cmpl	%ebx, %r12d
	jg	.L3
	movl	28(%rsp), %ebx
	testl	%ebx, %ebx
	js	.L23
.L11:
	movslq	%ebx, %rax
	leaq	12048(%rsp), %rdi
	xorl	%esi, %esi
	leaq	8(,%rax,8), %rdx
	movq	%rax, 8(%rsp)
	call	memset@PLT
.L4:
	movq	$1, 12048(%rsp)
	testl	%r12d, %r12d
	jle	.L5
	leal	-1(%r12), %eax
	leaq	12040(%rsp), %r14
	movabsq	$155014655926305585, %rdi
	leaq	36(%rsp,%rax,4), %r12
	movq	8(%rsp), %rax
	leaq	32(%rsp), %r11
	leaq	12048(%rsp), %rbp
	leaq	0(,%rax,8), %r13
	leaq	(%r14,%r13), %r15
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%r11), %r9d
	movl	%ebx, %eax
	subl	%r9d, %eax
	js	.L6
	cltq
	movq	%r15, %r10
	leaq	0(%rbp,%r13), %rcx
	movslq	%r9d, %r8
	salq	$3, %rax
	negq	%r8
	subq	%rax, %r10
	.p2align 4,,10
	.p2align 3
.L7:
	movq	(%rcx), %rdx
	movq	(%rcx,%r8,8), %rax
	subq	$8, %rcx
	leaq	(%rax,%rdx,2), %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rsi
	movq	%rsi, 8(%rcx)
	cmpq	%r10, %rcx
	jne	.L7
.L6:
	testl	%r9d, %r9d
	jle	.L8
	movslq	%r9d, %r8
	leal	-1(%r9), %eax
	salq	$3, %r8
	salq	$3, %rax
	leaq	0(%rbp,%r8), %rsi
	addq	%r14, %r8
	subq	%rax, %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movq	-8(%rsi), %rax
	subq	$8, %rsi
	leaq	(%rax,%rax), %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	movq	%rcx, (%rsi)
	cmpq	%rsi, %r8
	jne	.L9
.L8:
	addq	$4, %r11
	cmpq	%r12, %r11
	jne	.L10
.L5:
	movq	8(%rsp), %rax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movq	12048(%rsp,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	36072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$36088, %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
.L2:
	.cfi_restore_state
	movl	28(%rsp), %ebx
	testl	%ebx, %ebx
	jns	.L11
	movq	$1, 12048(%rsp)
	movslq	%ebx, %rax
	movq	%rax, 8(%rsp)
	jmp	.L5
.L23:
	movslq	%ebx, %rax
	movq	%rax, 8(%rsp)
	jmp	.L4
.L24:
	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:
```
```c
#include<stdio.h>
int main()
{
	int n, s;
	scanf("%d %d", &n, &s);
	int i, j;
	int a[3003];
	for (i = 0; i < n; i++)
		scanf("%d", &a[i]);
	long long int dp[3003];
	long long int p = 998244353;
	for (i = 0; i <= s; i++)
		dp[i] = 0;
	dp[0] = 1;
	for (i = 0; i < n; i++)
	{
		for (j = s - a[i]; j >= 0; j--)
			dp[j + a[i]] = (2 * dp[j + a[i]] + dp[j]) % p;
		for (j = a[i] - 1; j >= 0; j--)
			dp[j] = dp[j] * 2 % p;
	}
	printf("%lld\n", dp[s]);
	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 main()
{
	int n, s;
	scanf("%d %d", &n, &s);
	int i, j;
	int a[3003];
	for (i = 0; i < n; i++)
		scanf("%d", &a[i]);
	long long int dp[3003];
	long long int p = 998244353;
	for (i = 0; i <= s; i++)
		dp[i] = 0;
	dp[0] = 1;
	for (i = 0; i < n; i++)
	{
		for (j = s - a[i]; j >= 0; j--)
			dp[j + a[i]] = (2 * dp[j + a[i]] + dp[j]) % p;
		for (j = a[i] - 1; j >= 0; j--)
			dp[j] = dp[j] * 2 % p;
	}
	printf("%lld\n", dp[s]);
	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:

5 8
9 15 9 9 9
 10 10
3 1 4 1 5 9 2 4 5 3
 3 4
2 2 1
 10 10
3 1 7 1 5 9 2 6 5 3
 10 20
3 1 4 1 5 9 2 4 5 3
 10 10
3 1 7 1 5 13 2 6 5 3
 10 20
3 1 4 1 5 9 4 4 5 3
 10 10
3 1 7 1 10 13 2 6 5 3
 10 9
3 1 4 1 5 9 4 4 5 3
 10 10
3 1 7 1 13 13 2 6 5 3

0
 3552
 2
 2912
 1624
 2400
 1496
 2272
 4224
 1760

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 main()
{
	int n, s;
	scanf("%d %d", &n, &s);
	int i, j;
	int a[3003];
	for (i = 0; i < n; i++)
		scanf("%d", &a[i]);
	long long int dp[3003];
	long long int p = 998244353;
	for (i = 0; i <= s; i++)
		dp[i] = 0;
	dp[0] = 1;
	for (i = 0; i < n; i++)
	{
		for (j = s - a[i]; j >= 0; j--)
			dp[j + a[i]] = (2 * dp[j + a[i]] + dp[j]) % p;
		for (j = a[i] - 1; j >= 0; j--)
			dp[j] = dp[j] * 2 % p;
	}
	printf("%lld\n", dp[s]);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.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	-32768(%rsp), %r11
	.cfi_def_cfa 11, 32824
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3320, %rsp
	.cfi_def_cfa_offset 36144
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 36072(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r12d
	testl	%r12d, %r12d
	jle	.L2
	leaq	32(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r12d
	addq	$4, %rbp
	cmpl	%ebx, %r12d
	jg	.L3
	movl	28(%rsp), %ebx
	testl	%ebx, %ebx
	js	.L23
.L11:
	movslq	%ebx, %rax
	leaq	12048(%rsp), %rdi
	xorl	%esi, %esi
	leaq	8(,%rax,8), %rdx
	movq	%rax, 8(%rsp)
	call	memset@PLT
.L4:
	movq	$1, 12048(%rsp)
	testl	%r12d, %r12d
	jle	.L5
	leal	-1(%r12), %eax
	leaq	12040(%rsp), %r14
	movabsq	$155014655926305585, %rdi
	leaq	36(%rsp,%rax,4), %r12
	movq	8(%rsp), %rax
	leaq	32(%rsp), %r11
	leaq	12048(%rsp), %rbp
	leaq	0(,%rax,8), %r13
	leaq	(%r14,%r13), %r15
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%r11), %r9d
	movl	%ebx, %eax
	subl	%r9d, %eax
	js	.L6
	cltq
	movq	%r15, %r10
	leaq	0(%rbp,%r13), %rcx
	movslq	%r9d, %r8
	salq	$3, %rax
	negq	%r8
	subq	%rax, %r10
	.p2align 4,,10
	.p2align 3
.L7:
	movq	(%rcx), %rdx
	movq	(%rcx,%r8,8), %rax
	subq	$8, %rcx
	leaq	(%rax,%rdx,2), %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rsi
	movq	%rsi, 8(%rcx)
	cmpq	%r10, %rcx
	jne	.L7
.L6:
	testl	%r9d, %r9d
	jle	.L8
	movslq	%r9d, %r8
	leal	-1(%r9), %eax
	salq	$3, %r8
	salq	$3, %rax
	leaq	0(%rbp,%r8), %rsi
	addq	%r14, %r8
	subq	%rax, %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movq	-8(%rsi), %rax
	subq	$8, %rsi
	leaq	(%rax,%rax), %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	movq	%rcx, (%rsi)
	cmpq	%rsi, %r8
	jne	.L9
.L8:
	addq	$4, %r11
	cmpq	%r12, %r11
	jne	.L10
.L5:
	movq	8(%rsp), %rax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movq	12048(%rsp,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	36072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$36088, %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
.L2:
	.cfi_restore_state
	movl	28(%rsp), %ebx
	testl	%ebx, %ebx
	jns	.L11
	movq	$1, 12048(%rsp)
	movslq	%ebx, %rax
	movq	%rax, 8(%rsp)
	jmp	.L5
.L23:
	movslq	%ebx, %rax
	movq	%rax, 8(%rsp)
	jmp	.L4
.L24:
	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:
```

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 %d"
.LC1:
	.string	"%d"
.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	-32768(%rsp), %r11
	.cfi_def_cfa 11, 32824
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3320, %rsp
	.cfi_def_cfa_offset 36144
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 36072(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r12d
	testl	%r12d, %r12d
	jle	.L2
	leaq	32(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r12d
	addq	$4, %rbp
	cmpl	%ebx, %r12d
	jg	.L3
	movl	28(%rsp), %ebx
	testl	%ebx, %ebx
	js	.L23
.L11:
	movslq	%ebx, %rax
	leaq	12048(%rsp), %rdi
	xorl	%esi, %esi
	leaq	8(,%rax,8), %rdx
	movq	%rax, 8(%rsp)
	call	memset@PLT
.L4:
	movq	$1, 12048(%rsp)
	testl	%r12d, %r12d
	jle	.L5
	leal	-1(%r12), %eax
	leaq	12040(%rsp), %r14
	movabsq	$155014655926305585, %rdi
	leaq	36(%rsp,%rax,4), %r12
	movq	8(%rsp), %rax
	leaq	32(%rsp), %r11
	leaq	12048(%rsp), %rbp
	leaq	0(,%rax,8), %r13
	leaq	(%r14,%r13), %r15
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%r11), %r9d
	movl	%ebx, %eax
	subl	%r9d, %eax
	js	.L6
	cltq
	movq	%r15, %r10
	leaq	0(%rbp,%r13), %rcx
	movslq	%r9d, %r8
	salq	$3, %rax
	negq	%r8
	subq	%rax, %r10
	.p2align 4,,10
	.p2align 3
.L7:
	movq	(%rcx), %rdx
	movq	(%rcx,%r8,8), %rax
	subq	$8, %rcx
	leaq	(%rax,%rdx,2), %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rsi
	movq	%rsi, 8(%rcx)
	cmpq	%r10, %rcx
	jne	.L7
.L6:
	testl	%r9d, %r9d
	jle	.L8
	movslq	%r9d, %r8
	leal	-1(%r9), %eax
	salq	$3, %r8
	salq	$3, %rax
	leaq	0(%rbp,%r8), %rsi
	addq	%r14, %r8
	subq	%rax, %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movq	-8(%rsi), %rax
	subq	$8, %rsi
	leaq	(%rax,%rax), %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	movq	%rcx, (%rsi)
	cmpq	%rsi, %r8
	jne	.L9
.L8:
	addq	$4, %r11
	cmpq	%r12, %r11
	jne	.L10
.L5:
	movq	8(%rsp), %rax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movq	12048(%rsp,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	36072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$36088, %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
.L2:
	.cfi_restore_state
	movl	28(%rsp), %ebx
	testl	%ebx, %ebx
	jns	.L11
	movq	$1, 12048(%rsp)
	movslq	%ebx, %rax
	movq	%rax, 8(%rsp)
	jmp	.L5
.L23:
	movslq	%ebx, %rax
	movq	%rax, 8(%rsp)
	jmp	.L4
.L24:
	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:
```