// File: /workspace/github_cpp_makefile_star2_O1/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 0x111f4(%rip), %r13     # 0x20fd8
leaq 0x8(%rsp), %r15
movq (%r13), %rdi
movl %r14d, %esi
movl $0x32, %edx
callq 0x5280
cmpl $-0x1, %eax
je 0xfe3b
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 0xfe3b
callq 0x5230
incl %r14d
cmpl $0x3, %r14d
jne 0xfde9
movslq %ebp, %r14
movslq 0x4(%rsp), %r12
imulq $0x96, %r14, %rax
leaq 0x533a6(%rip), %rcx     # 0x63200
addq %rax, %rcx
cmpb $0x0, (%r12,%rcx)
jne 0xfe71
cmpb $0x0, 0x114b7(%rip)     # 0x21322
je 0x1006d
movq (%r13), %rdi
imulq $0x258, %r14, %rax      # imm = 0x258
leaq 0x114cd(%rip), %r15     # 0x21350
addq %rax, %r15
movslq (%r15,%r12,4), %rax
leaq 0x869f(%rip), %rcx      # 0x18530
movl (%rcx,%rax,4), %eax
shll $0x8, %eax
movzwl %ax, %esi
xorl %edx, %edx
callq 0x5150
movslq (%r15,%r12,4), %rax
leaq 0x11384(%rip), %rcx     # 0x21230
movq (%rcx,%rax,8), %r9
leaq 0x920d(%rip), %rdx      # 0x190c4
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 0x8a5f6(%rip), %r14     # 0x9a4d0
addq %r15, %r14
movq (%r14,%r12,8), %rax
testq %rax, %rax
je 0xff56
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 0xff56
leaq (%r14,%r12,8), %rax
movq (%r13), %r14
movq (%rax), %rdx
addq $0x10, %rdx
leaq 0x92f5(%rip), %rsi      # 0x1921d
leaq 0x8(%rsp), %rdi
callq 0x15e6b
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 0xff56
callq 0x5230
leaq 0x5e5a3(%rip), %r14     # 0x6e500
addq %r15, %r14
cmpq $0x0, (%r14,%r12,8)
je 0x10099
movl %ebp, %edi
movl 0x4(%rsp), %esi
callq 0xfcc5
testb %al, %al
je 0x10099
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 0x10021
movq (%r13), %r12
movq (%r14), %rax
movq (%rax), %rcx
leaq 0x910a(%rip), %rdx      # 0x190cf
cmpb $0x0, 0x14(%rax)
leaq 0xa11a(%rip), %r14      # 0x1a0ea
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 0x166e0
movq %r15, %rdi
movq %r14, %rsi
callq 0x5420
movq 0x8(%rsp), %rsi
movq %r12, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x50d0
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x10021
callq 0x5230
movl 0x11301(%rip), %eax     # 0x21328
decl %eax
cmpl $0x1, %eax
ja 0x10099
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 0x10099
movq (%r13), %rdi
leaq 0x9078(%rip), %rsi      # 0x190d9
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x50d0
jmp 0x10099
movq (%r13), %rdi
movl $0x700, %esi            # imm = 0x700
xorl %edx, %edx
callq 0x5150
leaq 0x9031(%rip), %rdx      # 0x190b5
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 0x100b3
jmp 0x100b3
jmp 0x100b3
movq %rax, %r14
jmp 0x100c5
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x100c5
callq 0x5230
movq %r14, %rdi
callq 0x53d0