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

```c
// AOJ 1327 One-Dimensional Cellular Automaton
// 2017.10.25 bal4u
// 2018.2.9

#include <stdio.h>
#include <string.h>

int s[2][52], d[32][52][52];

//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0;
	int c = getchar_unlocked();
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
	while (c >= '0');
	return n;
}

int main()
{
	int n, m, a, b, c, t;
	int i, j, k, l, k1, k2;

	while (n = in()) {
		m = in(), a = in(), b = in(), c = in(), t = in();
		memset(d, 0, sizeof(d));
		for (i = 1; i <= n; i++) s[0][i] = in();
		for (i = 1; i <= n; i++) d[0][i][i+1] = a, d[0][i][i] = b, d[0][i][i-1] = c;
		for (k = 1; (1<<k) <= t; k++) for (i = 1; i <= n; i++) for (j = 1; j <= n; j++) {
			for (l = 1; l <= n; l++) d[k][i][j] += d[k-1][i][l] * d[k-1][l][j];
			d[k][i][j] %= m;
		}

		for (k1 = 0, k2 = 1, k = 0; (1<<k) <= t; k++) if (t & (1<<k)) {
			memset(s[k2], 0, sizeof(s[k2]));
			for (j = 1; j <= n; j++) {
				for (i = 1; i <= n; i++) s[k2][i] += s[k1][j] * d[k][j][i];
			}
			for (i = 1; i <= n; i++) s[k2][i] %= m;
			k1 = k2, k2 = !k2;
		}
		printf("%d", s[k1][1]);	for (i = 2; i <= n; i++) printf(" %d", s[k1][i]);
		putchar('\n');
	}
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 416
s:
	.zero	416
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 346112
d:
	.zero	346112
	.text
	.globl	in
	.type	in, @function
in:
.LFB0:
	.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
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %eax
	leal	0(,%rax,8), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	in, .-in
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	jmp	.L5
.L29:
	movl	$0, %eax
	call	in
	movl	%eax, -20(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -16(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -12(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -8(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -4(%rbp)
	movl	$346112, %edx
	movl	$0, %esi
	leaq	d(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -48(%rbp)
	jmp	.L6
.L7:
	movl	$0, %eax
	call	in
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	s(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -48(%rbp)
.L6:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L7
	movl	$1, -48(%rbp)
	jmp	.L8
.L9:
	movl	-48(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rcx
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rdx
	movl	-16(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-48(%rbp), %eax
	cltq
	imulq	$212, %rax, %rax
	leaq	d(%rip), %rcx
	movl	-12(%rbp), %edx
	movl	%edx, (%rax,%rcx)
	movl	-48(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -48(%rbp)
.L8:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L9
	movl	$1, -40(%rbp)
	jmp	.L10
.L17:
	movl	$1, -48(%rbp)
	jmp	.L11
.L16:
	movl	$1, -44(%rbp)
	jmp	.L12
.L15:
	movl	$1, -36(%rbp)
	jmp	.L13
.L14:
	movl	-44(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40(%rbp), %eax
	cltq
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %rsi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-40(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-40(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdi
	movslq	%edx, %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %r8
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%r8, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	%ecx, %eax
	leal	(%rsi,%rax), %ecx
	movl	-44(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40(%rbp), %eax
	cltq
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -36(%rbp)
.L13:
	movl	-36(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L14
	movl	-44(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40(%rbp), %eax
	cltq
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %rsi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltd
	idivl	-20(%rbp)
	movl	%edx, %ecx
	movl	-44(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40(%rbp), %eax
	cltq
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -44(%rbp)
.L12:
	movl	-44(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L15
	addl	$1, -48(%rbp)
.L11:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L16
	addl	$1, -40(%rbp)
.L10:
	movl	-40(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cmpl	%eax, -4(%rbp)
	jge	.L17
	movl	$0, -32(%rbp)
	movl	$1, -28(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L18
.L26:
	movl	-40(%rbp), %eax
	movl	-4(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L19
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	leaq	s(%rip), %rdx
	addq	%rdx, %rax
	movl	$208, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -44(%rbp)
	jmp	.L20
.L23:
	movl	$1, -48(%rbp)
	jmp	.L21
.L22:
	movl	-48(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-44(%rbp), %eax
	movslq	%eax, %rcx
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-48(%rbp), %eax
	movslq	%eax, %rdi
	movl	-40(%rbp), %eax
	cltq
	movl	-44(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %r8
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%r8, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	%ecx, %eax
	leal	(%rsi,%rax), %ecx
	movl	-48(%rbp), %eax
	movslq	%eax, %rsi
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -48(%rbp)
.L21:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L22
	addl	$1, -44(%rbp)
.L20:
	movl	-44(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L23
	movl	$1, -48(%rbp)
	jmp	.L24
.L25:
	movl	-48(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltd
	idivl	-20(%rbp)
	movl	%edx, %ecx
	movl	-48(%rbp), %eax
	movslq	%eax, %rsi
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -48(%rbp)
.L24:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L25
	movl	-28(%rbp), %eax
	movl	%eax, -32(%rbp)
	cmpl	$0, -28(%rbp)
	sete	%al
	movzbl	%al, %eax
	movl	%eax, -28(%rbp)
.L19:
	addl	$1, -40(%rbp)
.L18:
	movl	-40(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cmpl	%eax, -4(%rbp)
	jge	.L26
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$2, -48(%rbp)
	jmp	.L27
.L28:
	movl	-48(%rbp), %eax
	movslq	%eax, %rcx
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -48(%rbp)
.L27:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L28
	movl	$10, %edi
	call	putchar@PLT
.L5:
	movl	$0, %eax
	call	in
	movl	%eax, -24(%rbp)
	cmpl	$0, -24(%rbp)
	jne	.L29
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	in
	.type	in, @function
in:
.LFB35:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L11
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L3:
	xorl	%r12d, %r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L1
.L5:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L7:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L4
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L1
	movq	stdin(%rip), %rdi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L1:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L3
	.cfi_endproc
.LFE35:
	.size	in, .-in
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.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
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
.L13:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L148
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L77:
	xorl	%r15d, %r15d
	jmp	.L81
.L78:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L80
.L79:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L81:
	leal	(%r15,%r15,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r15d
	cmpq	%rcx, %rdx
	jb	.L78
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L80
	movq	stdin(%rip), %rdi
	jmp	.L79
.L80:
	testl	%r15d, %r15d
	je	.L149
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rax
	cmpq	%rax, %rdx
	jnb	.L150
	leaq	1(%rdx), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rdx), %edx
.L15:
	xorl	%r14d, %r14d
	jmp	.L19
.L16:
	leaq	1(%rcx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rcx), %edx
	cmpl	$47, %edx
	jle	.L18
.L17:
	movq	%rsi, %rcx
.L19:
	leal	(%r14,%r14,4), %esi
	andl	$15, %edx
	leal	(%rdx,%rsi,2), %r14d
	cmpq	%rax, %rcx
	jb	.L16
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rax
	cmpl	$47, %edx
	jg	.L17
.L18:
	cmpq	%rax, %rsi
	jnb	.L151
	leaq	1(%rsi), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rsi), %edx
.L21:
	xorl	%ebp, %ebp
	jmp	.L25
.L22:
	leaq	1(%rcx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rcx), %edx
	cmpl	$47, %edx
	jle	.L24
.L23:
	movq	%rsi, %rcx
.L25:
	leal	0(%rbp,%rbp,4), %esi
	andl	$15, %edx
	leal	(%rdx,%rsi,2), %ebp
	cmpq	%rax, %rcx
	jb	.L22
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rax
	cmpl	$47, %edx
	jg	.L23
.L24:
	cmpq	%rax, %rsi
	jnb	.L152
	leaq	1(%rsi), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rsi), %edx
.L27:
	xorl	%r12d, %r12d
	jmp	.L31
.L28:
	leaq	1(%rcx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rcx), %edx
	cmpl	$47, %edx
	jle	.L30
.L29:
	movq	%rsi, %rcx
.L31:
	leal	(%r12,%r12,4), %esi
	andl	$15, %edx
	leal	(%rdx,%rsi,2), %r12d
	cmpq	%rax, %rcx
	jb	.L28
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rax
	cmpl	$47, %edx
	jg	.L29
.L30:
	cmpq	%rax, %rsi
	jnb	.L153
	leaq	1(%rsi), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rsi), %edx
.L33:
	xorl	%ebx, %ebx
	jmp	.L37
.L34:
	leaq	1(%rcx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rcx), %edx
	cmpl	$47, %edx
	jle	.L36
.L35:
	movq	%rsi, %rcx
.L37:
	leal	(%rbx,%rbx,4), %esi
	andl	$15, %edx
	leal	(%rdx,%rsi,2), %ebx
	cmpq	%rax, %rcx
	jb	.L34
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rax
	cmpl	$47, %edx
	jg	.L35
.L36:
	movd	%ebx, %xmm4
	movd	%r12d, %xmm5
	punpckldq	%xmm5, %xmm4
	movq	%xmm4, %rbx
	cmpq	%rax, %rsi
	jnb	.L154
	leaq	1(%rsi), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rsi), %edx
.L39:
	xorl	%r12d, %r12d
	jmp	.L43
.L40:
	leaq	1(%rcx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rcx), %edx
	cmpl	$47, %edx
	jle	.L42
.L41:
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
.L43:
	leal	(%r12,%r12,4), %esi
	andl	$15, %edx
	leal	(%rdx,%rsi,2), %r12d
	cmpq	%rax, %rcx
	jb	.L40
	call	__uflow@PLT
	movl	%eax, %edx
	cmpl	$47, %eax
	jle	.L42
	movq	stdin(%rip), %rdi
	jmp	.L41
.L42:
	xorl	%esi, %esi
	movl	$346112, %edx
	leaq	d(%rip), %rdi
	movl	%r12d, (%rsp)
	call	memset@PLT
	testl	%r15d, %r15d
	jle	.L44
	movl	$1, %r13d
.L51:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L155
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L46:
	xorl	%r12d, %r12d
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L47:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L49
.L48:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L50:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L47
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L49
	movq	stdin(%rip), %rdi
	jmp	.L48
.L49:
	leaq	s(%rip), %rax
	movl	%r12d, (%rax,%r13,4)
	addq	$1, %r13
	cmpl	%r13d, %r15d
	jge	.L51
	leal	-1(%r15), %edx
	leaq	208+d(%rip), %rcx
	movq	%rbx, %xmm6
	movq	%rdx, %rax
	imulq	$212, %rdx, %rdx
	leaq	212(%rcx), %rsi
	addq	%rsi, %rdx
.L52:
	movl	%ebp, 8(%rcx)
	addq	$212, %rcx
	movq	%xmm6, -212(%rcx)
	cmpq	%rdx, %rcx
	jne	.L52
	cmpl	$1, (%rsp)
	jle	.L84
	imulq	$-208, %rax, %r11
	movl	$1, 4(%rsp)
	xorl	%r13d, %r13d
	leaq	2(%rax), %r8
	leaq	10824(,%rax,4), %rbx
	subq	$416, %r11
.L58:
	leaq	208+d(%rip), %rax
	movq	$-208, %rbp
	leaq	(%rax,%r13), %rdi
	.p2align 4,,10
	.p2align 3
.L60:
	leaq	10820(%rdi), %rsi
	leaq	(%rbx,%rdi), %r10
	leaq	-10816(%rbp), %r9
	.p2align 4,,10
	.p2align 3
.L57:
	movl	(%rsi), %eax
	leaq	(%r9,%rsi), %r12
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L54:
	movl	(%rdi,%rdx,4), %ecx
	addq	$1, %rdx
	addq	$208, %r12
	imull	(%r12), %ecx
	addl	%ecx, %eax
	movl	%eax, (%rsi)
	cmpq	%r8, %rdx
	jne	.L54
	cltd
	addq	$4, %rsi
	idivl	%r14d
	movl	%edx, -4(%rsi)
	cmpq	%r10, %rsi
	jne	.L57
	subq	$208, %rbp
	addq	$208, %rdi
	cmpq	%r11, %rbp
	jne	.L60
	addl	$1, 4(%rsp)
	movl	4(%rsp), %eax
	movl	$1, %edi
	addq	$10816, %r13
	movl	%eax, %ecx
	sall	%cl, %edi
	cmpl	(%rsp), %edi
	jle	.L58
.L61:
	movl	%r15d, %ebx
	movl	%r15d, %ecx
	movl	%r15d, %r13d
	xorl	%edx, %edx
	andl	$-4, %ebx
	movl	$1, 24(%rsp)
	shrl	$2, %r13d
	leal	1(%rbx), %eax
	leal	2(%rbx), %edi
	movl	%ebx, 72(%rsp)
	addl	$3, %ebx
	cltq
	movl	%ebx, 64(%rsp)
	leaq	1(%rcx), %rbx
	movl	$4, %ecx
	movq	%rax, 48(%rsp)
	subq	.LC2(%rip), %rcx
	movl	$8, %eax
	subq	.LC2(%rip), %rax
	movl	%edi, 68(%rsp)
	movq	$0, 32(%rsp)
	movl	$0, 4(%rsp)
	movq	%rbx, 88(%rsp)
	movq	%rcx, 40(%rsp)
	movq	%rax, 56(%rsp)
	jmp	.L59
.L63:
	addl	$1, 4(%rsp)
	movl	4(%rsp), %ebx
	movl	$1, %eax
	addq	$10816, 32(%rsp)
	movl	%ebx, %ecx
	sall	%cl, %eax
	cmpl	(%rsp), %eax
	jg	.L62
.L59:
	movl	(%rsp), %r9d
	movzbl	4(%rsp), %ecx
	sarl	%cl, %r9d
	andl	$1, %r9d
	je	.L63
	movslq	24(%rsp), %rax
	leaq	s(%rip), %rbx
	leaq	(%rax,%rax,2), %rcx
	leaq	(%rax,%rcx,4), %r11
	movl	$26, %ecx
	xorl	%eax, %eax
	movq	%r11, %rbp
	salq	$4, %rbp
	leaq	(%rbx,%rbp), %rsi
	movq	%rsi, %rdi
	rep stosq
	testl	%r15d, %r15d
	jle	.L64
	leaq	(%rdx,%rdx,2), %rax
	salq	$2, %r11
	leal	-1(%r15), %esi
	addq	$4, %rbp
	leaq	(%rdx,%rax,4), %rdx
	leal	1(%r15), %eax
	movl	%esi, 76(%rsp)
	addq	%r11, %rsi
	movl	%eax, 28(%rsp)
	movq	88(%rsp), %rax
	salq	$4, %rdx
	leaq	212+d(%rip), %rcx
	addq	%rbx, %rdx
	movq	48(%rsp), %rdi
	addq	32(%rsp), %rcx
	addq	%r11, %rax
	salq	$2, %rax
	leaq	(%r11,%rdi), %r12
	movq	%rax, 16(%rsp)
	leaq	(%rbx,%rbp), %rax
	leaq	8+s(%rip), %rbx
	leaq	(%rbx,%rsi,4), %rbx
	movslq	4(%rsp), %rsi
	movq	%rax, %r8
	imulq	$2704, %rsi, %rdi
	movq	%rdi, 80(%rsp)
.L65:
	movq	40(%rsp), %rdi
	leaq	(%rdi,%rdx), %rsi
	cmpq	%rsi, 16(%rsp)
	movq	56(%rsp), %rsi
	setle	%dil
	addq	%rdx, %rsi
	cmpq	%rsi, %rbp
	setge	%sil
	orb	%dil, %sil
	je	.L86
	cmpl	$2, 76(%rsp)
	jbe	.L86
	movd	4(%rdx), %xmm6
	movdqu	(%rcx), %xmm2
	movdqu	(%rcx), %xmm3
	pshufd	$0, %xmm6, %xmm0
	psrlq	$32, %xmm2
	movdqa	%xmm0, %xmm1
	pmuludq	%xmm0, %xmm3
	psrlq	$32, %xmm1
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, (%rax)
	cmpl	$1, %r13d
	jbe	.L69
	movdqu	16(%rcx), %xmm2
	movdqu	16(%rcx), %xmm3
	psrlq	$32, %xmm2
	pmuludq	%xmm0, %xmm3
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	16(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, 16(%rax)
	cmpl	$2, %r13d
	je	.L69
	movdqu	32(%rcx), %xmm2
	movdqu	32(%rcx), %xmm3
	psrlq	$32, %xmm2
	pmuludq	%xmm0, %xmm3
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	32(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, 32(%rax)
	cmpl	$3, %r13d
	je	.L69
	movdqu	48(%rcx), %xmm2
	movdqu	48(%rcx), %xmm3
	psrlq	$32, %xmm2
	pmuludq	%xmm0, %xmm3
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	48(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, 48(%rax)
	cmpl	$4, %r13d
	je	.L69
	movdqu	64(%rcx), %xmm2
	movdqu	64(%rcx), %xmm3
	psrlq	$32, %xmm2
	pmuludq	%xmm0, %xmm3
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	64(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, 64(%rax)
	cmpl	$5, %r13d
	je	.L69
	movdqu	80(%rcx), %xmm2
	movdqu	80(%rcx), %xmm3
	psrlq	$32, %xmm2
	pmuludq	%xmm0, %xmm3
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	80(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, 80(%rax)
	cmpl	$6, %r13d
	je	.L69
	movdqu	96(%rcx), %xmm2
	movdqu	96(%rcx), %xmm3
	psrlq	$32, %xmm2
	pmuludq	%xmm0, %xmm3
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	96(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, 96(%rax)
	cmpl	$7, %r13d
	je	.L69
	movdqu	112(%rcx), %xmm2
	movdqu	112(%rcx), %xmm3
	psrlq	$32, %xmm2
	pmuludq	%xmm0, %xmm3
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	112(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, 112(%rax)
	cmpl	$8, %r13d
	je	.L69
	movdqu	128(%rcx), %xmm2
	movdqu	128(%rcx), %xmm3
	psrlq	$32, %xmm2
	pmuludq	%xmm0, %xmm3
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	128(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, 128(%rax)
	cmpl	$9, %r13d
	je	.L69
	movdqu	144(%rcx), %xmm2
	movdqu	144(%rcx), %xmm3
	psrlq	$32, %xmm2
	pmuludq	%xmm0, %xmm3
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	144(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, 144(%rax)
	cmpl	$10, %r13d
	je	.L69
	movdqu	160(%rcx), %xmm2
	movdqu	160(%rcx), %xmm3
	psrlq	$32, %xmm2
	pmuludq	%xmm0, %xmm3
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	160(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, 160(%rax)
	cmpl	$11, %r13d
	je	.L69
	movdqu	176(%rcx), %xmm2
	movdqu	176(%rcx), %xmm7
	movdqu	176(%rax), %xmm5
	psrlq	$32, %xmm2
	pmuludq	%xmm7, %xmm0
	pmuludq	%xmm2, %xmm1
	pshufd	$8, %xmm0, %xmm0
	pshufd	$8, %xmm1, %xmm1
	punpckldq	%xmm1, %xmm0
	paddd	%xmm5, %xmm0
	movups	%xmm0, 176(%rax)
.L69:
	cmpl	%r15d, 72(%rsp)
	je	.L68
	movslq	%r9d, %rsi
	leaq	d(%rip), %r10
	leaq	(%rsi,%rsi,2), %rdi
	leaq	(%rsi,%rdi,4), %rsi
	movq	80(%rsp), %rdi
	leaq	(%rdi,%rsi,4), %rdi
	movq	%rdi, 8(%rsp)
	movq	48(%rsp), %rdi
	addq	8(%rsp), %rdi
	movl	(%r10,%rdi,4), %edi
	imull	4(%rdx), %edi
	leaq	s(%rip), %r10
	addl	%edi, (%r10,%r12,4)
	movslq	68(%rsp), %rdi
	cmpl	%r15d, %edi
	jg	.L68
	leaq	(%r11,%rdi), %rsi
	leaq	d(%rip), %r10
	addq	8(%rsp), %rdi
	movl	(%r10,%rdi,4), %edi
	imull	4(%rdx), %edi
	leaq	s(%rip), %r10
	addl	%edi, (%r10,%rsi,4)
	movl	64(%rsp), %edi
	cmpl	%r15d, %edi
	jg	.L68
	movq	8(%rsp), %rsi
	movslq	%edi, %r10
	leaq	(%r11,%r10), %rdi
	addq	%r10, %rsi
	leaq	d(%rip), %r10
	movl	(%r10,%rsi,4), %esi
	imull	4(%rdx), %esi
	leaq	s(%rip), %r10
	addl	%esi, (%r10,%rdi,4)
.L68:
	addl	$1, %r9d
	addq	$208, %rcx
	addq	$4, %rdx
	cmpl	28(%rsp), %r9d
	jne	.L65
.L70:
	movl	(%r8), %eax
	addq	$4, %r8
	cltd
	idivl	%r14d
	movl	%edx, -4(%r8)
	cmpq	%rbx, %r8
	jne	.L70
.L64:
	movl	24(%rsp), %eax
	movslq	%eax, %rdx
	xorl	$1, %eax
	movl	%eax, 24(%rsp)
	jmp	.L63
.L86:
	movq	%rcx, %r10
	movq	%rax, %rsi
.L67:
	movl	(%r10), %edi
	imull	4(%rdx), %edi
	addq	$4, %r10
	addl	%edi, (%rsi)
	addq	$4, %rsi
	cmpq	%rbx, %rsi
	jne	.L67
	jmp	.L68
.L44:
	cmpl	$1, (%rsp)
	jg	.L61
.L84:
	cmpl	$1, (%rsp)
	je	.L61
	xorl	%edx, %edx
.L62:
	leaq	(%rdx,%rdx,2), %rax
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	movl	$2, %ebp
	leaq	(%rdx,%rax,4), %rbx
	leaq	s(%rip), %rax
	salq	$4, %rbx
	leaq	.LC1(%rip), %r12
	addq	%rax, %rbx
	xorl	%eax, %eax
	movl	4(%rbx), %edx
	call	__printf_chk@PLT
	cmpl	$1, %r15d
	jle	.L75
.L74:
	movl	(%rbx,%rbp,4), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	cmpl	%ebp, %r15d
	jge	.L74
.L75:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	jmp	.L13
.L155:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L46
.L154:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	jmp	.L39
.L153:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	jmp	.L33
.L152:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	jmp	.L27
.L151:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	jmp	.L21
.L148:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L77
.L150:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	jmp	.L15
.L149:
	addq	$104, %rsp
	.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
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 346112
d:
	.zero	346112
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 416
s:
	.zero	416
	.section	.data.rel.ro.local,"aw"
	.align 8
.LC2:
	.quad	s
	.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	in
	.type	in, @function
in:
.LFB35:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L11
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L3:
	xorl	%r12d, %r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L1
.L5:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L7:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L4
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L1
	movq	stdin(%rip), %rdi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L1:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L3
	.cfi_endproc
.LFE35:
	.size	in, .-in
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.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
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
.L13:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L148
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L77:
	xorl	%r15d, %r15d
	jmp	.L81
.L78:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L80
.L79:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L81:
	leal	(%r15,%r15,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r15d
	cmpq	%rcx, %rdx
	jb	.L78
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L80
	movq	stdin(%rip), %rdi
	jmp	.L79
.L80:
	testl	%r15d, %r15d
	je	.L149
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rax
	cmpq	%rax, %rdx
	jnb	.L150
	leaq	1(%rdx), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rdx), %edx
.L15:
	xorl	%r14d, %r14d
	jmp	.L19
.L16:
	leaq	1(%rcx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rcx), %edx
	cmpl	$47, %edx
	jle	.L18
.L17:
	movq	%rsi, %rcx
.L19:
	leal	(%r14,%r14,4), %esi
	andl	$15, %edx
	leal	(%rdx,%rsi,2), %r14d
	cmpq	%rax, %rcx
	jb	.L16
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rax
	cmpl	$47, %edx
	jg	.L17
.L18:
	cmpq	%rax, %rsi
	jnb	.L151
	leaq	1(%rsi), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rsi), %edx
.L21:
	xorl	%ebp, %ebp
	jmp	.L25
.L22:
	leaq	1(%rcx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rcx), %edx
	cmpl	$47, %edx
	jle	.L24
.L23:
	movq	%rsi, %rcx
.L25:
	leal	0(%rbp,%rbp,4), %esi
	andl	$15, %edx
	leal	(%rdx,%rsi,2), %ebp
	cmpq	%rax, %rcx
	jb	.L22
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rax
	cmpl	$47, %edx
	jg	.L23
.L24:
	cmpq	%rax, %rsi
	jnb	.L152
	leaq	1(%rsi), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rsi), %edx
.L27:
	xorl	%r12d, %r12d
	jmp	.L31
.L28:
	leaq	1(%rcx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rcx), %edx
	cmpl	$47, %edx
	jle	.L30
.L29:
	movq	%rsi, %rcx
.L31:
	leal	(%r12,%r12,4), %esi
	andl	$15, %edx
	leal	(%rdx,%rsi,2), %r12d
	cmpq	%rax, %rcx
	jb	.L28
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rax
	cmpl	$47, %edx
	jg	.L29
.L30:
	cmpq	%rax, %rsi
	jnb	.L153
	leaq	1(%rsi), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rsi), %edx
.L33:
	xorl	%ebx, %ebx
	jmp	.L37
.L34:
	leaq	1(%rcx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rcx), %edx
	cmpl	$47, %edx
	jle	.L36
.L35:
	movq	%rsi, %rcx
.L37:
	leal	(%rbx,%rbx,4), %esi
	andl	$15, %edx
	leal	(%rdx,%rsi,2), %ebx
	cmpq	%rax, %rcx
	jb	.L34
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rax
	cmpl	$47, %edx
	jg	.L35
.L36:
	movd	%ebx, %xmm4
	movd	%r12d, %xmm5
	punpckldq	%xmm5, %xmm4
	movq	%xmm4, %rbx
	cmpq	%rax, %rsi
	jnb	.L154
	leaq	1(%rsi), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rsi), %edx
.L39:
	xorl	%r12d, %r12d
	jmp	.L43
.L40:
	leaq	1(%rcx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rcx), %edx
	cmpl	$47, %edx
	jle	.L42
.L41:
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
.L43:
	leal	(%r12,%r12,4), %esi
	andl	$15, %edx
	leal	(%rdx,%rsi,2), %r12d
	cmpq	%rax, %rcx
	jb	.L40
	call	__uflow@PLT
	movl	%eax, %edx
	cmpl	$47, %eax
	jle	.L42
	movq	stdin(%rip), %rdi
	jmp	.L41
.L42:
	xorl	%esi, %esi
	movl	$346112, %edx
	leaq	d(%rip), %rdi
	movl	%r12d, (%rsp)
	call	memset@PLT
	testl	%r15d, %r15d
	jle	.L44
	movl	$1, %r13d
.L51:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L155
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L46:
	xorl	%r12d, %r12d
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L47:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L49
.L48:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L50:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L47
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L49
	movq	stdin(%rip), %rdi
	jmp	.L48
.L49:
	leaq	s(%rip), %rax
	movl	%r12d, (%rax,%r13,4)
	addq	$1, %r13
	cmpl	%r13d, %r15d
	jge	.L51
	leal	-1(%r15), %edx
	leaq	208+d(%rip), %rcx
	movq	%rbx, %xmm6
	movq	%rdx, %rax
	imulq	$212, %rdx, %rdx
	leaq	212(%rcx), %rsi
	addq	%rsi, %rdx
.L52:
	movl	%ebp, 8(%rcx)
	addq	$212, %rcx
	movq	%xmm6, -212(%rcx)
	cmpq	%rdx, %rcx
	jne	.L52
	cmpl	$1, (%rsp)
	jle	.L84
	imulq	$-208, %rax, %r11
	movl	$1, 4(%rsp)
	xorl	%r13d, %r13d
	leaq	2(%rax), %r8
	leaq	10824(,%rax,4), %rbx
	subq	$416, %r11
.L58:
	leaq	208+d(%rip), %rax
	movq	$-208, %rbp
	leaq	(%rax,%r13), %rdi
	.p2align 4,,10
	.p2align 3
.L60:
	leaq	10820(%rdi), %rsi
	leaq	(%rbx,%rdi), %r10
	leaq	-10816(%rbp), %r9
	.p2align 4,,10
	.p2align 3
.L57:
	movl	(%rsi), %eax
	leaq	(%r9,%rsi), %r12
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L54:
	movl	(%rdi,%rdx,4), %ecx
	addq	$1, %rdx
	addq	$208, %r12
	imull	(%r12), %ecx
	addl	%ecx, %eax
	movl	%eax, (%rsi)
	cmpq	%r8, %rdx
	jne	.L54
	cltd
	addq	$4, %rsi
	idivl	%r14d
	movl	%edx, -4(%rsi)
	cmpq	%r10, %rsi
	jne	.L57
	subq	$208, %rbp
	addq	$208, %rdi
	cmpq	%r11, %rbp
	jne	.L60
	addl	$1, 4(%rsp)
	movl	4(%rsp), %eax
	movl	$1, %edi
	addq	$10816, %r13
	movl	%eax, %ecx
	sall	%cl, %edi
	cmpl	(%rsp), %edi
	jle	.L58
.L61:
	movl	%r15d, %ebx
	movl	%r15d, %ecx
	movl	%r15d, %r13d
	xorl	%edx, %edx
	andl	$-4, %ebx
	movl	$1, 24(%rsp)
	shrl	$2, %r13d
	leal	1(%rbx), %eax
	leal	2(%rbx), %edi
	movl	%ebx, 72(%rsp)
	addl	$3, %ebx
	cltq
	movl	%ebx, 64(%rsp)
	leaq	1(%rcx), %rbx
	movl	$4, %ecx
	movq	%rax, 48(%rsp)
	subq	.LC2(%rip), %rcx
	movl	$8, %eax
	subq	.LC2(%rip), %rax
	movl	%edi, 68(%rsp)
	movq	$0, 32(%rsp)
	movl	$0, 4(%rsp)
	movq	%rbx, 88(%rsp)
	movq	%rcx, 40(%rsp)
	movq	%rax, 56(%rsp)
	jmp	.L59
.L63:
	addl	$1, 4(%rsp)
	movl	4(%rsp), %ebx
	movl	$1, %eax
	addq	$10816, 32(%rsp)
	movl	%ebx, %ecx
	sall	%cl, %eax
	cmpl	(%rsp), %eax
	jg	.L62
.L59:
	movl	(%rsp), %r9d
	movzbl	4(%rsp), %ecx
	sarl	%cl, %r9d
	andl	$1, %r9d
	je	.L63
	movslq	24(%rsp), %rax
	leaq	s(%rip), %rbx
	leaq	(%rax,%rax,2), %rcx
	leaq	(%rax,%rcx,4), %r11
	movl	$26, %ecx
	xorl	%eax, %eax
	movq	%r11, %rbp
	salq	$4, %rbp
	leaq	(%rbx,%rbp), %rsi
	movq	%rsi, %rdi
	rep stosq
	testl	%r15d, %r15d
	jle	.L64
	leaq	(%rdx,%rdx,2), %rax
	salq	$2, %r11
	leal	-1(%r15), %esi
	addq	$4, %rbp
	leaq	(%rdx,%rax,4), %rdx
	leal	1(%r15), %eax
	movl	%esi, 76(%rsp)
	addq	%r11, %rsi
	movl	%eax, 28(%rsp)
	movq	88(%rsp), %rax
	salq	$4, %rdx
	leaq	212+d(%rip), %rcx
	addq	%rbx, %rdx
	movq	48(%rsp), %rdi
	addq	32(%rsp), %rcx
	addq	%r11, %rax
	salq	$2, %rax
	leaq	(%r11,%rdi), %r12
	movq	%rax, 16(%rsp)
	leaq	(%rbx,%rbp), %rax
	leaq	8+s(%rip), %rbx
	leaq	(%rbx,%rsi,4), %rbx
	movslq	4(%rsp), %rsi
	movq	%rax, %r8
	imulq	$2704, %rsi, %rdi
	movq	%rdi, 80(%rsp)
.L65:
	movq	40(%rsp), %rdi
	leaq	(%rdi,%rdx), %rsi
	cmpq	%rsi, 16(%rsp)
	movq	56(%rsp), %rsi
	setle	%dil
	addq	%rdx, %rsi
	cmpq	%rsi, %rbp
	setge	%sil
	orb	%dil, %sil
	je	.L86
	cmpl	$2, 76(%rsp)
	jbe	.L86
	movd	4(%rdx), %xmm6
	movdqu	(%rcx), %xmm2
	movdqu	(%rcx), %xmm3
	pshufd	$0, %xmm6, %xmm0
	psrlq	$32, %xmm2
	movdqa	%xmm0, %xmm1
	pmuludq	%xmm0, %xmm3
	psrlq	$32, %xmm1
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, (%rax)
	cmpl	$1, %r13d
	jbe	.L69
	movdqu	16(%rcx), %xmm2
	movdqu	16(%rcx), %xmm3
	psrlq	$32, %xmm2
	pmuludq	%xmm0, %xmm3
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	16(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, 16(%rax)
	cmpl	$2, %r13d
	je	.L69
	movdqu	32(%rcx), %xmm2
	movdqu	32(%rcx), %xmm3
	psrlq	$32, %xmm2
	pmuludq	%xmm0, %xmm3
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	32(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, 32(%rax)
	cmpl	$3, %r13d
	je	.L69
	movdqu	48(%rcx), %xmm2
	movdqu	48(%rcx), %xmm3
	psrlq	$32, %xmm2
	pmuludq	%xmm0, %xmm3
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	48(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, 48(%rax)
	cmpl	$4, %r13d
	je	.L69
	movdqu	64(%rcx), %xmm2
	movdqu	64(%rcx), %xmm3
	psrlq	$32, %xmm2
	pmuludq	%xmm0, %xmm3
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	64(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, 64(%rax)
	cmpl	$5, %r13d
	je	.L69
	movdqu	80(%rcx), %xmm2
	movdqu	80(%rcx), %xmm3
	psrlq	$32, %xmm2
	pmuludq	%xmm0, %xmm3
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	80(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, 80(%rax)
	cmpl	$6, %r13d
	je	.L69
	movdqu	96(%rcx), %xmm2
	movdqu	96(%rcx), %xmm3
	psrlq	$32, %xmm2
	pmuludq	%xmm0, %xmm3
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	96(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, 96(%rax)
	cmpl	$7, %r13d
	je	.L69
	movdqu	112(%rcx), %xmm2
	movdqu	112(%rcx), %xmm3
	psrlq	$32, %xmm2
	pmuludq	%xmm0, %xmm3
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	112(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, 112(%rax)
	cmpl	$8, %r13d
	je	.L69
	movdqu	128(%rcx), %xmm2
	movdqu	128(%rcx), %xmm3
	psrlq	$32, %xmm2
	pmuludq	%xmm0, %xmm3
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	128(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, 128(%rax)
	cmpl	$9, %r13d
	je	.L69
	movdqu	144(%rcx), %xmm2
	movdqu	144(%rcx), %xmm3
	psrlq	$32, %xmm2
	pmuludq	%xmm0, %xmm3
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	144(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, 144(%rax)
	cmpl	$10, %r13d
	je	.L69
	movdqu	160(%rcx), %xmm2
	movdqu	160(%rcx), %xmm3
	psrlq	$32, %xmm2
	pmuludq	%xmm0, %xmm3
	pmuludq	%xmm1, %xmm2
	pshufd	$8, %xmm3, %xmm3
	pshufd	$8, %xmm2, %xmm2
	punpckldq	%xmm2, %xmm3
	movdqu	160(%rax), %xmm2
	paddd	%xmm3, %xmm2
	movups	%xmm2, 160(%rax)
	cmpl	$11, %r13d
	je	.L69
	movdqu	176(%rcx), %xmm2
	movdqu	176(%rcx), %xmm7
	movdqu	176(%rax), %xmm5
	psrlq	$32, %xmm2
	pmuludq	%xmm7, %xmm0
	pmuludq	%xmm2, %xmm1
	pshufd	$8, %xmm0, %xmm0
	pshufd	$8, %xmm1, %xmm1
	punpckldq	%xmm1, %xmm0
	paddd	%xmm5, %xmm0
	movups	%xmm0, 176(%rax)
.L69:
	cmpl	%r15d, 72(%rsp)
	je	.L68
	movslq	%r9d, %rsi
	leaq	d(%rip), %r10
	leaq	(%rsi,%rsi,2), %rdi
	leaq	(%rsi,%rdi,4), %rsi
	movq	80(%rsp), %rdi
	leaq	(%rdi,%rsi,4), %rdi
	movq	%rdi, 8(%rsp)
	movq	48(%rsp), %rdi
	addq	8(%rsp), %rdi
	movl	(%r10,%rdi,4), %edi
	imull	4(%rdx), %edi
	leaq	s(%rip), %r10
	addl	%edi, (%r10,%r12,4)
	movslq	68(%rsp), %rdi
	cmpl	%r15d, %edi
	jg	.L68
	leaq	(%r11,%rdi), %rsi
	leaq	d(%rip), %r10
	addq	8(%rsp), %rdi
	movl	(%r10,%rdi,4), %edi
	imull	4(%rdx), %edi
	leaq	s(%rip), %r10
	addl	%edi, (%r10,%rsi,4)
	movl	64(%rsp), %edi
	cmpl	%r15d, %edi
	jg	.L68
	movq	8(%rsp), %rsi
	movslq	%edi, %r10
	leaq	(%r11,%r10), %rdi
	addq	%r10, %rsi
	leaq	d(%rip), %r10
	movl	(%r10,%rsi,4), %esi
	imull	4(%rdx), %esi
	leaq	s(%rip), %r10
	addl	%esi, (%r10,%rdi,4)
.L68:
	addl	$1, %r9d
	addq	$208, %rcx
	addq	$4, %rdx
	cmpl	28(%rsp), %r9d
	jne	.L65
.L70:
	movl	(%r8), %eax
	addq	$4, %r8
	cltd
	idivl	%r14d
	movl	%edx, -4(%r8)
	cmpq	%rbx, %r8
	jne	.L70
.L64:
	movl	24(%rsp), %eax
	movslq	%eax, %rdx
	xorl	$1, %eax
	movl	%eax, 24(%rsp)
	jmp	.L63
.L86:
	movq	%rcx, %r10
	movq	%rax, %rsi
.L67:
	movl	(%r10), %edi
	imull	4(%rdx), %edi
	addq	$4, %r10
	addl	%edi, (%rsi)
	addq	$4, %rsi
	cmpq	%rbx, %rsi
	jne	.L67
	jmp	.L68
.L44:
	cmpl	$1, (%rsp)
	jg	.L61
.L84:
	cmpl	$1, (%rsp)
	je	.L61
	xorl	%edx, %edx
.L62:
	leaq	(%rdx,%rdx,2), %rax
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	movl	$2, %ebp
	leaq	(%rdx,%rax,4), %rbx
	leaq	s(%rip), %rax
	salq	$4, %rbx
	leaq	.LC1(%rip), %r12
	addq	%rax, %rbx
	xorl	%eax, %eax
	movl	4(%rbx), %edx
	call	__printf_chk@PLT
	cmpl	$1, %r15d
	jle	.L75
.L74:
	movl	(%rbx,%rbp,4), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	cmpl	%ebp, %r15d
	jge	.L74
.L75:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	jmp	.L13
.L155:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L46
.L154:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	jmp	.L39
.L153:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	jmp	.L33
.L152:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	jmp	.L27
.L151:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	jmp	.L21
.L148:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L77
.L150:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	jmp	.L15
.L149:
	addq	$104, %rsp
	.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
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 346112
d:
	.zero	346112
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 416
s:
	.zero	416
	.section	.data.rel.ro.local,"aw"
	.align 8
.LC2:
	.quad	s
	.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:

// AOJ 1327 One-Dimensional Cellular Automaton
// 2017.10.25 bal4u
// 2018.2.9

#include <stdio.h>
#include <string.h>

int s[2][52], d[32][52][52];

//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0;
	int c = getchar_unlocked();
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
	while (c >= '0');
	return n;
}

int main()
{
	int n, m, a, b, c, t;
	int i, j, k, l, k1, k2;

	while (n = in()) {
		m = in(), a = in(), b = in(), c = in(), t = in();
		memset(d, 0, sizeof(d));
		for (i = 1; i <= n; i++) s[0][i] = in();
		for (i = 1; i <= n; i++) d[0][i][i+1] = a, d[0][i][i] = b, d[0][i][i-1] = c;
		for (k = 1; (1<<k) <= t; k++) for (i = 1; i <= n; i++) for (j = 1; j <= n; j++) {
			for (l = 1; l <= n; l++) d[k][i][j] += d[k-1][i][l] * d[k-1][l][j];
			d[k][i][j] %= m;
		}

		for (k1 = 0, k2 = 1, k = 0; (1<<k) <= t; k++) if (t & (1<<k)) {
			memset(s[k2], 0, sizeof(s[k2]));
			for (j = 1; j <= n; j++) {
				for (i = 1; i <= n; i++) s[k2][i] += s[k1][j] * d[k][j][i];
			}
			for (i = 1; i <= n; i++) s[k2][i] %= m;
			k1 = k2, k2 = !k2;
		}
		printf("%d", s[k1][1]);	for (i = 2; i <= n; i++) printf(" %d", s[k1][i]);
		putchar('\n');
	}
	return 0;
}


5 4 1 3 2 0
0 1 2 0 1
5 7 1 3 2 0
0 1 2 0 1
5 13 1 3 2 11
0 1 2 0 1
5 5 2 0 1 100
0 1 2 0 1
6 6 0 2 3 1000
0 1 2 0 1 4
20 1000 0 2 3 1000000000
0 1 2 0 1 0 1 2 0 1 0 1 2 0 1 0 1 2 0 1
30 2 1 0 1 1000000000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
30 2 1 1 1 1000000000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
30 5 2 3 1 1000000000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0
 5 4 1 3 2 0
0 1 2 0 1
5 7 1 3 2 0
0 1 2 0 1
5 13 1 3 2 11
0 1 2 0 1
5 5 2 0 1 100
0 1 2 0 1
6 6 0 2 3 1000
0 1 2 0 1 4
20 1000 0 2 3 1000000000
0 1 2 0 1 0 1 2 0 1 0 1 2 0 1 0 1 2 0 1
30 2 1 0 1 1000000000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
30 2 1 1 1 1000000000
1 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
30 5 2 3 1 1000000000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0
 5 4 1 3 3 0
0 1 2 0 1
5 7 1 3 2 0
0 1 2 0 1
5 13 1 3 2 11
0 1 2 0 1
5 5 2 0 1 100
0 1 2 0 1
6 6 0 2 3 1000
0 1 2 0 1 4
20 1000 0 2 3 1000000000
0 1 2 0 1 0 1 2 0 1 0 1 2 0 1 0 1 2 0 1
30 2 1 0 1 1000000000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
30 2 1 1 1 1000000000
1 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0
30 5 2 3 1 1000000000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0
 5 4 1 3 3 0
0 1 2 0 1
5 7 1 3 2 0
0 1 2 0 1
5 13 1 3 2 11
0 1 2 0 1
5 5 2 0 1 100
0 1 2 0 1
6 6 0 2 3 1000
0 1 2 0 1 4
20 1000 0 2 3 1000000000
0 1 2 0 1 0 1 2 0 1 0 1 2 0 1 0 1 2 0 1
30 2 1 0 1 1000000000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
30 2 1 1 1 1000000000
1 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0
30 5 2 3 1 1000000000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 -1 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0
 5 4 1 3 3 0
0 1 2 0 1
5 7 1 3 2 0
0 1 2 0 1
5 13 1 3 2 11
0 1 2 0 1
5 5 2 0 1 100
0 1 2 0 1
6 6 0 2 3 1000
0 1 2 0 1 4
20 1000 0 2 3 1000000000
0 1 2 0 1 0 1 2 0 1 0 1 2 0 1 0 1 2 0 1
30 2 1 0 1 1000000000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
30 2 1 1 1 1000000000
1 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 -1 0 0
30 5 2 3 1 1000000000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 -1 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0
 5 4 1 3 3 0
0 1 2 0 1
5 7 1 3 2 0
0 1 2 0 1
5 13 1 3 2 11
0 1 2 0 1
5 5 2 0 1 100
0 1 2 0 1
6 6 0 2 3 1000
0 1 2 0 1 4
20 1000 0 2 3 1000000000
0 1 2 0 1 0 1 2 0 1 0 1 2 0 1 0 1 2 0 1
30 2 1 0 1 1000000000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
30 2 2 1 1 1000000000
1 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 -1 0 0
30 5 2 3 1 1000000000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 -1 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0
 5 4 1 3 3 0
0 1 2 0 1
5 7 1 3 2 0
0 1 2 0 1
5 13 1 3 2 11
0 1 2 0 1
5 5 2 0 1 100
0 1 2 0 1
6 6 0 2 3 1000
0 0 2 0 1 4
20 1000 0 2 3 1000000000
0 1 2 0 1 0 1 2 0 1 0 1 2 0 1 0 1 2 0 1
30 2 1 0 1 1000000000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
30 2 2 1 1 1000000000
1 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 -1 0 0
30 5 2 3 1 1000000000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 -1 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0
 5 4 1 3 2 0
0 1 2 0 1
5 7 1 3 2 1
0 1 2 0 1
5 13 1 3 2 11
0 1 2 0 1
5 5 2 0 1 100
0 1 2 0 1
6 6 0 2 3 1000
0 1 2 0 1 4
20 1000 0 2 3 1000000000
0 1 2 0 1 0 1 2 0 1 0 1 2 0 1 0 1 2 0 1
30 2 1 0 1 1000000000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
30 2 1 1 1 1000000000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
30 5 2 3 1 1000000000
0 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0
 5 4 1 3 2 0
0 1 2 0 1
5 7 1 3 2 0
0 1 2 0 1
5 13 1 3 2 11
0 1 2 0 1
5 5 2 0 1 100
0 1 2 0 1
6 6 0 2 3 1000
0 1 2 0 1 4
20 1000 0 2 3 1000000000
0 1 2 0 1 0 1 2 0 1 0 1 2 0 1 0 1 2 0 1
30 2 1 0 1 1000000000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
30 2 1 1 1 1000000000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
30 5 2 3 1 1000000000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0
 5 4 1 3 2 0
0 1 2 0 1
5 7 1 3 2 0
0 1 2 0 1
5 13 1 5 2 11
0 1 2 0 1
5 5 2 0 1 100
0 1 2 0 1
6 6 0 2 3 1000
0 1 2 0 1 4
20 1000 0 2 3 1000000000
0 1 2 0 1 0 1 2 0 1 0 1 2 0 1 0 1 2 0 1
30 2 1 0 1 1000000000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
30 2 1 1 1 1000000000
1 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
30 5 2 3 1 1000000000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0

0 1 2 0 1
0 1 2 0 1
2 12 10 9 11
3 0 4 2 1
0 4 2 0 4 4
0 376 752 0 376 0 376 752 0 376 0 376 752 0 376 0 376 752 0 376
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 3 2 2 2 3 3 1 4 3 1 2 3 0 4 3 3 0 4 2 2 2 2 1 1 2 1 3 0
 0 1 2 0 1
0 1 2 0 1
2 12 10 9 11
3 0 4 2 1
0 4 2 0 4 4
0 376 752 0 376 0 376 752 0 376 0 376 752 0 376 0 376 752 0 376
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
1 0 0 1 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0
1 1 3 2 2 2 3 3 1 4 3 1 2 3 0 4 3 3 0 4 2 2 2 2 1 1 2 1 3 0
 0 1 2 0 1
0 1 2 0 1
2 12 10 9 11
3 0 4 2 1
0 4 2 0 4 4
0 376 752 0 376 0 376 752 0 376 0 376 752 0 376 0 376 752 0 376
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
1 0 0 1 0 0 0 1 0 0 0 1 0 0 1 0 1 0 0 0 0 1 0 1 0 0 0 1 0 0
1 1 3 2 2 2 3 3 1 4 3 1 2 3 0 4 3 3 0 4 2 2 2 2 1 1 2 1 3 0
 0 1 2 0 1
0 1 2 0 1
2 12 10 9 11
3 0 4 2 1
0 4 2 0 4 4
0 376 752 0 376 0 376 752 0 376 0 376 752 0 376 0 376 752 0 376
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
1 0 0 1 0 0 0 1 0 0 0 1 0 0 1 0 1 0 0 0 0 1 0 1 0 0 0 1 0 0
1 1 3 3 3 0 0 0 3 2 1 2 1 1 1 1 1 3 4 2 0 2 1 4 3 0 1 3 3 1
 0 1 2 0 1
0 1 2 0 1
2 12 10 9 11
3 0 4 2 1
0 4 2 0 4 4
0 376 752 0 376 0 376 752 0 376 0 376 752 0 376 0 376 752 0 376
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
1 0 0 1 0 0 0 1 0 0 0 0 0 0 1 0 1 1 0 0 0 1 0 1 0 0 0 0 0 0
1 1 3 3 3 0 0 0 3 2 1 2 1 1 1 1 1 3 4 2 0 2 1 4 3 0 1 3 3 1
 0 1 2 0 1
0 1 2 0 1
2 12 10 9 11
3 0 4 2 1
0 4 2 0 4 4
0 376 752 0 376 0 376 752 0 376 0 376 752 0 376 0 376 752 0 376
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0
1 1 3 3 3 0 0 0 3 2 1 2 1 1 1 1 1 3 4 2 0 2 1 4 3 0 1 3 3 1
 0 1 2 0 1
0 1 2 0 1
2 12 10 9 11
3 0 4 2 1
0 0 2 0 4 4
0 376 752 0 376 0 376 752 0 376 0 376 752 0 376 0 376 752 0 376
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0
1 1 3 3 3 0 0 0 3 2 1 2 1 1 1 1 1 3 4 2 0 2 1 4 3 0 1 3 3 1
 0 1 2 0 1
2 0 0 4 3
2 12 10 9 11
3 0 4 2 1
0 4 2 0 4 4
0 376 752 0 376 0 376 752 0 376 0 376 752 0 376 0 376 752 0 376
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
4 1 3 4 3 0 1 2 4 2 3 0 1 1 4 1 1 4 0 4 2 2 2 2 1 1 2 1 3 0
 0 1 2 0 1
0 1 2 0 1
2 12 10 9 11
3 0 4 2 1
0 4 2 0 4 4
0 376 752 0 376 0 376 752 0 376 0 376 752 0 376 0 376 752 0 376
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 4 3 0 4 0 0 4 2 4 0 0 4 2 2 3 2 3 2 2 1 4 4 3 3 2 1 2 4
 0 1 2 0 1
0 1 2 0 1
1 6 5 4 12
3 0 4 2 1
0 4 2 0 4 4
0 376 752 0 376 0 376 752 0 376 0 376 752 0 376 0 376 752 0 376
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
1 0 0 1 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0
1 1 3 2 2 2 3 3 1 4 3 1 2 3 0 4 3 3 0 4 2 2 2 2 1 1 2 1 3 0

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

```c
// AOJ 1327 One-Dimensional Cellular Automaton
// 2017.10.25 bal4u
// 2018.2.9

#include <stdio.h>
#include <string.h>

int s[2][52], d[32][52][52];

//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0;
	int c = getchar_unlocked();
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
	while (c >= '0');
	return n;
}

int main()
{
	int n, m, a, b, c, t;
	int i, j, k, l, k1, k2;

	while (n = in()) {
		m = in(), a = in(), b = in(), c = in(), t = in();
		memset(d, 0, sizeof(d));
		for (i = 1; i <= n; i++) s[0][i] = in();
		for (i = 1; i <= n; i++) d[0][i][i+1] = a, d[0][i][i] = b, d[0][i][i-1] = c;
		for (k = 1; (1<<k) <= t; k++) for (i = 1; i <= n; i++) for (j = 1; j <= n; j++) {
			for (l = 1; l <= n; l++) d[k][i][j] += d[k-1][i][l] * d[k-1][l][j];
			d[k][i][j] %= m;
		}

		for (k1 = 0, k2 = 1, k = 0; (1<<k) <= t; k++) if (t & (1<<k)) {
			memset(s[k2], 0, sizeof(s[k2]));
			for (j = 1; j <= n; j++) {
				for (i = 1; i <= n; i++) s[k2][i] += s[k1][j] * d[k][j][i];
			}
			for (i = 1; i <= n; i++) s[k2][i] %= m;
			k1 = k2, k2 = !k2;
		}
		printf("%d", s[k1][1]);	for (i = 2; i <= n; i++) printf(" %d", s[k1][i]);
		putchar('\n');
	}
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 416
s:
	.zero	416
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 346112
d:
	.zero	346112
	.text
	.globl	in
	.type	in, @function
in:
.LFB0:
	.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
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %eax
	leal	0(,%rax,8), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	in, .-in
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	jmp	.L5
.L29:
	movl	$0, %eax
	call	in
	movl	%eax, -20(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -16(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -12(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -8(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -4(%rbp)
	movl	$346112, %edx
	movl	$0, %esi
	leaq	d(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -48(%rbp)
	jmp	.L6
.L7:
	movl	$0, %eax
	call	in
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	s(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -48(%rbp)
.L6:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L7
	movl	$1, -48(%rbp)
	jmp	.L8
.L9:
	movl	-48(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rcx
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rdx
	movl	-16(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-48(%rbp), %eax
	cltq
	imulq	$212, %rax, %rax
	leaq	d(%rip), %rcx
	movl	-12(%rbp), %edx
	movl	%edx, (%rax,%rcx)
	movl	-48(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -48(%rbp)
.L8:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L9
	movl	$1, -40(%rbp)
	jmp	.L10
.L17:
	movl	$1, -48(%rbp)
	jmp	.L11
.L16:
	movl	$1, -44(%rbp)
	jmp	.L12
.L15:
	movl	$1, -36(%rbp)
	jmp	.L13
.L14:
	movl	-44(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40(%rbp), %eax
	cltq
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %rsi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-40(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-40(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdi
	movslq	%edx, %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %r8
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%r8, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	%ecx, %eax
	leal	(%rsi,%rax), %ecx
	movl	-44(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40(%rbp), %eax
	cltq
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -36(%rbp)
.L13:
	movl	-36(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L14
	movl	-44(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40(%rbp), %eax
	cltq
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %rsi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltd
	idivl	-20(%rbp)
	movl	%edx, %ecx
	movl	-44(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40(%rbp), %eax
	cltq
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -44(%rbp)
.L12:
	movl	-44(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L15
	addl	$1, -48(%rbp)
.L11:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L16
	addl	$1, -40(%rbp)
.L10:
	movl	-40(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cmpl	%eax, -4(%rbp)
	jge	.L17
	movl	$0, -32(%rbp)
	movl	$1, -28(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L18
.L26:
	movl	-40(%rbp), %eax
	movl	-4(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L19
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	leaq	s(%rip), %rdx
	addq	%rdx, %rax
	movl	$208, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -44(%rbp)
	jmp	.L20
.L23:
	movl	$1, -48(%rbp)
	jmp	.L21
.L22:
	movl	-48(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-44(%rbp), %eax
	movslq	%eax, %rcx
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-48(%rbp), %eax
	movslq	%eax, %rdi
	movl	-40(%rbp), %eax
	cltq
	movl	-44(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %r8
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%r8, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	%ecx, %eax
	leal	(%rsi,%rax), %ecx
	movl	-48(%rbp), %eax
	movslq	%eax, %rsi
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -48(%rbp)
.L21:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L22
	addl	$1, -44(%rbp)
.L20:
	movl	-44(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L23
	movl	$1, -48(%rbp)
	jmp	.L24
.L25:
	movl	-48(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltd
	idivl	-20(%rbp)
	movl	%edx, %ecx
	movl	-48(%rbp), %eax
	movslq	%eax, %rsi
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -48(%rbp)
.L24:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L25
	movl	-28(%rbp), %eax
	movl	%eax, -32(%rbp)
	cmpl	$0, -28(%rbp)
	sete	%al
	movzbl	%al, %eax
	movl	%eax, -28(%rbp)
.L19:
	addl	$1, -40(%rbp)
.L18:
	movl	-40(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cmpl	%eax, -4(%rbp)
	jge	.L26
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$2, -48(%rbp)
	jmp	.L27
.L28:
	movl	-48(%rbp), %eax
	movslq	%eax, %rcx
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -48(%rbp)
.L27:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L28
	movl	$10, %edi
	call	putchar@PLT
.L5:
	movl	$0, %eax
	call	in
	movl	%eax, -24(%rbp)
	cmpl	$0, -24(%rbp)
	jne	.L29
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 416
s:
	.zero	416
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 346112
d:
	.zero	346112
	.text
	.globl	in
	.type	in, @function
in:
.LFB0:
	.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
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %eax
	leal	0(,%rax,8), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	in, .-in
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	jmp	.L5
.L29:
	movl	$0, %eax
	call	in
	movl	%eax, -20(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -16(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -12(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -8(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -4(%rbp)
	movl	$346112, %edx
	movl	$0, %esi
	leaq	d(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -48(%rbp)
	jmp	.L6
.L7:
	movl	$0, %eax
	call	in
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	s(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -48(%rbp)
.L6:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L7
	movl	$1, -48(%rbp)
	jmp	.L8
.L9:
	movl	-48(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rcx
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rdx
	movl	-16(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-48(%rbp), %eax
	cltq
	imulq	$212, %rax, %rax
	leaq	d(%rip), %rcx
	movl	-12(%rbp), %edx
	movl	%edx, (%rax,%rcx)
	movl	-48(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -48(%rbp)
.L8:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L9
	movl	$1, -40(%rbp)
	jmp	.L10
.L17:
	movl	$1, -48(%rbp)
	jmp	.L11
.L16:
	movl	$1, -44(%rbp)
	jmp	.L12
.L15:
	movl	$1, -36(%rbp)
	jmp	.L13
.L14:
	movl	-44(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40(%rbp), %eax
	cltq
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %rsi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-40(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-40(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdi
	movslq	%edx, %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %r8
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%r8, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	%ecx, %eax
	leal	(%rsi,%rax), %ecx
	movl	-44(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40(%rbp), %eax
	cltq
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -36(%rbp)
.L13:
	movl	-36(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L14
	movl	-44(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40(%rbp), %eax
	cltq
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %rsi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltd
	idivl	-20(%rbp)
	movl	%edx, %ecx
	movl	-44(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40(%rbp), %eax
	cltq
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -44(%rbp)
.L12:
	movl	-44(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L15
	addl	$1, -48(%rbp)
.L11:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L16
	addl	$1, -40(%rbp)
.L10:
	movl	-40(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cmpl	%eax, -4(%rbp)
	jge	.L17
	movl	$0, -32(%rbp)
	movl	$1, -28(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L18
.L26:
	movl	-40(%rbp), %eax
	movl	-4(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L19
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	leaq	s(%rip), %rdx
	addq	%rdx, %rax
	movl	$208, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -44(%rbp)
	jmp	.L20
.L23:
	movl	$1, -48(%rbp)
	jmp	.L21
.L22:
	movl	-48(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-44(%rbp), %eax
	movslq	%eax, %rcx
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-48(%rbp), %eax
	movslq	%eax, %rdi
	movl	-40(%rbp), %eax
	cltq
	movl	-44(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2704, %rax, %r8
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%r8, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	%ecx, %eax
	leal	(%rsi,%rax), %ecx
	movl	-48(%rbp), %eax
	movslq	%eax, %rsi
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -48(%rbp)
.L21:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L22
	addl	$1, -44(%rbp)
.L20:
	movl	-44(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L23
	movl	$1, -48(%rbp)
	jmp	.L24
.L25:
	movl	-48(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltd
	idivl	-20(%rbp)
	movl	%edx, %ecx
	movl	-48(%rbp), %eax
	movslq	%eax, %rsi
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -48(%rbp)
.L24:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L25
	movl	-28(%rbp), %eax
	movl	%eax, -32(%rbp)
	cmpl	$0, -28(%rbp)
	sete	%al
	movzbl	%al, %eax
	movl	%eax, -28(%rbp)
.L19:
	addl	$1, -40(%rbp)
.L18:
	movl	-40(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cmpl	%eax, -4(%rbp)
	jge	.L26
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$2, -48(%rbp)
	jmp	.L27
.L28:
	movl	-48(%rbp), %eax
	movslq	%eax, %rcx
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -48(%rbp)
.L27:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L28
	movl	$10, %edi
	call	putchar@PLT
.L5:
	movl	$0, %eax
	call	in
	movl	%eax, -24(%rbp)
	cmpl	$0, -24(%rbp)
	jne	.L29
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
