// File: /workspace/github_c_makefile_star2_O3/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %r14
leaq 0x7d95(%rip), %r15      # 0xb074
leaq 0xd3bd(%rip), %r12      # 0x106a3
leaq 0x7d97(%rip), %rbp      # 0xb084
movl 0x11ead(%rip), %esi     # 0x151a0
decl %esi
movq 0x20(%rbx), %rax
movq 0x18(%rax), %rcx
movq %r15, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x2100
movq 0x8(%r14), %rsi
testq %rsi, %rsi
je 0x3321
leaq 0x7d61(%rip), %rdi      # 0xb07b
xorl %eax, %eax
callq 0x2100
movq %r14, %rdi
callq 0xa500
movl $0x5b, %edi
callq 0x2050
movl 0x28(%r14), %r13d
testl %r13d, %r13d
je 0x337d
cmpl $0x1, %r13d
je 0x334f
cmpl $0x2, %r13d
jne 0x3359
movl $0x59, %edi
jmp 0x3354
movl $0x4d, %edi
callq 0x2050
movq %r14, %rdi
xorl %esi, %esi
callq 0xa6bc
testb %al, %al
je 0x3375
leaq 0x7de0(%rip), %rdi      # 0xb14e
xorl %eax, %eax
callq 0x2100
cmpl $0x1, %r13d
jne 0x3387
jmp 0x33ac
movl $0x4e, %edi
callq 0x2050
movq %r14, %rdi
movl $0x1, %esi
callq 0xa6bc
testb %al, %al
je 0x33a6
leaq 0x7db2(%rip), %rdi      # 0xb151
xorl %eax, %eax
callq 0x2100
cmpl $0x2, %r13d
je 0x33cb
movq %r14, %rdi
movl $0x2, %esi
callq 0xa6bc
testb %al, %al
je 0x33cb
leaq 0x7d90(%rip), %rdi      # 0xb154
xorl %eax, %eax
callq 0x2100
cmpq $0x0, 0x10(%r14)
je 0x33e0
leaq 0x7d7e(%rip), %rdi      # 0xb157
xorl %eax, %eax
callq 0x2100
movq %rbp, %rdi
xorl %eax, %eax
callq 0x2100
movq %r14, %rdi
callq 0x8748
movq %r14, %rdi
movq %rax, %rsi
callq 0x298d
callq 0x34ef
movzbl 0x11ff7(%rip), %eax     # 0x15400
leal -0x4d(%rax), %ecx
cmpl $0x2c, %ecx
ja 0x346e
movabsq $0x100000001, %rdx      # imm = 0x100000001
btq %rcx, %rdx
jb 0x3499
movabsq $0x200000002, %rdx      # imm = 0x200000002
btq %rcx, %rdx
jb 0x347d
movabsq $0x100000001000, %rdx   # imm = 0x100000001000
btq %rcx, %rdx
jae 0x346e
movl $0x2, %r13d
cmpb $0x0, 0x11fb3(%rip)     # 0x15401
je 0x34ac
movzwl 0x11faa(%rip), %eax     # 0x15401
xorl $0x7365, %eax           # imm = 0x7365
movzbl 0x11fa0(%rip), %ecx     # 0x15403
orw %ax, %cx
jne 0x32ed
jmp 0x34ac
testl %eax, %eax
je 0x34ac
cmpl $0x3f, %eax
jne 0x32ed
jmp 0x34bb
xorl %r13d, %r13d
cmpb $0x0, 0x11f7a(%rip)     # 0x15401
je 0x34ac
cmpw $0x6f, 0x11f70(%rip)    # 0x15401
jne 0x32ed
jmp 0x34ac
cmpb $0x0, 0x11f61(%rip)     # 0x15401
jne 0x32ed
movl $0x1, %r13d
movq %r14, %rdi
movl %r13d, %esi
callq 0xa724
testb %al, %al
jne 0x34e0
movq 0x10(%r14), %rsi
testq %rsi, %rsi
leaq 0x11ce7(%rip), %rax     # 0x151b0
cmoveq %rax, %rsi
leaq 0xd1d6(%rip), %rdi      # 0x106aa
xorl %eax, %eax
callq 0x2100
jmp 0x32ed
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq