// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
movq 0xb331(%rip), %rdi      # 0x10818
callq 0x3050
movq 0xb325(%rip), %rdi      # 0x10818
leaq 0x5d2a(%rip), %rcx      # 0xb224
pushq $0x1
popq %rbx
movl %ebx, %esi
movl %ebx, %edx
xorl %eax, %eax
callq 0x31c0
movq 0xb309(%rip), %rdi      # 0x10818
leaq 0xb32a(%rip), %r15      # 0x10840
movq 0x18(%r15), %rax
movq (%rax), %r8
leaq 0x5d20(%rip), %rcx      # 0xb244
pushq $0x2
popq %rsi
movl %ebx, %edx
xorl %eax, %eax
callq 0x31c0
movq 0xb2e1(%rip), %r14      # 0x10818
movq 0x10(%r15), %rdi
callq 0x7630
leaq 0x5d09(%rip), %rcx      # 0xb250
pushq $0x3
popq %rsi
movq %r14, %rdi
movl %ebx, %edx
movq %rax, %r8
xorl %eax, %eax
callq 0x31c0
movq 0xb2b8(%rip), %rdi      # 0x10818
leaq 0x5cf5(%rip), %rcx      # 0xb25c
pushq $0x4
popq %rsi
movl %ebx, %edx
xorl %eax, %eax
callq 0x31c0
movl 0x28(%r15), %edx
movq 0xb29a(%rip), %rdi      # 0x10818
cmpl $0x2, %edx
je 0x559e
cmpl $0x1, %edx
je 0x5595
testl %edx, %edx
jne 0x55ae
leaq 0x5cd3(%rip), %rsi      # 0xb266
jmp 0x55a5
leaq 0x5cce(%rip), %rsi      # 0xb26a
jmp 0x55a5
leaq 0x5ccf(%rip), %rsi      # 0xb274
xorl %eax, %eax
callq 0x3440
jmp 0x55bc
leaq 0x5cca(%rip), %rsi      # 0xb27f
xorl %eax, %eax
callq 0x3440
movq 0xb255(%rip), %rdi      # 0x10818
leaq 0x5cc0(%rip), %rcx      # 0xb28a
pushq $0x5
popq %rsi
pushq $0x1
popq %rdx
xorl %eax, %eax
callq 0x31c0
movq 0xb23a(%rip), %rdi      # 0x10818
movl 0x20(%r15), %edx
leaq 0x789c(%rip), %rsi      # 0xce85
xorl %eax, %eax
callq 0x3440
movq 0xb221(%rip), %rdi      # 0x10818
subq $0x8, %rsp
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq $0x0
pushq $0x0
pushq $0x0
callq 0x3100
addq $0x20, %rsp
movq 0xb1fb(%rip), %rdi      # 0x10818
movq 0xb02c(%rip), %rsi      # 0x10650
callq 0x4974
movq 0xb1e8(%rip), %rdi      # 0x10818
popq %rbx
popq %r14
popq %r15
jmp 0x31b0