// File: /workspace/github_c_makefile_star2_O2/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 $0x198, %rsp            # imm = 0x198
andq $0x0, 0x1209c(%rip)     # 0x1d054
movq %rsi, %rbx
andl $0x0, 0x1208a(%rip)     # 0x1d04c
movl %edi, %eax
movl $0x2, 0x120be(%rip)     # 0x1d08c
movq (%rsi), %rcx
movq %rcx, 0x120c0(%rip)     # 0x1d098
pushq $0x8
popq %rsi
pushq $0x1
popq %r8
leaq 0x4b1a(%rip), %r15      # 0xfb00
leal -0x1(%rax), %ebp
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xb34f
cmpb $0x2d, (%rdi)
jne 0xb34f
movzbl 0x1(%rdi), %ecx
cmpl $0x2d, %ecx
je 0xb011
testl %ecx, %ecx
jne 0xb01b
jmp 0xb34f
cmpb $0x0, 0x2(%rdi)
je 0xb364
xorl %r14d, %r14d
pushq $0x2
popq %r13
movq %rsi, %r12
leaq (%rbx,%r12), %rax
cmpq $0x8, %r12
jne 0xb345
testl %r14d, %r14d
jne 0xb345
testb %cl, %cl
je 0xb345
movzbl %cl, %ecx
leal -0x61(%rcx), %edx
cmpl $0x16, %edx
ja 0xb064
movslq (%r15,%rdx,4), %rcx
addq %r15, %rcx
jmpq *%rcx
andl $0x0, 0xb4d9(%rip)      # 0x16538
jmp 0xb101
cmpl $0x41, %ecx
je 0xb185
cmpl $0x47, %ecx
je 0xb16f
cmpl $0x54, %ecx
jne 0xb091
cmpb $0x0, (%rdi,%r13)
je 0xb19b
addq %r13, %rdi
movq %rsi, %r12
jmp 0xb1b0
callq 0xb82e
pushq $0x1
popq %r8
pushq $0x8
popq %rsi
jmp 0xb101
cmpb $0x0, (%rdi,%r13)
je 0xb1bc
addq %r13, %rdi
movq %rsi, %r12
jmp 0xb1d1
cmpb $0x0, (%rdi,%r13)
je 0xb1dd
addq %r13, %rdi
movq %rsi, %r12
jmp 0xb1f2
cmpb $0x0, (%rdi,%r13)
je 0xb246
addq %r13, %rdi
movq %rsi, %r12
jmp 0xb25b
cmpb $0x0, (%rdi,%r13)
je 0xb1fe
addq %r13, %rdi
movq %rsi, %r12
jmp 0xb213
movl $0x1, 0x11f4b(%rip)     # 0x1d04c
xorl %r14d, %r14d
jmp 0xb167
cmpb $0x0, (%rdi,%r13)
je 0xb267
addq %r13, %rdi
movq %rsi, %r12
jmp 0xb27c
cmpb $0x0, (%rdi,%r13)
je 0xb288
addq %r13, %rdi
movq %rsi, %r12
jmp 0xb29d
cmpb $0x0, (%rdi,%r13)
je 0xb2a9
addq %r13, %rdi
movq %rsi, %r12
jmp 0xb2be
movq 0x11f49(%rip), %rsi     # 0x1d098
xorl %r14d, %r14d
leaq 0x4b01(%rip), %rdi      # 0xfc5a
xorl %eax, %eax
callq 0x5b16
pushq $0x1
popq %r8
pushq $0x8
popq %rsi
movq %rsi, %r12
jmp 0xb335
cmpb $0x0, (%rdi,%r13)
je 0xb2c7
addq %r13, %rdi
movq %rsi, %r12
jmp 0xb2dc
cmpb $0x0, (%rdi,%r13)
je 0xb316
addq %r13, %rdi
movq %rsi, %r12
jmp 0xb32b
cmpq $0x0, 0x8(%rax)
je 0xb824
decl %ebp
movq 0x10(%rbx), %rdi
pushq $0x10
popq %r12
movq %rdi, 0x11ed9(%rip)     # 0x1d090
jmp 0xb332
cmpq $0x0, 0x8(%rax)
je 0xb824
decl %ebp
movq 0x10(%rbx), %rdi
pushq $0x10
popq %r12
movq %rdi, 0x11ee8(%rip)     # 0x1d0c0
jmp 0xb332
cmpq $0x0, 0x8(%rax)
je 0xb824
decl %ebp
movq 0x10(%rbx), %rdi
pushq $0x10
popq %r12
movq %rdi, 0x11ea7(%rip)     # 0x1d0a0
jmp 0xb332
cmpq $0x0, 0x8(%rax)
je 0xb824
decl %ebp
movq 0x10(%rbx), %rdi
pushq $0x10
popq %r12
leaq 0x11e3a(%rip), %rsi     # 0x1d054
leaq 0x11e37(%rip), %rdx     # 0x1d058
leaq 0xb32c(%rip), %rcx      # 0x16554
leaq 0xb329(%rip), %r8       # 0x16558
callq 0x59e0
movl %eax, 0x11e22(%rip)     # 0x1d05c
movb $0x1, 0x11e6f(%rip)     # 0x1d0b0
jmp 0xb30a
cmpq $0x0, 0x8(%rax)
je 0xb824
decl %ebp
movq 0x10(%rbx), %rdi
pushq $0x10
popq %r12
movq %rdi, 0x11e46(%rip)     # 0x1d0a8
jmp 0xb332
cmpq $0x0, 0x8(%rax)
je 0xb824
decl %ebp
movq 0x10(%rbx), %rdi
pushq $0x10
popq %r12
movq %rdi, 0x11e45(%rip)     # 0x1d0c8
jmp 0xb332
cmpq $0x0, 0x8(%rax)
je 0xb824
decl %ebp
movq 0x10(%rbx), %rdi
pushq $0x10
popq %r12
movq %rdi, 0x11e14(%rip)     # 0x1d0b8
jmp 0xb332
cmpq $0x0, 0x8(%rax)
je 0xb824
decl %ebp
movq 0x10(%rbx), %rdi
pushq $0x10
popq %r12
movq %rdi, 0x11e0b(%rip)     # 0x1d0d0
jmp 0xb332
cmpq $0x0, 0x8(%rax)
je 0xb824
decl %ebp
movq 0x10(%rbx), %rdi
pushq $0x10
popq %r12
leaq 0x11d71(%rip), %rsi     # 0x1d054
leaq 0x11d6e(%rip), %rdx     # 0x1d058
leaq 0xb26b(%rip), %rcx      # 0x1655c
leaq 0xb268(%rip), %r8       # 0x16560
callq 0x59e0
movl %eax, 0x11d59(%rip)     # 0x1d05c
movb $0x0, 0x11da6(%rip)     # 0x1d0b0
pushq $0x1
popq %r8
movl %r8d, %r14d
pushq $0x8
popq %rsi
jmp 0xb335
cmpq $0x0, 0x8(%rax)
je 0xb824
decl %ebp
movq 0x10(%rbx), %rdi
pushq $0x10
popq %r12
movq %rdi, 0x11d36(%rip)     # 0x1d068
movl %r8d, %r14d
movq (%rbx,%r12), %rdi
movb (%rdi,%r13), %cl
incq %r13
jmp 0xb025
movq %rax, %rbx
movl %ebp, %eax
jmp 0xafe6
addq $0x8, %rbx
jmp 0xb36d
xorl %ecx, %ecx
testl %ebp, %ebp
setg %cl
leaq (%rax,%rcx,8), %rbx
subl %ecx, %ebp
jmp 0xb36d
addq $0x10, %rbx
addl $-0x2, %eax
movl %eax, %ebp
leaq 0xb1fc(%rip), %rax      # 0x16570
movq %rax, 0x11ce5(%rip)     # 0x1d060
testl %ebp, %ebp
jle 0xb386
movq %rbx, 0x11d52(%rip)     # 0x1d0d8
cmpq $0x0, 0x11d02(%rip)     # 0x1d090
jne 0xb3c2
cmpq $0x0, 0x11d28(%rip)     # 0x1d0c0
sete %cl
movq 0x11d36(%rip), %rax     # 0x1d0d8
testq %rax, %rax
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0xb3b4
movq (%rax), %rax
jmp 0xb3bb
leaq 0x428b(%rip), %rax      # 0xf646
movq %rax, 0x11cce(%rip)     # 0x1d090
leaq 0x5398(%rip), %rbx      # 0x10761
xorl %edi, %edi
movq %rbx, %rsi
callq 0x58e0
movq %rbx, %rdi
callq 0x5810
cmpb $0x1, 0x11cce(%rip)     # 0x1d0b0
jne 0xb403
movl 0xb16a(%rip), %edi      # 0x16554
movl 0xb168(%rip), %esi      # 0x16558
callq 0xb846
movl 0xb159(%rip), %edi      # 0x16554
movl 0xb157(%rip), %esi      # 0x16558
jmp 0xb438
movl 0xb153(%rip), %edi      # 0x1655c
movl 0xb151(%rip), %esi      # 0x16560
callq 0xb846
movl 0x11c5e(%rip), %eax     # 0x1d078
addl $-0x18, %eax
cltd
idivl 0x11c60(%rip)           # 0x1d084
movl %eax, %edi
movl 0x11c50(%rip), %eax     # 0x1d07c
addl $-0x18, %eax
cltd
idivl 0x11c4a(%rip)           # 0x1d080
movl %eax, %esi
cmpl $0x1, %edi
adcl $0x0, %edi
movl %edi, 0xb110(%rip)      # 0x16554
cmpl $0x1, %esi
adcl $0x0, %esi
movl %esi, 0xb108(%rip)      # 0x16558
callq 0x6d0f
movq 0x11b14(%rip), %rcx     # 0x1cf70
leaq 0x4f3a(%rip), %rdx      # 0x1039d
leaq 0xd0(%rsp), %rbx
pushq $0x41
popq %rsi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x50c0
leaq 0x4f22(%rip), %rdi      # 0x103a1
pushq $0x1
popq %rdx
movq %rbx, %rsi
callq 0x55c0
callq 0x5cc0
movl 0x11be2(%rip), %r15d    # 0x1d078
movl 0x11bdf(%rip), %r14d    # 0x1d07c
movq 0x11abc(%rip), %rdi     # 0x1cf60
callq 0x52d0
movl %eax, %r13d
movq 0x11aad(%rip), %rdi     # 0x1cf60
movq %rbx, %rsi
callq 0x5460
movq %rbx, %rdi
xorl %esi, %esi
callq 0x5360
movl 0xd0(%rsp), %ecx
movl %ecx, %edx
xorl $0x16, %edx
orl %eax, %edx
jne 0xb4e5
movl 0x10c(%rsp), %r14d
movl 0x108(%rsp), %r15d
cmpl $0x13, %ecx
jne 0xb4ac
movq 0x11bcf(%rip), %rdi     # 0x1d0c0
movq 0x11bc0(%rip), %rdx     # 0x1d0b8
movq 0x11bd9(%rip), %rcx     # 0x1d0d8
leaq 0x4ea4(%rip), %rsi      # 0x103aa
callq 0x62db
movl %eax, %ebx
movl %r15d, %edi
movl %r14d, %esi
callq 0xc82b
pushq $0x40
popq %rsi
movl %ebx, %eax
cltd
idivl %esi
movslq %eax, %r15
shll $0x6, %eax
movl %ebx, %ecx
subl %eax, %ecx
pushq $0x1
popq %r12
movq %r12, %rbp
shlq %cl, %rbp
movl %r13d, %eax
cltd
idivl %esi
movslq %eax, %r14
shll $0x6, %eax
movl %r13d, %ecx
subl %eax, %ecx
shlq %cl, %r12
cmpl %ebx, %r13d
cmovgl %r13d, %ebx
incl %ebx
movsd 0x4617(%rip), %xmm2     # 0xfb70
leaq 0xd0(%rsp), %r13
movq $0x0, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
movl %ebx, 0x8(%rsp)
movb $0x1, %al
movl %eax, 0xc(%rsp)
xorl %eax, %eax
cmpq $0x10, %rax
je 0xb590
andq $0x0, 0x50(%rsp,%rax,8)
incq %rax
jmp 0xb57f
orq %rbp, 0x50(%rsp,%r15,8)
orq %r12, 0x50(%rsp,%r14,8)
movq 0x119bf(%rip), %rdi     # 0x1cf60
movsd %xmm2, (%rsp)
callq 0x59b0
movsd (%rsp), %xmm2
xorpd %xmm0, %xmm0
testl %eax, %eax
je 0xb5bc
xorpd %xmm2, %xmm2
movapd %xmm2, %xmm1
divsd 0x45b0(%rip), %xmm1     # 0xfb78
cvttsd2si %xmm1, %rax
cvtsi2sd %rax, %xmm1
movq %rax, 0x40(%rsp)
mulsd 0x45a1(%rip), %xmm1     # 0xfb80
addsd %xmm2, %xmm1
mulsd 0x459d(%rip), %xmm1     # 0xfb88
cvttsd2si %xmm1, %rax
movsd %xmm2, (%rsp)
ucomisd %xmm0, %xmm2
movq %rax, 0x48(%rsp)
movl $0x0, %r8d
leaq 0x40(%rsp), %rax
cmovaeq %rax, %r8
movl %ebx, %edi
leaq 0x50(%rsp), %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r9d, %r9d
callq 0x5330
testl %eax, %eax
jns 0xb64f
callq 0x5600
movl (%rax), %edi
cmpl $0x4, %edi
movsd (%rsp), %xmm2
je 0xb57d
callq 0x54b0
leaq 0x41ba(%rip), %rdi      # 0xf7ff
movq %rax, %rsi
xorl %eax, %eax
callq 0x5b16
pushq $0x1
popq %rdi
leaq 0x10(%rsp), %rsi
callq 0x5140
testq %rbp, 0x50(%rsp,%r15,8)
je 0xb668
callq 0x67ab
xorl %ebx, %ebx
movq 0x118ef(%rip), %rdi     # 0x1cf60
callq 0x59b0
testl %eax, %eax
je 0xb6c0
movq 0x118df(%rip), %rdi     # 0x1cf60
movq %r13, %rsi
callq 0x5460
movq %r13, %rdi
xorl %esi, %esi
callq 0x5360
movb $0x1, %bl
testl %eax, %eax
jne 0xb66a
movslq 0xd0(%rsp), %rax
movabsq $0xd2fbb698b, %rcx      # imm = 0xD2FBB698B
btq %rax, %rcx
jb 0xb66a
movq %r13, %rdi
leaq 0x8b85(%rip), %rcx      # 0x14240
callq *(%rcx,%rax,8)
jmp 0xb66a
testq %rbp, 0x50(%rsp,%r15,8)
sete %al
notb %bl
testb %al, %bl
jne 0xb752
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
testb $0x1, 0xc(%rsp)
movq 0x38(%rsp), %rdx
cmovneq %rcx, %rdx
movq 0x30(%rsp), %rsi
cmovneq %rax, %rsi
movq %rsi, 0x30(%rsp)
subq %rsi, %rax
imulq $0x3e8, %rax, %rax      # imm = 0x3E8
cvtsi2sd %rax, %xmm0
movq %rdx, 0x38(%rsp)
subq %rdx, %rcx
cvtsi2sd %rcx, %xmm1
divsd 0x446c(%rip), %xmm1     # 0xfb88
addsd %xmm0, %xmm1
movsd 0x4468(%rip), %xmm0     # 0xfb90
movapd %xmm0, %xmm2
subsd %xmm1, %xmm2
divsd %xmm0, %xmm2
mulsd 0x445c(%rip), %xmm2     # 0xfb98
xorl %eax, %eax
ucomisd 0x446a(%rip), %xmm2     # 0xfbb0
movl 0x8(%rsp), %ebx
ja 0xb579
jmp 0xb756
movl 0x8(%rsp), %ebx
pushq $0x10
popq %rdi
callq 0x6c38
testl %eax, %eax
je 0xb7b0
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq 0x20(%rsp), %rax
imulq $0x3e8, %rax, %rax      # imm = 0x3E8
cvtsi2sd %rax, %xmm0
subq 0x28(%rsp), %rcx
cvtsi2sd %rcx, %xmm1
divsd 0x43f9(%rip), %xmm1     # 0xfb88
addsd %xmm0, %xmm1
movsd 0x4405(%rip), %xmm3     # 0xfba0
subsd %xmm1, %xmm3
xorpd %xmm0, %xmm0
ucomisd %xmm3, %xmm0
jae 0xb7ba
movsd %xmm3, (%rsp)
jmp 0xb809
movsd 0x43b8(%rip), %xmm0     # 0xfb70
jmp 0xb804
movl 0x118c8(%rip), %eax     # 0x1d088
movl %eax, %ecx
movl $0x800, %edx            # imm = 0x800
orl %edx, %ecx
movsd 0x43d7(%rip), %xmm0     # 0xfba8
ucomisd %xmm3, %xmm0
cmovbel %eax, %ecx
xorl %edx, %ecx
movl %ecx, 0x118a8(%rip)     # 0x1d088
pushq $0x10
popq %rdi
callq 0x6c9d
movq 0x10(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x28(%rsp)
movsd 0x439c(%rip), %xmm0     # 0xfba0
movsd %xmm0, (%rsp)
callq 0x76d6
movq 0x1174b(%rip), %rdi     # 0x1cf60
callq 0x5610
movsd (%rsp), %xmm2
jmp 0xb577
callq 0xb82e
callq 0x5120