// File: /workspace/github_c_makefile_star2_O0/ajpaulson[P]srogue11/rip.c
// Function: death
void death(char monst)
{
	char dp, *killer;
	struct tm *lt;
	time_t date;
	char buf[LINLEN];
	struct tm *localtime();

	time(&date);
	lt = localtime(&date);
	clear();
	move(3, 0);
	for (dp = 0; dp < RIP_LINES; dp++)
		printw("%s\n", rip[dp]);
	mvaddstr(10, 36 - ((strlen(whoami) + 1) / 2), whoami);
	killer = killname(monst);
	mvaddstr(12, 43, vowelstr(killer));
	mvaddstr(14, 36 - ((strlen(killer) + 1) / 2), killer);
	purse -= purse/10;
	sprintf(buf, "%d Gold Pieces", purse);
	mvaddstr(16, 36 - ((strlen(buf) + 1) / 2), buf);
	sprintf(prbuf, "%d/%d/%d", lt->tm_mon + 1, lt->tm_mday, 1900+lt->tm_year);
	mvaddstr(18, 32, prbuf);
	move(LINES-1, 0);
	refresh();
	score(purse, KILLED, monst);
	byebye(0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movb %dil, %al
movb %al, -0x1(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x62f0
leaq -0x20(%rbp), %rdi
callq 0x6070
movq %rax, -0x18(%rbp)
movq 0x1ad32(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
callq 0x6110
movq 0x1ad23(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
movl $0x3, %esi
xorl %edx, %edx
callq 0x6490
movb $0x0, -0x2(%rbp)
movsbq -0x2(%rbp), %rax
cmpq $0x13, %rax
jae 0x182e3
movsbq -0x2(%rbp), %rcx
leaq 0x1e1e9(%rip), %rax     # 0x364b0
movq (%rax,%rcx,8), %rsi
leaq 0x12b8a(%rip), %rdi     # 0x2ae5c
movb $0x0, %al
callq 0x64e0
movb -0x2(%rbp), %al
addb $0x1, %al
movb %al, -0x2(%rbp)
jmp 0x182b0
movq 0x1acd6(%rip), %rax     # 0x32fc0
movq (%rax), %rax
movq %rax, -0x78(%rbp)
leaq 0x1f058(%rip), %rdi     # 0x37350
callq 0x6160
movq -0x78(%rbp), %rdi
movq %rax, %rcx
addq $0x1, %rcx
shrq %rcx
movl $0x24, %eax
subq %rcx, %rax
movl %eax, %edx
movl $0xa, %esi
callq 0x6490
cmpl $-0x1, %eax
jne 0x18326
jmp 0x18341
movq 0x1ac93(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
leaq 0x1f019(%rip), %rsi     # 0x37350
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x6560
movzbl -0x1(%rbp), %edi
callq 0x18560
movq %rax, -0x10(%rbp)
movq 0x1ac6b(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
movl $0xc, %esi
movl $0x2b, %edx
callq 0x6490
cmpl $-0x1, %eax
jne 0x1836e
jmp 0x18396
movq 0x1ac4b(%rip), %rax     # 0x32fc0
movq (%rax), %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rdi
callq 0xff50
movq -0x80(%rbp), %rdi
movq %rax, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x6560
movq 0x1ac23(%rip), %rax     # 0x32fc0
movq (%rax), %rax
movq %rax, -0x88(%rbp)
movq -0x10(%rbp), %rdi
callq 0x6160
movq -0x88(%rbp), %rdi
movq %rax, %rcx
addq $0x1, %rcx
shrq %rcx
movl $0x24, %eax
subq %rcx, %rax
movl %eax, %edx
movl $0xe, %esi
callq 0x6490
cmpl $-0x1, %eax
jne 0x183dc
jmp 0x183f4
movq 0x1abdd(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x6560
leaq 0x1e8e1(%rip), %rax     # 0x36cdc
movl (%rax), %eax
movl $0xa, %ecx
cltd
idivl %ecx
leaq 0x1e8d0(%rip), %rcx     # 0x36cdc
movl (%rcx), %ecx
subl %eax, %ecx
leaq 0x1e8c5(%rip), %rax     # 0x36cdc
movl %ecx, (%rax)
leaq -0x70(%rbp), %rdi
leaq 0x1e8b8(%rip), %rax     # 0x36cdc
movl (%rax), %edx
leaq 0x1401f(%rip), %rsi     # 0x2c44c
movb $0x0, %al
callq 0x64f0
movq 0x1ab85(%rip), %rax     # 0x32fc0
movq (%rax), %rax
movq %rax, -0x90(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x6160
movq -0x90(%rbp), %rdi
movq %rax, %rcx
addq $0x1, %rcx
shrq %rcx
movl $0x24, %eax
subq %rcx, %rax
movl %eax, %edx
movl $0x10, %esi
callq 0x6490
cmpl $-0x1, %eax
jne 0x1847a
jmp 0x18492
movq 0x1ab3f(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
leaq -0x70(%rbp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x6560
movq -0x18(%rbp), %rax
movl 0x10(%rax), %edx
addl $0x1, %edx
movq -0x18(%rbp), %rax
movl 0xc(%rax), %ecx
movq -0x18(%rbp), %rax
movl 0x14(%rax), %r8d
addl $0x76c, %r8d            # imm = 0x76C
leaq 0x1ee47(%rip), %rdi     # 0x37300
leaq 0x13f9b(%rip), %rsi     # 0x2c45b
movb $0x0, %al
callq 0x64f0
movq 0x1aaf2(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
movl $0x12, %esi
movl $0x20, %edx
callq 0x6490
cmpl $-0x1, %eax
jne 0x184e7
jmp 0x18502
movq 0x1aad2(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
leaq 0x1ee08(%rip), %rsi     # 0x37300
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x6560
movq 0x1aab7(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
movq 0x1aacd(%rip), %rax     # 0x32fe0
movl (%rax), %esi
subl $0x1, %esi
xorl %edx, %edx
callq 0x6490
movq 0x1aa9a(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
callq 0x61f0
leaq 0x1e7a7(%rip), %rax     # 0x36cdc
movl (%rax), %edi
xorl %esi, %esi
movsbl -0x1(%rbp), %edx
callq 0x18640
xorl %edi, %edi
movb $0x0, %al
callq 0xeef0
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)