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 H,W=5,B[11][5],i,j,R;

int del()
{
	int i,j,k,t,r=0;
	for(i=0;i<H;i++)
		for(j=0;j<W;j++)
		{
			if(B[i][j]!=-1)
			{
				for(k=j+1;k<W&&B[i][j]==B[i][k];k++);
				if(k-j>=3)
				{
					r+=B[i][j]*(k-j);
					for(t=j;t<k;t++)B[i][t]=-1;
				}
			}
		}
	R+=r;
	return r;
}

void fall()
{
	int i,j,k,t;
	for(i=0;i<W;i++)
		for(j=H-1;j>=0;j--)
			if(B[j][i]!=-1)
			{
				for(k=j+1;k<H&&B[k][i]==-1;k++);
				k--;
				t=B[k][i];
				B[k][i]=B[j][i];
				B[j][i]=t;
			}
}

int main()
{
	for(;scanf("%d",&H),H;)
	{
		R=0;
		memset(B,-1,sizeof(B));
		for(i=0;i<H;i++)
			for(j=0;j<5;j++)
				scanf("%d",&B[i][j]);
		while(del()!=0)
		{
			fall();
		}
		printf("%d\n",R);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	H
	.bss
	.align 4
	.type	H, @object
	.size	H, 4
H:
	.zero	4
	.globl	W
	.data
	.align 4
	.type	W, @object
	.size	W, 4
W:
	.long	5
	.globl	B
	.bss
	.align 32
	.type	B, @object
	.size	B, 220
B:
	.zero	220
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	R
	.align 4
	.type	R, @object
	.size	R, 4
R:
	.zero	4
	.text
	.globl	del
	.type	del, @function
del:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -4(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L2
.L11:
	movl	$0, -16(%rbp)
	jmp	.L3
.L10:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L4
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L5
.L7:
	addl	$1, -12(%rbp)
.L5:
	movl	W(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L6
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, %ecx
	je	.L7
.L6:
	movl	-12(%rbp), %eax
	subl	-16(%rbp), %eax
	cmpl	$2, %eax
	jle	.L4
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	subl	-16(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, -4(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L8
.L9:
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -8(%rbp)
.L8:
	movl	-8(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jl	.L9
.L4:
	addl	$1, -16(%rbp)
.L3:
	movl	W(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L10
	addl	$1, -20(%rbp)
.L2:
	movl	H(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L11
	movl	R(%rip), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, R(%rip)
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	del, .-del
	.globl	fall
	.type	fall, @function
fall:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -16(%rbp)
	jmp	.L14
.L21:
	movl	H(%rip), %eax
	subl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L15
.L20:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L16
	movl	-12(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L17
.L19:
	addl	$1, -8(%rbp)
.L17:
	movl	H(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jge	.L18
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L19
.L18:
	subl	$1, -8(%rbp)
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rsi
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	B(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	B(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L16:
	subl	$1, -12(%rbp)
.L15:
	cmpl	$0, -12(%rbp)
	jns	.L20
	addl	$1, -16(%rbp)
.L14:
	movl	W(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L21
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	fall, .-fall
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	jmp	.L23
.L30:
	movl	$0, R(%rip)
	movl	$220, %edx
	movl	$-1, %esi
	leaq	B(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, i(%rip)
	jmp	.L24
.L27:
	movl	$0, j(%rip)
	jmp	.L25
.L26:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L25:
	movl	j(%rip), %eax
	cmpl	$4, %eax
	jle	.L26
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L24:
	movl	i(%rip), %edx
	movl	H(%rip), %eax
	cmpl	%eax, %edx
	jl	.L27
	jmp	.L28
.L29:
	movl	$0, %eax
	call	fall
.L28:
	movl	$0, %eax
	call	del
	testl	%eax, %eax
	jne	.L29
	movl	R(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L23:
	leaq	H(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	H(%rip), %eax
	testl	%eax, %eax
	jne	.L30
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	del
	.type	del, @function
del:
.LFB35:
	.cfi_startproc
	endbr64
	movl	H(%rip), %ecx
	testl	%ecx, %ecx
	jle	.L45
	subl	$1, %ecx
	leaq	16+B(%rip), %rax
	movl	W(%rip), %edx
	xorl	%r8d, %r8d
	leaq	(%rcx,%rcx,4), %rsi
	leaq	20(%rax), %rcx
	movq	$-1, %r9
	leaq	(%rcx,%rsi,4), %rdi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	cmpl	$1, %edx
	je	.L43
.L44:
	movl	-12(%rax), %ecx
	cmpl	$-1, %ecx
	jne	.L96
.L15:
	cmpl	$2, %edx
	jle	.L43
.L70:
	movl	-8(%rax), %ecx
	cmpl	$-1, %ecx
	jne	.L97
.L24:
	cmpl	$3, %edx
	je	.L43
.L71:
	movl	-4(%rax), %ecx
	cmpl	$-1, %ecx
	jne	.L98
.L43:
	addq	$20, %rax
	cmpq	%rdi, %rax
	je	.L2
.L3:
	testl	%edx, %edx
	jle	.L43
	movl	-16(%rax), %ecx
	cmpl	$-1, %ecx
	je	.L4
	cmpl	$1, %edx
	je	.L43
	cmpl	-12(%rax), %ecx
	jne	.L44
	cmpl	$2, %edx
	je	.L44
	cmpl	-8(%rax), %ecx
	jne	.L44
	cmpl	$3, %edx
	je	.L47
	cmpl	-4(%rax), %ecx
	jne	.L47
	cmpl	$4, %edx
	je	.L88
	cmpl	(%rax), %ecx
	jne	.L88
	movl	$5, %esi
.L9:
	imull	%esi, %ecx
	addl	%ecx, %r8d
.L8:
	leaq	-8(%rax), %r10
	movslq	%esi, %rcx
	leaq	-16(%rax), %rsi
	movq	$-1, -16(%rax)
	andq	$-8, %r10
	salq	$2, %rcx
	movq	$-1, -24(%rax,%rcx)
	subq	%r10, %rsi
	addl	%esi, %ecx
	andl	$-8, %ecx
	cmpl	$8, %ecx
	jb	.L44
	andl	$-8, %ecx
	xorl	%esi, %esi
.L13:
	movl	%esi, %r11d
	addl	$8, %esi
	movq	%r9, (%r10,%r11)
	cmpl	%ecx, %esi
	jb	.L13
	movl	-12(%rax), %ecx
	cmpl	$-1, %ecx
	je	.L15
	.p2align 4,,10
	.p2align 3
.L96:
	cmpl	$2, %edx
	jle	.L43
	cmpl	-8(%rax), %ecx
	jne	.L15
	cmpl	$3, %edx
	je	.L70
	cmpl	-4(%rax), %ecx
	jne	.L15
	cmpl	$4, %edx
	je	.L90
	cmpl	(%rax), %ecx
	jne	.L90
	cmpl	$5, %edx
	je	.L89
	cmpl	4(%rax), %ecx
	jne	.L89
	leal	(%rcx,%rcx,4), %ecx
	addl	%ecx, %r8d
	movl	$6, %ecx
.L17:
	subl	$1, %ecx
	movq	$-1, -12(%rax)
	leaq	-12(%rax), %rsi
	salq	$2, %rcx
	movl	%ecx, %r10d
	movq	$-1, -20(%rax,%r10)
	leaq	-4(%rax), %r10
	andq	$-8, %r10
	subq	%r10, %rsi
	addl	%esi, %ecx
	andl	$-8, %ecx
	cmpl	$8, %ecx
	jb	.L15
	andl	$-8, %ecx
	xorl	%esi, %esi
.L22:
	movl	%esi, %r11d
	addl	$8, %esi
	movq	%r9, (%r10,%r11)
	cmpl	%ecx, %esi
	jb	.L22
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L97:
	cmpl	$3, %edx
	je	.L43
	cmpl	-4(%rax), %ecx
	jne	.L24
	cmpl	$4, %edx
	je	.L71
	cmpl	(%rax), %ecx
	jne	.L24
	cmpl	$5, %edx
	je	.L92
	cmpl	4(%rax), %ecx
	jne	.L92
	cmpl	$6, %edx
	je	.L91
	cmpl	8(%rax), %ecx
	jne	.L91
	leal	(%rcx,%rcx,4), %ecx
	addl	%ecx, %r8d
	movl	$7, %ecx
.L26:
	movq	%rax, %r11
	subl	$2, %ecx
	leaq	-8(%rax), %rsi
	movq	$-1, -8(%rax)
	andq	$-8, %r11
	salq	$2, %rcx
	subq	%r11, %rsi
	movl	%ecx, %r10d
	movq	$-1, -16(%rax,%r10)
	addl	%esi, %ecx
	andl	$-8, %ecx
	cmpl	$8, %ecx
	jb	.L24
	andl	$-8, %ecx
	xorl	%esi, %esi
.L31:
	movl	%esi, %r10d
	addl	$8, %esi
	movq	%r9, (%r11,%r10)
	cmpl	%ecx, %esi
	jb	.L31
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L98:
	cmpl	$4, %edx
	je	.L43
	cmpl	(%rax), %ecx
	jne	.L43
	cmpl	$5, %edx
	je	.L43
	cmpl	4(%rax), %ecx
	jne	.L43
	cmpl	$6, %edx
	je	.L94
	cmpl	8(%rax), %ecx
	jne	.L94
	cmpl	$7, %edx
	je	.L93
	cmpl	12(%rax), %ecx
	jne	.L93
	leal	(%rcx,%rcx,4), %ecx
	addl	%ecx, %r8d
	movl	$8, %ecx
.L35:
	subl	$3, %ecx
	movq	$-1, -4(%rax)
	leaq	-4(%rax), %rsi
	salq	$2, %rcx
	movl	%ecx, %r10d
	movq	$-1, -12(%rax,%r10)
	leaq	4(%rax), %r10
	andq	$-8, %r10
	subq	%r10, %rsi
	addl	%esi, %ecx
	andl	$-8, %ecx
	cmpl	$8, %ecx
	jb	.L43
	andl	$-8, %ecx
	xorl	%esi, %esi
.L40:
	movl	%esi, %r11d
	addl	$8, %esi
	movq	%r9, (%r10,%r11)
	cmpl	%ecx, %esi
	jb	.L40
	addq	$20, %rax
	cmpq	%rdi, %rax
	jne	.L3
.L2:
	addl	%r8d, R(%rip)
	movl	%r8d, %eax
	ret
.L47:
	movl	$3, %esi
	jmp	.L9
.L88:
	leal	(%r8,%rcx,4), %r8d
	movl	$4, %esi
	jmp	.L8
.L90:
	leal	(%rcx,%rcx,2), %ecx
	addl	%ecx, %r8d
	movl	$4, %ecx
	jmp	.L17
.L89:
	leal	(%r8,%rcx,4), %r8d
	movl	$5, %ecx
	jmp	.L17
.L92:
	leal	(%rcx,%rcx,2), %ecx
	addl	%ecx, %r8d
	movl	$5, %ecx
	jmp	.L26
.L91:
	leal	(%r8,%rcx,4), %r8d
	movl	$6, %ecx
	jmp	.L26
.L45:
	xorl	%r8d, %r8d
	addl	%r8d, R(%rip)
	movl	%r8d, %eax
	ret
.L94:
	leal	(%rcx,%rcx,2), %ecx
	addl	%ecx, %r8d
	movl	$6, %ecx
	jmp	.L35
.L93:
	leal	(%r8,%rcx,4), %r8d
	movl	$7, %ecx
	jmp	.L35
	.cfi_endproc
.LFE35:
	.size	del, .-del
	.p2align 4
	.globl	fall
	.type	fall, @function
fall:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	W(%rip), %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
	movl	%eax, -32(%rsp)
	testl	%eax, %eax
	jle	.L99
	movl	H(%rip), %r15d
	testl	%r15d, %r15d
	jle	.L99
	movslq	%r15d, %rax
	leaq	B(%rip), %r13
	movl	$0, -44(%rsp)
	leaq	(%rax,%rax,4), %rax
	leaq	0(%r13,%rax,4), %rax
	movq	%rax, -40(%rsp)
	leal	9(%r15), %eax
	movl	%eax, -4(%rsp)
	leal	1(%r15), %eax
	movl	%eax, -28(%rsp)
	leal	2(%r15), %eax
	movl	%eax, -24(%rsp)
	leal	3(%r15), %eax
	movl	%eax, -20(%rsp)
	leal	4(%r15), %eax
	movl	%eax, -16(%rsp)
	leal	5(%r15), %eax
	movl	%eax, -12(%rsp)
	leal	6(%r15), %eax
	movl	%eax, -8(%rsp)
	.p2align 4,,10
	.p2align 3
.L103:
	movl	-4(%rsp), %eax
	movl	-28(%rsp), %r11d
	movl	%r15d, %ecx
	movl	-24(%rsp), %r8d
	movl	-20(%rsp), %r14d
	movl	-16(%rsp), %r10d
	movl	-8(%rsp), %ebx
	movl	%eax, -48(%rsp)
	movl	-12(%rsp), %eax
	movq	-40(%rsp), %rsi
	movslq	-44(%rsp), %rdi
	movl	%eax, -52(%rsp)
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L104:
	subl	$1, -48(%rsp)
	subq	$20, %rsi
	subl	$1, %r11d
	subl	$1, %ebx
	subl	$1, -52(%rsp)
	subl	$1, %r8d
	subl	$1, %r14d
	subl	$1, %r10d
	testl	%ecx, %ecx
	je	.L134
.L102:
	movl	-20(%rsi), %r12d
	movl	%ecx, %ebp
	subl	$1, %ecx
	cmpl	$-1, %r12d
	je	.L104
	movl	%ebp, %r9d
	cmpl	%ebp, %r15d
	jle	.L108
	movslq	%ebp, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdi, %rdx
	movl	0(%r13,%rdx,4), %edx
	cmpl	$-1, %edx
	jne	.L106
	cmpl	%r11d, %r15d
	jle	.L105
	movslq	%r11d, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdi, %rdx
	movl	0(%r13,%rdx,4), %edx
	cmpl	$-1, %edx
	jne	.L110
	movl	%r8d, %r9d
	cmpl	%r8d, %r15d
	jle	.L105
	movslq	%r8d, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdi, %rdx
	movl	0(%r13,%rdx,4), %edx
	cmpl	$-1, %edx
	jne	.L106
	cmpl	%r14d, %r15d
	jle	.L105
	movslq	%r14d, %rax
	leaq	(%rax,%rax,4), %rax
	addq	%rdi, %rax
	movl	0(%r13,%rax,4), %edx
	cmpl	$-1, %edx
	jne	.L112
	movl	%r10d, %r9d
	movslq	%r14d, %rax
	cmpl	%r10d, %r15d
	jle	.L105
	movslq	%r10d, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdi, %rdx
	movl	0(%r13,%rdx,4), %edx
	cmpl	$-1, %edx
	jne	.L106
	movl	-52(%rsp), %r9d
	cmpl	%r9d, %r15d
	jle	.L105
	movslq	%r9d, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdi, %rdx
	movl	0(%r13,%rdx,4), %edx
	cmpl	$-1, %edx
	jne	.L106
	movl	%ebx, %r9d
	cmpl	%ebx, %r15d
	jle	.L105
	movslq	%ebx, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdi, %rdx
	movl	0(%r13,%rdx,4), %edx
	cmpl	$-1, %edx
	jne	.L106
	leal	7(%rbp), %r9d
	cmpl	%r9d, %r15d
	jle	.L105
	movslq	%r9d, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdi, %rdx
	movl	0(%r13,%rdx,4), %edx
	cmpl	$-1, %edx
	jne	.L106
	leal	8(%rbp), %r9d
	cmpl	%r9d, %r15d
	jle	.L105
	movslq	%r9d, %rax
	leaq	(%rax,%rax,4), %rax
	addq	%rdi, %rax
	movl	0(%r13,%rax,4), %edx
	cmpl	$-1, %edx
	jne	.L106
	movslq	-48(%rsp), %rax
	cmpl	%eax, %r15d
	jle	.L117
	leaq	(%rax,%rax,4), %rdx
	movl	-48(%rsp), %r9d
	addq	%rdi, %rdx
	movl	0(%r13,%rdx,4), %edx
	cmpl	$-1, %edx
	jne	.L106
.L105:
	leaq	(%rax,%rax,4), %rax
	addq	%rdi, %rax
	movl	%r12d, 0(%r13,%rax,4)
	movl	%edx, -20(%rsi)
	jmp	.L104
.L110:
	movl	%r11d, %r9d
	.p2align 4,,10
	.p2align 3
.L106:
	subl	$1, %r9d
	movslq	%r9d, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdi, %rdx
	movl	0(%r13,%rdx,4), %edx
	jmp	.L105
	.p2align 4,,10
	.p2align 3
.L134:
	addl	$1, -44(%rsp)
	movl	-44(%rsp), %eax
	addq	$4, -40(%rsp)
	cmpl	-32(%rsp), %eax
	jne	.L103
.L99:
	popq	%rbx
	.cfi_remember_state
	.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
.L108:
	.cfi_restore_state
	movl	%r12d, %edx
	movslq	%ecx, %rax
	jmp	.L105
.L112:
	movl	%r14d, %r9d
	jmp	.L106
.L117:
	movslq	%r9d, %rax
	jmp	.L105
	.cfi_endproc
.LFE36:
	.size	fall, .-fall
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	H(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	B(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	.LC0(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	.p2align 4,,10
	.p2align 3
.L136:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	H(%rip), %eax
	testl	%eax, %eax
	je	.L148
	pcmpeqd	%xmm0, %xmm0
	movl	$0, %edx
	movl	$0, R(%rip)
	movq	$-1, 208+B(%rip)
	movl	$-1, 216+B(%rip)
	movl	$0, i(%rip)
	movaps	%xmm0, B(%rip)
	movaps	%xmm0, 16+B(%rip)
	movaps	%xmm0, 32+B(%rip)
	movaps	%xmm0, 48+B(%rip)
	movaps	%xmm0, 64+B(%rip)
	movaps	%xmm0, 80+B(%rip)
	movaps	%xmm0, 96+B(%rip)
	movaps	%xmm0, 112+B(%rip)
	movaps	%xmm0, 128+B(%rip)
	movaps	%xmm0, 144+B(%rip)
	movaps	%xmm0, 160+B(%rip)
	movaps	%xmm0, 176+B(%rip)
	movaps	%xmm0, 192+B(%rip)
	jle	.L138
	.p2align 4,,10
	.p2align 3
.L137:
	movl	$0, j(%rip)
	xorl	%eax, %eax
	jmp	.L140
	.p2align 4,,10
	.p2align 3
.L149:
	movl	i(%rip), %edx
.L140:
	movslq	%edx, %rdx
	cltq
	movq	%rbx, %rdi
	leaq	(%rdx,%rdx,4), %rdx
	addq	%rdx, %rax
	leaq	0(%rbp,%rax,4), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
	cmpl	$4, %eax
	jle	.L149
	movl	i(%rip), %eax
	leal	1(%rax), %edx
	cmpl	H(%rip), %edx
	movl	%edx, i(%rip)
	jl	.L137
	xorl	%eax, %eax
	call	del
	testl	%eax, %eax
	je	.L150
	.p2align 4,,10
	.p2align 3
.L142:
	xorl	%eax, %eax
	call	fall
.L138:
	xorl	%eax, %eax
	call	del
	testl	%eax, %eax
	jne	.L142
.L150:
	movl	R(%rip), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L136
.L148:
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE37:
	.size	main, .-main
	.globl	R
	.bss
	.align 4
	.type	R, @object
	.size	R, 4
R:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	B
	.align 32
	.type	B, @object
	.size	B, 220
B:
	.zero	220
	.globl	W
	.data
	.align 4
	.type	W, @object
	.size	W, 4
W:
	.long	5
	.globl	H
	.bss
	.align 4
	.type	H, @object
	.size	H, 4
H:
	.zero	4
	.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	del
	.type	del, @function
del:
.LFB35:
	.cfi_startproc
	endbr64
	movl	H(%rip), %ecx
	testl	%ecx, %ecx
	jle	.L45
	subl	$1, %ecx
	leaq	16+B(%rip), %rax
	movl	W(%rip), %edx
	xorl	%r8d, %r8d
	leaq	(%rcx,%rcx,4), %rsi
	leaq	20(%rax), %rcx
	movq	$-1, %r9
	leaq	(%rcx,%rsi,4), %rdi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	cmpl	$1, %edx
	je	.L43
.L44:
	movl	-12(%rax), %ecx
	cmpl	$-1, %ecx
	jne	.L96
.L15:
	cmpl	$2, %edx
	jle	.L43
.L70:
	movl	-8(%rax), %ecx
	cmpl	$-1, %ecx
	jne	.L97
.L24:
	cmpl	$3, %edx
	je	.L43
.L71:
	movl	-4(%rax), %ecx
	cmpl	$-1, %ecx
	jne	.L98
.L43:
	addq	$20, %rax
	cmpq	%rdi, %rax
	je	.L2
.L3:
	testl	%edx, %edx
	jle	.L43
	movl	-16(%rax), %ecx
	cmpl	$-1, %ecx
	je	.L4
	cmpl	$1, %edx
	je	.L43
	cmpl	-12(%rax), %ecx
	jne	.L44
	cmpl	$2, %edx
	je	.L44
	cmpl	-8(%rax), %ecx
	jne	.L44
	cmpl	$3, %edx
	je	.L47
	cmpl	-4(%rax), %ecx
	jne	.L47
	cmpl	$4, %edx
	je	.L88
	cmpl	(%rax), %ecx
	jne	.L88
	movl	$5, %esi
.L9:
	imull	%esi, %ecx
	addl	%ecx, %r8d
.L8:
	leaq	-8(%rax), %r10
	movslq	%esi, %rcx
	leaq	-16(%rax), %rsi
	movq	$-1, -16(%rax)
	andq	$-8, %r10
	salq	$2, %rcx
	movq	$-1, -24(%rax,%rcx)
	subq	%r10, %rsi
	addl	%esi, %ecx
	andl	$-8, %ecx
	cmpl	$8, %ecx
	jb	.L44
	andl	$-8, %ecx
	xorl	%esi, %esi
.L13:
	movl	%esi, %r11d
	addl	$8, %esi
	movq	%r9, (%r10,%r11)
	cmpl	%ecx, %esi
	jb	.L13
	movl	-12(%rax), %ecx
	cmpl	$-1, %ecx
	je	.L15
	.p2align 4,,10
	.p2align 3
.L96:
	cmpl	$2, %edx
	jle	.L43
	cmpl	-8(%rax), %ecx
	jne	.L15
	cmpl	$3, %edx
	je	.L70
	cmpl	-4(%rax), %ecx
	jne	.L15
	cmpl	$4, %edx
	je	.L90
	cmpl	(%rax), %ecx
	jne	.L90
	cmpl	$5, %edx
	je	.L89
	cmpl	4(%rax), %ecx
	jne	.L89
	leal	(%rcx,%rcx,4), %ecx
	addl	%ecx, %r8d
	movl	$6, %ecx
.L17:
	subl	$1, %ecx
	movq	$-1, -12(%rax)
	leaq	-12(%rax), %rsi
	salq	$2, %rcx
	movl	%ecx, %r10d
	movq	$-1, -20(%rax,%r10)
	leaq	-4(%rax), %r10
	andq	$-8, %r10
	subq	%r10, %rsi
	addl	%esi, %ecx
	andl	$-8, %ecx
	cmpl	$8, %ecx
	jb	.L15
	andl	$-8, %ecx
	xorl	%esi, %esi
.L22:
	movl	%esi, %r11d
	addl	$8, %esi
	movq	%r9, (%r10,%r11)
	cmpl	%ecx, %esi
	jb	.L22
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L97:
	cmpl	$3, %edx
	je	.L43
	cmpl	-4(%rax), %ecx
	jne	.L24
	cmpl	$4, %edx
	je	.L71
	cmpl	(%rax), %ecx
	jne	.L24
	cmpl	$5, %edx
	je	.L92
	cmpl	4(%rax), %ecx
	jne	.L92
	cmpl	$6, %edx
	je	.L91
	cmpl	8(%rax), %ecx
	jne	.L91
	leal	(%rcx,%rcx,4), %ecx
	addl	%ecx, %r8d
	movl	$7, %ecx
.L26:
	movq	%rax, %r11
	subl	$2, %ecx
	leaq	-8(%rax), %rsi
	movq	$-1, -8(%rax)
	andq	$-8, %r11
	salq	$2, %rcx
	subq	%r11, %rsi
	movl	%ecx, %r10d
	movq	$-1, -16(%rax,%r10)
	addl	%esi, %ecx
	andl	$-8, %ecx
	cmpl	$8, %ecx
	jb	.L24
	andl	$-8, %ecx
	xorl	%esi, %esi
.L31:
	movl	%esi, %r10d
	addl	$8, %esi
	movq	%r9, (%r11,%r10)
	cmpl	%ecx, %esi
	jb	.L31
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L98:
	cmpl	$4, %edx
	je	.L43
	cmpl	(%rax), %ecx
	jne	.L43
	cmpl	$5, %edx
	je	.L43
	cmpl	4(%rax), %ecx
	jne	.L43
	cmpl	$6, %edx
	je	.L94
	cmpl	8(%rax), %ecx
	jne	.L94
	cmpl	$7, %edx
	je	.L93
	cmpl	12(%rax), %ecx
	jne	.L93
	leal	(%rcx,%rcx,4), %ecx
	addl	%ecx, %r8d
	movl	$8, %ecx
.L35:
	subl	$3, %ecx
	movq	$-1, -4(%rax)
	leaq	-4(%rax), %rsi
	salq	$2, %rcx
	movl	%ecx, %r10d
	movq	$-1, -12(%rax,%r10)
	leaq	4(%rax), %r10
	andq	$-8, %r10
	subq	%r10, %rsi
	addl	%esi, %ecx
	andl	$-8, %ecx
	cmpl	$8, %ecx
	jb	.L43
	andl	$-8, %ecx
	xorl	%esi, %esi
.L40:
	movl	%esi, %r11d
	addl	$8, %esi
	movq	%r9, (%r10,%r11)
	cmpl	%ecx, %esi
	jb	.L40
	addq	$20, %rax
	cmpq	%rdi, %rax
	jne	.L3
.L2:
	addl	%r8d, R(%rip)
	movl	%r8d, %eax
	ret
.L47:
	movl	$3, %esi
	jmp	.L9
.L88:
	leal	(%r8,%rcx,4), %r8d
	movl	$4, %esi
	jmp	.L8
.L90:
	leal	(%rcx,%rcx,2), %ecx
	addl	%ecx, %r8d
	movl	$4, %ecx
	jmp	.L17
.L89:
	leal	(%r8,%rcx,4), %r8d
	movl	$5, %ecx
	jmp	.L17
.L92:
	leal	(%rcx,%rcx,2), %ecx
	addl	%ecx, %r8d
	movl	$5, %ecx
	jmp	.L26
.L91:
	leal	(%r8,%rcx,4), %r8d
	movl	$6, %ecx
	jmp	.L26
.L45:
	xorl	%r8d, %r8d
	addl	%r8d, R(%rip)
	movl	%r8d, %eax
	ret
.L94:
	leal	(%rcx,%rcx,2), %ecx
	addl	%ecx, %r8d
	movl	$6, %ecx
	jmp	.L35
.L93:
	leal	(%r8,%rcx,4), %r8d
	movl	$7, %ecx
	jmp	.L35
	.cfi_endproc
.LFE35:
	.size	del, .-del
	.p2align 4
	.globl	fall
	.type	fall, @function
fall:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	W(%rip), %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
	movl	%eax, -32(%rsp)
	testl	%eax, %eax
	jle	.L99
	movl	H(%rip), %r15d
	testl	%r15d, %r15d
	jle	.L99
	movslq	%r15d, %rax
	leaq	B(%rip), %r13
	movl	$0, -44(%rsp)
	leaq	(%rax,%rax,4), %rax
	leaq	0(%r13,%rax,4), %rax
	movq	%rax, -40(%rsp)
	leal	9(%r15), %eax
	movl	%eax, -4(%rsp)
	leal	1(%r15), %eax
	movl	%eax, -28(%rsp)
	leal	2(%r15), %eax
	movl	%eax, -24(%rsp)
	leal	3(%r15), %eax
	movl	%eax, -20(%rsp)
	leal	4(%r15), %eax
	movl	%eax, -16(%rsp)
	leal	5(%r15), %eax
	movl	%eax, -12(%rsp)
	leal	6(%r15), %eax
	movl	%eax, -8(%rsp)
	.p2align 4,,10
	.p2align 3
.L103:
	movl	-4(%rsp), %eax
	movl	-28(%rsp), %r11d
	movl	%r15d, %ecx
	movl	-24(%rsp), %r8d
	movl	-20(%rsp), %r14d
	movl	-16(%rsp), %r10d
	movl	-8(%rsp), %ebx
	movl	%eax, -48(%rsp)
	movl	-12(%rsp), %eax
	movq	-40(%rsp), %rsi
	movslq	-44(%rsp), %rdi
	movl	%eax, -52(%rsp)
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L104:
	subl	$1, -48(%rsp)
	subq	$20, %rsi
	subl	$1, %r11d
	subl	$1, %ebx
	subl	$1, -52(%rsp)
	subl	$1, %r8d
	subl	$1, %r14d
	subl	$1, %r10d
	testl	%ecx, %ecx
	je	.L134
.L102:
	movl	-20(%rsi), %r12d
	movl	%ecx, %ebp
	subl	$1, %ecx
	cmpl	$-1, %r12d
	je	.L104
	movl	%ebp, %r9d
	cmpl	%ebp, %r15d
	jle	.L108
	movslq	%ebp, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdi, %rdx
	movl	0(%r13,%rdx,4), %edx
	cmpl	$-1, %edx
	jne	.L106
	cmpl	%r11d, %r15d
	jle	.L105
	movslq	%r11d, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdi, %rdx
	movl	0(%r13,%rdx,4), %edx
	cmpl	$-1, %edx
	jne	.L110
	movl	%r8d, %r9d
	cmpl	%r8d, %r15d
	jle	.L105
	movslq	%r8d, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdi, %rdx
	movl	0(%r13,%rdx,4), %edx
	cmpl	$-1, %edx
	jne	.L106
	cmpl	%r14d, %r15d
	jle	.L105
	movslq	%r14d, %rax
	leaq	(%rax,%rax,4), %rax
	addq	%rdi, %rax
	movl	0(%r13,%rax,4), %edx
	cmpl	$-1, %edx
	jne	.L112
	movl	%r10d, %r9d
	movslq	%r14d, %rax
	cmpl	%r10d, %r15d
	jle	.L105
	movslq	%r10d, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdi, %rdx
	movl	0(%r13,%rdx,4), %edx
	cmpl	$-1, %edx
	jne	.L106
	movl	-52(%rsp), %r9d
	cmpl	%r9d, %r15d
	jle	.L105
	movslq	%r9d, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdi, %rdx
	movl	0(%r13,%rdx,4), %edx
	cmpl	$-1, %edx
	jne	.L106
	movl	%ebx, %r9d
	cmpl	%ebx, %r15d
	jle	.L105
	movslq	%ebx, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdi, %rdx
	movl	0(%r13,%rdx,4), %edx
	cmpl	$-1, %edx
	jne	.L106
	leal	7(%rbp), %r9d
	cmpl	%r9d, %r15d
	jle	.L105
	movslq	%r9d, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdi, %rdx
	movl	0(%r13,%rdx,4), %edx
	cmpl	$-1, %edx
	jne	.L106
	leal	8(%rbp), %r9d
	cmpl	%r9d, %r15d
	jle	.L105
	movslq	%r9d, %rax
	leaq	(%rax,%rax,4), %rax
	addq	%rdi, %rax
	movl	0(%r13,%rax,4), %edx
	cmpl	$-1, %edx
	jne	.L106
	movslq	-48(%rsp), %rax
	cmpl	%eax, %r15d
	jle	.L117
	leaq	(%rax,%rax,4), %rdx
	movl	-48(%rsp), %r9d
	addq	%rdi, %rdx
	movl	0(%r13,%rdx,4), %edx
	cmpl	$-1, %edx
	jne	.L106
.L105:
	leaq	(%rax,%rax,4), %rax
	addq	%rdi, %rax
	movl	%r12d, 0(%r13,%rax,4)
	movl	%edx, -20(%rsi)
	jmp	.L104
.L110:
	movl	%r11d, %r9d
	.p2align 4,,10
	.p2align 3
.L106:
	subl	$1, %r9d
	movslq	%r9d, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdi, %rdx
	movl	0(%r13,%rdx,4), %edx
	jmp	.L105
	.p2align 4,,10
	.p2align 3
.L134:
	addl	$1, -44(%rsp)
	movl	-44(%rsp), %eax
	addq	$4, -40(%rsp)
	cmpl	-32(%rsp), %eax
	jne	.L103
.L99:
	popq	%rbx
	.cfi_remember_state
	.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
.L108:
	.cfi_restore_state
	movl	%r12d, %edx
	movslq	%ecx, %rax
	jmp	.L105
.L112:
	movl	%r14d, %r9d
	jmp	.L106
.L117:
	movslq	%r9d, %rax
	jmp	.L105
	.cfi_endproc
.LFE36:
	.size	fall, .-fall
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	H(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	B(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	.LC0(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	.p2align 4,,10
	.p2align 3
.L136:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	H(%rip), %eax
	testl	%eax, %eax
	je	.L148
	pcmpeqd	%xmm0, %xmm0
	movl	$0, %edx
	movl	$0, R(%rip)
	movq	$-1, 208+B(%rip)
	movl	$-1, 216+B(%rip)
	movl	$0, i(%rip)
	movaps	%xmm0, B(%rip)
	movaps	%xmm0, 16+B(%rip)
	movaps	%xmm0, 32+B(%rip)
	movaps	%xmm0, 48+B(%rip)
	movaps	%xmm0, 64+B(%rip)
	movaps	%xmm0, 80+B(%rip)
	movaps	%xmm0, 96+B(%rip)
	movaps	%xmm0, 112+B(%rip)
	movaps	%xmm0, 128+B(%rip)
	movaps	%xmm0, 144+B(%rip)
	movaps	%xmm0, 160+B(%rip)
	movaps	%xmm0, 176+B(%rip)
	movaps	%xmm0, 192+B(%rip)
	jle	.L138
	.p2align 4,,10
	.p2align 3
.L137:
	movl	$0, j(%rip)
	xorl	%eax, %eax
	jmp	.L140
	.p2align 4,,10
	.p2align 3
.L149:
	movl	i(%rip), %edx
.L140:
	movslq	%edx, %rdx
	cltq
	movq	%rbx, %rdi
	leaq	(%rdx,%rdx,4), %rdx
	addq	%rdx, %rax
	leaq	0(%rbp,%rax,4), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
	cmpl	$4, %eax
	jle	.L149
	movl	i(%rip), %eax
	leal	1(%rax), %edx
	cmpl	H(%rip), %edx
	movl	%edx, i(%rip)
	jl	.L137
	xorl	%eax, %eax
	call	del
	testl	%eax, %eax
	je	.L150
	.p2align 4,,10
	.p2align 3
.L142:
	xorl	%eax, %eax
	call	fall
.L138:
	xorl	%eax, %eax
	call	del
	testl	%eax, %eax
	jne	.L142
.L150:
	movl	R(%rip), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L136
.L148:
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE37:
	.size	main, .-main
	.globl	R
	.bss
	.align 4
	.type	R, @object
	.size	R, 4
R:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	B
	.align 32
	.type	B, @object
	.size	B, 220
B:
	.zero	220
	.globl	W
	.data
	.align 4
	.type	W, @object
	.size	W, 4
W:
	.long	5
	.globl	H
	.bss
	.align 4
	.type	H, @object
	.size	H, 4
H:
	.zero	4
	.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 H,W=5,B[11][5],i,j,R;

int del()
{
	int i,j,k,t,r=0;
	for(i=0;i<H;i++)
		for(j=0;j<W;j++)
		{
			if(B[i][j]!=-1)
			{
				for(k=j+1;k<W&&B[i][j]==B[i][k];k++);
				if(k-j>=3)
				{
					r+=B[i][j]*(k-j);
					for(t=j;t<k;t++)B[i][t]=-1;
				}
			}
		}
	R+=r;
	return r;
}

void fall()
{
	int i,j,k,t;
	for(i=0;i<W;i++)
		for(j=H-1;j>=0;j--)
			if(B[j][i]!=-1)
			{
				for(k=j+1;k<H&&B[k][i]==-1;k++);
				k--;
				t=B[k][i];
				B[k][i]=B[j][i];
				B[j][i]=t;
			}
}

int main()
{
	for(;scanf("%d",&H),H;)
	{
		R=0;
		memset(B,-1,sizeof(B));
		for(i=0;i<H;i++)
			for(j=0;j<5;j++)
				scanf("%d",&B[i][j]);
		while(del()!=0)
		{
			fall();
		}
		printf("%d\n",R);
	}
	return 0;
}
1
6 9 9 9 9
5
5 9 5 2 9
5 5 6 9 9
4 6 3 6 9
3 3 2 9 9
2 2 1 1 1
10
3 5 6 5 6
2 2 2 8 3
6 2 5 9 2
7 7 7 6 1
4 6 6 4 9
8 9 1 1 8
5 6 1 8 1
6 8 2 1 2
9 6 3 3 5
5 3 8 8 8
5
1 2 3 4 5
6 7 8 9 1
2 3 4 5 6
7 8 9 1 2
3 4 5 6 7
3
2 2 8 7 4
6 5 7 7 7
8 8 9 9 9
0
 1
6 9 9 9 9
5
5 9 5 2 9
5 5 6 9 9
4 6 3 6 9
3 2 2 9 9
2 2 1 1 1
10
3 5 6 5 6
2 2 2 8 3
6 2 5 9 2
7 7 7 6 1
4 6 6 4 9
8 9 1 1 8
5 6 1 8 1
6 8 2 1 2
9 6 3 3 5
5 3 8 8 8
5
1 2 3 4 5
6 7 8 9 1
2 3 4 5 6
7 8 9 1 2
3 4 5 6 7
3
2 2 8 7 4
6 5 7 7 7
8 8 9 9 9
0
 1
6 9 9 9 9
5
5 9 5 2 9
5 5 6 9 9
4 6 3 6 9
3 2 2 9 9
2 2 1 1 1
10
3 5 6 5 6
2 2 2 8 3
6 2 5 9 2
7 7 7 6 1
4 9 6 4 9
8 9 1 1 8
5 6 1 8 1
6 8 2 1 2
9 6 3 3 5
5 3 8 8 8
5
1 2 3 4 5
6 7 8 9 1
2 3 4 5 6
7 8 9 1 2
3 4 5 6 7
3
2 2 8 7 4
6 5 7 7 7
8 8 9 9 9
0
 1
6 9 9 9 9
5
5 9 5 2 9
5 5 6 9 9
4 6 3 6 9
3 2 2 9 9
2 2 1 1 1
10
3 5 6 5 6
2 2 2 8 3
6 2 5 9 2
7 7 7 6 1
4 9 6 4 9
8 9 1 1 8
5 6 1 8 1
6 8 2 1 2
9 6 3 3 5
5 3 8 8 8
5
1 2 3 4 5
6 7 8 9 1
2 3 4 5 6
7 8 9 1 2
3 4 5 6 7
3
2 2 4 7 4
6 5 7 7 7
8 8 9 9 9
0
 1
6 9 9 9 9
5
5 9 5 2 9
5 5 6 9 9
4 6 3 10 9
3 2 2 9 9
2 2 1 1 1
10
3 5 6 5 6
2 2 2 8 3
6 2 5 9 2
7 7 7 6 1
4 9 6 4 9
8 9 1 1 8
5 6 1 8 1
6 8 2 1 2
9 6 3 3 5
5 3 8 8 8
5
1 2 3 4 5
6 7 8 9 1
2 3 4 5 6
7 8 9 1 2
3 4 5 6 7
3
2 2 4 7 4
6 5 7 7 7
8 8 9 9 9
0
 1
6 9 9 9 9
5
5 9 5 2 9
5 5 6 9 9
4 6 3 10 9
3 2 2 9 9
2 2 1 1 1
10
3 5 6 5 6
2 2 2 8 3
6 2 5 9 2
8 7 7 6 1
4 9 6 4 9
8 9 1 1 8
5 6 1 8 1
6 8 2 1 2
9 6 3 3 5
5 3 8 8 8
5
1 2 3 4 5
6 7 8 9 1
2 3 4 5 6
7 8 9 1 2
3 4 5 6 12
3
2 2 4 7 4
6 5 7 7 7
8 8 9 9 9
0
 1
6 9 9 9 9
5
5 9 5 5 9
5 5 6 9 9
4 6 3 6 9
3 3 2 9 9
2 2 1 1 1
10
3 5 6 5 6
2 2 2 8 3
6 2 5 9 2
7 7 7 6 1
4 2 6 4 9
8 9 1 1 8
5 6 1 8 1
6 8 2 1 2
9 6 3 3 5
5 3 8 8 8
5
1 2 3 4 5
6 7 8 9 1
2 3 4 5 6
7 8 9 1 2
3 4 5 6 7
3
2 2 8 7 4
6 5 7 7 7
8 8 9 9 9
0
 1
6 9 9 9 9
5
5 9 5 2 9
5 5 6 9 9
4 6 3 6 9
3 2 2 9 9
2 2 1 1 1
10
3 5 6 5 6
2 2 2 8 3
6 2 5 9 2
3 7 7 6 1
4 6 6 4 9
8 9 1 1 8
5 6 1 8 1
6 8 2 1 2
9 6 3 3 5
5 3 8 8 8
5
1 2 3 4 5
6 7 8 9 1
2 3 4 5 6
7 8 9 1 2
3 4 5 6 7
3
2 2 8 7 4
6 5 7 7 7
8 8 9 9 9
0
 1
6 9 9 9 9
5
5 9 5 2 9
5 6 6 9 9
4 6 3 10 9
3 2 2 9 9
2 2 1 1 1
10
3 5 6 5 6
2 2 2 8 3
6 2 5 9 2
8 7 7 6 1
4 9 6 4 9
8 9 1 1 8
5 6 1 8 1
6 8 2 1 2
9 6 3 3 5
5 3 8 8 8
5
1 2 3 4 5
6 7 8 9 1
2 3 4 5 6
7 8 9 1 2
3 4 5 6 12
3
2 2 4 7 4
6 5 7 7 7
8 8 9 9 9
0
 1
6 9 9 9 9
5
5 9 5 5 9
5 5 6 9 9
4 6 3 6 9
3 3 2 9 9
2 2 1 1 1
10
3 5 6 5 6
2 2 2 8 3
6 2 5 9 2
7 7 7 6 1
4 2 6 4 9
8 9 1 1 8
5 6 1 8 1
6 8 2 1 2
9 6 3 3 5
5 3 8 8 8
5
1 2 3 4 5
6 7 8 9 1
2 3 4 5 6
7 8 9 1 2
3 4 5 6 7
3
2 2 10 7 4
6 5 7 7 7
8 8 9 9 9
0

36
33
99
0
72
 36
42
99
0
72
 36
42
81
0
72
 36
42
81
0
48
 36
24
81
0
48
 36
24
60
0
48
 36
38
81
0
72
 36
42
60
0
72
 36
9
60
0
48
 36
38
81
0
48

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 H,W=5,B[11][5],i,j,R;

int del()
{
	int i,j,k,t,r=0;
	for(i=0;i<H;i++)
		for(j=0;j<W;j++)
		{
			if(B[i][j]!=-1)
			{
				for(k=j+1;k<W&&B[i][j]==B[i][k];k++);
				if(k-j>=3)
				{
					r+=B[i][j]*(k-j);
					for(t=j;t<k;t++)B[i][t]=-1;
				}
			}
		}
	R+=r;
	return r;
}

void fall()
{
	int i,j,k,t;
	for(i=0;i<W;i++)
		for(j=H-1;j>=0;j--)
			if(B[j][i]!=-1)
			{
				for(k=j+1;k<H&&B[k][i]==-1;k++);
				k--;
				t=B[k][i];
				B[k][i]=B[j][i];
				B[j][i]=t;
			}
}

int main()
{
	for(;scanf("%d",&H),H;)
	{
		R=0;
		memset(B,-1,sizeof(B));
		for(i=0;i<H;i++)
			for(j=0;j<5;j++)
				scanf("%d",&B[i][j]);
		while(del()!=0)
		{
			fall();
		}
		printf("%d\n",R);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	H
	.bss
	.align 4
	.type	H, @object
	.size	H, 4
H:
	.zero	4
	.globl	W
	.data
	.align 4
	.type	W, @object
	.size	W, 4
W:
	.long	5
	.globl	B
	.bss
	.align 32
	.type	B, @object
	.size	B, 220
B:
	.zero	220
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	R
	.align 4
	.type	R, @object
	.size	R, 4
R:
	.zero	4
	.text
	.globl	del
	.type	del, @function
del:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -4(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L2
.L11:
	movl	$0, -16(%rbp)
	jmp	.L3
.L10:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L4
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L5
.L7:
	addl	$1, -12(%rbp)
.L5:
	movl	W(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L6
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, %ecx
	je	.L7
.L6:
	movl	-12(%rbp), %eax
	subl	-16(%rbp), %eax
	cmpl	$2, %eax
	jle	.L4
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	subl	-16(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, -4(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L8
.L9:
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -8(%rbp)
.L8:
	movl	-8(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jl	.L9
.L4:
	addl	$1, -16(%rbp)
.L3:
	movl	W(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L10
	addl	$1, -20(%rbp)
.L2:
	movl	H(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L11
	movl	R(%rip), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, R(%rip)
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	del, .-del
	.globl	fall
	.type	fall, @function
fall:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -16(%rbp)
	jmp	.L14
.L21:
	movl	H(%rip), %eax
	subl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L15
.L20:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L16
	movl	-12(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L17
.L19:
	addl	$1, -8(%rbp)
.L17:
	movl	H(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jge	.L18
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L19
.L18:
	subl	$1, -8(%rbp)
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rsi
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	B(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	B(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L16:
	subl	$1, -12(%rbp)
.L15:
	cmpl	$0, -12(%rbp)
	jns	.L20
	addl	$1, -16(%rbp)
.L14:
	movl	W(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L21
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	fall, .-fall
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	jmp	.L23
.L30:
	movl	$0, R(%rip)
	movl	$220, %edx
	movl	$-1, %esi
	leaq	B(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, i(%rip)
	jmp	.L24
.L27:
	movl	$0, j(%rip)
	jmp	.L25
.L26:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L25:
	movl	j(%rip), %eax
	cmpl	$4, %eax
	jle	.L26
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L24:
	movl	i(%rip), %edx
	movl	H(%rip), %eax
	cmpl	%eax, %edx
	jl	.L27
	jmp	.L28
.L29:
	movl	$0, %eax
	call	fall
.L28:
	movl	$0, %eax
	call	del
	testl	%eax, %eax
	jne	.L29
	movl	R(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L23:
	leaq	H(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	H(%rip), %eax
	testl	%eax, %eax
	jne	.L30
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	H
	.bss
	.align 4
	.type	H, @object
	.size	H, 4
H:
	.zero	4
	.globl	W
	.data
	.align 4
	.type	W, @object
	.size	W, 4
W:
	.long	5
	.globl	B
	.bss
	.align 32
	.type	B, @object
	.size	B, 220
B:
	.zero	220
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	R
	.align 4
	.type	R, @object
	.size	R, 4
R:
	.zero	4
	.text
	.globl	del
	.type	del, @function
del:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -4(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L2
.L11:
	movl	$0, -16(%rbp)
	jmp	.L3
.L10:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L4
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L5
.L7:
	addl	$1, -12(%rbp)
.L5:
	movl	W(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L6
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, %ecx
	je	.L7
.L6:
	movl	-12(%rbp), %eax
	subl	-16(%rbp), %eax
	cmpl	$2, %eax
	jle	.L4
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	subl	-16(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, -4(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L8
.L9:
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -8(%rbp)
.L8:
	movl	-8(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jl	.L9
.L4:
	addl	$1, -16(%rbp)
.L3:
	movl	W(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L10
	addl	$1, -20(%rbp)
.L2:
	movl	H(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L11
	movl	R(%rip), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, R(%rip)
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	del, .-del
	.globl	fall
	.type	fall, @function
fall:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -16(%rbp)
	jmp	.L14
.L21:
	movl	H(%rip), %eax
	subl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L15
.L20:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L16
	movl	-12(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L17
.L19:
	addl	$1, -8(%rbp)
.L17:
	movl	H(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jge	.L18
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L19
.L18:
	subl	$1, -8(%rbp)
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rsi
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	B(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	B(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L16:
	subl	$1, -12(%rbp)
.L15:
	cmpl	$0, -12(%rbp)
	jns	.L20
	addl	$1, -16(%rbp)
.L14:
	movl	W(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L21
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	fall, .-fall
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	jmp	.L23
.L30:
	movl	$0, R(%rip)
	movl	$220, %edx
	movl	$-1, %esi
	leaq	B(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, i(%rip)
	jmp	.L24
.L27:
	movl	$0, j(%rip)
	jmp	.L25
.L26:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	B(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L25:
	movl	j(%rip), %eax
	cmpl	$4, %eax
	jle	.L26
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L24:
	movl	i(%rip), %edx
	movl	H(%rip), %eax
	cmpl	%eax, %edx
	jl	.L27
	jmp	.L28
.L29:
	movl	$0, %eax
	call	fall
.L28:
	movl	$0, %eax
	call	del
	testl	%eax, %eax
	jne	.L29
	movl	R(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L23:
	leaq	H(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	H(%rip), %eax
	testl	%eax, %eax
	jne	.L30
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
