// File: /workspace/github_c_makefile_star2_O0/ajpaulson[P]srogue11/options.c
// Function: option
void option()
{
	OPTION	*op;
	int	wh;

	wclear(hw);
	touchwin(hw);
	/*
	 * Display current values of options
	 */
	for (op = optlist; op < &optlist[NUM_OPTS]; op++) {
		wh = op - optlist;
		mvwaddstr(hw, wh, 0, op->o_prompt);
		mvwaddstr(hw, wh, 16, op->o_opt);
	}
	/*
	 * Set values
	 */
	wmove(hw, 0, 0);
	for (op = optlist; op < &optlist[NUM_OPTS]; op++) {
		wmove(hw, op - optlist, 16);
		if ((wh = get_str(op->o_opt, hw))) {
			if (wh == QUIT)
				break;
			else if (op > optlist) {
				wmove(hw, op - optlist, 0);
				op -= 2;
			}
			else {
				putchar(7);
				wmove(hw, 0, 0);
				op -= 1;
			}
		}
	}
	/*
	 * Switch back to original screen
	 */
	dbotline(hw,spacemsg);
	restscr(cw);
	after = FALSE;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
leaq 0x264a9(%rip), %rax     # 0x39e58
movq (%rax), %rdi
callq 0x6110
leaq 0x2649a(%rip), %rax     # 0x39e58
movq (%rax), %rax
movq %rax, -0x18(%rbp)
xorl %eax, %eax
leaq 0x2648a(%rip), %rcx     # 0x39e58
cmpq (%rcx), %rax
je 0x139e9
leaq 0x2647e(%rip), %rax     # 0x39e58
movq (%rax), %rax
movswl 0x4(%rax), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x139f3
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x1c(%rbp)
jmp 0x139f3
movq -0x18(%rbp), %rdi
movl -0x1c(%rbp), %edx
xorl %esi, %esi
movl $0x1, %ecx
callq 0x61a0
leaq 0x229a3(%rip), %rax     # 0x363b0
movq %rax, -0x8(%rbp)
leaq 0x22998(%rip), %rax     # 0x363b0
addq $0x48, %rax
cmpq %rax, -0x8(%rbp)
jae 0x13ac3
movq -0x8(%rbp), %rax
leaq 0x2297f(%rip), %rcx     # 0x363b0
subq %rcx, %rax
movl $0x18, %ecx
cqto
idivq %rcx
movl %eax, -0xc(%rbp)
leaq 0x26410(%rip), %rax     # 0x39e58
movq (%rax), %rdi
movl -0xc(%rbp), %esi
xorl %edx, %edx
callq 0x6490
cmpl $-0x1, %eax
jne 0x13a5c
jmp 0x13a78
leaq 0x263f5(%rip), %rax     # 0x39e58
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x6560
leaq 0x263d9(%rip), %rax     # 0x39e58
movq (%rax), %rdi
movl -0xc(%rbp), %esi
movl $0x10, %edx
callq 0x6490
cmpl $-0x1, %eax
jne 0x13a96
jmp 0x13ab2
leaq 0x263bb(%rip), %rax     # 0x39e58
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x6560
movq -0x8(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x8(%rbp)
jmp 0x13a11
leaq 0x2638e(%rip), %rax     # 0x39e58
movq (%rax), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x6490
leaq 0x228d3(%rip), %rax     # 0x363b0
movq %rax, -0x8(%rbp)
leaq 0x228c8(%rip), %rax     # 0x363b0
addq $0x48, %rax
cmpq %rax, -0x8(%rbp)
jae 0x13bd4
leaq 0x2635b(%rip), %rax     # 0x39e58
movq (%rax), %rdi
movq -0x8(%rbp), %rax
leaq 0x228a5(%rip), %rcx     # 0x363b0
subq %rcx, %rax
movl $0x18, %ecx
cqto
idivq %rcx
movl %eax, %esi
movl $0x10, %edx
callq 0x6490
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x26325(%rip), %rax     # 0x39e58
movq (%rax), %rsi
callq 0x13c10
movl %eax, -0xc(%rbp)
cmpl $0x0, %eax
je 0x13bc1
cmpl $0x1, -0xc(%rbp)
jne 0x13b4e
jmp 0x13bd4
leaq 0x2285b(%rip), %rax     # 0x363b0
cmpq %rax, -0x8(%rbp)
jbe 0x13b94
leaq 0x262f6(%rip), %rax     # 0x39e58
movq (%rax), %rdi
movq -0x8(%rbp), %rax
leaq 0x22840(%rip), %rcx     # 0x363b0
subq %rcx, %rax
movl $0x18, %ecx
cqto
idivq %rcx
movl %eax, %esi
xorl %edx, %edx
callq 0x6490
movq -0x8(%rbp), %rax
addq $-0x30, %rax
movq %rax, -0x8(%rbp)
jmp 0x13bbd
movl $0x7, %edi
callq 0x6050
leaq 0x262b3(%rip), %rax     # 0x39e58
movq (%rax), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x6490
movq -0x8(%rbp), %rax
addq $-0x18, %rax
movq %rax, -0x8(%rbp)
jmp 0x13bbf
jmp 0x13bc1
jmp 0x13bc3
movq -0x8(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x8(%rbp)
jmp 0x13ae1
leaq 0x2627d(%rip), %rax     # 0x39e58
movq (%rax), %rdi
leaq 0x1f72b(%rip), %rsi     # 0x33310
callq 0xe270
leaq 0x2625f(%rip), %rax     # 0x39e50
movq (%rax), %rdi
callq 0xe2d0
leaq 0x1f70d(%rip), %rax     # 0x3330d
movb $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)