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>

char t[21][21]={0};
int  h,w;

void at(int i,int j);
int main(){
  int i,j,a,b,cnt=0;
  scanf("%d %d",&w,&h);
  
  while(w!=0 || h!=0){
    
    for(i=0;i<h;i++){
      scanf("%s",t[i]);
    }
    
    for(i=0;i<h;i++){
      for(j=0;j<w;j++){
	if(t[i][j]=='@'){
	  t[i][j]='.';
	  a=i; b=j;
	}
      }
    }
    
    at(a,b);
    
    for(i=0;i<h;i++){
      for(j=0;j<w;j++){
	if(t[i][j]=='@') cnt++;
      }
    }
    
    printf("%d\n",cnt);
    cnt=0;
    scanf("%d %d",&w,&h);
  }
  return 0;
}

void at(int i,int j){

  if(t[i][j]=='#') return;
  if(t[i][j]=='@') return;
  if(i==h || j==w || i==-1 || j==-1) return;


  t[i][j]='@';
  at(i+1,j);
  at(i-1,j);
  at(i,j+1);
  at(i,j-1);
  
  return;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 441
t:
	.zero	441
	.globl	h
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.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	$32, %rsp
	movl	$0, -4(%rbp)
	leaq	h(%rip), %rax
	movq	%rax, %rdx
	leaq	w(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L15:
	movl	$0, -20(%rbp)
	jmp	.L3
.L4:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	t(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -20(%rbp)
.L3:
	movl	h(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L4
	movl	$0, -20(%rbp)
	jmp	.L5
.L9:
	movl	$0, -16(%rbp)
	jmp	.L6
.L8:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$64, %al
	jne	.L7
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movb	$46, (%rax)
	movl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -8(%rbp)
.L7:
	addl	$1, -16(%rbp)
.L6:
	movl	w(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L8
	addl	$1, -20(%rbp)
.L5:
	movl	h(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L9
	movl	-8(%rbp), %edx
	movl	-12(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	at
	movl	$0, -20(%rbp)
	jmp	.L10
.L14:
	movl	$0, -16(%rbp)
	jmp	.L11
.L13:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$64, %al
	jne	.L12
	addl	$1, -4(%rbp)
.L12:
	addl	$1, -16(%rbp)
.L11:
	movl	w(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L13
	addl	$1, -20(%rbp)
.L10:
	movl	h(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L14
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -4(%rbp)
	leaq	h(%rip), %rax
	movq	%rax, %rdx
	leaq	w(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L2:
	movl	w(%rip), %eax
	testl	%eax, %eax
	jne	.L15
	movl	h(%rip), %eax
	testl	%eax, %eax
	jne	.L15
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	at
	.type	at, @function
at:
.LFB1:
	.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
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L23
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$64, %al
	je	.L24
	movl	h(%rip), %eax
	cmpl	%eax, -4(%rbp)
	je	.L25
	movl	w(%rip), %eax
	cmpl	%eax, -8(%rbp)
	je	.L25
	cmpl	$-1, -4(%rbp)
	je	.L25
	cmpl	$-1, -8(%rbp)
	je	.L25
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movb	$64, (%rax)
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	at
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	at
	movl	-8(%rbp), %eax
	leal	1(%rax), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	at
	movl	-8(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	at
	jmp	.L17
.L23:
	nop
	jmp	.L17
.L24:
	nop
	jmp	.L17
.L25:
	nop
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	at, .-at
	.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	at
	.type	at, @function
at:
.LFB24:
	.cfi_startproc
	endbr64
	movslq	%edi, %rax
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	(%rax,%rax,4), %rdx
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	t(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rax, %r12
	leaq	(%rax,%rdx,4), %rax
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	addq	%rax, %r13
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movslq	%esi, %rbx
	movzbl	0(%r13,%rbx), %eax
	cmpb	$64, %al
	je	.L1
	cmpb	$35, %al
	je	.L1
	leal	1(%r12), %r14d
.L3:
	cmpl	%r12d, h(%rip)
	je	.L1
	cmpl	%ebx, w(%rip)
	je	.L1
	cmpl	$-1, %r12d
	je	.L1
	cmpl	$-1, %ebx
	je	.L1
	movb	$64, 0(%r13,%rbx)
	movl	%ebx, %esi
	movl	%r14d, %edi
	call	at
	movl	%ebx, %esi
	leal	-1(%r12), %edi
	call	at
	leal	1(%rbx), %esi
	movl	%r12d, %edi
	call	at
	movzbl	-1(%r13,%rbx), %eax
	subq	$1, %rbx
	cmpb	$64, %al
	je	.L1
	cmpb	$35, %al
	jne	.L3
.L1:
	popq	%rbx
	.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
	.cfi_endproc
.LFE24:
	.size	at, .-at
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%s"
.LC4:
	.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
	xorl	%eax, %eax
	leaq	h(%rip), %rdx
	leaq	w(%rip), %rsi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %rdi
	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
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	__isoc99_scanf@PLT
	movl	h(%rip), %eax
	movl	%eax, %ebx
	orl	w(%rip), %ebx
	leaq	.LC1(%rip), %rbx
	je	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	leaq	t(%rip), %r13
	xorl	%r14d, %r14d
	movq	%r13, %r15
	testl	%eax, %eax
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	h(%rip), %edi
	addq	$21, %r15
	cmpl	%r14d, %edi
	jg	.L12
	testl	%edi, %edi
	jle	.L13
	movl	w(%rip), %ecx
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r13, %rdx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jle	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	cmpb	$64, (%rdx)
	jne	.L15
	movb	$46, (%rdx)
	movl	%eax, %r12d
	movl	%esi, %ebp
.L15:
	addl	$1, %eax
	addq	$1, %rdx
	cmpl	%ecx, %eax
	jne	.L16
.L17:
	addl	$1, %esi
	addq	$21, %r13
	cmpl	%esi, %edi
	jne	.L14
.L13:
	movl	%r12d, %esi
	movl	%ebp, %edi
	call	at
	movl	h(%rip), %r11d
	testl	%r11d, %r11d
	jle	.L42
	movl	w(%rip), %ecx
	xorl	%edx, %edx
	xorl	%edi, %edi
	pxor	%xmm4, %xmm4
	leaq	t(%rip), %r10
	pxor	%xmm3, %xmm3
	movl	%ecx, %r9d
	movq	%r10, %r8
	leal	-1(%rcx), %r13d
	andl	$-16, %r9d
	.p2align 4,,10
	.p2align 3
.L19:
	testl	%ecx, %ecx
	jle	.L39
	cmpl	$14, %r13d
	jbe	.L43
	movdqu	(%r8), %xmm1
	movdqa	%xmm4, %xmm2
	pcmpeqb	.LC2(%rip), %xmm1
	pand	.LC3(%rip), %xmm1
	pcmpgtb	%xmm1, %xmm2
	movdqa	%xmm1, %xmm0
	punpcklbw	%xmm2, %xmm0
	punpckhbw	%xmm2, %xmm1
	movdqa	%xmm3, %xmm2
	pcmpgtw	%xmm0, %xmm2
	movdqa	%xmm0, %xmm5
	punpcklwd	%xmm2, %xmm5
	punpckhwd	%xmm2, %xmm0
	movdqa	%xmm3, %xmm2
	pcmpgtw	%xmm1, %xmm2
	paddd	%xmm5, %xmm0
	movdqa	%xmm1, %xmm5
	punpcklwd	%xmm2, %xmm5
	punpckhwd	%xmm2, %xmm1
	paddd	%xmm5, %xmm0
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%eax, %edx
	cmpl	%r9d, %ecx
	je	.L39
	movl	%r9d, %eax
.L20:
	movslq	%edi, %r14
	movslq	%eax, %r15
	leaq	(%r14,%r14,4), %rsi
	leaq	(%r14,%rsi,4), %rsi
	addq	%r10, %rsi
	cmpb	$64, (%rsi,%r15)
	sete	%r15b
	movzbl	%r15b, %r15d
	addl	%r15d, %edx
	leal	1(%rax), %r15d
	cmpl	%ecx, %r15d
	jge	.L39
	movslq	%r15d, %r15
	cmpb	$64, (%rsi,%r15)
	sete	%r15b
	movzbl	%r15b, %r15d
	addl	%r15d, %edx
	leal	2(%rax), %r15d
	cmpl	%ecx, %r15d
	jge	.L39
	movslq	%r15d, %r15
	cmpb	$64, (%rsi,%r15)
	sete	%r15b
	movzbl	%r15b, %r15d
	addl	%r15d, %edx
	leal	3(%rax), %r15d
	cmpl	%ecx, %r15d
	jge	.L39
	movslq	%r15d, %r15
	cmpb	$64, (%rsi,%r15)
	sete	%r15b
	movzbl	%r15b, %r15d
	addl	%r15d, %edx
	leal	4(%rax), %r15d
	cmpl	%r15d, %ecx
	jle	.L39
	movslq	%r15d, %r15
	cmpb	$64, (%rsi,%r15)
	sete	%r15b
	movzbl	%r15b, %r15d
	addl	%r15d, %edx
	leal	5(%rax), %r15d
	cmpl	%r15d, %ecx
	jle	.L39
	movslq	%r15d, %r15
	cmpb	$64, (%rsi,%r15)
	sete	%r15b
	movzbl	%r15b, %r15d
	addl	%r15d, %edx
	leal	6(%rax), %r15d
	cmpl	%r15d, %ecx
	jle	.L39
	movslq	%r15d, %r15
	cmpb	$64, (%rsi,%r15)
	sete	%r15b
	movzbl	%r15b, %r15d
	addl	%r15d, %edx
	leal	7(%rax), %r15d
	cmpl	%r15d, %ecx
	jle	.L39
	movslq	%r15d, %r15
	cmpb	$64, (%rsi,%r15)
	sete	%r15b
	movzbl	%r15b, %r15d
	addl	%r15d, %edx
	leal	8(%rax), %r15d
	cmpl	%r15d, %ecx
	jle	.L39
	movslq	%r15d, %r15
	cmpb	$64, (%rsi,%r15)
	sete	%r15b
	movzbl	%r15b, %r15d
	addl	%r15d, %edx
	leal	9(%rax), %r15d
	cmpl	%r15d, %ecx
	jle	.L39
	movslq	%r15d, %r15
	cmpb	$64, (%rsi,%r15)
	sete	%sil
	movzbl	%sil, %esi
	addl	%esi, %edx
	leal	10(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L39
	movslq	%esi, %r15
	leaq	(%r14,%r14,4), %rsi
	leaq	(%r14,%rsi,4), %rsi
	xorl	%r14d, %r14d
	addq	%r10, %rsi
	cmpb	$64, (%rsi,%r15)
	sete	%r14b
	addl	%r14d, %edx
	leal	11(%rax), %r14d
	cmpl	%r14d, %ecx
	jle	.L39
	movslq	%r14d, %r14
	cmpb	$64, (%rsi,%r14)
	sete	%r14b
	movzbl	%r14b, %r14d
	addl	%r14d, %edx
	leal	12(%rax), %r14d
	cmpl	%r14d, %ecx
	jle	.L39
	movslq	%r14d, %r14
	cmpb	$64, (%rsi,%r14)
	sete	%r14b
	movzbl	%r14b, %r14d
	addl	%r14d, %edx
	leal	13(%rax), %r14d
	cmpl	%r14d, %ecx
	jle	.L39
	movslq	%r14d, %r14
	cmpb	$64, (%rsi,%r14)
	sete	%r14b
	addl	$14, %eax
	movzbl	%r14b, %r14d
	addl	%r14d, %edx
	cmpl	%eax, %ecx
	jle	.L39
	cltq
	cmpb	$64, (%rsi,%rax)
	sete	%al
	movzbl	%al, %eax
	addl	%eax, %edx
	.p2align 4,,10
	.p2align 3
.L39:
	addl	$1, %edi
	addq	$21, %r8
	cmpl	%edi, %r11d
	jne	.L19
.L18:
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	leaq	h(%rip), %rdx
	leaq	w(%rip), %rsi
	call	__isoc99_scanf@PLT
	movl	h(%rip), %eax
	movl	%eax, %edi
	orl	w(%rip), %edi
	jne	.L10
.L11:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L43:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L20
.L42:
	xorl	%edx, %edx
	jmp	.L18
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	w
	.bss
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	h
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 441
t:
	.zero	441
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.align 16
.LC3:
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.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	at
	.type	at, @function
at:
.LFB24:
	.cfi_startproc
	endbr64
	movslq	%edi, %rax
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	(%rax,%rax,4), %rdx
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	t(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rax, %r12
	leaq	(%rax,%rdx,4), %rax
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	addq	%rax, %r13
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movslq	%esi, %rbx
	movzbl	0(%r13,%rbx), %eax
	cmpb	$64, %al
	je	.L1
	cmpb	$35, %al
	je	.L1
	leal	1(%r12), %r14d
.L3:
	cmpl	%r12d, h(%rip)
	je	.L1
	cmpl	%ebx, w(%rip)
	je	.L1
	cmpl	$-1, %r12d
	je	.L1
	cmpl	$-1, %ebx
	je	.L1
	movb	$64, 0(%r13,%rbx)
	movl	%ebx, %esi
	movl	%r14d, %edi
	call	at
	movl	%ebx, %esi
	leal	-1(%r12), %edi
	call	at
	leal	1(%rbx), %esi
	movl	%r12d, %edi
	call	at
	movzbl	-1(%r13,%rbx), %eax
	subq	$1, %rbx
	cmpb	$64, %al
	je	.L1
	cmpb	$35, %al
	jne	.L3
.L1:
	popq	%rbx
	.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
	.cfi_endproc
.LFE24:
	.size	at, .-at
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%s"
.LC4:
	.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
	xorl	%eax, %eax
	leaq	h(%rip), %rdx
	leaq	w(%rip), %rsi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %rdi
	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
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	__isoc99_scanf@PLT
	movl	h(%rip), %eax
	movl	%eax, %ebx
	orl	w(%rip), %ebx
	leaq	.LC1(%rip), %rbx
	je	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	leaq	t(%rip), %r13
	xorl	%r14d, %r14d
	movq	%r13, %r15
	testl	%eax, %eax
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	h(%rip), %edi
	addq	$21, %r15
	cmpl	%r14d, %edi
	jg	.L12
	testl	%edi, %edi
	jle	.L13
	movl	w(%rip), %ecx
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r13, %rdx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jle	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	cmpb	$64, (%rdx)
	jne	.L15
	movb	$46, (%rdx)
	movl	%eax, %r12d
	movl	%esi, %ebp
.L15:
	addl	$1, %eax
	addq	$1, %rdx
	cmpl	%ecx, %eax
	jne	.L16
.L17:
	addl	$1, %esi
	addq	$21, %r13
	cmpl	%esi, %edi
	jne	.L14
.L13:
	movl	%r12d, %esi
	movl	%ebp, %edi
	call	at
	movl	h(%rip), %r11d
	testl	%r11d, %r11d
	jle	.L42
	movl	w(%rip), %ecx
	xorl	%edx, %edx
	xorl	%edi, %edi
	pxor	%xmm4, %xmm4
	leaq	t(%rip), %r10
	pxor	%xmm3, %xmm3
	movl	%ecx, %r9d
	movq	%r10, %r8
	leal	-1(%rcx), %r13d
	andl	$-16, %r9d
	.p2align 4,,10
	.p2align 3
.L19:
	testl	%ecx, %ecx
	jle	.L39
	cmpl	$14, %r13d
	jbe	.L43
	movdqu	(%r8), %xmm1
	movdqa	%xmm4, %xmm2
	pcmpeqb	.LC2(%rip), %xmm1
	pand	.LC3(%rip), %xmm1
	pcmpgtb	%xmm1, %xmm2
	movdqa	%xmm1, %xmm0
	punpcklbw	%xmm2, %xmm0
	punpckhbw	%xmm2, %xmm1
	movdqa	%xmm3, %xmm2
	pcmpgtw	%xmm0, %xmm2
	movdqa	%xmm0, %xmm5
	punpcklwd	%xmm2, %xmm5
	punpckhwd	%xmm2, %xmm0
	movdqa	%xmm3, %xmm2
	pcmpgtw	%xmm1, %xmm2
	paddd	%xmm5, %xmm0
	movdqa	%xmm1, %xmm5
	punpcklwd	%xmm2, %xmm5
	punpckhwd	%xmm2, %xmm1
	paddd	%xmm5, %xmm0
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%eax, %edx
	cmpl	%r9d, %ecx
	je	.L39
	movl	%r9d, %eax
.L20:
	movslq	%edi, %r14
	movslq	%eax, %r15
	leaq	(%r14,%r14,4), %rsi
	leaq	(%r14,%rsi,4), %rsi
	addq	%r10, %rsi
	cmpb	$64, (%rsi,%r15)
	sete	%r15b
	movzbl	%r15b, %r15d
	addl	%r15d, %edx
	leal	1(%rax), %r15d
	cmpl	%ecx, %r15d
	jge	.L39
	movslq	%r15d, %r15
	cmpb	$64, (%rsi,%r15)
	sete	%r15b
	movzbl	%r15b, %r15d
	addl	%r15d, %edx
	leal	2(%rax), %r15d
	cmpl	%ecx, %r15d
	jge	.L39
	movslq	%r15d, %r15
	cmpb	$64, (%rsi,%r15)
	sete	%r15b
	movzbl	%r15b, %r15d
	addl	%r15d, %edx
	leal	3(%rax), %r15d
	cmpl	%ecx, %r15d
	jge	.L39
	movslq	%r15d, %r15
	cmpb	$64, (%rsi,%r15)
	sete	%r15b
	movzbl	%r15b, %r15d
	addl	%r15d, %edx
	leal	4(%rax), %r15d
	cmpl	%r15d, %ecx
	jle	.L39
	movslq	%r15d, %r15
	cmpb	$64, (%rsi,%r15)
	sete	%r15b
	movzbl	%r15b, %r15d
	addl	%r15d, %edx
	leal	5(%rax), %r15d
	cmpl	%r15d, %ecx
	jle	.L39
	movslq	%r15d, %r15
	cmpb	$64, (%rsi,%r15)
	sete	%r15b
	movzbl	%r15b, %r15d
	addl	%r15d, %edx
	leal	6(%rax), %r15d
	cmpl	%r15d, %ecx
	jle	.L39
	movslq	%r15d, %r15
	cmpb	$64, (%rsi,%r15)
	sete	%r15b
	movzbl	%r15b, %r15d
	addl	%r15d, %edx
	leal	7(%rax), %r15d
	cmpl	%r15d, %ecx
	jle	.L39
	movslq	%r15d, %r15
	cmpb	$64, (%rsi,%r15)
	sete	%r15b
	movzbl	%r15b, %r15d
	addl	%r15d, %edx
	leal	8(%rax), %r15d
	cmpl	%r15d, %ecx
	jle	.L39
	movslq	%r15d, %r15
	cmpb	$64, (%rsi,%r15)
	sete	%r15b
	movzbl	%r15b, %r15d
	addl	%r15d, %edx
	leal	9(%rax), %r15d
	cmpl	%r15d, %ecx
	jle	.L39
	movslq	%r15d, %r15
	cmpb	$64, (%rsi,%r15)
	sete	%sil
	movzbl	%sil, %esi
	addl	%esi, %edx
	leal	10(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L39
	movslq	%esi, %r15
	leaq	(%r14,%r14,4), %rsi
	leaq	(%r14,%rsi,4), %rsi
	xorl	%r14d, %r14d
	addq	%r10, %rsi
	cmpb	$64, (%rsi,%r15)
	sete	%r14b
	addl	%r14d, %edx
	leal	11(%rax), %r14d
	cmpl	%r14d, %ecx
	jle	.L39
	movslq	%r14d, %r14
	cmpb	$64, (%rsi,%r14)
	sete	%r14b
	movzbl	%r14b, %r14d
	addl	%r14d, %edx
	leal	12(%rax), %r14d
	cmpl	%r14d, %ecx
	jle	.L39
	movslq	%r14d, %r14
	cmpb	$64, (%rsi,%r14)
	sete	%r14b
	movzbl	%r14b, %r14d
	addl	%r14d, %edx
	leal	13(%rax), %r14d
	cmpl	%r14d, %ecx
	jle	.L39
	movslq	%r14d, %r14
	cmpb	$64, (%rsi,%r14)
	sete	%r14b
	addl	$14, %eax
	movzbl	%r14b, %r14d
	addl	%r14d, %edx
	cmpl	%eax, %ecx
	jle	.L39
	cltq
	cmpb	$64, (%rsi,%rax)
	sete	%al
	movzbl	%al, %eax
	addl	%eax, %edx
	.p2align 4,,10
	.p2align 3
.L39:
	addl	$1, %edi
	addq	$21, %r8
	cmpl	%edi, %r11d
	jne	.L19
.L18:
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	leaq	h(%rip), %rdx
	leaq	w(%rip), %rsi
	call	__isoc99_scanf@PLT
	movl	h(%rip), %eax
	movl	%eax, %edi
	orl	w(%rip), %edi
	jne	.L10
.L11:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L43:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L20
.L42:
	xorl	%edx, %edx
	jmp	.L18
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	w
	.bss
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	h
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 441
t:
	.zero	441
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.byte	64
	.align 16
.LC3:
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.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>

char t[21][21]={0};
int  h,w;

void at(int i,int j);
int main(){
  int i,j,a,b,cnt=0;
  scanf("%d %d",&w,&h);
  
  while(w!=0 || h!=0){
    
    for(i=0;i<h;i++){
      scanf("%s",t[i]);
    }
    
    for(i=0;i<h;i++){
      for(j=0;j<w;j++){
	if(t[i][j]=='@'){
	  t[i][j]='.';
	  a=i; b=j;
	}
      }
    }
    
    at(a,b);
    
    for(i=0;i<h;i++){
      for(j=0;j<w;j++){
	if(t[i][j]=='@') cnt++;
      }
    }
    
    printf("%d\n",cnt);
    cnt=0;
    scanf("%d %d",&w,&h);
  }
  return 0;
}

void at(int i,int j){

  if(t[i][j]=='#') return;
  if(t[i][j]=='@') return;
  if(i==h || j==w || i==-1 || j==-1) return;


  t[i][j]='@';
  at(i+1,j);
  at(i-1,j);
  at(i,j+1);
  at(i,j-1);
  
  return;
}
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
25
 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>

char t[21][21]={0};
int  h,w;

void at(int i,int j);
int main(){
  int i,j,a,b,cnt=0;
  scanf("%d %d",&w,&h);
  
  while(w!=0 || h!=0){
    
    for(i=0;i<h;i++){
      scanf("%s",t[i]);
    }
    
    for(i=0;i<h;i++){
      for(j=0;j<w;j++){
	if(t[i][j]=='@'){
	  t[i][j]='.';
	  a=i; b=j;
	}
      }
    }
    
    at(a,b);
    
    for(i=0;i<h;i++){
      for(j=0;j<w;j++){
	if(t[i][j]=='@') cnt++;
      }
    }
    
    printf("%d\n",cnt);
    cnt=0;
    scanf("%d %d",&w,&h);
  }
  return 0;
}

void at(int i,int j){

  if(t[i][j]=='#') return;
  if(t[i][j]=='@') return;
  if(i==h || j==w || i==-1 || j==-1) return;


  t[i][j]='@';
  at(i+1,j);
  at(i-1,j);
  at(i,j+1);
  at(i,j-1);
  
  return;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 441
t:
	.zero	441
	.globl	h
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.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	$32, %rsp
	movl	$0, -4(%rbp)
	leaq	h(%rip), %rax
	movq	%rax, %rdx
	leaq	w(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L15:
	movl	$0, -20(%rbp)
	jmp	.L3
.L4:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	t(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -20(%rbp)
.L3:
	movl	h(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L4
	movl	$0, -20(%rbp)
	jmp	.L5
.L9:
	movl	$0, -16(%rbp)
	jmp	.L6
.L8:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$64, %al
	jne	.L7
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movb	$46, (%rax)
	movl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -8(%rbp)
.L7:
	addl	$1, -16(%rbp)
.L6:
	movl	w(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L8
	addl	$1, -20(%rbp)
.L5:
	movl	h(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L9
	movl	-8(%rbp), %edx
	movl	-12(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	at
	movl	$0, -20(%rbp)
	jmp	.L10
.L14:
	movl	$0, -16(%rbp)
	jmp	.L11
.L13:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$64, %al
	jne	.L12
	addl	$1, -4(%rbp)
.L12:
	addl	$1, -16(%rbp)
.L11:
	movl	w(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L13
	addl	$1, -20(%rbp)
.L10:
	movl	h(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L14
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -4(%rbp)
	leaq	h(%rip), %rax
	movq	%rax, %rdx
	leaq	w(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L2:
	movl	w(%rip), %eax
	testl	%eax, %eax
	jne	.L15
	movl	h(%rip), %eax
	testl	%eax, %eax
	jne	.L15
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	at
	.type	at, @function
at:
.LFB1:
	.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
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L23
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$64, %al
	je	.L24
	movl	h(%rip), %eax
	cmpl	%eax, -4(%rbp)
	je	.L25
	movl	w(%rip), %eax
	cmpl	%eax, -8(%rbp)
	je	.L25
	cmpl	$-1, -4(%rbp)
	je	.L25
	cmpl	$-1, -8(%rbp)
	je	.L25
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movb	$64, (%rax)
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	at
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	at
	movl	-8(%rbp), %eax
	leal	1(%rax), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	at
	movl	-8(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	at
	jmp	.L17
.L23:
	nop
	jmp	.L17
.L24:
	nop
	jmp	.L17
.L25:
	nop
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	at, .-at
	.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	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 441
t:
	.zero	441
	.globl	h
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.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	$32, %rsp
	movl	$0, -4(%rbp)
	leaq	h(%rip), %rax
	movq	%rax, %rdx
	leaq	w(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L15:
	movl	$0, -20(%rbp)
	jmp	.L3
.L4:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	t(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -20(%rbp)
.L3:
	movl	h(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L4
	movl	$0, -20(%rbp)
	jmp	.L5
.L9:
	movl	$0, -16(%rbp)
	jmp	.L6
.L8:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$64, %al
	jne	.L7
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movb	$46, (%rax)
	movl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -8(%rbp)
.L7:
	addl	$1, -16(%rbp)
.L6:
	movl	w(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L8
	addl	$1, -20(%rbp)
.L5:
	movl	h(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L9
	movl	-8(%rbp), %edx
	movl	-12(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	at
	movl	$0, -20(%rbp)
	jmp	.L10
.L14:
	movl	$0, -16(%rbp)
	jmp	.L11
.L13:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$64, %al
	jne	.L12
	addl	$1, -4(%rbp)
.L12:
	addl	$1, -16(%rbp)
.L11:
	movl	w(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L13
	addl	$1, -20(%rbp)
.L10:
	movl	h(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L14
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -4(%rbp)
	leaq	h(%rip), %rax
	movq	%rax, %rdx
	leaq	w(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L2:
	movl	w(%rip), %eax
	testl	%eax, %eax
	jne	.L15
	movl	h(%rip), %eax
	testl	%eax, %eax
	jne	.L15
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	at
	.type	at, @function
at:
.LFB1:
	.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
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L23
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$64, %al
	je	.L24
	movl	h(%rip), %eax
	cmpl	%eax, -4(%rbp)
	je	.L25
	movl	w(%rip), %eax
	cmpl	%eax, -8(%rbp)
	je	.L25
	cmpl	$-1, -4(%rbp)
	je	.L25
	cmpl	$-1, -8(%rbp)
	je	.L25
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movb	$64, (%rax)
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	at
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	at
	movl	-8(%rbp), %eax
	leal	1(%rax), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	at
	movl	-8(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	at
	jmp	.L17
.L23:
	nop
	jmp	.L17
.L24:
	nop
	jmp	.L17
.L25:
	nop
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	at, .-at
	.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:
