// File: /workspace/github_c_makefile_star2_O1/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 0x8cf4(%rip), %r15      # 0xc080
leaq 0xe330(%rip), %r12      # 0x116c3
leaq 0x8cf6(%rip), %rbp      # 0xc090
movl 0x12e00(%rip), %esi     # 0x161a0
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 0x33ce
leaq 0x8cc0(%rip), %rdi      # 0xc087
xorl %eax, %eax
callq 0x2100
movq %r14, %rdi
callq 0xacb7
movl $0x5b, %edi
callq 0x2050
movl 0x28(%r14), %r13d
cmpq $0x2, %r13
ja 0x33ff
leaq 0x8c83(%rip), %rax      # 0xc074
movl (%rax,%r13,4), %edi
callq 0x2050
testl %r13d, %r13d
je 0x3421
movq %r14, %rdi
xorl %esi, %esi
callq 0xae6b
testb %al, %al
je 0x341b
leaq 0x8d46(%rip), %rdi      # 0xc15a
xorl %eax, %eax
callq 0x2100
cmpl $0x1, %r13d
je 0x3446
movq %r14, %rdi
movl $0x1, %esi
callq 0xae6b
testb %al, %al
je 0x3440
leaq 0x8d24(%rip), %rdi      # 0xc15d
xorl %eax, %eax
callq 0x2100
cmpl $0x2, %r13d
je 0x3465
movq %r14, %rdi
movl $0x2, %esi
callq 0xae6b
testb %al, %al
je 0x3465
leaq 0x8d02(%rip), %rdi      # 0xc160
xorl %eax, %eax
callq 0x2100
cmpq $0x0, 0x10(%r14)
je 0x347a
leaq 0x8cf0(%rip), %rdi      # 0xc163
xorl %eax, %eax
callq 0x2100
movq %rbp, %rdi
xorl %eax, %eax
callq 0x2100
movq %r14, %rdi
callq 0x8e12
movq %r14, %rdi
movq %rax, %rsi
callq 0x2a3a
callq 0x3589
movzbl 0x12f5d(%rip), %eax     # 0x16400
leal -0x4d(%rax), %ecx
cmpl $0x2c, %ecx
ja 0x3508
movabsq $0x100000001, %rdx      # imm = 0x100000001
btq %rcx, %rdx
jb 0x3533
movabsq $0x200000002, %rdx      # imm = 0x200000002
btq %rcx, %rdx
jb 0x3517
movabsq $0x100000001000, %rdx   # imm = 0x100000001000
btq %rcx, %rdx
jae 0x3508
movl $0x2, %r13d
cmpb $0x0, 0x12f19(%rip)     # 0x16401
je 0x3546
movzwl 0x12f10(%rip), %eax     # 0x16401
xorl $0x7365, %eax           # imm = 0x7365
movzbl 0x12f06(%rip), %ecx     # 0x16403
orw %ax, %cx
jne 0x339a
jmp 0x3546
testl %eax, %eax
je 0x3546
cmpl $0x3f, %eax
jne 0x339a
jmp 0x3555
xorl %r13d, %r13d
cmpb $0x0, 0x12ee0(%rip)     # 0x16401
je 0x3546
cmpw $0x6f, 0x12ed6(%rip)    # 0x16401
jne 0x339a
jmp 0x3546
cmpb $0x0, 0x12ec7(%rip)     # 0x16401
jne 0x339a
movl $0x1, %r13d
movq %r14, %rdi
movl %r13d, %esi
callq 0xaed3
testb %al, %al
jne 0x357a
movq 0x10(%r14), %rsi
testq %rsi, %rsi
leaq 0x12c4d(%rip), %rax     # 0x161b0
cmoveq %rax, %rsi
leaq 0xe15c(%rip), %rdi      # 0x116ca
xorl %eax, %eax
callq 0x2100
jmp 0x339a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq