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

```c
// Aizu Vol-5 0547: Commute routes
// 2017.9.2 bal4u@uu

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

#define S 0
#define W 1

int p[102][102][2][2];

int main()
{
	int w, h, x, y;

	while (scanf("%d%d", &w, &h) && w) {
		memset(p, 0, sizeof(p));
		for (x = 1; x <= w; x++) p[x][1][W][S] = p[x][1][W][W] = 1;
		for (y = 1; y <= h; y++) p[1][y][S][W] = p[1][y][S][S] = 1;
		p[w][1][W][W] = p[1][h][S][S] = 0;
		for (y = 2; y <= h; y++) for (x = 2; x <= w; x++) {
			p[x][y][S][S] += p[x][y-1][S][S] + p[x][y-1][W][S];
			p[x][y][W][W] += p[x-1][y][W][W] + p[x-1][y][S][W];
			p[x][y][S][W] += p[x][y-1][S][S];
			p[x][y][W][S] += p[x-1][y][W][W];
			p[x][y][S][S] %= 100000, p[x][y][W][W] %= 100000;
			p[x][y][S][W] %= 100000, p[x][y][W][S] %= 100000;
		}
		printf("%d\n", (p[w][h][S][S]+p[w][h][W][W]) % 100000);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 166464
p:
	.zero	166464
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L12:
	movl	$166464, %edx
	movl	$0, %esi
	leaq	p(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -16(%rbp)
	jmp	.L3
.L4:
	movl	-16(%rbp), %eax
	cltq
	imulq	$1632, %rax, %rax
	leaq	28+p(%rip), %rdx
	movl	$1, (%rax,%rdx)
	movl	-16(%rbp), %eax
	cltq
	imulq	$1632, %rax, %rax
	leaq	28+p(%rip), %rdx
	movl	(%rax,%rdx), %edx
	movl	-16(%rbp), %eax
	cltq
	imulq	$1632, %rax, %rax
	leaq	24+p(%rip), %rcx
	movl	%edx, (%rax,%rcx)
	addl	$1, -16(%rbp)
.L3:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L4
	movl	$1, -12(%rbp)
	jmp	.L5
.L6:
	movl	-12(%rbp), %eax
	cltq
	addq	$102, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	addq	$102, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	1636+p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
.L5:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L6
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	addq	$102, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	p(%rip), %rdx
	movl	$0, (%rcx,%rdx)
	movl	-24(%rbp), %ecx
	cltq
	addq	$102, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%ecx, %rax
	imulq	$1632, %rax, %rax
	leaq	28+p(%rip), %rcx
	movl	%edx, (%rax,%rcx)
	movl	$2, -12(%rbp)
	jmp	.L7
.L10:
	movl	$2, -16(%rbp)
	jmp	.L8
.L9:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-12(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-12(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+p(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%esi, %eax
	addl	%eax, %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	12+p(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	imulq	$102, %rax, %rax
	addq	%rsi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	12+p(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdi
	movslq	%edx, %rax
	imulq	$102, %rax, %rax
	addq	%rdi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+p(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%esi, %eax
	addl	%eax, %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	12+p(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+p(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-12(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+p(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+p(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	imulq	$102, %rax, %rax
	addq	%rsi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	12+p(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+p(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$102, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	12+p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$102, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	12+p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$102, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	4+p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$102, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -16(%rbp)
.L8:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L9
	addl	$1, -12(%rbp)
.L7:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L10
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	12+p(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L11
	movl	-24(%rbp), %eax
	testl	%eax, %eax
	jne	.L12
.L11:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pxor	%xmm3, %xmm3
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movdqa	%xmm3, %xmm4
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	p(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movdqa	.LC1(%rip), %xmm2
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	68(%rsp), %rax
	movq	%rax, 32(%rsp)
	pcmpgtd	%xmm2, %xmm4
	leaq	64(%rsp), %rax
	movq	%rax, 24(%rsp)
	movaps	%xmm4, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	32(%rsp), %rdx
	movq	24(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L25
	movl	64(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L25
	xorl	%esi, %esi
	movl	$166464, %edx
	movq	%r12, %rdi
	call	memset@PLT
	testl	%ebx, %ebx
	pxor	%xmm3, %xmm3
	movdqa	.LC1(%rip), %xmm2
	jle	.L9
	cmpl	$1, %ebx
	je	.L28
	movl	%ebx, %edx
	leaq	1656+p(%rip), %rax
	shrl	%edx
	leal	-1(%rdx), %ecx
	leaq	3264(%rax), %rdx
	imulq	$3264, %rcx, %rcx
	addq	%rdx, %rcx
	movabsq	$4294967297, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rdx, (%rax)
	addq	$3264, %rax
	movq	%rdx, -1632(%rax)
	cmpq	%rcx, %rax
	jne	.L7
	movl	%ebx, %eax
	orl	$1, %eax
	testb	$1, %bl
	je	.L9
.L6:
	cltq
	movq	.LC0(%rip), %rdx
	imulq	$1632, %rax, %rax
	movq	%rdx, 24(%r12,%rax)
.L9:
	movl	68(%rsp), %r13d
	testl	%r13d, %r13d
	jle	.L43
	cmpl	$1, %r13d
	je	.L29
	movl	%r13d, %edx
	leaq	1648+p(%rip), %rax
	shrl	%edx
	leal	-1(%rdx), %ecx
	leaq	32(%rax), %rdx
	salq	$5, %rcx
	addq	%rdx, %rcx
	movabsq	$4294967297, %rdx
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rdx, (%rax)
	addq	$32, %rax
	movq	%rdx, -16(%rax)
	cmpq	%rcx, %rax
	jne	.L15
	movl	%r13d, %eax
	orl	$1, %eax
	testb	$1, %r13b
	je	.L44
.L14:
	movq	.LC0(%rip), %rdx
	cltq
	movslq	%r13d, %r15
	salq	$4, %rax
	movq	%rdx, 1632(%rax,%r12)
	movq	%r15, %rax
	salq	$4, %rax
	movl	$0, 1632(%rax,%r12)
	movslq	%ebx, %rax
	movq	%rax, 8(%rsp)
	imulq	$1632, %rax, %rax
	movl	$0, 28(%r12,%rax)
	cmpl	$1, %r13d
	jle	.L21
.L17:
	cmpl	$1, %ebx
	jle	.L21
	cmpl	$3, %r13d
	jle	.L45
	leal	-2(%rbx), %r10d
	leaq	3300+p(%rip), %rax
	movdqa	48(%rsp), %xmm4
	movl	$16, %r9d
	movl	%r10d, 44(%rsp)
	imulq	$1632, %r10, %r10
	movl	$3, %ebx
	movq	$-32, %r11
	addq	%rax, %r10
	leaq	1636(%r12), %rax
	movq	%rax, 16(%rsp)
.L22:
	movq	16(%rsp), %rax
	subq	%r11, %rax
	.p2align 4,,10
	.p2align 3
.L19:
	movl	8(%rax), %esi
	movl	(%rax), %r8d
	leaq	(%rax,%r11), %rcx
	movdqa	%xmm3, %xmm6
	movl	1636(%rcx,%r9), %edx
	addl	1628(%rcx,%r9), %edx
	movdqa	%xmm4, %xmm7
	addl	1628(%rax), %edx
	addl	%esi, %r8d
	addl	1640(%rax), %r8d
	movl	%edx, 1628(%rax)
	movl	%edx, %ebp
	movd	24(%rax), %xmm1
	movl	%r8d, 1640(%rax)
	sarl	$31, %ebp
	movl	1628(%rcx,%r9), %edi
	movslq	%edx, %rcx
	imulq	$351843721, %rcx, %rcx
	addl	1632(%rax), %edi
	addl	1636(%rax), %esi
	sarq	$45, %rcx
	subl	%ebp, %ecx
	imull	$100000, %ecx, %ebp
	subl	%ebp, %edx
	movl	%r8d, %ebp
	movl	%edx, %ecx
	movl	%edx, 1628(%rax)
	movslq	%r8d, %rdx
	sarl	$31, %ebp
	imulq	$351843721, %rdx, %rdx
	sarq	$45, %rdx
	subl	%ebp, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %r8d
	movslq	%edi, %rdx
	imulq	$351843721, %rdx, %rdx
	movl	%r8d, 1640(%rax)
	movl	%edi, %r8d
	sarl	$31, %r8d
	sarq	$45, %rdx
	subl	%r8d, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %edi
	movslq	%esi, %rdx
	imulq	$351843721, %rdx, %rdx
	movl	%edi, 1632(%rax)
	movl	%esi, %edi
	sarl	$31, %edi
	sarq	$45, %rdx
	subl	%edi, %edx
	imull	$100000, %edx, %edi
	subl	%edi, %esi
	movl	%esi, 1636(%rax)
	movl	%esi, %edx
	movl	24(%rax), %esi
	addl	16(%rax), %esi
	addl	%ecx, %edx
	addq	$1632, %rax
	movd	%esi, %xmm5
	movd	%edx, %xmm0
	punpckldq	%xmm5, %xmm1
	movd	%ecx, %xmm5
	punpckldq	%xmm5, %xmm0
	punpcklqdq	%xmm1, %xmm0
	paddd	12(%rax), %xmm0
	movdqa	%xmm0, %xmm1
	punpckldq	%xmm0, %xmm1
	pcmpgtd	%xmm1, %xmm6
	pmuludq	%xmm1, %xmm7
	movdqa	%xmm1, %xmm5
	pmuludq	%xmm2, %xmm5
	movdqa	%xmm0, %xmm1
	punpckhdq	%xmm0, %xmm1
	pmuludq	%xmm2, %xmm6
	paddq	%xmm7, %xmm6
	movdqa	%xmm4, %xmm7
	psllq	$32, %xmm6
	pmuludq	%xmm1, %xmm7
	paddq	%xmm6, %xmm5
	movdqa	%xmm3, %xmm6
	pcmpgtd	%xmm1, %xmm6
	pmuludq	%xmm2, %xmm1
	pmuludq	%xmm2, %xmm6
	paddq	%xmm7, %xmm6
	psllq	$32, %xmm6
	paddq	%xmm6, %xmm1
	shufps	$221, %xmm1, %xmm5
	movdqa	%xmm0, %xmm1
	psrad	$13, %xmm5
	psrad	$31, %xmm1
	psubd	%xmm1, %xmm5
	movdqa	%xmm5, %xmm1
	pslld	$1, %xmm1
	paddd	%xmm5, %xmm1
	movdqa	%xmm1, %xmm6
	pslld	$6, %xmm6
	paddd	%xmm6, %xmm1
	pslld	$2, %xmm1
	paddd	%xmm5, %xmm1
	pslld	$2, %xmm1
	paddd	%xmm5, %xmm1
	pslld	$5, %xmm1
	psubd	%xmm1, %xmm0
	movaps	%xmm0, 12(%rax)
	cmpq	%r10, %rax
	jne	.L19
	leal	1(%rbx), %r14d
	addl	$2, %ebx
	subq	$32, %r11
	addq	$32, %r9
	addq	$32, %r10
	cmpl	%ebx, %r13d
	jg	.L22
.L13:
	movl	44(%rsp), %r11d
	movslq	%r14d, %rax
	leaq	204(%rax), %rbp
	movq	%rax, %rbx
	leaq	-1(%rax), %r9
	imulq	$102, %r11, %r11
	salq	$4, %rbp
	negq	%rbx
	salq	$4, %r9
	addq	%r12, %rbp
	salq	$4, %rbx
	addq	%rax, %r11
	leaq	4896+p(%rip), %rax
	salq	$4, %r11
	addq	%rax, %r11
	.p2align 4,,10
	.p2align 3
.L24:
	movl	-1628(%rbp), %eax
	movl	-1620(%rbp), %ecx
	movq	%rbp, %rsi
	.p2align 4,,10
	.p2align 3
.L23:
	addl	%ecx, %eax
	addl	8(%rsi), %ecx
	leaq	(%rsi,%rbx), %r10
	addl	12(%rsi), %eax
	movl	%ecx, %r8d
	movslq	%eax, %rcx
	movl	%eax, %edi
	movl	(%r10,%r9), %edx
	imulq	$351843721, %rcx, %rcx
	sarl	$31, %edi
	addl	8(%r10,%r9), %edx
	addl	(%rsi), %edx
	movl	%edx, (%rsi)
	addq	$1632, %rsi
	movl	%eax, -1620(%rsi)
	sarq	$45, %rcx
	subl	%edi, %ecx
	imull	$100000, %ecx, %edi
	subl	%edi, %eax
	movl	-1628(%rsi), %edi
	addl	(%r10,%r9), %edi
	movl	%eax, %ecx
	movslq	%edi, %rax
	movl	%edi, %r10d
	imulq	$351843721, %rax, %rax
	sarl	$31, %r10d
	movd	%ecx, %xmm4
	sarq	$45, %rax
	subl	%r10d, %eax
	imull	$100000, %eax, %r10d
	movl	%edi, %eax
	movslq	%edx, %rdi
	imulq	$351843721, %rdi, %rdi
	subl	%r10d, %eax
	movl	%edx, %r10d
	sarl	$31, %r10d
	sarq	$45, %rdi
	movd	%eax, %xmm7
	subl	%r10d, %edi
	movl	%r8d, %r10d
	imull	$100000, %edi, %edi
	sarl	$31, %r10d
	subl	%edi, %edx
	movslq	%r8d, %rdi
	imulq	$351843721, %rdi, %rdi
	movd	%edx, %xmm0
	punpckldq	%xmm7, %xmm0
	sarq	$45, %rdi
	subl	%r10d, %edi
	imull	$100000, %edi, %edi
	subl	%edi, %r8d
	movd	%r8d, %xmm1
	punpckldq	%xmm4, %xmm1
	punpcklqdq	%xmm1, %xmm0
	movaps	%xmm0, -1632(%rsi)
	cmpq	%r11, %rsi
	jne	.L23
	addl	$1, %r14d
	addq	$16, %rbp
	subq	$16, %rbx
	addq	$16, %r9
	addq	$16, %r11
	cmpl	%r14d, %r13d
	jge	.L24
.L21:
	imulq	$102, 8(%rsp), %rax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	addq	%r15, %rax
	salq	$4, %rax
	addq	%r12, %rax
	movl	12(%rax), %edx
	addl	(%rax), %edx
	movslq	%edx, %rax
	movl	%edx, %ecx
	imulq	$351843721, %rax, %rax
	sarl	$31, %ecx
	sarq	$45, %rax
	subl	%ecx, %eax
	imull	$100000, %eax, %eax
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L44:
	movslq	%r13d, %r15
	movq	%r15, %rax
	salq	$4, %rax
	movl	$0, 1632(%rax,%r12)
	movslq	%ebx, %rax
	movq	%rax, 8(%rsp)
	imulq	$1632, %rax, %rax
	movl	$0, 28(%r12,%rax)
	jmp	.L17
.L25:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L46
	addq	$88, %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
.L43:
	.cfi_restore_state
	movslq	%r13d, %r15
	movq	%r15, %rax
	salq	$4, %rax
	movl	$0, 1632(%rax,%r12)
	movslq	%ebx, %rax
	movq	%rax, 8(%rsp)
	imulq	$1632, %rax, %rax
	movl	$0, 28(%r12,%rax)
	jmp	.L21
.L29:
	movl	$1, %eax
	jmp	.L14
.L28:
	movl	$1, %eax
	jmp	.L6
.L45:
	leal	-2(%rbx), %eax
	movl	$2, %r14d
	movl	%eax, 44(%rsp)
	jmp	.L13
.L46:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 166464
p:
	.zero	166464
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	1
	.long	1
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	351843721
	.long	351843721
	.long	351843721
	.long	351843721
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pxor	%xmm3, %xmm3
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movdqa	%xmm3, %xmm4
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	p(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movdqa	.LC1(%rip), %xmm2
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	68(%rsp), %rax
	movq	%rax, 32(%rsp)
	pcmpgtd	%xmm2, %xmm4
	leaq	64(%rsp), %rax
	movq	%rax, 24(%rsp)
	movaps	%xmm4, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	32(%rsp), %rdx
	movq	24(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L25
	movl	64(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L25
	xorl	%esi, %esi
	movl	$166464, %edx
	movq	%r12, %rdi
	call	memset@PLT
	testl	%ebx, %ebx
	pxor	%xmm3, %xmm3
	movdqa	.LC1(%rip), %xmm2
	jle	.L9
	cmpl	$1, %ebx
	je	.L28
	movl	%ebx, %edx
	leaq	1656+p(%rip), %rax
	shrl	%edx
	leal	-1(%rdx), %ecx
	leaq	3264(%rax), %rdx
	imulq	$3264, %rcx, %rcx
	addq	%rdx, %rcx
	movabsq	$4294967297, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rdx, (%rax)
	addq	$3264, %rax
	movq	%rdx, -1632(%rax)
	cmpq	%rcx, %rax
	jne	.L7
	movl	%ebx, %eax
	orl	$1, %eax
	testb	$1, %bl
	je	.L9
.L6:
	cltq
	movq	.LC0(%rip), %rdx
	imulq	$1632, %rax, %rax
	movq	%rdx, 24(%r12,%rax)
.L9:
	movl	68(%rsp), %r13d
	testl	%r13d, %r13d
	jle	.L43
	cmpl	$1, %r13d
	je	.L29
	movl	%r13d, %edx
	leaq	1648+p(%rip), %rax
	shrl	%edx
	leal	-1(%rdx), %ecx
	leaq	32(%rax), %rdx
	salq	$5, %rcx
	addq	%rdx, %rcx
	movabsq	$4294967297, %rdx
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rdx, (%rax)
	addq	$32, %rax
	movq	%rdx, -16(%rax)
	cmpq	%rcx, %rax
	jne	.L15
	movl	%r13d, %eax
	orl	$1, %eax
	testb	$1, %r13b
	je	.L44
.L14:
	movq	.LC0(%rip), %rdx
	cltq
	movslq	%r13d, %r15
	salq	$4, %rax
	movq	%rdx, 1632(%rax,%r12)
	movq	%r15, %rax
	salq	$4, %rax
	movl	$0, 1632(%rax,%r12)
	movslq	%ebx, %rax
	movq	%rax, 8(%rsp)
	imulq	$1632, %rax, %rax
	movl	$0, 28(%r12,%rax)
	cmpl	$1, %r13d
	jle	.L21
.L17:
	cmpl	$1, %ebx
	jle	.L21
	cmpl	$3, %r13d
	jle	.L45
	leal	-2(%rbx), %r10d
	leaq	3300+p(%rip), %rax
	movdqa	48(%rsp), %xmm4
	movl	$16, %r9d
	movl	%r10d, 44(%rsp)
	imulq	$1632, %r10, %r10
	movl	$3, %ebx
	movq	$-32, %r11
	addq	%rax, %r10
	leaq	1636(%r12), %rax
	movq	%rax, 16(%rsp)
.L22:
	movq	16(%rsp), %rax
	subq	%r11, %rax
	.p2align 4,,10
	.p2align 3
.L19:
	movl	8(%rax), %esi
	movl	(%rax), %r8d
	leaq	(%rax,%r11), %rcx
	movdqa	%xmm3, %xmm6
	movl	1636(%rcx,%r9), %edx
	addl	1628(%rcx,%r9), %edx
	movdqa	%xmm4, %xmm7
	addl	1628(%rax), %edx
	addl	%esi, %r8d
	addl	1640(%rax), %r8d
	movl	%edx, 1628(%rax)
	movl	%edx, %ebp
	movd	24(%rax), %xmm1
	movl	%r8d, 1640(%rax)
	sarl	$31, %ebp
	movl	1628(%rcx,%r9), %edi
	movslq	%edx, %rcx
	imulq	$351843721, %rcx, %rcx
	addl	1632(%rax), %edi
	addl	1636(%rax), %esi
	sarq	$45, %rcx
	subl	%ebp, %ecx
	imull	$100000, %ecx, %ebp
	subl	%ebp, %edx
	movl	%r8d, %ebp
	movl	%edx, %ecx
	movl	%edx, 1628(%rax)
	movslq	%r8d, %rdx
	sarl	$31, %ebp
	imulq	$351843721, %rdx, %rdx
	sarq	$45, %rdx
	subl	%ebp, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %r8d
	movslq	%edi, %rdx
	imulq	$351843721, %rdx, %rdx
	movl	%r8d, 1640(%rax)
	movl	%edi, %r8d
	sarl	$31, %r8d
	sarq	$45, %rdx
	subl	%r8d, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %edi
	movslq	%esi, %rdx
	imulq	$351843721, %rdx, %rdx
	movl	%edi, 1632(%rax)
	movl	%esi, %edi
	sarl	$31, %edi
	sarq	$45, %rdx
	subl	%edi, %edx
	imull	$100000, %edx, %edi
	subl	%edi, %esi
	movl	%esi, 1636(%rax)
	movl	%esi, %edx
	movl	24(%rax), %esi
	addl	16(%rax), %esi
	addl	%ecx, %edx
	addq	$1632, %rax
	movd	%esi, %xmm5
	movd	%edx, %xmm0
	punpckldq	%xmm5, %xmm1
	movd	%ecx, %xmm5
	punpckldq	%xmm5, %xmm0
	punpcklqdq	%xmm1, %xmm0
	paddd	12(%rax), %xmm0
	movdqa	%xmm0, %xmm1
	punpckldq	%xmm0, %xmm1
	pcmpgtd	%xmm1, %xmm6
	pmuludq	%xmm1, %xmm7
	movdqa	%xmm1, %xmm5
	pmuludq	%xmm2, %xmm5
	movdqa	%xmm0, %xmm1
	punpckhdq	%xmm0, %xmm1
	pmuludq	%xmm2, %xmm6
	paddq	%xmm7, %xmm6
	movdqa	%xmm4, %xmm7
	psllq	$32, %xmm6
	pmuludq	%xmm1, %xmm7
	paddq	%xmm6, %xmm5
	movdqa	%xmm3, %xmm6
	pcmpgtd	%xmm1, %xmm6
	pmuludq	%xmm2, %xmm1
	pmuludq	%xmm2, %xmm6
	paddq	%xmm7, %xmm6
	psllq	$32, %xmm6
	paddq	%xmm6, %xmm1
	shufps	$221, %xmm1, %xmm5
	movdqa	%xmm0, %xmm1
	psrad	$13, %xmm5
	psrad	$31, %xmm1
	psubd	%xmm1, %xmm5
	movdqa	%xmm5, %xmm1
	pslld	$1, %xmm1
	paddd	%xmm5, %xmm1
	movdqa	%xmm1, %xmm6
	pslld	$6, %xmm6
	paddd	%xmm6, %xmm1
	pslld	$2, %xmm1
	paddd	%xmm5, %xmm1
	pslld	$2, %xmm1
	paddd	%xmm5, %xmm1
	pslld	$5, %xmm1
	psubd	%xmm1, %xmm0
	movaps	%xmm0, 12(%rax)
	cmpq	%r10, %rax
	jne	.L19
	leal	1(%rbx), %r14d
	addl	$2, %ebx
	subq	$32, %r11
	addq	$32, %r9
	addq	$32, %r10
	cmpl	%ebx, %r13d
	jg	.L22
.L13:
	movl	44(%rsp), %r11d
	movslq	%r14d, %rax
	leaq	204(%rax), %rbp
	movq	%rax, %rbx
	leaq	-1(%rax), %r9
	imulq	$102, %r11, %r11
	salq	$4, %rbp
	negq	%rbx
	salq	$4, %r9
	addq	%r12, %rbp
	salq	$4, %rbx
	addq	%rax, %r11
	leaq	4896+p(%rip), %rax
	salq	$4, %r11
	addq	%rax, %r11
	.p2align 4,,10
	.p2align 3
.L24:
	movl	-1628(%rbp), %eax
	movl	-1620(%rbp), %ecx
	movq	%rbp, %rsi
	.p2align 4,,10
	.p2align 3
.L23:
	addl	%ecx, %eax
	addl	8(%rsi), %ecx
	leaq	(%rsi,%rbx), %r10
	addl	12(%rsi), %eax
	movl	%ecx, %r8d
	movslq	%eax, %rcx
	movl	%eax, %edi
	movl	(%r10,%r9), %edx
	imulq	$351843721, %rcx, %rcx
	sarl	$31, %edi
	addl	8(%r10,%r9), %edx
	addl	(%rsi), %edx
	movl	%edx, (%rsi)
	addq	$1632, %rsi
	movl	%eax, -1620(%rsi)
	sarq	$45, %rcx
	subl	%edi, %ecx
	imull	$100000, %ecx, %edi
	subl	%edi, %eax
	movl	-1628(%rsi), %edi
	addl	(%r10,%r9), %edi
	movl	%eax, %ecx
	movslq	%edi, %rax
	movl	%edi, %r10d
	imulq	$351843721, %rax, %rax
	sarl	$31, %r10d
	movd	%ecx, %xmm4
	sarq	$45, %rax
	subl	%r10d, %eax
	imull	$100000, %eax, %r10d
	movl	%edi, %eax
	movslq	%edx, %rdi
	imulq	$351843721, %rdi, %rdi
	subl	%r10d, %eax
	movl	%edx, %r10d
	sarl	$31, %r10d
	sarq	$45, %rdi
	movd	%eax, %xmm7
	subl	%r10d, %edi
	movl	%r8d, %r10d
	imull	$100000, %edi, %edi
	sarl	$31, %r10d
	subl	%edi, %edx
	movslq	%r8d, %rdi
	imulq	$351843721, %rdi, %rdi
	movd	%edx, %xmm0
	punpckldq	%xmm7, %xmm0
	sarq	$45, %rdi
	subl	%r10d, %edi
	imull	$100000, %edi, %edi
	subl	%edi, %r8d
	movd	%r8d, %xmm1
	punpckldq	%xmm4, %xmm1
	punpcklqdq	%xmm1, %xmm0
	movaps	%xmm0, -1632(%rsi)
	cmpq	%r11, %rsi
	jne	.L23
	addl	$1, %r14d
	addq	$16, %rbp
	subq	$16, %rbx
	addq	$16, %r9
	addq	$16, %r11
	cmpl	%r14d, %r13d
	jge	.L24
.L21:
	imulq	$102, 8(%rsp), %rax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	addq	%r15, %rax
	salq	$4, %rax
	addq	%r12, %rax
	movl	12(%rax), %edx
	addl	(%rax), %edx
	movslq	%edx, %rax
	movl	%edx, %ecx
	imulq	$351843721, %rax, %rax
	sarl	$31, %ecx
	sarq	$45, %rax
	subl	%ecx, %eax
	imull	$100000, %eax, %eax
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L44:
	movslq	%r13d, %r15
	movq	%r15, %rax
	salq	$4, %rax
	movl	$0, 1632(%rax,%r12)
	movslq	%ebx, %rax
	movq	%rax, 8(%rsp)
	imulq	$1632, %rax, %rax
	movl	$0, 28(%r12,%rax)
	jmp	.L17
.L25:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L46
	addq	$88, %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
.L43:
	.cfi_restore_state
	movslq	%r13d, %r15
	movq	%r15, %rax
	salq	$4, %rax
	movl	$0, 1632(%rax,%r12)
	movslq	%ebx, %rax
	movq	%rax, 8(%rsp)
	imulq	$1632, %rax, %rax
	movl	$0, 28(%r12,%rax)
	jmp	.L21
.L29:
	movl	$1, %eax
	jmp	.L14
.L28:
	movl	$1, %eax
	jmp	.L6
.L45:
	leal	-2(%rbx), %eax
	movl	$2, %r14d
	movl	%eax, 44(%rsp)
	jmp	.L13
.L46:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 166464
p:
	.zero	166464
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	1
	.long	1
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	351843721
	.long	351843721
	.long	351843721
	.long	351843721
	.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:

// Aizu Vol-5 0547: Commute routes
// 2017.9.2 bal4u@uu

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

#define S 0
#define W 1

int p[102][102][2][2];

int main()
{
	int w, h, x, y;

	while (scanf("%d%d", &w, &h) && w) {
		memset(p, 0, sizeof(p));
		for (x = 1; x <= w; x++) p[x][1][W][S] = p[x][1][W][W] = 1;
		for (y = 1; y <= h; y++) p[1][y][S][W] = p[1][y][S][S] = 1;
		p[w][1][W][W] = p[1][h][S][S] = 0;
		for (y = 2; y <= h; y++) for (x = 2; x <= w; x++) {
			p[x][y][S][S] += p[x][y-1][S][S] + p[x][y-1][W][S];
			p[x][y][W][W] += p[x-1][y][W][W] + p[x-1][y][S][W];
			p[x][y][S][W] += p[x][y-1][S][S];
			p[x][y][W][S] += p[x-1][y][W][W];
			p[x][y][S][S] %= 100000, p[x][y][W][W] %= 100000;
			p[x][y][S][W] %= 100000, p[x][y][W][S] %= 100000;
		}
		printf("%d\n", (p[w][h][S][S]+p[w][h][W][W]) % 100000);
	}
	return 0;
}
3 4
15 20
0 0
 3 4
15 24
0 0
 3 4
15 34
0 0
 4 4
15 34
0 0
 3 4
15 16
0 0
 3 5
15 34
0 0
 4 4
12 34
0 0
 1 4
15 16
0 0
 2 4
12 34
0 0
 2 1
12 34
0 0

5
58046
 5
8663
 5
73960
 8
73960
 5
25033
 6
73960
 8
55628
 0
25033
 2
55628
 0
55628

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

```c
// Aizu Vol-5 0547: Commute routes
// 2017.9.2 bal4u@uu

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

#define S 0
#define W 1

int p[102][102][2][2];

int main()
{
	int w, h, x, y;

	while (scanf("%d%d", &w, &h) && w) {
		memset(p, 0, sizeof(p));
		for (x = 1; x <= w; x++) p[x][1][W][S] = p[x][1][W][W] = 1;
		for (y = 1; y <= h; y++) p[1][y][S][W] = p[1][y][S][S] = 1;
		p[w][1][W][W] = p[1][h][S][S] = 0;
		for (y = 2; y <= h; y++) for (x = 2; x <= w; x++) {
			p[x][y][S][S] += p[x][y-1][S][S] + p[x][y-1][W][S];
			p[x][y][W][W] += p[x-1][y][W][W] + p[x-1][y][S][W];
			p[x][y][S][W] += p[x][y-1][S][S];
			p[x][y][W][S] += p[x-1][y][W][W];
			p[x][y][S][S] %= 100000, p[x][y][W][W] %= 100000;
			p[x][y][S][W] %= 100000, p[x][y][W][S] %= 100000;
		}
		printf("%d\n", (p[w][h][S][S]+p[w][h][W][W]) % 100000);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 166464
p:
	.zero	166464
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L12:
	movl	$166464, %edx
	movl	$0, %esi
	leaq	p(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -16(%rbp)
	jmp	.L3
.L4:
	movl	-16(%rbp), %eax
	cltq
	imulq	$1632, %rax, %rax
	leaq	28+p(%rip), %rdx
	movl	$1, (%rax,%rdx)
	movl	-16(%rbp), %eax
	cltq
	imulq	$1632, %rax, %rax
	leaq	28+p(%rip), %rdx
	movl	(%rax,%rdx), %edx
	movl	-16(%rbp), %eax
	cltq
	imulq	$1632, %rax, %rax
	leaq	24+p(%rip), %rcx
	movl	%edx, (%rax,%rcx)
	addl	$1, -16(%rbp)
.L3:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L4
	movl	$1, -12(%rbp)
	jmp	.L5
.L6:
	movl	-12(%rbp), %eax
	cltq
	addq	$102, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	addq	$102, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	1636+p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
.L5:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L6
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	addq	$102, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	p(%rip), %rdx
	movl	$0, (%rcx,%rdx)
	movl	-24(%rbp), %ecx
	cltq
	addq	$102, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%ecx, %rax
	imulq	$1632, %rax, %rax
	leaq	28+p(%rip), %rcx
	movl	%edx, (%rax,%rcx)
	movl	$2, -12(%rbp)
	jmp	.L7
.L10:
	movl	$2, -16(%rbp)
	jmp	.L8
.L9:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-12(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-12(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+p(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%esi, %eax
	addl	%eax, %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	12+p(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	imulq	$102, %rax, %rax
	addq	%rsi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	12+p(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdi
	movslq	%edx, %rax
	imulq	$102, %rax, %rax
	addq	%rdi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+p(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%esi, %eax
	addl	%eax, %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	12+p(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+p(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-12(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+p(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+p(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	imulq	$102, %rax, %rax
	addq	%rsi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	12+p(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+p(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$102, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	12+p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$102, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	12+p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$102, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	4+p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$102, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -16(%rbp)
.L8:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L9
	addl	$1, -12(%rbp)
.L7:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L10
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	12+p(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L11
	movl	-24(%rbp), %eax
	testl	%eax, %eax
	jne	.L12
.L11:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 166464
p:
	.zero	166464
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L12:
	movl	$166464, %edx
	movl	$0, %esi
	leaq	p(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -16(%rbp)
	jmp	.L3
.L4:
	movl	-16(%rbp), %eax
	cltq
	imulq	$1632, %rax, %rax
	leaq	28+p(%rip), %rdx
	movl	$1, (%rax,%rdx)
	movl	-16(%rbp), %eax
	cltq
	imulq	$1632, %rax, %rax
	leaq	28+p(%rip), %rdx
	movl	(%rax,%rdx), %edx
	movl	-16(%rbp), %eax
	cltq
	imulq	$1632, %rax, %rax
	leaq	24+p(%rip), %rcx
	movl	%edx, (%rax,%rcx)
	addl	$1, -16(%rbp)
.L3:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L4
	movl	$1, -12(%rbp)
	jmp	.L5
.L6:
	movl	-12(%rbp), %eax
	cltq
	addq	$102, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	addq	$102, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	1636+p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
.L5:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L6
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	addq	$102, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	p(%rip), %rdx
	movl	$0, (%rcx,%rdx)
	movl	-24(%rbp), %ecx
	cltq
	addq	$102, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%ecx, %rax
	imulq	$1632, %rax, %rax
	leaq	28+p(%rip), %rcx
	movl	%edx, (%rax,%rcx)
	movl	$2, -12(%rbp)
	jmp	.L7
.L10:
	movl	$2, -16(%rbp)
	jmp	.L8
.L9:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-12(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-12(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+p(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%esi, %eax
	addl	%eax, %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	12+p(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	imulq	$102, %rax, %rax
	addq	%rsi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	12+p(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdi
	movslq	%edx, %rax
	imulq	$102, %rax, %rax
	addq	%rdi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+p(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%esi, %eax
	addl	%eax, %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	12+p(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+p(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-12(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+p(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+p(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	imulq	$102, %rax, %rax
	addq	%rsi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	12+p(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+p(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$102, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	12+p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$102, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	12+p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$102, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	4+p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$102, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -16(%rbp)
.L8:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L9
	addl	$1, -12(%rbp)
.L7:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L10
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	12+p(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L11
	movl	-24(%rbp), %eax
	testl	%eax, %eax
	jne	.L12
.L11:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
