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

```c
//#define DEBUG

int Nsets, Ncodes; int mapW, mapH;
int tankX, tankY, tankD;//the position and the direction of the tank
char map[20][20]; char code;
void init_map(); void print_map(); void step(); void move(int); void shoot();

int main(){
	int i;
	scanf("%d", &Nsets);
	while(Nsets--){
		init_map();
			#ifdef DEBUG
			printf("map print test.\n");
			print_map();
			#endif
		scanf("%d", &Ncodes);
		for(i = 0; i < Ncodes; i++)step( scanf(" %c", &code) );
		print_map();
		if(Nsets)printf("\n");
	}
	return 0;
}

void step(){
	int i;
	char move_symbol[] = "UDLR";
	for(i = 0; move_symbol[i]; i++){
		if(move_symbol[i] == code){
			move(i);
			return;
		}
	}
	shoot();
}
void move(int d){
		#ifdef DEBUG
		printf("move(%d) is called.\n", d);
		#endif
	int moveX[] = {0,0,-1,1}; int moveY[] = {-1,1,0,0};
	int newX = tankX + moveX[d], newY = tankY + moveY[d];
	char tank_symbol[] = "^v<>";
	//is leagal move?
	if( (0 <= newX && newX < mapW) && (0 <= newY && newY < mapH) &&
	map[newX][newY] == '.'){
		//move
		map[tankX][tankY] = '.';
		tankX = newX, tankY = newY;
	}
	tankD = d;
	map[tankX][tankY] = tank_symbol[tankD];
}
void shoot(){
	int moveX[] = {0,0,-1,1}; int moveY[] = {-1,1,0,0};
	int x = tankX + moveX[tankD], y = tankY + moveY[tankD];
	while(0 <= x && x < mapW && 0 <= y && y < mapH){
		if(map[x][y] == '*'){
			map[x][y] = '.';
			break;
		}else if(map[x][y] == '#'){
			break;
		}
		x += moveX[tankD], y += moveY[tankD];
	}
}

void init_map(){
	int i, j, k;
	char tank_symbol[] = "^v<>";
	scanf("%d %d", &mapH, &mapW);
	for(j = 0; j < mapH; j++)for(i = 0; i < mapW; i++){
		scanf(" %c", &map[i][j]);
		for(k = 0; tank_symbol[k]; k++)if(map[i][j] == tank_symbol[k])tankX = i, tankY = j, tankD = k;
	}
}
void print_map(){
	int i, j;
	for(j = 0; j < mapH; j++){
		for(i = 0; i < mapW; i++)printf("%c", map[i][j]);
		printf("\n");
	}
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	Nsets
	.bss
	.align 4
	.type	Nsets, @object
	.size	Nsets, 4
Nsets:
	.zero	4
	.globl	Ncodes
	.align 4
	.type	Ncodes, @object
	.size	Ncodes, 4
Ncodes:
	.zero	4
	.globl	mapW
	.align 4
	.type	mapW, @object
	.size	mapW, 4
mapW:
	.zero	4
	.globl	mapH
	.align 4
	.type	mapH, @object
	.size	mapH, 4
mapH:
	.zero	4
	.globl	tankX
	.align 4
	.type	tankX, @object
	.size	tankX, 4
tankX:
	.zero	4
	.globl	tankY
	.align 4
	.type	tankY, @object
	.size	tankY, 4
tankY:
	.zero	4
	.globl	tankD
	.align 4
	.type	tankD, @object
	.size	tankD, 4
tankD:
	.zero	4
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 400
map:
	.zero	400
	.globl	code
	.type	code, @object
	.size	code, 1
code:
	.zero	1
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %c"
	.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	$16, %rsp
	leaq	Nsets(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L2
.L5:
	movl	$0, %eax
	call	init_map
	leaq	Ncodes(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	$0, -4(%rbp)
	jmp	.L3
.L4:
	leaq	code(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	%eax, %edi
	movl	$0, %eax
	call	step
	addl	$1, -4(%rbp)
.L3:
	movl	Ncodes(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L4
	movl	$0, %eax
	call	print_map
	movl	Nsets(%rip), %eax
	testl	%eax, %eax
	je	.L2
	movl	$10, %edi
	call	putchar@PLT
.L2:
	movl	Nsets(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, Nsets(%rip)
	testl	%eax, %eax
	jne	.L5
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	step
	.type	step, @function
step:
.LFB1:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1380729941, -13(%rbp)
	movb	$0, -9(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L8
.L11:
	movl	-20(%rbp), %eax
	cltq
	movzbl	-13(%rbp,%rax), %edx
	movzbl	code(%rip), %eax
	cmpb	%al, %dl
	jne	.L9
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	move
	jmp	.L7
.L9:
	addl	$1, -20(%rbp)
.L8:
	movl	-20(%rbp), %eax
	cltq
	movzbl	-13(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L11
	movl	$0, %eax
	call	shoot
.L7:
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	step, .-step
	.globl	move
	.type	move, @function
move:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movl	%edi, -68(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$-1, -40(%rbp)
	movl	$1, -36(%rbp)
	movl	$-1, -32(%rbp)
	movl	$1, -28(%rbp)
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	-68(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	tankX(%rip), %eax
	addl	%edx, %eax
	movl	%eax, -56(%rbp)
	movl	-68(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %edx
	movl	tankY(%rip), %eax
	addl	%edx, %eax
	movl	%eax, -52(%rbp)
	movl	$1044149854, -13(%rbp)
	movb	$0, -9(%rbp)
	cmpl	$0, -56(%rbp)
	js	.L14
	movl	mapW(%rip), %eax
	cmpl	%eax, -56(%rbp)
	jge	.L14
	cmpl	$0, -52(%rbp)
	js	.L14
	movl	mapH(%rip), %eax
	cmpl	%eax, -52(%rbp)
	jge	.L14
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	jne	.L14
	movl	tankX(%rip), %eax
	movl	tankY(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movb	$46, (%rax)
	movl	-56(%rbp), %eax
	movl	%eax, tankX(%rip)
	movl	-52(%rbp), %eax
	movl	%eax, tankY(%rip)
.L14:
	movl	-68(%rbp), %eax
	movl	%eax, tankD(%rip)
	movl	tankD(%rip), %eax
	movl	tankX(%rip), %ecx
	movl	tankY(%rip), %esi
	cltq
	movzbl	-13(%rbp,%rax), %edx
	movslq	%esi, %rsi
	movslq	%ecx, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	leaq	(%rax,%rsi), %rcx
	leaq	map(%rip), %rax
	addq	%rcx, %rax
	movb	%dl, (%rax)
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	move, .-move
	.globl	shoot
	.type	shoot, @function
shoot:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$-1, -40(%rbp)
	movl	$1, -36(%rbp)
	movl	$-1, -32(%rbp)
	movl	$1, -28(%rbp)
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	tankD(%rip), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	tankX(%rip), %eax
	addl	%edx, %eax
	movl	%eax, -56(%rbp)
	movl	tankD(%rip), %eax
	cltq
	movl	-32(%rbp,%rax,4), %edx
	movl	tankY(%rip), %eax
	addl	%edx, %eax
	movl	%eax, -52(%rbp)
	jmp	.L17
.L21:
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$42, %al
	jne	.L18
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movb	$46, (%rax)
	jmp	.L19
.L18:
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L23
	movl	tankD(%rip), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	addl	%eax, -56(%rbp)
	movl	tankD(%rip), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	addl	%eax, -52(%rbp)
.L17:
	cmpl	$0, -56(%rbp)
	js	.L24
	movl	mapW(%rip), %eax
	cmpl	%eax, -56(%rbp)
	jge	.L24
	cmpl	$0, -52(%rbp)
	js	.L24
	movl	mapH(%rip), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L21
	jmp	.L24
.L23:
	nop
.L19:
.L24:
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	shoot, .-shoot
	.section	.rodata
.LC2:
	.string	"%d %d"
	.text
	.globl	init_map
	.type	init_map, @function
init_map:
.LFB4:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1044149854, -13(%rbp)
	movb	$0, -9(%rbp)
	leaq	mapW(%rip), %rax
	movq	%rax, %rdx
	leaq	mapH(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	$0, -24(%rbp)
	jmp	.L26
.L32:
	movl	$0, -28(%rbp)
	jmp	.L27
.L31:
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	$0, -20(%rbp)
	jmp	.L28
.L30:
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	movzbl	-13(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L29
	movl	-28(%rbp), %eax
	movl	%eax, tankX(%rip)
	movl	-24(%rbp), %eax
	movl	%eax, tankY(%rip)
	movl	-20(%rbp), %eax
	movl	%eax, tankD(%rip)
.L29:
	addl	$1, -20(%rbp)
.L28:
	movl	-20(%rbp), %eax
	cltq
	movzbl	-13(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L30
	addl	$1, -28(%rbp)
.L27:
	movl	mapW(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L31
	addl	$1, -24(%rbp)
.L26:
	movl	mapH(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L32
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	init_map, .-init_map
	.globl	print_map
	.type	print_map, @function
print_map:
.LFB5:
	.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	$0, -4(%rbp)
	jmp	.L35
.L38:
	movl	$0, -8(%rbp)
	jmp	.L36
.L37:
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -8(%rbp)
.L36:
	movl	mapW(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L37
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -4(%rbp)
.L35:
	movl	mapH(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L38
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	print_map, .-print_map
	.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	move
	.type	move, @function
move:
.LFB2:
	.cfi_startproc
	endbr64
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	movdqa	.LC0(%rip), %xmm0
	movslq	%edi, %rdx
	movslq	tankY(%rip), %rsi
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movslq	tankX(%rip), %rax
	movb	$0, 39(%rsp)
	movq	%rdx, %rcx
	movaps	%xmm0, (%rsp)
	movdqa	.LC1(%rip), %xmm0
	leaq	map(%rip), %r8
	movl	$1044149854, 35(%rsp)
	movl	%eax, %r9d
	movaps	%xmm0, 16(%rsp)
	movl	16(%rsp,%rdx,4), %edi
	addl	(%rsp,%rdx,4), %r9d
	js	.L2
	addl	%esi, %edi
	cmpl	%r9d, mapW(%rip)
	jle	.L2
	testl	%edi, %edi
	jns	.L12
.L2:
	movzbl	35(%rsp,%rdx), %edx
	leaq	(%rax,%rax,4), %rax
	movl	%ecx, tankD(%rip)
	leaq	(%r8,%rax,4), %rax
	movb	%dl, (%rax,%rsi)
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	cmpl	%edi, mapH(%rip)
	jle	.L2
	movslq	%r9d, %r11
	movslq	%edi, %r10
	leaq	(%r11,%r11,4), %r11
	leaq	(%r8,%r11,4), %r11
	cmpb	$46, (%r11,%r10)
	jne	.L2
	leaq	(%rax,%rax,4), %rax
	movl	%r9d, tankX(%rip)
	leaq	(%r8,%rax,4), %rax
	movl	%edi, tankY(%rip)
	movb	$46, (%rax,%rsi)
	movslq	%edi, %rsi
	movslq	%r9d, %rax
	jmp	.L2
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE2:
	.size	move, .-move
	.p2align 4
	.globl	shoot
	.type	shoot, @function
shoot:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	subq	$48, %rsp
	.cfi_def_cfa_offset 64
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movslq	tankD(%rip), %rax
	movaps	%xmm0, (%rsp)
	movdqa	.LC1(%rip), %xmm0
	movl	(%rsp,%rax,4), %ecx
	movaps	%xmm0, 16(%rsp)
	movl	16(%rsp,%rax,4), %r10d
	movl	tankY(%rip), %eax
	movl	%ecx, %edx
	addl	%r10d, %eax
	addl	tankX(%rip), %edx
	js	.L14
	movl	mapW(%rip), %edi
	testl	%eax, %eax
	js	.L14
	cmpl	%edi, %edx
	jge	.L14
	movl	mapH(%rip), %r8d
	cmpl	$1, %ecx
	jne	.L16
	cmpl	$1, %r10d
	jne	.L16
	movslq	%edx, %rcx
	leaq	map(%rip), %r11
	leaq	(%rcx,%rcx,4), %rsi
	movslq	%eax, %rcx
	leaq	(%rcx,%rsi,4), %rcx
	addq	%r11, %rcx
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L42:
	movzbl	(%rcx), %esi
	cmpb	$42, %sil
	je	.L21
	cmpb	$35, %sil
	je	.L14
	addl	$1, %eax
	addl	$1, %edx
	js	.L14
	addq	$21, %rcx
	testl	%eax, %eax
	js	.L14
	cmpl	%edx, %edi
	jle	.L14
.L22:
	cmpl	%eax, %r8d
	jg	.L42
	.p2align 4,,10
	.p2align 3
.L14:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	movslq	%ecx, %rsi
	leaq	map(%rip), %r11
	leaq	(%rsi,%rsi,4), %r9
	movslq	%r10d, %rsi
	leaq	(%rsi,%r9,4), %rbx
	movslq	%edx, %rsi
	leaq	(%rsi,%rsi,4), %r9
	movslq	%eax, %rsi
	leaq	(%rsi,%r9,4), %rsi
	addq	%r11, %rsi
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L24:
	movzbl	(%rsi), %r9d
	cmpb	$42, %r9b
	je	.L21
	cmpb	$35, %r9b
	je	.L14
	addl	%r10d, %eax
	addl	%ecx, %edx
	js	.L14
	addq	%rbx, %rsi
	testl	%eax, %eax
	js	.L14
	cmpl	%edi, %edx
	jge	.L14
.L19:
	cmpl	%eax, %r8d
	jg	.L24
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L21:
	movslq	%edx, %rdx
	cltq
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%r11,%rdx,4), %rdx
	movb	$46, (%rdx,%rax)
	jmp	.L14
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE3:
	.size	shoot, .-shoot
	.p2align 4
	.globl	step
	.type	step, @function
step:
.LFB1:
	.cfi_startproc
	endbr64
	movzbl	code(%rip), %eax
	cmpb	$85, %al
	je	.L47
	cmpb	$68, %al
	je	.L48
	cmpb	$76, %al
	je	.L49
	movl	$3, %edi
	cmpb	$82, %al
	je	.L45
	xorl	%eax, %eax
	jmp	shoot
.L47:
	xorl	%edi, %edi
.L45:
	jmp	move
.L48:
	movl	$1, %edi
	jmp	.L45
.L49:
	movl	$2, %edi
	jmp	.L45
	.cfi_endproc
.LFE1:
	.size	step, .-step
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d"
.LC3:
	.string	"%d %d"
.LC4:
	.string	" %c"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	Nsets(%rip), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	call	scanf@PLT
.L51:
	movl	Nsets(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, Nsets(%rip)
	testl	%eax, %eax
	je	.L91
	leaq	.LC3(%rip), %rdi
	leaq	mapW(%rip), %rdx
	xorl	%eax, %eax
	leaq	mapH(%rip), %rsi
	call	scanf@PLT
	movl	mapH(%rip), %edi
	testl	%edi, %edi
	jle	.L52
	movq	$0, (%rsp)
	movl	mapW(%rip), %eax
	leaq	.LC4(%rip), %r13
	movq	(%rsp), %rcx
	movl	%ecx, 12(%rsp)
	movl	%ecx, %r12d
	testl	%eax, %eax
	jle	.L52
	.p2align 4,,10
	.p2align 3
.L63:
	leaq	map(%rip), %r14
	xorl	%r15d, %r15d
	addq	(%rsp), %r14
	jmp	.L61
	.p2align 4,,10
	.p2align 3
.L95:
	cmpb	$60, %al
	jne	.L93
	movl	%r15d, %ebx
	movl	%r12d, %ebp
	movl	$2, %esi
.L56:
	movl	%esi, tankD(%rip)
.L58:
	movl	%ebp, tankY(%rip)
	movl	%ebx, tankX(%rip)
.L90:
	movl	mapW(%rip), %eax
	addl	$1, %r15d
	addq	$20, %r14
	cmpl	%eax, %r15d
	jge	.L94
.L61:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movzbl	(%r14), %eax
	cmpb	$94, %al
	je	.L76
	cmpb	$118, %al
	jne	.L95
	movl	%r12d, %ebp
	movl	%r15d, %ebx
	movl	$1, %esi
	jmp	.L56
	.p2align 4,,10
	.p2align 3
.L76:
	movl	%r12d, %ebp
	movl	%r15d, %ebx
	movl	$1, %edi
.L54:
	xorl	%esi, %esi
	cmpb	$62, %al
	jne	.L96
	movl	$3, tankD(%rip)
	movl	%r15d, %ebx
	movl	%r12d, %ebp
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L96:
	testb	%dil, %dil
	je	.L90
	jmp	.L56
	.p2align 4,,10
	.p2align 3
.L94:
	movl	12(%rsp), %r15d
	addl	$1, %r15d
	cmpl	mapH(%rip), %r15d
	jge	.L52
	addq	$1, (%rsp)
	movq	(%rsp), %rcx
	movl	%ecx, 12(%rsp)
	movl	%ecx, %r12d
	testl	%eax, %eax
	jg	.L63
.L52:
	leaq	Ncodes(%rip), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	call	scanf@PLT
	movl	Ncodes(%rip), %esi
	leaq	.LC4(%rip), %r14
	leaq	code(%rip), %r13
	testl	%esi, %esi
	jle	.L69
	.p2align 4,,10
	.p2align 3
.L64:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movzbl	code(%rip), %eax
	cmpb	$85, %al
	je	.L80
	cmpb	$68, %al
	je	.L81
	cmpb	$76, %al
	je	.L82
	cmpb	$82, %al
	je	.L83
	xorl	%eax, %eax
	call	shoot
.L68:
	addl	$1, %r12d
	cmpl	%r12d, Ncodes(%rip)
	jg	.L64
.L69:
	movl	mapH(%rip), %ecx
	testl	%ecx, %ecx
	jle	.L65
	leaq	map(%rip), %r13
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L66:
	movl	mapW(%rip), %edx
	movq	%r13, %r15
	xorl	%r14d, %r14d
	testl	%edx, %edx
	jle	.L71
	.p2align 4,,10
	.p2align 3
.L70:
	movsbl	(%r15), %edi
	addl	$1, %r14d
	addq	$20, %r15
	call	putchar@PLT
	cmpl	mapW(%rip), %r14d
	jl	.L70
.L71:
	movl	$10, %edi
	addl	$1, %r12d
	addq	$1, %r13
	call	putchar@PLT
	cmpl	mapH(%rip), %r12d
	jl	.L66
.L65:
	movl	Nsets(%rip), %eax
	testl	%eax, %eax
	jne	.L72
	movl	$-1, Nsets(%rip)
.L91:
	addq	$24, %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
.L80:
	.cfi_restore_state
	xorl	%edi, %edi
.L67:
	call	move
	jmp	.L68
.L81:
	movl	$1, %edi
	jmp	.L67
.L82:
	movl	$2, %edi
	jmp	.L67
.L83:
	movl	$3, %edi
	jmp	.L67
.L72:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L51
.L93:
	xorl	%edi, %edi
	jmp	.L54
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.text
	.p2align 4
	.globl	init_map
	.type	init_map, @function
init_map:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	mapW(%rip), %rdx
	leaq	mapH(%rip), %rsi
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC3(%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	$24, %rsp
	.cfi_def_cfa_offset 80
	call	scanf@PLT
	movl	mapH(%rip), %eax
	testl	%eax, %eax
	jle	.L97
	movq	$0, (%rsp)
	movl	mapW(%rip), %eax
	leaq	.LC4(%rip), %r13
	movq	(%rsp), %rcx
	movl	%ecx, 12(%rsp)
	movl	%ecx, %r12d
	testl	%eax, %eax
	jle	.L97
	.p2align 4,,10
	.p2align 3
.L109:
	leaq	map(%rip), %r14
	xorl	%r15d, %r15d
	addq	(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L107:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movzbl	(%r14), %eax
	cmpb	$94, %al
	je	.L111
	cmpb	$118, %al
	je	.L112
	cmpb	$60, %al
	jne	.L117
	movl	%r15d, %ebp
	movl	%r12d, %ebx
	movl	$2, %esi
.L102:
	movl	%esi, tankD(%rip)
.L104:
	movl	mapW(%rip), %eax
	addl	$1, %r15d
	movl	%ebx, tankY(%rip)
	addq	$20, %r14
	movl	%ebp, tankX(%rip)
	cmpl	%eax, %r15d
	jl	.L107
.L106:
	movl	12(%rsp), %r15d
	addl	$1, %r15d
	cmpl	mapH(%rip), %r15d
	jge	.L97
	addq	$1, (%rsp)
	movq	(%rsp), %rcx
	movl	%ecx, 12(%rsp)
	movl	%ecx, %r12d
	testl	%eax, %eax
	jg	.L109
.L97:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L112:
	.cfi_restore_state
	movl	%r12d, %ebx
	movl	%r15d, %ebp
	movl	$1, %esi
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L111:
	movl	%r12d, %ebx
	movl	%r15d, %ebp
	movl	$1, %edi
.L100:
	xorl	%esi, %esi
	cmpb	$62, %al
	jne	.L118
	movl	$3, tankD(%rip)
	movl	%r15d, %ebp
	movl	%r12d, %ebx
	jmp	.L104
	.p2align 4,,10
	.p2align 3
.L118:
	testb	%dil, %dil
	jne	.L102
	movl	mapW(%rip), %eax
	addl	$1, %r15d
	addq	$20, %r14
	cmpl	%r15d, %eax
	jg	.L107
	jmp	.L106
.L117:
	xorl	%edi, %edi
	jmp	.L100
	.cfi_endproc
.LFE4:
	.size	init_map, .-init_map
	.p2align 4
	.globl	print_map
	.type	print_map, @function
print_map:
.LFB5:
	.cfi_startproc
	endbr64
	movl	mapH(%rip), %edx
	testl	%edx, %edx
	jle	.L128
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	map(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	.p2align 4,,10
	.p2align 3
.L121:
	movl	mapW(%rip), %eax
	movq	%r13, %rbp
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	.L123
	.p2align 4,,10
	.p2align 3
.L122:
	movsbl	0(%rbp), %edi
	addl	$1, %ebx
	addq	$20, %rbp
	call	putchar@PLT
	cmpl	%ebx, mapW(%rip)
	jg	.L122
.L123:
	movl	$10, %edi
	addl	$1, %r12d
	addq	$1, %r13
	call	putchar@PLT
	cmpl	%r12d, mapH(%rip)
	jg	.L121
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L128:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE5:
	.size	print_map, .-print_map
	.globl	code
	.bss
	.type	code, @object
	.size	code, 1
code:
	.zero	1
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 400
map:
	.zero	400
	.globl	tankD
	.align 4
	.type	tankD, @object
	.size	tankD, 4
tankD:
	.zero	4
	.globl	tankY
	.align 4
	.type	tankY, @object
	.size	tankY, 4
tankY:
	.zero	4
	.globl	tankX
	.align 4
	.type	tankX, @object
	.size	tankX, 4
tankX:
	.zero	4
	.globl	mapH
	.align 4
	.type	mapH, @object
	.size	mapH, 4
mapH:
	.zero	4
	.globl	mapW
	.align 4
	.type	mapW, @object
	.size	mapW, 4
mapW:
	.zero	4
	.globl	Ncodes
	.align 4
	.type	Ncodes, @object
	.size	Ncodes, 4
Ncodes:
	.zero	4
	.globl	Nsets
	.align 4
	.type	Nsets, @object
	.size	Nsets, 4
Nsets:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	0
	.long	-1
	.long	1
	.align 16
.LC1:
	.long	-1
	.long	1
	.long	0
	.long	0
	.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	move
	.type	move, @function
move:
.LFB2:
	.cfi_startproc
	endbr64
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	movdqa	.LC0(%rip), %xmm0
	movslq	%edi, %rdx
	movslq	tankY(%rip), %rsi
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movslq	tankX(%rip), %rax
	movb	$0, 39(%rsp)
	movq	%rdx, %rcx
	movaps	%xmm0, (%rsp)
	movdqa	.LC1(%rip), %xmm0
	leaq	map(%rip), %r8
	movl	$1044149854, 35(%rsp)
	movl	%eax, %r9d
	movaps	%xmm0, 16(%rsp)
	movl	16(%rsp,%rdx,4), %edi
	addl	(%rsp,%rdx,4), %r9d
	js	.L2
	addl	%esi, %edi
	cmpl	%r9d, mapW(%rip)
	jle	.L2
	testl	%edi, %edi
	jns	.L12
.L2:
	movzbl	35(%rsp,%rdx), %edx
	leaq	(%rax,%rax,4), %rax
	movl	%ecx, tankD(%rip)
	leaq	(%r8,%rax,4), %rax
	movb	%dl, (%rax,%rsi)
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	cmpl	%edi, mapH(%rip)
	jle	.L2
	movslq	%r9d, %r11
	movslq	%edi, %r10
	leaq	(%r11,%r11,4), %r11
	leaq	(%r8,%r11,4), %r11
	cmpb	$46, (%r11,%r10)
	jne	.L2
	leaq	(%rax,%rax,4), %rax
	movl	%r9d, tankX(%rip)
	leaq	(%r8,%rax,4), %rax
	movl	%edi, tankY(%rip)
	movb	$46, (%rax,%rsi)
	movslq	%edi, %rsi
	movslq	%r9d, %rax
	jmp	.L2
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE2:
	.size	move, .-move
	.p2align 4
	.globl	shoot
	.type	shoot, @function
shoot:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	subq	$48, %rsp
	.cfi_def_cfa_offset 64
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movslq	tankD(%rip), %rax
	movaps	%xmm0, (%rsp)
	movdqa	.LC1(%rip), %xmm0
	movl	(%rsp,%rax,4), %ecx
	movaps	%xmm0, 16(%rsp)
	movl	16(%rsp,%rax,4), %r10d
	movl	tankY(%rip), %eax
	movl	%ecx, %edx
	addl	%r10d, %eax
	addl	tankX(%rip), %edx
	js	.L14
	movl	mapW(%rip), %edi
	testl	%eax, %eax
	js	.L14
	cmpl	%edi, %edx
	jge	.L14
	movl	mapH(%rip), %r8d
	cmpl	$1, %ecx
	jne	.L16
	cmpl	$1, %r10d
	jne	.L16
	movslq	%edx, %rcx
	leaq	map(%rip), %r11
	leaq	(%rcx,%rcx,4), %rsi
	movslq	%eax, %rcx
	leaq	(%rcx,%rsi,4), %rcx
	addq	%r11, %rcx
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L42:
	movzbl	(%rcx), %esi
	cmpb	$42, %sil
	je	.L21
	cmpb	$35, %sil
	je	.L14
	addl	$1, %eax
	addl	$1, %edx
	js	.L14
	addq	$21, %rcx
	testl	%eax, %eax
	js	.L14
	cmpl	%edx, %edi
	jle	.L14
.L22:
	cmpl	%eax, %r8d
	jg	.L42
	.p2align 4,,10
	.p2align 3
.L14:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	movslq	%ecx, %rsi
	leaq	map(%rip), %r11
	leaq	(%rsi,%rsi,4), %r9
	movslq	%r10d, %rsi
	leaq	(%rsi,%r9,4), %rbx
	movslq	%edx, %rsi
	leaq	(%rsi,%rsi,4), %r9
	movslq	%eax, %rsi
	leaq	(%rsi,%r9,4), %rsi
	addq	%r11, %rsi
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L24:
	movzbl	(%rsi), %r9d
	cmpb	$42, %r9b
	je	.L21
	cmpb	$35, %r9b
	je	.L14
	addl	%r10d, %eax
	addl	%ecx, %edx
	js	.L14
	addq	%rbx, %rsi
	testl	%eax, %eax
	js	.L14
	cmpl	%edi, %edx
	jge	.L14
.L19:
	cmpl	%eax, %r8d
	jg	.L24
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L21:
	movslq	%edx, %rdx
	cltq
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%r11,%rdx,4), %rdx
	movb	$46, (%rdx,%rax)
	jmp	.L14
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE3:
	.size	shoot, .-shoot
	.p2align 4
	.globl	step
	.type	step, @function
step:
.LFB1:
	.cfi_startproc
	endbr64
	movzbl	code(%rip), %eax
	cmpb	$85, %al
	je	.L47
	cmpb	$68, %al
	je	.L48
	cmpb	$76, %al
	je	.L49
	movl	$3, %edi
	cmpb	$82, %al
	je	.L45
	xorl	%eax, %eax
	jmp	shoot
.L47:
	xorl	%edi, %edi
.L45:
	jmp	move
.L48:
	movl	$1, %edi
	jmp	.L45
.L49:
	movl	$2, %edi
	jmp	.L45
	.cfi_endproc
.LFE1:
	.size	step, .-step
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d"
.LC3:
	.string	"%d %d"
.LC4:
	.string	" %c"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	Nsets(%rip), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	call	scanf@PLT
.L51:
	movl	Nsets(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, Nsets(%rip)
	testl	%eax, %eax
	je	.L91
	leaq	.LC3(%rip), %rdi
	leaq	mapW(%rip), %rdx
	xorl	%eax, %eax
	leaq	mapH(%rip), %rsi
	call	scanf@PLT
	movl	mapH(%rip), %edi
	testl	%edi, %edi
	jle	.L52
	movq	$0, (%rsp)
	movl	mapW(%rip), %eax
	leaq	.LC4(%rip), %r13
	movq	(%rsp), %rcx
	movl	%ecx, 12(%rsp)
	movl	%ecx, %r12d
	testl	%eax, %eax
	jle	.L52
	.p2align 4,,10
	.p2align 3
.L63:
	leaq	map(%rip), %r14
	xorl	%r15d, %r15d
	addq	(%rsp), %r14
	jmp	.L61
	.p2align 4,,10
	.p2align 3
.L95:
	cmpb	$60, %al
	jne	.L93
	movl	%r15d, %ebx
	movl	%r12d, %ebp
	movl	$2, %esi
.L56:
	movl	%esi, tankD(%rip)
.L58:
	movl	%ebp, tankY(%rip)
	movl	%ebx, tankX(%rip)
.L90:
	movl	mapW(%rip), %eax
	addl	$1, %r15d
	addq	$20, %r14
	cmpl	%eax, %r15d
	jge	.L94
.L61:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movzbl	(%r14), %eax
	cmpb	$94, %al
	je	.L76
	cmpb	$118, %al
	jne	.L95
	movl	%r12d, %ebp
	movl	%r15d, %ebx
	movl	$1, %esi
	jmp	.L56
	.p2align 4,,10
	.p2align 3
.L76:
	movl	%r12d, %ebp
	movl	%r15d, %ebx
	movl	$1, %edi
.L54:
	xorl	%esi, %esi
	cmpb	$62, %al
	jne	.L96
	movl	$3, tankD(%rip)
	movl	%r15d, %ebx
	movl	%r12d, %ebp
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L96:
	testb	%dil, %dil
	je	.L90
	jmp	.L56
	.p2align 4,,10
	.p2align 3
.L94:
	movl	12(%rsp), %r15d
	addl	$1, %r15d
	cmpl	mapH(%rip), %r15d
	jge	.L52
	addq	$1, (%rsp)
	movq	(%rsp), %rcx
	movl	%ecx, 12(%rsp)
	movl	%ecx, %r12d
	testl	%eax, %eax
	jg	.L63
.L52:
	leaq	Ncodes(%rip), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	call	scanf@PLT
	movl	Ncodes(%rip), %esi
	leaq	.LC4(%rip), %r14
	leaq	code(%rip), %r13
	testl	%esi, %esi
	jle	.L69
	.p2align 4,,10
	.p2align 3
.L64:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movzbl	code(%rip), %eax
	cmpb	$85, %al
	je	.L80
	cmpb	$68, %al
	je	.L81
	cmpb	$76, %al
	je	.L82
	cmpb	$82, %al
	je	.L83
	xorl	%eax, %eax
	call	shoot
.L68:
	addl	$1, %r12d
	cmpl	%r12d, Ncodes(%rip)
	jg	.L64
.L69:
	movl	mapH(%rip), %ecx
	testl	%ecx, %ecx
	jle	.L65
	leaq	map(%rip), %r13
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L66:
	movl	mapW(%rip), %edx
	movq	%r13, %r15
	xorl	%r14d, %r14d
	testl	%edx, %edx
	jle	.L71
	.p2align 4,,10
	.p2align 3
.L70:
	movsbl	(%r15), %edi
	addl	$1, %r14d
	addq	$20, %r15
	call	putchar@PLT
	cmpl	mapW(%rip), %r14d
	jl	.L70
.L71:
	movl	$10, %edi
	addl	$1, %r12d
	addq	$1, %r13
	call	putchar@PLT
	cmpl	mapH(%rip), %r12d
	jl	.L66
.L65:
	movl	Nsets(%rip), %eax
	testl	%eax, %eax
	jne	.L72
	movl	$-1, Nsets(%rip)
.L91:
	addq	$24, %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
.L80:
	.cfi_restore_state
	xorl	%edi, %edi
.L67:
	call	move
	jmp	.L68
.L81:
	movl	$1, %edi
	jmp	.L67
.L82:
	movl	$2, %edi
	jmp	.L67
.L83:
	movl	$3, %edi
	jmp	.L67
.L72:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L51
.L93:
	xorl	%edi, %edi
	jmp	.L54
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.text
	.p2align 4
	.globl	init_map
	.type	init_map, @function
init_map:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	mapW(%rip), %rdx
	leaq	mapH(%rip), %rsi
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC3(%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	$24, %rsp
	.cfi_def_cfa_offset 80
	call	scanf@PLT
	movl	mapH(%rip), %eax
	testl	%eax, %eax
	jle	.L97
	movq	$0, (%rsp)
	movl	mapW(%rip), %eax
	leaq	.LC4(%rip), %r13
	movq	(%rsp), %rcx
	movl	%ecx, 12(%rsp)
	movl	%ecx, %r12d
	testl	%eax, %eax
	jle	.L97
	.p2align 4,,10
	.p2align 3
.L109:
	leaq	map(%rip), %r14
	xorl	%r15d, %r15d
	addq	(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L107:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movzbl	(%r14), %eax
	cmpb	$94, %al
	je	.L111
	cmpb	$118, %al
	je	.L112
	cmpb	$60, %al
	jne	.L117
	movl	%r15d, %ebp
	movl	%r12d, %ebx
	movl	$2, %esi
.L102:
	movl	%esi, tankD(%rip)
.L104:
	movl	mapW(%rip), %eax
	addl	$1, %r15d
	movl	%ebx, tankY(%rip)
	addq	$20, %r14
	movl	%ebp, tankX(%rip)
	cmpl	%eax, %r15d
	jl	.L107
.L106:
	movl	12(%rsp), %r15d
	addl	$1, %r15d
	cmpl	mapH(%rip), %r15d
	jge	.L97
	addq	$1, (%rsp)
	movq	(%rsp), %rcx
	movl	%ecx, 12(%rsp)
	movl	%ecx, %r12d
	testl	%eax, %eax
	jg	.L109
.L97:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L112:
	.cfi_restore_state
	movl	%r12d, %ebx
	movl	%r15d, %ebp
	movl	$1, %esi
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L111:
	movl	%r12d, %ebx
	movl	%r15d, %ebp
	movl	$1, %edi
.L100:
	xorl	%esi, %esi
	cmpb	$62, %al
	jne	.L118
	movl	$3, tankD(%rip)
	movl	%r15d, %ebp
	movl	%r12d, %ebx
	jmp	.L104
	.p2align 4,,10
	.p2align 3
.L118:
	testb	%dil, %dil
	jne	.L102
	movl	mapW(%rip), %eax
	addl	$1, %r15d
	addq	$20, %r14
	cmpl	%r15d, %eax
	jg	.L107
	jmp	.L106
.L117:
	xorl	%edi, %edi
	jmp	.L100
	.cfi_endproc
.LFE4:
	.size	init_map, .-init_map
	.p2align 4
	.globl	print_map
	.type	print_map, @function
print_map:
.LFB5:
	.cfi_startproc
	endbr64
	movl	mapH(%rip), %edx
	testl	%edx, %edx
	jle	.L128
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	map(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	.p2align 4,,10
	.p2align 3
.L121:
	movl	mapW(%rip), %eax
	movq	%r13, %rbp
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	.L123
	.p2align 4,,10
	.p2align 3
.L122:
	movsbl	0(%rbp), %edi
	addl	$1, %ebx
	addq	$20, %rbp
	call	putchar@PLT
	cmpl	%ebx, mapW(%rip)
	jg	.L122
.L123:
	movl	$10, %edi
	addl	$1, %r12d
	addq	$1, %r13
	call	putchar@PLT
	cmpl	%r12d, mapH(%rip)
	jg	.L121
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L128:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE5:
	.size	print_map, .-print_map
	.globl	code
	.bss
	.type	code, @object
	.size	code, 1
code:
	.zero	1
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 400
map:
	.zero	400
	.globl	tankD
	.align 4
	.type	tankD, @object
	.size	tankD, 4
tankD:
	.zero	4
	.globl	tankY
	.align 4
	.type	tankY, @object
	.size	tankY, 4
tankY:
	.zero	4
	.globl	tankX
	.align 4
	.type	tankX, @object
	.size	tankX, 4
tankX:
	.zero	4
	.globl	mapH
	.align 4
	.type	mapH, @object
	.size	mapH, 4
mapH:
	.zero	4
	.globl	mapW
	.align 4
	.type	mapW, @object
	.size	mapW, 4
mapW:
	.zero	4
	.globl	Ncodes
	.align 4
	.type	Ncodes, @object
	.size	Ncodes, 4
Ncodes:
	.zero	4
	.globl	Nsets
	.align 4
	.type	Nsets, @object
	.size	Nsets, 4
Nsets:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	0
	.long	-1
	.long	1
	.align 16
.LC1:
	.long	-1
	.long	1
	.long	0
	.long	0
	.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:

//#define DEBUG

int Nsets, Ncodes; int mapW, mapH;
int tankX, tankY, tankD;//the position and the direction of the tank
char map[20][20]; char code;
void init_map(); void print_map(); void step(); void move(int); void shoot();

int main(){
	int i;
	scanf("%d", &Nsets);
	while(Nsets--){
		init_map();
			#ifdef DEBUG
			printf("map print test.\n");
			print_map();
			#endif
		scanf("%d", &Ncodes);
		for(i = 0; i < Ncodes; i++)step( scanf(" %c", &code) );
		print_map();
		if(Nsets)printf("\n");
	}
	return 0;
}

void step(){
	int i;
	char move_symbol[] = "UDLR";
	for(i = 0; move_symbol[i]; i++){
		if(move_symbol[i] == code){
			move(i);
			return;
		}
	}
	shoot();
}
void move(int d){
		#ifdef DEBUG
		printf("move(%d) is called.\n", d);
		#endif
	int moveX[] = {0,0,-1,1}; int moveY[] = {-1,1,0,0};
	int newX = tankX + moveX[d], newY = tankY + moveY[d];
	char tank_symbol[] = "^v<>";
	//is leagal move?
	if( (0 <= newX && newX < mapW) && (0 <= newY && newY < mapH) &&
	map[newX][newY] == '.'){
		//move
		map[tankX][tankY] = '.';
		tankX = newX, tankY = newY;
	}
	tankD = d;
	map[tankX][tankY] = tank_symbol[tankD];
}
void shoot(){
	int moveX[] = {0,0,-1,1}; int moveY[] = {-1,1,0,0};
	int x = tankX + moveX[tankD], y = tankY + moveY[tankD];
	while(0 <= x && x < mapW && 0 <= y && y < mapH){
		if(map[x][y] == '*'){
			map[x][y] = '.';
			break;
		}else if(map[x][y] == '#'){
			break;
		}
		x += moveX[tankD], y += moveY[tankD];
	}
}

void init_map(){
	int i, j, k;
	char tank_symbol[] = "^v<>";
	scanf("%d %d", &mapH, &mapW);
	for(j = 0; j < mapH; j++)for(i = 0; i < mapW; i++){
		scanf(" %c", &map[i][j]);
		for(k = 0; tank_symbol[k]; k++)if(map[i][j] == tank_symbol[k])tankX = i, tankY = j, tankD = k;
	}
}
void print_map(){
	int i, j;
	for(j = 0; j < mapH; j++){
		for(i = 0; i < mapW; i++)printf("%c", map[i][j]);
		printf("\n");
	}
}
4
4 6
*.*..*
*.....
...-..
^.*#..
10
SRSSRRUSSR
2 2
<.
..
12
DDSRRSUUSLLS
3 5
>-#**
.-*#*
.-**#
15
SSSDRSSSDRSSSUU
5 5
v****
*****
*****
*****
*****
44
SSSSDDRSDRSRDSULUURSSSSRRRRDSSSSDDLSDLSDLSSD
 4
4 6
*.*..*
*.....
..-...
^.*#..
10
SRSSRRUSSR
2 2
<.
..
12
DDSRRSUUSLLS
3 5
>-#**
.-*#*
.-**#
15
SSSDRSSSDRSSSUU
5 5
v****
*****
*****
***)*
*****
44
SSSSDDRSDRSRDSULUURSSSSRRRRDSSSSDDLSDLSDLSSD
 4
4 6
*.*..*
*..../
..-...
^.*#..
10
SRSSRRUSSR
2 2
<.
..
12
DDSRRSUUSLLS
3 5
>-#**
.-*#*
.-**#
15
SSSDRSSSDRSSSUU
5 5
v****
*****
*****
***)*
*****
44
SSSSDDRSDRSRDSULUURSSSSRRRRDSSSSDDLSDLSDLSSD
 4
4 6
*.*..*
*.....
...-..
^.*#..
10
SRSSRRUSSR
2 2
<.
..
12
DESRRSUUSLLS
3 5
#->**
.-*#*
.-**#
15
SSSDRSSSDRSSSUU
5 5
v****
*****
*****
*****
*****
44
SSSSDDRSDRSRDSULUURSSSSRRRRDSSSSDDLSDLSDLSSD
 4
4 6
*.*..*
*.....
..-...
^.*#..
10
SRSSRRUSSR
2 2
<.
..
12
DDSRRSUUSLLS
3 5
>-#**
.-*#*
.-**#
15
SSSDRSSSDRSSSUU
5 5
****v
*****
*****
*****
*****
44
SSSSDDRSDRSRDSULUURSSSSRRRRDSSSSDDLSDLSDLSSD
 4
4 6
*.*..*
*.....
...-..
^..#*.
10
SRSSRRUSSR
2 2
<.
..
12
DDSRRSUUSLLS
3 5
>-#**
.-*#*
.-**#
15
SSSDRSSSDRSSSUU
5 5
v****
*****
*****
*****
*****
44
SSSSDDRSDRSRDSULUURSSSSRRRRDSSSSDDLSDLSDLSSD
 4
4 6
*.*..*
*.....
...-..
^.*#..
10
SRSSRRUSSR
2 2
<.
..
12
DESRRSUUSLLS
3 5
#->**
.-*#*
.-**#
15
SSSDRSSSDRSSSUU
5 5
***v*
*****
*****
*****
*****
44
SSSSDDRSDRSRDSULUURSSSSRRRRDSSSSDDLSDLSDLSSD
 4
4 6
*.*..*
*.....
...-..
^..#*.
10
SRSSRRUSSR
2 2
<.
..
12
DDSRRSUUSLLS
3 5
>-#**
.-*#*
.-**#
15
SSSDRSSSDRSSSUU
5 5
v****
)****
*****
*****
*****
44
SSSSDDRSDRSRDSULUURSSSSRRRRDSSSSDDLSDLSDLSSD
 4
4 6
*.*..*
*.....
..-...
^.*#..
10
SRSSRRUSSR
2 2
.<
..
12
DDSRRSUUSLLS
3 5
>-#**
.-*#*
.-**#
15
SSSDRSSSDRSSSUU
5 5
v***)
*****
*****
***)*
*****
44
SSSSDDRSDRSRDSULUURSSSSRRRRDSSSSDDLSDLSDLSSD
 4
4 6
*.*..*
*.....
...-..
^..#*.
10
SRSSRRUSSR
2 2
<.
..
12
DDSRRSUUSLLS
3 5
>-#**
.-*#*
.-*#*
15
SSSDRSSSDRSSSUU
5 5
v****
)****
*****
*****
*****
44
SSSSDDRSDRSRDSULUURSSSSRRRRDSSSSDDLSDLSDLSSD

*....*
......
..>-..
...#..

<.
..

^-#**
.-.#*
.-..#

.....
.***.
..*..
..*..
....v
 *....*
......
..-...
..>#..

<.
..

^-#**
.-.#*
.-..#

.....
.***.
..*..
...).
....v
 *....*
...../
..-...
..>#..

<.
..

^-#**
.-.#*
.-..#

.....
.***.
..*..
...).
....v
 *....*
......
..>-..
...#..

<.
..

#-..^
.-*#*
.-**#

.....
.***.
..*..
..*..
....v
 *....*
......
..-...
..>#..

<.
..

^-#**
.-.#*
.-..#

****.
****.
****.
****.
..v..
 *....*
......
..>-..
...#*.

<.
..

^-#**
.-.#*
.-..#

.....
.***.
..*..
..*..
....v
 *....*
......
..>-..
...#..

<.
..

#-..^
.-*#*
.-**#

***..
***..
**...
**...
*..v.
 *....*
......
..>-..
...#*.

<.
..

^-#**
.-.#*
.-..#

.....
)*.*.
.**..
.**..
.*..v
 *....*
......
..-...
..>#..

<.
..

^-#**
.-.#*
.-..#

....)
.**.*
....*
.v*)*
..*.*
 *....*
......
..>-..
...#*.

<.
..

^-#**
.-.#*
.-.#*

.....
)*.*.
.**..
.**..
.*..v

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

```c
//#define DEBUG

int Nsets, Ncodes; int mapW, mapH;
int tankX, tankY, tankD;//the position and the direction of the tank
char map[20][20]; char code;
void init_map(); void print_map(); void step(); void move(int); void shoot();

int main(){
	int i;
	scanf("%d", &Nsets);
	while(Nsets--){
		init_map();
			#ifdef DEBUG
			printf("map print test.\n");
			print_map();
			#endif
		scanf("%d", &Ncodes);
		for(i = 0; i < Ncodes; i++)step( scanf(" %c", &code) );
		print_map();
		if(Nsets)printf("\n");
	}
	return 0;
}

void step(){
	int i;
	char move_symbol[] = "UDLR";
	for(i = 0; move_symbol[i]; i++){
		if(move_symbol[i] == code){
			move(i);
			return;
		}
	}
	shoot();
}
void move(int d){
		#ifdef DEBUG
		printf("move(%d) is called.\n", d);
		#endif
	int moveX[] = {0,0,-1,1}; int moveY[] = {-1,1,0,0};
	int newX = tankX + moveX[d], newY = tankY + moveY[d];
	char tank_symbol[] = "^v<>";
	//is leagal move?
	if( (0 <= newX && newX < mapW) && (0 <= newY && newY < mapH) &&
	map[newX][newY] == '.'){
		//move
		map[tankX][tankY] = '.';
		tankX = newX, tankY = newY;
	}
	tankD = d;
	map[tankX][tankY] = tank_symbol[tankD];
}
void shoot(){
	int moveX[] = {0,0,-1,1}; int moveY[] = {-1,1,0,0};
	int x = tankX + moveX[tankD], y = tankY + moveY[tankD];
	while(0 <= x && x < mapW && 0 <= y && y < mapH){
		if(map[x][y] == '*'){
			map[x][y] = '.';
			break;
		}else if(map[x][y] == '#'){
			break;
		}
		x += moveX[tankD], y += moveY[tankD];
	}
}

void init_map(){
	int i, j, k;
	char tank_symbol[] = "^v<>";
	scanf("%d %d", &mapH, &mapW);
	for(j = 0; j < mapH; j++)for(i = 0; i < mapW; i++){
		scanf(" %c", &map[i][j]);
		for(k = 0; tank_symbol[k]; k++)if(map[i][j] == tank_symbol[k])tankX = i, tankY = j, tankD = k;
	}
}
void print_map(){
	int i, j;
	for(j = 0; j < mapH; j++){
		for(i = 0; i < mapW; i++)printf("%c", map[i][j]);
		printf("\n");
	}
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	Nsets
	.bss
	.align 4
	.type	Nsets, @object
	.size	Nsets, 4
Nsets:
	.zero	4
	.globl	Ncodes
	.align 4
	.type	Ncodes, @object
	.size	Ncodes, 4
Ncodes:
	.zero	4
	.globl	mapW
	.align 4
	.type	mapW, @object
	.size	mapW, 4
mapW:
	.zero	4
	.globl	mapH
	.align 4
	.type	mapH, @object
	.size	mapH, 4
mapH:
	.zero	4
	.globl	tankX
	.align 4
	.type	tankX, @object
	.size	tankX, 4
tankX:
	.zero	4
	.globl	tankY
	.align 4
	.type	tankY, @object
	.size	tankY, 4
tankY:
	.zero	4
	.globl	tankD
	.align 4
	.type	tankD, @object
	.size	tankD, 4
tankD:
	.zero	4
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 400
map:
	.zero	400
	.globl	code
	.type	code, @object
	.size	code, 1
code:
	.zero	1
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %c"
	.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	$16, %rsp
	leaq	Nsets(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L2
.L5:
	movl	$0, %eax
	call	init_map
	leaq	Ncodes(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	$0, -4(%rbp)
	jmp	.L3
.L4:
	leaq	code(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	%eax, %edi
	movl	$0, %eax
	call	step
	addl	$1, -4(%rbp)
.L3:
	movl	Ncodes(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L4
	movl	$0, %eax
	call	print_map
	movl	Nsets(%rip), %eax
	testl	%eax, %eax
	je	.L2
	movl	$10, %edi
	call	putchar@PLT
.L2:
	movl	Nsets(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, Nsets(%rip)
	testl	%eax, %eax
	jne	.L5
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	step
	.type	step, @function
step:
.LFB1:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1380729941, -13(%rbp)
	movb	$0, -9(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L8
.L11:
	movl	-20(%rbp), %eax
	cltq
	movzbl	-13(%rbp,%rax), %edx
	movzbl	code(%rip), %eax
	cmpb	%al, %dl
	jne	.L9
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	move
	jmp	.L7
.L9:
	addl	$1, -20(%rbp)
.L8:
	movl	-20(%rbp), %eax
	cltq
	movzbl	-13(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L11
	movl	$0, %eax
	call	shoot
.L7:
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	step, .-step
	.globl	move
	.type	move, @function
move:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movl	%edi, -68(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$-1, -40(%rbp)
	movl	$1, -36(%rbp)
	movl	$-1, -32(%rbp)
	movl	$1, -28(%rbp)
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	-68(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	tankX(%rip), %eax
	addl	%edx, %eax
	movl	%eax, -56(%rbp)
	movl	-68(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %edx
	movl	tankY(%rip), %eax
	addl	%edx, %eax
	movl	%eax, -52(%rbp)
	movl	$1044149854, -13(%rbp)
	movb	$0, -9(%rbp)
	cmpl	$0, -56(%rbp)
	js	.L14
	movl	mapW(%rip), %eax
	cmpl	%eax, -56(%rbp)
	jge	.L14
	cmpl	$0, -52(%rbp)
	js	.L14
	movl	mapH(%rip), %eax
	cmpl	%eax, -52(%rbp)
	jge	.L14
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	jne	.L14
	movl	tankX(%rip), %eax
	movl	tankY(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movb	$46, (%rax)
	movl	-56(%rbp), %eax
	movl	%eax, tankX(%rip)
	movl	-52(%rbp), %eax
	movl	%eax, tankY(%rip)
.L14:
	movl	-68(%rbp), %eax
	movl	%eax, tankD(%rip)
	movl	tankD(%rip), %eax
	movl	tankX(%rip), %ecx
	movl	tankY(%rip), %esi
	cltq
	movzbl	-13(%rbp,%rax), %edx
	movslq	%esi, %rsi
	movslq	%ecx, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	leaq	(%rax,%rsi), %rcx
	leaq	map(%rip), %rax
	addq	%rcx, %rax
	movb	%dl, (%rax)
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	move, .-move
	.globl	shoot
	.type	shoot, @function
shoot:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$-1, -40(%rbp)
	movl	$1, -36(%rbp)
	movl	$-1, -32(%rbp)
	movl	$1, -28(%rbp)
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	tankD(%rip), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	tankX(%rip), %eax
	addl	%edx, %eax
	movl	%eax, -56(%rbp)
	movl	tankD(%rip), %eax
	cltq
	movl	-32(%rbp,%rax,4), %edx
	movl	tankY(%rip), %eax
	addl	%edx, %eax
	movl	%eax, -52(%rbp)
	jmp	.L17
.L21:
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$42, %al
	jne	.L18
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movb	$46, (%rax)
	jmp	.L19
.L18:
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L23
	movl	tankD(%rip), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	addl	%eax, -56(%rbp)
	movl	tankD(%rip), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	addl	%eax, -52(%rbp)
.L17:
	cmpl	$0, -56(%rbp)
	js	.L24
	movl	mapW(%rip), %eax
	cmpl	%eax, -56(%rbp)
	jge	.L24
	cmpl	$0, -52(%rbp)
	js	.L24
	movl	mapH(%rip), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L21
	jmp	.L24
.L23:
	nop
.L19:
.L24:
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	shoot, .-shoot
	.section	.rodata
.LC2:
	.string	"%d %d"
	.text
	.globl	init_map
	.type	init_map, @function
init_map:
.LFB4:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1044149854, -13(%rbp)
	movb	$0, -9(%rbp)
	leaq	mapW(%rip), %rax
	movq	%rax, %rdx
	leaq	mapH(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	$0, -24(%rbp)
	jmp	.L26
.L32:
	movl	$0, -28(%rbp)
	jmp	.L27
.L31:
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	$0, -20(%rbp)
	jmp	.L28
.L30:
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	movzbl	-13(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L29
	movl	-28(%rbp), %eax
	movl	%eax, tankX(%rip)
	movl	-24(%rbp), %eax
	movl	%eax, tankY(%rip)
	movl	-20(%rbp), %eax
	movl	%eax, tankD(%rip)
.L29:
	addl	$1, -20(%rbp)
.L28:
	movl	-20(%rbp), %eax
	cltq
	movzbl	-13(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L30
	addl	$1, -28(%rbp)
.L27:
	movl	mapW(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L31
	addl	$1, -24(%rbp)
.L26:
	movl	mapH(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L32
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	init_map, .-init_map
	.globl	print_map
	.type	print_map, @function
print_map:
.LFB5:
	.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	$0, -4(%rbp)
	jmp	.L35
.L38:
	movl	$0, -8(%rbp)
	jmp	.L36
.L37:
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -8(%rbp)
.L36:
	movl	mapW(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L37
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -4(%rbp)
.L35:
	movl	mapH(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L38
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	print_map, .-print_map
	.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	Nsets
	.bss
	.align 4
	.type	Nsets, @object
	.size	Nsets, 4
Nsets:
	.zero	4
	.globl	Ncodes
	.align 4
	.type	Ncodes, @object
	.size	Ncodes, 4
Ncodes:
	.zero	4
	.globl	mapW
	.align 4
	.type	mapW, @object
	.size	mapW, 4
mapW:
	.zero	4
	.globl	mapH
	.align 4
	.type	mapH, @object
	.size	mapH, 4
mapH:
	.zero	4
	.globl	tankX
	.align 4
	.type	tankX, @object
	.size	tankX, 4
tankX:
	.zero	4
	.globl	tankY
	.align 4
	.type	tankY, @object
	.size	tankY, 4
tankY:
	.zero	4
	.globl	tankD
	.align 4
	.type	tankD, @object
	.size	tankD, 4
tankD:
	.zero	4
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 400
map:
	.zero	400
	.globl	code
	.type	code, @object
	.size	code, 1
code:
	.zero	1
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %c"
	.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	$16, %rsp
	leaq	Nsets(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L2
.L5:
	movl	$0, %eax
	call	init_map
	leaq	Ncodes(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	$0, -4(%rbp)
	jmp	.L3
.L4:
	leaq	code(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	%eax, %edi
	movl	$0, %eax
	call	step
	addl	$1, -4(%rbp)
.L3:
	movl	Ncodes(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L4
	movl	$0, %eax
	call	print_map
	movl	Nsets(%rip), %eax
	testl	%eax, %eax
	je	.L2
	movl	$10, %edi
	call	putchar@PLT
.L2:
	movl	Nsets(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, Nsets(%rip)
	testl	%eax, %eax
	jne	.L5
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	step
	.type	step, @function
step:
.LFB1:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1380729941, -13(%rbp)
	movb	$0, -9(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L8
.L11:
	movl	-20(%rbp), %eax
	cltq
	movzbl	-13(%rbp,%rax), %edx
	movzbl	code(%rip), %eax
	cmpb	%al, %dl
	jne	.L9
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	move
	jmp	.L7
.L9:
	addl	$1, -20(%rbp)
.L8:
	movl	-20(%rbp), %eax
	cltq
	movzbl	-13(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L11
	movl	$0, %eax
	call	shoot
.L7:
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	step, .-step
	.globl	move
	.type	move, @function
move:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movl	%edi, -68(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$-1, -40(%rbp)
	movl	$1, -36(%rbp)
	movl	$-1, -32(%rbp)
	movl	$1, -28(%rbp)
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	-68(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	tankX(%rip), %eax
	addl	%edx, %eax
	movl	%eax, -56(%rbp)
	movl	-68(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %edx
	movl	tankY(%rip), %eax
	addl	%edx, %eax
	movl	%eax, -52(%rbp)
	movl	$1044149854, -13(%rbp)
	movb	$0, -9(%rbp)
	cmpl	$0, -56(%rbp)
	js	.L14
	movl	mapW(%rip), %eax
	cmpl	%eax, -56(%rbp)
	jge	.L14
	cmpl	$0, -52(%rbp)
	js	.L14
	movl	mapH(%rip), %eax
	cmpl	%eax, -52(%rbp)
	jge	.L14
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	jne	.L14
	movl	tankX(%rip), %eax
	movl	tankY(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movb	$46, (%rax)
	movl	-56(%rbp), %eax
	movl	%eax, tankX(%rip)
	movl	-52(%rbp), %eax
	movl	%eax, tankY(%rip)
.L14:
	movl	-68(%rbp), %eax
	movl	%eax, tankD(%rip)
	movl	tankD(%rip), %eax
	movl	tankX(%rip), %ecx
	movl	tankY(%rip), %esi
	cltq
	movzbl	-13(%rbp,%rax), %edx
	movslq	%esi, %rsi
	movslq	%ecx, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	leaq	(%rax,%rsi), %rcx
	leaq	map(%rip), %rax
	addq	%rcx, %rax
	movb	%dl, (%rax)
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	move, .-move
	.globl	shoot
	.type	shoot, @function
shoot:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$-1, -40(%rbp)
	movl	$1, -36(%rbp)
	movl	$-1, -32(%rbp)
	movl	$1, -28(%rbp)
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	tankD(%rip), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	tankX(%rip), %eax
	addl	%edx, %eax
	movl	%eax, -56(%rbp)
	movl	tankD(%rip), %eax
	cltq
	movl	-32(%rbp,%rax,4), %edx
	movl	tankY(%rip), %eax
	addl	%edx, %eax
	movl	%eax, -52(%rbp)
	jmp	.L17
.L21:
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$42, %al
	jne	.L18
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movb	$46, (%rax)
	jmp	.L19
.L18:
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L23
	movl	tankD(%rip), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	addl	%eax, -56(%rbp)
	movl	tankD(%rip), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	addl	%eax, -52(%rbp)
.L17:
	cmpl	$0, -56(%rbp)
	js	.L24
	movl	mapW(%rip), %eax
	cmpl	%eax, -56(%rbp)
	jge	.L24
	cmpl	$0, -52(%rbp)
	js	.L24
	movl	mapH(%rip), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L21
	jmp	.L24
.L23:
	nop
.L19:
.L24:
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	shoot, .-shoot
	.section	.rodata
.LC2:
	.string	"%d %d"
	.text
	.globl	init_map
	.type	init_map, @function
init_map:
.LFB4:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1044149854, -13(%rbp)
	movb	$0, -9(%rbp)
	leaq	mapW(%rip), %rax
	movq	%rax, %rdx
	leaq	mapH(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	$0, -24(%rbp)
	jmp	.L26
.L32:
	movl	$0, -28(%rbp)
	jmp	.L27
.L31:
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	$0, -20(%rbp)
	jmp	.L28
.L30:
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	movzbl	-13(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L29
	movl	-28(%rbp), %eax
	movl	%eax, tankX(%rip)
	movl	-24(%rbp), %eax
	movl	%eax, tankY(%rip)
	movl	-20(%rbp), %eax
	movl	%eax, tankD(%rip)
.L29:
	addl	$1, -20(%rbp)
.L28:
	movl	-20(%rbp), %eax
	cltq
	movzbl	-13(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L30
	addl	$1, -28(%rbp)
.L27:
	movl	mapW(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L31
	addl	$1, -24(%rbp)
.L26:
	movl	mapH(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L32
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	init_map, .-init_map
	.globl	print_map
	.type	print_map, @function
print_map:
.LFB5:
	.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	$0, -4(%rbp)
	jmp	.L35
.L38:
	movl	$0, -8(%rbp)
	jmp	.L36
.L37:
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -8(%rbp)
.L36:
	movl	mapW(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L37
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -4(%rbp)
.L35:
	movl	mapH(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L38
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	print_map, .-print_map
	.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:
