// File: /workspace/github_c_makefile_star2_O1/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 0xbf96(%rip), %rdi      # 0x11818
callq 0x3050
movq 0xbf8a(%rip), %rdi      # 0x11818
leaq 0x698f(%rip), %rcx      # 0xc224
movl $0x1, %esi
movl $0x1, %edx
xorl %eax, %eax
callq 0x31c0
movq 0xbf6b(%rip), %rdi      # 0x11818
leaq 0xbf8c(%rip), %r14      # 0x11840
movq 0x18(%r14), %rax
movq (%rax), %r8
leaq 0x6982(%rip), %rcx      # 0xc244
movl $0x2, %esi
movl $0x1, %edx
xorl %eax, %eax
callq 0x31c0
movq 0xbf3e(%rip), %rbx      # 0x11818
movq 0x10(%r14), %rdi
callq 0x7c74
leaq 0x6966(%rip), %rcx      # 0xc250
movq %rbx, %rdi
movl $0x3, %esi
movl $0x1, %edx
movq %rax, %r8
xorl %eax, %eax
callq 0x31c0
movq 0xbf10(%rip), %rdi      # 0x11818
leaq 0x694d(%rip), %rcx      # 0xc25c
movl $0x4, %esi
movl $0x1, %edx
xorl %eax, %eax
callq 0x31c0
movl 0x28(%r14), %edx
movq 0xbeed(%rip), %rdi      # 0x11818
cmpl $0x2, %edx
je 0x594b
cmpl $0x1, %edx
je 0x5942
testl %edx, %edx
jne 0x595b
leaq 0x6926(%rip), %rsi      # 0xc266
jmp 0x5952
leaq 0x6921(%rip), %rsi      # 0xc26a
jmp 0x5952
leaq 0x6922(%rip), %rsi      # 0xc274
xorl %eax, %eax
callq 0x3430
jmp 0x5969
leaq 0x691d(%rip), %rsi      # 0xc27f
xorl %eax, %eax
callq 0x3430
movq 0xbea8(%rip), %rdi      # 0x11818
leaq 0x6913(%rip), %rcx      # 0xc28a
xorl %ebx, %ebx
movl $0x5, %esi
movl $0x1, %edx
xorl %eax, %eax
callq 0x31c0
movq 0xbe87(%rip), %rdi      # 0x11818
movl 0x20(%r14), %edx
leaq 0x851d(%rip), %rsi      # 0xdeb9
xorl %eax, %eax
callq 0x3430
movq 0xbe6e(%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 0xbe4b(%rip), %rdi      # 0x11818
movq 0xbc7c(%rip), %rsi      # 0x11650
callq 0x4c4c
movq 0xbe38(%rip), %rdi      # 0x11818
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x31b0