// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/cwm.c
// Function: main
int
main(int argc, char **argv)
{
	const char	*conf_file = NULL;
	char		*display_name = NULL;
	int		 ch;

	if (!setlocale(LC_CTYPE, "") || !XSupportsLocale())
		warnx("no locale support");
	mbtowc(NULL, NULL, MB_CUR_MAX);

	cwm_argv = argv;
	while ((ch = getopt(argc, argv, "c:d:")) != -1) {
		switch (ch) {
		case 'c':
			conf_file = optarg;
			break;
		case 'd':
			display_name = optarg;
			break;
		default:
			usage();
		}
	}
	argc -= optind;
	argv += optind;

	if (signal(SIGCHLD, sigchld_cb) == SIG_ERR)
		err(1, "signal");

	dpy_init(display_name);

	bzero(&Conf, sizeof(Conf));
	conf_setup(&Conf, conf_file);
	xu_getatoms();
	x_setup();

	xev_loop();

	x_teardown();

	return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x8799(%rip), %rsi      # 0xe172
xorl %edi, %edi
callq 0x57e0
testq %rax, %rax
je 0x59ee
callq 0x52c0
testl %eax, %eax
jne 0x59fc
leaq 0x860f(%rip), %rdi      # 0xe004
xorl %eax, %eax
callq 0x5140
callq 0x5370
xorl %r13d, %r13d
xorl %edi, %edi
xorl %esi, %esi
movq %rax, %rdx
callq 0x5080
movq %rbx, 0xed41(%rip)      # 0x14758
leaq 0x85f8(%rip), %r12      # 0xe016
movq 0xe5b3(%rip), %r15      # 0x13fd8
xorl %r14d, %r14d
movl %ebp, %edi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x51c0
cmpl $0x64, %eax
jne 0x5a3f
movq (%r15), %r14
jmp 0x5a28
cmpl $-0x1, %eax
je 0x5a52
cmpl $0x63, %eax
jne 0x5d9d
movq (%r15), %r13
jmp 0x5a28
leaq 0x3a1(%rip), %rsi       # 0x5dfa
pushq $0x11
popq %rdi
callq 0x5500
cmpq $-0x1, %rax
je 0x5da2
leaq 0x3d3(%rip), %rdi       # 0x5e45
callq 0x5770
movq %r14, %rdi
callq 0x52a0
movq %rax, 0x10dc2(%rip)     # 0x16848
testq %rax, %rax
je 0x5db3
leaq 0x3b2(%rip), %rdi       # 0x5e48
callq 0x5770
movq 0x10da6(%rip), %rdi     # 0x16848
movq 0xe8(%rdi), %rax
movslq 0xe0(%rdi), %rcx
shlq $0x7, %rcx
movq 0x10(%rax,%rcx), %rsi
movl $0x100000, %edx         # imm = 0x100000
callq 0x5560
movq 0x10d7e(%rip), %rdi     # 0x16848
xorl %r15d, %r15d
xorl %esi, %esi
callq 0x55b0
leaq 0x36a(%rip), %rdi       # 0x5e45
callq 0x5770
movq 0x10d61(%rip), %rdi     # 0x16848
leaq 0x10d8e(%rip), %rsi     # 0x1687c
leaq 0x90(%rsp), %r14
movq %r14, %rdx
callq 0x5230
movl %eax, 0x10d74(%rip)     # 0x16878
leaq 0xec55(%rip), %rbx      # 0x14760
movl $0x20e8, %edx           # imm = 0x20E8
movq %rbx, %rdi
xorl %esi, %esi
callq 0x5090
movq %rbx, %rdi
movq %r13, %rsi
callq 0x95d1
callq 0x8a02
movq 0x10d17(%rip), %rdi     # 0x16848
xorl %esi, %esi
callq 0x5050
movq %rax, 0x10d11(%rip)     # 0x16850
movq 0x10d02(%rip), %rdi     # 0x16848
pushq $0x34
popq %rsi
callq 0x5050
movq %rax, 0x10d03(%rip)     # 0x16858
movq 0x10cec(%rip), %rdi     # 0x16848
pushq $0x44
popq %rsi
callq 0x5050
movq %rax, 0x10cf5(%rip)     # 0x16860
movq 0x10cd6(%rip), %rdi     # 0x16848
pushq $0x5c
popq %rsi
callq 0x5050
movq %rax, 0x10ce7(%rip)     # 0x16868
movq 0x10cc0(%rip), %rdi     # 0x16848
pushq $0xe
popq %rsi
callq 0x5050
movq %rax, 0x10cd9(%rip)     # 0x16870
pushq $0x1
popq %r13
movq 0x10ca6(%rip), %rax     # 0x16848
movslq 0xe4(%rax), %rax
cmpq %rax, %r15
jge 0x5d43
movl $0x2f0, %esi            # imm = 0x2F0
pushq $0x1
popq %rdi
callq 0x6032
movq %rax, %rbp
movl %r15d, 0x10(%rax)
movq 0x10c7b(%rip), %rax     # 0x16848
movq 0xe8(%rax), %rax
movq %r15, %rcx
shlq $0x7, %rcx
movq 0x10(%rax,%rcx), %rax
movq %rax, 0x18(%rbp)
movq %rbp, %rdi
callq 0x8a6b
movq %rbp, %rdi
callq 0x8ac3
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x8fc5
movq %rbp, %rdi
callq 0x5f47
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x9008
movq %rbp, %rdi
callq 0x9e1c
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x8fd1
leaq 0xd8(%rbp), %rax
andq $0x0, 0xd8(%rbp)
movq %rax, 0xe0(%rbp)
movq %rbp, %rdi
callq 0x7208
movq 0x10c16(%rip), %rax     # 0x16860
movq %rax, 0x88(%rsp)
movq $0xd8003c, 0x68(%rsp)   # imm = 0xD8003C
movq 0x10be6(%rip), %rdi     # 0x16848
movq 0x18(%rbp), %rsi
movl $0x4800, %edx           # imm = 0x4800
leaq 0x20(%rsp), %rcx
callq 0x58a0
movq 0x10bcc(%rip), %rdi     # 0x16848
movq 0x18(%rbp), %rsi
leaq 0x18(%rsp), %rdx
leaq 0x10(%rsp), %rcx
movq %rsp, %r8
leaq 0xc(%rsp), %r9
callq 0x5850
xorl %r12d, %r12d
movl 0xc(%rsp), %eax
cmpq %rax, %r12
jae 0x5ce6
movq 0x10b9e(%rip), %rdi     # 0x16848
movq (%rsp), %rax
movq (%rax,%r12,8), %rsi
movq %r14, %rdx
callq 0x5710
cmpl $0x0, 0x108(%rsp)
jne 0x5ce1
cmpl $0x2, 0xec(%rsp)
jne 0x5ce1
movq (%rsp), %rax
movq (%rax,%r12,8), %rdi
movq %rbp, %rsi
movl %r13d, %edx
callq 0x608a
incq %r12
jmp 0x5c9a
movq (%rsp), %rdi
callq 0x5060
movq %rbp, %rdi
callq 0x5e7d
cmpl $0x0, 0x10b7a(%rip)     # 0x16878
je 0x5d13
movq 0x10b41(%rip), %rdi     # 0x16848
movq 0x18(%rbp), %rsi
movl %r13d, %edx
callq 0x52e0
movq 0x10b2e(%rip), %rdi     # 0x16848
xorl %esi, %esi
callq 0x55b0
andq $0x0, (%rbp)
movq 0xe74b(%rip), %rax      # 0x14478
movq %rax, 0x8(%rbp)
movq %rbp, (%rax)
movq %rbp, 0xe73d(%rip)      # 0x14478
incq %r15
jmp 0x5b9b
movq %rbx, %r14
movq (%r14), %r14
testq %r14, %r14
je 0x5d5b
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9754
jmp 0x5d46
callq 0x9d71
leaq 0xe709(%rip), %rbx      # 0x14470
movq (%rbx), %rbx
movq 0x10ad7(%rip), %rdi     # 0x16848
testq %rbx, %rbx
je 0x5d84
movq 0x98(%rbx), %rsi
callq 0x5410
jmp 0x5d67
callq 0x5350
xorl %eax, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x5dcf
leaq 0x8272(%rip), %rsi      # 0xe01b
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x54b0
movq %r14, %rdi
callq 0x5430
leaq 0x8282(%rip), %rsi      # 0xe044
pushq $0x1
popq %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x56f0