// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: draw_tile_description(int, int)
void draw_tile_description(int x, int y)
{
	for(int i=0;i<3;i++)
	{
		mvaddstr(i,(viewport_width+1),std::string(disp_columns-(viewport_width+1),' ').c_str());
	}
	if (!map_seen[x][y] && !debug)
	{
		attron(COLOR_PAIR(COLOR_WHITE));
		mvprintw(0,(viewport_width+1),"%d, %d, unseen",x,y);
	}
	else
	{
		attron(COLOR_PAIR(terrain_colours[map_terrain[x][y]]));
		mvprintw(0,(viewport_width+1),"%d, %d, %s",x,y,terrain_descriptors[map_terrain[x][y]]);
		if (map_items[x][y] != NULL)
		{
			attron(COLOR_PAIR(map_items[x][y]->colour));
			mvaddstr(1,(viewport_width+1),("a "+map_items[x][y]->name).c_str());
		}
		if (map_occupants[x][y] != NULL)
		{
			//if(sym_los_in_range(p_ptr->x,p_ptr->y,x,y,is_opaque) || debug)
			if(tile_visible(x,y))
			{
				attron(COLOR_PAIR(map_occupants[x][y]->sspecies->colour));
				mvaddstr(2,(viewport_width+1),(map_occupants[x][y]->sspecies->name +
					(map_occupants[x][y]->running?", running":"         ")).c_str());
				if(current_mode == FIRE_MODE || current_mode == THROW_MODE)
				{
					attron(COLOR_PAIR(COLOR_WHITE));
					mvaddstr(2, disp_columns-16," ('i' for info)");
				}
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %esi, 0x4(%rsp)
movl %edi, %ebp
xorl %r14d, %r14d
leaq 0x18(%rsp), %rbx
movq 0x117cd(%rip), %r13     # 0x20fd8
leaq 0x8(%rsp), %r15
movq (%r13), %rdi
movl %r14d, %esi
movl $0x32, %edx
callq 0x5280
cmpl $-0x1, %eax
je 0xf862
movq (%r13), %r12
movq %rbx, 0x8(%rsp)
movl $0x1e, %esi
movq %r15, %rdi
movl $0x20, %edx
callq 0x52c0
movq 0x8(%rsp), %rsi
movq %r12, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x50d0
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0xf862
callq 0x5230
incl %r14d
cmpl $0x3, %r14d
jne 0xf810
movslq %ebp, %r14
movslq 0x4(%rsp), %r12
imulq $0x96, %r14, %rax
leaq 0x5396f(%rip), %rcx     # 0x631f0
addq %rax, %rcx
cmpb $0x0, (%r12,%rcx)
jne 0xf898
cmpb $0x0, 0x11a80(%rip)     # 0x21312
je 0xfa94
movq (%r13), %rdi
imulq $0x258, %r14, %rax      # imm = 0x258
leaq 0x11a96(%rip), %r15     # 0x21340
addq %rax, %r15
movslq (%r15,%r12,4), %rax
leaq 0x8c98(%rip), %rcx      # 0x18550
movl (%rcx,%rax,4), %eax
shll $0x8, %eax
movzwl %ax, %esi
xorl %edx, %edx
callq 0x5150
movslq (%r15,%r12,4), %rax
leaq 0x1194d(%rip), %rcx     # 0x21220
movq (%rcx,%rax,8), %r9
leaq 0x9856(%rip), %rdx      # 0x19134
xorl %edi, %edi
movl $0x32, %esi
movl %ebp, %ecx
movl 0x4(%rsp), %r8d
xorl %eax, %eax
callq 0x5320
imulq $0x4b0, %r14, %r15      # imm = 0x4B0
leaq 0x8abbf(%rip), %r14     # 0x9a4c0
addq %r15, %r14
movq (%r14,%r12,8), %rax
testq %rax, %rax
je 0xf97d
movq (%r13), %rdi
movl 0x8(%rax), %eax
shll $0x8, %eax
movzwl %ax, %esi
xorl %edx, %edx
callq 0x5150
movq (%r13), %rdi
movl $0x1, %esi
movl $0x32, %edx
callq 0x5280
cmpl $-0x1, %eax
je 0xf97d
leaq (%r14,%r12,8), %rax
movq (%r13), %r14
movq (%rax), %rdx
addq $0x10, %rdx
leaq 0x993e(%rip), %rsi      # 0x1928d
leaq 0x8(%rsp), %rdi
callq 0x157ab
leaq 0x8(%rsp), %rax
movq (%rax), %rsi
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x50d0
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0xf97d
callq 0x5230
leaq 0x5eb6c(%rip), %r14     # 0x6e4f0
addq %r15, %r14
cmpq $0x0, (%r14,%r12,8)
je 0xfac0
movl %ebp, %edi
movl 0x4(%rsp), %esi
callq 0xf6f1
testb %al, %al
je 0xfac0
leaq (%r14,%r12,8), %r14
movq (%r13), %rdi
movq (%r14), %rax
movq (%rax), %rax
movl 0x28(%rax), %eax
shll $0x8, %eax
movzwl %ax, %esi
xorl %edx, %edx
callq 0x5150
movq (%r13), %rdi
movl $0x2, %esi
movl $0x32, %edx
callq 0x5280
cmpl $-0x1, %eax
je 0xfa48
movq (%r13), %r12
movq (%r14), %rax
movq (%rax), %rcx
leaq 0x9753(%rip), %rdx      # 0x1913f
cmpb $0x0, 0x14(%rax)
leaq 0xa763(%rip), %r14      # 0x1a15a
cmovneq %rdx, %r14
leaq 0x8(%rsp), %r15
movq %rbx, (%r15)
movq 0xf0(%rcx), %rsi
movq 0xf8(%rcx), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x15f56
movq %r15, %rdi
movq %r14, %rsi
callq 0x5410
movq 0x8(%rsp), %rsi
movq %r12, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x50d0
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0xfa48
callq 0x5230
movl 0x118ca(%rip), %eax     # 0x21318
decl %eax
cmpl $0x1, %eax
ja 0xfac0
movq (%r13), %rdi
movl $0x700, %esi            # imm = 0x700
xorl %edx, %edx
callq 0x5150
movq (%r13), %rdi
movl $0x2, %esi
movl $0x40, %edx
callq 0x5280
cmpl $-0x1, %eax
je 0xfac0
movq (%r13), %rdi
leaq 0x96c1(%rip), %rsi      # 0x19149
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x50d0
jmp 0xfac0
movq (%r13), %rdi
movl $0x700, %esi            # imm = 0x700
xorl %edx, %edx
callq 0x5150
leaq 0x967a(%rip), %rdx      # 0x19125
xorl %edi, %edi
movl $0x32, %esi
movl %ebp, %ecx
movl 0x4(%rsp), %r8d
xorl %eax, %eax
callq 0x5320
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xfada
jmp 0xfada
jmp 0xfada
movq %rax, %r14
jmp 0xfaec
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0xfaec
callq 0x5230
movq %r14, %rdi
callq 0x53d0