// File: /workspace/github_c_makefile_star2_O2/DeforaOS[P]libSystem/tools/configctl.c
// Function: main
int main(int argc, char * argv[])
{
	int o;
	int list = 0;
	int verbose = 0;
	int write = 0;
	char const * filename = NULL;

	while((o = getopt(argc, argv, "af:qvw")) != -1)
		switch(o)
		{
			case 'a':
				list = 1;
				break;
			case 'f':
				filename = optarg;
				break;
			case 'q':
				verbose = -1;
				break;
			case 'v':
				verbose = 1;
				break;
			case 'w':
				write = 1;
				break;
			default:
				return _usage();
		}
	if(list)
	{
		if(verbose != 0 || write != 0 || filename == NULL
				|| optind != argc)
			return _usage();
		return _configctl_list(filename) ? 0 : 2;
	}
	if(filename == NULL || optind == argc)
		return _usage();
	return (_configctl(verbose, write, filename, argc - optind,
				&argv[optind]) == 0) ? 0 : 2;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r13
movl %edi, %r14d
movq $0x0, 0x8(%rsp)
movb $0x1, %bpl
leaq 0xde1(%rip), %r12       # 0x2004
movq 0x2dae(%rip), %r15      # 0x3fd8
movl $0x0, 0x4(%rsp)
xorl %ebx, %ebx
movl %r14d, %edi
movq %r13, %rsi
movq %r12, %rdx
callq 0x10d0
cmpl $0x66, %eax
jne 0x124c
movq (%r15), %rbx
jmp 0x1234
cmpl $-0x1, %eax
je 0x1284
cmpl $0x61, %eax
je 0x1272
cmpl $0x71, %eax
je 0x1276
cmpl $0x76, %eax
je 0x127a
cmpl $0x77, %eax
jne 0x1332
pushq $0x1
popq %rax
movl %eax, 0x4(%rsp)
jmp 0x1234
xorl %ebp, %ebp
jmp 0x1234
pushq $-0x1
jmp 0x127c
pushq $0x1
popq %rax
movq %rax, 0x8(%rsp)
jmp 0x1234
testb $0x1, %bpl
je 0x12df
testq %rbx, %rbx
je 0x1332
movq 0x2d36(%rip), %rax      # 0x3fd0
movslq (%rax), %r15
cmpl %r15d, %r14d
je 0x1332
callq 0x10e0
testq %rax, %rax
je 0x12ce
movq %rax, %rdi
movq %rbx, %rsi
movq %rax, %r12
callq 0x1040
testl %eax, %eax
je 0x1366
movq %r12, %rdi
callq 0x1090
leaq 0xe55(%rip), %rdi       # 0x212a
callq 0x10c0
jmp 0x1362
cmpl $0x0, 0x8(%rsp)
jne 0x1332
cmpl $0x0, 0x4(%rsp)
jne 0x1332
testq %rbx, %rbx
je 0x1332
movq 0x2cd7(%rip), %rax      # 0x3fd0
cmpl %r14d, (%rax)
jne 0x1332
callq 0x10e0
testq %rax, %rax
je 0x1322
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1040
testl %eax, %eax
je 0x1349
movq %r14, %rdi
callq 0x1090
leaq 0xe01(%rip), %rdi       # 0x212a
callq 0x10c0
xorl %eax, %eax
jmp 0x133a
callq 0x14c1
pushq $0x1
popq %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x187(%rip), %rsi       # 0x14d7
movq %r14, %rdi
xorl %edx, %edx
callq 0x1080
movq %r14, %rdi
callq 0x1090
pushq $0x2
jmp 0x1339
movq %r12, 0x10(%rsp)
subl %r15d, %r14d
leaq (,%r15,8), %rax
addq %r13, %rax
movq %rax, 0x20(%rsp)
xorl %r15d, %r15d
testl %r14d, %r14d
cmovlel %r15d, %r14d
xorl %ebp, %ebp
xorl %r13d, %r13d
cmpq %r15, %r14
je 0x1474
movl %ebp, 0x1c(%rsp)
movq 0x20(%rsp), %rax
movq (%rax,%r15,8), %rbp
movq %rbp, %rdi
pushq $0x2e
popq %rsi
callq 0x1050
testq %rax, %rax
je 0x13c1
movq %rbp, %r12
movq %rax, %rbp
incq %rbp
movb $0x0, (%rax)
jmp 0x13c4
xorl %r12d, %r12d
cmpl $0x0, 0x4(%rsp)
je 0x13e6
movq %rbp, %rdi
pushq $0x3d
popq %rsi
callq 0x1050
testq %rax, %rax
je 0x1410
movq %rax, %r13
incq %r13
movb $0x0, (%rax)
jmp 0x13eb
testq %r13, %r13
je 0x1410
movq 0x10(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %r13, %rcx
callq 0x10f0
testl %eax, %eax
je 0x143d
leaq 0xd21(%rip), %rdi       # 0x212a
callq 0x10c0
jmp 0x1463
movq 0x10(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x10a0
testq %rax, %rax
je 0x1454
movq 0x8(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %rax, %rcx
callq 0x14ea
xorl %r13d, %r13d
jmp 0x1450
movq 0x8(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %r13, %rcx
callq 0x14ea
xorl %eax, %eax
jmp 0x1466
leaq 0xccf(%rip), %rdi       # 0x212a
callq 0x10c0
xorl %r13d, %r13d
pushq $-0x1
popq %rax
movl 0x1c(%rsp), %ebp
orl %eax, %ebp
incq %r15
jmp 0x138d
testl %ebp, %ebp
setne %al
cmpl $0x0, 0x4(%rsp)
sete %cl
orb %al, %cl
jne 0x14a9
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x10b0
testl %eax, %eax
je 0x14a7
leaq 0xc8d(%rip), %rdi       # 0x212a
callq 0x10c0
pushq $-0x1
popq %rbp
jmp 0x14a9
xorl %ebp, %ebp
movq 0x10(%rsp), %rdi
callq 0x1090
xorl %eax, %eax
testl %ebp, %ebp
setne %al
addl %eax, %eax
jmp 0x133a