// File: /workspace/github_c_makefile_star2_O3/sTeeLM[P]dwipe/gui.c
// Function: dwipe_gui_options
void dwipe_gui_options( void )
{
/**
 * Updates the options window.
 *
 * @modifies  options_window
 *
 */

	/* Erase the window. */
	werase( options_window );

	mvwprintw( options_window, DWIPE_GUI_OPTIONS_ENTROPY_Y, DWIPE_GUI_OPTIONS_ENTROPY_X, \
	  "Entropy: Linux Kernel (urandom)" );

	mvwprintw( options_window, DWIPE_GUI_OPTIONS_PRNG_Y,    DWIPE_GUI_OPTIONS_PRNG_X, \
	  "PRNG:    %s", dwipe_options.prng->label );

	mvwprintw( options_window, DWIPE_GUI_OPTIONS_METHOD_Y,  DWIPE_GUI_OPTIONS_METHOD_X, \
	  "Method:  %s", dwipe_method_label( dwipe_options.method) );

	mvwprintw( options_window, DWIPE_GUI_OPTIONS_VERIFY_Y,  DWIPE_GUI_OPTIONS_VERIFY_X,  "Verify:  " );

	switch( dwipe_options.verify )
	{
		case DWIPE_VERIFY_NONE:
			wprintw( options_window, "Off" );
			break;

		case DWIPE_VERIFY_LAST:
			wprintw( options_window, "Last Pass" );
			break;

		case DWIPE_VERIFY_ALL:
			wprintw( options_window, "All Passes" );
			break;

		default:
			wprintw( options_window, "Unknown %i", dwipe_options.verify );
			
	} /* switch verify */


	mvwprintw( options_window, DWIPE_GUI_OPTIONS_ROUNDS_Y,  DWIPE_GUI_OPTIONS_ROUNDS_X,  "Rounds:  " );
	wprintw( options_window, "%i", dwipe_options.rounds );


	/* Add a border. */
	box( options_window, 0, 0 );

	/* Add a title. */
	dwipe_gui_title( options_window, options_title );

	/* Refresh the window. */
	wrefresh( options_window );

}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0xbf27(%rip), %rdi      # 0x11818
callq 0x3050
movq 0xbf1b(%rip), %rdi      # 0x11818
leaq 0x6920(%rip), %rcx      # 0xc224
movl $0x1, %esi
movl $0x1, %edx
xorl %eax, %eax
callq 0x31c0
movq 0xbefc(%rip), %rdi      # 0x11818
leaq 0xbf1d(%rip), %r14      # 0x11840
movq 0x18(%r14), %rax
movq (%rax), %r8
leaq 0x6913(%rip), %rcx      # 0xc244
movl $0x2, %esi
movl $0x1, %edx
xorl %eax, %eax
callq 0x31c0
movq 0xbecf(%rip), %rbx      # 0x11818
movq 0x10(%r14), %rdi
callq 0x7cf8
leaq 0x68f7(%rip), %rcx      # 0xc250
movq %rbx, %rdi
movl $0x3, %esi
movl $0x1, %edx
movq %rax, %r8
xorl %eax, %eax
callq 0x31c0
movq 0xbea1(%rip), %rdi      # 0x11818
leaq 0x68de(%rip), %rcx      # 0xc25c
movl $0x4, %esi
movl $0x1, %edx
xorl %eax, %eax
callq 0x31c0
movl 0x28(%r14), %edx
movq 0xbe7e(%rip), %rdi      # 0x11818
cmpl $0x2, %edx
je 0x59ba
cmpl $0x1, %edx
je 0x59b1
testl %edx, %edx
jne 0x59ca
leaq 0x68b7(%rip), %rsi      # 0xc266
jmp 0x59c1
leaq 0x68b2(%rip), %rsi      # 0xc26a
jmp 0x59c1
leaq 0x68b3(%rip), %rsi      # 0xc274
xorl %eax, %eax
callq 0x3440
jmp 0x59d8
leaq 0x68ae(%rip), %rsi      # 0xc27f
xorl %eax, %eax
callq 0x3440
movq 0xbe39(%rip), %rdi      # 0x11818
leaq 0x68a4(%rip), %rcx      # 0xc28a
xorl %ebx, %ebx
movl $0x5, %esi
movl $0x1, %edx
xorl %eax, %eax
callq 0x31c0
movq 0xbe18(%rip), %rdi      # 0x11818
movl 0x20(%r14), %edx
leaq 0x84ae(%rip), %rsi      # 0xdeb9
xorl %eax, %eax
callq 0x3440
movq 0xbdff(%rip), %rdi      # 0x11818
subq $0x8, %rsp
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %rbx
pushq %rbx
pushq %rbx
callq 0x3100
addq $0x20, %rsp
movq 0xbddc(%rip), %rdi      # 0x11818
movq 0xbc0d(%rip), %rsi      # 0x11650
callq 0x4cbc
movq 0xbdc9(%rip), %rdi      # 0x11818
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x31b0