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

```c
#include <stdio.h>
#include <string.h>

int h,w,n;
char raw_map[30][32];
char map[30][32];
char del_flag[30][32];

int main(void) {
	int i,j;
	int a,b,c;
	int isyes;
	char temp;
	int exist,deleted;
	int prev;
	scanf("%d%d%d",&h,&w,&n);
	for(i=0;i<h;i++)scanf("%s",raw_map[i]);
	isyes=0;
	for(i=0;i<h && !isyes;i++) {
		for(j=1;j<w && !isyes;j++) {
			memcpy(map,raw_map,sizeof(map));
			temp=map[i][j];
			map[i][j]=map[i][j-1];
			map[i][j-1]=temp;
			while(1) {
				for(a=h-1;a>0;a--) {
					for(b=0;b<w;b++) {
						if(map[a][b]=='.') {
							for(c=a;c>=0;c--) {
								if(map[c][b]!='.') {
									map[a][b]=map[c][b];
									map[c][b]='.';
									break;
								}
							}
						}
					}
				}
				memset(del_flag,0,sizeof(del_flag));
				for(a=0;a<h;a++) {
					prev=0;
					for(b=0;b<w;b++) {
						if(map[a][b]!=map[a][prev]) {
							if(b-prev>=n) {
								for(c=prev;c<b;c++)del_flag[a][c]=1;
							}
							prev=b;
						}
					}
					if(w-prev>=n) {
						for(c=prev;c<w;c++)del_flag[a][c]=1;
					}
				}
				for(b=0;b<w;b++) {
					prev=0;
					for(a=0;a<h;a++) {
						if(map[a][b]!=map[prev][b]) {
							if(a-prev>=n) {
								for(c=prev;c<a;c++)del_flag[c][b]=1;
							}
							prev=a;
						}
					}
					if(h-prev>=n) {
						for(c=prev;c<h;c++)del_flag[c][b]=1;
					}
				}
				exist=deleted=0;
				for(a=0;a<h;a++) {
					for(b=0;b<w;b++) {
						if(map[a][b]!='.') {
							exist=1;
							if(del_flag[a][b]) {
								map[a][b]='.';
								deleted=1;
							}
						}
					}
				}
				if(!deleted) {
					if(!exist)isyes=1;
					break;
				}
			}
		}
	}
	puts(isyes?"YES":"NO");
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	h
	.bss
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	raw_map
	.align 32
	.type	raw_map, @object
	.size	raw_map, 960
raw_map:
	.zero	960
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 960
map:
	.zero	960
	.globl	del_flag
	.align 32
	.type	del_flag, @object
	.size	del_flag, 960
del_flag:
	.zero	960
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"YES"
.LC3:
	.string	"NO"
	.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	$48, %rsp
	leaq	n(%rip), %rax
	movq	%rax, %rcx
	leaq	w(%rip), %rax
	movq	%rax, %rdx
	leaq	h(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L2
.L3:
	movl	-36(%rbp), %eax
	cltq
	salq	$5, %rax
	movq	%rax, %rdx
	leaq	raw_map(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -36(%rbp)
.L2:
	movl	h(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L3
	movl	$0, -16(%rbp)
	movl	$0, -36(%rbp)
	jmp	.L4
.L48:
	movl	$1, -32(%rbp)
	jmp	.L5
.L46:
	leaq	map(%rip), %rax
	leaq	raw_map(%rip), %rdx
	movl	$120, %ecx
	movq	%rax, %rdi
	movq	%rdx, %rsi
	rep movsq
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -37(%rbp)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movl	-32(%rbp), %edx
	movslq	%edx, %rcx
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	salq	$5, %rdx
	addq	%rdx, %rcx
	leaq	map(%rip), %rdx
	addq	%rcx, %rdx
	movb	%al, (%rdx)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rax, %rdx
	movzbl	-37(%rbp), %eax
	movb	%al, (%rdx)
.L44:
	movl	h(%rip), %eax
	subl	$1, %eax
	movl	%eax, -28(%rbp)
	jmp	.L6
.L13:
	movl	$0, -24(%rbp)
	jmp	.L7
.L12:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	jne	.L8
	movl	-28(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L9
.L11:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	je	.L10
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	salq	$5, %rdx
	addq	%rdx, %rcx
	leaq	map(%rip), %rdx
	addq	%rcx, %rdx
	movb	%al, (%rdx)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movb	$46, (%rax)
	jmp	.L8
.L10:
	subl	$1, -20(%rbp)
.L9:
	cmpl	$0, -20(%rbp)
	jns	.L11
.L8:
	addl	$1, -24(%rbp)
.L7:
	movl	w(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L12
	subl	$1, -28(%rbp)
.L6:
	cmpl	$0, -28(%rbp)
	jg	.L13
	movl	$960, %edx
	movl	$0, %esi
	leaq	del_flag(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -28(%rbp)
	jmp	.L14
.L24:
	movl	$0, -4(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L15
.L20:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rcx
	leaq	map(%rip), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L16
	movl	-24(%rbp), %eax
	subl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L17
	movl	-4(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L18
.L19:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	del_flag(%rip), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	addl	$1, -20(%rbp)
.L18:
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L19
.L17:
	movl	-24(%rbp), %eax
	movl	%eax, -4(%rbp)
.L16:
	addl	$1, -24(%rbp)
.L15:
	movl	w(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L20
	movl	w(%rip), %eax
	subl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L21
	movl	-4(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L22
.L23:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	del_flag(%rip), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	addl	$1, -20(%rbp)
.L22:
	movl	w(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L23
.L21:
	addl	$1, -28(%rbp)
.L14:
	movl	h(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L24
	movl	$0, -24(%rbp)
	jmp	.L25
.L35:
	movl	$0, -4(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L26
.L31:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rcx
	leaq	map(%rip), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L27
	movl	-28(%rbp), %eax
	subl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L28
	movl	-4(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L29
.L30:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	del_flag(%rip), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	addl	$1, -20(%rbp)
.L29:
	movl	-20(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L30
.L28:
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
.L27:
	addl	$1, -28(%rbp)
.L26:
	movl	h(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L31
	movl	h(%rip), %eax
	subl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L32
	movl	-4(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L33
.L34:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	del_flag(%rip), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	addl	$1, -20(%rbp)
.L33:
	movl	h(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L34
.L32:
	addl	$1, -24(%rbp)
.L25:
	movl	w(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L35
	movl	$0, -8(%rbp)
	movl	-8(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L36
.L40:
	movl	$0, -24(%rbp)
	jmp	.L37
.L39:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	je	.L38
	movl	$1, -12(%rbp)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	del_flag(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L38
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movb	$46, (%rax)
	movl	$1, -8(%rbp)
.L38:
	addl	$1, -24(%rbp)
.L37:
	movl	w(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L39
	addl	$1, -28(%rbp)
.L36:
	movl	h(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L40
	cmpl	$0, -8(%rbp)
	jne	.L44
	cmpl	$0, -12(%rbp)
	jne	.L52
	movl	$1, -16(%rbp)
.L52:
	nop
	addl	$1, -32(%rbp)
.L5:
	movl	w(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jge	.L45
	cmpl	$0, -16(%rbp)
	je	.L46
.L45:
	addl	$1, -36(%rbp)
.L4:
	movl	h(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jge	.L47
	cmpl	$0, -16(%rbp)
	je	.L48
.L47:
	cmpl	$0, -16(%rbp)
	je	.L49
	leaq	.LC2(%rip), %rax
	jmp	.L50
.L49:
	leaq	.LC3(%rip), %rax
.L50:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	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	"YES"
.LC1:
	.string	"NO"
.LC2:
	.string	"%d%d%d"
.LC3:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	n(%rip), %rcx
	xorl	%eax, %eax
	leaq	w(%rip), %rdx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	h(%rip), %rsi
	leaq	.LC2(%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	$88, %rsp
	.cfi_def_cfa_offset 144
	call	__isoc99_scanf@PLT
	movl	h(%rip), %eax
	testl	%eax, %eax
	jle	.L33
	leaq	raw_map(%rip), %rbp
	xorl	%ebx, %ebx
	leaq	.LC3(%rip), %r13
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	h(%rip), %r12d
	addq	$32, %rbp
	cmpl	%ebx, %r12d
	jg	.L3
	testl	%r12d, %r12d
	jle	.L33
	leal	-1(%r12), %eax
	leaq	map(%rip), %r14
	movl	w(%rip), %ebx
	movl	$0, 60(%rsp)
	movq	%rax, %rcx
	movl	%eax, 24(%rsp)
	leaq	32(%r14), %rax
	salq	$5, %rcx
	leal	-1(%rbx), %ebp
	movq	%r14, 64(%rsp)
	addq	%rcx, %rax
	movq	%rcx, 40(%rsp)
	movq	%rax, 16(%rsp)
	leaq	33(%rbp,%rcx), %rax
	movl	%ebp, 28(%rsp)
	movq	%rax, 32(%rsp)
.L4:
	addl	$1, 60(%rsp)
	cmpl	$1, %ebx
	jle	.L66
	leal	-2(%rbx), %eax
	movl	n(%rip), %r13d
	leaq	del_flag(%rip), %r15
	movq	%rax, 72(%rsp)
	movq	64(%rsp), %rax
	movq	%rax, 48(%rsp)
.L30:
	movl	$120, %ecx
	leaq	map(%rip), %rdi
	leaq	raw_map(%rip), %rsi
	rep movsq
	movq	48(%rsp), %rcx
	movzbl	1(%rcx), %eax
	movzbl	(%rcx), %edx
	movb	%al, (%rcx)
	movb	%dl, 1(%rcx)
.L28:
	movl	24(%rsp), %eax
	movq	40(%rsp), %r9
	movl	%eax, %r8d
	testl	%eax, %eax
	je	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	(%r9,%r14), %rcx
	xorl	%esi, %esi
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, %esi
	addq	$1, %rcx
	cmpl	%esi, %ebx
	je	.L68
.L10:
	cmpb	$46, (%rcx)
	jne	.L8
	movq	%rcx, %rdx
	movl	%r8d, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	subl	$1, %eax
	jb	.L8
	movzbl	-32(%rdx), %edi
	subq	$32, %rdx
	cmpb	$46, %dil
	je	.L7
	cltq
	movslq	%esi, %rdx
	addl	$1, %esi
	movb	%dil, (%rcx)
	salq	$5, %rax
	addq	$1, %rcx
	addq	%r14, %rax
	movb	$46, (%rax,%rdx)
	cmpl	%esi, %ebx
	jne	.L10
	.p2align 4,,10
	.p2align 3
.L68:
	subq	$32, %r9
	subl	$1, %r8d
	jne	.L5
.L6:
	movl	$120, %ecx
	movq	%r15, %rdi
	xorl	%eax, %eax
	movl	%ebx, 12(%rsp)
	rep stosq
	xorl	%r10d, %r10d
	movl	%r12d, 56(%rsp)
	movq	%r14, %r9
	movq	%rbp, %r12
	movq	%r10, %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r13d, %ecx
	movq	%rbp, (%rsp)
	movzbl	(%r9), %esi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movq	%r9, %r13
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L38:
	movl	%ebp, %esi
	movl	%ebx, %eax
.L12:
	leaq	1(%rbx), %rdx
	cmpq	%rbx, %r12
	je	.L69
.L39:
	movq	%rdx, %rbx
.L13:
	movzbl	0(%r13,%rbx), %ebp
	cmpb	%sil, %bpl
	je	.L12
	movl	%ebx, %edx
	subl	%eax, %edx
	cmpl	%edx, %ecx
	jg	.L38
	cmpl	%ebx, %eax
	jge	.L38
	movslq	%eax, %rdi
	subl	$1, %edx
	addq	(%rsp), %rdi
	movl	$1, %esi
	addq	$1, %rdx
	addq	%r15, %rdi
	movl	%ecx, 8(%rsp)
	call	memset@PLT
	movl	8(%rsp), %ecx
	movl	%ebp, %esi
	movl	%ebx, %eax
	leaq	1(%rbx), %rdx
	cmpq	%rbx, %r12
	jne	.L39
	.p2align 4,,10
	.p2align 3
.L69:
	movl	12(%rsp), %edx
	movq	%r13, %r9
	movq	(%rsp), %rbp
	movl	%ecx, %r13d
	subl	%eax, %edx
	cmpl	%edx, %ecx
	jle	.L14
.L16:
	addq	$32, %rbp
	addq	$32, %r9
	cmpq	16(%rsp), %r9
	jne	.L11
	movq	%r12, %rbp
	movl	12(%rsp), %ebx
	movl	56(%rsp), %r12d
	movq	%r14, %r10
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L15:
	leaq	32+del_flag(%rip), %rsi
	movzbl	(%r10), %eax
	movq	%r10, %rcx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	leaq	(%rsi,%r9), %r11
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L41:
	movl	%esi, %eax
	movslq	%edx, %r8
.L17:
	addl	$1, %edx
	addq	$32, %rcx
	cmpl	%edx, %r12d
	je	.L70
.L19:
	movzbl	(%rcx), %esi
	cmpb	%al, %sil
	je	.L17
	movl	%edx, %edi
	subl	%r8d, %edi
	cmpl	%edi, %r13d
	jg	.L41
	cmpl	%r8d, %edx
	jle	.L41
	movq	%r8, %rax
	subl	$1, %edi
	salq	$5, %rax
	addq	%r8, %rdi
	addq	%r9, %rax
	salq	$5, %rdi
	addq	%r15, %rax
	addq	%r11, %rdi
	.p2align 4,,10
	.p2align 3
.L18:
	movb	$1, (%rax)
	addq	$32, %rax
	cmpq	%rdi, %rax
	jne	.L18
	jmp	.L41
.L33:
	leaq	.LC1(%rip), %rdi
.L29:
	call	puts@PLT
	addq	$88, %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
	.p2align 4,,10
	.p2align 3
.L70:
	.cfi_restore_state
	movl	%r12d, %eax
	subl	%r8d, %eax
	cmpl	%eax, %r13d
	jle	.L20
.L22:
	leaq	1(%r9), %rdx
	addq	$1, %r10
	cmpq	%r9, %rbp
	je	.L71
.L42:
	movq	%rdx, %r9
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L20:
	cmpl	%r8d, %r12d
	jle	.L22
	movl	24(%rsp), %edx
	movslq	%r8d, %rcx
	movq	%rcx, %rax
	subl	%r8d, %edx
	salq	$5, %rax
	addq	%rcx, %rdx
	leaq	32+del_flag(%rip), %rcx
	addq	%r9, %rax
	salq	$5, %rdx
	addq	%r9, %rcx
	addq	%r15, %rax
	addq	%rcx, %rdx
	.p2align 4,,10
	.p2align 3
.L23:
	movb	$1, (%rax)
	addq	$32, %rax
	cmpq	%rdx, %rax
	jne	.L23
	leaq	1(%r9), %rdx
	addq	$1, %r10
	cmpq	%r9, %rbp
	jne	.L42
.L71:
	movq	32(%rsp), %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L24:
	movq	%rdx, %rax
	subq	%rbp, %rax
	subq	$1, %rax
	.p2align 4,,10
	.p2align 3
.L26:
	cmpb	$46, (%r14,%rax)
	je	.L25
	cmpb	$0, (%r15,%rax)
	movl	$1, %ecx
	je	.L25
	movb	$46, (%r14,%rax)
	movl	$1, %esi
.L25:
	addq	$1, %rax
	cmpq	%rdx, %rax
	jne	.L26
	leaq	32(%rax), %rdx
	cmpq	%rdx, %rdi
	jne	.L24
	testl	%esi, %esi
	jne	.L28
	testl	%ecx, %ecx
	je	.L44
	movq	72(%rsp), %rax
	movq	64(%rsp), %rsi
	addq	$1, 48(%rsp)
	movq	48(%rsp), %rcx
	leaq	1(%rax,%rsi), %rax
	cmpq	%rax, %rcx
	jne	.L30
.L66:
	cmpl	60(%rsp), %r12d
	jle	.L33
	addq	$32, 64(%rsp)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	12(%rsp), %eax
	jge	.L16
	movl	28(%rsp), %edx
	movslq	%eax, %rdi
	movl	$1, %esi
	movq	%r9, (%rsp)
	addq	%rbp, %rdi
	subl	%eax, %edx
	addq	%r15, %rdi
	addq	$1, %rdx
	call	memset@PLT
	movq	(%rsp), %r9
	jmp	.L16
.L44:
	leaq	.LC0(%rip), %rdi
	jmp	.L29
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	del_flag
	.bss
	.align 32
	.type	del_flag, @object
	.size	del_flag, 960
del_flag:
	.zero	960
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 960
map:
	.zero	960
	.globl	raw_map
	.align 32
	.type	raw_map, @object
	.size	raw_map, 960
raw_map:
	.zero	960
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"YES"
.LC1:
	.string	"NO"
.LC2:
	.string	"%d%d%d"
.LC3:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	n(%rip), %rcx
	xorl	%eax, %eax
	leaq	w(%rip), %rdx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	h(%rip), %rsi
	leaq	.LC2(%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	$88, %rsp
	.cfi_def_cfa_offset 144
	call	__isoc99_scanf@PLT
	movl	h(%rip), %eax
	testl	%eax, %eax
	jle	.L33
	leaq	raw_map(%rip), %rbp
	xorl	%ebx, %ebx
	leaq	.LC3(%rip), %r13
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	h(%rip), %r12d
	addq	$32, %rbp
	cmpl	%ebx, %r12d
	jg	.L3
	testl	%r12d, %r12d
	jle	.L33
	leal	-1(%r12), %eax
	leaq	map(%rip), %r14
	movl	w(%rip), %ebx
	movl	$0, 60(%rsp)
	movq	%rax, %rcx
	movl	%eax, 24(%rsp)
	leaq	32(%r14), %rax
	salq	$5, %rcx
	leal	-1(%rbx), %ebp
	movq	%r14, 64(%rsp)
	addq	%rcx, %rax
	movq	%rcx, 40(%rsp)
	movq	%rax, 16(%rsp)
	leaq	33(%rbp,%rcx), %rax
	movl	%ebp, 28(%rsp)
	movq	%rax, 32(%rsp)
.L4:
	addl	$1, 60(%rsp)
	cmpl	$1, %ebx
	jle	.L66
	leal	-2(%rbx), %eax
	movl	n(%rip), %r13d
	leaq	del_flag(%rip), %r15
	movq	%rax, 72(%rsp)
	movq	64(%rsp), %rax
	movq	%rax, 48(%rsp)
.L30:
	movl	$120, %ecx
	leaq	map(%rip), %rdi
	leaq	raw_map(%rip), %rsi
	rep movsq
	movq	48(%rsp), %rcx
	movzbl	1(%rcx), %eax
	movzbl	(%rcx), %edx
	movb	%al, (%rcx)
	movb	%dl, 1(%rcx)
.L28:
	movl	24(%rsp), %eax
	movq	40(%rsp), %r9
	movl	%eax, %r8d
	testl	%eax, %eax
	je	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	(%r9,%r14), %rcx
	xorl	%esi, %esi
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, %esi
	addq	$1, %rcx
	cmpl	%esi, %ebx
	je	.L68
.L10:
	cmpb	$46, (%rcx)
	jne	.L8
	movq	%rcx, %rdx
	movl	%r8d, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	subl	$1, %eax
	jb	.L8
	movzbl	-32(%rdx), %edi
	subq	$32, %rdx
	cmpb	$46, %dil
	je	.L7
	cltq
	movslq	%esi, %rdx
	addl	$1, %esi
	movb	%dil, (%rcx)
	salq	$5, %rax
	addq	$1, %rcx
	addq	%r14, %rax
	movb	$46, (%rax,%rdx)
	cmpl	%esi, %ebx
	jne	.L10
	.p2align 4,,10
	.p2align 3
.L68:
	subq	$32, %r9
	subl	$1, %r8d
	jne	.L5
.L6:
	movl	$120, %ecx
	movq	%r15, %rdi
	xorl	%eax, %eax
	movl	%ebx, 12(%rsp)
	rep stosq
	xorl	%r10d, %r10d
	movl	%r12d, 56(%rsp)
	movq	%r14, %r9
	movq	%rbp, %r12
	movq	%r10, %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r13d, %ecx
	movq	%rbp, (%rsp)
	movzbl	(%r9), %esi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movq	%r9, %r13
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L38:
	movl	%ebp, %esi
	movl	%ebx, %eax
.L12:
	leaq	1(%rbx), %rdx
	cmpq	%rbx, %r12
	je	.L69
.L39:
	movq	%rdx, %rbx
.L13:
	movzbl	0(%r13,%rbx), %ebp
	cmpb	%sil, %bpl
	je	.L12
	movl	%ebx, %edx
	subl	%eax, %edx
	cmpl	%edx, %ecx
	jg	.L38
	cmpl	%ebx, %eax
	jge	.L38
	movslq	%eax, %rdi
	subl	$1, %edx
	addq	(%rsp), %rdi
	movl	$1, %esi
	addq	$1, %rdx
	addq	%r15, %rdi
	movl	%ecx, 8(%rsp)
	call	memset@PLT
	movl	8(%rsp), %ecx
	movl	%ebp, %esi
	movl	%ebx, %eax
	leaq	1(%rbx), %rdx
	cmpq	%rbx, %r12
	jne	.L39
	.p2align 4,,10
	.p2align 3
.L69:
	movl	12(%rsp), %edx
	movq	%r13, %r9
	movq	(%rsp), %rbp
	movl	%ecx, %r13d
	subl	%eax, %edx
	cmpl	%edx, %ecx
	jle	.L14
.L16:
	addq	$32, %rbp
	addq	$32, %r9
	cmpq	16(%rsp), %r9
	jne	.L11
	movq	%r12, %rbp
	movl	12(%rsp), %ebx
	movl	56(%rsp), %r12d
	movq	%r14, %r10
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L15:
	leaq	32+del_flag(%rip), %rsi
	movzbl	(%r10), %eax
	movq	%r10, %rcx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	leaq	(%rsi,%r9), %r11
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L41:
	movl	%esi, %eax
	movslq	%edx, %r8
.L17:
	addl	$1, %edx
	addq	$32, %rcx
	cmpl	%edx, %r12d
	je	.L70
.L19:
	movzbl	(%rcx), %esi
	cmpb	%al, %sil
	je	.L17
	movl	%edx, %edi
	subl	%r8d, %edi
	cmpl	%edi, %r13d
	jg	.L41
	cmpl	%r8d, %edx
	jle	.L41
	movq	%r8, %rax
	subl	$1, %edi
	salq	$5, %rax
	addq	%r8, %rdi
	addq	%r9, %rax
	salq	$5, %rdi
	addq	%r15, %rax
	addq	%r11, %rdi
	.p2align 4,,10
	.p2align 3
.L18:
	movb	$1, (%rax)
	addq	$32, %rax
	cmpq	%rdi, %rax
	jne	.L18
	jmp	.L41
.L33:
	leaq	.LC1(%rip), %rdi
.L29:
	call	puts@PLT
	addq	$88, %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
	.p2align 4,,10
	.p2align 3
.L70:
	.cfi_restore_state
	movl	%r12d, %eax
	subl	%r8d, %eax
	cmpl	%eax, %r13d
	jle	.L20
.L22:
	leaq	1(%r9), %rdx
	addq	$1, %r10
	cmpq	%r9, %rbp
	je	.L71
.L42:
	movq	%rdx, %r9
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L20:
	cmpl	%r8d, %r12d
	jle	.L22
	movl	24(%rsp), %edx
	movslq	%r8d, %rcx
	movq	%rcx, %rax
	subl	%r8d, %edx
	salq	$5, %rax
	addq	%rcx, %rdx
	leaq	32+del_flag(%rip), %rcx
	addq	%r9, %rax
	salq	$5, %rdx
	addq	%r9, %rcx
	addq	%r15, %rax
	addq	%rcx, %rdx
	.p2align 4,,10
	.p2align 3
.L23:
	movb	$1, (%rax)
	addq	$32, %rax
	cmpq	%rdx, %rax
	jne	.L23
	leaq	1(%r9), %rdx
	addq	$1, %r10
	cmpq	%r9, %rbp
	jne	.L42
.L71:
	movq	32(%rsp), %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L24:
	movq	%rdx, %rax
	subq	%rbp, %rax
	subq	$1, %rax
	.p2align 4,,10
	.p2align 3
.L26:
	cmpb	$46, (%r14,%rax)
	je	.L25
	cmpb	$0, (%r15,%rax)
	movl	$1, %ecx
	je	.L25
	movb	$46, (%r14,%rax)
	movl	$1, %esi
.L25:
	addq	$1, %rax
	cmpq	%rdx, %rax
	jne	.L26
	leaq	32(%rax), %rdx
	cmpq	%rdx, %rdi
	jne	.L24
	testl	%esi, %esi
	jne	.L28
	testl	%ecx, %ecx
	je	.L44
	movq	72(%rsp), %rax
	movq	64(%rsp), %rsi
	addq	$1, 48(%rsp)
	movq	48(%rsp), %rcx
	leaq	1(%rax,%rsi), %rax
	cmpq	%rax, %rcx
	jne	.L30
.L66:
	cmpl	60(%rsp), %r12d
	jle	.L33
	addq	$32, 64(%rsp)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	12(%rsp), %eax
	jge	.L16
	movl	28(%rsp), %edx
	movslq	%eax, %rdi
	movl	$1, %esi
	movq	%r9, (%rsp)
	addq	%rbp, %rdi
	subl	%eax, %edx
	addq	%r15, %rdi
	addq	$1, %rdx
	call	memset@PLT
	movq	(%rsp), %r9
	jmp	.L16
.L44:
	leaq	.LC0(%rip), %rdi
	jmp	.L29
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	del_flag
	.bss
	.align 32
	.type	del_flag, @object
	.size	del_flag, 960
del_flag:
	.zero	960
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 960
map:
	.zero	960
	.globl	raw_map
	.align 32
	.type	raw_map, @object
	.size	raw_map, 960
raw_map:
	.zero	960
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.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>
#include <string.h>

int h,w,n;
char raw_map[30][32];
char map[30][32];
char del_flag[30][32];

int main(void) {
	int i,j;
	int a,b,c;
	int isyes;
	char temp;
	int exist,deleted;
	int prev;
	scanf("%d%d%d",&h,&w,&n);
	for(i=0;i<h;i++)scanf("%s",raw_map[i]);
	isyes=0;
	for(i=0;i<h && !isyes;i++) {
		for(j=1;j<w && !isyes;j++) {
			memcpy(map,raw_map,sizeof(map));
			temp=map[i][j];
			map[i][j]=map[i][j-1];
			map[i][j-1]=temp;
			while(1) {
				for(a=h-1;a>0;a--) {
					for(b=0;b<w;b++) {
						if(map[a][b]=='.') {
							for(c=a;c>=0;c--) {
								if(map[c][b]!='.') {
									map[a][b]=map[c][b];
									map[c][b]='.';
									break;
								}
							}
						}
					}
				}
				memset(del_flag,0,sizeof(del_flag));
				for(a=0;a<h;a++) {
					prev=0;
					for(b=0;b<w;b++) {
						if(map[a][b]!=map[a][prev]) {
							if(b-prev>=n) {
								for(c=prev;c<b;c++)del_flag[a][c]=1;
							}
							prev=b;
						}
					}
					if(w-prev>=n) {
						for(c=prev;c<w;c++)del_flag[a][c]=1;
					}
				}
				for(b=0;b<w;b++) {
					prev=0;
					for(a=0;a<h;a++) {
						if(map[a][b]!=map[prev][b]) {
							if(a-prev>=n) {
								for(c=prev;c<a;c++)del_flag[c][b]=1;
							}
							prev=a;
						}
					}
					if(h-prev>=n) {
						for(c=prev;c<h;c++)del_flag[c][b]=1;
					}
				}
				exist=deleted=0;
				for(a=0;a<h;a++) {
					for(b=0;b<w;b++) {
						if(map[a][b]!='.') {
							exist=1;
							if(del_flag[a][b]) {
								map[a][b]='.';
								deleted=1;
							}
						}
					}
				}
				if(!deleted) {
					if(!exist)isyes=1;
					break;
				}
			}
		}
	}
	puts(isyes?"YES":"NO");
	return 0;
}
4 6 3
......
..Y...
...Y..
RRYRYY
 4 6 1
......
...Y..
/..Z..
YRRRYY
 4 6 3
......
...Y..
...Y..
RRYRZ.
 4 6 3
......
...Y..
/..Y..
RRYRYY
 4 6 3
......
...Y..
...Y..
.RYRYR
 4 6 3
......
...Y..
...Z..
RRYRZ.
 4 6 3
......
...Y..
/..Z..
RRYRYY
 4 6 3
....-.
...Y..
...Y..
.RYRYR
 4 6 3
......
...Y..
/..Z..
YRRRYY
 4 6 3
....-.
...Y.-
...Y..
.RYRYR

NO
 YES
 NO
 NO
 NO
 NO
 NO
 NO
 NO
 NO

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

```c
#include <stdio.h>
#include <string.h>

int h,w,n;
char raw_map[30][32];
char map[30][32];
char del_flag[30][32];

int main(void) {
	int i,j;
	int a,b,c;
	int isyes;
	char temp;
	int exist,deleted;
	int prev;
	scanf("%d%d%d",&h,&w,&n);
	for(i=0;i<h;i++)scanf("%s",raw_map[i]);
	isyes=0;
	for(i=0;i<h && !isyes;i++) {
		for(j=1;j<w && !isyes;j++) {
			memcpy(map,raw_map,sizeof(map));
			temp=map[i][j];
			map[i][j]=map[i][j-1];
			map[i][j-1]=temp;
			while(1) {
				for(a=h-1;a>0;a--) {
					for(b=0;b<w;b++) {
						if(map[a][b]=='.') {
							for(c=a;c>=0;c--) {
								if(map[c][b]!='.') {
									map[a][b]=map[c][b];
									map[c][b]='.';
									break;
								}
							}
						}
					}
				}
				memset(del_flag,0,sizeof(del_flag));
				for(a=0;a<h;a++) {
					prev=0;
					for(b=0;b<w;b++) {
						if(map[a][b]!=map[a][prev]) {
							if(b-prev>=n) {
								for(c=prev;c<b;c++)del_flag[a][c]=1;
							}
							prev=b;
						}
					}
					if(w-prev>=n) {
						for(c=prev;c<w;c++)del_flag[a][c]=1;
					}
				}
				for(b=0;b<w;b++) {
					prev=0;
					for(a=0;a<h;a++) {
						if(map[a][b]!=map[prev][b]) {
							if(a-prev>=n) {
								for(c=prev;c<a;c++)del_flag[c][b]=1;
							}
							prev=a;
						}
					}
					if(h-prev>=n) {
						for(c=prev;c<h;c++)del_flag[c][b]=1;
					}
				}
				exist=deleted=0;
				for(a=0;a<h;a++) {
					for(b=0;b<w;b++) {
						if(map[a][b]!='.') {
							exist=1;
							if(del_flag[a][b]) {
								map[a][b]='.';
								deleted=1;
							}
						}
					}
				}
				if(!deleted) {
					if(!exist)isyes=1;
					break;
				}
			}
		}
	}
	puts(isyes?"YES":"NO");
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	h
	.bss
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	raw_map
	.align 32
	.type	raw_map, @object
	.size	raw_map, 960
raw_map:
	.zero	960
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 960
map:
	.zero	960
	.globl	del_flag
	.align 32
	.type	del_flag, @object
	.size	del_flag, 960
del_flag:
	.zero	960
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"YES"
.LC3:
	.string	"NO"
	.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	$48, %rsp
	leaq	n(%rip), %rax
	movq	%rax, %rcx
	leaq	w(%rip), %rax
	movq	%rax, %rdx
	leaq	h(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L2
.L3:
	movl	-36(%rbp), %eax
	cltq
	salq	$5, %rax
	movq	%rax, %rdx
	leaq	raw_map(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -36(%rbp)
.L2:
	movl	h(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L3
	movl	$0, -16(%rbp)
	movl	$0, -36(%rbp)
	jmp	.L4
.L48:
	movl	$1, -32(%rbp)
	jmp	.L5
.L46:
	leaq	map(%rip), %rax
	leaq	raw_map(%rip), %rdx
	movl	$120, %ecx
	movq	%rax, %rdi
	movq	%rdx, %rsi
	rep movsq
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -37(%rbp)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movl	-32(%rbp), %edx
	movslq	%edx, %rcx
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	salq	$5, %rdx
	addq	%rdx, %rcx
	leaq	map(%rip), %rdx
	addq	%rcx, %rdx
	movb	%al, (%rdx)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rax, %rdx
	movzbl	-37(%rbp), %eax
	movb	%al, (%rdx)
.L44:
	movl	h(%rip), %eax
	subl	$1, %eax
	movl	%eax, -28(%rbp)
	jmp	.L6
.L13:
	movl	$0, -24(%rbp)
	jmp	.L7
.L12:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	jne	.L8
	movl	-28(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L9
.L11:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	je	.L10
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	salq	$5, %rdx
	addq	%rdx, %rcx
	leaq	map(%rip), %rdx
	addq	%rcx, %rdx
	movb	%al, (%rdx)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movb	$46, (%rax)
	jmp	.L8
.L10:
	subl	$1, -20(%rbp)
.L9:
	cmpl	$0, -20(%rbp)
	jns	.L11
.L8:
	addl	$1, -24(%rbp)
.L7:
	movl	w(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L12
	subl	$1, -28(%rbp)
.L6:
	cmpl	$0, -28(%rbp)
	jg	.L13
	movl	$960, %edx
	movl	$0, %esi
	leaq	del_flag(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -28(%rbp)
	jmp	.L14
.L24:
	movl	$0, -4(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L15
.L20:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rcx
	leaq	map(%rip), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L16
	movl	-24(%rbp), %eax
	subl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L17
	movl	-4(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L18
.L19:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	del_flag(%rip), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	addl	$1, -20(%rbp)
.L18:
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L19
.L17:
	movl	-24(%rbp), %eax
	movl	%eax, -4(%rbp)
.L16:
	addl	$1, -24(%rbp)
.L15:
	movl	w(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L20
	movl	w(%rip), %eax
	subl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L21
	movl	-4(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L22
.L23:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	del_flag(%rip), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	addl	$1, -20(%rbp)
.L22:
	movl	w(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L23
.L21:
	addl	$1, -28(%rbp)
.L14:
	movl	h(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L24
	movl	$0, -24(%rbp)
	jmp	.L25
.L35:
	movl	$0, -4(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L26
.L31:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rcx
	leaq	map(%rip), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L27
	movl	-28(%rbp), %eax
	subl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L28
	movl	-4(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L29
.L30:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	del_flag(%rip), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	addl	$1, -20(%rbp)
.L29:
	movl	-20(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L30
.L28:
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
.L27:
	addl	$1, -28(%rbp)
.L26:
	movl	h(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L31
	movl	h(%rip), %eax
	subl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L32
	movl	-4(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L33
.L34:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	del_flag(%rip), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	addl	$1, -20(%rbp)
.L33:
	movl	h(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L34
.L32:
	addl	$1, -24(%rbp)
.L25:
	movl	w(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L35
	movl	$0, -8(%rbp)
	movl	-8(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L36
.L40:
	movl	$0, -24(%rbp)
	jmp	.L37
.L39:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	je	.L38
	movl	$1, -12(%rbp)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	del_flag(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L38
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movb	$46, (%rax)
	movl	$1, -8(%rbp)
.L38:
	addl	$1, -24(%rbp)
.L37:
	movl	w(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L39
	addl	$1, -28(%rbp)
.L36:
	movl	h(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L40
	cmpl	$0, -8(%rbp)
	jne	.L44
	cmpl	$0, -12(%rbp)
	jne	.L52
	movl	$1, -16(%rbp)
.L52:
	nop
	addl	$1, -32(%rbp)
.L5:
	movl	w(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jge	.L45
	cmpl	$0, -16(%rbp)
	je	.L46
.L45:
	addl	$1, -36(%rbp)
.L4:
	movl	h(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jge	.L47
	cmpl	$0, -16(%rbp)
	je	.L48
.L47:
	cmpl	$0, -16(%rbp)
	je	.L49
	leaq	.LC2(%rip), %rax
	jmp	.L50
.L49:
	leaq	.LC3(%rip), %rax
.L50:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	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	h
	.bss
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	raw_map
	.align 32
	.type	raw_map, @object
	.size	raw_map, 960
raw_map:
	.zero	960
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 960
map:
	.zero	960
	.globl	del_flag
	.align 32
	.type	del_flag, @object
	.size	del_flag, 960
del_flag:
	.zero	960
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"YES"
.LC3:
	.string	"NO"
	.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	$48, %rsp
	leaq	n(%rip), %rax
	movq	%rax, %rcx
	leaq	w(%rip), %rax
	movq	%rax, %rdx
	leaq	h(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L2
.L3:
	movl	-36(%rbp), %eax
	cltq
	salq	$5, %rax
	movq	%rax, %rdx
	leaq	raw_map(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -36(%rbp)
.L2:
	movl	h(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L3
	movl	$0, -16(%rbp)
	movl	$0, -36(%rbp)
	jmp	.L4
.L48:
	movl	$1, -32(%rbp)
	jmp	.L5
.L46:
	leaq	map(%rip), %rax
	leaq	raw_map(%rip), %rdx
	movl	$120, %ecx
	movq	%rax, %rdi
	movq	%rdx, %rsi
	rep movsq
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -37(%rbp)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movl	-32(%rbp), %edx
	movslq	%edx, %rcx
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	salq	$5, %rdx
	addq	%rdx, %rcx
	leaq	map(%rip), %rdx
	addq	%rcx, %rdx
	movb	%al, (%rdx)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rax, %rdx
	movzbl	-37(%rbp), %eax
	movb	%al, (%rdx)
.L44:
	movl	h(%rip), %eax
	subl	$1, %eax
	movl	%eax, -28(%rbp)
	jmp	.L6
.L13:
	movl	$0, -24(%rbp)
	jmp	.L7
.L12:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	jne	.L8
	movl	-28(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L9
.L11:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	je	.L10
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	salq	$5, %rdx
	addq	%rdx, %rcx
	leaq	map(%rip), %rdx
	addq	%rcx, %rdx
	movb	%al, (%rdx)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movb	$46, (%rax)
	jmp	.L8
.L10:
	subl	$1, -20(%rbp)
.L9:
	cmpl	$0, -20(%rbp)
	jns	.L11
.L8:
	addl	$1, -24(%rbp)
.L7:
	movl	w(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L12
	subl	$1, -28(%rbp)
.L6:
	cmpl	$0, -28(%rbp)
	jg	.L13
	movl	$960, %edx
	movl	$0, %esi
	leaq	del_flag(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -28(%rbp)
	jmp	.L14
.L24:
	movl	$0, -4(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L15
.L20:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rcx
	leaq	map(%rip), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L16
	movl	-24(%rbp), %eax
	subl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L17
	movl	-4(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L18
.L19:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	del_flag(%rip), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	addl	$1, -20(%rbp)
.L18:
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L19
.L17:
	movl	-24(%rbp), %eax
	movl	%eax, -4(%rbp)
.L16:
	addl	$1, -24(%rbp)
.L15:
	movl	w(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L20
	movl	w(%rip), %eax
	subl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L21
	movl	-4(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L22
.L23:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	del_flag(%rip), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	addl	$1, -20(%rbp)
.L22:
	movl	w(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L23
.L21:
	addl	$1, -28(%rbp)
.L14:
	movl	h(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L24
	movl	$0, -24(%rbp)
	jmp	.L25
.L35:
	movl	$0, -4(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L26
.L31:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rcx
	leaq	map(%rip), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L27
	movl	-28(%rbp), %eax
	subl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L28
	movl	-4(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L29
.L30:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	del_flag(%rip), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	addl	$1, -20(%rbp)
.L29:
	movl	-20(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L30
.L28:
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
.L27:
	addl	$1, -28(%rbp)
.L26:
	movl	h(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L31
	movl	h(%rip), %eax
	subl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L32
	movl	-4(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L33
.L34:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	del_flag(%rip), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	addl	$1, -20(%rbp)
.L33:
	movl	h(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L34
.L32:
	addl	$1, -24(%rbp)
.L25:
	movl	w(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L35
	movl	$0, -8(%rbp)
	movl	-8(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L36
.L40:
	movl	$0, -24(%rbp)
	jmp	.L37
.L39:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	je	.L38
	movl	$1, -12(%rbp)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	del_flag(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L38
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$5, %rax
	addq	%rax, %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movb	$46, (%rax)
	movl	$1, -8(%rbp)
.L38:
	addl	$1, -24(%rbp)
.L37:
	movl	w(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L39
	addl	$1, -28(%rbp)
.L36:
	movl	h(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L40
	cmpl	$0, -8(%rbp)
	jne	.L44
	cmpl	$0, -12(%rbp)
	jne	.L52
	movl	$1, -16(%rbp)
.L52:
	nop
	addl	$1, -32(%rbp)
.L5:
	movl	w(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jge	.L45
	cmpl	$0, -16(%rbp)
	je	.L46
.L45:
	addl	$1, -36(%rbp)
.L4:
	movl	h(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jge	.L47
	cmpl	$0, -16(%rbp)
	je	.L48
.L47:
	cmpl	$0, -16(%rbp)
	je	.L49
	leaq	.LC2(%rip), %rax
	jmp	.L50
.L49:
	leaq	.LC3(%rip), %rax
.L50:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	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:
