// File: /workspace/github_c_makefile_star2_O0/saltyJeff[P]uClibcpp/extra/config/conf.c
// Function: conf_sym
static int conf_sym(struct menu *menu)
{
	struct symbol *sym = menu->sym;
	int type;
	tristate oldval, newval;
	const char *help;

	while (1) {
		printf("%*s%s ", indent - 1, "", menu->prompt->text);
		if (sym->name)
			printf("(%s) ", sym->name);
		type = sym_get_type(sym);
		putchar('[');
		oldval = sym_get_tristate_value(sym);
		switch (oldval) {
		case no:
			putchar('N');
			break;
		case mod:
			putchar('M');
			break;
		case yes:
			putchar('Y');
			break;
		}
		if (oldval != no && sym_tristate_within_range(sym, no))
			printf("/n");
		if (oldval != mod && sym_tristate_within_range(sym, mod))
			printf("/m");
		if (oldval != yes && sym_tristate_within_range(sym, yes))
			printf("/y");
		if (sym->help)
			printf("/?");
		printf("] ");
		conf_askvalue(sym, sym_get_string_value(sym));
		strip(line);

		switch (line[0]) {
		case 'n':
		case 'N':
			newval = no;
			if (!line[1] || !strcmp(&line[1], "o"))
				break;
			continue;
		case 'm':
		case 'M':
			newval = mod;
			if (!line[1])
				break;
			continue;
		case 'y':
		case 'Y':
			newval = yes;
			if (!line[1] || !strcmp(&line[1], "es"))
				break;
			continue;
		case 0:
			newval = oldval;
			break;
		case '?':
			goto help;
		default:
			continue;
		}
		if (sym_set_tristate_value(sym, newval))
			return 0;
help:
		help = nohelp_text;
		if (sym->help)
			help = sym->help;
		printf("\n%s\n", help);
	}
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x28(%rsp)
movl 0x15d43(%rip), %esi     # 0x191a0
subl $0x1, %esi
movq 0x30(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x18(%rax), %rcx
leaq 0xccac(%rip), %rdi      # 0x10120
leaq 0xcdb1(%rip), %rdx      # 0x1022c
movb $0x0, %al
callq 0x20f0
movq 0x28(%rsp), %rax
cmpq $0x0, 0x8(%rax)
je 0x34a5
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rsi
leaq 0xcc89(%rip), %rdi      # 0x10127
movb $0x0, %al
callq 0x20f0
movq 0x28(%rsp), %rdi
callq 0xea00
movl %eax, 0x24(%rsp)
movl $0x5b, %edi
callq 0x2050
movq 0x28(%rsp), %rdi
callq 0x3730
movl %eax, 0x20(%rsp)
movl 0x20(%rsp), %eax
movl %eax, 0xc(%rsp)
testl %eax, %eax
je 0x34ef
jmp 0x34d9
movl 0xc(%rsp), %eax
subl $0x1, %eax
je 0x34fb
jmp 0x34e4
movl 0xc(%rsp), %eax
subl $0x2, %eax
je 0x3507
jmp 0x3511
movl $0x4e, %edi
callq 0x2050
jmp 0x3511
movl $0x4d, %edi
callq 0x2050
jmp 0x3511
movl $0x59, %edi
callq 0x2050
cmpl $0x0, 0x20(%rsp)
je 0x3538
movq 0x28(%rsp), %rdi
xorl %esi, %esi
callq 0xef40
testb $0x1, %al
jne 0x352a
jmp 0x3538
leaq 0xcda5(%rip), %rdi      # 0x102d6
movb $0x0, %al
callq 0x20f0
cmpl $0x1, 0x20(%rsp)
je 0x3562
movq 0x28(%rsp), %rdi
movl $0x1, %esi
callq 0xef40
testb $0x1, %al
jne 0x3554
jmp 0x3562
leaq 0xcd7e(%rip), %rdi      # 0x102d9
movb $0x0, %al
callq 0x20f0
cmpl $0x2, 0x20(%rsp)
je 0x358c
movq 0x28(%rsp), %rdi
movl $0x2, %esi
callq 0xef40
testb $0x1, %al
jne 0x357e
jmp 0x358c
leaq 0xcd57(%rip), %rdi      # 0x102dc
movb $0x0, %al
callq 0x20f0
movq 0x28(%rsp), %rax
cmpq $0x0, 0x10(%rax)
je 0x35a6
leaq 0xcd40(%rip), %rdi      # 0x102df
movb $0x0, %al
callq 0x20f0
leaq 0xcb83(%rip), %rdi      # 0x10130
xorl %eax, %eax
callq 0x20f0
movq 0x28(%rsp), %rdi
movq %rdi, (%rsp)
callq 0xb7c0
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x2590
leaq 0x15e2b(%rip), %rdi     # 0x19400
callq 0x3750
movsbl 0x15e1f(%rip), %eax     # 0x19400
movl %eax, 0x8(%rsp)
testl %eax, %eax
je 0x36bb
jmp 0x35ef
movl 0x8(%rsp), %eax
subl $0x3f, %eax
je 0x36c5
jmp 0x35fe
movl 0x8(%rsp), %eax
subl $0x4d, %eax
je 0x3673
jmp 0x3609
movl 0x8(%rsp), %eax
subl $0x4e, %eax
je 0x3643
jmp 0x3614
movl 0x8(%rsp), %eax
subl $0x59, %eax
je 0x368b
jmp 0x361f
movl 0x8(%rsp), %eax
subl $0x6d, %eax
je 0x3673
jmp 0x362a
movl 0x8(%rsp), %eax
subl $0x6e, %eax
je 0x3643
jmp 0x3635
movl 0x8(%rsp), %eax
subl $0x79, %eax
je 0x368b
jmp 0x36c7
movl $0x0, 0x1c(%rsp)
cmpb $0x0, 0x15daf(%rip)     # 0x19401
je 0x366c
leaq 0x15da6(%rip), %rdi     # 0x19401
leaq 0xcc80(%rip), %rsi      # 0x102e2
callq 0x2180
cmpl $0x0, %eax
jne 0x366e
jmp 0x36cc
jmp 0x3457
movl $0x1, 0x1c(%rsp)
cmpb $0x0, 0x15d7f(%rip)     # 0x19401
jne 0x3686
jmp 0x36cc
jmp 0x3457
movl $0x2, 0x1c(%rsp)
cmpb $0x0, 0x15d67(%rip)     # 0x19401
je 0x36b4
leaq 0x15d5e(%rip), %rdi     # 0x19401
leaq 0xcc3a(%rip), %rsi      # 0x102e4
callq 0x2180
cmpl $0x0, %eax
jne 0x36b6
jmp 0x36cc
jmp 0x3457
movl 0x20(%rsp), %eax
movl %eax, 0x1c(%rsp)
jmp 0x36cc
jmp 0x36e9
jmp 0x3457
movq 0x28(%rsp), %rdi
movl 0x1c(%rsp), %esi
callq 0xf020
testb $0x1, %al
jne 0x36e0
jmp 0x36e7
xorl %eax, %eax
addq $0x38, %rsp
retq
jmp 0x36e9
leaq 0x15ac0(%rip), %rax     # 0x191b0
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %rax
cmpq $0x0, 0x10(%rax)
je 0x370f
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rsi
leaq 0x12140(%rip), %rdi     # 0x1585b
movb $0x0, %al
callq 0x20f0
jmp 0x3457
nopw (%rax,%rax)