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

```c
#include <float.h>
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#ifdef __cplusplus
#include <bits/stdc++.h>
#endif

#define getchar getchar_unlocked
#define putchar putchar_unlocked
int32_t nextint(void){ char c=getchar_unlocked(); while(c!='-'&&(c<'0'||'9'<c)) c=getchar_unlocked(); bool s=false; if(c=='-'){s=true;c=getchar_unlocked();} uint32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar_unlocked(); } return s?-x:x; }
int64_t nextlong(void){ char c=getchar_unlocked(); while(c!='-'&&(c<'0'||'9'<c)) c=getchar_unlocked(); int s=0; if(c=='-'){s=1;c=getchar_unlocked();} uint64_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar_unlocked(); } return s?-x:x; }
uint32_t nextstr(char *s){ char c=getchar_unlocked(); while(c==' '||c=='\n') c=getchar_unlocked(); uint32_t len=0; while(c!=' '&&c!='\n'){ *s++=c; len++; c=getchar_unlocked(); } *s='\0'; return len; }

#define P 998244353

int dif2(int a, int b){return a<b?b-a:a-b;}

char s[301];
int a[602];
int b[602];
int d[602][602][804];
int main(void){
	int n=nextstr(s);
	int K=nextint();
	int m=0;
	for(int i=0; i<n; i++){
		if(s[i]=='0'){
			m++;
		}else{
			a[m]++;
		}
	}
	m++;
	b[m-1]=a[m-1];
	for(int i=m-2; i>=0; i--){
		b[i]=b[i+1]+a[i];
	}
	d[m][0][0]=1;
	for(int i=m-1; i>=0; i--){
		for(int j=0; j<=b[i]; j++){
			for(int k=0; k<=b[i]*2; k++){
				for(int l=0; l<=j; l++){
					int p=k-dif2(a[i],l);
					if(p>=0){
						d[i][j][k]+=d[i+1][j-l][p];
						d[i][j][k]%=P;
					}
				}
			}
		}
	}
	long ans=0;
	for(int k=K<b[0]?K*2:b[0]*2; k>=0; k--){
		ans+=d[0][n-m+1][k];
	}
	ans%=P;
	printf("%ld\n", ans);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	nextint
	.type	nextint, @function
nextint:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
	jmp	.L2
.L4:
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L2:
	cmpb	$45, -6(%rbp)
	je	.L3
	cmpb	$47, -6(%rbp)
	jle	.L4
	cmpb	$57, -6(%rbp)
	jg	.L4
.L3:
	movb	$0, -5(%rbp)
	cmpb	$45, -6(%rbp)
	jne	.L5
	movb	$1, -5(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L5:
	movl	$0, -4(%rbp)
	jmp	.L6
.L8:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-6(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L6:
	cmpb	$47, -6(%rbp)
	jle	.L7
	cmpb	$57, -6(%rbp)
	jle	.L8
.L7:
	cmpb	$0, -5(%rbp)
	je	.L9
	movl	-4(%rbp), %eax
	negl	%eax
	jmp	.L11
.L9:
	movl	-4(%rbp), %eax
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	nextint, .-nextint
	.globl	nextlong
	.type	nextlong, @function
nextlong:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
	jmp	.L13
.L15:
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L13:
	cmpb	$45, -13(%rbp)
	je	.L14
	cmpb	$47, -13(%rbp)
	jle	.L15
	cmpb	$57, -13(%rbp)
	jg	.L15
.L14:
	movl	$0, -12(%rbp)
	cmpb	$45, -13(%rbp)
	jne	.L16
	movl	$1, -12(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L16:
	movq	$0, -8(%rbp)
	jmp	.L17
.L19:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movsbq	-13(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	%rax, -8(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L17:
	cmpb	$47, -13(%rbp)
	jle	.L18
	cmpb	$57, -13(%rbp)
	jle	.L19
.L18:
	cmpl	$0, -12(%rbp)
	je	.L20
	movq	-8(%rbp), %rax
	negq	%rax
	jmp	.L22
.L20:
	movq	-8(%rbp), %rax
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	nextlong, .-nextlong
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
	jmp	.L24
.L25:
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L24:
	cmpb	$32, -5(%rbp)
	je	.L25
	cmpb	$10, -5(%rbp)
	je	.L25
	movl	$0, -4(%rbp)
	jmp	.L26
.L28:
	movq	-24(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -24(%rbp)
	movzbl	-5(%rbp), %edx
	movb	%dl, (%rax)
	addl	$1, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L26:
	cmpb	$32, -5(%rbp)
	je	.L27
	cmpb	$10, -5(%rbp)
	jne	.L28
.L27:
	movq	-24(%rbp), %rax
	movb	$0, (%rax)
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	nextstr, .-nextstr
	.globl	dif2
	.type	dif2, @function
dif2:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L31
	movl	-8(%rbp), %eax
	subl	-4(%rbp), %eax
	jmp	.L33
.L31:
	movl	-4(%rbp), %eax
	subl	-8(%rbp), %eax
.L33:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dif2, .-dif2
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 301
s:
	.zero	301
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 2408
a:
	.zero	2408
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 2408
b:
	.zero	2408
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 1165491264
d:
	.zero	1165491264
	.section	.rodata
.LC0:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	nextstr
	movl	%eax, -20(%rbp)
	call	nextint
	movl	%eax, -16(%rbp)
	movl	$0, -52(%rbp)
	movl	$0, -48(%rbp)
	jmp	.L35
.L38:
	movl	-48(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$48, %al
	jne	.L36
	addl	$1, -52(%rbp)
	jmp	.L37
.L36:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L37:
	addl	$1, -48(%rbp)
.L35:
	movl	-48(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L38
	addl	$1, -52(%rbp)
	movl	-52(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-52(%rbp), %eax
	leal	-1(%rax), %ecx
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	b(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-52(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -44(%rbp)
	jmp	.L39
.L40:
	movl	-44(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	subl	$1, -44(%rbp)
.L39:
	cmpl	$0, -44(%rbp)
	jns	.L40
	movl	-52(%rbp), %eax
	cltq
	imulq	$1936032, %rax, %rax
	leaq	d(%rip), %rdx
	movl	$1, (%rax,%rdx)
	movl	-52(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -40(%rbp)
	jmp	.L41
.L49:
	movl	$0, -36(%rbp)
	jmp	.L42
.L48:
	movl	$0, -32(%rbp)
	jmp	.L43
.L47:
	movl	$0, -28(%rbp)
	jmp	.L44
.L46:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-28(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	dif2
	movl	%eax, %edx
	movl	-32(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, -12(%rbp)
	cmpl	$0, -12(%rbp)
	js	.L45
	movl	-32(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	imulq	$484008, %rdx, %rdx
	imulq	$804, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-40(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-36(%rbp), %eax
	subl	-28(%rbp), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdi
	movslq	%ecx, %rdx
	cltq
	imulq	$484008, %rdx, %rdx
	imulq	$804, %rax, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rsi,%rax), %ecx
	movl	-32(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	imulq	$484008, %rdx, %rdx
	imulq	$804, %rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	imulq	$484008, %rdx, %rdx
	imulq	$804, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$288737297, %rax, %rax
	shrq	$32, %rax
	sarl	$26, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$998244353, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-32(%rbp), %edx
	movslq	%edx, %rsi
	movl	-40(%rbp), %edx
	movslq	%edx, %rcx
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$484008, %rcx, %rcx
	imulq	$804, %rdx, %rdx
	addq	%rcx, %rdx
	addq	%rsi, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	d(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L45:
	addl	$1, -28(%rbp)
.L44:
	movl	-28(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jle	.L46
	addl	$1, -32(%rbp)
.L43:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %eax
	cmpl	%eax, -32(%rbp)
	jle	.L47
	addl	$1, -36(%rbp)
.L42:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -36(%rbp)
	jle	.L48
	subl	$1, -40(%rbp)
.L41:
	cmpl	$0, -40(%rbp)
	jns	.L49
	movq	$0, -8(%rbp)
	movl	b(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jge	.L50
	movl	-16(%rbp), %eax
	addl	%eax, %eax
	jmp	.L51
.L50:
	movl	b(%rip), %eax
	addl	%eax, %eax
.L51:
	movl	%eax, -24(%rbp)
	jmp	.L52
.L53:
	movl	-20(%rbp), %eax
	subl	-52(%rbp), %eax
	leal	1(%rax), %edx
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$804, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	addq	%rax, -8(%rbp)
	subl	$1, -24(%rbp)
.L52:
	cmpl	$0, -24(%rbp)
	jns	.L53
	movq	-8(%rbp), %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
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	nextint
	.type	nextint, @function
nextint:
.LFB63:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L44
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	movl	%eax, %ecx
.L3:
	movl	%eax, %edx
	subl	$48, %ecx
	cmpb	$45, %al
	je	.L9
	cmpb	$9, %cl
	jbe	.L4
.L41:
	movq	stdin(%rip), %rdi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %ecx
	cmpb	$45, %dl
	je	.L9
	cmpb	$9, %cl
	jbe	.L4
.L8:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L5
	call	__uflow@PLT
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	cmpb	$9, %cl
	jbe	.L4
	cmpb	$45, %al
	jne	.L41
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	$45, %dl
	je	.L9
	xorl	%r12d, %r12d
	cmpb	$9, %cl
	ja	.L22
.L10:
	xorl	%ebx, %ebx
.L42:
	movq	stdin(%rip), %rdi
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L15:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %eax
	cmpb	$9, %al
	ja	.L17
.L18:
	leal	(%rbx,%rbx,4), %eax
	movsbl	%dl, %edx
	leal	(%rdx,%rax,2), %ebp
	movq	8(%rdi), %rax
	leal	-48(%rbp), %ebx
	cmpq	16(%rdi), %rax
	jb	.L15
	call	__uflow@PLT
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L42
.L17:
	movl	$48, %eax
	subl	%ebp, %eax
	testb	%r12b, %r12b
	cmove	%ebx, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L45
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	movl	%edx, %eax
.L13:
	subl	$48, %eax
	cmpb	$9, %al
	ja	.L22
	movl	$1, %r12d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L22:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L44:
	.cfi_restore_state
	call	__uflow@PLT
	movl	%eax, %ecx
	jmp	.L3
.L45:
	call	__uflow@PLT
	movl	%eax, %edx
	jmp	.L13
	.cfi_endproc
.LFE63:
	.size	nextint, .-nextint
	.p2align 4
	.globl	nextlong
	.type	nextlong, @function
nextlong:
.LFB64:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L88
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	movl	%eax, %ecx
.L48:
	movl	%eax, %edx
	subl	$48, %ecx
	cmpb	$45, %al
	je	.L54
	cmpb	$9, %cl
	jbe	.L49
.L86:
	movq	stdin(%rip), %rdi
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L50:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %ecx
	cmpb	$45, %dl
	je	.L54
	cmpb	$9, %cl
	jbe	.L49
.L53:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L50
	call	__uflow@PLT
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	cmpb	$9, %cl
	jbe	.L49
	cmpb	$45, %al
	jne	.L86
	.p2align 4,,10
	.p2align 3
.L49:
	cmpb	$45, %dl
	je	.L54
	xorl	%r12d, %r12d
	cmpb	$9, %cl
	ja	.L67
.L55:
	xorl	%ebx, %ebx
.L87:
	movq	stdin(%rip), %rdi
	jmp	.L63
	.p2align 4,,10
	.p2align 3
.L60:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %eax
	cmpb	$9, %al
	ja	.L62
.L63:
	leaq	(%rbx,%rbx,4), %rax
	movsbq	%dl, %rdx
	leaq	(%rdx,%rax,2), %rbp
	movq	8(%rdi), %rax
	leaq	-48(%rbp), %rbx
	cmpq	16(%rdi), %rax
	jb	.L60
	call	__uflow@PLT
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L87
.L62:
	movl	$48, %eax
	subq	%rbp, %rax
	testl	%r12d, %r12d
	cmove	%rbx, %rax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L54:
	.cfi_restore_state
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L89
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	movl	%edx, %eax
.L58:
	subl	$48, %eax
	cmpb	$9, %al
	ja	.L67
	movl	$1, %r12d
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L67:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L88:
	.cfi_restore_state
	call	__uflow@PLT
	movl	%eax, %ecx
	jmp	.L48
.L89:
	call	__uflow@PLT
	movl	%eax, %edx
	jmp	.L58
	.cfi_endproc
.LFE64:
	.size	nextlong, .-nextlong
	.p2align 4
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB65:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L123
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L122:
	movl	%eax, %edx
	cmpb	$10, %al
	je	.L94
	cmpb	$32, %al
	jne	.L93
.L94:
	movq	stdin(%rip), %rdi
	.p2align 4,,10
	.p2align 3
.L98:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L123
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	cmpb	$32, %dl
	je	.L98
	cmpb	$10, %dl
	je	.L98
.L93:
	xorl	%r12d, %r12d
	jmp	.L104
	.p2align 4,,10
	.p2align 3
.L99:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	cmpb	$32, %dl
	je	.L102
	cmpb	$10, %dl
	je	.L102
.L104:
	movb	%dl, (%rbx)
	movq	stdin(%rip), %rdi
	addq	$1, %rbx
	addl	$1, %r12d
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L99
	call	__uflow@PLT
	movl	%eax, %edx
	cmpb	$10, %al
	je	.L102
	cmpb	$32, %al
	jne	.L104
.L102:
	movb	$0, (%rbx)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L123:
	.cfi_restore_state
	call	__uflow@PLT
	jmp	.L122
	.cfi_endproc
.LFE65:
	.size	nextstr, .-nextstr
	.p2align 4
	.globl	dif2
	.type	dif2, @function
dif2:
.LFB66:
	.cfi_startproc
	endbr64
	movl	%esi, %edx
	movl	%edi, %eax
	subl	%edi, %edx
	subl	%esi, %eax
	cmpl	%esi, %edi
	cmovl	%edx, %eax
	ret
	.cfi_endproc
.LFE66:
	.size	dif2, .-dif2
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB67:
	.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	s(%rip), %rbx
	movq	%rbx, %rdi
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	call	nextstr
	movl	%eax, 48(%rsp)
	movl	%eax, %r15d
	call	nextint
	movl	%eax, 52(%rsp)
	testl	%r15d, %r15d
	jle	.L128
	leaq	1(%rbx), %rcx
	leal	-1(%r15), %edx
	movq	%rbx, %rax
	addq	%rcx, %rdx
	leaq	a(%rip), %r8
	xorl	%ecx, %ecx
	jmp	.L131
.L129:
	movslq	%ecx, %rsi
	addq	$1, %rax
	addl	$1, (%r8,%rsi,4)
	cmpq	%rdx, %rax
	je	.L170
.L131:
	cmpb	$48, (%rax)
	jne	.L129
	addq	$1, %rax
	addl	$1, %ecx
	cmpq	%rdx, %rax
	jne	.L131
.L170:
	leaq	b(%rip), %rax
	leal	1(%rcx), %edi
	movq	%rax, %rbx
	movq	%rax, 24(%rsp)
	movslq	%ecx, %rax
	leal	-1(%rcx), %edx
	movl	(%r8,%rax,4), %esi
	movl	%edi, 32(%rsp)
	movl	%esi, (%rbx,%rax,4)
	testl	%ecx, %ecx
	je	.L154
	movl	%esi, %ecx
	movslq	%edx, %rdx
.L133:
	movq	24(%rsp), %rbx
	addl	(%r8,%rdx,4), %ecx
	movl	%ecx, (%rbx,%rdx,4)
	subq	$1, %rdx
	cmpl	$-1, %edx
	jne	.L133
.L132:
	movslq	32(%rsp), %rbx
	movq	%rax, 16(%rsp)
	imulq	$1936032, %rax, %rax
	leaq	d(%rip), %r15
	movl	%edi, 36(%rsp)
	imulq	$1936032, %rbx, %rdx
	movq	%rbx, 56(%rsp)
	addq	%r15, %rax
	movq	%rax, 40(%rsp)
	movl	$1, (%r15,%rdx)
.L134:
	movq	24(%rsp), %rax
	movq	16(%rsp), %rbx
	movl	(%rax,%rbx,4), %eax
	testl	%eax, %eax
	js	.L143
	leal	(%rax,%rax), %r14d
	leaq	a(%rip), %rsi
	addl	$1, %eax
	xorl	%r9d, %r9d
	movl	(%rsi,%rbx,4), %r12d
	movslq	36(%rsp), %r13
	movl	%eax, 8(%rsp)
	movq	40(%rsp), %rax
	imulq	$484008, %r13, %r13
	subl	%r12d, %r14d
	movq	%rax, (%rsp)
	movl	%r12d, %eax
	negl	%eax
	movl	%eax, 12(%rsp)
	movq	%r13, %rbp
	.p2align 4,,10
	.p2align 3
.L145:
	movl	12(%rsp), %r10d
	cmpl	%r9d, %r12d
	movl	%r9d, %ebx
	movq	(%rsp), %r8
	cmovle	%r12d, %ebx
	leal	(%r10,%r12), %esi
	testl	%r12d, %r12d
	js	.L155
	.p2align 4,,10
	.p2align 3
.L172:
	movslq	%r10d, %rax
	addq	%r13, %rax
	leaq	(%r15,%rax,4), %rdi
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L138:
	movl	%eax, %ecx
	addl	%r10d, %ecx
	js	.L136
	movl	(%rdi), %ecx
	addl	(%r8), %ecx
	movslq	%ecx, %rdx
	movl	%ecx, %r11d
	imulq	$288737297, %rdx, %rdx
	sarl	$31, %r11d
	sarq	$58, %rdx
	subl	%r11d, %edx
	imull	$998244353, %edx, %edx
	subl	%edx, %ecx
	movl	%ecx, (%r8)
.L136:
	addl	$1, %eax
	subq	$3212, %rdi
	cmpl	%eax, %ebx
	jge	.L138
	cmpl	%r9d, %eax
	jg	.L141
.L135:
	movl	%eax, %edx
	subl	%r12d, %edx
	subl	%edx, %esi
	.p2align 4,,10
	.p2align 3
.L140:
	testl	%esi, %esi
	js	.L139
	movl	%r9d, %edx
	movslq	%esi, %rcx
	subl	%eax, %edx
	movslq	%edx, %rdx
	imulq	$804, %rdx, %rdx
	addq	%rbp, %rdx
	addq	%rcx, %rdx
	movl	(%r8), %ecx
	addl	(%r15,%rdx,4), %ecx
	movslq	%ecx, %rdx
	movl	%ecx, %edi
	imulq	$288737297, %rdx, %rdx
	sarl	$31, %edi
	sarq	$58, %rdx
	subl	%edi, %edx
	imull	$998244353, %edx, %edx
	subl	%edx, %ecx
	movl	%ecx, (%r8)
.L139:
	addl	$1, %eax
	subl	$1, %esi
	cmpl	%eax, %r9d
	jge	.L140
.L141:
	addq	$4, %r8
	leal	1(%r10), %eax
	cmpl	%r14d, %r10d
	je	.L171
	movl	%eax, %r10d
	leal	(%r10,%r12), %esi
	testl	%r12d, %r12d
	jns	.L172
.L155:
	xorl	%eax, %eax
	jmp	.L135
	.p2align 4,,10
	.p2align 3
.L171:
	addq	$3216, (%rsp)
	addl	$1, %r9d
	addq	$804, %r13
	cmpl	8(%rsp), %r9d
	jne	.L145
.L143:
	subq	$1, 16(%rsp)
	movq	16(%rsp), %rax
	subl	$1, 36(%rsp)
	subq	$1936032, 40(%rsp)
	cmpl	$-1, %eax
	jne	.L134
	movl	b(%rip), %edx
	movl	52(%rsp), %ebx
	leal	(%rdx,%rdx), %eax
	leal	(%rbx,%rbx), %ecx
	cmpl	%ebx, %edx
	cmovg	%ecx, %eax
	xorl	%ecx, %ecx
	testl	%eax, %eax
	js	.L148
	movl	48(%rsp), %ebx
	leal	1(%rax), %esi
	movl	%ebx, %edx
	subl	32(%rsp), %edx
	addl	$1, %edx
	cmpl	$2, %eax
	jle	.L157
	movslq	%ebx, %rcx
	subq	56(%rsp), %rcx
	pxor	%xmm0, %xmm0
	movslq	%eax, %rdi
	addq	$1, %rcx
	pxor	%xmm4, %xmm4
	imulq	$804, %rcx, %rcx
	addq	%rdi, %rcx
	movl	%esi, %edi
	shrl	$2, %edi
	leaq	-12(%r15,%rcx,4), %rcx
	subl	$1, %edi
	movq	%rcx, %r8
	salq	$4, %rdi
	subq	%rdi, %r8
.L151:
	movdqu	(%rcx), %xmm5
	movdqa	%xmm4, %xmm3
	movq	%rcx, %rdi
	subq	$16, %rcx
	pshufd	$27, %xmm5, %xmm2
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%r8, %rdi
	jne	.L151
	movdqa	%xmm0, %xmm1
	movl	%esi, %edi
	psrldq	$8, %xmm1
	andl	$-4, %edi
	paddq	%xmm1, %xmm0
	subl	%edi, %eax
	movq	%xmm0, %rcx
	cmpl	%edi, %esi
	je	.L148
.L150:
	movslq	%edx, %rdx
	movslq	%eax, %rsi
	imulq	$804, %rdx, %rdx
	addq	%rdx, %rsi
	movslq	(%r15,%rsi,4), %rsi
	addq	%rsi, %rcx
	leal	-1(%rax), %esi
	testl	%eax, %eax
	je	.L148
	movslq	%esi, %rsi
	addq	%rdx, %rsi
	movslq	(%r15,%rsi,4), %rsi
	addq	%rsi, %rcx
	leal	-2(%rax), %esi
	subl	$1, %eax
	je	.L148
	movslq	%esi, %rax
	addq	%rax, %rdx
	movslq	(%r15,%rdx,4), %rax
	addq	%rax, %rcx
.L148:
	movq	%rcx, %rax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	movabsq	$155014655926305585, %rdx
	imulq	%rdx
	movq	%rdx, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$23, %rax
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	movq	%rcx, %rdx
	call	__printf_chk@PLT
	addq	$72, %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
.L128:
	.cfi_restore_state
	movl	a(%rip), %eax
	leaq	b(%rip), %rbx
	movl	$1, %edi
	movl	$1, 32(%rsp)
	movq	%rbx, 24(%rsp)
	movl	%eax, b(%rip)
	xorl	%eax, %eax
	jmp	.L132
.L157:
	xorl	%ecx, %ecx
	jmp	.L150
.L154:
	movl	$1, %edi
	xorl	%eax, %eax
	jmp	.L132
	.cfi_endproc
.LFE67:
	.size	main, .-main
	.globl	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 1165491264
d:
	.zero	1165491264
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 2408
b:
	.zero	2408
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 2408
a:
	.zero	2408
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 301
s:
	.zero	301
	.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	nextint
	.type	nextint, @function
nextint:
.LFB63:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L44
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	movl	%eax, %ecx
.L3:
	movl	%eax, %edx
	subl	$48, %ecx
	cmpb	$45, %al
	je	.L9
	cmpb	$9, %cl
	jbe	.L4
.L41:
	movq	stdin(%rip), %rdi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %ecx
	cmpb	$45, %dl
	je	.L9
	cmpb	$9, %cl
	jbe	.L4
.L8:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L5
	call	__uflow@PLT
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	cmpb	$9, %cl
	jbe	.L4
	cmpb	$45, %al
	jne	.L41
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	$45, %dl
	je	.L9
	xorl	%r12d, %r12d
	cmpb	$9, %cl
	ja	.L22
.L10:
	xorl	%ebx, %ebx
.L42:
	movq	stdin(%rip), %rdi
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L15:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %eax
	cmpb	$9, %al
	ja	.L17
.L18:
	leal	(%rbx,%rbx,4), %eax
	movsbl	%dl, %edx
	leal	(%rdx,%rax,2), %ebp
	movq	8(%rdi), %rax
	leal	-48(%rbp), %ebx
	cmpq	16(%rdi), %rax
	jb	.L15
	call	__uflow@PLT
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L42
.L17:
	movl	$48, %eax
	subl	%ebp, %eax
	testb	%r12b, %r12b
	cmove	%ebx, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L45
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	movl	%edx, %eax
.L13:
	subl	$48, %eax
	cmpb	$9, %al
	ja	.L22
	movl	$1, %r12d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L22:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L44:
	.cfi_restore_state
	call	__uflow@PLT
	movl	%eax, %ecx
	jmp	.L3
.L45:
	call	__uflow@PLT
	movl	%eax, %edx
	jmp	.L13
	.cfi_endproc
.LFE63:
	.size	nextint, .-nextint
	.p2align 4
	.globl	nextlong
	.type	nextlong, @function
nextlong:
.LFB64:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L88
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	movl	%eax, %ecx
.L48:
	movl	%eax, %edx
	subl	$48, %ecx
	cmpb	$45, %al
	je	.L54
	cmpb	$9, %cl
	jbe	.L49
.L86:
	movq	stdin(%rip), %rdi
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L50:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %ecx
	cmpb	$45, %dl
	je	.L54
	cmpb	$9, %cl
	jbe	.L49
.L53:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L50
	call	__uflow@PLT
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	cmpb	$9, %cl
	jbe	.L49
	cmpb	$45, %al
	jne	.L86
	.p2align 4,,10
	.p2align 3
.L49:
	cmpb	$45, %dl
	je	.L54
	xorl	%r12d, %r12d
	cmpb	$9, %cl
	ja	.L67
.L55:
	xorl	%ebx, %ebx
.L87:
	movq	stdin(%rip), %rdi
	jmp	.L63
	.p2align 4,,10
	.p2align 3
.L60:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %eax
	cmpb	$9, %al
	ja	.L62
.L63:
	leaq	(%rbx,%rbx,4), %rax
	movsbq	%dl, %rdx
	leaq	(%rdx,%rax,2), %rbp
	movq	8(%rdi), %rax
	leaq	-48(%rbp), %rbx
	cmpq	16(%rdi), %rax
	jb	.L60
	call	__uflow@PLT
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L87
.L62:
	movl	$48, %eax
	subq	%rbp, %rax
	testl	%r12d, %r12d
	cmove	%rbx, %rax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L54:
	.cfi_restore_state
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L89
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	movl	%edx, %eax
.L58:
	subl	$48, %eax
	cmpb	$9, %al
	ja	.L67
	movl	$1, %r12d
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L67:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L88:
	.cfi_restore_state
	call	__uflow@PLT
	movl	%eax, %ecx
	jmp	.L48
.L89:
	call	__uflow@PLT
	movl	%eax, %edx
	jmp	.L58
	.cfi_endproc
.LFE64:
	.size	nextlong, .-nextlong
	.p2align 4
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB65:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L123
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L122:
	movl	%eax, %edx
	cmpb	$10, %al
	je	.L94
	cmpb	$32, %al
	jne	.L93
.L94:
	movq	stdin(%rip), %rdi
	.p2align 4,,10
	.p2align 3
.L98:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L123
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	cmpb	$32, %dl
	je	.L98
	cmpb	$10, %dl
	je	.L98
.L93:
	xorl	%r12d, %r12d
	jmp	.L104
	.p2align 4,,10
	.p2align 3
.L99:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	cmpb	$32, %dl
	je	.L102
	cmpb	$10, %dl
	je	.L102
.L104:
	movb	%dl, (%rbx)
	movq	stdin(%rip), %rdi
	addq	$1, %rbx
	addl	$1, %r12d
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L99
	call	__uflow@PLT
	movl	%eax, %edx
	cmpb	$10, %al
	je	.L102
	cmpb	$32, %al
	jne	.L104
.L102:
	movb	$0, (%rbx)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L123:
	.cfi_restore_state
	call	__uflow@PLT
	jmp	.L122
	.cfi_endproc
.LFE65:
	.size	nextstr, .-nextstr
	.p2align 4
	.globl	dif2
	.type	dif2, @function
dif2:
.LFB66:
	.cfi_startproc
	endbr64
	movl	%esi, %edx
	movl	%edi, %eax
	subl	%edi, %edx
	subl	%esi, %eax
	cmpl	%esi, %edi
	cmovl	%edx, %eax
	ret
	.cfi_endproc
.LFE66:
	.size	dif2, .-dif2
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB67:
	.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	s(%rip), %rbx
	movq	%rbx, %rdi
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	call	nextstr
	movl	%eax, 48(%rsp)
	movl	%eax, %r15d
	call	nextint
	movl	%eax, 52(%rsp)
	testl	%r15d, %r15d
	jle	.L128
	leaq	1(%rbx), %rcx
	leal	-1(%r15), %edx
	movq	%rbx, %rax
	addq	%rcx, %rdx
	leaq	a(%rip), %r8
	xorl	%ecx, %ecx
	jmp	.L131
.L129:
	movslq	%ecx, %rsi
	addq	$1, %rax
	addl	$1, (%r8,%rsi,4)
	cmpq	%rdx, %rax
	je	.L170
.L131:
	cmpb	$48, (%rax)
	jne	.L129
	addq	$1, %rax
	addl	$1, %ecx
	cmpq	%rdx, %rax
	jne	.L131
.L170:
	leaq	b(%rip), %rax
	leal	1(%rcx), %edi
	movq	%rax, %rbx
	movq	%rax, 24(%rsp)
	movslq	%ecx, %rax
	leal	-1(%rcx), %edx
	movl	(%r8,%rax,4), %esi
	movl	%edi, 32(%rsp)
	movl	%esi, (%rbx,%rax,4)
	testl	%ecx, %ecx
	je	.L154
	movl	%esi, %ecx
	movslq	%edx, %rdx
.L133:
	movq	24(%rsp), %rbx
	addl	(%r8,%rdx,4), %ecx
	movl	%ecx, (%rbx,%rdx,4)
	subq	$1, %rdx
	cmpl	$-1, %edx
	jne	.L133
.L132:
	movslq	32(%rsp), %rbx
	movq	%rax, 16(%rsp)
	imulq	$1936032, %rax, %rax
	leaq	d(%rip), %r15
	movl	%edi, 36(%rsp)
	imulq	$1936032, %rbx, %rdx
	movq	%rbx, 56(%rsp)
	addq	%r15, %rax
	movq	%rax, 40(%rsp)
	movl	$1, (%r15,%rdx)
.L134:
	movq	24(%rsp), %rax
	movq	16(%rsp), %rbx
	movl	(%rax,%rbx,4), %eax
	testl	%eax, %eax
	js	.L143
	leal	(%rax,%rax), %r14d
	leaq	a(%rip), %rsi
	addl	$1, %eax
	xorl	%r9d, %r9d
	movl	(%rsi,%rbx,4), %r12d
	movslq	36(%rsp), %r13
	movl	%eax, 8(%rsp)
	movq	40(%rsp), %rax
	imulq	$484008, %r13, %r13
	subl	%r12d, %r14d
	movq	%rax, (%rsp)
	movl	%r12d, %eax
	negl	%eax
	movl	%eax, 12(%rsp)
	movq	%r13, %rbp
	.p2align 4,,10
	.p2align 3
.L145:
	movl	12(%rsp), %r10d
	cmpl	%r9d, %r12d
	movl	%r9d, %ebx
	movq	(%rsp), %r8
	cmovle	%r12d, %ebx
	leal	(%r10,%r12), %esi
	testl	%r12d, %r12d
	js	.L155
	.p2align 4,,10
	.p2align 3
.L172:
	movslq	%r10d, %rax
	addq	%r13, %rax
	leaq	(%r15,%rax,4), %rdi
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L138:
	movl	%eax, %ecx
	addl	%r10d, %ecx
	js	.L136
	movl	(%rdi), %ecx
	addl	(%r8), %ecx
	movslq	%ecx, %rdx
	movl	%ecx, %r11d
	imulq	$288737297, %rdx, %rdx
	sarl	$31, %r11d
	sarq	$58, %rdx
	subl	%r11d, %edx
	imull	$998244353, %edx, %edx
	subl	%edx, %ecx
	movl	%ecx, (%r8)
.L136:
	addl	$1, %eax
	subq	$3212, %rdi
	cmpl	%eax, %ebx
	jge	.L138
	cmpl	%r9d, %eax
	jg	.L141
.L135:
	movl	%eax, %edx
	subl	%r12d, %edx
	subl	%edx, %esi
	.p2align 4,,10
	.p2align 3
.L140:
	testl	%esi, %esi
	js	.L139
	movl	%r9d, %edx
	movslq	%esi, %rcx
	subl	%eax, %edx
	movslq	%edx, %rdx
	imulq	$804, %rdx, %rdx
	addq	%rbp, %rdx
	addq	%rcx, %rdx
	movl	(%r8), %ecx
	addl	(%r15,%rdx,4), %ecx
	movslq	%ecx, %rdx
	movl	%ecx, %edi
	imulq	$288737297, %rdx, %rdx
	sarl	$31, %edi
	sarq	$58, %rdx
	subl	%edi, %edx
	imull	$998244353, %edx, %edx
	subl	%edx, %ecx
	movl	%ecx, (%r8)
.L139:
	addl	$1, %eax
	subl	$1, %esi
	cmpl	%eax, %r9d
	jge	.L140
.L141:
	addq	$4, %r8
	leal	1(%r10), %eax
	cmpl	%r14d, %r10d
	je	.L171
	movl	%eax, %r10d
	leal	(%r10,%r12), %esi
	testl	%r12d, %r12d
	jns	.L172
.L155:
	xorl	%eax, %eax
	jmp	.L135
	.p2align 4,,10
	.p2align 3
.L171:
	addq	$3216, (%rsp)
	addl	$1, %r9d
	addq	$804, %r13
	cmpl	8(%rsp), %r9d
	jne	.L145
.L143:
	subq	$1, 16(%rsp)
	movq	16(%rsp), %rax
	subl	$1, 36(%rsp)
	subq	$1936032, 40(%rsp)
	cmpl	$-1, %eax
	jne	.L134
	movl	b(%rip), %edx
	movl	52(%rsp), %ebx
	leal	(%rdx,%rdx), %eax
	leal	(%rbx,%rbx), %ecx
	cmpl	%ebx, %edx
	cmovg	%ecx, %eax
	xorl	%ecx, %ecx
	testl	%eax, %eax
	js	.L148
	movl	48(%rsp), %ebx
	leal	1(%rax), %esi
	movl	%ebx, %edx
	subl	32(%rsp), %edx
	addl	$1, %edx
	cmpl	$2, %eax
	jle	.L157
	movslq	%ebx, %rcx
	subq	56(%rsp), %rcx
	pxor	%xmm0, %xmm0
	movslq	%eax, %rdi
	addq	$1, %rcx
	pxor	%xmm4, %xmm4
	imulq	$804, %rcx, %rcx
	addq	%rdi, %rcx
	movl	%esi, %edi
	shrl	$2, %edi
	leaq	-12(%r15,%rcx,4), %rcx
	subl	$1, %edi
	movq	%rcx, %r8
	salq	$4, %rdi
	subq	%rdi, %r8
.L151:
	movdqu	(%rcx), %xmm5
	movdqa	%xmm4, %xmm3
	movq	%rcx, %rdi
	subq	$16, %rcx
	pshufd	$27, %xmm5, %xmm2
	pcmpgtd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm3, %xmm1
	punpckhdq	%xmm3, %xmm2
	paddq	%xmm1, %xmm0
	paddq	%xmm2, %xmm0
	cmpq	%r8, %rdi
	jne	.L151
	movdqa	%xmm0, %xmm1
	movl	%esi, %edi
	psrldq	$8, %xmm1
	andl	$-4, %edi
	paddq	%xmm1, %xmm0
	subl	%edi, %eax
	movq	%xmm0, %rcx
	cmpl	%edi, %esi
	je	.L148
.L150:
	movslq	%edx, %rdx
	movslq	%eax, %rsi
	imulq	$804, %rdx, %rdx
	addq	%rdx, %rsi
	movslq	(%r15,%rsi,4), %rsi
	addq	%rsi, %rcx
	leal	-1(%rax), %esi
	testl	%eax, %eax
	je	.L148
	movslq	%esi, %rsi
	addq	%rdx, %rsi
	movslq	(%r15,%rsi,4), %rsi
	addq	%rsi, %rcx
	leal	-2(%rax), %esi
	subl	$1, %eax
	je	.L148
	movslq	%esi, %rax
	addq	%rax, %rdx
	movslq	(%r15,%rdx,4), %rax
	addq	%rax, %rcx
.L148:
	movq	%rcx, %rax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	movabsq	$155014655926305585, %rdx
	imulq	%rdx
	movq	%rdx, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$23, %rax
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	movq	%rcx, %rdx
	call	__printf_chk@PLT
	addq	$72, %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
.L128:
	.cfi_restore_state
	movl	a(%rip), %eax
	leaq	b(%rip), %rbx
	movl	$1, %edi
	movl	$1, 32(%rsp)
	movq	%rbx, 24(%rsp)
	movl	%eax, b(%rip)
	xorl	%eax, %eax
	jmp	.L132
.L157:
	xorl	%ecx, %ecx
	jmp	.L150
.L154:
	movl	$1, %edi
	xorl	%eax, %eax
	jmp	.L132
	.cfi_endproc
.LFE67:
	.size	main, .-main
	.globl	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 1165491264
d:
	.zero	1165491264
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 2408
b:
	.zero	2408
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 2408
a:
	.zero	2408
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 301
s:
	.zero	301
	.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 <float.h>
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#ifdef __cplusplus
#include <bits/stdc++.h>
#endif

#define getchar getchar_unlocked
#define putchar putchar_unlocked
int32_t nextint(void){ char c=getchar_unlocked(); while(c!='-'&&(c<'0'||'9'<c)) c=getchar_unlocked(); bool s=false; if(c=='-'){s=true;c=getchar_unlocked();} uint32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar_unlocked(); } return s?-x:x; }
int64_t nextlong(void){ char c=getchar_unlocked(); while(c!='-'&&(c<'0'||'9'<c)) c=getchar_unlocked(); int s=0; if(c=='-'){s=1;c=getchar_unlocked();} uint64_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar_unlocked(); } return s?-x:x; }
uint32_t nextstr(char *s){ char c=getchar_unlocked(); while(c==' '||c=='\n') c=getchar_unlocked(); uint32_t len=0; while(c!=' '&&c!='\n'){ *s++=c; len++; c=getchar_unlocked(); } *s='\0'; return len; }

#define P 998244353

int dif2(int a, int b){return a<b?b-a:a-b;}

char s[301];
int a[602];
int b[602];
int d[602][602][804];
int main(void){
	int n=nextstr(s);
	int K=nextint();
	int m=0;
	for(int i=0; i<n; i++){
		if(s[i]=='0'){
			m++;
		}else{
			a[m]++;
		}
	}
	m++;
	b[m-1]=a[m-1];
	for(int i=m-2; i>=0; i--){
		b[i]=b[i+1]+a[i];
	}
	d[m][0][0]=1;
	for(int i=m-1; i>=0; i--){
		for(int j=0; j<=b[i]; j++){
			for(int k=0; k<=b[i]*2; k++){
				for(int l=0; l<=j; l++){
					int p=k-dif2(a[i],l);
					if(p>=0){
						d[i][j][k]+=d[i+1][j-l][p];
						d[i][j][k]%=P;
					}
				}
			}
		}
	}
	long ans=0;
	for(int k=K<b[0]?K*2:b[0]*2; k>=0; k--){
		ans+=d[0][n-m+1][k];
	}
	ans%=P;
	printf("%ld\n", ans);
}

0111 1
 01000110 2
 1101010010101101110111100011011111011000111101110111010010101010101 20
 0111 0
 01000110 4
 1101010010101101110111100011011111011000111101110111010010101010101 17
 0011 1
 01100110 4
 1100010010101101110111100011011111011000111101110111010010101010101 17
 1100010010101101110111100011011111011000111101110111010010101010101 12

2
 19
 243789638
 1
 25
 434266482
 3
 22
 353017980
 914259453

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

```c
#include <float.h>
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#ifdef __cplusplus
#include <bits/stdc++.h>
#endif

#define getchar getchar_unlocked
#define putchar putchar_unlocked
int32_t nextint(void){ char c=getchar_unlocked(); while(c!='-'&&(c<'0'||'9'<c)) c=getchar_unlocked(); bool s=false; if(c=='-'){s=true;c=getchar_unlocked();} uint32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar_unlocked(); } return s?-x:x; }
int64_t nextlong(void){ char c=getchar_unlocked(); while(c!='-'&&(c<'0'||'9'<c)) c=getchar_unlocked(); int s=0; if(c=='-'){s=1;c=getchar_unlocked();} uint64_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar_unlocked(); } return s?-x:x; }
uint32_t nextstr(char *s){ char c=getchar_unlocked(); while(c==' '||c=='\n') c=getchar_unlocked(); uint32_t len=0; while(c!=' '&&c!='\n'){ *s++=c; len++; c=getchar_unlocked(); } *s='\0'; return len; }

#define P 998244353

int dif2(int a, int b){return a<b?b-a:a-b;}

char s[301];
int a[602];
int b[602];
int d[602][602][804];
int main(void){
	int n=nextstr(s);
	int K=nextint();
	int m=0;
	for(int i=0; i<n; i++){
		if(s[i]=='0'){
			m++;
		}else{
			a[m]++;
		}
	}
	m++;
	b[m-1]=a[m-1];
	for(int i=m-2; i>=0; i--){
		b[i]=b[i+1]+a[i];
	}
	d[m][0][0]=1;
	for(int i=m-1; i>=0; i--){
		for(int j=0; j<=b[i]; j++){
			for(int k=0; k<=b[i]*2; k++){
				for(int l=0; l<=j; l++){
					int p=k-dif2(a[i],l);
					if(p>=0){
						d[i][j][k]+=d[i+1][j-l][p];
						d[i][j][k]%=P;
					}
				}
			}
		}
	}
	long ans=0;
	for(int k=K<b[0]?K*2:b[0]*2; k>=0; k--){
		ans+=d[0][n-m+1][k];
	}
	ans%=P;
	printf("%ld\n", ans);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	nextint
	.type	nextint, @function
nextint:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
	jmp	.L2
.L4:
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L2:
	cmpb	$45, -6(%rbp)
	je	.L3
	cmpb	$47, -6(%rbp)
	jle	.L4
	cmpb	$57, -6(%rbp)
	jg	.L4
.L3:
	movb	$0, -5(%rbp)
	cmpb	$45, -6(%rbp)
	jne	.L5
	movb	$1, -5(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L5:
	movl	$0, -4(%rbp)
	jmp	.L6
.L8:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-6(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L6:
	cmpb	$47, -6(%rbp)
	jle	.L7
	cmpb	$57, -6(%rbp)
	jle	.L8
.L7:
	cmpb	$0, -5(%rbp)
	je	.L9
	movl	-4(%rbp), %eax
	negl	%eax
	jmp	.L11
.L9:
	movl	-4(%rbp), %eax
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	nextint, .-nextint
	.globl	nextlong
	.type	nextlong, @function
nextlong:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
	jmp	.L13
.L15:
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L13:
	cmpb	$45, -13(%rbp)
	je	.L14
	cmpb	$47, -13(%rbp)
	jle	.L15
	cmpb	$57, -13(%rbp)
	jg	.L15
.L14:
	movl	$0, -12(%rbp)
	cmpb	$45, -13(%rbp)
	jne	.L16
	movl	$1, -12(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L16:
	movq	$0, -8(%rbp)
	jmp	.L17
.L19:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movsbq	-13(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	%rax, -8(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L17:
	cmpb	$47, -13(%rbp)
	jle	.L18
	cmpb	$57, -13(%rbp)
	jle	.L19
.L18:
	cmpl	$0, -12(%rbp)
	je	.L20
	movq	-8(%rbp), %rax
	negq	%rax
	jmp	.L22
.L20:
	movq	-8(%rbp), %rax
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	nextlong, .-nextlong
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
	jmp	.L24
.L25:
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L24:
	cmpb	$32, -5(%rbp)
	je	.L25
	cmpb	$10, -5(%rbp)
	je	.L25
	movl	$0, -4(%rbp)
	jmp	.L26
.L28:
	movq	-24(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -24(%rbp)
	movzbl	-5(%rbp), %edx
	movb	%dl, (%rax)
	addl	$1, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L26:
	cmpb	$32, -5(%rbp)
	je	.L27
	cmpb	$10, -5(%rbp)
	jne	.L28
.L27:
	movq	-24(%rbp), %rax
	movb	$0, (%rax)
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	nextstr, .-nextstr
	.globl	dif2
	.type	dif2, @function
dif2:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L31
	movl	-8(%rbp), %eax
	subl	-4(%rbp), %eax
	jmp	.L33
.L31:
	movl	-4(%rbp), %eax
	subl	-8(%rbp), %eax
.L33:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dif2, .-dif2
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 301
s:
	.zero	301
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 2408
a:
	.zero	2408
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 2408
b:
	.zero	2408
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 1165491264
d:
	.zero	1165491264
	.section	.rodata
.LC0:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	nextstr
	movl	%eax, -20(%rbp)
	call	nextint
	movl	%eax, -16(%rbp)
	movl	$0, -52(%rbp)
	movl	$0, -48(%rbp)
	jmp	.L35
.L38:
	movl	-48(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$48, %al
	jne	.L36
	addl	$1, -52(%rbp)
	jmp	.L37
.L36:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L37:
	addl	$1, -48(%rbp)
.L35:
	movl	-48(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L38
	addl	$1, -52(%rbp)
	movl	-52(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-52(%rbp), %eax
	leal	-1(%rax), %ecx
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	b(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-52(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -44(%rbp)
	jmp	.L39
.L40:
	movl	-44(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	subl	$1, -44(%rbp)
.L39:
	cmpl	$0, -44(%rbp)
	jns	.L40
	movl	-52(%rbp), %eax
	cltq
	imulq	$1936032, %rax, %rax
	leaq	d(%rip), %rdx
	movl	$1, (%rax,%rdx)
	movl	-52(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -40(%rbp)
	jmp	.L41
.L49:
	movl	$0, -36(%rbp)
	jmp	.L42
.L48:
	movl	$0, -32(%rbp)
	jmp	.L43
.L47:
	movl	$0, -28(%rbp)
	jmp	.L44
.L46:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-28(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	dif2
	movl	%eax, %edx
	movl	-32(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, -12(%rbp)
	cmpl	$0, -12(%rbp)
	js	.L45
	movl	-32(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	imulq	$484008, %rdx, %rdx
	imulq	$804, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-40(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-36(%rbp), %eax
	subl	-28(%rbp), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdi
	movslq	%ecx, %rdx
	cltq
	imulq	$484008, %rdx, %rdx
	imulq	$804, %rax, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rsi,%rax), %ecx
	movl	-32(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	imulq	$484008, %rdx, %rdx
	imulq	$804, %rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	imulq	$484008, %rdx, %rdx
	imulq	$804, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$288737297, %rax, %rax
	shrq	$32, %rax
	sarl	$26, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$998244353, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-32(%rbp), %edx
	movslq	%edx, %rsi
	movl	-40(%rbp), %edx
	movslq	%edx, %rcx
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$484008, %rcx, %rcx
	imulq	$804, %rdx, %rdx
	addq	%rcx, %rdx
	addq	%rsi, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	d(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L45:
	addl	$1, -28(%rbp)
.L44:
	movl	-28(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jle	.L46
	addl	$1, -32(%rbp)
.L43:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %eax
	cmpl	%eax, -32(%rbp)
	jle	.L47
	addl	$1, -36(%rbp)
.L42:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -36(%rbp)
	jle	.L48
	subl	$1, -40(%rbp)
.L41:
	cmpl	$0, -40(%rbp)
	jns	.L49
	movq	$0, -8(%rbp)
	movl	b(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jge	.L50
	movl	-16(%rbp), %eax
	addl	%eax, %eax
	jmp	.L51
.L50:
	movl	b(%rip), %eax
	addl	%eax, %eax
.L51:
	movl	%eax, -24(%rbp)
	jmp	.L52
.L53:
	movl	-20(%rbp), %eax
	subl	-52(%rbp), %eax
	leal	1(%rax), %edx
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$804, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	addq	%rax, -8(%rbp)
	subl	$1, -24(%rbp)
.L52:
	cmpl	$0, -24(%rbp)
	jns	.L53
	movq	-8(%rbp), %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
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	nextint
	.type	nextint, @function
nextint:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
	jmp	.L2
.L4:
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L2:
	cmpb	$45, -6(%rbp)
	je	.L3
	cmpb	$47, -6(%rbp)
	jle	.L4
	cmpb	$57, -6(%rbp)
	jg	.L4
.L3:
	movb	$0, -5(%rbp)
	cmpb	$45, -6(%rbp)
	jne	.L5
	movb	$1, -5(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L5:
	movl	$0, -4(%rbp)
	jmp	.L6
.L8:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-6(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L6:
	cmpb	$47, -6(%rbp)
	jle	.L7
	cmpb	$57, -6(%rbp)
	jle	.L8
.L7:
	cmpb	$0, -5(%rbp)
	je	.L9
	movl	-4(%rbp), %eax
	negl	%eax
	jmp	.L11
.L9:
	movl	-4(%rbp), %eax
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	nextint, .-nextint
	.globl	nextlong
	.type	nextlong, @function
nextlong:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
	jmp	.L13
.L15:
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L13:
	cmpb	$45, -13(%rbp)
	je	.L14
	cmpb	$47, -13(%rbp)
	jle	.L15
	cmpb	$57, -13(%rbp)
	jg	.L15
.L14:
	movl	$0, -12(%rbp)
	cmpb	$45, -13(%rbp)
	jne	.L16
	movl	$1, -12(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L16:
	movq	$0, -8(%rbp)
	jmp	.L17
.L19:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movsbq	-13(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	%rax, -8(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L17:
	cmpb	$47, -13(%rbp)
	jle	.L18
	cmpb	$57, -13(%rbp)
	jle	.L19
.L18:
	cmpl	$0, -12(%rbp)
	je	.L20
	movq	-8(%rbp), %rax
	negq	%rax
	jmp	.L22
.L20:
	movq	-8(%rbp), %rax
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	nextlong, .-nextlong
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
	jmp	.L24
.L25:
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L24:
	cmpb	$32, -5(%rbp)
	je	.L25
	cmpb	$10, -5(%rbp)
	je	.L25
	movl	$0, -4(%rbp)
	jmp	.L26
.L28:
	movq	-24(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -24(%rbp)
	movzbl	-5(%rbp), %edx
	movb	%dl, (%rax)
	addl	$1, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L26:
	cmpb	$32, -5(%rbp)
	je	.L27
	cmpb	$10, -5(%rbp)
	jne	.L28
.L27:
	movq	-24(%rbp), %rax
	movb	$0, (%rax)
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	nextstr, .-nextstr
	.globl	dif2
	.type	dif2, @function
dif2:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L31
	movl	-8(%rbp), %eax
	subl	-4(%rbp), %eax
	jmp	.L33
.L31:
	movl	-4(%rbp), %eax
	subl	-8(%rbp), %eax
.L33:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dif2, .-dif2
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 301
s:
	.zero	301
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 2408
a:
	.zero	2408
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 2408
b:
	.zero	2408
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 1165491264
d:
	.zero	1165491264
	.section	.rodata
.LC0:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	nextstr
	movl	%eax, -20(%rbp)
	call	nextint
	movl	%eax, -16(%rbp)
	movl	$0, -52(%rbp)
	movl	$0, -48(%rbp)
	jmp	.L35
.L38:
	movl	-48(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$48, %al
	jne	.L36
	addl	$1, -52(%rbp)
	jmp	.L37
.L36:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L37:
	addl	$1, -48(%rbp)
.L35:
	movl	-48(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L38
	addl	$1, -52(%rbp)
	movl	-52(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-52(%rbp), %eax
	leal	-1(%rax), %ecx
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	b(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-52(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -44(%rbp)
	jmp	.L39
.L40:
	movl	-44(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	subl	$1, -44(%rbp)
.L39:
	cmpl	$0, -44(%rbp)
	jns	.L40
	movl	-52(%rbp), %eax
	cltq
	imulq	$1936032, %rax, %rax
	leaq	d(%rip), %rdx
	movl	$1, (%rax,%rdx)
	movl	-52(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -40(%rbp)
	jmp	.L41
.L49:
	movl	$0, -36(%rbp)
	jmp	.L42
.L48:
	movl	$0, -32(%rbp)
	jmp	.L43
.L47:
	movl	$0, -28(%rbp)
	jmp	.L44
.L46:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-28(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	dif2
	movl	%eax, %edx
	movl	-32(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, -12(%rbp)
	cmpl	$0, -12(%rbp)
	js	.L45
	movl	-32(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	imulq	$484008, %rdx, %rdx
	imulq	$804, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-40(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-36(%rbp), %eax
	subl	-28(%rbp), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdi
	movslq	%ecx, %rdx
	cltq
	imulq	$484008, %rdx, %rdx
	imulq	$804, %rax, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rsi,%rax), %ecx
	movl	-32(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	imulq	$484008, %rdx, %rdx
	imulq	$804, %rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	imulq	$484008, %rdx, %rdx
	imulq	$804, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$288737297, %rax, %rax
	shrq	$32, %rax
	sarl	$26, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$998244353, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-32(%rbp), %edx
	movslq	%edx, %rsi
	movl	-40(%rbp), %edx
	movslq	%edx, %rcx
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$484008, %rcx, %rcx
	imulq	$804, %rdx, %rdx
	addq	%rcx, %rdx
	addq	%rsi, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	d(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L45:
	addl	$1, -28(%rbp)
.L44:
	movl	-28(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jle	.L46
	addl	$1, -32(%rbp)
.L43:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %eax
	cmpl	%eax, -32(%rbp)
	jle	.L47
	addl	$1, -36(%rbp)
.L42:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -36(%rbp)
	jle	.L48
	subl	$1, -40(%rbp)
.L41:
	cmpl	$0, -40(%rbp)
	jns	.L49
	movq	$0, -8(%rbp)
	movl	b(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jge	.L50
	movl	-16(%rbp), %eax
	addl	%eax, %eax
	jmp	.L51
.L50:
	movl	b(%rip), %eax
	addl	%eax, %eax
.L51:
	movl	%eax, -24(%rbp)
	jmp	.L52
.L53:
	movl	-20(%rbp), %eax
	subl	-52(%rbp), %eax
	leal	1(%rax), %edx
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$804, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	addq	%rax, -8(%rbp)
	subl	$1, -24(%rbp)
.L52:
	cmpl	$0, -24(%rbp)
	jns	.L53
	movq	-8(%rbp), %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
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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:
