// File: /workspace/github_c_makefile_star2_O1/acidDrain[P]st/x.c
// Function: main
int
main(int argc, char *argv[])
{
	xw.l = xw.t = 0;
	xw.isfixed = False;
	xsetcursor(cursorshape);

	ARGBEGIN {
	case 'a':
		allowaltscreen = 0;
		break;
	case 'A':
		opt_alpha = EARGF(usage());
		break;
	case 'c':
		opt_class = EARGF(usage());
		break;
	case 'e':
		if (argc > 0)
			--argc, ++argv;
		goto run;
	case 'f':
		opt_font = EARGF(usage());
		break;
	case 'g':
		xw.gm = XParseGeometry(EARGF(usage()),
				&xw.l, &xw.t, &cols, &rows);
		geometry = CellGeometry;
		break;
	case 'G':
		xw.gm = XParseGeometry(EARGF(usage()),
				&xw.l, &xw.t, &width, &height);
		geometry = PixelGeometry;
		break;
	case 'i':
		xw.isfixed = 1;
		break;
	case 'o':
		opt_io = EARGF(usage());
		break;
	case 'l':
		opt_line = EARGF(usage());
		break;
	case 'n':
		opt_name = EARGF(usage());
		break;
	case 't':
	case 'T':
		opt_title = EARGF(usage());
		break;
	case 'w':
		opt_embed = EARGF(usage());
		break;
	case 'v':
		die("%s " VERSION "\n", argv0);
		break;
	default:
		usage();
	} ARGEND;

run:
    colorname = palettes[0];

	if (argc > 0) /* eat all remaining arguments */
		opt_cmd = argv;

	if (!opt_title)
		opt_title = (opt_line || !opt_cmd) ? "st" : opt_cmd[0];

	setlocale(LC_CTYPE, "");
	XSetLocaleModifiers("");
	switch (geometry) {
	case CellGeometry:
		xinit(cols, rows);
		break;
	case PixelGeometry:
		xinit(width, height);
		cols = (win.w - 2 * borderpx) / win.cw;
		rows = (win.h - 2 * borderpx) / win.ch;
		break;
	}
	cols = MAX(cols, 1);
	rows = MAX(rows, 1);
	tnew(cols, rows);
	xsetenv();
	selinit();
	run();

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rsi, %r12
movq $0x0, 0x1172d(%rip) # 0x1e054
movl $0x0, 0x1171b(%rip)     # 0x1e04c
movl $0x2, 0x11751(%rip)     # 0x1e08c
movq (%rsi), %rax
movq %rax, 0x11753(%rip)     # 0x1e098
leaq 0x41b4(%rip), %r13      # 0x10b00
leal -0x1(%rdi), %ebp
movq 0x8(%r12), %rax
testq %rax, %rax
je 0xccbe
cmpb $0x2d, (%rax)
jne 0xccbe
movzbl 0x1(%rax), %ecx
cmpl $0x2d, %ecx
je 0xc978
testl %ecx, %ecx
jne 0xc982
jmp 0xccbe
cmpb $0x0, 0x2(%rax)
je 0xcc90
leaq 0x8(%r12), %rax
movq 0x8(%r12), %rdi
movb 0x1(%rdi), %cl
movb $0x1, %dl
testb %cl, %cl
je 0xcc9e
movl $0x8, %ebx
xorl %r15d, %r15d
movl $0x2, %r14d
movzbl %cl, %ecx
cmpl $0x60, %ecx
jle 0xc9d4
addl $-0x61, %ecx
cmpl $0x16, %ecx
ja 0xcc72
movslq (%r13,%rcx,4), %rcx
addq %r13, %rcx
jmpq *%rcx
movl $0x0, 0xab69(%rip)      # 0x17538
jmp 0xcc4e
cmpl $0x41, %ecx
je 0xcbc7
cmpl $0x47, %ecx
je 0xcbf5
cmpl $0x54, %ecx
jne 0xcc72
movb (%rdi,%r14), %cl
addq %r14, %rdi
testb %cl, %cl
jne 0xca14
cmpq $0x0, 0x8(%rax)
je 0xd1e6
testb %cl, %cl
jne 0xca14
decl %ebp
movq 0x8(%r12,%rbx), %rdi
addq $0x8, %rbx
movq %rdi, 0x11675(%rip)     # 0x1e090
jmp 0xcc48
movl $0x1, 0x11622(%rip)     # 0x1e04c
jmp 0xcc4e
movb (%rdi,%r14), %cl
addq %r14, %rdi
testb %cl, %cl
jne 0xca54
cmpq $0x0, 0x8(%rax)
je 0xd1e6
testb %cl, %cl
jne 0xca54
decl %ebp
movq 0x8(%r12,%rbx), %rdi
addq $0x8, %rbx
movq %rdi, 0x11675(%rip)     # 0x1e0d0
jmp 0xcc48
movb (%rdi,%r14), %cl
addq %r14, %rdi
testb %cl, %cl
jne 0xca85
cmpq $0x0, 0x8(%rax)
je 0xd1e6
testb %cl, %cl
jne 0xca85
decl %ebp
movq 0x8(%r12,%rbx), %rdi
addq $0x8, %rbx
movq %rdi, 0x1161c(%rip)     # 0x1e0a8
jmp 0xcc48
movb (%rdi,%r14), %cl
addq %r14, %rdi
testb %cl, %cl
jne 0xcab6
cmpq $0x0, 0x8(%rax)
je 0xd1e6
testb %cl, %cl
jne 0xcab6
decl %ebp
movq 0x8(%r12,%rbx), %rdi
addq $0x8, %rbx
movq %rdi, 0x115e3(%rip)     # 0x1e0a0
jmp 0xcc48
movb (%rdi,%r14), %cl
addq %r14, %rdi
testb %cl, %cl
jne 0xcae7
cmpq $0x0, 0x8(%rax)
je 0xd1e6
testb %cl, %cl
jne 0xcae7
decl %ebp
movq 0x8(%r12,%rbx), %rdi
addq $0x8, %rbx
movq %rdi, 0x115da(%rip)     # 0x1e0c8
jmp 0xcc48
movb (%rdi,%r14), %cl
addq %r14, %rdi
testb %cl, %cl
jne 0xcb18
cmpq $0x0, 0x8(%rax)
je 0xd1e6
testb %cl, %cl
jne 0xcb18
decl %ebp
movq 0x8(%r12,%rbx), %rdi
addq $0x8, %rbx
leaq 0x11535(%rip), %rsi     # 0x1e054
leaq 0x11532(%rip), %rdx     # 0x1e058
leaq 0xaa27(%rip), %rcx      # 0x17554
leaq 0xaa24(%rip), %r8       # 0x17558
callq 0x69f0
movl %eax, 0x1151d(%rip)     # 0x1e05c
movb $0x1, 0x1156a(%rip)     # 0x1e0b0
jmp 0xcc48
movq 0x11546(%rip), %rsi     # 0x1e098
leaq 0x4111(%rip), %rdi      # 0x10c6a
xorl %eax, %eax
callq 0x6f56
jmp 0xcc4e
movb (%rdi,%r14), %cl
addq %r14, %rdi
testb %cl, %cl
jne 0xcb8a
cmpq $0x0, 0x8(%rax)
je 0xd1e6
testb %cl, %cl
jne 0xcb8a
decl %ebp
movq 0x8(%r12,%rbx), %rdi
addq $0x8, %rbx
movq %rdi, 0x1152f(%rip)     # 0x1e0c0
jmp 0xcc48
movb (%rdi,%r14), %cl
addq %r14, %rdi
testb %cl, %cl
jne 0xcbbb
cmpq $0x0, 0x8(%rax)
je 0xd1e6
testb %cl, %cl
jne 0xcbbb
decl %ebp
movq 0x8(%r12,%rbx), %rdi
addq $0x8, %rbx
movq %rdi, 0x114f6(%rip)     # 0x1e0b8
jmp 0xcc48
movb (%rdi,%r14), %cl
addq %r14, %rdi
testb %cl, %cl
jne 0xcbec
cmpq $0x0, 0x8(%rax)
je 0xd1e6
testb %cl, %cl
jne 0xcbec
decl %ebp
movq 0x8(%r12,%rbx), %rdi
addq $0x8, %rbx
movq %rdi, 0x11475(%rip)     # 0x1e068
jmp 0xcc48
movb (%rdi,%r14), %cl
addq %r14, %rdi
testb %cl, %cl
jne 0xcc1a
cmpq $0x0, 0x8(%rax)
je 0xd1e6
testb %cl, %cl
jne 0xcc1a
decl %ebp
movq 0x8(%r12,%rbx), %rdi
addq $0x8, %rbx
leaq 0x11433(%rip), %rsi     # 0x1e054
leaq 0x11430(%rip), %rdx     # 0x1e058
leaq 0xa92d(%rip), %rcx      # 0x1755c
leaq 0xa92a(%rip), %r8       # 0x17560
callq 0x69f0
movl %eax, 0x1141b(%rip)     # 0x1e05c
movb $0x0, 0x11468(%rip)     # 0x1e0b0
movl $0x1, %r15d
leaq (%r12,%rbx), %rax
cmpq $0x8, %rbx
jne 0xcc8c
movq (%r12,%rbx), %rdi
movb (%rdi,%r14), %cl
testb %cl, %cl
je 0xcc8c
incq %r14
testl %r15d, %r15d
je 0xc9a7
jmp 0xcc8c
movq 0x1141f(%rip), %rdx     # 0x1e098
leaq 0x4044(%rip), %rdi      # 0x10cc4
movq %rdx, %rsi
xorl %eax, %eax
callq 0x6f56
jmp 0xcc4e
movb $0x1, %dl
jmp 0xcc9e
addq $0x10, %r12
addl $-0x2, %edi
xorl %edx, %edx
movq %r12, %rax
movl %edi, %ebp
movq %rax, %r12
movl %ebp, %edi
testb %dl, %dl
jne 0xc94c
jmp 0xccc5
xorl %ecx, %ecx
testl %ebp, %ebp
setg %cl
leaq (%rax,%rcx,8), %rax
subl %ecx, %ebp
xorl %edx, %edx
jmp 0xcc9e
addq $0x8, %r12
movq %r12, %rax
leaq 0xa8a4(%rip), %rcx      # 0x17570
movq %rcx, 0x1138d(%rip)     # 0x1e060
testl %ebp, %ebp
jle 0xccde
movq %rax, 0x113fa(%rip)     # 0x1e0d8
cmpq $0x0, 0x113aa(%rip)     # 0x1e090
jne 0xcd1a
cmpq $0x0, 0x113d0(%rip)     # 0x1e0c0
sete %cl
movq 0x113de(%rip), %rax     # 0x1e0d8
testq %rax, %rax
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0xcd0c
movq (%rax), %rax
jmp 0xcd13
leaq 0x3935(%rip), %rax      # 0x10648
movq %rax, 0x11376(%rip)     # 0x1e090
leaq 0x4a50(%rip), %rbx      # 0x11771
xorl %edi, %edi
movq %rbx, %rsi
callq 0x68f0
movq %rbx, %rdi
callq 0x6820
cmpb $0x1, 0x11376(%rip)     # 0x1e0b0
jne 0xcd4f
movl 0xa812(%rip), %edi      # 0x17554
movl 0xa810(%rip), %esi      # 0x17558
callq 0xd208
jmp 0xcd8c
movl 0xa807(%rip), %edi      # 0x1755c
movl 0xa805(%rip), %esi      # 0x17560
callq 0xd208
movl 0x11312(%rip), %eax     # 0x1e078
addl $-0x18, %eax
cltd
idivl 0x11314(%rip)           # 0x1e084
movl %eax, 0xa7de(%rip)      # 0x17554
movl 0x11300(%rip), %eax     # 0x1e07c
addl $-0x18, %eax
cltd
idivl 0x112fa(%rip)           # 0x1e080
movl %eax, 0xa7cc(%rip)      # 0x17558
movl 0xa7c2(%rip), %edi      # 0x17554
cmpl $0x1, %edi
adcl $0x0, %edi
movl %edi, 0xa7b6(%rip)      # 0x17554
movl 0xa7b4(%rip), %esi      # 0x17558
cmpl $0x1, %esi
adcl $0x0, %esi
movl %esi, 0xa7a8(%rip)      # 0x17558
callq 0x8262
movq 0x111b4(%rip), %rcx     # 0x1df70
leaq 0x45ea(%rip), %rdx      # 0x113ad
leaq 0xe0(%rsp), %rbx
movl $0x41, %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x60c0
leaq 0x45d0(%rip), %rdi      # 0x113b1
movq %rbx, %rsi
movl $0x1, %edx
callq 0x65c0
callq 0x70bf
movl 0x1127e(%rip), %r15d    # 0x1e078
movl 0x1127c(%rip), %ebp     # 0x1e07c
movq 0x11159(%rip), %rdi     # 0x1df60
callq 0x62d0
movl %eax, %r13d
movq 0x1114a(%rip), %rdi     # 0x1df60
movq %rbx, %rsi
callq 0x6460
movq %rbx, %rdi
xorl %esi, %esi
callq 0x6360
movl 0xe0(%rsp), %ecx
movl %ecx, %edx
xorl $0x16, %edx
orl %eax, %edx
jne 0xce47
movl 0x11c(%rsp), %ebp
movl 0x118(%rsp), %r15d
cmpl $0x13, %ecx
jne 0xce0f
movq 0x1126d(%rip), %rdi     # 0x1e0c0
movq 0x1125e(%rip), %rdx     # 0x1e0b8
movq 0x11277(%rip), %rcx     # 0x1e0d8
leaq 0x4552(%rip), %rsi      # 0x113ba
callq 0x77e9
movl %r15d, %edi
movl %ebp, %esi
movq %rax, %rbp
callq 0xe1b2
leal 0x3f(%rbp), %eax
testl %ebp, %ebp
cmovnsl %ebp, %eax
movl %eax, %edx
andl $-0x40, %edx
movl %ebp, %ecx
subl %edx, %ecx
movl $0x1, %r15d
movl $0x1, %r12d
shlq %cl, %r12
sarl $0x6, %eax
leal 0x3f(%r13), %edx
testl %r13d, %r13d
cmovnsl %r13d, %edx
movl %edx, %esi
andl $-0x40, %esi
movl %r13d, %ecx
subl %esi, %ecx
shlq %cl, %r15
movslq %eax, %r14
sarl $0x6, %edx
movslq %edx, %rbx
cmpl %ebp, %r13d
cmovgl %r13d, %ebp
incl %ebp
movsd 0x3cb1(%rip), %xmm2     # 0x10b80
leaq 0xe0(%rsp), %r13
movq $0x0, 0x30(%rsp)
movq $0x0, 0x28(%rsp)
movq %rbp, 0x38(%rsp)
movb $0x1, %al
movsd %xmm2, 0x8(%rsp)
movl %eax, 0x14(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0xd0(%rsp)
movapd %xmm0, 0xc0(%rsp)
movapd %xmm0, 0xb0(%rsp)
movapd %xmm0, 0xa0(%rsp)
movapd %xmm0, 0x90(%rsp)
movapd %xmm0, 0x80(%rsp)
movapd %xmm0, 0x70(%rsp)
movapd %xmm0, 0x60(%rsp)
orq %r12, 0x60(%rsp,%r14,8)
orq %r15, 0x60(%rsp,%rbx,8)
movq 0x1100f(%rip), %rdi     # 0x1df60
callq 0x69c0
xorpd %xmm0, %xmm0
testl %eax, %eax
movsd 0x8(%rsp), %xmm2
je 0xcf68
xorpd %xmm2, %xmm2
movapd %xmm2, %xmm1
divsd 0x3c14(%rip), %xmm1     # 0x10b88
cvttsd2si %xmm1, %rax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
movq %rax, 0x50(%rsp)
mulsd 0x3c02(%rip), %xmm1     # 0x10b90
addsd %xmm2, %xmm1
mulsd 0x3bfe(%rip), %xmm1     # 0x10b98
cvttsd2si %xmm1, %rax
movsd %xmm2, 0x8(%rsp)
ucomisd %xmm0, %xmm2
movq %rax, 0x58(%rsp)
movl $0x0, %r8d
leaq 0x50(%rsp), %rax
cmovaeq %rax, %r8
movl %ebp, %edi
leaq 0x60(%rsp), %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r9d, %r9d
callq 0x6330
testl %eax, %eax
jns 0xcffa
callq 0x6600
movl (%rax), %edi
cmpl $0x4, %edi
je 0xcefa
callq 0x64b0
leaq 0x3811(%rip), %rdi      # 0x10801
movq %rax, %rsi
xorl %eax, %eax
callq 0x6f56
movl $0x1, %edi
leaq 0x18(%rsp), %rsi
callq 0x6140
testq %r12, 0x60(%rsp,%r14,8)
je 0xd015
callq 0x7ccf
movq 0x10f44(%rip), %rdi     # 0x1df60
callq 0x69c0
movl %eax, %ebp
testl %eax, %eax
je 0xd077
movq 0x10f32(%rip), %rdi     # 0x1df60
movq %r13, %rsi
callq 0x6460
movq %r13, %rdi
xorl %esi, %esi
callq 0x6360
testl %eax, %eax
jne 0xd069
movslq 0xe0(%rsp), %rax
movabsq $0xd2fbb698b, %rcx      # imm = 0xD2FBB698B
btq %rax, %rcx
jb 0xd069
movq %r13, %rdi
leaq 0x81da(%rip), %rcx      # 0x15240
callq *(%rcx,%rax,8)
movq 0x10ef0(%rip), %rdi     # 0x1df60
callq 0x69c0
jmp 0xd023
testl %ebp, %ebp
jne 0xd089
movq 0x60(%rsp,%r14,8), %rax
andq %r12, %rax
je 0xd110
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
testb $0x1, 0x14(%rsp)
movq 0x48(%rsp), %rdx
cmovneq %rcx, %rdx
movq 0x40(%rsp), %rsi
cmovneq %rax, %rsi
movq %rsi, 0x40(%rsp)
subq %rsi, %rax
imulq $0x3e8, %rax, %rax      # imm = 0x3E8
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movq %rdx, 0x48(%rsp)
subq %rdx, %rcx
xorps %xmm1, %xmm1
cvtsi2sd %rcx, %xmm1
divsd 0x3abf(%rip), %xmm1     # 0x10b98
addsd %xmm0, %xmm1
movsd 0x3abb(%rip), %xmm0     # 0x10ba0
movapd %xmm0, %xmm2
subsd %xmm1, %xmm2
divsd %xmm0, %xmm2
mulsd 0x3aaf(%rip), %xmm2     # 0x10ba8
xorl %eax, %eax
ucomisd 0x3abd(%rip), %xmm2     # 0x10bc0
movq 0x38(%rsp), %rbp
ja 0xcef0
jmp 0xd115
movq 0x38(%rsp), %rbp
movl $0x10, %edi
callq 0x81a4
testl %eax, %eax
je 0xd178
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
subq 0x28(%rsp), %rax
imulq $0x3e8, %rax, %rax      # imm = 0x3E8
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
subq 0x30(%rsp), %rcx
xorps %xmm1, %xmm1
cvtsi2sd %rcx, %xmm1
divsd 0x3a42(%rip), %xmm1     # 0x10b98
addsd %xmm0, %xmm1
movsd 0x3a4e(%rip), %xmm2     # 0x10bb0
subsd %xmm1, %xmm2
xorpd %xmm0, %xmm0
ucomisd %xmm2, %xmm0
jae 0xd182
movsd %xmm2, 0x8(%rsp)
jmp 0xd1ca
movsd 0x3a00(%rip), %xmm0     # 0x10b80
jmp 0xd1c4
movsd 0x3a2e(%rip), %xmm0     # 0x10bb8
ucomisd %xmm2, %xmm0
jbe 0xd197
orb $0x8, 0x10ef2(%rip)     # 0x1e089
xorb $0x8, 0x10eeb(%rip)     # 0x1e089
movl $0x10, %edi
callq 0x81f9
movq 0x18(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x30(%rsp)
movsd 0x39ec(%rip), %xmm0     # 0x10bb0
movsd %xmm0, 0x8(%rsp)
callq 0x8d70
movq 0x10d8a(%rip), %rdi     # 0x1df60
callq 0x6610
movsd 0x8(%rsp), %xmm2
jmp 0xceee
callq 0xd1f0
callq 0x6120