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

```c
// AOJ 2578 Disciple Life is Hard
// 2018.3.16 bal4u

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

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

// library //

int e[102], c[102], h[102], a[102];
int p[102];
int dp1[102][102*102], dp2[102][102][102], dp3[102][102];

int main()
{
	int S, T, U, N, O, D, i, j, s, x;

	S = in(), T = in(), U = in(), N = in(), O = in(), D = in();
	for (i = 0; i < T; i++) e[i] = in(), c[i] = in();
	for (i = 0; i < N; i++) h[i] = in(), a[i] = in();

	memset(dp1, -1, sizeof(dp1)), dp1[0][0] = 0;
	for (i = 1; i <= N; i++) for (j = 0; j <= 10000; j++) for (s = 0; s*a[i-1] <= j; s++) {
		if (dp1[i-1][j-s*a[i-1]] >= 0) {
			x = dp1[i-1][j-s*a[i-1]]+h[i-1]*s;
			if (dp1[i][j] < x) dp1[i][j] = x;
		}
	}

	memset(dp2, -1, sizeof(dp2)); dp2[0][0][0] = 0;
	for (i = 1; i <= T; i++) {
		dp2[i][0][0] = 0;
		for (j = 1; j <= i; j++) for (s = 0; s <= S; s++) {
			dp2[i][j][s] = dp2[i-1][j][s];
			if (s-e[i-1] >= 0 && dp2[i-1][j-1][s-e[i-1]] >= 0) {
				x = dp2[i-1][j-1][s-e[i-1]]+c[i-1];
				if (dp2[i][j][s] < x) dp2[i][j][s] = x;
			}
		}
	}

	memset(p, -1, sizeof(p));
    for (s = 0; s <= S; s++) for (i = 0; i <= dp2[T][U][s]; i++) if (p[s] < dp1[N][i]) p[s] = dp1[N][i];

	memset(dp3, -1, sizeof(dp3)), memset(dp3[0], 0, sizeof(dp3[0]));
	for (i = 1; i <= D; i++) for (s = 0; s <= S; s++) for (j = 0; j <= s; j++) {
		x = s-j+O; if (x > S) x = S;
		if (dp3[i-1][x] >= 0 && p[j] >= 0) {
			int t = dp3[i-1][x] + p[j];
			if (dp3[i][s] < t) dp3[i][s] = t;
		}
	}
	printf("%d\n", dp3[D][S]);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.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
	.globl	e
	.bss
	.align 32
	.type	e, @object
	.size	e, 408
e:
	.zero	408
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 408
c:
	.zero	408
	.globl	h
	.align 32
	.type	h, @object
	.size	h, 408
h:
	.zero	408
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 408
a:
	.zero	408
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 408
p:
	.zero	408
	.globl	dp1
	.align 32
	.type	dp1, @object
	.size	dp1, 4244832
dp1:
	.zero	4244832
	.globl	dp2
	.align 32
	.type	dp2, @object
	.size	dp2, 4244832
dp2:
	.zero	4244832
	.globl	dp3
	.align 32
	.type	dp3, @object
	.size	dp3, 41616
dp3:
	.zero	41616
	.section	.rodata
.LC0:
	.string	"%d\n"
	.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
	movl	$0, %eax
	call	in
	movl	%eax, -28(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -24(%rbp)
	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, -44(%rbp)
	jmp	.L5
.L6:
	movl	$0, %eax
	call	in
	movl	-44(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	e(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-44(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -44(%rbp)
.L5:
	movl	-44(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L6
	movl	$0, -44(%rbp)
	jmp	.L7
.L8:
	movl	$0, %eax
	call	in
	movl	-44(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	h(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-44(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -44(%rbp)
.L7:
	movl	-44(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L8
	movl	$4244832, %edx
	movl	$-1, %esi
	leaq	dp1(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, dp1(%rip)
	movl	$1, -44(%rbp)
	jmp	.L9
.L15:
	movl	$0, -40(%rbp)
	jmp	.L10
.L14:
	movl	$0, -36(%rbp)
	jmp	.L11
.L13:
	movl	-44(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	-36(%rbp), %eax
	movl	%eax, %edx
	movl	-40(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$10404, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp1(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L12
	movl	-44(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	-36(%rbp), %eax
	movl	%eax, %edx
	movl	-40(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$10404, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp1(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	h(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	-36(%rbp), %eax
	addl	%ecx, %eax
	movl	%eax, -32(%rbp)
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-44(%rbp), %eax
	cltq
	imulq	$10404, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -32(%rbp)
	jle	.L12
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-44(%rbp), %eax
	cltq
	imulq	$10404, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp1(%rip), %rdx
	movl	-32(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L12:
	addl	$1, -36(%rbp)
.L11:
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	-36(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jge	.L13
	addl	$1, -40(%rbp)
.L10:
	cmpl	$10000, -40(%rbp)
	jle	.L14
	addl	$1, -44(%rbp)
.L9:
	movl	-44(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jle	.L15
	movl	$4244832, %edx
	movl	$-1, %esi
	leaq	dp2(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, dp2(%rip)
	movl	$1, -44(%rbp)
	jmp	.L16
.L22:
	movl	-44(%rbp), %eax
	cltq
	imulq	$41616, %rax, %rax
	leaq	dp2(%rip), %rdx
	movl	$0, (%rax,%rdx)
	movl	$1, -40(%rbp)
	jmp	.L17
.L21:
	movl	$0, -36(%rbp)
	jmp	.L18
.L20:
	movl	-44(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$10404, %rdx, %rdx
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp2(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-36(%rbp), %edx
	movslq	%edx, %rsi
	movl	-44(%rbp), %edx
	movslq	%edx, %rcx
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$10404, %rcx, %rcx
	imulq	$102, %rdx, %rdx
	addq	%rcx, %rdx
	addq	%rsi, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp2(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	e(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	testl	%eax, %eax
	js	.L19
	movl	-44(%rbp), %eax
	leal	-1(%rax), %esi
	movl	-40(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	e(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %rdi
	movslq	%esi, %rdx
	movslq	%ecx, %rax
	imulq	$10404, %rdx, %rdx
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp2(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L19
	movl	-44(%rbp), %eax
	leal	-1(%rax), %esi
	movl	-40(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	e(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %rdi
	movslq	%esi, %rdx
	movslq	%ecx, %rax
	imulq	$10404, %rdx, %rdx
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp2(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -32(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$10404, %rdx, %rdx
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -32(%rbp)
	jle	.L19
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$10404, %rdx, %rdx
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp2(%rip), %rdx
	movl	-32(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L19:
	addl	$1, -36(%rbp)
.L18:
	movl	-36(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L20
	addl	$1, -40(%rbp)
.L17:
	movl	-40(%rbp), %eax
	cmpl	-44(%rbp), %eax
	jle	.L21
	addl	$1, -44(%rbp)
.L16:
	movl	-44(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L22
	movl	$408, %edx
	movl	$-1, %esi
	leaq	p(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -36(%rbp)
	jmp	.L23
.L27:
	movl	$0, -44(%rbp)
	jmp	.L24
.L26:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-44(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	cltq
	imulq	$10404, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp1(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L25
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$10404, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp1(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L25:
	addl	$1, -44(%rbp)
.L24:
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$10404, %rdx, %rdx
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -44(%rbp)
	jle	.L26
	addl	$1, -36(%rbp)
.L23:
	movl	-36(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L27
	movl	$41616, %edx
	movl	$-1, %esi
	leaq	dp3(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$408, %edx
	movl	$0, %esi
	leaq	dp3(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -44(%rbp)
	jmp	.L28
.L35:
	movl	$0, -36(%rbp)
	jmp	.L29
.L34:
	movl	$0, -40(%rbp)
	jmp	.L30
.L33:
	movl	-36(%rbp), %eax
	subl	-40(%rbp), %eax
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L31
	movl	-28(%rbp), %eax
	movl	%eax, -32(%rbp)
.L31:
	movl	-44(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-32(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$102, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp3(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L32
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L32
	movl	-44(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-32(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$102, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp3(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	movl	-44(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp3(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L32
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	movl	-44(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp3(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L32:
	addl	$1, -40(%rbp)
.L30:
	movl	-40(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jle	.L33
	addl	$1, -36(%rbp)
.L29:
	movl	-36(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L34
	addl	$1, -44(%rbp)
.L28:
	movl	-44(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L35
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-8(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp3(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	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
.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\n"
	.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
	xorl	%eax, %eax
	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	$72, %rsp
	.cfi_def_cfa_offset 128
	call	in
	movl	%eax, %ebx
	xorl	%eax, %eax
	call	in
	movl	%eax, (%rsp)
	movl	%eax, %r15d
	xorl	%eax, %eax
	call	in
	movl	%eax, 44(%rsp)
	xorl	%eax, %eax
	call	in
	movl	%eax, 4(%rsp)
	xorl	%eax, %eax
	call	in
	movl	%eax, %ebp
	xorl	%eax, %eax
	call	in
	movl	%eax, 40(%rsp)
	testl	%r15d, %r15d
	jle	.L29
	movl	(%rsp), %eax
	leaq	c(%rip), %r12
	leaq	e(%rip), %r13
	leaq	4(%r12), %rdx
	subl	$1, %eax
	leaq	(%rdx,%rax,4), %r14
.L28:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L90
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L17:
	xorl	%r15d, %r15d
	jmp	.L21
.L18:
	leaq	1(%rdx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L20
.L19:
	movq	%rsi, %rdx
.L21:
	leal	(%r15,%r15,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r15d
	cmpq	%rcx, %rdx
	jb	.L18
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	cmpl	$47, %eax
	jg	.L19
.L20:
	movl	%r15d, 0(%r13)
	cmpq	%rsi, %rcx
	jbe	.L91
	leaq	1(%rsi), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rsi), %eax
.L23:
	xorl	%r15d, %r15d
	jmp	.L27
.L24:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L26
.L25:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L27:
	leal	(%r15,%r15,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r15d
	cmpq	%rcx, %rdx
	jb	.L24
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L26
	movq	stdin(%rip), %rdi
	jmp	.L25
.L26:
	movl	%r15d, (%r12)
	addq	$4, %r12
	addq	$4, %r13
	cmpq	%r14, %r12
	jne	.L28
.L29:
	movl	4(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L92
	movl	4(%rsp), %eax
	leaq	a(%rip), %r12
	leaq	h(%rip), %r13
	movq	%r13, %r15
	movq	%r12, %r14
	subl	$1, %eax
	leaq	0(,%rax,4), %rdi
	leaq	4(%r12), %rax
	addq	%rdi, %rax
	movq	%rdi, 16(%rsp)
	movq	%rax, 24(%rsp)
.L42:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L93
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L31:
	xorl	%esi, %esi
	movq	%r15, 8(%rsp)
	movq	%r14, %r15
	movq	%r13, %r14
	movq	%r12, %r13
	movl	%ebp, %r12d
	movl	%ebx, %ebp
	movl	%esi, %ebx
	jmp	.L35
.L32:
	leaq	1(%rdx), %r8
	movq	%r8, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L84
.L33:
	movq	%r8, %rdx
.L35:
	leal	(%rbx,%rbx,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %ebx
	cmpq	%rcx, %rdx
	jb	.L32
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %r8
	movq	16(%rdi), %rcx
	cmpl	$47, %eax
	jg	.L33
.L84:
	movl	%ebx, %esi
	movl	%ebp, %ebx
	movl	%r12d, %ebp
	movq	%r13, %r12
	movq	%r14, %r13
	movq	%r15, %r14
	movq	8(%rsp), %r15
	movl	%esi, (%r15)
	cmpq	%rcx, %r8
	jnb	.L94
	leaq	1(%r8), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%r8), %eax
.L37:
	xorl	%esi, %esi
	movq	%r15, 8(%rsp)
	movq	%r14, %r15
	movq	%r13, %r14
	movq	%r12, %r13
	movl	%ebp, %r12d
	movl	%ebx, %ebp
	movl	%esi, %ebx
	jmp	.L41
.L38:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L40
.L39:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L41:
	leal	(%rbx,%rbx,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %ebx
	cmpq	%rcx, %rdx
	jb	.L38
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L40
	movq	stdin(%rip), %rdi
	jmp	.L39
.L40:
	movl	%ebx, %esi
	movl	%ebp, %ebx
	movl	%r12d, %ebp
	movq	%r13, %r12
	movq	%r14, %r13
	movq	%r15, %r14
	movq	8(%rsp), %r15
	movl	%esi, (%r14)
	addq	$4, %r14
	addq	$4, %r15
	cmpq	24(%rsp), %r14
	jne	.L42
	leaq	dp1(%rip), %rcx
	movl	$4244832, %edx
	movl	$-1, %esi
	movq	%rcx, %rdi
	call	memset@PLT
	movq	16(%rsp), %r15
	movl	$0, dp1(%rip)
	movq	%rax, 32(%rsp)
	movq	%rax, %r14
	leaq	4+h(%rip), %rax
	addq	%rax, %r15
.L68:
	movl	(%r12), %r10d
	movq	%r14, %r8
	xorl	%edi, %edi
	movl	%r10d, %r9d
	negl	%r9d
	movslq	%r9d, %r9
	salq	$2, %r9
	.p2align 4,,10
	.p2align 3
.L48:
	movq	%r8, %rdx
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L45:
	movl	(%rdx), %r11d
	testl	%r11d, %r11d
	js	.L44
	movl	0(%r13), %esi
	imull	%ecx, %esi
	addl	%r11d, %esi
	cmpl	%esi, 41616(%r8)
	jge	.L44
	movl	%esi, 41616(%r8)
.L44:
	addl	%r10d, %eax
	addl	$1, %ecx
	addq	%r9, %rdx
	cmpl	%eax, %edi
	jge	.L45
	addl	$1, %edi
	addq	$4, %r8
	cmpl	$10001, %edi
	jne	.L48
	addq	$4, %r13
	addq	$4, %r12
	addq	$41616, %r14
	cmpq	%r15, %r13
	jne	.L68
.L47:
	leaq	dp2(%rip), %r10
	movl	$4244832, %edx
	movl	$-1, %esi
	movq	%r10, %rdi
	call	memset@PLT
	movl	(%rsp), %edx
	movl	$0, dp2(%rip)
	movq	%rax, %r10
	testl	%edx, %edx
	jle	.L57
	leaq	e(%rip), %rax
	movl	%ebp, 60(%rsp)
	leaq	c(%rip), %r13
	xorl	%r9d, %r9d
	movq	%rax, 16(%rsp)
	movl	(%rsp), %eax
	leaq	4(%r13), %rdx
	movq	$-41616, %r8
	movq	$41616, 24(%rsp)
	movl	$102, %r14d
	movq	$0, 8(%rsp)
	subl	$1, %eax
	leaq	(%rdx,%rax,4), %rax
	movq	%rax, 48(%rsp)
	leal	1(%rbx), %eax
	movl	%eax, 56(%rsp)
.L56:
	movq	24(%rsp), %rax
	movl	$0, (%r10,%rax)
	testl	%ebx, %ebx
	js	.L52
	movq	16(%rsp), %rax
	movl	56(%rsp), %r11d
	movq	8(%rsp), %rbp
	movl	(%rax), %eax
	movl	%eax, %r12d
	subl	%eax, %r11d
	negl	%r12d
	movslq	%r12d, %r15
.L53:
	leaq	(%r15,%rbp), %rdx
	leaq	42024+dp2(%rip), %rax
	leaq	(%r10,%rdx,4), %rcx
	leaq	(%rax,%rbp,4), %rax
	movl	%r12d, %edx
	.p2align 4,,10
	.p2align 3
.L55:
	leaq	(%rax,%r8), %rsi
	movl	(%rsi,%r9), %edi
	movl	%edi, (%rax)
	testl	%edx, %edx
	js	.L54
	movl	(%rcx), %esi
	testl	%esi, %esi
	js	.L54
	addl	0(%r13), %esi
	cmpl	%esi, %edi
	jge	.L54
	movl	%esi, (%rax)
	.p2align 4,,10
	.p2align 3
.L54:
	addl	$1, %edx
	addq	$4, %rax
	addq	$4, %rcx
	cmpl	%r11d, %edx
	jne	.L55
	addq	$102, %rbp
	cmpq	%r14, %rbp
	jne	.L53
.L52:
	addq	$10404, 8(%rsp)
	addq	$10506, %r14
	addq	$4, %r13
	subq	$41616, %r8
	addq	$4, 16(%rsp)
	addq	$41616, %r9
	addq	$41616, 24(%rsp)
	cmpq	48(%rsp), %r13
	jne	.L56
	movl	60(%rsp), %ebp
.L57:
	movl	$51, %r12d
	leaq	p(%rip), %rsi
	movq	$-1, %rax
	movq	%r12, %rcx
	movq	%rsi, %rdi
	rep stosq
	movq	%rcx, %r12
	testl	%ebx, %ebx
	js	.L50
	movslq	44(%rsp), %rdi
	movslq	(%rsp), %rax
	movslq	%ebx, %r12
	leaq	4+dp1(%rip), %r13
	movslq	4(%rsp), %r9
	imulq	$41616, %rax, %rax
	imulq	$408, %rdi, %rdi
	imulq	$41616, %r9, %r11
	addq	32(%rsp), %r11
	imulq	$10404, %r9, %r9
	addq	%rax, %rdi
	leaq	4(%rsi), %rax
	addq	%r10, %rdi
	leaq	(%rax,%r12,4), %r10
.L51:
	movslq	(%rdi), %rax
	testl	%eax, %eax
	js	.L62
	addq	%r9, %rax
	movl	(%rsi), %ecx
	leaq	0(%r13,%rax,4), %r8
	movq	%r11, %rax
.L59:
	movl	(%rax), %edx
	cmpl	%ecx, %edx
	jle	.L58
	movl	%edx, (%rsi)
	movl	%edx, %ecx
.L58:
	addq	$4, %rax
	cmpq	%rax, %r8
	jne	.L59
.L62:
	addq	$4, %rsi
	addq	$4, %rdi
	cmpq	%rsi, %r10
	jne	.L51
	leaq	dp3(%rip), %r8
	movl	$41616, %edx
	movl	$-1, %esi
	xorl	%r13d, %r13d
	movq	%r8, %rdi
	call	memset@PLT
	movl	$51, %ecx
	leal	1(%rbx), %r11d
	movq	%rax, %r8
	xorl	%eax, %eax
	movq	%r8, %rdi
	rep stosq
	movl	40(%rsp), %eax
	testl	%eax, %eax
	jle	.L67
.L63:
	movslq	%r13d, %rsi
	movq	%rdi, %r9
	xorl	%r10d, %r10d
	imulq	$102, %rsi, %rsi
.L66:
	leal	(%r10,%rbp), %edx
	leaq	p(%rip), %rcx
	jmp	.L65
	.p2align 4,,10
	.p2align 3
.L70:
	movl	%eax, %edx
.L65:
	cmpl	%ebx, %edx
	movl	%ebx, %eax
	cmovle	%edx, %eax
	cltq
	addq	%rsi, %rax
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	js	.L64
	movl	(%rcx), %r14d
	testl	%r14d, %r14d
	js	.L64
	addl	%r14d, %eax
	cmpl	%eax, (%r9)
	jge	.L64
	movl	%eax, (%r9)
	.p2align 4,,10
	.p2align 3
.L64:
	leal	-1(%rdx), %eax
	addq	$4, %rcx
	cmpl	%ebp, %edx
	jne	.L70
	addl	$1, %r10d
	addq	$4, %r9
	cmpl	%r11d, %r10d
	jne	.L66
	addl	$1, %r13d
	addq	$408, %rdi
	cmpl	%r13d, 40(%rsp)
	jne	.L63
.L67:
	movslq	40(%rsp), %rax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	imulq	$102, %rax, %rax
	addq	%r12, %rax
	movl	(%r8,%rax,4), %edx
	xorl	%eax, %eax
	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
.L94:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L37
.L93:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L31
.L90:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L17
.L91:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L23
.L92:
	leaq	dp1(%rip), %rax
	movl	$4244832, %edx
	orl	$-1, %esi
	movq	%rax, %rdi
	movq	%rax, 32(%rsp)
	call	memset@PLT
	movl	$0, dp1(%rip)
	jmp	.L47
.L50:
	leaq	dp3(%rip), %r8
	movl	$41616, %edx
	orl	$-1, %esi
	movq	%r8, %rdi
	call	memset@PLT
	movl	$51, %ecx
	movq	%rax, %rdi
	movq	%rax, %r8
	movq	%r12, %rax
	movslq	%ebx, %r12
	rep stosq
	jmp	.L67
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	dp3
	.bss
	.align 32
	.type	dp3, @object
	.size	dp3, 41616
dp3:
	.zero	41616
	.globl	dp2
	.align 32
	.type	dp2, @object
	.size	dp2, 4244832
dp2:
	.zero	4244832
	.globl	dp1
	.align 32
	.type	dp1, @object
	.size	dp1, 4244832
dp1:
	.zero	4244832
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 408
p:
	.zero	408
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 408
a:
	.zero	408
	.globl	h
	.align 32
	.type	h, @object
	.size	h, 408
h:
	.zero	408
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 408
c:
	.zero	408
	.globl	e
	.align 32
	.type	e, @object
	.size	e, 408
e:
	.zero	408
	.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\n"
	.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
	xorl	%eax, %eax
	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	$72, %rsp
	.cfi_def_cfa_offset 128
	call	in
	movl	%eax, %ebx
	xorl	%eax, %eax
	call	in
	movl	%eax, (%rsp)
	movl	%eax, %r15d
	xorl	%eax, %eax
	call	in
	movl	%eax, 44(%rsp)
	xorl	%eax, %eax
	call	in
	movl	%eax, 4(%rsp)
	xorl	%eax, %eax
	call	in
	movl	%eax, %ebp
	xorl	%eax, %eax
	call	in
	movl	%eax, 40(%rsp)
	testl	%r15d, %r15d
	jle	.L29
	movl	(%rsp), %eax
	leaq	c(%rip), %r12
	leaq	e(%rip), %r13
	leaq	4(%r12), %rdx
	subl	$1, %eax
	leaq	(%rdx,%rax,4), %r14
.L28:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L90
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L17:
	xorl	%r15d, %r15d
	jmp	.L21
.L18:
	leaq	1(%rdx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L20
.L19:
	movq	%rsi, %rdx
.L21:
	leal	(%r15,%r15,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r15d
	cmpq	%rcx, %rdx
	jb	.L18
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	cmpl	$47, %eax
	jg	.L19
.L20:
	movl	%r15d, 0(%r13)
	cmpq	%rsi, %rcx
	jbe	.L91
	leaq	1(%rsi), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rsi), %eax
.L23:
	xorl	%r15d, %r15d
	jmp	.L27
.L24:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L26
.L25:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L27:
	leal	(%r15,%r15,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r15d
	cmpq	%rcx, %rdx
	jb	.L24
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L26
	movq	stdin(%rip), %rdi
	jmp	.L25
.L26:
	movl	%r15d, (%r12)
	addq	$4, %r12
	addq	$4, %r13
	cmpq	%r14, %r12
	jne	.L28
.L29:
	movl	4(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L92
	movl	4(%rsp), %eax
	leaq	a(%rip), %r12
	leaq	h(%rip), %r13
	movq	%r13, %r15
	movq	%r12, %r14
	subl	$1, %eax
	leaq	0(,%rax,4), %rdi
	leaq	4(%r12), %rax
	addq	%rdi, %rax
	movq	%rdi, 16(%rsp)
	movq	%rax, 24(%rsp)
.L42:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L93
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L31:
	xorl	%esi, %esi
	movq	%r15, 8(%rsp)
	movq	%r14, %r15
	movq	%r13, %r14
	movq	%r12, %r13
	movl	%ebp, %r12d
	movl	%ebx, %ebp
	movl	%esi, %ebx
	jmp	.L35
.L32:
	leaq	1(%rdx), %r8
	movq	%r8, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L84
.L33:
	movq	%r8, %rdx
.L35:
	leal	(%rbx,%rbx,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %ebx
	cmpq	%rcx, %rdx
	jb	.L32
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %r8
	movq	16(%rdi), %rcx
	cmpl	$47, %eax
	jg	.L33
.L84:
	movl	%ebx, %esi
	movl	%ebp, %ebx
	movl	%r12d, %ebp
	movq	%r13, %r12
	movq	%r14, %r13
	movq	%r15, %r14
	movq	8(%rsp), %r15
	movl	%esi, (%r15)
	cmpq	%rcx, %r8
	jnb	.L94
	leaq	1(%r8), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%r8), %eax
.L37:
	xorl	%esi, %esi
	movq	%r15, 8(%rsp)
	movq	%r14, %r15
	movq	%r13, %r14
	movq	%r12, %r13
	movl	%ebp, %r12d
	movl	%ebx, %ebp
	movl	%esi, %ebx
	jmp	.L41
.L38:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L40
.L39:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L41:
	leal	(%rbx,%rbx,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %ebx
	cmpq	%rcx, %rdx
	jb	.L38
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L40
	movq	stdin(%rip), %rdi
	jmp	.L39
.L40:
	movl	%ebx, %esi
	movl	%ebp, %ebx
	movl	%r12d, %ebp
	movq	%r13, %r12
	movq	%r14, %r13
	movq	%r15, %r14
	movq	8(%rsp), %r15
	movl	%esi, (%r14)
	addq	$4, %r14
	addq	$4, %r15
	cmpq	24(%rsp), %r14
	jne	.L42
	leaq	dp1(%rip), %rcx
	movl	$4244832, %edx
	movl	$-1, %esi
	movq	%rcx, %rdi
	call	memset@PLT
	movq	16(%rsp), %r15
	movl	$0, dp1(%rip)
	movq	%rax, 32(%rsp)
	movq	%rax, %r14
	leaq	4+h(%rip), %rax
	addq	%rax, %r15
.L68:
	movl	(%r12), %r10d
	movq	%r14, %r8
	xorl	%edi, %edi
	movl	%r10d, %r9d
	negl	%r9d
	movslq	%r9d, %r9
	salq	$2, %r9
	.p2align 4,,10
	.p2align 3
.L48:
	movq	%r8, %rdx
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L45:
	movl	(%rdx), %r11d
	testl	%r11d, %r11d
	js	.L44
	movl	0(%r13), %esi
	imull	%ecx, %esi
	addl	%r11d, %esi
	cmpl	%esi, 41616(%r8)
	jge	.L44
	movl	%esi, 41616(%r8)
.L44:
	addl	%r10d, %eax
	addl	$1, %ecx
	addq	%r9, %rdx
	cmpl	%eax, %edi
	jge	.L45
	addl	$1, %edi
	addq	$4, %r8
	cmpl	$10001, %edi
	jne	.L48
	addq	$4, %r13
	addq	$4, %r12
	addq	$41616, %r14
	cmpq	%r15, %r13
	jne	.L68
.L47:
	leaq	dp2(%rip), %r10
	movl	$4244832, %edx
	movl	$-1, %esi
	movq	%r10, %rdi
	call	memset@PLT
	movl	(%rsp), %edx
	movl	$0, dp2(%rip)
	movq	%rax, %r10
	testl	%edx, %edx
	jle	.L57
	leaq	e(%rip), %rax
	movl	%ebp, 60(%rsp)
	leaq	c(%rip), %r13
	xorl	%r9d, %r9d
	movq	%rax, 16(%rsp)
	movl	(%rsp), %eax
	leaq	4(%r13), %rdx
	movq	$-41616, %r8
	movq	$41616, 24(%rsp)
	movl	$102, %r14d
	movq	$0, 8(%rsp)
	subl	$1, %eax
	leaq	(%rdx,%rax,4), %rax
	movq	%rax, 48(%rsp)
	leal	1(%rbx), %eax
	movl	%eax, 56(%rsp)
.L56:
	movq	24(%rsp), %rax
	movl	$0, (%r10,%rax)
	testl	%ebx, %ebx
	js	.L52
	movq	16(%rsp), %rax
	movl	56(%rsp), %r11d
	movq	8(%rsp), %rbp
	movl	(%rax), %eax
	movl	%eax, %r12d
	subl	%eax, %r11d
	negl	%r12d
	movslq	%r12d, %r15
.L53:
	leaq	(%r15,%rbp), %rdx
	leaq	42024+dp2(%rip), %rax
	leaq	(%r10,%rdx,4), %rcx
	leaq	(%rax,%rbp,4), %rax
	movl	%r12d, %edx
	.p2align 4,,10
	.p2align 3
.L55:
	leaq	(%rax,%r8), %rsi
	movl	(%rsi,%r9), %edi
	movl	%edi, (%rax)
	testl	%edx, %edx
	js	.L54
	movl	(%rcx), %esi
	testl	%esi, %esi
	js	.L54
	addl	0(%r13), %esi
	cmpl	%esi, %edi
	jge	.L54
	movl	%esi, (%rax)
	.p2align 4,,10
	.p2align 3
.L54:
	addl	$1, %edx
	addq	$4, %rax
	addq	$4, %rcx
	cmpl	%r11d, %edx
	jne	.L55
	addq	$102, %rbp
	cmpq	%r14, %rbp
	jne	.L53
.L52:
	addq	$10404, 8(%rsp)
	addq	$10506, %r14
	addq	$4, %r13
	subq	$41616, %r8
	addq	$4, 16(%rsp)
	addq	$41616, %r9
	addq	$41616, 24(%rsp)
	cmpq	48(%rsp), %r13
	jne	.L56
	movl	60(%rsp), %ebp
.L57:
	movl	$51, %r12d
	leaq	p(%rip), %rsi
	movq	$-1, %rax
	movq	%r12, %rcx
	movq	%rsi, %rdi
	rep stosq
	movq	%rcx, %r12
	testl	%ebx, %ebx
	js	.L50
	movslq	44(%rsp), %rdi
	movslq	(%rsp), %rax
	movslq	%ebx, %r12
	leaq	4+dp1(%rip), %r13
	movslq	4(%rsp), %r9
	imulq	$41616, %rax, %rax
	imulq	$408, %rdi, %rdi
	imulq	$41616, %r9, %r11
	addq	32(%rsp), %r11
	imulq	$10404, %r9, %r9
	addq	%rax, %rdi
	leaq	4(%rsi), %rax
	addq	%r10, %rdi
	leaq	(%rax,%r12,4), %r10
.L51:
	movslq	(%rdi), %rax
	testl	%eax, %eax
	js	.L62
	addq	%r9, %rax
	movl	(%rsi), %ecx
	leaq	0(%r13,%rax,4), %r8
	movq	%r11, %rax
.L59:
	movl	(%rax), %edx
	cmpl	%ecx, %edx
	jle	.L58
	movl	%edx, (%rsi)
	movl	%edx, %ecx
.L58:
	addq	$4, %rax
	cmpq	%rax, %r8
	jne	.L59
.L62:
	addq	$4, %rsi
	addq	$4, %rdi
	cmpq	%rsi, %r10
	jne	.L51
	leaq	dp3(%rip), %r8
	movl	$41616, %edx
	movl	$-1, %esi
	xorl	%r13d, %r13d
	movq	%r8, %rdi
	call	memset@PLT
	movl	$51, %ecx
	leal	1(%rbx), %r11d
	movq	%rax, %r8
	xorl	%eax, %eax
	movq	%r8, %rdi
	rep stosq
	movl	40(%rsp), %eax
	testl	%eax, %eax
	jle	.L67
.L63:
	movslq	%r13d, %rsi
	movq	%rdi, %r9
	xorl	%r10d, %r10d
	imulq	$102, %rsi, %rsi
.L66:
	leal	(%r10,%rbp), %edx
	leaq	p(%rip), %rcx
	jmp	.L65
	.p2align 4,,10
	.p2align 3
.L70:
	movl	%eax, %edx
.L65:
	cmpl	%ebx, %edx
	movl	%ebx, %eax
	cmovle	%edx, %eax
	cltq
	addq	%rsi, %rax
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	js	.L64
	movl	(%rcx), %r14d
	testl	%r14d, %r14d
	js	.L64
	addl	%r14d, %eax
	cmpl	%eax, (%r9)
	jge	.L64
	movl	%eax, (%r9)
	.p2align 4,,10
	.p2align 3
.L64:
	leal	-1(%rdx), %eax
	addq	$4, %rcx
	cmpl	%ebp, %edx
	jne	.L70
	addl	$1, %r10d
	addq	$4, %r9
	cmpl	%r11d, %r10d
	jne	.L66
	addl	$1, %r13d
	addq	$408, %rdi
	cmpl	%r13d, 40(%rsp)
	jne	.L63
.L67:
	movslq	40(%rsp), %rax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	imulq	$102, %rax, %rax
	addq	%r12, %rax
	movl	(%r8,%rax,4), %edx
	xorl	%eax, %eax
	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
.L94:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L37
.L93:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L31
.L90:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L17
.L91:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L23
.L92:
	leaq	dp1(%rip), %rax
	movl	$4244832, %edx
	orl	$-1, %esi
	movq	%rax, %rdi
	movq	%rax, 32(%rsp)
	call	memset@PLT
	movl	$0, dp1(%rip)
	jmp	.L47
.L50:
	leaq	dp3(%rip), %r8
	movl	$41616, %edx
	orl	$-1, %esi
	movq	%r8, %rdi
	call	memset@PLT
	movl	$51, %ecx
	movq	%rax, %rdi
	movq	%rax, %r8
	movq	%r12, %rax
	movslq	%ebx, %r12
	rep stosq
	jmp	.L67
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	dp3
	.bss
	.align 32
	.type	dp3, @object
	.size	dp3, 41616
dp3:
	.zero	41616
	.globl	dp2
	.align 32
	.type	dp2, @object
	.size	dp2, 4244832
dp2:
	.zero	4244832
	.globl	dp1
	.align 32
	.type	dp1, @object
	.size	dp1, 4244832
dp1:
	.zero	4244832
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 408
p:
	.zero	408
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 408
a:
	.zero	408
	.globl	h
	.align 32
	.type	h, @object
	.size	h, 408
h:
	.zero	408
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 408
c:
	.zero	408
	.globl	e
	.align 32
	.type	e, @object
	.size	e, 408
e:
	.zero	408
	.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 2578 Disciple Life is Hard
// 2018.3.16 bal4u

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

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

// library //

int e[102], c[102], h[102], a[102];
int p[102];
int dp1[102][102*102], dp2[102][102][102], dp3[102][102];

int main()
{
	int S, T, U, N, O, D, i, j, s, x;

	S = in(), T = in(), U = in(), N = in(), O = in(), D = in();
	for (i = 0; i < T; i++) e[i] = in(), c[i] = in();
	for (i = 0; i < N; i++) h[i] = in(), a[i] = in();

	memset(dp1, -1, sizeof(dp1)), dp1[0][0] = 0;
	for (i = 1; i <= N; i++) for (j = 0; j <= 10000; j++) for (s = 0; s*a[i-1] <= j; s++) {
		if (dp1[i-1][j-s*a[i-1]] >= 0) {
			x = dp1[i-1][j-s*a[i-1]]+h[i-1]*s;
			if (dp1[i][j] < x) dp1[i][j] = x;
		}
	}

	memset(dp2, -1, sizeof(dp2)); dp2[0][0][0] = 0;
	for (i = 1; i <= T; i++) {
		dp2[i][0][0] = 0;
		for (j = 1; j <= i; j++) for (s = 0; s <= S; s++) {
			dp2[i][j][s] = dp2[i-1][j][s];
			if (s-e[i-1] >= 0 && dp2[i-1][j-1][s-e[i-1]] >= 0) {
				x = dp2[i-1][j-1][s-e[i-1]]+c[i-1];
				if (dp2[i][j][s] < x) dp2[i][j][s] = x;
			}
		}
	}

	memset(p, -1, sizeof(p));
    for (s = 0; s <= S; s++) for (i = 0; i <= dp2[T][U][s]; i++) if (p[s] < dp1[N][i]) p[s] = dp1[N][i];

	memset(dp3, -1, sizeof(dp3)), memset(dp3[0], 0, sizeof(dp3[0]));
	for (i = 1; i <= D; i++) for (s = 0; s <= S; s++) for (j = 0; j <= s; j++) {
		x = s-j+O; if (x > S) x = S;
		if (dp3[i-1][x] >= 0 && p[j] >= 0) {
			int t = dp3[i-1][x] + p[j];
			if (dp3[i][s] < t) dp3[i][s] = t;
		}
	}
	printf("%d\n", dp3[D][S]);
}

17 1 1 1 4 3
6 10
5 8
 8 1 1 1 4 3
6 14
5 8
 17 1 1 1 4 3
6 10
4 8
 17 1 1 1 4 3
6 14
5 4
 17 1 1 1 4 3
6 10
4 4
 17 1 1 1 4 3
6 14
10 4
 22 1 1 1 4 6
6 14
5 8
 30 1 1 1 4 5
6 14
5 8
 17 1 1 1 4 6
6 10
7 8
 17 1 1 1 4 1
6 10
5 8

15
 -1
 12
 45
 24
 90
 30
 25
 42
 5

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

```c
// AOJ 2578 Disciple Life is Hard
// 2018.3.16 bal4u

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

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

// library //

int e[102], c[102], h[102], a[102];
int p[102];
int dp1[102][102*102], dp2[102][102][102], dp3[102][102];

int main()
{
	int S, T, U, N, O, D, i, j, s, x;

	S = in(), T = in(), U = in(), N = in(), O = in(), D = in();
	for (i = 0; i < T; i++) e[i] = in(), c[i] = in();
	for (i = 0; i < N; i++) h[i] = in(), a[i] = in();

	memset(dp1, -1, sizeof(dp1)), dp1[0][0] = 0;
	for (i = 1; i <= N; i++) for (j = 0; j <= 10000; j++) for (s = 0; s*a[i-1] <= j; s++) {
		if (dp1[i-1][j-s*a[i-1]] >= 0) {
			x = dp1[i-1][j-s*a[i-1]]+h[i-1]*s;
			if (dp1[i][j] < x) dp1[i][j] = x;
		}
	}

	memset(dp2, -1, sizeof(dp2)); dp2[0][0][0] = 0;
	for (i = 1; i <= T; i++) {
		dp2[i][0][0] = 0;
		for (j = 1; j <= i; j++) for (s = 0; s <= S; s++) {
			dp2[i][j][s] = dp2[i-1][j][s];
			if (s-e[i-1] >= 0 && dp2[i-1][j-1][s-e[i-1]] >= 0) {
				x = dp2[i-1][j-1][s-e[i-1]]+c[i-1];
				if (dp2[i][j][s] < x) dp2[i][j][s] = x;
			}
		}
	}

	memset(p, -1, sizeof(p));
    for (s = 0; s <= S; s++) for (i = 0; i <= dp2[T][U][s]; i++) if (p[s] < dp1[N][i]) p[s] = dp1[N][i];

	memset(dp3, -1, sizeof(dp3)), memset(dp3[0], 0, sizeof(dp3[0]));
	for (i = 1; i <= D; i++) for (s = 0; s <= S; s++) for (j = 0; j <= s; j++) {
		x = s-j+O; if (x > S) x = S;
		if (dp3[i-1][x] >= 0 && p[j] >= 0) {
			int t = dp3[i-1][x] + p[j];
			if (dp3[i][s] < t) dp3[i][s] = t;
		}
	}
	printf("%d\n", dp3[D][S]);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.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
	.globl	e
	.bss
	.align 32
	.type	e, @object
	.size	e, 408
e:
	.zero	408
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 408
c:
	.zero	408
	.globl	h
	.align 32
	.type	h, @object
	.size	h, 408
h:
	.zero	408
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 408
a:
	.zero	408
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 408
p:
	.zero	408
	.globl	dp1
	.align 32
	.type	dp1, @object
	.size	dp1, 4244832
dp1:
	.zero	4244832
	.globl	dp2
	.align 32
	.type	dp2, @object
	.size	dp2, 4244832
dp2:
	.zero	4244832
	.globl	dp3
	.align 32
	.type	dp3, @object
	.size	dp3, 41616
dp3:
	.zero	41616
	.section	.rodata
.LC0:
	.string	"%d\n"
	.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
	movl	$0, %eax
	call	in
	movl	%eax, -28(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -24(%rbp)
	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, -44(%rbp)
	jmp	.L5
.L6:
	movl	$0, %eax
	call	in
	movl	-44(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	e(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-44(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -44(%rbp)
.L5:
	movl	-44(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L6
	movl	$0, -44(%rbp)
	jmp	.L7
.L8:
	movl	$0, %eax
	call	in
	movl	-44(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	h(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-44(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -44(%rbp)
.L7:
	movl	-44(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L8
	movl	$4244832, %edx
	movl	$-1, %esi
	leaq	dp1(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, dp1(%rip)
	movl	$1, -44(%rbp)
	jmp	.L9
.L15:
	movl	$0, -40(%rbp)
	jmp	.L10
.L14:
	movl	$0, -36(%rbp)
	jmp	.L11
.L13:
	movl	-44(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	-36(%rbp), %eax
	movl	%eax, %edx
	movl	-40(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$10404, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp1(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L12
	movl	-44(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	-36(%rbp), %eax
	movl	%eax, %edx
	movl	-40(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$10404, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp1(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	h(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	-36(%rbp), %eax
	addl	%ecx, %eax
	movl	%eax, -32(%rbp)
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-44(%rbp), %eax
	cltq
	imulq	$10404, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -32(%rbp)
	jle	.L12
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-44(%rbp), %eax
	cltq
	imulq	$10404, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp1(%rip), %rdx
	movl	-32(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L12:
	addl	$1, -36(%rbp)
.L11:
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	-36(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jge	.L13
	addl	$1, -40(%rbp)
.L10:
	cmpl	$10000, -40(%rbp)
	jle	.L14
	addl	$1, -44(%rbp)
.L9:
	movl	-44(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jle	.L15
	movl	$4244832, %edx
	movl	$-1, %esi
	leaq	dp2(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, dp2(%rip)
	movl	$1, -44(%rbp)
	jmp	.L16
.L22:
	movl	-44(%rbp), %eax
	cltq
	imulq	$41616, %rax, %rax
	leaq	dp2(%rip), %rdx
	movl	$0, (%rax,%rdx)
	movl	$1, -40(%rbp)
	jmp	.L17
.L21:
	movl	$0, -36(%rbp)
	jmp	.L18
.L20:
	movl	-44(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$10404, %rdx, %rdx
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp2(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-36(%rbp), %edx
	movslq	%edx, %rsi
	movl	-44(%rbp), %edx
	movslq	%edx, %rcx
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$10404, %rcx, %rcx
	imulq	$102, %rdx, %rdx
	addq	%rcx, %rdx
	addq	%rsi, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp2(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	e(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	testl	%eax, %eax
	js	.L19
	movl	-44(%rbp), %eax
	leal	-1(%rax), %esi
	movl	-40(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	e(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %rdi
	movslq	%esi, %rdx
	movslq	%ecx, %rax
	imulq	$10404, %rdx, %rdx
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp2(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L19
	movl	-44(%rbp), %eax
	leal	-1(%rax), %esi
	movl	-40(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	e(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %rdi
	movslq	%esi, %rdx
	movslq	%ecx, %rax
	imulq	$10404, %rdx, %rdx
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp2(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -32(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$10404, %rdx, %rdx
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -32(%rbp)
	jle	.L19
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$10404, %rdx, %rdx
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp2(%rip), %rdx
	movl	-32(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L19:
	addl	$1, -36(%rbp)
.L18:
	movl	-36(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L20
	addl	$1, -40(%rbp)
.L17:
	movl	-40(%rbp), %eax
	cmpl	-44(%rbp), %eax
	jle	.L21
	addl	$1, -44(%rbp)
.L16:
	movl	-44(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L22
	movl	$408, %edx
	movl	$-1, %esi
	leaq	p(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -36(%rbp)
	jmp	.L23
.L27:
	movl	$0, -44(%rbp)
	jmp	.L24
.L26:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-44(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	cltq
	imulq	$10404, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp1(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L25
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$10404, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp1(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L25:
	addl	$1, -44(%rbp)
.L24:
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$10404, %rdx, %rdx
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -44(%rbp)
	jle	.L26
	addl	$1, -36(%rbp)
.L23:
	movl	-36(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L27
	movl	$41616, %edx
	movl	$-1, %esi
	leaq	dp3(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$408, %edx
	movl	$0, %esi
	leaq	dp3(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -44(%rbp)
	jmp	.L28
.L35:
	movl	$0, -36(%rbp)
	jmp	.L29
.L34:
	movl	$0, -40(%rbp)
	jmp	.L30
.L33:
	movl	-36(%rbp), %eax
	subl	-40(%rbp), %eax
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L31
	movl	-28(%rbp), %eax
	movl	%eax, -32(%rbp)
.L31:
	movl	-44(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-32(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$102, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp3(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L32
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L32
	movl	-44(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-32(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$102, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp3(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	movl	-44(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp3(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L32
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	movl	-44(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp3(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L32:
	addl	$1, -40(%rbp)
.L30:
	movl	-40(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jle	.L33
	addl	$1, -36(%rbp)
.L29:
	movl	-36(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L34
	addl	$1, -44(%rbp)
.L28:
	movl	-44(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L35
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-8(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp3(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	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
.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	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
	.globl	e
	.bss
	.align 32
	.type	e, @object
	.size	e, 408
e:
	.zero	408
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 408
c:
	.zero	408
	.globl	h
	.align 32
	.type	h, @object
	.size	h, 408
h:
	.zero	408
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 408
a:
	.zero	408
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 408
p:
	.zero	408
	.globl	dp1
	.align 32
	.type	dp1, @object
	.size	dp1, 4244832
dp1:
	.zero	4244832
	.globl	dp2
	.align 32
	.type	dp2, @object
	.size	dp2, 4244832
dp2:
	.zero	4244832
	.globl	dp3
	.align 32
	.type	dp3, @object
	.size	dp3, 41616
dp3:
	.zero	41616
	.section	.rodata
.LC0:
	.string	"%d\n"
	.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
	movl	$0, %eax
	call	in
	movl	%eax, -28(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -24(%rbp)
	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, -44(%rbp)
	jmp	.L5
.L6:
	movl	$0, %eax
	call	in
	movl	-44(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	e(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-44(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -44(%rbp)
.L5:
	movl	-44(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L6
	movl	$0, -44(%rbp)
	jmp	.L7
.L8:
	movl	$0, %eax
	call	in
	movl	-44(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	h(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-44(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -44(%rbp)
.L7:
	movl	-44(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L8
	movl	$4244832, %edx
	movl	$-1, %esi
	leaq	dp1(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, dp1(%rip)
	movl	$1, -44(%rbp)
	jmp	.L9
.L15:
	movl	$0, -40(%rbp)
	jmp	.L10
.L14:
	movl	$0, -36(%rbp)
	jmp	.L11
.L13:
	movl	-44(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	-36(%rbp), %eax
	movl	%eax, %edx
	movl	-40(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$10404, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp1(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L12
	movl	-44(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	-36(%rbp), %eax
	movl	%eax, %edx
	movl	-40(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	imulq	$10404, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp1(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	h(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	-36(%rbp), %eax
	addl	%ecx, %eax
	movl	%eax, -32(%rbp)
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-44(%rbp), %eax
	cltq
	imulq	$10404, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -32(%rbp)
	jle	.L12
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-44(%rbp), %eax
	cltq
	imulq	$10404, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp1(%rip), %rdx
	movl	-32(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L12:
	addl	$1, -36(%rbp)
.L11:
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	-36(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jge	.L13
	addl	$1, -40(%rbp)
.L10:
	cmpl	$10000, -40(%rbp)
	jle	.L14
	addl	$1, -44(%rbp)
.L9:
	movl	-44(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jle	.L15
	movl	$4244832, %edx
	movl	$-1, %esi
	leaq	dp2(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, dp2(%rip)
	movl	$1, -44(%rbp)
	jmp	.L16
.L22:
	movl	-44(%rbp), %eax
	cltq
	imulq	$41616, %rax, %rax
	leaq	dp2(%rip), %rdx
	movl	$0, (%rax,%rdx)
	movl	$1, -40(%rbp)
	jmp	.L17
.L21:
	movl	$0, -36(%rbp)
	jmp	.L18
.L20:
	movl	-44(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$10404, %rdx, %rdx
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp2(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-36(%rbp), %edx
	movslq	%edx, %rsi
	movl	-44(%rbp), %edx
	movslq	%edx, %rcx
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$10404, %rcx, %rcx
	imulq	$102, %rdx, %rdx
	addq	%rcx, %rdx
	addq	%rsi, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp2(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	e(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	testl	%eax, %eax
	js	.L19
	movl	-44(%rbp), %eax
	leal	-1(%rax), %esi
	movl	-40(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	e(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %rdi
	movslq	%esi, %rdx
	movslq	%ecx, %rax
	imulq	$10404, %rdx, %rdx
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp2(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L19
	movl	-44(%rbp), %eax
	leal	-1(%rax), %esi
	movl	-40(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	e(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %rdi
	movslq	%esi, %rdx
	movslq	%ecx, %rax
	imulq	$10404, %rdx, %rdx
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp2(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -32(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$10404, %rdx, %rdx
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -32(%rbp)
	jle	.L19
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$10404, %rdx, %rdx
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp2(%rip), %rdx
	movl	-32(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L19:
	addl	$1, -36(%rbp)
.L18:
	movl	-36(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L20
	addl	$1, -40(%rbp)
.L17:
	movl	-40(%rbp), %eax
	cmpl	-44(%rbp), %eax
	jle	.L21
	addl	$1, -44(%rbp)
.L16:
	movl	-44(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L22
	movl	$408, %edx
	movl	$-1, %esi
	leaq	p(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -36(%rbp)
	jmp	.L23
.L27:
	movl	$0, -44(%rbp)
	jmp	.L24
.L26:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-44(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	cltq
	imulq	$10404, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp1(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L25
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$10404, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp1(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L25:
	addl	$1, -44(%rbp)
.L24:
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$10404, %rdx, %rdx
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -44(%rbp)
	jle	.L26
	addl	$1, -36(%rbp)
.L23:
	movl	-36(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L27
	movl	$41616, %edx
	movl	$-1, %esi
	leaq	dp3(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$408, %edx
	movl	$0, %esi
	leaq	dp3(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -44(%rbp)
	jmp	.L28
.L35:
	movl	$0, -36(%rbp)
	jmp	.L29
.L34:
	movl	$0, -40(%rbp)
	jmp	.L30
.L33:
	movl	-36(%rbp), %eax
	subl	-40(%rbp), %eax
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L31
	movl	-28(%rbp), %eax
	movl	%eax, -32(%rbp)
.L31:
	movl	-44(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-32(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$102, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp3(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L32
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L32
	movl	-44(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-32(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$102, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp3(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	movl	-44(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp3(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L32
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	movl	-44(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp3(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L32:
	addl	$1, -40(%rbp)
.L30:
	movl	-40(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jle	.L33
	addl	$1, -36(%rbp)
.L29:
	movl	-36(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L34
	addl	$1, -44(%rbp)
.L28:
	movl	-44(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L35
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-8(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp3(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	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
.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:
