// File: /workspace/github_c_makefile_star2_O3/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
movl %edi, %ebx
movq $0x0, 0x12272(%rip) # 0x1e054
movl $0x0, 0x12260(%rip)     # 0x1e04c
movl $0x2, 0x12296(%rip)     # 0x1e08c
movq (%rsi), %rax
movq %rax, 0x12298(%rip)     # 0x1e098
leal -0x1(%rbx), %eax
movq 0x8(%rsi), %rdi
testq %rdi, %rdi
je 0xc1cc
leaq 0x12241(%rip), %r15     # 0x1e058
leaq 0x4d12(%rip), %rbp      # 0x10b30
movq %rsi, %r12
cmpb $0x2d, (%rdi)
jne 0xc1c9
movzbl 0x1(%rdi), %ecx
cmpl $0x2d, %ecx
je 0xbe3c
testl %ecx, %ecx
jne 0xbe46
jmp 0xc1c9
cmpb $0x0, 0x2(%rdi)
je 0xc6f3
leaq 0x8(%r12), %rsi
movl $0x2, %r13d
movl %eax, %ebx
movzbl %cl, %eax
cmpl $0x60, %eax
jle 0xbe80
addl $-0x61, %eax
cmpl $0x16, %eax
ja 0xbfbb
movslq (%rbp,%rax,4), %rax
addq %rbp, %rax
jmpq *%rax
movl $0x0, 0xb6bd(%rip)      # 0x17538
jmp 0xbfd3
cmpl $0x41, %eax
je 0xbf89
cmpl $0x47, %eax
je 0xbfa2
cmpl $0x54, %eax
jne 0xbfbb
cmpb $0x0, (%rdi,%r13)
je 0xbfe0
addq %r13, %rdi
movl $0x8, %r14d
jmp 0xbff8
movl $0x1, 0x1218e(%rip)     # 0x1e04c
jmp 0xbfd3
cmpb $0x0, (%rdi,%r13)
je 0xc004
addq %r13, %rdi
movl $0x8, %r14d
jmp 0xc01c
cmpb $0x0, (%rdi,%r13)
je 0xc028
addq %r13, %rdi
movl $0x8, %r14d
jmp 0xc040
cmpb $0x0, (%rdi,%r13)
je 0xc04c
addq %r13, %rdi
movl $0x8, %r14d
jmp 0xc064
cmpb $0x0, (%rdi,%r13)
je 0xc070
addq %r13, %rdi
movl $0x8, %r14d
jmp 0xc088
cmpb $0x0, (%rdi,%r13)
je 0xc094
addq %r13, %rdi
movl $0x8, %r14d
jmp 0xc0ac
movq 0x12151(%rip), %rsi     # 0x1e098
leaq 0x4d3c(%rip), %rdi      # 0x10c8a
xorl %eax, %eax
callq 0x5f46
jmp 0xbfd3
cmpb $0x0, (%rdi,%r13)
je 0xc0db
addq %r13, %rdi
movl $0x8, %r14d
jmp 0xc0f3
cmpb $0x0, (%rdi,%r13)
je 0xc0ff
addq %r13, %rdi
movl $0x8, %r14d
jmp 0xc117
cmpb $0x0, (%rdi,%r13)
je 0xc120
addq %r13, %rdi
movl $0x8, %r14d
jmp 0xc138
cmpb $0x0, (%rdi,%r13)
je 0xc141
addq %r13, %rdi
movl $0x8, %r14d
jmp 0xc159
movq 0x120d6(%rip), %rdx     # 0x1e098
leaq 0x4d1b(%rip), %rdi      # 0x10ce4
movq %rdx, %rsi
xorl %eax, %eax
callq 0x5f46
movb $0x1, %al
movl $0x8, %r14d
jmp 0xc185
cmpq $0x0, 0x8(%rsi)
je 0xc702
decl %ebx
movq 0x10(%r12), %rdi
movl $0x10, %r14d
movq %rdi, 0x12091(%rip)     # 0x1e090
jmp 0xc183
cmpq $0x0, 0x8(%rsi)
je 0xc702
decl %ebx
movq 0x10(%r12), %rdi
movl $0x10, %r14d
movq %rdi, 0x120ad(%rip)     # 0x1e0d0
jmp 0xc183
cmpq $0x0, 0x8(%rsi)
je 0xc702
decl %ebx
movq 0x10(%r12), %rdi
movl $0x10, %r14d
movq %rdi, 0x12061(%rip)     # 0x1e0a8
jmp 0xc183
cmpq $0x0, 0x8(%rsi)
je 0xc702
decl %ebx
movq 0x10(%r12), %rdi
movl $0x10, %r14d
movq %rdi, 0x12035(%rip)     # 0x1e0a0
jmp 0xc183
cmpq $0x0, 0x8(%rsi)
je 0xc702
decl %ebx
movq 0x10(%r12), %rdi
movl $0x10, %r14d
movq %rdi, 0x12039(%rip)     # 0x1e0c8
jmp 0xc183
cmpq $0x0, 0x8(%rsi)
je 0xc702
decl %ebx
movq 0x10(%r12), %rdi
movl $0x10, %r14d
leaq 0x11fa1(%rip), %rsi     # 0x1e054
movq %r15, %rdx
leaq 0xb497(%rip), %rcx      # 0x17554
leaq 0xb494(%rip), %r8       # 0x17558
callq 0x59e0
movl %eax, 0x11f8d(%rip)     # 0x1e05c
movb $0x1, 0x11fda(%rip)     # 0x1e0b0
jmp 0xc183
cmpq $0x0, 0x8(%rsi)
je 0xc702
decl %ebx
movq 0x10(%r12), %rdi
movl $0x10, %r14d
movq %rdi, 0x11fc6(%rip)     # 0x1e0c0
jmp 0xc183
cmpq $0x0, 0x8(%rsi)
je 0xc702
decl %ebx
movq 0x10(%r12), %rdi
movl $0x10, %r14d
movq %rdi, 0x11f9a(%rip)     # 0x1e0b8
jmp 0xc183
cmpq $0x0, 0x8(%rsi)
je 0xc702
decl %ebx
movq 0x10(%r12), %rdi
movl $0x10, %r14d
movq %rdi, 0x11f29(%rip)     # 0x1e068
jmp 0xc183
cmpq $0x0, 0x8(%rsi)
je 0xc702
decl %ebx
movq 0x10(%r12), %rdi
movl $0x10, %r14d
leaq 0x11ef4(%rip), %rsi     # 0x1e054
movq %r15, %rdx
leaq 0xb3f2(%rip), %rcx      # 0x1755c
leaq 0xb3ef(%rip), %r8       # 0x17560
callq 0x59e0
movl %eax, 0x11ee0(%rip)     # 0x1e05c
movb $0x0, 0x11f2d(%rip)     # 0x1e0b0
xorl %eax, %eax
leaq (%r12,%r14), %rsi
cmpq $0x8, %r14
jne 0xc1a6
testb %al, %al
je 0xc1a6
movq (%r12,%r14), %rdi
movb (%rdi,%r13), %cl
incq %r13
testb %cl, %cl
jne 0xbe53
leal -0x1(%rbx), %eax
movq 0x8(%rsi), %rdi
testq %rdi, %rdi
jne 0xbe1e
jmp 0xc1cc
xorl %eax, %eax
testl %ebx, %ebx
setg %al
leaq (%rsi,%rax,8), %rsi
subl %eax, %ebx
movl %ebx, %eax
jmp 0xc1d0
movq %r12, %rsi
addq $0x8, %rsi
leaq 0xb399(%rip), %rcx      # 0x17570
movq %rcx, 0x11e82(%rip)     # 0x1e060
testl %eax, %eax
jle 0xc1e9
movq %rsi, 0x11eef(%rip)     # 0x1e0d8
cmpq $0x0, 0x11e9f(%rip)     # 0x1e090
jne 0xc225
cmpq $0x0, 0x11ec5(%rip)     # 0x1e0c0
sete %cl
movq 0x11ed3(%rip), %rax     # 0x1e0d8
testq %rax, %rax
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0xc217
movq (%rax), %rax
jmp 0xc21e
leaq 0x4458(%rip), %rax      # 0x10676
movq %rax, 0x11e6b(%rip)     # 0x1e090
leaq 0x5565(%rip), %rbx      # 0x11791
xorl %edi, %edi
movq %rbx, %rsi
callq 0x58e0
movq %rbx, %rdi
callq 0x5810
cmpb $0x1, 0x11e6b(%rip)     # 0x1e0b0
jne 0xc266
movl 0xb307(%rip), %edi      # 0x17554
movl 0xb305(%rip), %esi      # 0x17558
callq 0xc724
movl 0xb2f6(%rip), %edi      # 0x17554
movl 0xb2f4(%rip), %esi      # 0x17558
jmp 0xc29b
movl 0xb2f0(%rip), %edi      # 0x1755c
movl 0xb2ee(%rip), %esi      # 0x17560
callq 0xc724
movl 0x11dfb(%rip), %eax     # 0x1e078
addl $-0x18, %eax
cltd
idivl 0x11dfd(%rip)           # 0x1e084
movl %eax, %edi
movl 0x11ded(%rip), %eax     # 0x1e07c
addl $-0x18, %eax
cltd
idivl 0x11de7(%rip)           # 0x1e080
movl %eax, %esi
cmpl $0x1, %edi
adcl $0x0, %edi
movl %edi, 0xb2ad(%rip)      # 0x17554
cmpl $0x1, %esi
adcl $0x0, %esi
movl %esi, 0xb2a5(%rip)      # 0x17558
callq 0x746c
movq 0x11cb1(%rip), %rcx     # 0x1df70
leaq 0x5107(%rip), %rdx      # 0x113cd
leaq 0xe0(%rsp), %rbx
movl $0x41, %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x50c0
leaq 0x50ed(%rip), %rdi      # 0x113d1
movq %rbx, %rsi
movl $0x1, %edx
callq 0x55c0
callq 0x60af
movl 0x11d7b(%rip), %r15d    # 0x1e078
movl 0x11d79(%rip), %ebp     # 0x1e07c
movq 0x11c56(%rip), %rdi     # 0x1df60
callq 0x52d0
movl %eax, %r13d
movq 0x11c47(%rip), %rdi     # 0x1df60
movq %rbx, %rsi
callq 0x5460
movq %rbx, %rdi
xorl %esi, %esi
callq 0x5360
movl 0xe0(%rsp), %ecx
movl %ecx, %edx
xorl $0x16, %edx
orl %eax, %edx
jne 0xc34a
movl 0x11c(%rsp), %ebp
movl 0x118(%rsp), %r15d
cmpl $0x13, %ecx
jne 0xc312
movq 0x11d6a(%rip), %rdi     # 0x1e0c0
movq 0x11d5b(%rip), %rdx     # 0x1e0b8
movq 0x11d74(%rip), %rcx     # 0x1e0d8
leaq 0x506f(%rip), %rsi      # 0x113da
callq 0x68d9
movl %r15d, %edi
movl %ebp, %esi
movq %rax, %rbp
callq 0xd6a1
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 0x47ce(%rip), %xmm2     # 0x10ba0
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 0x11b0c(%rip), %rdi     # 0x1df60
callq 0x59b0
xorpd %xmm0, %xmm0
testl %eax, %eax
movsd 0x8(%rsp), %xmm2
je 0xc46b
xorpd %xmm2, %xmm2
movapd %xmm2, %xmm1
divsd 0x4731(%rip), %xmm1     # 0x10ba8
cvttsd2si %xmm1, %rax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
movq %rax, 0x50(%rsp)
mulsd 0x471f(%rip), %xmm1     # 0x10bb0
addsd %xmm2, %xmm1
mulsd 0x471b(%rip), %xmm1     # 0x10bb8
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 0x5330
testl %eax, %eax
jns 0xc4fd
callq 0x5600
movl (%rax), %edi
cmpl $0x4, %edi
je 0xc3fd
callq 0x54b0
leaq 0x433c(%rip), %rdi      # 0x1082f
movq %rax, %rsi
xorl %eax, %eax
callq 0x5f46
movl $0x1, %edi
leaq 0x18(%rsp), %rsi
callq 0x5140
testq %r12, 0x60(%rsp,%r14,8)
je 0xc518
callq 0x6dba
movq 0x11a41(%rip), %rdi     # 0x1df60
callq 0x59b0
movl %eax, %ebp
testl %eax, %eax
je 0xc57a
movq 0x11a2f(%rip), %rdi     # 0x1df60
movq %r13, %rsi
callq 0x5460
movq %r13, %rdi
xorl %esi, %esi
callq 0x5360
testl %eax, %eax
jne 0xc56c
movslq 0xe0(%rsp), %rax
movabsq $0xd2fbb698b, %rcx      # imm = 0xD2FBB698B
btq %rax, %rcx
jb 0xc56c
movq %r13, %rdi
leaq 0x8cd7(%rip), %rcx      # 0x15240
callq *(%rcx,%rax,8)
movq 0x119ed(%rip), %rdi     # 0x1df60
callq 0x59b0
jmp 0xc526
testl %ebp, %ebp
jne 0xc58c
movq 0x60(%rsp,%r14,8), %rax
andq %r12, %rax
je 0xc613
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 0x45dc(%rip), %xmm1     # 0x10bb8
addsd %xmm0, %xmm1
movsd 0x45d8(%rip), %xmm0     # 0x10bc0
movapd %xmm0, %xmm2
subsd %xmm1, %xmm2
divsd %xmm0, %xmm2
mulsd 0x45cc(%rip), %xmm2     # 0x10bc8
xorl %eax, %eax
ucomisd 0x45da(%rip), %xmm2     # 0x10be0
movq 0x38(%rsp), %rbp
ja 0xc3f3
jmp 0xc618
movq 0x38(%rsp), %rbp
movl $0x10, %edi
callq 0x73a1
testl %eax, %eax
je 0xc67b
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 0x455f(%rip), %xmm1     # 0x10bb8
addsd %xmm0, %xmm1
movsd 0x456b(%rip), %xmm3     # 0x10bd0
subsd %xmm1, %xmm3
xorpd %xmm0, %xmm0
ucomisd %xmm3, %xmm0
jae 0xc685
movsd %xmm3, 0x8(%rsp)
jmp 0xc6d7
movsd 0x451d(%rip), %xmm0     # 0x10ba0
jmp 0xc6d1
movl 0x119fd(%rip), %eax     # 0x1e088
movl %eax, %ecx
movl $0x800, %edx            # imm = 0x800
orl %edx, %ecx
movsd 0x453c(%rip), %xmm0     # 0x10bd8
ucomisd %xmm3, %xmm0
cmovbel %eax, %ecx
xorl %edx, %ecx
movl %ecx, 0x119dd(%rip)     # 0x1e088
movl $0x10, %edi
callq 0x73f6
movq 0x18(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x30(%rsp)
movsd 0x44ff(%rip), %xmm0     # 0x10bd0
movsd %xmm0, 0x8(%rsp)
callq 0x8127
movq 0x1187d(%rip), %rdi     # 0x1df60
callq 0x5610
movsd 0x8(%rsp), %xmm2
jmp 0xc3f1
addq $0x10, %r12
addl $-0x2, %ebx
movq %r12, %rsi
jmp 0xc1c5
callq 0xc70c
callq 0x5120