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>
#define SIZE 100000
typedef struct{
  int x;
  int y;
}Zahyo;
Zahyo  z[SIZE];
int dx[]={0,1,0,-1};
int dy[]={-1,0,1,0};
main(){
  int h,w;
  char maps[30][30];
  int i,j;
  while(1){
    scanf("%d %d",&w,&h);
    if(w == 0 && h == 0) break;
    int cnt=0;
    int head=0;
    int tail=0;
    for(i=0;i<h;i++){
      scanf("%s",maps[i]);
      for(j=0;j<w;j++){
	if(maps[i][j]=='@'){
	  z[0]=(Zahyo){j,i};
	  tail=(tail+1)%SIZE;
	}
      }
    }
    while(head != tail){
      int x = z[head].x; int y = z[head].y; head = (head+1) % SIZE;
      if(0 <= x && 0 <= y && x < w && y < h && maps[y][x] != '#'){
	maps[y][x] = '#';
	cnt++;
	for(i=0;i<4;i++){
	  int nx = x + dx[i]; int ny = y + dy[i];
	  z[(tail+i) % SIZE] = (Zahyo){ nx,ny };
	}
	tail = (tail+4) % SIZE;
      }
    }
    printf("%d\n",cnt);
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	z
	.bss
	.align 32
	.type	z, @object
	.size	z, 800000
z:
	.zero	800000
	.globl	dx
	.data
	.align 16
	.type	dx, @object
	.size	dx, 16
dx:
	.long	0
	.long	1
	.long	0
	.long	-1
	.globl	dy
	.align 16
	.type	dy, @object
	.size	dy, 16
dy:
	.long	-1
	.long	0
	.long	1
	.long	0
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$960, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L13:
	leaq	-956(%rbp), %rdx
	leaq	-952(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-952(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-956(%rbp), %eax
	testl	%eax, %eax
	je	.L17
.L2:
	movl	$0, -940(%rbp)
	movl	$0, -936(%rbp)
	movl	$0, -932(%rbp)
	movl	$0, -948(%rbp)
	jmp	.L4
.L8:
	leaq	-912(%rbp), %rcx
	movl	-948(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -944(%rbp)
	jmp	.L5
.L7:
	movl	-944(%rbp), %eax
	movslq	%eax, %rcx
	movl	-948(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$912, %rax
	movzbl	(%rax), %eax
	cmpb	$64, %al
	jne	.L6
	movl	-944(%rbp), %eax
	movl	%eax, z(%rip)
	movl	-948(%rbp), %eax
	movl	%eax, 4+z(%rip)
	movl	-932(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -932(%rbp)
	movl	-932(%rbp), %edx
	imull	$100000, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -932(%rbp)
.L6:
	addl	$1, -944(%rbp)
.L5:
	movl	-952(%rbp), %eax
	cmpl	%eax, -944(%rbp)
	jl	.L7
	addl	$1, -948(%rbp)
.L4:
	movl	-956(%rbp), %eax
	cmpl	%eax, -948(%rbp)
	jl	.L8
	jmp	.L9
.L12:
	movl	-936(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	z(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -928(%rbp)
	movl	-936(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+z(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -924(%rbp)
	movl	-936(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -936(%rbp)
	movl	-936(%rbp), %edx
	imull	$100000, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -936(%rbp)
	cmpl	$0, -928(%rbp)
	js	.L9
	cmpl	$0, -924(%rbp)
	js	.L9
	movl	-952(%rbp), %eax
	cmpl	%eax, -928(%rbp)
	jge	.L9
	movl	-956(%rbp), %eax
	cmpl	%eax, -924(%rbp)
	jge	.L9
	movl	-928(%rbp), %eax
	movslq	%eax, %rcx
	movl	-924(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$912, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L9
	movl	-928(%rbp), %eax
	movslq	%eax, %rcx
	movl	-924(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$912, %rax
	movb	$35, (%rax)
	addl	$1, -940(%rbp)
	movl	$0, -948(%rbp)
	jmp	.L10
.L11:
	movl	-948(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-928(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -920(%rbp)
	movl	-948(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-924(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -916(%rbp)
	movl	-932(%rbp), %edx
	movl	-948(%rbp), %eax
	addl	%eax, %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,8), %rsi
	leaq	z(%rip), %rcx
	movl	-920(%rbp), %edx
	movl	%edx, (%rsi,%rcx)
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+z(%rip), %rdx
	movl	-916(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -948(%rbp)
.L10:
	cmpl	$3, -948(%rbp)
	jle	.L11
	movl	-932(%rbp), %eax
	addl	$4, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -932(%rbp)
	movl	-932(%rbp), %edx
	imull	$100000, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -932(%rbp)
.L9:
	movl	-936(%rbp), %eax
	cmpl	-932(%rbp), %eax
	jne	.L12
	movl	-940(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L13
.L17:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	movl	%r13d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%r15d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	z(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$952, %rsp
	.cfi_def_cfa_offset 1008
	movq	%fs:40, %rax
	movq	%rax, 936(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, (%rsp)
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L15:
	movq	(%rsp), %rdx
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L2
	movl	24(%rsp), %edx
	testl	%edx, %edx
.L35:
	jle	.L5
	leaq	32(%rsp), %r13
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r13, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L8
	movslq	%ecx, %rdx
	xorl	%eax, %eax
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L10:
	cmpb	$64, 0(%r13,%rax)
	jne	.L9
	leal	1(%rbx), %esi
	movl	%r15d, %r12d
	movl	%eax, %r14d
	movl	%esi, %ebx
	shrl	$5, %ebx
	imulq	$175921861, %rbx, %rbx
	shrq	$39, %rbx
	imull	$100000, %ebx, %edi
	subl	%edi, %esi
	movl	%esi, %ebx
	movl	$1, %esi
.L9:
	addq	$1, %rax
	cmpq	%rax, %rdx
	jne	.L10
	testb	%sil, %sil
	je	.L8
	movl	%r12d, 4+z(%rip)
	movl	%r14d, 0(%rbp)
.L8:
	movl	24(%rsp), %edi
	addl	$1, %r15d
	addq	$30, %r13
	cmpl	%r15d, %edi
	jg	.L12
	testl	%ebx, %ebx
	je	.L5
	movd	dy(%rip), %xmm1
	movd	4+dy(%rip), %xmm2
	xorl	%eax, %eax
	xorl	%r11d, %r11d
	movd	dx(%rip), %xmm4
	movd	4+dx(%rip), %xmm3
	movd	12+dy(%rip), %xmm5
	punpckldq	%xmm1, %xmm4
	punpckldq	%xmm2, %xmm3
	movd	8+dy(%rip), %xmm1
	movd	8+dx(%rip), %xmm2
	punpckldq	%xmm1, %xmm2
	movd	12+dx(%rip), %xmm1
	punpckldq	%xmm5, %xmm1
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	%eax, %ebx
	je	.L4
.L14:
	leal	1(%rax), %esi
	movslq	%eax, %rdx
	movslq	%esi, %rax
	movl	%esi, %r9d
	movq	0(%rbp,%rdx,8), %xmm0
	imulq	$351843721, %rax, %rax
	sarl	$31, %r9d
	pshufd	$0xe5, %xmm0, %xmm9
	movdqa	%xmm0, %xmm5
	movdqa	%xmm0, %xmm6
	movd	%xmm9, %r8d
	movdqa	%xmm0, %xmm7
	movdqa	%xmm0, %xmm8
	paddd	%xmm1, %xmm5
	paddd	%xmm2, %xmm6
	paddd	%xmm3, %xmm7
	movd	%xmm0, %edx
	sarq	$45, %rax
	subl	%r9d, %eax
	paddd	%xmm4, %xmm8
	imull	$100000, %eax, %r9d
	movl	%esi, %eax
	movd	%xmm0, %esi
	subl	%r9d, %eax
	orl	%r8d, %esi
	js	.L13
	cmpl	%ecx, %edx
	jge	.L13
	cmpl	%r8d, %edi
	jle	.L13
	movslq	%r8d, %r8
	movslq	%edx, %rdx
	movq	%r8, %rsi
	salq	$4, %rsi
	subq	%r8, %rsi
	leaq	944(%rsp,%rsi,2), %rsi
	addq	%rdx, %rsi
	cmpb	$35, -912(%rsi)
	je	.L13
	movb	$35, -912(%rsi)
	movslq	%ebx, %rsi
	movl	%ebx, %edx
	addl	$1, %r11d
	imulq	$351843721, %rsi, %rsi
	sarl	$31, %edx
	sarq	$45, %rsi
	subl	%edx, %esi
	movl	%ebx, %edx
	imull	$100000, %esi, %esi
	subl	%esi, %edx
	leal	1(%rbx), %esi
	movslq	%edx, %rdx
	movl	%esi, %r8d
	movq	%xmm8, 0(%rbp,%rdx,8)
	movslq	%esi, %rdx
	sarl	$31, %r8d
	imulq	$351843721, %rdx, %rdx
	sarq	$45, %rdx
	subl	%r8d, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %esi
	movslq	%esi, %rsi
	movq	%xmm7, 0(%rbp,%rsi,8)
	leal	2(%rbx), %esi
	movslq	%esi, %rdx
	movl	%esi, %r8d
	imulq	$351843721, %rdx, %rdx
	sarl	$31, %r8d
	sarq	$45, %rdx
	subl	%r8d, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %esi
	movslq	%esi, %rsi
	movq	%xmm6, 0(%rbp,%rsi,8)
	leal	3(%rbx), %esi
	movslq	%esi, %rdx
	movl	%esi, %r8d
	imulq	$351843721, %rdx, %rdx
	sarl	$31, %r8d
	sarq	$45, %rdx
	subl	%r8d, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %esi
	movslq	%esi, %rdx
	movq	%xmm5, 0(%rbp,%rdx,8)
	leal	4(%rbx), %edx
	movslq	%edx, %rbx
	movl	%edx, %esi
	imulq	$351843721, %rbx, %rbx
	sarl	$31, %esi
	sarq	$45, %rbx
	subl	%esi, %ebx
	imull	$100000, %ebx, %esi
	subl	%esi, %edx
	movl	%edx, %ebx
	cmpl	%eax, %ebx
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%r11d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L15
.L2:
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jne	.L35
	movq	936(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$952, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	xorl	%r11d, %r11d
	jmp	.L4
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	dy
	.data
	.align 16
	.type	dy, @object
	.size	dy, 16
dy:
	.long	-1
	.long	0
	.long	1
	.long	0
	.globl	dx
	.align 16
	.type	dx, @object
	.size	dx, 16
dx:
	.long	0
	.long	1
	.long	0
	.long	-1
	.globl	z
	.bss
	.align 32
	.type	z, @object
	.size	z, 800000
z:
	.zero	800000
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	movl	%r13d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%r15d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	z(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$952, %rsp
	.cfi_def_cfa_offset 1008
	movq	%fs:40, %rax
	movq	%rax, 936(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, (%rsp)
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L15:
	movq	(%rsp), %rdx
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L2
	movl	24(%rsp), %edx
	testl	%edx, %edx
.L35:
	jle	.L5
	leaq	32(%rsp), %r13
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r13, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L8
	movslq	%ecx, %rdx
	xorl	%eax, %eax
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L10:
	cmpb	$64, 0(%r13,%rax)
	jne	.L9
	leal	1(%rbx), %esi
	movl	%r15d, %r12d
	movl	%eax, %r14d
	movl	%esi, %ebx
	shrl	$5, %ebx
	imulq	$175921861, %rbx, %rbx
	shrq	$39, %rbx
	imull	$100000, %ebx, %edi
	subl	%edi, %esi
	movl	%esi, %ebx
	movl	$1, %esi
.L9:
	addq	$1, %rax
	cmpq	%rax, %rdx
	jne	.L10
	testb	%sil, %sil
	je	.L8
	movl	%r12d, 4+z(%rip)
	movl	%r14d, 0(%rbp)
.L8:
	movl	24(%rsp), %edi
	addl	$1, %r15d
	addq	$30, %r13
	cmpl	%r15d, %edi
	jg	.L12
	testl	%ebx, %ebx
	je	.L5
	movd	dy(%rip), %xmm1
	movd	4+dy(%rip), %xmm2
	xorl	%eax, %eax
	xorl	%r11d, %r11d
	movd	dx(%rip), %xmm4
	movd	4+dx(%rip), %xmm3
	movd	12+dy(%rip), %xmm5
	punpckldq	%xmm1, %xmm4
	punpckldq	%xmm2, %xmm3
	movd	8+dy(%rip), %xmm1
	movd	8+dx(%rip), %xmm2
	punpckldq	%xmm1, %xmm2
	movd	12+dx(%rip), %xmm1
	punpckldq	%xmm5, %xmm1
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	%eax, %ebx
	je	.L4
.L14:
	leal	1(%rax), %esi
	movslq	%eax, %rdx
	movslq	%esi, %rax
	movl	%esi, %r9d
	movq	0(%rbp,%rdx,8), %xmm0
	imulq	$351843721, %rax, %rax
	sarl	$31, %r9d
	pshufd	$0xe5, %xmm0, %xmm9
	movdqa	%xmm0, %xmm5
	movdqa	%xmm0, %xmm6
	movd	%xmm9, %r8d
	movdqa	%xmm0, %xmm7
	movdqa	%xmm0, %xmm8
	paddd	%xmm1, %xmm5
	paddd	%xmm2, %xmm6
	paddd	%xmm3, %xmm7
	movd	%xmm0, %edx
	sarq	$45, %rax
	subl	%r9d, %eax
	paddd	%xmm4, %xmm8
	imull	$100000, %eax, %r9d
	movl	%esi, %eax
	movd	%xmm0, %esi
	subl	%r9d, %eax
	orl	%r8d, %esi
	js	.L13
	cmpl	%ecx, %edx
	jge	.L13
	cmpl	%r8d, %edi
	jle	.L13
	movslq	%r8d, %r8
	movslq	%edx, %rdx
	movq	%r8, %rsi
	salq	$4, %rsi
	subq	%r8, %rsi
	leaq	944(%rsp,%rsi,2), %rsi
	addq	%rdx, %rsi
	cmpb	$35, -912(%rsi)
	je	.L13
	movb	$35, -912(%rsi)
	movslq	%ebx, %rsi
	movl	%ebx, %edx
	addl	$1, %r11d
	imulq	$351843721, %rsi, %rsi
	sarl	$31, %edx
	sarq	$45, %rsi
	subl	%edx, %esi
	movl	%ebx, %edx
	imull	$100000, %esi, %esi
	subl	%esi, %edx
	leal	1(%rbx), %esi
	movslq	%edx, %rdx
	movl	%esi, %r8d
	movq	%xmm8, 0(%rbp,%rdx,8)
	movslq	%esi, %rdx
	sarl	$31, %r8d
	imulq	$351843721, %rdx, %rdx
	sarq	$45, %rdx
	subl	%r8d, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %esi
	movslq	%esi, %rsi
	movq	%xmm7, 0(%rbp,%rsi,8)
	leal	2(%rbx), %esi
	movslq	%esi, %rdx
	movl	%esi, %r8d
	imulq	$351843721, %rdx, %rdx
	sarl	$31, %r8d
	sarq	$45, %rdx
	subl	%r8d, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %esi
	movslq	%esi, %rsi
	movq	%xmm6, 0(%rbp,%rsi,8)
	leal	3(%rbx), %esi
	movslq	%esi, %rdx
	movl	%esi, %r8d
	imulq	$351843721, %rdx, %rdx
	sarl	$31, %r8d
	sarq	$45, %rdx
	subl	%r8d, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %esi
	movslq	%esi, %rdx
	movq	%xmm5, 0(%rbp,%rdx,8)
	leal	4(%rbx), %edx
	movslq	%edx, %rbx
	movl	%edx, %esi
	imulq	$351843721, %rbx, %rbx
	sarl	$31, %esi
	sarq	$45, %rbx
	subl	%esi, %ebx
	imull	$100000, %ebx, %esi
	subl	%esi, %edx
	movl	%edx, %ebx
	cmpl	%eax, %ebx
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%r11d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L15
.L2:
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jne	.L35
	movq	936(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$952, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	xorl	%r11d, %r11d
	jmp	.L4
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	dy
	.data
	.align 16
	.type	dy, @object
	.size	dy, 16
dy:
	.long	-1
	.long	0
	.long	1
	.long	0
	.globl	dx
	.align 16
	.type	dx, @object
	.size	dx, 16
dx:
	.long	0
	.long	1
	.long	0
	.long	-1
	.globl	z
	.bss
	.align 32
	.type	z, @object
	.size	z, 800000
z:
	.zero	800000
	.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>
#define SIZE 100000
typedef struct{
  int x;
  int y;
}Zahyo;
Zahyo  z[SIZE];
int dx[]={0,1,0,-1};
int dy[]={-1,0,1,0};
main(){
  int h,w;
  char maps[30][30];
  int i,j;
  while(1){
    scanf("%d %d",&w,&h);
    if(w == 0 && h == 0) break;
    int cnt=0;
    int head=0;
    int tail=0;
    for(i=0;i<h;i++){
      scanf("%s",maps[i]);
      for(j=0;j<w;j++){
	if(maps[i][j]=='@'){
	  z[0]=(Zahyo){j,i};
	  tail=(tail+1)%SIZE;
	}
      }
    }
    while(head != tail){
      int x = z[head].x; int y = z[head].y; head = (head+1) % SIZE;
      if(0 <= x && 0 <= y && x < w && y < h && maps[y][x] != '#'){
	maps[y][x] = '#';
	cnt++;
	for(i=0;i<4;i++){
	  int nx = x + dx[i]; int ny = y + dy[i];
	  z[(tail+i) % SIZE] = (Zahyo){ nx,ny };
	}
	tail = (tail+4) % SIZE;
      }
    }
    printf("%d\n",cnt);
  }
  return 0;
}
6 9
....#.
.....#
......
......
......
......
......
@...#
.#..#.
11 9
.#.........
.#.#######.
.#.#.....#.
.#.#.###.#.
.#.#..@#.#.
.#.#####.#.
.#.......#.
.#########.
...........
11 6
..#..#..#..
..#..#..#..
..#..#..###
..#..#..#@.
..#..#..#..
..#..#..#..
7 7
#.#....
..#.#..
.###
...@...
.###
..#.#..
..#.#..
0 0
 6 9
....#.
.....#
......
......
......
......
......
#@...#
.#..#.
11 9
.#.........
.#.#######.
.#.#.....#.
.#.#.###.#.
.#.#..@#.#.
.#.#####.#.
.#.......#.
.#########.
...........
11 6
..#..#..#..
..#..#..#..
..#..#..###
..#..#..#@.
..#..#..#..
..#..#..#..
7 7
..#.#..
..#.#..
###.###
...@...
###."##
..#.#..
..#.#..
0 0
 6 9
....#.
.....#
......
......
......
......
......
@...#
."..#.
11 9
.#.........
.#.#######.
.#.....#.#.
.#.#.###.#.
.#.#..@#.#.
.#.#####.#.
.#.......#.
.#########.
...........
11 6
..#..#..#..
..#..#..#..
..#..#..###
..#..#..#@.
..#..#..#..
..#..#..#..
7 7
#.#....
..#.#..
.###
...@...
.###
..#.#..
..#.#..
0 0
 6 9
....#.
.....#
......
......
......
......
......
@...#
."..#.
11 9
.#.........
.#.#######.
.#.....#.#.
.#.#.###.#.
.#.#..@#.#.
.#.#####.#.
.#.......#.
.#########.
...........
11 6
..#..#..#..
..#..#..#..
..#.."..###
..#..#..#@.
..#..#..#..
..#..#..#..
7 7
#.#....
..#.#..
.###
...@...
.###
..#.#..
..#.#..
0 0
 6 9
....#.
.....#
......
......
......
......
......
@...#
.#..#.
11 9
.#.........
.#.#######.
.#.#.....#.
.#.#.###.#.
.#.#..@#.#.
.#.#####.#.
.#.......#.
.#########.
...........
11 6
..#..#..#..
..#..#..#..
###..#..#..
..#..#..#@.
..#..#..#..
..#..#..#..
7 7
..#.#..
..#.#..
.###
...@...
.###
..#.#..
..#.#..
0 0
 6 9
....#.
.....#
......
......
......
......
......
#@...#
.#..#.
11 9
.#.........
.#.#######.
.#.#.....#.
.#.#.###.#.
.#.#..@#.#.
.#.#####.#.
.#.......#.
.#########.
...........
11 6
..#..#..#..
..#..#..#..
..#..#..###
..#..#..#@.
..#..#..#..
..#..#..#..
13 7
..#.#..
..#.#..
###.###
...@...
###.###
..#.#..
..#.#..
0 0
 6 9
....#.
.....#
......
......
......
......
......
#@...#
.#..#.
12 9
.#.........
.#.#######.
.#.#.....#.
.#.#.###.#.
.#.#..@#.#.
.#.#####.#.
.#.......#.
.#########.
...........
11 6
..#..#..#..
..#..#..#..
..#..#..###
..#..#..#@.
..#..#..#..
..#..#..#..
7 7
..#.#..
..#.#..
###.###
...@...
###."##
..#.#..
..#.#..
0 0
 6 9
....#.
.....#
......
......
......
......
......
@...#
."..#.
11 9
.#.........
.#.#######.
.".....#.#.
.#.#.###.#.
.#.#..@#.#.
.#.#####.#.
.#.......#.
.#########.
...........
11 6
..#..#..#..
..#..#..#..
..#.."..###
..#..#..#@.
..#..#..#..
..#..#..#..
7 7
#.#....
..#.#..
.###
...@...
.###
..#.#..
..#.#..
0 0
 6 9
....#.
.....#
......
......
......
......
......
@...#
."..#.
11 9
.#.........
.#.#######.
##.....#...
.#.#.###.#.
.#.#..@#.#.
.#.#####.#.
.#.......#.
.#########.
...........
11 6
..#..#..#..
..#..#..#..
..#..#..###
..#..#..#@.
..#..#..#..
..#..#..#..
7 7
#.#....
..#.#..
.###
./.@...
.###
..#.#..
..#.#..
0 0
 6 9
./..#.
.....#
......
......
......
......
......
@...#
."..#.
11 9
.#.........
.#######.#.
.#.....#.#.
.#.#.###.#.
.#.#..@#.#.
.#.#####.#.
.#.......#.
.#########.
...........
11 6
..#..#..#..
..#..#..#..
..#.."..#"#
..#..#..#@.
..#..#..#..
..#..#..#..
7 7
#.#....
..#.#..
.###
...@...
.###
..#.#..
..#.#..
0 0

48
59
6
31
 45
59
6
14
 49
59
6
31
 49
59
6
32
 48
59
12
29
 45
59
6
28
 45
68
6
14
 49
60
6
32
 49
57
6
31
 49
59
11
32

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>
#define SIZE 100000
typedef struct{
  int x;
  int y;
}Zahyo;
Zahyo  z[SIZE];
int dx[]={0,1,0,-1};
int dy[]={-1,0,1,0};
main(){
  int h,w;
  char maps[30][30];
  int i,j;
  while(1){
    scanf("%d %d",&w,&h);
    if(w == 0 && h == 0) break;
    int cnt=0;
    int head=0;
    int tail=0;
    for(i=0;i<h;i++){
      scanf("%s",maps[i]);
      for(j=0;j<w;j++){
	if(maps[i][j]=='@'){
	  z[0]=(Zahyo){j,i};
	  tail=(tail+1)%SIZE;
	}
      }
    }
    while(head != tail){
      int x = z[head].x; int y = z[head].y; head = (head+1) % SIZE;
      if(0 <= x && 0 <= y && x < w && y < h && maps[y][x] != '#'){
	maps[y][x] = '#';
	cnt++;
	for(i=0;i<4;i++){
	  int nx = x + dx[i]; int ny = y + dy[i];
	  z[(tail+i) % SIZE] = (Zahyo){ nx,ny };
	}
	tail = (tail+4) % SIZE;
      }
    }
    printf("%d\n",cnt);
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	z
	.bss
	.align 32
	.type	z, @object
	.size	z, 800000
z:
	.zero	800000
	.globl	dx
	.data
	.align 16
	.type	dx, @object
	.size	dx, 16
dx:
	.long	0
	.long	1
	.long	0
	.long	-1
	.globl	dy
	.align 16
	.type	dy, @object
	.size	dy, 16
dy:
	.long	-1
	.long	0
	.long	1
	.long	0
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$960, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L13:
	leaq	-956(%rbp), %rdx
	leaq	-952(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-952(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-956(%rbp), %eax
	testl	%eax, %eax
	je	.L17
.L2:
	movl	$0, -940(%rbp)
	movl	$0, -936(%rbp)
	movl	$0, -932(%rbp)
	movl	$0, -948(%rbp)
	jmp	.L4
.L8:
	leaq	-912(%rbp), %rcx
	movl	-948(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -944(%rbp)
	jmp	.L5
.L7:
	movl	-944(%rbp), %eax
	movslq	%eax, %rcx
	movl	-948(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$912, %rax
	movzbl	(%rax), %eax
	cmpb	$64, %al
	jne	.L6
	movl	-944(%rbp), %eax
	movl	%eax, z(%rip)
	movl	-948(%rbp), %eax
	movl	%eax, 4+z(%rip)
	movl	-932(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -932(%rbp)
	movl	-932(%rbp), %edx
	imull	$100000, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -932(%rbp)
.L6:
	addl	$1, -944(%rbp)
.L5:
	movl	-952(%rbp), %eax
	cmpl	%eax, -944(%rbp)
	jl	.L7
	addl	$1, -948(%rbp)
.L4:
	movl	-956(%rbp), %eax
	cmpl	%eax, -948(%rbp)
	jl	.L8
	jmp	.L9
.L12:
	movl	-936(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	z(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -928(%rbp)
	movl	-936(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+z(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -924(%rbp)
	movl	-936(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -936(%rbp)
	movl	-936(%rbp), %edx
	imull	$100000, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -936(%rbp)
	cmpl	$0, -928(%rbp)
	js	.L9
	cmpl	$0, -924(%rbp)
	js	.L9
	movl	-952(%rbp), %eax
	cmpl	%eax, -928(%rbp)
	jge	.L9
	movl	-956(%rbp), %eax
	cmpl	%eax, -924(%rbp)
	jge	.L9
	movl	-928(%rbp), %eax
	movslq	%eax, %rcx
	movl	-924(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$912, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L9
	movl	-928(%rbp), %eax
	movslq	%eax, %rcx
	movl	-924(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$912, %rax
	movb	$35, (%rax)
	addl	$1, -940(%rbp)
	movl	$0, -948(%rbp)
	jmp	.L10
.L11:
	movl	-948(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-928(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -920(%rbp)
	movl	-948(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-924(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -916(%rbp)
	movl	-932(%rbp), %edx
	movl	-948(%rbp), %eax
	addl	%eax, %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,8), %rsi
	leaq	z(%rip), %rcx
	movl	-920(%rbp), %edx
	movl	%edx, (%rsi,%rcx)
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+z(%rip), %rdx
	movl	-916(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -948(%rbp)
.L10:
	cmpl	$3, -948(%rbp)
	jle	.L11
	movl	-932(%rbp), %eax
	addl	$4, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -932(%rbp)
	movl	-932(%rbp), %edx
	imull	$100000, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -932(%rbp)
.L9:
	movl	-936(%rbp), %eax
	cmpl	-932(%rbp), %eax
	jne	.L12
	movl	-940(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L13
.L17:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	z
	.bss
	.align 32
	.type	z, @object
	.size	z, 800000
z:
	.zero	800000
	.globl	dx
	.data
	.align 16
	.type	dx, @object
	.size	dx, 16
dx:
	.long	0
	.long	1
	.long	0
	.long	-1
	.globl	dy
	.align 16
	.type	dy, @object
	.size	dy, 16
dy:
	.long	-1
	.long	0
	.long	1
	.long	0
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$960, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L13:
	leaq	-956(%rbp), %rdx
	leaq	-952(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-952(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-956(%rbp), %eax
	testl	%eax, %eax
	je	.L17
.L2:
	movl	$0, -940(%rbp)
	movl	$0, -936(%rbp)
	movl	$0, -932(%rbp)
	movl	$0, -948(%rbp)
	jmp	.L4
.L8:
	leaq	-912(%rbp), %rcx
	movl	-948(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -944(%rbp)
	jmp	.L5
.L7:
	movl	-944(%rbp), %eax
	movslq	%eax, %rcx
	movl	-948(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$912, %rax
	movzbl	(%rax), %eax
	cmpb	$64, %al
	jne	.L6
	movl	-944(%rbp), %eax
	movl	%eax, z(%rip)
	movl	-948(%rbp), %eax
	movl	%eax, 4+z(%rip)
	movl	-932(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -932(%rbp)
	movl	-932(%rbp), %edx
	imull	$100000, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -932(%rbp)
.L6:
	addl	$1, -944(%rbp)
.L5:
	movl	-952(%rbp), %eax
	cmpl	%eax, -944(%rbp)
	jl	.L7
	addl	$1, -948(%rbp)
.L4:
	movl	-956(%rbp), %eax
	cmpl	%eax, -948(%rbp)
	jl	.L8
	jmp	.L9
.L12:
	movl	-936(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	z(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -928(%rbp)
	movl	-936(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+z(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -924(%rbp)
	movl	-936(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -936(%rbp)
	movl	-936(%rbp), %edx
	imull	$100000, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -936(%rbp)
	cmpl	$0, -928(%rbp)
	js	.L9
	cmpl	$0, -924(%rbp)
	js	.L9
	movl	-952(%rbp), %eax
	cmpl	%eax, -928(%rbp)
	jge	.L9
	movl	-956(%rbp), %eax
	cmpl	%eax, -924(%rbp)
	jge	.L9
	movl	-928(%rbp), %eax
	movslq	%eax, %rcx
	movl	-924(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$912, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L9
	movl	-928(%rbp), %eax
	movslq	%eax, %rcx
	movl	-924(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$912, %rax
	movb	$35, (%rax)
	addl	$1, -940(%rbp)
	movl	$0, -948(%rbp)
	jmp	.L10
.L11:
	movl	-948(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-928(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -920(%rbp)
	movl	-948(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-924(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -916(%rbp)
	movl	-932(%rbp), %edx
	movl	-948(%rbp), %eax
	addl	%eax, %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,8), %rsi
	leaq	z(%rip), %rcx
	movl	-920(%rbp), %edx
	movl	%edx, (%rsi,%rcx)
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+z(%rip), %rdx
	movl	-916(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -948(%rbp)
.L10:
	cmpl	$3, -948(%rbp)
	jle	.L11
	movl	-932(%rbp), %eax
	addl	$4, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -932(%rbp)
	movl	-932(%rbp), %edx
	imull	$100000, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -932(%rbp)
.L9:
	movl	-936(%rbp), %eax
	cmpl	-932(%rbp), %eax
	jne	.L12
	movl	-940(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L13
.L17:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
