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>

int h,i,j,k,l,m,n,count,score;
int site[5][11],flag;

void yoko(int x,int y) {

  //   printf("count = %d\n",count);  
  //  printf("x = %d\n",x);
  

  if(site[x][y] == site[x+1][y] && site[x][y] != 0 && site[x+1][y] !=0){
    //printf("%d  = %d\n",site[x][y] ,site[x+1][y]);
    count++;
    if(x != 3) yoko(x+1,y);
  }
  else if(count >=3) {
    //  printf("1count = %d\n",count);
    score += site[x-1][y] * count;
    ///printf("x - count +1 = %d\n",x - count + 1);
    for(j=x-count+1;j<=x;j++) site[j][y] = 0;
    count = 1;
    flag  = 1;
    if(x != 3) yoko(x+1,y);

  } if(x != 3) {
    count  = 1;
    yoko(x+1,y);
  } 
  
  if(count >=3 && x == 3) {
    // printf("2count = %d\n",count);
    score += site[x-1][y] * count;
    for(j=x-count+2;j<5;j++) site[j][y] = 0;
    count = 1;
    flag = 1;
  }


  
}

int main() {


  while(1) {

    scanf("%d",&n);
    //    printf("n = %d\n",n);

    if(n == 0) break;

    score = 0;

    for(j=0;j<n;j++){
      for(i=0;i<5;i++) {
	scanf("%d",&site[i][j]);
	//	printf("site[%d][%d] = %d\n",i,j,site[i][j]);

      }
    }
    
    flag = 1;
    while(flag != 0) {
      k=0;
      flag= 0;

      // printf("while flag = %d\n",flag);
      for(i=0;i<n;i++){
	count = 1;
	//	printf("before yoko\n");
	yoko(k,i);
      
      }
      
      /* //check cord
      for(j=0;j<n;j++){
	for(i=0;i<5;i++) {
	  printf("%d ",site[i][j]);
	    
      }
	printf("\n");
	} */  


      for(j=1;j<n;j++) {
	for(i=0;i<5;i++) {
	  if(site[i][j] == 0) {
	    for(k=j;k>0;k--) {
	      site[i][k] = site[i][k-1];
	    }
	    site[i][0] = 0;
	  }
	}
      }
      /* //check cord
      printf("\n");
      for(j=0;j<n;j++){
	for(i=0;i<5;i++) {
	  printf("%d ",site[i][j]);
	    
	}
	printf("\n");
      }  
      printf("\n");
      */

      // printf("flag = %d\n",flag);

    }


    
    printf("%d\n",score);
    
  }

  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	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	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	count
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.globl	score
	.align 4
	.type	score, @object
	.size	score, 4
score:
	.zero	4
	.globl	site
	.align 32
	.type	site, @object
	.size	site, 220
site:
	.zero	220
	.globl	flag
	.align 4
	.type	flag, @object
	.size	flag, 4
flag:
	.zero	4
	.text
	.globl	yoko
	.type	yoko, @function
yoko:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, %ecx
	jne	.L2
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L2
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L2
	movl	count(%rip), %eax
	addl	$1, %eax
	movl	%eax, count(%rip)
	cmpl	$3, -4(%rbp)
	je	.L4
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	yoko
	jmp	.L4
.L2:
	movl	count(%rip), %eax
	cmpl	$2, %eax
	jle	.L4
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	count(%rip), %eax
	imull	%eax, %edx
	movl	score(%rip), %eax
	addl	%edx, %eax
	movl	%eax, score(%rip)
	movl	count(%rip), %edx
	movl	-4(%rbp), %eax
	subl	%edx, %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
	jmp	.L5
.L6:
	movl	j(%rip), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L5:
	movl	j(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jge	.L6
	movl	$1, count(%rip)
	movl	$1, flag(%rip)
	cmpl	$3, -4(%rbp)
	je	.L4
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	yoko
.L4:
	cmpl	$3, -4(%rbp)
	je	.L7
	movl	$1, count(%rip)
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	yoko
.L7:
	movl	count(%rip), %eax
	cmpl	$2, %eax
	jle	.L11
	cmpl	$3, -4(%rbp)
	jne	.L11
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	count(%rip), %eax
	imull	%eax, %edx
	movl	score(%rip), %eax
	addl	%edx, %eax
	movl	%eax, score(%rip)
	movl	count(%rip), %edx
	movl	-4(%rbp), %eax
	subl	%edx, %eax
	addl	$2, %eax
	movl	%eax, j(%rip)
	jmp	.L9
.L10:
	movl	j(%rip), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L9:
	movl	j(%rip), %eax
	cmpl	$4, %eax
	jle	.L10
	movl	$1, count(%rip)
	movl	$1, flag(%rip)
.L11:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	yoko, .-yoko
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
.L30:
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L33
	movl	$0, score(%rip)
	movl	$0, j(%rip)
	jmp	.L15
.L18:
	movl	$0, i(%rip)
	jmp	.L16
.L17:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L16:
	movl	i(%rip), %eax
	cmpl	$4, %eax
	jle	.L17
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L15:
	movl	j(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L18
	movl	$1, flag(%rip)
	jmp	.L19
.L29:
	movl	$0, k(%rip)
	movl	$0, flag(%rip)
	movl	$0, i(%rip)
	jmp	.L20
.L21:
	movl	$1, count(%rip)
	movl	i(%rip), %edx
	movl	k(%rip), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	yoko
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L20:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L21
	movl	$1, j(%rip)
	jmp	.L22
.L28:
	movl	$0, i(%rip)
	jmp	.L23
.L27:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L24
	movl	j(%rip), %eax
	movl	%eax, k(%rip)
	jmp	.L25
.L26:
	movl	i(%rip), %eax
	movl	k(%rip), %edx
	subl	$1, %edx
	movl	i(%rip), %esi
	movl	k(%rip), %edi
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movslq	%edi, %rdi
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	k(%rip), %eax
	subl	$1, %eax
	movl	%eax, k(%rip)
.L25:
	movl	k(%rip), %eax
	testl	%eax, %eax
	jg	.L26
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	site(%rip), %rax
	movl	$0, (%rdx,%rax)
.L24:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L23:
	movl	i(%rip), %eax
	cmpl	$4, %eax
	jle	.L27
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L22:
	movl	j(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L28
.L19:
	movl	flag(%rip), %eax
	testl	%eax, %eax
	jne	.L29
	movl	score(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L30
.L33:
	nop
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	yoko
	.type	yoko, @function
yoko:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	count(%rip), %edx
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movslq	%esi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	site(%rip), %rbp
	movq	%r12, %r14
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movslq	%edi, %rbx
	leaq	(%rbx,%rbx,4), %rax
	leaq	(%rbx,%rax,2), %rax
	addq	%r12, %rax
	leaq	0(%rbp,%rax,4), %r13
.L11:
	movl	0(%r13), %esi
	movl	44(%r13), %r8d
	movl	%ebx, %ecx
	movl	%ebx, %eax
	leal	1(%rbx), %edi
	cmpl	%r8d, %esi
	sete	%r9b
	testl	%esi, %esi
	setne	%sil
	testb	%sil, %r9b
	je	.L2
	testl	%r8d, %r8d
	jne	.L32
.L2:
	cmpl	$2, %edx
	jle	.L5
	subl	$1, %ecx
	subl	%edx, %eax
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,4), %rsi
	leaq	(%rcx,%rsi,2), %rcx
	addq	%r12, %rcx
	movl	0(%rbp,%rcx,4), %esi
	movl	%ebx, %ecx
	imull	%edx, %esi
	leal	1(%rax), %edx
	addl	%esi, score(%rip)
	movl	%edx, j(%rip)
	cmpl	%ebx, %edx
	jg	.L6
	movslq	%edx, %rdx
	leaq	(%rdx,%rdx,4), %rsi
	leaq	(%rdx,%rsi,2), %rdx
	addq	%r12, %rdx
	movl	$0, 0(%rbp,%rdx,4)
	leal	2(%rax), %edx
	cmpl	%ebx, %edx
	jg	.L7
	movslq	%edx, %rdx
	leaq	(%rdx,%rdx,4), %rsi
	leaq	(%rdx,%rsi,2), %rdx
	addq	%r12, %rdx
	movl	$0, 0(%rbp,%rdx,4)
	leal	3(%rax), %edx
	cmpl	%ebx, %edx
	jg	.L7
	movslq	%edx, %rdx
	leaq	(%rdx,%rdx,4), %rsi
	leaq	(%rdx,%rsi,2), %rdx
	addq	%r12, %rdx
	movl	$0, 0(%rbp,%rdx,4)
	leal	4(%rax), %edx
	cmpl	%ebx, %edx
	jg	.L7
	movslq	%edx, %rdx
	addl	$5, %eax
	leaq	(%rdx,%rdx,4), %rsi
	leaq	(%rdx,%rsi,2), %rdx
	addq	%r12, %rdx
	movl	$0, 0(%rbp,%rdx,4)
	cmpl	%ebx, %eax
	jg	.L7
	cltq
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,2), %rax
	addq	%r12, %rax
	movl	$0, 0(%rbp,%rax,4)
.L7:
	movl	%edi, j(%rip)
.L6:
	movl	$1, count(%rip)
	movl	$1, flag(%rip)
	cmpl	$3, %ecx
	jne	.L29
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	movl	%r14d, %esi
	call	yoko
.L4:
	addq	$1, %rbx
	addq	$44, %r13
	movl	$1, %edx
	movl	$1, count(%rip)
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	$3, %ebx
	jne	.L4
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	addl	$1, %edx
	movl	%edx, count(%rip)
	cmpl	$3, %ebx
	jne	.L29
	cmpl	$2, %edx
	jle	.L1
	movl	88(%rbp,%r12,4), %eax
	imull	%edx, %eax
	addl	%eax, score(%rip)
	movl	$5, %eax
	subl	%edx, %eax
	cltq
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,2), %rax
	addq	%r12, %rax
	movl	$0, 0(%rbp,%rax,4)
	movl	$6, %eax
	subl	%edx, %eax
	cltq
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,2), %rax
	addq	%r12, %rax
	movl	$0, 0(%rbp,%rax,4)
	movl	$7, %eax
	subl	%edx, %eax
	cltq
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,2), %rax
	addq	%r12, %rax
	movl	$0, 0(%rbp,%rax,4)
	movl	$8, %eax
	subl	%edx, %eax
	cmpl	$5, %eax
	je	.L12
	cltq
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,2), %rax
	addq	%r12, %rax
	movl	$0, 0(%rbp,%rax,4)
	movl	$9, %eax
	subl	%edx, %eax
	cmpl	$5, %eax
	je	.L12
	cltq
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,2), %rax
	addq	%r12, %rax
	movl	$0, 0(%rbp,%rax,4)
.L12:
	movl	$5, j(%rip)
	popq	%rbx
	.cfi_def_cfa_offset 40
	movl	$1, count(%rip)
	popq	%rbp
	.cfi_def_cfa_offset 32
	movl	$1, flag(%rip)
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE23:
	.size	yoko, .-yoko
	.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:
.LFB24:
	.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	site(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
.L53:
	leaq	n(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %r12d
	testl	%r12d, %r12d
	je	.L34
	movl	$0, score(%rip)
	movl	$0, j(%rip)
	jle	.L52
	xorl	%edx, %edx
.L38:
	movl	$0, i(%rip)
	xorl	%eax, %eax
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L62:
	movl	j(%rip), %edx
.L37:
	cltq
	movslq	%edx, %rdx
	leaq	.LC0(%rip), %rdi
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,2), %rax
	addq	%rdx, %rax
	leaq	(%rbx,%rax,4), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	$4, %eax
	jle	.L62
	movl	j(%rip), %eax
	movl	n(%rip), %r12d
	leal	1(%rax), %edx
	movl	%edx, j(%rip)
	cmpl	%r12d, %edx
	jl	.L38
.L52:
	movl	$0, k(%rip)
	movl	$0, flag(%rip)
	movl	$0, i(%rip)
	testl	%r12d, %r12d
	jle	.L39
	xorl	%edi, %edi
	xorl	%esi, %esi
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L40:
	movl	k(%rip), %edi
.L43:
	movl	$1, count(%rip)
	call	yoko
	movl	i(%rip), %eax
	movl	n(%rip), %r12d
	leal	1(%rax), %esi
	movl	%esi, i(%rip)
	cmpl	%r12d, %esi
	jl	.L40
	movl	$1, j(%rip)
	movl	flag(%rip), %eax
	movl	%eax, 8(%rsp)
	cmpl	$1, %r12d
	jle	.L45
	movslq	%r12d, %rax
	movl	$1, %r15d
	xorl	%r13d, %r13d
	movl	%r12d, 12(%rsp)
	movq	%rax, (%rsp)
	movq	%r15, %r12
	leaq	4+site(%rip), %rbp
	xorl	%eax, %eax
	movl	$4, %r14d
	movq	%r13, %r15
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L46:
	movl	44(%rbp), %edi
	testl	%edi, %edi
	je	.L63
.L47:
	movl	88(%rbp), %esi
	testl	%esi, %esi
	je	.L64
.L48:
	movl	132(%rbp), %ecx
	testl	%ecx, %ecx
	je	.L65
.L49:
	movl	176(%rbp), %edx
	testl	%edx, %edx
	je	.L66
.L50:
	addq	$1, %r12
	addq	$4, %rbp
	addq	$4, %r14
	subq	$4, %r15
	cmpq	%r12, (%rsp)
	je	.L67
.L51:
	movl	0(%rbp), %r8d
	movl	%r12d, %r13d
	testl	%r8d, %r8d
	jne	.L46
	xorl	%eax, %eax
	testl	%r12d, %r12d
	movl	$4, %edx
	cmovg	%r15, %rax
	cmovg	%r14, %rdx
	leaq	-4(%r14,%rax), %rsi
	addq	%r14, %rax
	leaq	(%rbx,%rax), %rdi
	addq	%rbx, %rsi
	call	memmove@PLT
	movl	$1, %eax
	movl	$0, site(%rip)
	movl	44(%rbp), %edi
	testl	%edi, %edi
	jne	.L47
.L63:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	movl	$4, %edx
	cmovg	%r15, %rax
	cmovg	%r14, %rdx
	leaq	40(%r14,%rax), %rsi
	leaq	44(%r14,%rax), %rdi
	addq	%rbx, %rsi
	addq	%rbx, %rdi
	call	memmove@PLT
	movl	$1, %eax
	movl	$0, 44+site(%rip)
	movl	88(%rbp), %esi
	testl	%esi, %esi
	jne	.L48
.L64:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	movl	$4, %edx
	cmovg	%r15, %rax
	cmovg	%r14, %rdx
	leaq	84(%r14,%rax), %rsi
	leaq	88(%r14,%rax), %rdi
	addq	%rbx, %rsi
	addq	%rbx, %rdi
	call	memmove@PLT
	movl	$1, %eax
	movl	$0, 88+site(%rip)
	movl	132(%rbp), %ecx
	testl	%ecx, %ecx
	jne	.L49
.L65:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	movl	$4, %edx
	cmovg	%r15, %rax
	cmovg	%r14, %rdx
	leaq	128(%r14,%rax), %rsi
	leaq	132(%r14,%rax), %rdi
	addq	%rbx, %rsi
	addq	%rbx, %rdi
	call	memmove@PLT
	movl	$1, %eax
	movl	$0, 132+site(%rip)
	movl	176(%rbp), %edx
	testl	%edx, %edx
	jne	.L50
.L66:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	movl	$4, %edx
	cmovg	%r15, %rax
	cmovg	%r14, %rdx
	leaq	172(%r14,%rax), %rsi
	leaq	176(%r14,%rax), %rdi
	addq	%rbx, %rsi
	addq	%rbx, %rdi
	call	memmove@PLT
	movl	$1, %eax
	movl	$0, 176+site(%rip)
	jmp	.L50
.L67:
	movl	$5, i(%rip)
	movl	12(%rsp), %r12d
	movl	%r12d, j(%rip)
	testb	%al, %al
	je	.L45
	movl	$0, k(%rip)
.L45:
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jne	.L52
.L44:
	movl	score(%rip), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L53
.L39:
	movl	$1, j(%rip)
	jmp	.L44
.L34:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	flag
	.bss
	.align 4
	.type	flag, @object
	.size	flag, 4
flag:
	.zero	4
	.globl	site
	.align 32
	.type	site, @object
	.size	site, 220
site:
	.zero	220
	.globl	score
	.align 4
	.type	score, @object
	.size	score, 4
score:
	.zero	4
	.globl	count
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.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	h
	.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	yoko
	.type	yoko, @function
yoko:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	count(%rip), %edx
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movslq	%esi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	site(%rip), %rbp
	movq	%r12, %r14
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movslq	%edi, %rbx
	leaq	(%rbx,%rbx,4), %rax
	leaq	(%rbx,%rax,2), %rax
	addq	%r12, %rax
	leaq	0(%rbp,%rax,4), %r13
.L11:
	movl	0(%r13), %esi
	movl	44(%r13), %r8d
	movl	%ebx, %ecx
	movl	%ebx, %eax
	leal	1(%rbx), %edi
	cmpl	%r8d, %esi
	sete	%r9b
	testl	%esi, %esi
	setne	%sil
	testb	%sil, %r9b
	je	.L2
	testl	%r8d, %r8d
	jne	.L32
.L2:
	cmpl	$2, %edx
	jle	.L5
	subl	$1, %ecx
	subl	%edx, %eax
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,4), %rsi
	leaq	(%rcx,%rsi,2), %rcx
	addq	%r12, %rcx
	movl	0(%rbp,%rcx,4), %esi
	movl	%ebx, %ecx
	imull	%edx, %esi
	leal	1(%rax), %edx
	addl	%esi, score(%rip)
	movl	%edx, j(%rip)
	cmpl	%ebx, %edx
	jg	.L6
	movslq	%edx, %rdx
	leaq	(%rdx,%rdx,4), %rsi
	leaq	(%rdx,%rsi,2), %rdx
	addq	%r12, %rdx
	movl	$0, 0(%rbp,%rdx,4)
	leal	2(%rax), %edx
	cmpl	%ebx, %edx
	jg	.L7
	movslq	%edx, %rdx
	leaq	(%rdx,%rdx,4), %rsi
	leaq	(%rdx,%rsi,2), %rdx
	addq	%r12, %rdx
	movl	$0, 0(%rbp,%rdx,4)
	leal	3(%rax), %edx
	cmpl	%ebx, %edx
	jg	.L7
	movslq	%edx, %rdx
	leaq	(%rdx,%rdx,4), %rsi
	leaq	(%rdx,%rsi,2), %rdx
	addq	%r12, %rdx
	movl	$0, 0(%rbp,%rdx,4)
	leal	4(%rax), %edx
	cmpl	%ebx, %edx
	jg	.L7
	movslq	%edx, %rdx
	addl	$5, %eax
	leaq	(%rdx,%rdx,4), %rsi
	leaq	(%rdx,%rsi,2), %rdx
	addq	%r12, %rdx
	movl	$0, 0(%rbp,%rdx,4)
	cmpl	%ebx, %eax
	jg	.L7
	cltq
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,2), %rax
	addq	%r12, %rax
	movl	$0, 0(%rbp,%rax,4)
.L7:
	movl	%edi, j(%rip)
.L6:
	movl	$1, count(%rip)
	movl	$1, flag(%rip)
	cmpl	$3, %ecx
	jne	.L29
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	movl	%r14d, %esi
	call	yoko
.L4:
	addq	$1, %rbx
	addq	$44, %r13
	movl	$1, %edx
	movl	$1, count(%rip)
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	$3, %ebx
	jne	.L4
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	addl	$1, %edx
	movl	%edx, count(%rip)
	cmpl	$3, %ebx
	jne	.L29
	cmpl	$2, %edx
	jle	.L1
	movl	88(%rbp,%r12,4), %eax
	imull	%edx, %eax
	addl	%eax, score(%rip)
	movl	$5, %eax
	subl	%edx, %eax
	cltq
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,2), %rax
	addq	%r12, %rax
	movl	$0, 0(%rbp,%rax,4)
	movl	$6, %eax
	subl	%edx, %eax
	cltq
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,2), %rax
	addq	%r12, %rax
	movl	$0, 0(%rbp,%rax,4)
	movl	$7, %eax
	subl	%edx, %eax
	cltq
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,2), %rax
	addq	%r12, %rax
	movl	$0, 0(%rbp,%rax,4)
	movl	$8, %eax
	subl	%edx, %eax
	cmpl	$5, %eax
	je	.L12
	cltq
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,2), %rax
	addq	%r12, %rax
	movl	$0, 0(%rbp,%rax,4)
	movl	$9, %eax
	subl	%edx, %eax
	cmpl	$5, %eax
	je	.L12
	cltq
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,2), %rax
	addq	%r12, %rax
	movl	$0, 0(%rbp,%rax,4)
.L12:
	movl	$5, j(%rip)
	popq	%rbx
	.cfi_def_cfa_offset 40
	movl	$1, count(%rip)
	popq	%rbp
	.cfi_def_cfa_offset 32
	movl	$1, flag(%rip)
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE23:
	.size	yoko, .-yoko
	.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:
.LFB24:
	.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	site(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
.L53:
	leaq	n(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %r12d
	testl	%r12d, %r12d
	je	.L34
	movl	$0, score(%rip)
	movl	$0, j(%rip)
	jle	.L52
	xorl	%edx, %edx
.L38:
	movl	$0, i(%rip)
	xorl	%eax, %eax
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L62:
	movl	j(%rip), %edx
.L37:
	cltq
	movslq	%edx, %rdx
	leaq	.LC0(%rip), %rdi
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,2), %rax
	addq	%rdx, %rax
	leaq	(%rbx,%rax,4), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	$4, %eax
	jle	.L62
	movl	j(%rip), %eax
	movl	n(%rip), %r12d
	leal	1(%rax), %edx
	movl	%edx, j(%rip)
	cmpl	%r12d, %edx
	jl	.L38
.L52:
	movl	$0, k(%rip)
	movl	$0, flag(%rip)
	movl	$0, i(%rip)
	testl	%r12d, %r12d
	jle	.L39
	xorl	%edi, %edi
	xorl	%esi, %esi
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L40:
	movl	k(%rip), %edi
.L43:
	movl	$1, count(%rip)
	call	yoko
	movl	i(%rip), %eax
	movl	n(%rip), %r12d
	leal	1(%rax), %esi
	movl	%esi, i(%rip)
	cmpl	%r12d, %esi
	jl	.L40
	movl	$1, j(%rip)
	movl	flag(%rip), %eax
	movl	%eax, 8(%rsp)
	cmpl	$1, %r12d
	jle	.L45
	movslq	%r12d, %rax
	movl	$1, %r15d
	xorl	%r13d, %r13d
	movl	%r12d, 12(%rsp)
	movq	%rax, (%rsp)
	movq	%r15, %r12
	leaq	4+site(%rip), %rbp
	xorl	%eax, %eax
	movl	$4, %r14d
	movq	%r13, %r15
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L46:
	movl	44(%rbp), %edi
	testl	%edi, %edi
	je	.L63
.L47:
	movl	88(%rbp), %esi
	testl	%esi, %esi
	je	.L64
.L48:
	movl	132(%rbp), %ecx
	testl	%ecx, %ecx
	je	.L65
.L49:
	movl	176(%rbp), %edx
	testl	%edx, %edx
	je	.L66
.L50:
	addq	$1, %r12
	addq	$4, %rbp
	addq	$4, %r14
	subq	$4, %r15
	cmpq	%r12, (%rsp)
	je	.L67
.L51:
	movl	0(%rbp), %r8d
	movl	%r12d, %r13d
	testl	%r8d, %r8d
	jne	.L46
	xorl	%eax, %eax
	testl	%r12d, %r12d
	movl	$4, %edx
	cmovg	%r15, %rax
	cmovg	%r14, %rdx
	leaq	-4(%r14,%rax), %rsi
	addq	%r14, %rax
	leaq	(%rbx,%rax), %rdi
	addq	%rbx, %rsi
	call	memmove@PLT
	movl	$1, %eax
	movl	$0, site(%rip)
	movl	44(%rbp), %edi
	testl	%edi, %edi
	jne	.L47
.L63:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	movl	$4, %edx
	cmovg	%r15, %rax
	cmovg	%r14, %rdx
	leaq	40(%r14,%rax), %rsi
	leaq	44(%r14,%rax), %rdi
	addq	%rbx, %rsi
	addq	%rbx, %rdi
	call	memmove@PLT
	movl	$1, %eax
	movl	$0, 44+site(%rip)
	movl	88(%rbp), %esi
	testl	%esi, %esi
	jne	.L48
.L64:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	movl	$4, %edx
	cmovg	%r15, %rax
	cmovg	%r14, %rdx
	leaq	84(%r14,%rax), %rsi
	leaq	88(%r14,%rax), %rdi
	addq	%rbx, %rsi
	addq	%rbx, %rdi
	call	memmove@PLT
	movl	$1, %eax
	movl	$0, 88+site(%rip)
	movl	132(%rbp), %ecx
	testl	%ecx, %ecx
	jne	.L49
.L65:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	movl	$4, %edx
	cmovg	%r15, %rax
	cmovg	%r14, %rdx
	leaq	128(%r14,%rax), %rsi
	leaq	132(%r14,%rax), %rdi
	addq	%rbx, %rsi
	addq	%rbx, %rdi
	call	memmove@PLT
	movl	$1, %eax
	movl	$0, 132+site(%rip)
	movl	176(%rbp), %edx
	testl	%edx, %edx
	jne	.L50
.L66:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	movl	$4, %edx
	cmovg	%r15, %rax
	cmovg	%r14, %rdx
	leaq	172(%r14,%rax), %rsi
	leaq	176(%r14,%rax), %rdi
	addq	%rbx, %rsi
	addq	%rbx, %rdi
	call	memmove@PLT
	movl	$1, %eax
	movl	$0, 176+site(%rip)
	jmp	.L50
.L67:
	movl	$5, i(%rip)
	movl	12(%rsp), %r12d
	movl	%r12d, j(%rip)
	testb	%al, %al
	je	.L45
	movl	$0, k(%rip)
.L45:
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jne	.L52
.L44:
	movl	score(%rip), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L53
.L39:
	movl	$1, j(%rip)
	jmp	.L44
.L34:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	flag
	.bss
	.align 4
	.type	flag, @object
	.size	flag, 4
flag:
	.zero	4
	.globl	site
	.align 32
	.type	site, @object
	.size	site, 220
site:
	.zero	220
	.globl	score
	.align 4
	.type	score, @object
	.size	score, 4
score:
	.zero	4
	.globl	count
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.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	h
	.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>

int h,i,j,k,l,m,n,count,score;
int site[5][11],flag;

void yoko(int x,int y) {

  //   printf("count = %d\n",count);  
  //  printf("x = %d\n",x);
  

  if(site[x][y] == site[x+1][y] && site[x][y] != 0 && site[x+1][y] !=0){
    //printf("%d  = %d\n",site[x][y] ,site[x+1][y]);
    count++;
    if(x != 3) yoko(x+1,y);
  }
  else if(count >=3) {
    //  printf("1count = %d\n",count);
    score += site[x-1][y] * count;
    ///printf("x - count +1 = %d\n",x - count + 1);
    for(j=x-count+1;j<=x;j++) site[j][y] = 0;
    count = 1;
    flag  = 1;
    if(x != 3) yoko(x+1,y);

  } if(x != 3) {
    count  = 1;
    yoko(x+1,y);
  } 
  
  if(count >=3 && x == 3) {
    // printf("2count = %d\n",count);
    score += site[x-1][y] * count;
    for(j=x-count+2;j<5;j++) site[j][y] = 0;
    count = 1;
    flag = 1;
  }


  
}

int main() {


  while(1) {

    scanf("%d",&n);
    //    printf("n = %d\n",n);

    if(n == 0) break;

    score = 0;

    for(j=0;j<n;j++){
      for(i=0;i<5;i++) {
	scanf("%d",&site[i][j]);
	//	printf("site[%d][%d] = %d\n",i,j,site[i][j]);

      }
    }
    
    flag = 1;
    while(flag != 0) {
      k=0;
      flag= 0;

      // printf("while flag = %d\n",flag);
      for(i=0;i<n;i++){
	count = 1;
	//	printf("before yoko\n");
	yoko(k,i);
      
      }
      
      /* //check cord
      for(j=0;j<n;j++){
	for(i=0;i<5;i++) {
	  printf("%d ",site[i][j]);
	    
      }
	printf("\n");
	} */  


      for(j=1;j<n;j++) {
	for(i=0;i<5;i++) {
	  if(site[i][j] == 0) {
	    for(k=j;k>0;k--) {
	      site[i][k] = site[i][k-1];
	    }
	    site[i][0] = 0;
	  }
	}
      }
      /* //check cord
      printf("\n");
      for(j=0;j<n;j++){
	for(i=0;i<5;i++) {
	  printf("%d ",site[i][j]);
	    
	}
	printf("\n");
      }  
      printf("\n");
      */

      // printf("flag = %d\n",flag);

    }


    
    printf("%d\n",score);
    
  }

  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>

int h,i,j,k,l,m,n,count,score;
int site[5][11],flag;

void yoko(int x,int y) {

  //   printf("count = %d\n",count);  
  //  printf("x = %d\n",x);
  

  if(site[x][y] == site[x+1][y] && site[x][y] != 0 && site[x+1][y] !=0){
    //printf("%d  = %d\n",site[x][y] ,site[x+1][y]);
    count++;
    if(x != 3) yoko(x+1,y);
  }
  else if(count >=3) {
    //  printf("1count = %d\n",count);
    score += site[x-1][y] * count;
    ///printf("x - count +1 = %d\n",x - count + 1);
    for(j=x-count+1;j<=x;j++) site[j][y] = 0;
    count = 1;
    flag  = 1;
    if(x != 3) yoko(x+1,y);

  } if(x != 3) {
    count  = 1;
    yoko(x+1,y);
  } 
  
  if(count >=3 && x == 3) {
    // printf("2count = %d\n",count);
    score += site[x-1][y] * count;
    for(j=x-count+2;j<5;j++) site[j][y] = 0;
    count = 1;
    flag = 1;
  }


  
}

int main() {


  while(1) {

    scanf("%d",&n);
    //    printf("n = %d\n",n);

    if(n == 0) break;

    score = 0;

    for(j=0;j<n;j++){
      for(i=0;i<5;i++) {
	scanf("%d",&site[i][j]);
	//	printf("site[%d][%d] = %d\n",i,j,site[i][j]);

      }
    }
    
    flag = 1;
    while(flag != 0) {
      k=0;
      flag= 0;

      // printf("while flag = %d\n",flag);
      for(i=0;i<n;i++){
	count = 1;
	//	printf("before yoko\n");
	yoko(k,i);
      
      }
      
      /* //check cord
      for(j=0;j<n;j++){
	for(i=0;i<5;i++) {
	  printf("%d ",site[i][j]);
	    
      }
	printf("\n");
	} */  


      for(j=1;j<n;j++) {
	for(i=0;i<5;i++) {
	  if(site[i][j] == 0) {
	    for(k=j;k>0;k--) {
	      site[i][k] = site[i][k-1];
	    }
	    site[i][0] = 0;
	  }
	}
      }
      /* //check cord
      printf("\n");
      for(j=0;j<n;j++){
	for(i=0;i<5;i++) {
	  printf("%d ",site[i][j]);
	    
	}
	printf("\n");
      }  
      printf("\n");
      */

      // printf("flag = %d\n",flag);

    }


    
    printf("%d\n",score);
    
  }

  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	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	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	count
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.globl	score
	.align 4
	.type	score, @object
	.size	score, 4
score:
	.zero	4
	.globl	site
	.align 32
	.type	site, @object
	.size	site, 220
site:
	.zero	220
	.globl	flag
	.align 4
	.type	flag, @object
	.size	flag, 4
flag:
	.zero	4
	.text
	.globl	yoko
	.type	yoko, @function
yoko:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, %ecx
	jne	.L2
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L2
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L2
	movl	count(%rip), %eax
	addl	$1, %eax
	movl	%eax, count(%rip)
	cmpl	$3, -4(%rbp)
	je	.L4
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	yoko
	jmp	.L4
.L2:
	movl	count(%rip), %eax
	cmpl	$2, %eax
	jle	.L4
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	count(%rip), %eax
	imull	%eax, %edx
	movl	score(%rip), %eax
	addl	%edx, %eax
	movl	%eax, score(%rip)
	movl	count(%rip), %edx
	movl	-4(%rbp), %eax
	subl	%edx, %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
	jmp	.L5
.L6:
	movl	j(%rip), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L5:
	movl	j(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jge	.L6
	movl	$1, count(%rip)
	movl	$1, flag(%rip)
	cmpl	$3, -4(%rbp)
	je	.L4
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	yoko
.L4:
	cmpl	$3, -4(%rbp)
	je	.L7
	movl	$1, count(%rip)
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	yoko
.L7:
	movl	count(%rip), %eax
	cmpl	$2, %eax
	jle	.L11
	cmpl	$3, -4(%rbp)
	jne	.L11
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	count(%rip), %eax
	imull	%eax, %edx
	movl	score(%rip), %eax
	addl	%edx, %eax
	movl	%eax, score(%rip)
	movl	count(%rip), %edx
	movl	-4(%rbp), %eax
	subl	%edx, %eax
	addl	$2, %eax
	movl	%eax, j(%rip)
	jmp	.L9
.L10:
	movl	j(%rip), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L9:
	movl	j(%rip), %eax
	cmpl	$4, %eax
	jle	.L10
	movl	$1, count(%rip)
	movl	$1, flag(%rip)
.L11:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	yoko, .-yoko
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
.L30:
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L33
	movl	$0, score(%rip)
	movl	$0, j(%rip)
	jmp	.L15
.L18:
	movl	$0, i(%rip)
	jmp	.L16
.L17:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L16:
	movl	i(%rip), %eax
	cmpl	$4, %eax
	jle	.L17
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L15:
	movl	j(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L18
	movl	$1, flag(%rip)
	jmp	.L19
.L29:
	movl	$0, k(%rip)
	movl	$0, flag(%rip)
	movl	$0, i(%rip)
	jmp	.L20
.L21:
	movl	$1, count(%rip)
	movl	i(%rip), %edx
	movl	k(%rip), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	yoko
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L20:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L21
	movl	$1, j(%rip)
	jmp	.L22
.L28:
	movl	$0, i(%rip)
	jmp	.L23
.L27:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L24
	movl	j(%rip), %eax
	movl	%eax, k(%rip)
	jmp	.L25
.L26:
	movl	i(%rip), %eax
	movl	k(%rip), %edx
	subl	$1, %edx
	movl	i(%rip), %esi
	movl	k(%rip), %edi
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movslq	%edi, %rdi
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	k(%rip), %eax
	subl	$1, %eax
	movl	%eax, k(%rip)
.L25:
	movl	k(%rip), %eax
	testl	%eax, %eax
	jg	.L26
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	site(%rip), %rax
	movl	$0, (%rdx,%rax)
.L24:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L23:
	movl	i(%rip), %eax
	cmpl	$4, %eax
	jle	.L27
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L22:
	movl	j(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L28
.L19:
	movl	flag(%rip), %eax
	testl	%eax, %eax
	jne	.L29
	movl	score(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L30
.L33:
	nop
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	h
	.bss
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.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	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	count
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.globl	score
	.align 4
	.type	score, @object
	.size	score, 4
score:
	.zero	4
	.globl	site
	.align 32
	.type	site, @object
	.size	site, 220
site:
	.zero	220
	.globl	flag
	.align 4
	.type	flag, @object
	.size	flag, 4
flag:
	.zero	4
	.text
	.globl	yoko
	.type	yoko, @function
yoko:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, %ecx
	jne	.L2
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L2
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L2
	movl	count(%rip), %eax
	addl	$1, %eax
	movl	%eax, count(%rip)
	cmpl	$3, -4(%rbp)
	je	.L4
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	yoko
	jmp	.L4
.L2:
	movl	count(%rip), %eax
	cmpl	$2, %eax
	jle	.L4
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	count(%rip), %eax
	imull	%eax, %edx
	movl	score(%rip), %eax
	addl	%edx, %eax
	movl	%eax, score(%rip)
	movl	count(%rip), %edx
	movl	-4(%rbp), %eax
	subl	%edx, %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
	jmp	.L5
.L6:
	movl	j(%rip), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L5:
	movl	j(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jge	.L6
	movl	$1, count(%rip)
	movl	$1, flag(%rip)
	cmpl	$3, -4(%rbp)
	je	.L4
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	yoko
.L4:
	cmpl	$3, -4(%rbp)
	je	.L7
	movl	$1, count(%rip)
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	yoko
.L7:
	movl	count(%rip), %eax
	cmpl	$2, %eax
	jle	.L11
	cmpl	$3, -4(%rbp)
	jne	.L11
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	count(%rip), %eax
	imull	%eax, %edx
	movl	score(%rip), %eax
	addl	%edx, %eax
	movl	%eax, score(%rip)
	movl	count(%rip), %edx
	movl	-4(%rbp), %eax
	subl	%edx, %eax
	addl	$2, %eax
	movl	%eax, j(%rip)
	jmp	.L9
.L10:
	movl	j(%rip), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L9:
	movl	j(%rip), %eax
	cmpl	$4, %eax
	jle	.L10
	movl	$1, count(%rip)
	movl	$1, flag(%rip)
.L11:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	yoko, .-yoko
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
.L30:
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L33
	movl	$0, score(%rip)
	movl	$0, j(%rip)
	jmp	.L15
.L18:
	movl	$0, i(%rip)
	jmp	.L16
.L17:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L16:
	movl	i(%rip), %eax
	cmpl	$4, %eax
	jle	.L17
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L15:
	movl	j(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L18
	movl	$1, flag(%rip)
	jmp	.L19
.L29:
	movl	$0, k(%rip)
	movl	$0, flag(%rip)
	movl	$0, i(%rip)
	jmp	.L20
.L21:
	movl	$1, count(%rip)
	movl	i(%rip), %edx
	movl	k(%rip), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	yoko
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L20:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L21
	movl	$1, j(%rip)
	jmp	.L22
.L28:
	movl	$0, i(%rip)
	jmp	.L23
.L27:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L24
	movl	j(%rip), %eax
	movl	%eax, k(%rip)
	jmp	.L25
.L26:
	movl	i(%rip), %eax
	movl	k(%rip), %edx
	subl	$1, %edx
	movl	i(%rip), %esi
	movl	k(%rip), %edi
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movslq	%edi, %rdi
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	site(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	k(%rip), %eax
	subl	$1, %eax
	movl	%eax, k(%rip)
.L25:
	movl	k(%rip), %eax
	testl	%eax, %eax
	jg	.L26
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	site(%rip), %rax
	movl	$0, (%rdx,%rax)
.L24:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L23:
	movl	i(%rip), %eax
	cmpl	$4, %eax
	jle	.L27
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L22:
	movl	j(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L28
.L19:
	movl	flag(%rip), %eax
	testl	%eax, %eax
	jne	.L29
	movl	score(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L30
.L33:
	nop
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
