// File: /workspace/github_c_makefile_star2_O3/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, %r12
movl %edi, %ebp
movq $0x0, 0x8(%rsp)
movb $0x1, %r13b
leaq 0xd92(%rip), %r15       # 0x2004
movq 0x2d5f(%rip), %r14      # 0x3fd8
movl $0x0, 0x4(%rsp)
xorl %ebx, %ebx
movl %ebp, %edi
movq %r12, %rsi
movq %r15, %rdx
callq 0x10d0
cmpl $0x66, %eax
jne 0x129a
movq (%r14), %rbx
jmp 0x1283
cmpl $0x70, %eax
jle 0x12bc
cmpl $0x71, %eax
je 0x12cf
cmpl $0x76, %eax
je 0x12db
cmpl $0x77, %eax
jne 0x14ff
movl $0x1, 0x4(%rsp)
jmp 0x1283
cmpl $-0x1, %eax
je 0x12e7
cmpl $0x61, %eax
jne 0x14ff
xorl %r13d, %r13d
jmp 0x1283
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x8(%rsp)
jmp 0x1283
movl $0x1, %eax
movq %rax, 0x8(%rsp)
jmp 0x1283
testb $0x1, %r13b
je 0x1342
testq %rbx, %rbx
je 0x1506
movq 0x2cd3(%rip), %rax      # 0x3fd0
movslq (%rax), %r14
cmpl %r14d, %ebp
je 0x1506
callq 0x10e0
testq %rax, %rax
je 0x1331
movq %rax, %r13
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1040
testl %eax, %eax
je 0x13c0
movq %r13, %rdi
callq 0x1090
leaq 0xdf2(%rip), %rdi       # 0x212a
callq 0x10c0
jmp 0x1537
cmpl $0x0, 0x8(%rsp)
jne 0x154b
cmpl $0x0, 0x4(%rsp)
jne 0x154b
testq %rbx, %rbx
je 0x154b
movq 0x2c68(%rip), %rax      # 0x3fd0
cmpl %ebp, (%rax)
jne 0x154b
callq 0x10e0
testq %rax, %rax
je 0x1394
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1040
testl %eax, %eax
je 0x13a7
movq %r14, %rdi
callq 0x1090
leaq 0xd8f(%rip), %rdi       # 0x212a
callq 0x10c0
xorl %eax, %eax
jmp 0x1555
leaq 0x1b6(%rip), %rsi       # 0x1564
movq %r14, %rdi
xorl %edx, %edx
callq 0x1080
movq %r14, %rdi
jmp 0x1532
subl %r14d, %ebp
testl %ebp, %ebp
jle 0x150d
movq %r13, 0x10(%rsp)
leaq (%r12,%r14,8), %rax
movq %rax, 0x20(%rsp)
movl %ebp, %eax
movq %rax, 0x18(%rsp)
xorl %r14d, %r14d
xorl %r13d, %r13d
xorl %r15d, %r15d
movq 0x20(%rsp), %rax
movq (%rax,%r14,8), %rbp
movq %rbp, %rdi
movl $0x2e, %esi
callq 0x1050
testq %rax, %rax
je 0x1412
movq %rbp, %r12
movq %rax, %rbp
incq %rbp
movb $0x0, (%rax)
jmp 0x1415
xorl %r12d, %r12d
cmpl $0x0, 0x4(%rsp)
je 0x1439
movq %rbp, %rdi
movl $0x3d, %esi
callq 0x1050
testq %rax, %rax
je 0x1468
movq %rax, %r13
incq %r13
movb $0x0, (%rax)
jmp 0x143e
testq %r13, %r13
je 0x1468
movq 0x10(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %r13, %rcx
callq 0x10f0
testl %eax, %eax
je 0x1495
leaq 0xcce(%rip), %rdi       # 0x212a
callq 0x10c0
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x14c0
movq 0x10(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x10a0
testq %rax, %rax
je 0x14ac
movq 0x8(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %rax, %rcx
callq 0x1579
xorl %r13d, %r13d
jmp 0x14a8
movq 0x8(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %r13, %rcx
callq 0x1579
xorl %eax, %eax
jmp 0x14c0
leaq 0xc77(%rip), %rdi       # 0x212a
callq 0x10c0
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %r13d, %r13d
orl %eax, %r15d
incq %r14
cmpq %r14, 0x18(%rsp)
jne 0x13e9
testl %r15d, %r15d
sete %al
cmpl $0x0, 0x4(%rsp)
setne %cl
testb %al, %cl
movq 0x10(%rsp), %r13
jne 0x1514
movq %r13, %rdi
callq 0x1090
movl $0x2, %eax
testl %r15d, %r15d
jne 0x1555
jmp 0x13a0
callq 0x113c
jmp 0x1550
callq 0x1126
jmp 0x1550
cmpl $0x0, 0x4(%rsp)
je 0x153e
movq %r13, %rdi
movq %rbx, %rsi
callq 0x10b0
testl %eax, %eax
je 0x153e
leaq 0xc00(%rip), %rdi       # 0x212a
callq 0x10c0
movq %r13, %rdi
callq 0x1090
movl $0x2, %eax
jmp 0x1555
movq %r13, %rdi
callq 0x1090
jmp 0x13a0
callq 0x1110
movl $0x1, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq