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

```c
#include<stdio.h>
#include<string.h>
int main(){
	int i,j,d[5][105][105],h,w,a;
	memset(d,0,sizeof(d));
	for(i=0;i<103;i++){
		d[1][i][1]=d[3][1][i]=1;
	}
	//d[1]=ツ凝按つェツづァツつクツづ可可コツつゥツづァツ猟按つス
	//d[2]=ツ凝按つェツづづ可コツつゥツづァ
	//d[3]=ツ凝按つェツづァツつクツづ可債カツつゥツづァ
	//d[4]=ツ凝按つェツづづ債カツつゥツづァ
	while(1){
		scanf("%d%d",&h,&w);
		if(h==0 && w==0)break;
		for(i=2;i<=h;i++){
			for(j=2;j<=w;j++){
				d[1][i][j]=(d[1][i-1][j]+d[2][i-1][j])%100000;
				d[2][i][j]= d[3][i-1][j]%100000;
				d[3][i][j]=(d[3][i][j-1]+d[4][i][j-1])%100000;
				d[4][i][j]= d[1][i][j-1]%100000;
			}
		}
		a=0;
		for(i=1;i<=4;i++)a+=d[i][h][w],a=a%100000;
		printf("%d\n",a);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\n"
	.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
	leaq	-217088(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3456, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-220512(%rbp), %rax
	movl	$220500, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -220524(%rbp)
	jmp	.L2
.L3:
	movl	-220524(%rbp), %eax
	cltq
	addq	$33180, %rax
	movl	$1, -220512(%rbp,%rax,4)
	movl	-220524(%rbp), %eax
	cltq
	addq	$33180, %rax
	movl	-220512(%rbp,%rax,4), %eax
	movl	-220524(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$420, %rdx, %rdx
	addq	%rbp, %rdx
	subq	$176408, %rdx
	movl	%eax, (%rdx)
	addl	$1, -220524(%rbp)
.L2:
	cmpl	$102, -220524(%rbp)
	jle	.L3
.L12:
	leaq	-220528(%rbp), %rdx
	leaq	-220532(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-220532(%rbp), %eax
	testl	%eax, %eax
	jne	.L4
	movl	-220528(%rbp), %eax
	testl	%eax, %eax
	je	.L16
.L4:
	movl	$2, -220524(%rbp)
	jmp	.L6
.L9:
	movl	$2, -220520(%rbp)
	jmp	.L7
.L8:
	movl	-220524(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	addq	$11025, %rax
	movl	-220512(%rbp,%rax,4), %ecx
	movl	-220524(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	$22050, %rax
	movl	-220512(%rbp,%rax,4), %eax
	addl	%ecx, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$100000, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rsi
	movl	-220524(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	addq	$11025, %rax
	movl	%edx, -220512(%rbp,%rax,4)
	movl	-220524(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	addq	$33075, %rax
	movl	-220512(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$100000, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rsi
	movl	-220524(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	addq	$22050, %rax
	movl	%edx, -220512(%rbp,%rax,4)
	movl	-220520(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-220524(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	addq	$33075, %rax
	movl	-220512(%rbp,%rax,4), %ecx
	movl	-220520(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rsi
	movl	-220524(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	$44100, %rax
	movl	-220512(%rbp,%rax,4), %eax
	addl	%ecx, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$100000, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rsi
	movl	-220524(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	addq	$33075, %rax
	movl	%edx, -220512(%rbp,%rax,4)
	movl	-220520(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-220524(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	addq	$11025, %rax
	movl	-220512(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$100000, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rsi
	movl	-220524(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	addq	$44100, %rax
	movl	%edx, -220512(%rbp,%rax,4)
	addl	$1, -220520(%rbp)
.L7:
	movl	-220528(%rbp), %eax
	cmpl	%eax, -220520(%rbp)
	jle	.L8
	addl	$1, -220524(%rbp)
.L6:
	movl	-220532(%rbp), %eax
	cmpl	%eax, -220524(%rbp)
	jle	.L9
	movl	$0, -220516(%rbp)
	movl	$1, -220524(%rbp)
	jmp	.L10
.L11:
	movl	-220532(%rbp), %edx
	movl	-220528(%rbp), %eax
	movslq	%eax, %rcx
	movl	-220524(%rbp), %eax
	cltq
	movslq	%edx, %rdx
	imulq	$11025, %rax, %rsi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-220512(%rbp,%rax,4), %eax
	addl	%eax, -220516(%rbp)
	movl	-220516(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -220516(%rbp)
	addl	$1, -220524(%rbp)
.L10:
	cmpl	$4, -220524(%rbp)
	jle	.L11
	movl	-220516(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L12
.L16:
	nop
	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%d"
.LC3:
	.string	"%d\n"
	.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
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-217088(%rsp), %r11
	.cfi_def_cfa 11, 217144
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3480, %rsp
	.cfi_def_cfa_offset 220624
	movl	$220500, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 220552(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	call	memset@PLT
	movdqa	.LC0(%rip), %xmm0
	leaq	132768(%rsp), %rdx
	leaq	44152(%rsp), %rax
	leaq	86152(%rsp), %rcx
	.p2align 4,,10
	.p2align 3
.L2:
	movaps	%xmm0, (%rdx)
	addq	$1680, %rax
	addq	$16, %rdx
	movl	$1, -1680(%rax)
	movl	$1, -1260(%rax)
	movl	$1, -840(%rax)
	movl	$1, -420(%rax)
	cmpq	%rcx, %rax
	jne	.L2
	movq	.LC1(%rip), %rax
	movl	$1, 86152(%rsp)
	movl	$1, 86572(%rsp)
	movq	%rax, 133168(%rsp)
	leaq	44(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	40(%rsp), %rax
	movl	$1, 133176(%rsp)
	movl	$1, 86992(%rsp)
	movq	%rax, 16(%rsp)
	jmp	.L12
.L3:
	testl	%r10d, %r10d
	je	.L21
.L4:
	movslq	4(%rsp), %rax
	movl	$1, %edi
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rdx
	leaq	(%rax,%rdx,8), %rcx
	addq	%r10, %rcx
	movslq	44148(%rsp,%rcx,4), %rdx
	movq	%rdx, %rax
	imulq	$351843721, %rdx, %rdx
	movl	%eax, %esi
	sarl	$31, %esi
	sarq	$45, %rdx
	subl	%esi, %edx
	imull	$100000, %edx, %esi
	movl	88248(%rsp,%rcx,4), %edx
	subl	%esi, %eax
	addl	%eax, %edx
	movslq	%edx, %rax
	movl	%edx, %esi
	imulq	$351843721, %rax, %rax
	sarl	$31, %esi
	sarq	$45, %rax
	subl	%esi, %eax
	imull	$100000, %eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	addl	132348(%rsp,%rcx,4), %eax
	movslq	%eax, %rdx
	movl	%eax, %esi
	imulq	$351843721, %rdx, %rdx
	sarl	$31, %esi
	sarq	$45, %rdx
	subl	%esi, %edx
	imull	$100000, %edx, %esi
	movl	176448(%rsp,%rcx,4), %edx
	subl	%esi, %eax
	leaq	.LC3(%rip), %rsi
	addl	%eax, %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
.L12:
	movq	24(%rsp), %rdx
	movq	16(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	movslq	44(%rsp), %r10
	movl	%eax, 4(%rsp)
	testl	%eax, %eax
	je	.L3
	cmpl	$1, %eax
	jle	.L4
	cmpl	$1, %r10d
	jle	.L4
	leal	1(%rax), %r13d
	leal	-4(%r10), %eax
	movl	$105, %r14d
	movl	$2, %ebp
	andl	$-2, %eax
	leaq	44576(%rsp), %rcx
	addl	$4, %eax
	movl	%eax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$2, %eax
	leaq	420(%rcx), %r12
	cmpl	$3, %r10d
	jle	.L11
	leaq	420(%rcx), %r12
	movl	132716(%rcx), %r8d
	movl	$2, %eax
	movl	88616(%rcx), %edx
	movl	416(%rcx), %edi
	movq	%r12, %r11
.L8:
	movl	44100(%rcx), %esi
	addl	(%rcx), %esi
	movl	%r8d, %r9d
	movslq	%esi, %r8
	movl	%esi, %ebx
	addl	%edx, %r9d
	imulq	$351843721, %r8, %r8
	sarl	$31, %ebx
	movl	%r9d, %edx
	sarl	$31, %edx
	sarq	$45, %r8
	subl	%ebx, %r8d
	imull	$100000, %r8d, %ebx
	subl	%ebx, %esi
	movl	%esi, (%r11)
	movl	%esi, %r8d
	movslq	88200(%rcx), %rsi
	movd	%r8d, %xmm1
	movq	%rsi, %rbx
	imulq	$351843721, %rsi, %rsi
	movl	%ebx, %r15d
	sarl	$31, %r15d
	sarq	$45, %rsi
	subl	%r15d, %esi
	imull	$100000, %esi, %esi
	subl	%esi, %ebx
	movslq	%r9d, %rsi
	imulq	$351843721, %rsi, %rsi
	movl	%ebx, 44100(%r11)
	sarq	$45, %rsi
	subl	%edx, %esi
	imull	$100000, %esi, %edx
	movl	%r9d, %esi
	movslq	%edi, %r9
	imulq	$351843721, %r9, %r9
	subl	%edx, %esi
	movl	%edi, %edx
	sarl	$31, %edx
	sarq	$45, %r9
	movl	%esi, 88200(%r11)
	subl	%edx, %r9d
	imull	$100000, %r9d, %edx
	subl	%edx, %edi
	movl	44104(%rcx), %edx
	addl	4(%rcx), %edx
	movl	%edi, %r9d
	movslq	%edx, %rdi
	movl	%edx, %ebx
	imulq	$351843721, %rdi, %rdi
	sarl	$31, %ebx
	movd	%r9d, %xmm0
	punpckldq	%xmm1, %xmm0
	sarq	$45, %rdi
	subl	%ebx, %edi
	imull	$100000, %edi, %ebx
	movl	%edx, %edi
	subl	%ebx, %edi
	addl	%r9d, %esi
	addl	$2, %eax
	addq	$8, %rcx
	movl	%edi, 4(%r11)
	movslq	88196(%rcx), %rdx
	addq	$8, %r11
	movq	%xmm0, 132292(%r11)
	movq	%rdx, %rbx
	imulq	$351843721, %rdx, %rdx
	movl	%ebx, %r15d
	sarl	$31, %r15d
	sarq	$45, %rdx
	subl	%r15d, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %ebx
	movslq	%esi, %rdx
	imulq	$351843721, %rdx, %rdx
	movl	%ebx, 44096(%r11)
	movl	%esi, %ebx
	sarl	$31, %ebx
	sarq	$45, %rdx
	subl	%ebx, %edx
	imull	$100000, %edx, %ebx
	subl	%ebx, %esi
	movl	%esi, 88196(%r11)
	movl	%esi, %edx
	cmpl	%eax, (%rsp)
	jne	.L8
.L11:
	movslq	%eax, %rdx
	movq	8(%rsp), %rbx
	leaq	(%r14,%rdx), %rcx
	addq	$105, %r14
	addq	%r14, %rdx
	leaq	(%rbx,%rcx,4), %rdi
	leaq	(%rbx,%rdx,4), %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	88200(%rdi), %esi
	addl	$1, %eax
	addq	$4, %rdi
	addq	$4, %rcx
	addl	44096(%rdi), %esi
	movslq	%esi, %rdx
	movl	%esi, %r8d
	imulq	$351843721, %rdx, %rdx
	sarl	$31, %r8d
	sarq	$45, %rdx
	subl	%r8d, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %esi
	movl	%esi, 44096(%rcx)
	movslq	132296(%rdi), %rdx
	movq	%rdx, %rsi
	imulq	$351843721, %rdx, %rdx
	movl	%esi, %r8d
	sarl	$31, %r8d
	sarq	$45, %rdx
	subl	%r8d, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %esi
	movl	%esi, 88196(%rcx)
	movl	176392(%rcx), %esi
	addl	132292(%rcx), %esi
	movslq	%esi, %rdx
	movl	%esi, %r8d
	imulq	$351843721, %rdx, %rdx
	sarl	$31, %r8d
	sarq	$45, %rdx
	subl	%r8d, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %esi
	movslq	44092(%rcx), %rdx
	movl	%esi, 132296(%rcx)
	movq	%rdx, %rsi
	imulq	$351843721, %rdx, %rdx
	movl	%esi, %r8d
	sarl	$31, %r8d
	sarq	$45, %rdx
	subl	%r8d, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %esi
	movl	%esi, 176396(%rcx)
	cmpl	%r10d, %eax
	jle	.L9
	addl	$1, %ebp
	movq	%r12, %rcx
	cmpl	%ebp, %r13d
	jne	.L6
	jmp	.L4
.L21:
	movq	220552(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$220568, %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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	1
	.long	1
	.set	.LC1,.LC0
	.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%d"
.LC3:
	.string	"%d\n"
	.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
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-217088(%rsp), %r11
	.cfi_def_cfa 11, 217144
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3480, %rsp
	.cfi_def_cfa_offset 220624
	movl	$220500, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 220552(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	call	memset@PLT
	movdqa	.LC0(%rip), %xmm0
	leaq	132768(%rsp), %rdx
	leaq	44152(%rsp), %rax
	leaq	86152(%rsp), %rcx
	.p2align 4,,10
	.p2align 3
.L2:
	movaps	%xmm0, (%rdx)
	addq	$1680, %rax
	addq	$16, %rdx
	movl	$1, -1680(%rax)
	movl	$1, -1260(%rax)
	movl	$1, -840(%rax)
	movl	$1, -420(%rax)
	cmpq	%rcx, %rax
	jne	.L2
	movq	.LC1(%rip), %rax
	movl	$1, 86152(%rsp)
	movl	$1, 86572(%rsp)
	movq	%rax, 133168(%rsp)
	leaq	44(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	40(%rsp), %rax
	movl	$1, 133176(%rsp)
	movl	$1, 86992(%rsp)
	movq	%rax, 16(%rsp)
	jmp	.L12
.L3:
	testl	%r10d, %r10d
	je	.L21
.L4:
	movslq	4(%rsp), %rax
	movl	$1, %edi
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rdx
	leaq	(%rax,%rdx,8), %rcx
	addq	%r10, %rcx
	movslq	44148(%rsp,%rcx,4), %rdx
	movq	%rdx, %rax
	imulq	$351843721, %rdx, %rdx
	movl	%eax, %esi
	sarl	$31, %esi
	sarq	$45, %rdx
	subl	%esi, %edx
	imull	$100000, %edx, %esi
	movl	88248(%rsp,%rcx,4), %edx
	subl	%esi, %eax
	addl	%eax, %edx
	movslq	%edx, %rax
	movl	%edx, %esi
	imulq	$351843721, %rax, %rax
	sarl	$31, %esi
	sarq	$45, %rax
	subl	%esi, %eax
	imull	$100000, %eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	addl	132348(%rsp,%rcx,4), %eax
	movslq	%eax, %rdx
	movl	%eax, %esi
	imulq	$351843721, %rdx, %rdx
	sarl	$31, %esi
	sarq	$45, %rdx
	subl	%esi, %edx
	imull	$100000, %edx, %esi
	movl	176448(%rsp,%rcx,4), %edx
	subl	%esi, %eax
	leaq	.LC3(%rip), %rsi
	addl	%eax, %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
.L12:
	movq	24(%rsp), %rdx
	movq	16(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	movslq	44(%rsp), %r10
	movl	%eax, 4(%rsp)
	testl	%eax, %eax
	je	.L3
	cmpl	$1, %eax
	jle	.L4
	cmpl	$1, %r10d
	jle	.L4
	leal	1(%rax), %r13d
	leal	-4(%r10), %eax
	movl	$105, %r14d
	movl	$2, %ebp
	andl	$-2, %eax
	leaq	44576(%rsp), %rcx
	addl	$4, %eax
	movl	%eax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$2, %eax
	leaq	420(%rcx), %r12
	cmpl	$3, %r10d
	jle	.L11
	leaq	420(%rcx), %r12
	movl	132716(%rcx), %r8d
	movl	$2, %eax
	movl	88616(%rcx), %edx
	movl	416(%rcx), %edi
	movq	%r12, %r11
.L8:
	movl	44100(%rcx), %esi
	addl	(%rcx), %esi
	movl	%r8d, %r9d
	movslq	%esi, %r8
	movl	%esi, %ebx
	addl	%edx, %r9d
	imulq	$351843721, %r8, %r8
	sarl	$31, %ebx
	movl	%r9d, %edx
	sarl	$31, %edx
	sarq	$45, %r8
	subl	%ebx, %r8d
	imull	$100000, %r8d, %ebx
	subl	%ebx, %esi
	movl	%esi, (%r11)
	movl	%esi, %r8d
	movslq	88200(%rcx), %rsi
	movd	%r8d, %xmm1
	movq	%rsi, %rbx
	imulq	$351843721, %rsi, %rsi
	movl	%ebx, %r15d
	sarl	$31, %r15d
	sarq	$45, %rsi
	subl	%r15d, %esi
	imull	$100000, %esi, %esi
	subl	%esi, %ebx
	movslq	%r9d, %rsi
	imulq	$351843721, %rsi, %rsi
	movl	%ebx, 44100(%r11)
	sarq	$45, %rsi
	subl	%edx, %esi
	imull	$100000, %esi, %edx
	movl	%r9d, %esi
	movslq	%edi, %r9
	imulq	$351843721, %r9, %r9
	subl	%edx, %esi
	movl	%edi, %edx
	sarl	$31, %edx
	sarq	$45, %r9
	movl	%esi, 88200(%r11)
	subl	%edx, %r9d
	imull	$100000, %r9d, %edx
	subl	%edx, %edi
	movl	44104(%rcx), %edx
	addl	4(%rcx), %edx
	movl	%edi, %r9d
	movslq	%edx, %rdi
	movl	%edx, %ebx
	imulq	$351843721, %rdi, %rdi
	sarl	$31, %ebx
	movd	%r9d, %xmm0
	punpckldq	%xmm1, %xmm0
	sarq	$45, %rdi
	subl	%ebx, %edi
	imull	$100000, %edi, %ebx
	movl	%edx, %edi
	subl	%ebx, %edi
	addl	%r9d, %esi
	addl	$2, %eax
	addq	$8, %rcx
	movl	%edi, 4(%r11)
	movslq	88196(%rcx), %rdx
	addq	$8, %r11
	movq	%xmm0, 132292(%r11)
	movq	%rdx, %rbx
	imulq	$351843721, %rdx, %rdx
	movl	%ebx, %r15d
	sarl	$31, %r15d
	sarq	$45, %rdx
	subl	%r15d, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %ebx
	movslq	%esi, %rdx
	imulq	$351843721, %rdx, %rdx
	movl	%ebx, 44096(%r11)
	movl	%esi, %ebx
	sarl	$31, %ebx
	sarq	$45, %rdx
	subl	%ebx, %edx
	imull	$100000, %edx, %ebx
	subl	%ebx, %esi
	movl	%esi, 88196(%r11)
	movl	%esi, %edx
	cmpl	%eax, (%rsp)
	jne	.L8
.L11:
	movslq	%eax, %rdx
	movq	8(%rsp), %rbx
	leaq	(%r14,%rdx), %rcx
	addq	$105, %r14
	addq	%r14, %rdx
	leaq	(%rbx,%rcx,4), %rdi
	leaq	(%rbx,%rdx,4), %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	88200(%rdi), %esi
	addl	$1, %eax
	addq	$4, %rdi
	addq	$4, %rcx
	addl	44096(%rdi), %esi
	movslq	%esi, %rdx
	movl	%esi, %r8d
	imulq	$351843721, %rdx, %rdx
	sarl	$31, %r8d
	sarq	$45, %rdx
	subl	%r8d, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %esi
	movl	%esi, 44096(%rcx)
	movslq	132296(%rdi), %rdx
	movq	%rdx, %rsi
	imulq	$351843721, %rdx, %rdx
	movl	%esi, %r8d
	sarl	$31, %r8d
	sarq	$45, %rdx
	subl	%r8d, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %esi
	movl	%esi, 88196(%rcx)
	movl	176392(%rcx), %esi
	addl	132292(%rcx), %esi
	movslq	%esi, %rdx
	movl	%esi, %r8d
	imulq	$351843721, %rdx, %rdx
	sarl	$31, %r8d
	sarq	$45, %rdx
	subl	%r8d, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %esi
	movslq	44092(%rcx), %rdx
	movl	%esi, 132296(%rcx)
	movq	%rdx, %rsi
	imulq	$351843721, %rdx, %rdx
	movl	%esi, %r8d
	sarl	$31, %r8d
	sarq	$45, %rdx
	subl	%r8d, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %esi
	movl	%esi, 176396(%rcx)
	cmpl	%r10d, %eax
	jle	.L9
	addl	$1, %ebp
	movq	%r12, %rcx
	cmpl	%ebp, %r13d
	jne	.L6
	jmp	.L4
.L21:
	movq	220552(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$220568, %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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	1
	.long	1
	.set	.LC1,.LC0
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include<stdio.h>
#include<string.h>
int main(){
	int i,j,d[5][105][105],h,w,a;
	memset(d,0,sizeof(d));
	for(i=0;i<103;i++){
		d[1][i][1]=d[3][1][i]=1;
	}
	//d[1]=ツ凝按つェツづァツつクツづ可可コツつゥツづァツ猟按つス
	//d[2]=ツ凝按つェツづづ可コツつゥツづァ
	//d[3]=ツ凝按つェツづァツつクツづ可債カツつゥツづァ
	//d[4]=ツ凝按つェツづづ債カツつゥツづァ
	while(1){
		scanf("%d%d",&h,&w);
		if(h==0 && w==0)break;
		for(i=2;i<=h;i++){
			for(j=2;j<=w;j++){
				d[1][i][j]=(d[1][i-1][j]+d[2][i-1][j])%100000;
				d[2][i][j]= d[3][i-1][j]%100000;
				d[3][i][j]=(d[3][i][j-1]+d[4][i][j-1])%100000;
				d[4][i][j]= d[1][i][j-1]%100000;
			}
		}
		a=0;
		for(i=1;i<=4;i++)a+=d[i][h][w],a=a%100000;
		printf("%d\n",a);
	}
	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
 1
25033
 2
55628
 1
55628

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

```c
#include<stdio.h>
#include<string.h>
int main(){
	int i,j,d[5][105][105],h,w,a;
	memset(d,0,sizeof(d));
	for(i=0;i<103;i++){
		d[1][i][1]=d[3][1][i]=1;
	}
	//d[1]=ツ凝按つェツづァツつクツづ可可コツつゥツづァツ猟按つス
	//d[2]=ツ凝按つェツづづ可コツつゥツづァ
	//d[3]=ツ凝按つェツづァツつクツづ可債カツつゥツづァ
	//d[4]=ツ凝按つェツづづ債カツつゥツづァ
	while(1){
		scanf("%d%d",&h,&w);
		if(h==0 && w==0)break;
		for(i=2;i<=h;i++){
			for(j=2;j<=w;j++){
				d[1][i][j]=(d[1][i-1][j]+d[2][i-1][j])%100000;
				d[2][i][j]= d[3][i-1][j]%100000;
				d[3][i][j]=(d[3][i][j-1]+d[4][i][j-1])%100000;
				d[4][i][j]= d[1][i][j-1]%100000;
			}
		}
		a=0;
		for(i=1;i<=4;i++)a+=d[i][h][w],a=a%100000;
		printf("%d\n",a);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\n"
	.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
	leaq	-217088(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3456, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-220512(%rbp), %rax
	movl	$220500, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -220524(%rbp)
	jmp	.L2
.L3:
	movl	-220524(%rbp), %eax
	cltq
	addq	$33180, %rax
	movl	$1, -220512(%rbp,%rax,4)
	movl	-220524(%rbp), %eax
	cltq
	addq	$33180, %rax
	movl	-220512(%rbp,%rax,4), %eax
	movl	-220524(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$420, %rdx, %rdx
	addq	%rbp, %rdx
	subq	$176408, %rdx
	movl	%eax, (%rdx)
	addl	$1, -220524(%rbp)
.L2:
	cmpl	$102, -220524(%rbp)
	jle	.L3
.L12:
	leaq	-220528(%rbp), %rdx
	leaq	-220532(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-220532(%rbp), %eax
	testl	%eax, %eax
	jne	.L4
	movl	-220528(%rbp), %eax
	testl	%eax, %eax
	je	.L16
.L4:
	movl	$2, -220524(%rbp)
	jmp	.L6
.L9:
	movl	$2, -220520(%rbp)
	jmp	.L7
.L8:
	movl	-220524(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	addq	$11025, %rax
	movl	-220512(%rbp,%rax,4), %ecx
	movl	-220524(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	$22050, %rax
	movl	-220512(%rbp,%rax,4), %eax
	addl	%ecx, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$100000, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rsi
	movl	-220524(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	addq	$11025, %rax
	movl	%edx, -220512(%rbp,%rax,4)
	movl	-220524(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	addq	$33075, %rax
	movl	-220512(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$100000, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rsi
	movl	-220524(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	addq	$22050, %rax
	movl	%edx, -220512(%rbp,%rax,4)
	movl	-220520(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-220524(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	addq	$33075, %rax
	movl	-220512(%rbp,%rax,4), %ecx
	movl	-220520(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rsi
	movl	-220524(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	$44100, %rax
	movl	-220512(%rbp,%rax,4), %eax
	addl	%ecx, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$100000, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rsi
	movl	-220524(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	addq	$33075, %rax
	movl	%edx, -220512(%rbp,%rax,4)
	movl	-220520(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-220524(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	addq	$11025, %rax
	movl	-220512(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$100000, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rsi
	movl	-220524(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	addq	$44100, %rax
	movl	%edx, -220512(%rbp,%rax,4)
	addl	$1, -220520(%rbp)
.L7:
	movl	-220528(%rbp), %eax
	cmpl	%eax, -220520(%rbp)
	jle	.L8
	addl	$1, -220524(%rbp)
.L6:
	movl	-220532(%rbp), %eax
	cmpl	%eax, -220524(%rbp)
	jle	.L9
	movl	$0, -220516(%rbp)
	movl	$1, -220524(%rbp)
	jmp	.L10
.L11:
	movl	-220532(%rbp), %edx
	movl	-220528(%rbp), %eax
	movslq	%eax, %rcx
	movl	-220524(%rbp), %eax
	cltq
	movslq	%edx, %rdx
	imulq	$11025, %rax, %rsi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-220512(%rbp,%rax,4), %eax
	addl	%eax, -220516(%rbp)
	movl	-220516(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -220516(%rbp)
	addl	$1, -220524(%rbp)
.L10:
	cmpl	$4, -220524(%rbp)
	jle	.L11
	movl	-220516(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L12
.L16:
	nop
	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
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\n"
	.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
	leaq	-217088(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3456, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-220512(%rbp), %rax
	movl	$220500, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -220524(%rbp)
	jmp	.L2
.L3:
	movl	-220524(%rbp), %eax
	cltq
	addq	$33180, %rax
	movl	$1, -220512(%rbp,%rax,4)
	movl	-220524(%rbp), %eax
	cltq
	addq	$33180, %rax
	movl	-220512(%rbp,%rax,4), %eax
	movl	-220524(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$420, %rdx, %rdx
	addq	%rbp, %rdx
	subq	$176408, %rdx
	movl	%eax, (%rdx)
	addl	$1, -220524(%rbp)
.L2:
	cmpl	$102, -220524(%rbp)
	jle	.L3
.L12:
	leaq	-220528(%rbp), %rdx
	leaq	-220532(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-220532(%rbp), %eax
	testl	%eax, %eax
	jne	.L4
	movl	-220528(%rbp), %eax
	testl	%eax, %eax
	je	.L16
.L4:
	movl	$2, -220524(%rbp)
	jmp	.L6
.L9:
	movl	$2, -220520(%rbp)
	jmp	.L7
.L8:
	movl	-220524(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	addq	$11025, %rax
	movl	-220512(%rbp,%rax,4), %ecx
	movl	-220524(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	$22050, %rax
	movl	-220512(%rbp,%rax,4), %eax
	addl	%ecx, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$100000, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rsi
	movl	-220524(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	addq	$11025, %rax
	movl	%edx, -220512(%rbp,%rax,4)
	movl	-220524(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	addq	$33075, %rax
	movl	-220512(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$100000, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rsi
	movl	-220524(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	addq	$22050, %rax
	movl	%edx, -220512(%rbp,%rax,4)
	movl	-220520(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-220524(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	addq	$33075, %rax
	movl	-220512(%rbp,%rax,4), %ecx
	movl	-220520(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rsi
	movl	-220524(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	$44100, %rax
	movl	-220512(%rbp,%rax,4), %eax
	addl	%ecx, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$100000, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rsi
	movl	-220524(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	addq	$33075, %rax
	movl	%edx, -220512(%rbp,%rax,4)
	movl	-220520(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-220524(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	addq	$11025, %rax
	movl	-220512(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$100000, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-220520(%rbp), %eax
	movslq	%eax, %rsi
	movl	-220524(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	addq	$44100, %rax
	movl	%edx, -220512(%rbp,%rax,4)
	addl	$1, -220520(%rbp)
.L7:
	movl	-220528(%rbp), %eax
	cmpl	%eax, -220520(%rbp)
	jle	.L8
	addl	$1, -220524(%rbp)
.L6:
	movl	-220532(%rbp), %eax
	cmpl	%eax, -220524(%rbp)
	jle	.L9
	movl	$0, -220516(%rbp)
	movl	$1, -220524(%rbp)
	jmp	.L10
.L11:
	movl	-220532(%rbp), %edx
	movl	-220528(%rbp), %eax
	movslq	%eax, %rcx
	movl	-220524(%rbp), %eax
	cltq
	movslq	%edx, %rdx
	imulq	$11025, %rax, %rsi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-220512(%rbp,%rax,4), %eax
	addl	%eax, -220516(%rbp)
	movl	-220516(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -220516(%rbp)
	addl	$1, -220524(%rbp)
.L10:
	cmpl	$4, -220524(%rbp)
	jle	.L11
	movl	-220516(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L12
.L16:
	nop
	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:
