// File: /workspace/github_c_makefile_star2_O3/saltyJeff[P]uClibcpp/extra/config/conf.c
// Function: conf
static void conf(struct menu *menu)
{
	struct symbol *sym;
	struct property *prop;
	struct menu *child;

	if (!menu_is_visible(menu))
		return;

	sym = menu->sym;
	prop = menu->prompt;
	if (prop) {
		const char *prompt;

		switch (prop->type) {
		case P_MENU:
			if (input_mode == ask_silent && rootEntry != menu) {
				check_conf(menu);
				return;
			}
		case P_COMMENT:
			prompt = menu_get_prompt(menu);
			if (prompt)
				printf("%*c\n%*c %s\n%*c\n",
					indent, '*',
					indent, '*', prompt,
					indent, '*');
		default:
			;
		}
	}

	if (!sym)
		goto conf_childs;

	if (sym_is_choice(sym)) {
		conf_choice(menu);
		if (sym->curr.tri != mod)
			return;
		goto conf_childs;
	}

	switch (sym->type) {
	case S_INT:
	case S_HEX:
	case S_STRING:
		conf_string(menu);
		break;
	default:
		conf_sym(menu);
		break;
	}

conf_childs:
	if (sym)
		indent += 2;
	for (child = menu->list; child; child = child->next)
		conf(child);
	if (sym)
		indent -= 2;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
callq 0x86b0
testb %al, %al
je 0x31e5
movq 0x18(%rbx), %r14
movq %rbx, 0x8(%rsp)
movq 0x20(%rbx), %rax
testq %rax, %rax
je 0x2dbe
movl 0x10(%rax), %eax
cmpl $0x2, %eax
je 0x2d84
cmpl $0x3, %eax
jne 0x2dbe
cmpl $0x2, 0x12694(%rip)     # 0x153f0
jne 0x2d84
movq 0x8(%rsp), %rax
cmpq %rax, 0x12716(%rip)     # 0x15480
je 0x2d84
movq 0x8(%rsp), %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x31f4
movq 0x8(%rsp), %rdi
callq 0x8725
testq %rax, %rax
je 0x2dbe
movl 0x12407(%rip), %ecx     # 0x151a0
leaq 0x8362(%rip), %rdi      # 0xb102
movl %ecx, %esi
movl $0x2a, %edx
movl $0x2a, %r8d
movq %rax, %r9
xorl %eax, %eax
pushq $0x2a
pushq %rcx
callq 0x2100
addq $0x10, %rsp
testq %r14, %r14
je 0x31be
testb $0x10, 0x44(%r14)
jne 0x2de9
movl 0x18(%r14), %eax
addl $-0x3, %eax
cmpl $0x2, %eax
ja 0x2e37
movq 0x8(%rsp), %rdi
callq 0x288c
jmp 0x31b7
movq %r14, 0x18(%rsp)
movq 0x8(%rsp), %r14
leaq 0x18(%r14), %rax
movq %rax, 0x20(%rsp)
movq (%rax), %r13
movq %r13, %rdi
callq 0xa500
movl 0x44(%r13), %eax
movl %eax, 0x14(%rsp)
movq %r13, %rdi
callq 0xa986
testb %al, %al
je 0x2e46
movq %r14, %rdi
callq 0x32c6
movq %r13, %rdi
callq 0x7bd5
cmpl $0x2, 0x28(%r13)
jae 0x2e86
jmp 0x31ab
movq 0x8(%rsp), %rdi
callq 0x32c6
jmp 0x31b7
movl 0x28(%r13), %eax
testl %eax, %eax
je 0x31ab
cmpl $0x1, %eax
jne 0x2e86
movl 0x12343(%rip), %ebp     # 0x151a0
decl %ebp
movq %r14, %rdi
callq 0x8725
leaq 0x82a4(%rip), %rdi      # 0xb112
leaq 0xd82e(%rip), %rdx      # 0x106a3
movl %ebp, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x2100
jmp 0x31ab
movl 0x12313(%rip), %r15d    # 0x151a0
decl %r15d
movq %r14, %rdi
callq 0x8725
leaq 0x8273(%rip), %rdi      # 0xb112
leaq 0xd7fd(%rip), %rdx      # 0x106a3
xorl %ebp, %ebp
movl %r15d, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x2100
movq %r13, %rbx
movq 0x20(%r13), %r13
movw $0x30, 0x1253b(%rip)    # 0x15400
movq 0x10(%r14), %r12
movl $0x0, %r15d
testq %r12, %r12
je 0x2fbd
xorl %r14d, %r14d
xorl %ebp, %ebp
movq %r12, %rdi
callq 0x86b0
testb %al, %al
je 0x2faa
movq 0x18(%r12), %rax
testq %rax, %rax
je 0x2f82
incl %ebp
movl $0x3e, %edx
movl %ebp, %r15d
cmpq %r13, %rax
je 0x2f12
movl $0x20, %edx
movl %r14d, %r15d
movl 0x12288(%rip), %esi     # 0x151a0
leaq 0x8202(%rip), %rdi      # 0xb121
xorl %eax, %eax
callq 0x2100
movq %r12, %rdi
callq 0x8725
leaq 0x81f0(%rip), %rdi      # 0xb125
movl %ebp, %esi
movq %rax, %rdx
xorl %eax, %eax
callq 0x2100
movq 0x18(%r12), %rax
movq 0x8(%rax), %rsi
testq %rsi, %rsi
je 0x2f62
leaq 0x81d7(%rip), %rdi      # 0xb12d
xorl %eax, %eax
callq 0x2100
movq 0x18(%r12), %rax
testb $0x8, 0x45(%rax)
je 0x2f76
leaq 0x81c4(%rip), %rdi      # 0xb133
xorl %eax, %eax
callq 0x2100
movl $0xa, %edi
callq 0x2050
jmp 0x2fad
movl 0x12217(%rip), %r15d    # 0x151a0
movq %r12, %rdi
callq 0x8725
leaq 0x8181(%rip), %rdi      # 0xb119
movl %r15d, %esi
movl $0x2a, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x2100
movl %r14d, %r15d
movq (%r12), %r12
movl %r15d, %r14d
testq %r12, %r12
jne 0x2edd
movl 0x121dd(%rip), %esi     # 0x151a0
decl %esi
leaq 0x816e(%rip), %rdi      # 0xb13a
leaq 0xd6d0(%rip), %rdx      # 0x106a3
xorl %eax, %eax
callq 0x2100
cmpl $0x1, %ebp
jne 0x2ffb
leaq 0x8262(%rip), %rdi      # 0xb248
callq 0x20a0
movl $0x1, %r15d
movq %rbx, %r13
movq 0x8(%rsp), %r14
jmp 0x3063
leaq 0x8142(%rip), %rdi      # 0xb144
movl %ebp, %esi
xorl %eax, %eax
callq 0x2100
movq %rbx, %r13
cmpq $0x0, 0x10(%rbx)
je 0x301f
movl $0x3f, %edi
callq 0x2050
leaq 0x8124(%rip), %rdi      # 0xb14a
xorl %eax, %eax
callq 0x2100
movl 0x123bd(%rip), %eax     # 0x153f0
cmpq $0x7, %rax
movq 0x8(%rsp), %r14
ja 0x3146
leaq 0x800b(%rip), %rcx      # 0xb054
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0xdad9(%rip), %rdi      # 0x10b32
movl %r15d, %esi
xorl %eax, %eax
callq 0x2100
movq 0x10(%r14), %r12
testq %r12, %r12
je 0x2e86
cmpq $0x0, 0x18(%r12)
je 0x3089
movq %r12, %rdi
callq 0x86b0
testb %al, %al
je 0x3089
decl %r15d
je 0x308f
movq (%r12), %r12
jmp 0x3067
leaq 0x1236a(%rip), %r15     # 0x15400
movq %r15, %rdi
callq 0x20e0
cmpb $0x3f, -0x1(%rax,%r15)
jne 0x317f
addq $0x18, %r12
jmp 0x3105
btl $0xb, 0x14(%rsp)
jae 0x3052
callq 0x3282
movq 0x11f0c(%rip), %rax     # 0x14fd0
movq (%rax), %rdi
callq 0x2240
movq 0x11f05(%rip), %rax     # 0x14fd8
movq (%rax), %rdx
leaq 0x12323(%rip), %rdi     # 0x15400
movl $0x80, %esi
callq 0x2170
callq 0x34ef
movzbl 0x1230d(%rip), %eax     # 0x15400
testl %eax, %eax
je 0x3063
movq 0x20(%rsp), %r12
cmpl $0x3f, %eax
jne 0x314e
movq (%r12), %rax
movq 0x10(%rax), %rax
testq %rax, %rax
leaq 0x12099(%rip), %rsi     # 0x151b0
cmovneq %rax, %rsi
leaq 0xd588(%rip), %rdi      # 0x106aa
xorl %eax, %eax
callq 0x2100
jmp 0x2e86
callq 0x2220
movslq %ebp, %rcx
cqto
idivq %rcx
movq %rdx, %r15
incl %r15d
jmp 0x3052
movl %ebp, %r15d
jmp 0x3063
movsbq %al, %r14
callq 0x2310
movq (%rax), %rax
testb $0x8, 0x1(%rax,%r14,2)
movq 0x8(%rsp), %r14
je 0x2e86
leaq 0x1228e(%rip), %rdi     # 0x15400
callq 0x22b0
movl %eax, %r15d
jmp 0x3063
movq 0x18(%r12), %rdi
movl $0x2, %esi
callq 0xa724
movq 0x10(%r12), %rdi
testq %rdi, %rdi
je 0x31ab
addl $0x2, 0x12001(%rip)     # 0x151a0
callq 0x2d18
addl $-0x2, 0x11ff5(%rip)    # 0x151a0
movq 0x18(%rsp), %r14
cmpl $0x1, 0x28(%r14)
jne 0x31e5
addl $0x2, 0x11fe2(%rip)     # 0x151a0
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rbx
testq %rbx, %rbx
je 0x31d9
movq %rbx, %rdi
callq 0x2d18
movq (%rbx), %rbx
jmp 0x31c7
testq %r14, %r14
je 0x31e5
addl $-0x2, 0x11fbb(%rip)    # 0x151a0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq