// File: /workspace/github_cpp_makefile_star2_O2/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, (%rsp)
xorl %r14d, %r14d
movq 0x11c28(%rip), %r13     # 0x1dfd8
pushq $0x32
popq %r15
leaq 0x8(%rsp), %r12
pushq $-0x1
popq %rbp
cmpl $0x3, %r14d
je 0xc414
movq (%r13), %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0x5260
cmpl $-0x1, %eax
je 0xc40f
movq %r13, %rbx
movq (%r13), %r13
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %r12, %rdi
pushq $0x1e
popq %rsi
pushq $0x20
popq %rdx
callq 0x52a0
movq 0x8(%rsp), %rsi
movq %r13, %rdi
movl %ebp, %edx
callq 0x50d0
movq %r12, %rdi
callq 0x5418
movq %rbx, %r13
incl %r14d
jmp 0xc3bc
movl (%rsp), %r12d
movslq %r12d, %rbx
movl 0x4(%rsp), %ebp
movslq %ebp, %r15
imulq $0x96, %rbx, %rax
leaq 0x53dc0(%rip), %rcx     # 0x601f0
addq %rax, %rcx
cmpb $0x0, (%r15,%rcx)
jne 0xc447
cmpb $0x0, 0x11ed1(%rip)     # 0x1e312
je 0xc605
movq (%r13), %rdi
imulq $0x258, %rbx, %rax      # imm = 0x258
leaq 0x11ee7(%rip), %r14     # 0x1e340
addq %rax, %r14
movslq (%r14,%r15,4), %rax
leaq 0x8089(%rip), %rcx      # 0x144f0
movl (%rcx,%rax,4), %eax
shll $0x8, %eax
movzwl %ax, %esi
xorl %edx, %edx
callq 0x5150
movslq (%r14,%r15,4), %rax
leaq 0x11d9e(%rip), %rcx     # 0x1e220
movq (%rcx,%rax,8), %r9
leaq 0x8c00(%rip), %rdx      # 0x1508d
pushq $0x32
popq %rsi
xorl %edi, %edi
movl %r12d, %ecx
movl %ebp, %r8d
xorl %eax, %eax
callq 0x5310
imulq $0x4b0, %rbx, %r12      # imm = 0x4B0
leaq 0x8b013(%rip), %rbx     # 0x974c0
addq %r12, %rbx
movq (%rbx,%r15,8), %rax
testq %rax, %rax
je 0xc51c
movq (%r13), %rdi
movl 0x8(%rax), %eax
shll $0x8, %eax
movzwl %ax, %esi
xorl %edx, %edx
callq 0x5150
movq (%r13), %rdi
pushq $0x1
popq %rsi
pushq $0x32
popq %rdx
callq 0x5260
cmpl $-0x1, %eax
je 0xc51c
leaq (%rbx,%r15,8), %rax
movq (%r13), %rbx
movq (%rax), %rdx
addq $0x10, %rdx
leaq 0x8cef(%rip), %rsi      # 0x151e6
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x10d4b
movq (%r14), %rsi
pushq $-0x1
popq %rdx
movq %rbx, %rdi
callq 0x50d0
leaq 0x8(%rsp), %rdi
callq 0x5418
leaq 0x5efcd(%rip), %rbx     # 0x6b4f0
addq %r12, %rbx
cmpq $0x0, (%rbx,%r15,8)
je 0xc62e
movl (%rsp), %edi
movl %ebp, %esi
callq 0xc2fd
testb %al, %al
je 0xc62e
leaq (%rbx,%r15,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
pushq $0x2
popq %rsi
pushq $0x32
popq %rdx
callq 0x5260
cmpl $-0x1, %eax
je 0xc5bf
movq (%r13), %rbx
movq (%r14), %rax
movl $0xf0, %esi
addq (%rax), %rsi
leaq 0x8b0d(%rip), %rcx      # 0x15098
leaq 0x9b21(%rip), %rdx      # 0x160b3
cmpb $0x0, 0x14(%rax)
cmovneq %rcx, %rdx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x11030
movq (%r14), %rsi
pushq $-0x1
popq %rdx
movq %rbx, %rdi
callq 0x50d0
leaq 0x8(%rsp), %rdi
callq 0x5418
movl 0x11d53(%rip), %eax     # 0x1e318
decl %eax
cmpl $0x1, %eax
ja 0xc62e
movq (%r13), %rdi
movl $0x700, %esi            # imm = 0x700
xorl %edx, %edx
callq 0x5150
movq (%r13), %rdi
pushq $0x2
popq %rsi
pushq $0x40
popq %rdx
callq 0x5260
cmpl $-0x1, %eax
je 0xc62e
movq (%r13), %rdi
leaq 0x8aa7(%rip), %rsi      # 0x150a2
pushq $-0x1
popq %rdx
callq 0x50d0
jmp 0xc62e
movq (%r13), %rdi
movl $0x700, %esi            # imm = 0x700
xorl %edx, %edx
callq 0x5150
leaq 0x8a62(%rip), %rdx      # 0x1507e
pushq $0x32
popq %rsi
xorl %edi, %edi
movl %r12d, %ecx
movl %ebp, %r8d
xorl %eax, %eax
callq 0x5310
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xc641
jmp 0xc641
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x5418
jmp 0xc653
movq %rax, %rbx
movq %rbx, %rdi
callq 0x53c0