// File: /workspace/github_c_makefile_star2_O1/uhlin[P]enhanced-duc/source/main.c
// Function: main
int
main(int argc, char *argv[])
{
	char conf[DUC_PATH_MAX] = "/etc/enhanced-duc.conf";
	struct program_options opt = {
		.want_usage              = false,
		.want_create_config_file = false,
		.want_debug              = false,
		.want_update_once        = false,
		.want_daemon             = false,
	};

	if (sighand_init() == -1)
		log_warn(0, "Initialization of signal handling failed");
	if (atexit(program_clean_up) == -1)
		log_warn(errno, "Failed to register a clean up function");
	block_signals();
	duc_set_terminate();

	(void) setlocale(LC_ALL, "");
	process_options(argc, argv, &opt, &conf[0], nitems(conf));

	if (opt.want_usage) {
		usage();
		/* NOTREACHED */
	}
	if (opt.want_create_config_file) {
		char *path = NULL;

		while ((path = get_answer("Create where?",
					  TYPE_STRING,
					  &conf[0])) == NULL) {
			/* continue */;
		}

		create_config_file(path);
		free(path);
		exit(0);
	}
	if (opt.want_debug)
		turn_on_debug_mode();
	if (opt.want_update_once)
		set_cycle_off();
	if (opt.want_daemon) {
		/*
		 * Detach the program from the controlling terminal
		 * and continue execution...
		 */

		daemonize();
	}

	log_msg("%s %s has started", g_programName, g_programVersion);
	log_msg("reading %s...", conf);
	read_config_file(conf);
	check_some_settings_strictly();

	/* Drop root privileges. */
	if (geteuid() == UID_SUPER_USER) {
		force_priv_drop();
		log_msg("EUID = %ld", (long int) geteuid());
	}

	net_init();
	start_update_cycle();

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x428, %rsp            # imm = 0x428
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x3ab3(%rip), %rsi      # 0x9480
leaq 0x230(%rsp), %rdi
movl $0x1f4, %edx            # imm = 0x1F4
callq 0x4350
callq 0x81b6
cmpl $-0x1, %eax
jne 0x59f9
leaq 0x3cd2(%rip), %rsi      # 0x96c2
xorl %edi, %edi
xorl %eax, %eax
callq 0x591f
leaq 0x275c(%rip), %rdi      # 0x815c
callq 0x89a0
cmpl $-0x1, %eax
jne 0x5a1f
callq 0x4050
movl (%rax), %edi
leaq 0x3cd3(%rip), %rsi      # 0x96eb
xorl %eax, %eax
callq 0x591f
callq 0x80dc
callq 0x8418
leaq 0x447b(%rip), %rsi      # 0x9eab
movl $0x6, %edi
callq 0x43a0
movabsq $0x426f443a7863683a, %rax # imm = 0x426F443A7863683A
leaq 0x30(%rsp), %r14
movq %rax, (%r14)
movb $0x0, 0x8(%r14)
movl $0x0, 0x14(%rsp)
movq 0x8530(%rip), %r13      # 0xdf90
leaq 0x43c6(%rip), %r15      # 0x9e2d
leaq 0x230(%rsp), %r12
movl $0x0, 0x18(%rsp)
movl $0x0, 0x8(%rsp)
movl %ebp, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x40d0
cmpl $0x67, %eax
jle 0x5aae
cmpl $0x78, %eax
jne 0x5ac4
movq (%r13), %rcx
movl $0x1f4, %esi            # imm = 0x1F4
movq %r12, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x4710
jmp 0x5a7f
cmpl $0x41, %eax
jg 0x5ad6
cmpl $-0x1, %eax
je 0x5af7
cmpl $0x3a, %eax
je 0x5b01
cmpl $0x3f, %eax
jne 0x5a7f
jmp 0x5b08
cmpl $0x68, %eax
je 0x5b0d
cmpl $0x6f, %eax
jne 0x5a7f
movb $0x1, %al
movl %eax, 0x14(%rsp)
jmp 0x5a7f
cmpl $0x42, %eax
je 0x5ae7
cmpl $0x44, %eax
je 0x5aef
cmpl $0x63, %eax
jne 0x5a7f
jmp 0x5afb
movb $0x1, %al
movl %eax, 0x8(%rsp)
jmp 0x5a7f
movb $0x1, %al
movl %eax, 0x18(%rsp)
jmp 0x5a7f
xorl %eax, %eax
jmp 0x5b0f
movb $0x1, %cl
xorl %eax, %eax
jmp 0x5b11
callq 0x4857
jmp 0x5b0d
callq 0x4830
movb $0x1, %al
xorl %ecx, %ecx
testb %al, %al
jne 0x6351
testb %cl, %cl
jne 0x6356
testb $0x1, 0x18(%rsp)
je 0x5b32
leaq 0x8be3(%rip), %rax      # 0xe712
movb $0x1, (%rax)
testb $0x1, 0x14(%rsp)
je 0x5b40
movb $0x1, 0x8c44(%rip)      # 0xe784
testb $0x1, 0x8(%rsp)
je 0x5b4c
callq 0x4de8
leaq 0x3bcd(%rip), %rdi      # 0x9720
leaq 0x38e6(%rip), %rsi      # 0x9440
leaq 0x38ec(%rip), %rdx      # 0x944d
xorl %eax, %eax
callq 0x588a
leaq 0x3bc3(%rip), %rdi      # 0x9732
leaq 0x230(%rsp), %rbx
movq %rbx, %rsi
xorl %eax, %eax
callq 0x588a
movq %rbx, %rdi
callq 0x7ef4
callq 0x7ad8
callq 0x4280
testl %eax, %eax
jne 0x5c42
leaq 0x3ad2(%rip), %rdi      # 0x9674
callq 0x4340
movq %rax, %rbx
leaq 0x3e2f(%rip), %rdi      # 0x99e0
xorl %eax, %eax
callq 0x588a
testq %rbx, %rbx
je 0x63ab
leaq 0x3ab3(%rip), %rdi      # 0x967b
callq 0x848a
testb %al, %al
je 0x6394
leaq 0x3a9f(%rip), %rdi      # 0x967b
callq 0x46a0
testl %eax, %eax
jne 0x6394
movl 0x14(%rbx), %edi
callq 0x47a0
cmpl $-0x1, %eax
je 0x63c2
movl 0x14(%rbx), %edi
callq 0x45d0
cmpl $-0x1, %eax
je 0x63d5
movl 0x10(%rbx), %edi
callq 0x47d0
cmpl $-0x1, %eax
je 0x63e8
movl 0x10(%rbx), %edi
callq 0x41b0
cmpl $-0x1, %eax
je 0x63fb
callq 0x4280
movl %eax, %esi
leaq 0x3b05(%rip), %rdi      # 0x9740
xorl %eax, %eax
callq 0x588a
callq 0x758e
xorps %xmm0, %xmm0
movaps %xmm0, 0x8b7f(%rip)     # 0xe7d0
movaps %xmm0, 0x8b68(%rip)     # 0xe7c0
movaps %xmm0, 0x8b51(%rip)     # 0xe7b0
movaps %xmm0, 0x8b3a(%rip)     # 0xe7a0
movaps %xmm0, 0x8b23(%rip)     # 0xe790
leaq 0x3a0c(%rip), %r15      # 0x9680
leaq 0x3eb9(%rip), %r13      # 0x9b34
cmpb $0x0, 0x8b02(%rip)      # 0xe784
jne 0x5c95
callq 0x734a
testl %eax, %eax
je 0x5c95
xorl %r12d, %r12d
jmp 0x6269
leaq 0x3dce(%rip), %rdi      # 0x9a6a
callq 0x798d
movq %rax, %rdi
callq 0x880a
movq %rax, %r12
movb (%rax), %al
testb %al, %al
je 0x631b
leaq 0x1(%r12), %r14
movsbl %al, %ebx
movl $0x42, %edx
movq %r15, %rdi
movl %ebx, %esi
callq 0x44c0
testq %rax, %rax
je 0x62eb
movb (%r14), %al
incq %r14
testb %al, %al
jne 0x5cbb
leaq 0x8aa9(%rip), %r15      # 0xe790
movq %r15, %r14
xorl %ebx, %ebx
testq %rbx, %rbx
movl $0x0, %edi
cmoveq %r12, %rdi
movq %r13, %rsi
callq 0x46f0
testq %rax, %rax
setne %cl
cmpq $0xa, %rbx
setb %bpl
andb %cl, %bpl
cmpb $0x1, %bpl
jne 0x5d24
movq %rax, %rdi
callq 0x880a
movq %rax, (%r14)
jmp 0x5d3e
testq %rbx, %rbx
je 0x62fd
leaq 0x3e35(%rip), %rdi      # 0x9b69
movq %rbx, %rsi
xorl %eax, %eax
callq 0x57b1
incq %rbx
addq $0x8, %r14
testb %bpl, %bpl
jne 0x5cec
movq %r12, %rdi
callq 0x4540
xorl %ebp, %ebp
xorl %r12d, %r12d
movq (%rbp,%r15), %rsi
testq %rsi, %rsi
je 0x6239
testb $0x1, %r12b
jne 0x6239
leaq 0x3cc7(%rip), %rdi      # 0x9a3d
xorl %eax, %eax
callq 0x588a
movq (%rbp,%r15), %rbx
leaq 0x3cc8(%rip), %rdi      # 0x9a51
callq 0x798d
testq %rbx, %rbx
je 0x6308
movq %rax, %r14
testq %rax, %rax
je 0x6308
callq 0x7152
cmpl $-0x1, %eax
je 0x5dfb
movl $0x1f4, %edx            # imm = 0x1F4
leaq 0x30(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x4220
movq %r14, %rdi
leaq 0x3f89(%rip), %rsi      # 0x9d54
callq 0x4640
testl %eax, %eax
movq %r12, 0x8(%rsp)
movq %rbp, 0x18(%rsp)
je 0x5e05
leaq 0x3fa3(%rip), %rdi      # 0x9d88
leaq 0x3f90(%rip), %rsi      # 0x9d7c
movq %rbx, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x8754
jmp 0x5e1d
xorl %ebx, %ebx
xorl %r13d, %r13d
jmp 0x6055
leaq 0x3f54(%rip), %rdi      # 0x9d60
leaq 0x3f69(%rip), %rsi      # 0x9d7c
movq %rbx, %rdx
xorl %eax, %eax
callq 0x8754
movq %rax, %r13
leaq 0x3f8e(%rip), %rdi      # 0x9db5
callq 0x798d
leaq 0x3f79(%rip), %rdi      # 0x9dac
movq %rax, %rsi
xorl %eax, %eax
callq 0x8754
movq %rax, %rbp
leaq 0x3f80(%rip), %rdi      # 0x9dc7
callq 0x798d
movq %rax, %rbx
leaq 0x493e(%rip), %rdi      # 0xa794
callq 0x798d
leaq 0x3f5f(%rip), %rdi      # 0x9dc1
movq %rbx, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x8754
movq %rax, %r12
movq %rax, %rdi
callq 0x41c0
movl $0x1f4, %ecx            # imm = 0x1F4
movq %r12, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x4c4c
testl %eax, %eax
js 0x5f00
leaq 0x3f58(%rip), %rdi      # 0x9df0
movq %r15, %rsi
xorl %eax, %eax
callq 0x8754
movq %rax, %r14
leaq 0x46be(%rip), %rdi      # 0xa56a
leaq 0x358d(%rip), %rsi      # 0x9440
leaq 0x3593(%rip), %rdx      # 0x944d
leaq 0x359f(%rip), %rcx      # 0x9460
xorl %eax, %eax
callq 0x8754
movq %rax, %rbx
leaq 0x3f36(%rip), %rdi      # 0x9e08
xorl %eax, %eax
callq 0x57b1
leaq 0x3f41(%rip), %rdi      # 0x9e21
movq %r13, %rsi
movq %rbp, %rdx
movq %r14, %rcx
movq %rbx, %r8
xorl %eax, %eax
leaq 0x854b(%rip), %r9       # 0xe440
callq *(%r9)
testl %eax, %eax
setne %r15b
jmp 0x5f1b
movl $0x5a, %edi
leaq 0x3ec4(%rip), %rsi      # 0x9dd0
xorl %eax, %eax
callq 0x591f
movb $0x1, %r15b
xorl %ebx, %ebx
xorl %r14d, %r14d
testq %r13, %r13
je 0x5f28
movq %r13, %rdi
callq 0x4540
testq %rbp, %rbp
je 0x5f35
movq %rbp, %rdi
callq 0x4540
testq %r12, %r12
je 0x5f42
movq %r12, %rdi
callq 0x4540
testq %r14, %r14
movq 0x18(%rsp), %rbp
je 0x5f54
movq %r14, %rdi
callq 0x4540
testq %rbx, %rbx
leaq 0x3f4b(%rip), %r12      # 0x9ea9
je 0x5f68
movq %rbx, %rdi
callq 0x4540
testb %r15b, %r15b
je 0x5f7e
xorl %ebx, %ebx
xorl %r13d, %r13d
leaq 0x8817(%rip), %r15      # 0xe790
jmp 0x6050
movl $0x7d0, %edi            # imm = 0x7D0
movl $0x1, %esi
callq 0x889a
movq %rax, %r13
movl $0x7d0, %esi            # imm = 0x7D0
movq %rax, %rdi
leaq 0x84a9(%rip), %r14      # 0xe448
callq *(%r14)
cmpl $-0x1, %eax
leaq 0x87e4(%rip), %r15      # 0xe790
je 0x604e
movl $0x1f4, %edx            # imm = 0x1F4
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4220
movl $0x1f4, %esi            # imm = 0x1F4
movq %rbx, %rdi
callq *(%r14)
cmpb $0x0, 0x30(%rsp)
je 0x6004
movl $0x7d0, %edx            # imm = 0x7D0
movq %r13, %rdi
movq %rbx, %rsi
callq 0x8344
cmpq $0x7d0, %rax            # imm = 0x7D0
jb 0x6004
xorl %ebx, %ebx
xorl %edi, %edi
leaq 0x3e35(%rip), %rsi      # 0x9e30
xorl %eax, %eax
callq 0x591f
jmp 0x6050
movq %rbp, %r14
movl $0x8, %eax
testq %r13, %r13
je 0x61ad
cmpb $0x0, (%r13)
je 0x61ad
movq %r13, %rdi
callq 0x880a
movq %rax, %rbx
movq %rax, %rdi
movq %r12, %rsi
callq 0x4780
testq %rax, %rax
je 0x6098
cmpb $0xd, (%rax)
sete %cl
shlb $0x2, %cl
addb $0x4e, %cl
movb %cl, (%rax)
movq %rbx, %rdi
jmp 0x602e
xorl %ebx, %ebx
movq 0x8(%rsp), %r12
callq 0x7309
testq %r13, %r13
je 0x6067
movq %r13, %rdi
callq 0x4540
testb %bl, %bl
jne 0x607b
xorl %edi, %edi
leaq 0x39e5(%rip), %rsi      # 0x9a59
xorl %eax, %eax
callq 0x591f
leaq 0x8(%rbp), %rax
cmpq $0x48, %rbp
movq %rax, %rbp
leaq 0x3aa7(%rip), %r13      # 0x9b34
jb 0x5d57
jmp 0x6239
leaq 0x3e0d(%rip), %rdi      # 0x9eac
movq %rbx, %rsi
xorl %eax, %eax
callq 0x57b1
movq %rbx, %rdi
callq 0x4540
movq %r13, %rdi
callq 0x880a
movq %rax, %rdi
callq 0x8619
movq %rax, %rbx
movq %rax, %rdi
movl $0xa, %esi
callq 0x44b0
movl $0x8, %r12d
testq %rax, %rax
je 0x6177
incq %rax
movq %rax, %rdi
callq 0x880a
movq %rax, %rdi
callq 0x859d
movq %rax, %rbp
movq %rbx, %rdi
callq 0x4540
leaq 0x3dd7(%rip), %rdi      # 0x9edc
movq %rbp, %rsi
xorl %eax, %eax
callq 0x57b1
movl $0x5, %edx
movq %rbp, %rdi
leaq 0x3dd8(%rip), %rsi      # 0x9ef6
callq 0x41d0
testl %eax, %eax
je 0x617c
movl $0x6, %edx
movq %rbp, %rdi
leaq 0x3dc6(%rip), %rsi      # 0x9efc
callq 0x41d0
testl %eax, %eax
je 0x619c
leaq 0x3d2d(%rip), %rdi      # 0x9e73
movq %rbp, %rsi
callq 0x4640
xorl %ebx, %ebx
testl %eax, %eax
je 0x6181
cmpq $0x70, %rbx
setae %cl
jae 0x6196
leaq 0x79ac(%rip), %rax      # 0xdb10
movq 0x10(%rbx,%rax), %rdi
addq $0x10, %rbx
movq %rbp, %rsi
callq 0x4640
jmp 0x6150
movq %rbx, %rbp
jmp 0x61a2
xorl %r12d, %r12d
jmp 0x61a2
movq %rbp, %rdi
callq 0x4540
leaq 0x7980(%rip), %rax      # 0xdb10
movl 0x8(%rbx,%rax), %eax
xorl %ecx, %ecx
testb %cl, %cl
jne 0x61a2
jmp 0x61ad
movl $0x1, %r12d
movq %rbp, %rdi
callq 0x4540
movl %r12d, %eax
cmpl $0x7, %eax
ja 0x61d5
movl %eax, %eax
leaq 0x3265(%rip), %rcx      # 0x9420
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
movq 0x8(%rsp), %r12
movq %r14, %rbp
jmpq *%rax
leaq 0x39dd(%rip), %rdi      # 0x9bb0
jmp 0x6202
xorl %ebx, %ebx
xorl %edi, %edi
leaq 0x3c4d(%rip), %rsi      # 0x9e2d
leaq 0x3b54(%rip), %rdx      # 0x9d3b
xorl %eax, %eax
callq 0x591f
movq 0x8(%rsp), %r12
movq %r14, %rbp
jmp 0x6055
leaq 0x39cd(%rip), %rdi      # 0x9bcf
xorl %eax, %eax
callq 0x588a
jmp 0x6232
cmpb $0x0, 0x8572(%rip)      # 0xe784
je 0x621f
xorl %edi, %edi
leaq 0x3aff(%rip), %rsi      # 0x9d1c
jmp 0x6228
xorl %edi, %edi
leaq 0x3ab0(%rip), %rsi      # 0x9cd8
xorl %eax, %eax
callq 0x591f
movb $0x1, %r12b
movb $0x1, %bl
jmp 0x6055
movq $-0x8, %rbx
movq 0x8(%rbx,%r15), %rdi
testq %rdi, %rdi
je 0x624f
callq 0x4540
movq $0x0, 0x8(%rbx,%r15)
addq $0x8, %rbx
cmpq $0x48, %rbx
jb 0x6240
leaq 0x3417(%rip), %r15      # 0x9680
cmpb $0x0, 0x8514(%rip)      # 0xe784
jne 0x62ca
movups 0x7887(%rip), %xmm0     # 0xdb00
movaps %xmm0, 0x40(%rsp)
movups 0x786b(%rip), %xmm0     # 0xdaf0
movaps %xmm0, 0x30(%rsp)
movl $0x708, %esi            # imm = 0x708
testb $0x1, %r12b
jne 0x62a2
leaq 0x30(%rsp), %rdi
callq 0x79f0
movq %rax, %rsi
movq %rsi, 0x20(%rsp)
movq $0x0, 0x28(%rsp)
leaq 0x37d4(%rip), %rdi      # 0x9a8b
xorl %eax, %eax
callq 0x57b1
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
callq 0x4130
cmpb $0x1, 0x84b3(%rip)      # 0xe784
jne 0x5c7b
xorl %eax, %eax
addq $0x428, %rsp            # imm = 0x428
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x37f3(%rip), %rsi      # 0x9ae5
xorl %edi, %edi
movl %ebx, %edx
xorl %eax, %eax
callq 0x563c
leaq 0x3832(%rip), %rsi      # 0x9b36
xorl %edi, %edi
jmp 0x6314
leaq 0x3895(%rip), %rsi      # 0x9ba4
movl $0x16, %edi
xorl %eax, %eax
callq 0x563c
leaq 0x3782(%rip), %rsi      # 0x9aa4
jmp 0x630f
leaq 0x391b(%rip), %rsi      # 0x9c46
jmp 0x6304
leaq 0x38eb(%rip), %rsi      # 0x9c1f
jmp 0x6304
leaq 0x38a8(%rip), %rsi      # 0x9be5
jmp 0x6304
leaq 0x3973(%rip), %rsi      # 0x9cb9
jmp 0x6304
leaq 0x393f(%rip), %rsi      # 0x9c8e
jmp 0x6304
callq 0x640e
leaq 0x33b5(%rip), %rbx      # 0x9712
leaq 0x230(%rsp), %r14
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x76d4
testq %rax, %rax
je 0x6365
movq %rax, %r15
movq %rax, %rdi
callq 0x7d64
movq %r15, %rdi
callq 0x4540
xorl %edi, %edi
callq 0x4550
callq 0x4050
movl (%rax), %edi
leaq 0x3674(%rip), %rsi      # 0x9a16
leaq 0x32d2(%rip), %rdx      # 0x967b
jmp 0x63bb
leaq 0x364a(%rip), %rsi      # 0x99fc
leaq 0x32bb(%rip), %rdx      # 0x9674
xorl %edi, %edi
xorl %eax, %eax
callq 0x563c
callq 0x4050
movl (%rax), %edi
leaq 0x364f(%rip), %rsi      # 0x9a1f
jmp 0x6314
callq 0x4050
movl (%rax), %edi
leaq 0x3643(%rip), %rsi      # 0x9a26
jmp 0x6314
callq 0x4050
movl (%rax), %edi
leaq 0x3638(%rip), %rsi      # 0x9a2e
jmp 0x6314
callq 0x4050
movl (%rax), %edi
leaq 0x362c(%rip), %rsi      # 0x9a35
jmp 0x6314