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>
#include<stdlib.h>
#include<string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
ll pom(ll a,ll n,int m){ll x=1;for(a%=m;n;n/=2)n&1?x=x*a%m:0,a=a*a%m;return x;}
#define invp(a,p)pom(a,p-2,p)

#define p 998244353

//非再帰fft
void fft(ll*a,int n,ll g){
	for(int block=n;block>=2;block/=2){
		ll gi=1;
		for(int i=0;i<block/2;i++){
			for(int start=0;start<n;start+=block){
				//a[start+i]とa[start+i+block/2]を合体
				int temp=a[start+i]-a[start+i+block/2];
				a[start+i]+=a[start+i+block/2];
				if(a[start+i]>=p)a[start+i]-=p;
				a[start+i+block/2]=(temp+p)*gi%p;
			}
			gi=gi*g%p;
		}
        g=g*g%p;
	}

	//bit reverse
	int i=0;
	rep(j,1,n-1){
		for(int k=n>>1;k>(i^=k);k>>=1);//rev(i)に2進の+1をやる気持ち
		if(j<i){int t=a[j];a[j]=a[i];a[i]=t;}
    }
}

ll*comb(ll*a,int n,ll*b,int m){
	//0詰め
	int t=1;
	while(n+m-1>t)t*=2;
	if(t>(1<<26)){puts("error");exit(0);}
	ll*c=(ll*)calloc(t,sizeof(ll));
	memcpy(c,a,n*sizeof(ll));
	ll*d=(ll*)calloc(t,sizeof(ll));
	memcpy(d,b,m*sizeof(ll));
	//fft
	ll g=pom(3,(p-1)/t,p);
	fft(c,t,g);
	fft(d,t,g);
	//掛け算
	rep(i,0,t)c[i]=c[i]*d[i]%p;
	free(d);
	//復元
	fft(c,t,invp(g,p));
	ll coef=invp(t,p);
	rep(i,0,t)c[i]=c[i]*coef%p;
	return c;
}

ll a[1<<19],b[1<<19];
int main(){
	int n,m;
	scanf("%d%d",&n,&m);
	rep(i,0,n)scanf("%lld",a+i);
	rep(i,0,m)scanf("%lld",b+i);
	ll*c=comb(a,n,b,m);
	rep(i,0,n+m-1)printf("%lld ",c[i]);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	pom
	.type	pom, @function
pom:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movq	$1, -8(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	jmp	.L2
.L5:
	movq	-32(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L4
	movq	-8(%rbp), %rax
	imulq	-24(%rbp), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -8(%rbp)
.L4:
	movq	-24(%rbp), %rax
	imulq	%rax, %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -32(%rbp)
.L2:
	cmpq	$0, -32(%rbp)
	jne	.L5
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	pom, .-pom
	.globl	fft
	.type	fft, @function
fft:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -56(%rbp)
	movl	%esi, -60(%rbp)
	movq	%rdx, -72(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -44(%rbp)
	jmp	.L8
.L14:
	movq	$1, -16(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L9
.L13:
	movl	$0, -36(%rbp)
	jmp	.L10
.L12:
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movl	%eax, %ecx
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%eax, %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%esi, %eax
	sarl	%eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movl	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, -20(%rbp)
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%eax, %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%esi, %eax
	sarl	%eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %esi
	movl	-40(%rbp), %eax
	addl	%esi, %eax
	cltq
	leaq	0(,%rax,8), %rsi
	movq	-56(%rbp), %rax
	addq	%rsi, %rax
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	$998244352, %rax
	jle	.L11
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %ecx
	movl	-40(%rbp), %eax
	addl	%ecx, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	subq	$998244353, %rdx
	movq	%rdx, (%rax)
.L11:
	movl	-20(%rbp), %eax
	addl	$998244353, %eax
	cltq
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%eax, %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%esi, %eax
	sarl	%eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	leaq	(%rdx,%rax), %rsi
	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
	movq	%rax, (%rsi)
	movl	-44(%rbp), %eax
	addl	%eax, -36(%rbp)
.L10:
	movl	-36(%rbp), %eax
	cmpl	-60(%rbp), %eax
	jl	.L12
	movq	-16(%rbp), %rax
	imulq	-72(%rbp), %rax
	movq	%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
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	addl	$1, -40(%rbp)
.L9:
	movl	-44(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -40(%rbp)
	jl	.L13
	movq	-72(%rbp), %rax
	imulq	%rax, %rax
	movq	%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
	movq	%rax, -72(%rbp)
	movq	-72(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -72(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -44(%rbp)
.L8:
	cmpl	$1, -44(%rbp)
	jg	.L14
	movl	$0, -32(%rbp)
	movq	$1, -8(%rbp)
	jmp	.L15
.L19:
	movl	-60(%rbp), %eax
	sarl	%eax
	movl	%eax, -28(%rbp)
	jmp	.L16
.L17:
	sarl	-28(%rbp)
.L16:
	movl	-28(%rbp), %eax
	xorl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L17
	movl	-32(%rbp), %eax
	cltq
	cmpq	%rax, -8(%rbp)
	jge	.L18
	movq	-8(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movl	%eax, -24(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	-8(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-56(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	movq	%rax, (%rdx)
.L18:
	addq	$1, -8(%rbp)
.L15:
	movl	-60(%rbp), %eax
	subl	$1, %eax
	cltq
	cmpq	%rax, -8(%rbp)
	jl	.L19
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fft, .-fft
	.section	.rodata
.LC0:
	.string	"error"
	.text
	.globl	comb
	.type	comb, @function
comb:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movq	%rdi, -72(%rbp)
	movl	%esi, -76(%rbp)
	movq	%rdx, -88(%rbp)
	movl	%ecx, -80(%rbp)
	movl	$1, -52(%rbp)
	jmp	.L21
.L22:
	sall	-52(%rbp)
.L21:
	movl	-76(%rbp), %edx
	movl	-80(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cmpl	%eax, -52(%rbp)
	jl	.L22
	cmpl	$67108864, -52(%rbp)
	jle	.L23
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %edi
	call	exit@PLT
.L23:
	movl	-52(%rbp), %eax
	cltq
	movl	$8, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -32(%rbp)
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-72(%rbp), %rcx
	movq	-32(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	-52(%rbp), %eax
	cltq
	movl	$8, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -24(%rbp)
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-88(%rbp), %rcx
	movq	-24(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	$998244352, %eax
	cltd
	idivl	-52(%rbp)
	cltq
	movl	$998244353, %edx
	movq	%rax, %rsi
	movl	$3, %edi
	call	pom
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rdx
	movl	-52(%rbp), %ecx
	movq	-32(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	fft
	movq	-16(%rbp), %rdx
	movl	-52(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	fft
	movq	$0, -48(%rbp)
	jmp	.L24
.L25:
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	leaq	(%rdx,%rax), %rsi
	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
	movq	%rax, (%rsi)
	addq	$1, -48(%rbp)
.L24:
	movl	-52(%rbp), %eax
	cltq
	cmpq	%rax, -48(%rbp)
	jl	.L25
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	-16(%rbp), %rax
	movl	$998244353, %edx
	movl	$998244351, %esi
	movq	%rax, %rdi
	call	pom
	movq	%rax, %rdx
	movl	-52(%rbp), %ecx
	movq	-32(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	fft
	movl	-52(%rbp), %eax
	cltq
	movl	$998244353, %edx
	movl	$998244351, %esi
	movq	%rax, %rdi
	call	pom
	movq	%rax, -8(%rbp)
	movq	$0, -40(%rbp)
	jmp	.L26
.L27:
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	imulq	-8(%rbp), %rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	leaq	(%rdx,%rax), %rsi
	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
	movq	%rax, (%rsi)
	addq	$1, -40(%rbp)
.L26:
	movl	-52(%rbp), %eax
	cltq
	cmpq	%rax, -40(%rbp)
	jl	.L27
	movq	-32(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	comb, .-comb
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 4194304
a:
	.zero	4194304
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 4194304
b:
	.zero	4194304
	.section	.rodata
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%lld"
.LC3:
	.string	"%lld "
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -40(%rbp)
	jmp	.L30
.L31:
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -40(%rbp)
.L30:
	movl	-48(%rbp), %eax
	cltq
	cmpq	%rax, -40(%rbp)
	jl	.L31
	movq	$0, -32(%rbp)
	jmp	.L32
.L33:
	movq	-32(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -32(%rbp)
.L32:
	movl	-44(%rbp), %eax
	cltq
	cmpq	%rax, -32(%rbp)
	jl	.L33
	movl	-44(%rbp), %edx
	movl	-48(%rbp), %eax
	movl	%edx, %ecx
	leaq	b(%rip), %rdx
	movl	%eax, %esi
	leaq	a(%rip), %rax
	movq	%rax, %rdi
	call	comb
	movq	%rax, -16(%rbp)
	movq	$0, -24(%rbp)
	jmp	.L34
.L35:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -24(%rbp)
.L34:
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	cmpq	%rax, -24(%rbp)
	jl	.L35
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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
	.p2align 4
	.globl	pom
	.type	pom, @function
pom:
.LFB51:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movslq	%edx, %r8
	movl	$1, %r9d
	cqto
	idivq	%r8
	movq	%rdx, %rcx
	testq	%rsi, %rsi
	je	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	testb	$1, %sil
	je	.L3
	movq	%r9, %rax
	imulq	%rcx, %rax
	cqto
	idivq	%r8
	movq	%rdx, %r9
.L3:
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	cqto
	idivq	%r8
	movq	%rsi, %rax
	shrq	$63, %rax
	addq	%rax, %rsi
	sarq	%rsi
	movq	%rdx, %rcx
	jne	.L4
.L1:
	movq	%r9, %rax
	ret
	.cfi_endproc
.LFE51:
	.size	pom, .-pom
	.p2align 4
	.globl	fft
	.type	fft, @function
fft:
.LFB52:
	.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
	movq	%rdi, -8(%rsp)
	cmpl	$1, %esi
	jle	.L11
	movl	%esi, %ebp
	movq	%rdx, %r14
	movl	%esi, %r15d
	movabsq	$155014655926305585, %r10
	.p2align 4,,10
	.p2align 3
.L12:
	movslq	%r15d, %r11
	movq	-8(%rsp), %r13
	sarl	%r15d
	xorl	%r12d, %r12d
	movq	%r11, %rbx
	movl	$1, %r9d
	salq	$3, %r11
	movslq	%r15d, %r8
	.p2align 4,,10
	.p2align 3
.L18:
	movq	%r13, %rsi
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L17:
	movq	(%rsi), %rax
	movl	%eax, %ecx
	addq	(%rsi,%r8,8), %rax
	subl	(%rsi,%r8,8), %ecx
	cmpq	$998244352, %rax
	jle	.L33
	subq	$998244353, %rax
.L33:
	addl	$998244353, %ecx
	movq	%rax, (%rsi)
	addl	%ebx, %edi
	movslq	%ecx, %rcx
	imulq	%r9, %rcx
	movq	%rcx, %rax
	imulq	%r10
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	movq	%rcx, (%rsi,%r8,8)
	addq	%r11, %rsi
	cmpl	%edi, %ebp
	jg	.L17
	movq	%r9, %rcx
	addl	$1, %r12d
	addq	$8, %r13
	imulq	%r14, %rcx
	movq	%rcx, %rax
	imulq	%r10
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %r9
	cmpl	%r12d, %r15d
	jne	.L18
	movabsq	$-8525806094425994177, %rax
	movq	%r14, %rcx
	imulq	%r14, %rcx
	mulq	%rcx
	shrq	$29, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %r14
	cmpl	$1, %r15d
	jne	.L12
	cmpl	$2, %ebp
	jle	.L11
	movl	%ebp, %edi
	movslq	%ebp, %rax
	movq	-8(%rsp), %r9
	movl	$1, %esi
	sarl	%edi
	subq	$1, %rax
	movl	%edi, %ecx
	.p2align 4,,10
	.p2align 3
.L25:
	movslq	%ecx, %rdx
	cmpq	%rsi, %rdx
	jle	.L23
	leaq	(%r9,%rdx,8), %r10
	movq	(%r9,%rsi,8), %r8
	movq	(%r10), %rdx
	movq	%rdx, (%r9,%rsi,8)
	movslq	%r8d, %rdx
	movq	%rdx, (%r10)
.L23:
	addq	$1, %rsi
	cmpq	%rax, %rsi
	je	.L11
	xorl	%edi, %ecx
	cmpl	%ecx, %edi
	jle	.L25
	movl	%edi, %edx
	.p2align 4,,10
	.p2align 3
.L22:
	sarl	%edx
	xorl	%edx, %ecx
	cmpl	%edx, %ecx
	jl	.L22
	jmp	.L25
.L11:
	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
	.cfi_endproc
.LFE52:
	.size	fft, .-fft
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"error"
	.text
	.p2align 4
	.globl	comb
	.type	comb, @function
comb:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leal	-1(%rsi,%rcx), %eax
	movl	%esi, %r8d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdi, %r14
	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
	movq	%rdx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%ecx, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	$1, %eax
	jle	.L46
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L36:
	addl	%r13d, %r13d
	cmpl	%r13d, %eax
	jg	.L36
	cmpl	$67108864, %r13d
	jle	.L37
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
	xorl	%edi, %edi
	call	exit@PLT
	.p2align 4,,10
	.p2align 3
.L37:
	movslq	%r13d, %r9
	movq	%r9, %r15
.L35:
	movq	%r9, %rdi
	movl	$8, %esi
	movl	%r8d, 12(%rsp)
	movq	%r9, (%rsp)
	call	calloc@PLT
	movslq	12(%rsp), %rdx
	movq	%r14, %rsi
	movl	$1, %r14d
	movq	%rax, %rdi
	movq	%rax, %r12
	salq	$3, %rdx
	call	memcpy@PLT
	movq	(%rsp), %rdi
	movl	$8, %esi
	call	calloc@PLT
	movslq	%ebx, %rdx
	movq	%rbp, %rsi
	salq	$3, %rdx
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	$3, %esi
	movabsq	$155014655926305585, %r9
	movabsq	$-8525806094425994177, %rdi
	movq	%rax, %r8
	movl	$998244352, %eax
	cltd
	idivl	%r13d
	movslq	%eax, %rbx
	.p2align 4,,10
	.p2align 3
.L39:
	testb	$1, %bl
	je	.L38
	movq	%r14, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%r9
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %r14
.L38:
	imulq	%rsi, %rsi
	movq	%rsi, %rax
	movq	%rsi, %rcx
	mulq	%rdi
	movq	%rdx, %rsi
	shrq	$29, %rsi
	imulq	$998244353, %rsi, %rax
	movq	%rcx, %rsi
	subq	%rax, %rsi
	movq	%rbx, %rax
	shrq	$63, %rax
	addq	%rbx, %rax
	sarq	%rax
	movq	%rax, %rbx
	jne	.L39
	movq	%r14, %rdx
	movl	%r13d, %esi
	movq	%r12, %rdi
	movq	%r8, (%rsp)
	call	fft
	movq	%r14, %rdx
	movl	%r13d, %esi
	movq	(%rsp), %rdi
	movabsq	$155014655926305585, %rbp
	call	fft
	movq	(%rsp), %r8
	.p2align 4,,10
	.p2align 3
.L40:
	movq	(%r12,%rbx,8), %rcx
	imulq	(%r8,%rbx,8), %rcx
	movq	%rcx, %rax
	imulq	%rbp
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	movq	%rcx, (%r12,%rbx,8)
	addq	$1, %rbx
	cmpq	%r15, %rbx
	jne	.L40
	movq	%r8, %rdi
	call	free@PLT
	movq	%r14, %rax
	movq	%r14, %rcx
	movl	$30, %edi
	imulq	%rbp
	movq	%r14, %rax
	movl	$1, %r8d
	movl	$998244351, %r11d
	movabsq	$155014655926305585, %r10
	sarq	$63, %rax
	movabsq	$-8525806094425994177, %r9
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L42:
	testb	$1, %r11b
	je	.L41
	movq	%r8, %rsi
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	imulq	%r10
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, %r8
.L41:
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	movq	%rcx, %rsi
	mulq	%r9
	movq	%rdx, %rcx
	shrq	$29, %rcx
	imulq	$998244353, %rcx, %rax
	subq	%rax, %rsi
	movq	%r11, %rax
	shrq	$63, %rax
	movq	%rsi, %rcx
	addq	%r11, %rax
	sarq	%rax
	movq	%rax, %r11
	subl	$1, %edi
	jne	.L42
	movq	%r8, %rdx
	movq	%r12, %rdi
	movl	%r13d, %esi
	call	fft
	movq	%r15, %rcx
	movl	$1, %edi
	movl	$30, %r9d
	movabsq	$-8525806094425994177, %r10
	movl	$998244351, %r8d
	.p2align 4,,10
	.p2align 3
.L44:
	testb	$1, %r8b
	je	.L43
	imulq	%rcx, %rdi
	movq	%rdi, %rax
	movq	%rdi, %rsi
	mulq	%r10
	movq	%rdx, %rdi
	shrq	$29, %rdi
	imulq	$998244353, %rdi, %rax
	movq	%rsi, %rdi
	subq	%rax, %rdi
.L43:
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	movq	%rcx, %rsi
	mulq	%r10
	shrq	$29, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rsi
	movq	%r8, %rax
	shrq	$63, %rax
	movq	%rsi, %rcx
	addq	%r8, %rax
	sarq	%rax
	movq	%rax, %r8
	subl	$1, %r9d
	jne	.L44
	movq	%r12, %r8
	leaq	(%r12,%r15,8), %r10
	movabsq	$155014655926305585, %r9
	.p2align 4,,10
	.p2align 3
.L45:
	movq	(%r8), %rsi
	addq	$8, %r8
	imulq	%rdi, %rsi
	movq	%rsi, %rax
	imulq	%r9
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rcx
	subq	%rcx, %rsi
	movq	%rsi, -8(%r8)
	cmpq	%r8, %r10
	jne	.L45
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r12, %rax
	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
	.p2align 4,,10
	.p2align 3
.L46:
	.cfi_restore_state
	movl	$1, %r15d
	movl	$1, %r9d
	movl	$1, %r13d
	jmp	.L35
	.cfi_endproc
.LFE53:
	.size	comb, .-comb
	.section	.rodata.str1.1
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%lld"
.LC3:
	.string	"%lld "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC1(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	a(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L64
	movq	%r13, %rbp
	xorl	%ebx, %ebx
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L65:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rax
	addq	$8, %rbp
	cmpq	%rbx, %rax
	jg	.L65
.L64:
	movl	4(%rsp), %ecx
	leaq	b(%rip), %r14
	testl	%ecx, %ecx
	jle	.L66
	movq	%r14, %rbp
	xorl	%ebx, %ebx
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L67:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	addq	$8, %rbp
	movq	%rax, %rcx
	cmpq	%rbx, %rax
	jg	.L67
.L66:
	movl	(%rsp), %esi
	movq	%r14, %rdx
	movq	%r13, %rdi
	call	comb
	movq	%rax, %r12
	movl	(%rsp), %eax
	addl	4(%rsp), %eax
	cmpl	$1, %eax
	jle	.L68
	xorl	%ebx, %ebx
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L69:
	movq	(%r12,%rbx,8), %rdx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	movl	4(%rsp), %eax
	addl	(%rsp), %eax
	subl	$1, %eax
	cltq
	cmpq	%rbx, %rax
	jg	.L69
.L68:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L77
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L77:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.size	main, .-main
	.globl	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 4194304
b:
	.zero	4194304
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 4194304
a:
	.zero	4194304
	.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
	.p2align 4
	.globl	pom
	.type	pom, @function
pom:
.LFB51:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movslq	%edx, %r8
	movl	$1, %r9d
	cqto
	idivq	%r8
	movq	%rdx, %rcx
	testq	%rsi, %rsi
	je	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	testb	$1, %sil
	je	.L3
	movq	%r9, %rax
	imulq	%rcx, %rax
	cqto
	idivq	%r8
	movq	%rdx, %r9
.L3:
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	cqto
	idivq	%r8
	movq	%rsi, %rax
	shrq	$63, %rax
	addq	%rax, %rsi
	sarq	%rsi
	movq	%rdx, %rcx
	jne	.L4
.L1:
	movq	%r9, %rax
	ret
	.cfi_endproc
.LFE51:
	.size	pom, .-pom
	.p2align 4
	.globl	fft
	.type	fft, @function
fft:
.LFB52:
	.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
	movq	%rdi, -8(%rsp)
	cmpl	$1, %esi
	jle	.L11
	movl	%esi, %ebp
	movq	%rdx, %r14
	movl	%esi, %r15d
	movabsq	$155014655926305585, %r10
	.p2align 4,,10
	.p2align 3
.L12:
	movslq	%r15d, %r11
	movq	-8(%rsp), %r13
	sarl	%r15d
	xorl	%r12d, %r12d
	movq	%r11, %rbx
	movl	$1, %r9d
	salq	$3, %r11
	movslq	%r15d, %r8
	.p2align 4,,10
	.p2align 3
.L18:
	movq	%r13, %rsi
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L17:
	movq	(%rsi), %rax
	movl	%eax, %ecx
	addq	(%rsi,%r8,8), %rax
	subl	(%rsi,%r8,8), %ecx
	cmpq	$998244352, %rax
	jle	.L33
	subq	$998244353, %rax
.L33:
	addl	$998244353, %ecx
	movq	%rax, (%rsi)
	addl	%ebx, %edi
	movslq	%ecx, %rcx
	imulq	%r9, %rcx
	movq	%rcx, %rax
	imulq	%r10
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	movq	%rcx, (%rsi,%r8,8)
	addq	%r11, %rsi
	cmpl	%edi, %ebp
	jg	.L17
	movq	%r9, %rcx
	addl	$1, %r12d
	addq	$8, %r13
	imulq	%r14, %rcx
	movq	%rcx, %rax
	imulq	%r10
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %r9
	cmpl	%r12d, %r15d
	jne	.L18
	movabsq	$-8525806094425994177, %rax
	movq	%r14, %rcx
	imulq	%r14, %rcx
	mulq	%rcx
	shrq	$29, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %r14
	cmpl	$1, %r15d
	jne	.L12
	cmpl	$2, %ebp
	jle	.L11
	movl	%ebp, %edi
	movslq	%ebp, %rax
	movq	-8(%rsp), %r9
	movl	$1, %esi
	sarl	%edi
	subq	$1, %rax
	movl	%edi, %ecx
	.p2align 4,,10
	.p2align 3
.L25:
	movslq	%ecx, %rdx
	cmpq	%rsi, %rdx
	jle	.L23
	leaq	(%r9,%rdx,8), %r10
	movq	(%r9,%rsi,8), %r8
	movq	(%r10), %rdx
	movq	%rdx, (%r9,%rsi,8)
	movslq	%r8d, %rdx
	movq	%rdx, (%r10)
.L23:
	addq	$1, %rsi
	cmpq	%rax, %rsi
	je	.L11
	xorl	%edi, %ecx
	cmpl	%ecx, %edi
	jle	.L25
	movl	%edi, %edx
	.p2align 4,,10
	.p2align 3
.L22:
	sarl	%edx
	xorl	%edx, %ecx
	cmpl	%edx, %ecx
	jl	.L22
	jmp	.L25
.L11:
	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
	.cfi_endproc
.LFE52:
	.size	fft, .-fft
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"error"
	.text
	.p2align 4
	.globl	comb
	.type	comb, @function
comb:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leal	-1(%rsi,%rcx), %eax
	movl	%esi, %r8d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdi, %r14
	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
	movq	%rdx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%ecx, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	$1, %eax
	jle	.L46
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L36:
	addl	%r13d, %r13d
	cmpl	%r13d, %eax
	jg	.L36
	cmpl	$67108864, %r13d
	jle	.L37
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
	xorl	%edi, %edi
	call	exit@PLT
	.p2align 4,,10
	.p2align 3
.L37:
	movslq	%r13d, %r9
	movq	%r9, %r15
.L35:
	movq	%r9, %rdi
	movl	$8, %esi
	movl	%r8d, 12(%rsp)
	movq	%r9, (%rsp)
	call	calloc@PLT
	movslq	12(%rsp), %rdx
	movq	%r14, %rsi
	movl	$1, %r14d
	movq	%rax, %rdi
	movq	%rax, %r12
	salq	$3, %rdx
	call	memcpy@PLT
	movq	(%rsp), %rdi
	movl	$8, %esi
	call	calloc@PLT
	movslq	%ebx, %rdx
	movq	%rbp, %rsi
	salq	$3, %rdx
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	$3, %esi
	movabsq	$155014655926305585, %r9
	movabsq	$-8525806094425994177, %rdi
	movq	%rax, %r8
	movl	$998244352, %eax
	cltd
	idivl	%r13d
	movslq	%eax, %rbx
	.p2align 4,,10
	.p2align 3
.L39:
	testb	$1, %bl
	je	.L38
	movq	%r14, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%r9
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %r14
.L38:
	imulq	%rsi, %rsi
	movq	%rsi, %rax
	movq	%rsi, %rcx
	mulq	%rdi
	movq	%rdx, %rsi
	shrq	$29, %rsi
	imulq	$998244353, %rsi, %rax
	movq	%rcx, %rsi
	subq	%rax, %rsi
	movq	%rbx, %rax
	shrq	$63, %rax
	addq	%rbx, %rax
	sarq	%rax
	movq	%rax, %rbx
	jne	.L39
	movq	%r14, %rdx
	movl	%r13d, %esi
	movq	%r12, %rdi
	movq	%r8, (%rsp)
	call	fft
	movq	%r14, %rdx
	movl	%r13d, %esi
	movq	(%rsp), %rdi
	movabsq	$155014655926305585, %rbp
	call	fft
	movq	(%rsp), %r8
	.p2align 4,,10
	.p2align 3
.L40:
	movq	(%r12,%rbx,8), %rcx
	imulq	(%r8,%rbx,8), %rcx
	movq	%rcx, %rax
	imulq	%rbp
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	movq	%rcx, (%r12,%rbx,8)
	addq	$1, %rbx
	cmpq	%r15, %rbx
	jne	.L40
	movq	%r8, %rdi
	call	free@PLT
	movq	%r14, %rax
	movq	%r14, %rcx
	movl	$30, %edi
	imulq	%rbp
	movq	%r14, %rax
	movl	$1, %r8d
	movl	$998244351, %r11d
	movabsq	$155014655926305585, %r10
	sarq	$63, %rax
	movabsq	$-8525806094425994177, %r9
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L42:
	testb	$1, %r11b
	je	.L41
	movq	%r8, %rsi
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	imulq	%r10
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, %r8
.L41:
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	movq	%rcx, %rsi
	mulq	%r9
	movq	%rdx, %rcx
	shrq	$29, %rcx
	imulq	$998244353, %rcx, %rax
	subq	%rax, %rsi
	movq	%r11, %rax
	shrq	$63, %rax
	movq	%rsi, %rcx
	addq	%r11, %rax
	sarq	%rax
	movq	%rax, %r11
	subl	$1, %edi
	jne	.L42
	movq	%r8, %rdx
	movq	%r12, %rdi
	movl	%r13d, %esi
	call	fft
	movq	%r15, %rcx
	movl	$1, %edi
	movl	$30, %r9d
	movabsq	$-8525806094425994177, %r10
	movl	$998244351, %r8d
	.p2align 4,,10
	.p2align 3
.L44:
	testb	$1, %r8b
	je	.L43
	imulq	%rcx, %rdi
	movq	%rdi, %rax
	movq	%rdi, %rsi
	mulq	%r10
	movq	%rdx, %rdi
	shrq	$29, %rdi
	imulq	$998244353, %rdi, %rax
	movq	%rsi, %rdi
	subq	%rax, %rdi
.L43:
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	movq	%rcx, %rsi
	mulq	%r10
	shrq	$29, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rsi
	movq	%r8, %rax
	shrq	$63, %rax
	movq	%rsi, %rcx
	addq	%r8, %rax
	sarq	%rax
	movq	%rax, %r8
	subl	$1, %r9d
	jne	.L44
	movq	%r12, %r8
	leaq	(%r12,%r15,8), %r10
	movabsq	$155014655926305585, %r9
	.p2align 4,,10
	.p2align 3
.L45:
	movq	(%r8), %rsi
	addq	$8, %r8
	imulq	%rdi, %rsi
	movq	%rsi, %rax
	imulq	%r9
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rcx
	subq	%rcx, %rsi
	movq	%rsi, -8(%r8)
	cmpq	%r8, %r10
	jne	.L45
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r12, %rax
	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
	.p2align 4,,10
	.p2align 3
.L46:
	.cfi_restore_state
	movl	$1, %r15d
	movl	$1, %r9d
	movl	$1, %r13d
	jmp	.L35
	.cfi_endproc
.LFE53:
	.size	comb, .-comb
	.section	.rodata.str1.1
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%lld"
.LC3:
	.string	"%lld "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC1(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	a(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L64
	movq	%r13, %rbp
	xorl	%ebx, %ebx
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L65:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rax
	addq	$8, %rbp
	cmpq	%rbx, %rax
	jg	.L65
.L64:
	movl	4(%rsp), %ecx
	leaq	b(%rip), %r14
	testl	%ecx, %ecx
	jle	.L66
	movq	%r14, %rbp
	xorl	%ebx, %ebx
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L67:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	addq	$8, %rbp
	movq	%rax, %rcx
	cmpq	%rbx, %rax
	jg	.L67
.L66:
	movl	(%rsp), %esi
	movq	%r14, %rdx
	movq	%r13, %rdi
	call	comb
	movq	%rax, %r12
	movl	(%rsp), %eax
	addl	4(%rsp), %eax
	cmpl	$1, %eax
	jle	.L68
	xorl	%ebx, %ebx
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L69:
	movq	(%r12,%rbx,8), %rdx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	movl	4(%rsp), %eax
	addl	(%rsp), %eax
	subl	$1, %eax
	cltq
	cmpq	%rbx, %rax
	jg	.L69
.L68:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L77
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L77:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.size	main, .-main
	.globl	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 4194304
b:
	.zero	4194304
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 4194304
a:
	.zero	4194304
	.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>
#include<stdlib.h>
#include<string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
ll pom(ll a,ll n,int m){ll x=1;for(a%=m;n;n/=2)n&1?x=x*a%m:0,a=a*a%m;return x;}
#define invp(a,p)pom(a,p-2,p)

#define p 998244353

//非再帰fft
void fft(ll*a,int n,ll g){
	for(int block=n;block>=2;block/=2){
		ll gi=1;
		for(int i=0;i<block/2;i++){
			for(int start=0;start<n;start+=block){
				//a[start+i]とa[start+i+block/2]を合体
				int temp=a[start+i]-a[start+i+block/2];
				a[start+i]+=a[start+i+block/2];
				if(a[start+i]>=p)a[start+i]-=p;
				a[start+i+block/2]=(temp+p)*gi%p;
			}
			gi=gi*g%p;
		}
        g=g*g%p;
	}

	//bit reverse
	int i=0;
	rep(j,1,n-1){
		for(int k=n>>1;k>(i^=k);k>>=1);//rev(i)に2進の+1をやる気持ち
		if(j<i){int t=a[j];a[j]=a[i];a[i]=t;}
    }
}

ll*comb(ll*a,int n,ll*b,int m){
	//0詰め
	int t=1;
	while(n+m-1>t)t*=2;
	if(t>(1<<26)){puts("error");exit(0);}
	ll*c=(ll*)calloc(t,sizeof(ll));
	memcpy(c,a,n*sizeof(ll));
	ll*d=(ll*)calloc(t,sizeof(ll));
	memcpy(d,b,m*sizeof(ll));
	//fft
	ll g=pom(3,(p-1)/t,p);
	fft(c,t,g);
	fft(d,t,g);
	//掛け算
	rep(i,0,t)c[i]=c[i]*d[i]%p;
	free(d);
	//復元
	fft(c,t,invp(g,p));
	ll coef=invp(t,p);
	rep(i,0,t)c[i]=c[i]*coef%p;
	return c;
}

ll a[1<<19],b[1<<19];
int main(){
	int n,m;
	scanf("%d%d",&n,&m);
	rep(i,0,n)scanf("%lld",a+i);
	rep(i,0,m)scanf("%lld",b+i);
	ll*c=comb(a,n,b,m);
	rep(i,0,n+m-1)printf("%lld ",c[i]);
}

4 5
1 2 3 4
5 6 12 8 9
 1 1
10000000
10100000
 1 1
10001000
10100000
 4 5
1 2 3 4
5 6 7 4 9
 4 5
1 2 3 4
5 6 12 8 18
 1 1
10001000
10110000
 4 5
1 1 3 4
5 6 7 4 9
 4 5
1 2 3 4
5 0 12 8 18
 1 1
10001000
00110000
 4 5
1 2 3 4
5 0 22 8 18

5 16 39 70 85 90 59 36  631096519  748652989  5 16 34 56 62 58 43 36  5 16 39 70 94 108 86 72  934217689  5 11 28 49 58 49 43 36  5 10 27 52 70 108 86 72  44722994  5 10 37 72 100 148 86 72 
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>
#include<stdlib.h>
#include<string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
ll pom(ll a,ll n,int m){ll x=1;for(a%=m;n;n/=2)n&1?x=x*a%m:0,a=a*a%m;return x;}
#define invp(a,p)pom(a,p-2,p)

#define p 998244353

//非再帰fft
void fft(ll*a,int n,ll g){
	for(int block=n;block>=2;block/=2){
		ll gi=1;
		for(int i=0;i<block/2;i++){
			for(int start=0;start<n;start+=block){
				//a[start+i]とa[start+i+block/2]を合体
				int temp=a[start+i]-a[start+i+block/2];
				a[start+i]+=a[start+i+block/2];
				if(a[start+i]>=p)a[start+i]-=p;
				a[start+i+block/2]=(temp+p)*gi%p;
			}
			gi=gi*g%p;
		}
        g=g*g%p;
	}

	//bit reverse
	int i=0;
	rep(j,1,n-1){
		for(int k=n>>1;k>(i^=k);k>>=1);//rev(i)に2進の+1をやる気持ち
		if(j<i){int t=a[j];a[j]=a[i];a[i]=t;}
    }
}

ll*comb(ll*a,int n,ll*b,int m){
	//0詰め
	int t=1;
	while(n+m-1>t)t*=2;
	if(t>(1<<26)){puts("error");exit(0);}
	ll*c=(ll*)calloc(t,sizeof(ll));
	memcpy(c,a,n*sizeof(ll));
	ll*d=(ll*)calloc(t,sizeof(ll));
	memcpy(d,b,m*sizeof(ll));
	//fft
	ll g=pom(3,(p-1)/t,p);
	fft(c,t,g);
	fft(d,t,g);
	//掛け算
	rep(i,0,t)c[i]=c[i]*d[i]%p;
	free(d);
	//復元
	fft(c,t,invp(g,p));
	ll coef=invp(t,p);
	rep(i,0,t)c[i]=c[i]*coef%p;
	return c;
}

ll a[1<<19],b[1<<19];
int main(){
	int n,m;
	scanf("%d%d",&n,&m);
	rep(i,0,n)scanf("%lld",a+i);
	rep(i,0,m)scanf("%lld",b+i);
	ll*c=comb(a,n,b,m);
	rep(i,0,n+m-1)printf("%lld ",c[i]);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	pom
	.type	pom, @function
pom:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movq	$1, -8(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	jmp	.L2
.L5:
	movq	-32(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L4
	movq	-8(%rbp), %rax
	imulq	-24(%rbp), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -8(%rbp)
.L4:
	movq	-24(%rbp), %rax
	imulq	%rax, %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -32(%rbp)
.L2:
	cmpq	$0, -32(%rbp)
	jne	.L5
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	pom, .-pom
	.globl	fft
	.type	fft, @function
fft:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -56(%rbp)
	movl	%esi, -60(%rbp)
	movq	%rdx, -72(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -44(%rbp)
	jmp	.L8
.L14:
	movq	$1, -16(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L9
.L13:
	movl	$0, -36(%rbp)
	jmp	.L10
.L12:
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movl	%eax, %ecx
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%eax, %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%esi, %eax
	sarl	%eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movl	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, -20(%rbp)
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%eax, %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%esi, %eax
	sarl	%eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %esi
	movl	-40(%rbp), %eax
	addl	%esi, %eax
	cltq
	leaq	0(,%rax,8), %rsi
	movq	-56(%rbp), %rax
	addq	%rsi, %rax
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	$998244352, %rax
	jle	.L11
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %ecx
	movl	-40(%rbp), %eax
	addl	%ecx, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	subq	$998244353, %rdx
	movq	%rdx, (%rax)
.L11:
	movl	-20(%rbp), %eax
	addl	$998244353, %eax
	cltq
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%eax, %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%esi, %eax
	sarl	%eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	leaq	(%rdx,%rax), %rsi
	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
	movq	%rax, (%rsi)
	movl	-44(%rbp), %eax
	addl	%eax, -36(%rbp)
.L10:
	movl	-36(%rbp), %eax
	cmpl	-60(%rbp), %eax
	jl	.L12
	movq	-16(%rbp), %rax
	imulq	-72(%rbp), %rax
	movq	%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
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	addl	$1, -40(%rbp)
.L9:
	movl	-44(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -40(%rbp)
	jl	.L13
	movq	-72(%rbp), %rax
	imulq	%rax, %rax
	movq	%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
	movq	%rax, -72(%rbp)
	movq	-72(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -72(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -44(%rbp)
.L8:
	cmpl	$1, -44(%rbp)
	jg	.L14
	movl	$0, -32(%rbp)
	movq	$1, -8(%rbp)
	jmp	.L15
.L19:
	movl	-60(%rbp), %eax
	sarl	%eax
	movl	%eax, -28(%rbp)
	jmp	.L16
.L17:
	sarl	-28(%rbp)
.L16:
	movl	-28(%rbp), %eax
	xorl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L17
	movl	-32(%rbp), %eax
	cltq
	cmpq	%rax, -8(%rbp)
	jge	.L18
	movq	-8(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movl	%eax, -24(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	-8(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-56(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	movq	%rax, (%rdx)
.L18:
	addq	$1, -8(%rbp)
.L15:
	movl	-60(%rbp), %eax
	subl	$1, %eax
	cltq
	cmpq	%rax, -8(%rbp)
	jl	.L19
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fft, .-fft
	.section	.rodata
.LC0:
	.string	"error"
	.text
	.globl	comb
	.type	comb, @function
comb:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movq	%rdi, -72(%rbp)
	movl	%esi, -76(%rbp)
	movq	%rdx, -88(%rbp)
	movl	%ecx, -80(%rbp)
	movl	$1, -52(%rbp)
	jmp	.L21
.L22:
	sall	-52(%rbp)
.L21:
	movl	-76(%rbp), %edx
	movl	-80(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cmpl	%eax, -52(%rbp)
	jl	.L22
	cmpl	$67108864, -52(%rbp)
	jle	.L23
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %edi
	call	exit@PLT
.L23:
	movl	-52(%rbp), %eax
	cltq
	movl	$8, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -32(%rbp)
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-72(%rbp), %rcx
	movq	-32(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	-52(%rbp), %eax
	cltq
	movl	$8, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -24(%rbp)
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-88(%rbp), %rcx
	movq	-24(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	$998244352, %eax
	cltd
	idivl	-52(%rbp)
	cltq
	movl	$998244353, %edx
	movq	%rax, %rsi
	movl	$3, %edi
	call	pom
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rdx
	movl	-52(%rbp), %ecx
	movq	-32(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	fft
	movq	-16(%rbp), %rdx
	movl	-52(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	fft
	movq	$0, -48(%rbp)
	jmp	.L24
.L25:
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	leaq	(%rdx,%rax), %rsi
	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
	movq	%rax, (%rsi)
	addq	$1, -48(%rbp)
.L24:
	movl	-52(%rbp), %eax
	cltq
	cmpq	%rax, -48(%rbp)
	jl	.L25
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	-16(%rbp), %rax
	movl	$998244353, %edx
	movl	$998244351, %esi
	movq	%rax, %rdi
	call	pom
	movq	%rax, %rdx
	movl	-52(%rbp), %ecx
	movq	-32(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	fft
	movl	-52(%rbp), %eax
	cltq
	movl	$998244353, %edx
	movl	$998244351, %esi
	movq	%rax, %rdi
	call	pom
	movq	%rax, -8(%rbp)
	movq	$0, -40(%rbp)
	jmp	.L26
.L27:
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	imulq	-8(%rbp), %rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	leaq	(%rdx,%rax), %rsi
	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
	movq	%rax, (%rsi)
	addq	$1, -40(%rbp)
.L26:
	movl	-52(%rbp), %eax
	cltq
	cmpq	%rax, -40(%rbp)
	jl	.L27
	movq	-32(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	comb, .-comb
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 4194304
a:
	.zero	4194304
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 4194304
b:
	.zero	4194304
	.section	.rodata
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%lld"
.LC3:
	.string	"%lld "
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -40(%rbp)
	jmp	.L30
.L31:
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -40(%rbp)
.L30:
	movl	-48(%rbp), %eax
	cltq
	cmpq	%rax, -40(%rbp)
	jl	.L31
	movq	$0, -32(%rbp)
	jmp	.L32
.L33:
	movq	-32(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -32(%rbp)
.L32:
	movl	-44(%rbp), %eax
	cltq
	cmpq	%rax, -32(%rbp)
	jl	.L33
	movl	-44(%rbp), %edx
	movl	-48(%rbp), %eax
	movl	%edx, %ecx
	leaq	b(%rip), %rdx
	movl	%eax, %esi
	leaq	a(%rip), %rax
	movq	%rax, %rdi
	call	comb
	movq	%rax, -16(%rbp)
	movq	$0, -24(%rbp)
	jmp	.L34
.L35:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -24(%rbp)
.L34:
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	cmpq	%rax, -24(%rbp)
	jl	.L35
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	pom
	.type	pom, @function
pom:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movq	$1, -8(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	jmp	.L2
.L5:
	movq	-32(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L4
	movq	-8(%rbp), %rax
	imulq	-24(%rbp), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -8(%rbp)
.L4:
	movq	-24(%rbp), %rax
	imulq	%rax, %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -32(%rbp)
.L2:
	cmpq	$0, -32(%rbp)
	jne	.L5
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	pom, .-pom
	.globl	fft
	.type	fft, @function
fft:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -56(%rbp)
	movl	%esi, -60(%rbp)
	movq	%rdx, -72(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -44(%rbp)
	jmp	.L8
.L14:
	movq	$1, -16(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L9
.L13:
	movl	$0, -36(%rbp)
	jmp	.L10
.L12:
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movl	%eax, %ecx
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%eax, %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%esi, %eax
	sarl	%eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movl	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, -20(%rbp)
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%eax, %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%esi, %eax
	sarl	%eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %esi
	movl	-40(%rbp), %eax
	addl	%esi, %eax
	cltq
	leaq	0(,%rax,8), %rsi
	movq	-56(%rbp), %rax
	addq	%rsi, %rax
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	$998244352, %rax
	jle	.L11
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %ecx
	movl	-40(%rbp), %eax
	addl	%ecx, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	subq	$998244353, %rdx
	movq	%rdx, (%rax)
.L11:
	movl	-20(%rbp), %eax
	addl	$998244353, %eax
	cltq
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%eax, %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%esi, %eax
	sarl	%eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	leaq	(%rdx,%rax), %rsi
	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
	movq	%rax, (%rsi)
	movl	-44(%rbp), %eax
	addl	%eax, -36(%rbp)
.L10:
	movl	-36(%rbp), %eax
	cmpl	-60(%rbp), %eax
	jl	.L12
	movq	-16(%rbp), %rax
	imulq	-72(%rbp), %rax
	movq	%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
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	addl	$1, -40(%rbp)
.L9:
	movl	-44(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -40(%rbp)
	jl	.L13
	movq	-72(%rbp), %rax
	imulq	%rax, %rax
	movq	%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
	movq	%rax, -72(%rbp)
	movq	-72(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -72(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -44(%rbp)
.L8:
	cmpl	$1, -44(%rbp)
	jg	.L14
	movl	$0, -32(%rbp)
	movq	$1, -8(%rbp)
	jmp	.L15
.L19:
	movl	-60(%rbp), %eax
	sarl	%eax
	movl	%eax, -28(%rbp)
	jmp	.L16
.L17:
	sarl	-28(%rbp)
.L16:
	movl	-28(%rbp), %eax
	xorl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L17
	movl	-32(%rbp), %eax
	cltq
	cmpq	%rax, -8(%rbp)
	jge	.L18
	movq	-8(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movl	%eax, -24(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	-8(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-56(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	movq	%rax, (%rdx)
.L18:
	addq	$1, -8(%rbp)
.L15:
	movl	-60(%rbp), %eax
	subl	$1, %eax
	cltq
	cmpq	%rax, -8(%rbp)
	jl	.L19
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fft, .-fft
	.section	.rodata
.LC0:
	.string	"error"
	.text
	.globl	comb
	.type	comb, @function
comb:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movq	%rdi, -72(%rbp)
	movl	%esi, -76(%rbp)
	movq	%rdx, -88(%rbp)
	movl	%ecx, -80(%rbp)
	movl	$1, -52(%rbp)
	jmp	.L21
.L22:
	sall	-52(%rbp)
.L21:
	movl	-76(%rbp), %edx
	movl	-80(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cmpl	%eax, -52(%rbp)
	jl	.L22
	cmpl	$67108864, -52(%rbp)
	jle	.L23
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %edi
	call	exit@PLT
.L23:
	movl	-52(%rbp), %eax
	cltq
	movl	$8, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -32(%rbp)
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-72(%rbp), %rcx
	movq	-32(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	-52(%rbp), %eax
	cltq
	movl	$8, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -24(%rbp)
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-88(%rbp), %rcx
	movq	-24(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	$998244352, %eax
	cltd
	idivl	-52(%rbp)
	cltq
	movl	$998244353, %edx
	movq	%rax, %rsi
	movl	$3, %edi
	call	pom
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rdx
	movl	-52(%rbp), %ecx
	movq	-32(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	fft
	movq	-16(%rbp), %rdx
	movl	-52(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	fft
	movq	$0, -48(%rbp)
	jmp	.L24
.L25:
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	leaq	(%rdx,%rax), %rsi
	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
	movq	%rax, (%rsi)
	addq	$1, -48(%rbp)
.L24:
	movl	-52(%rbp), %eax
	cltq
	cmpq	%rax, -48(%rbp)
	jl	.L25
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	-16(%rbp), %rax
	movl	$998244353, %edx
	movl	$998244351, %esi
	movq	%rax, %rdi
	call	pom
	movq	%rax, %rdx
	movl	-52(%rbp), %ecx
	movq	-32(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	fft
	movl	-52(%rbp), %eax
	cltq
	movl	$998244353, %edx
	movl	$998244351, %esi
	movq	%rax, %rdi
	call	pom
	movq	%rax, -8(%rbp)
	movq	$0, -40(%rbp)
	jmp	.L26
.L27:
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	imulq	-8(%rbp), %rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	leaq	(%rdx,%rax), %rsi
	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
	movq	%rax, (%rsi)
	addq	$1, -40(%rbp)
.L26:
	movl	-52(%rbp), %eax
	cltq
	cmpq	%rax, -40(%rbp)
	jl	.L27
	movq	-32(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	comb, .-comb
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 4194304
a:
	.zero	4194304
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 4194304
b:
	.zero	4194304
	.section	.rodata
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%lld"
.LC3:
	.string	"%lld "
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -40(%rbp)
	jmp	.L30
.L31:
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -40(%rbp)
.L30:
	movl	-48(%rbp), %eax
	cltq
	cmpq	%rax, -40(%rbp)
	jl	.L31
	movq	$0, -32(%rbp)
	jmp	.L32
.L33:
	movq	-32(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -32(%rbp)
.L32:
	movl	-44(%rbp), %eax
	cltq
	cmpq	%rax, -32(%rbp)
	jl	.L33
	movl	-44(%rbp), %edx
	movl	-48(%rbp), %eax
	movl	%edx, %ecx
	leaq	b(%rip), %rdx
	movl	%eax, %esi
	leaq	a(%rip), %rax
	movq	%rax, %rdi
	call	comb
	movq	%rax, -16(%rbp)
	movq	$0, -24(%rbp)
	jmp	.L34
.L35:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -24(%rbp)
.L34:
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	cmpq	%rax, -24(%rbp)
	jl	.L35
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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:
