// File: /workspace/github_c_makefile_star2_O0/ajpaulson[P]srogue11/io.c
// Function: status
int status(int fromfuse)
{
	int totwght, carwght;
	struct real *stef, *stre, *stmx;
	char *pb;
	int oy, ox, ch;
	static char buf[LINLEN];
	static char hwidth[] = { "%2d(%2d)" };

	/*
	 * If nothing has changed since the last time, then done
	 */
	if (nochange)
		return 0;
	nochange = TRUE;
	updpack();					/* get all weight info */
	stef = &player.t_stats.s_ef;
	stre = &player.t_stats.s_re;
	stmx = &max_stats.s_re;
	totwght = him->s_carry / 10;
	carwght = him->s_pack / 10;
	getyx(cw, oy, ox);
	if (him->s_maxhp >= 100) {
		hwidth[1] = '3';	/* if hit point >= 100	*/
		hwidth[5] = '3';	/* change %2d to %3d	*/
	}
	if (stre->a_str < stmx->a_str)
		ch = '*';
	else
		ch = ' ';
	sprintf(buf, "Str: %2d(%c%2d)", stef->a_str, ch, stre->a_str);
	pb = &buf[strlen(buf)];
	if (stre->a_dex < stmx->a_dex)
		ch = '*';
	else
		ch = ' ';
	sprintf(pb, "  Dex: %2d(%c%2d)", stef->a_dex, ch, stre->a_dex);
	pb = &buf[strlen(buf)];
	if (stre->a_wis < stmx->a_wis)
		ch = '*';
	else
		ch = ' ';
	sprintf(pb, "  Wis: %2d(%c%2d)", stef->a_wis, ch, stre->a_wis);
	pb = &buf[strlen(buf)];
	if (stre->a_con < stmx->a_con)
		ch = '*';
	else
		ch = ' ';
	sprintf(pb, "  Con: %2d(%c%2d)", stef->a_con, ch, stre->a_con);
	pb = &buf[strlen(buf)];
	sprintf(pb, "  Carry: %3d(%3d)", carwght, totwght);
	mvwaddstr(cw, LINES - 1, 0, buf);
	sprintf(buf, "Level: %d  Gold: %5d  Hp: ",level, purse);
	pb = &buf[strlen(buf)];
	sprintf(pb, hwidth, him->s_hpt, him->s_maxhp);
	pb = &buf[strlen(buf)];
	sprintf(pb,"  Ac: %-2d  Exp: %d/%ld",cur_armor == NULL ? him->s_arm :
	  cur_armor->o_ac, him->s_lvl, him->s_exp);
	carwght = (packvol * 100) / V_PACK;
	pb = &buf[strlen(buf)];
	sprintf(pb, "  Vol: %3d%%", carwght);
	mvwaddstr(cw, LINES - 2, 0, buf);
	waddstr(cw, hungstr[hungry_state]);
	wclrtoeol(cw);
	wmove(cw, oy, ox);
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl %edi, -0x8(%rbp)
leaq 0x28ff1(%rip), %rax     # 0x36d13
testb $0x1, (%rax)
je 0xdd33
movl $0x0, -0x4(%rbp)
jmp 0xe1c0
leaq 0x28fd9(%rip), %rax     # 0x36d13
movb $0x1, (%rax)
movb $0x0, %al
callq 0xaba0
leaq 0x29385(%rip), %rax     # 0x370d0
addq $0x10, %rax
movq %rax, -0x18(%rbp)
leaq 0x29376(%rip), %rax     # 0x370d0
movq %rax, -0x20(%rbp)
leaq 0x29403(%rip), %rax     # 0x37168
movq %rax, -0x28(%rbp)
leaq 0x29460(%rip), %rax     # 0x371d0
movq (%rax), %rax
movl 0x3c(%rax), %eax
movl $0xa, %ecx
cltd
idivl %ecx
movl %eax, -0xc(%rbp)
leaq 0x29448(%rip), %rax     # 0x371d0
movq (%rax), %rax
movl 0x38(%rax), %eax
movl $0xa, %ecx
cltd
idivl %ecx
movl %eax, -0x10(%rbp)
xorl %eax, %eax
leaq 0x2c0ae(%rip), %rcx     # 0x39e50
cmpq (%rcx), %rax
je 0xddb9
leaq 0x2c0a2(%rip), %rax     # 0x39e50
movq (%rax), %rax
movswl (%rax), %eax
movl %eax, -0x40(%rbp)
jmp 0xddc3
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x40(%rbp)
jmp 0xddc3
movl -0x40(%rbp), %eax
movl %eax, -0x34(%rbp)
xorl %eax, %eax
leaq 0x2c07e(%rip), %rcx     # 0x39e50
cmpq (%rcx), %rax
je 0xddea
leaq 0x2c072(%rip), %rax     # 0x39e50
movq (%rax), %rax
movswl 0x2(%rax), %eax
movl %eax, -0x44(%rbp)
jmp 0xddf4
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x44(%rbp)
jmp 0xddf4
movl -0x44(%rbp), %eax
movl %eax, -0x38(%rbp)
leaq 0x293cf(%rip), %rax     # 0x371d0
movq (%rax), %rax
cmpl $0x64, 0x34(%rax)
jl 0xde18
movb $0x33, 0x28590(%rip)    # 0x363a1
movb $0x33, 0x2858d(%rip)    # 0x363a5
movq -0x20(%rbp), %rax
movl (%rax), %eax
movq -0x28(%rbp), %rcx
cmpl (%rcx), %eax
jge 0xde2f
movl $0x2a, -0x3c(%rbp)
jmp 0xde36
movl $0x20, -0x3c(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %edx
movl -0x3c(%rbp), %ecx
movq -0x20(%rbp), %rax
movl (%rax), %r8d
leaq 0x2e033(%rip), %rdi     # 0x3be80
leaq 0x1d02b(%rip), %rsi     # 0x2ae7f
movb $0x0, %al
callq 0x64f0
leaq 0x2e01e(%rip), %rdi     # 0x3be80
callq 0x6160
movq %rax, %rcx
leaq 0x2e00f(%rip), %rax     # 0x3be80
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x28(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jge 0xde91
movl $0x2a, -0x3c(%rbp)
jmp 0xde98
movl $0x20, -0x3c(%rbp)
movq -0x30(%rbp), %rdi
movq -0x18(%rbp), %rax
movl 0x4(%rax), %edx
movl -0x3c(%rbp), %ecx
movq -0x20(%rbp), %rax
movl 0x4(%rax), %r8d
leaq 0x1cfda(%rip), %rsi     # 0x2ae8f
movb $0x0, %al
callq 0x64f0
leaq 0x2dfbd(%rip), %rdi     # 0x3be80
callq 0x6160
movq %rax, %rcx
leaq 0x2dfae(%rip), %rax     # 0x3be80
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x28(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0xdef2
movl $0x2a, -0x3c(%rbp)
jmp 0xdef9
movl $0x20, -0x3c(%rbp)
movq -0x30(%rbp), %rdi
movq -0x18(%rbp), %rax
movl 0x8(%rax), %edx
movl -0x3c(%rbp), %ecx
movq -0x20(%rbp), %rax
movl 0x8(%rax), %r8d
leaq 0x1cf8b(%rip), %rsi     # 0x2aea1
movb $0x0, %al
callq 0x64f0
leaq 0x2df5c(%rip), %rdi     # 0x3be80
callq 0x6160
movq %rax, %rcx
leaq 0x2df4d(%rip), %rax     # 0x3be80
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
movl 0xc(%rax), %eax
movq -0x28(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jge 0xdf53
movl $0x2a, -0x3c(%rbp)
jmp 0xdf5a
movl $0x20, -0x3c(%rbp)
movq -0x30(%rbp), %rdi
movq -0x18(%rbp), %rax
movl 0xc(%rax), %edx
movl -0x3c(%rbp), %ecx
movq -0x20(%rbp), %rax
movl 0xc(%rax), %r8d
leaq 0x1cf3c(%rip), %rsi     # 0x2aeb3
movb $0x0, %al
callq 0x64f0
leaq 0x2defb(%rip), %rdi     # 0x3be80
callq 0x6160
movq %rax, %rcx
leaq 0x2deec(%rip), %rax     # 0x3be80
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movl -0x10(%rbp), %edx
movl -0xc(%rbp), %ecx
leaq 0x1cf19(%rip), %rsi     # 0x2aec5
movb $0x0, %al
callq 0x64f0
leaq 0x2be96(%rip), %rax     # 0x39e50
movq (%rax), %rdi
movq 0x2501c(%rip), %rax     # 0x32fe0
movl (%rax), %esi
subl $0x1, %esi
xorl %edx, %edx
callq 0x6490
cmpl $-0x1, %eax
jne 0xdfd7
jmp 0xdff2
leaq 0x2be72(%rip), %rax     # 0x39e50
movq (%rax), %rdi
leaq 0x2de98(%rip), %rsi     # 0x3be80
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x6560
leaq 0x252f7(%rip), %rax     # 0x332f0
movl (%rax), %edx
leaq 0x28cda(%rip), %rax     # 0x36cdc
movl (%rax), %ecx
leaq 0x2de75(%rip), %rdi     # 0x3be80
leaq 0x1cec5(%rip), %rsi     # 0x2aed7
movb $0x0, %al
callq 0x64f0
leaq 0x2de60(%rip), %rdi     # 0x3be80
callq 0x6160
movq %rax, %rcx
leaq 0x2de51(%rip), %rax     # 0x3be80
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
leaq 0x2918f(%rip), %rax     # 0x371d0
movq (%rax), %rax
movl 0x30(%rax), %edx
leaq 0x29182(%rip), %rax     # 0x371d0
movq (%rax), %rax
movl 0x34(%rax), %ecx
leaq 0x28345(%rip), %rsi     # 0x363a0
movb $0x0, %al
callq 0x64f0
leaq 0x2de17(%rip), %rdi     # 0x3be80
callq 0x6160
movq %rax, %rcx
leaq 0x2de08(%rip), %rax     # 0x3be80
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq 0x28c3a(%rip), %rax     # 0x36cc8
cmpq $0x0, (%rax)
jne 0xe0a6
leaq 0x29135(%rip), %rax     # 0x371d0
movq (%rax), %rax
movl 0x2c(%rax), %eax
movl %eax, -0x54(%rbp)
jmp 0xe0b6
leaq 0x28c1b(%rip), %rax     # 0x36cc8
movq (%rax), %rax
movl 0x34(%rax), %eax
movl %eax, -0x54(%rbp)
movq -0x50(%rbp), %rdi
movl -0x54(%rbp), %edx
leaq 0x2910c(%rip), %rax     # 0x371d0
movq (%rax), %rax
movl 0x28(%rax), %ecx
leaq 0x290ff(%rip), %rax     # 0x371d0
movq (%rax), %rax
movq 0x20(%rax), %r8
leaq 0x1ce13(%rip), %rsi     # 0x2aef2
movb $0x0, %al
callq 0x64f0
leaq 0x28bf7(%rip), %rax     # 0x36ce4
imull $0x64, (%rax), %eax
movl $0xe10, %ecx            # imm = 0xE10
cltd
idivl %ecx
movl %eax, -0x10(%rbp)
leaq 0x2dd7e(%rip), %rdi     # 0x3be80
callq 0x6160
movq %rax, %rcx
leaq 0x2dd6f(%rip), %rax     # 0x3be80
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movl -0x10(%rbp), %edx
leaq 0x1cde4(%rip), %rsi     # 0x2af0a
movb $0x0, %al
callq 0x64f0
leaq 0x2bd1c(%rip), %rax     # 0x39e50
movq (%rax), %rdi
movq 0x24ea2(%rip), %rax     # 0x32fe0
movl (%rax), %esi
subl $0x2, %esi
xorl %edx, %edx
callq 0x6490
cmpl $-0x1, %eax
jne 0xe151
jmp 0xe16c
leaq 0x2bcf8(%rip), %rax     # 0x39e50
movq (%rax), %rdi
leaq 0x2dd1e(%rip), %rsi     # 0x3be80
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x6560
leaq 0x2bcdd(%rip), %rax     # 0x39e50
movq (%rax), %rdi
leaq 0x28b83(%rip), %rax     # 0x36d00
movslq (%rax), %rcx
leaq 0x281f9(%rip), %rax     # 0x36380
movq (%rax,%rcx,8), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x6560
leaq 0x2bcb4(%rip), %rax     # 0x39e50
movq (%rax), %rdi
callq 0x64a0
leaq 0x2bca5(%rip), %rax     # 0x39e50
movq (%rax), %rdi
movl -0x34(%rbp), %esi
movl -0x38(%rbp), %edx
callq 0x6490
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)