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

	ARGBEGIN {
	case 'a':
		allowaltscreen = 0;
		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:
	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("");

	if(!(xw.dpy = XOpenDisplay(NULL)))
		die("Can't open display\n");

	config_init();
	switch (geometry) {
	case CellGeometry:
		xinit(cols, rows);
		break;
	case PixelGeometry:
		xinit(width, height);
		cols = (win.w - 2 * win.hborderpx) / win.cw;
		rows = (win.h - 2 * win.vborderpx) / win.ch;
		break;
	}
	cols = MAX(cols, 1);
	rows = MAX(rows, 1);
	signal(SIGUSR1, reload);
	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, %r14
movl $0x0, 0x123c4(%rip)     # 0x1f974
movq $0x0, 0x123b1(%rip) # 0x1f96c
movl 0xb887(%rip), %eax      # 0x18e48
cmpl $0x8, %eax
ja 0xd5ee
movl %eax, 0x123d8(%rip)     # 0x1f9a4
cmpl $0x6, %eax
jae 0xd5e0
movl $0x1, %ecx
movl $0x2b, %edx
btl %eax, %edx
jb 0xd5e8
xorl %ecx, %ecx
cmpl $0x7, %eax
sete %cl
movl %ecx, 0x123c2(%rip)     # 0x1f9b0
movq (%r14), %rax
movq %rax, 0x123e0(%rip)     # 0x1f9d8
leaq 0x448d(%rip), %r12      # 0x11a8c
leal -0x1(%rdi), %r13d
movq 0x8(%r14), %rax
testq %rax, %rax
je 0xd932
cmpb $0x2d, (%rax)
jne 0xd932
movzbl 0x1(%rax), %ecx
cmpl $0x2d, %ecx
je 0xd62b
testl %ecx, %ecx
jne 0xd635
jmp 0xd932
cmpb $0x0, 0x2(%rax)
je 0xd900
leaq 0x8(%r14), %rax
movq 0x8(%r14), %rdi
movb 0x1(%rdi), %cl
movb $0x1, %dl
testb %cl, %cl
je 0xd90f
movl $0x8, %ebx
xorl %ebp, %ebp
movl $0x2, %r15d
movzbl %cl, %ecx
leal -0x61(%rcx), %edx
cmpl $0x16, %edx
ja 0xd67a
movslq (%r12,%rdx,4), %rcx
addq %r12, %rcx
jmpq *%rcx
movl $0x0, 0xaf73(%rip)      # 0x185e8
jmp 0xd8db
cmpl $0x47, %ecx
je 0xd882
cmpl $0x54, %ecx
jne 0xd6ba
movb (%rdi,%r15), %cl
addq %r15, %rdi
testb %cl, %cl
jne 0xd6ae
cmpq $0x0, 0x8(%rax)
je 0xdeda
testb %cl, %cl
jne 0xd6ae
decl %r13d
movq 0x8(%r14,%rbx), %rdi
addq $0x8, %rbx
movq %rdi, 0x122f3(%rip)     # 0x1f9a8
jmp 0xd8d6
movq 0x12317(%rip), %rdx     # 0x1f9d8
leaq 0x482f(%rip), %rdi      # 0x11ef7
movq %rdx, %rsi
xorl %eax, %eax
callq 0x6ff6
jmp 0xd8db
movb (%rdi,%r15), %cl
addq %r15, %rdi
testb %cl, %cl
jne 0xd6fd
cmpq $0x0, 0x8(%rax)
je 0xdeda
testb %cl, %cl
jne 0xd6fd
decl %r13d
movq 0x8(%r14,%rbx), %rdi
addq $0x8, %rbx
movq %rdi, 0x122b4(%rip)     # 0x1f9b8
jmp 0xd8d6
movb (%rdi,%r15), %cl
addq %r15, %rdi
testb %cl, %cl
jne 0xd72f
cmpq $0x0, 0x8(%rax)
je 0xdeda
testb %cl, %cl
jne 0xd72f
decl %r13d
movq 0x8(%r14,%rbx), %rdi
addq $0x8, %rbx
movq %rdi, 0x12292(%rip)     # 0x1f9c8
jmp 0xd8d6
movb (%rdi,%r15), %cl
addq %r15, %rdi
testb %cl, %cl
jne 0xd761
cmpq $0x0, 0x8(%rax)
je 0xdeda
testb %cl, %cl
jne 0xd761
decl %r13d
movq 0x8(%r14,%rbx), %rdi
addq $0x8, %rbx
movq %rdi, 0x12290(%rip)     # 0x1f9f8
jmp 0xd8d6
movl $0x1, 0x121f5(%rip)     # 0x1f96c
jmp 0xd8db
movq 0x12255(%rip), %rsi     # 0x1f9d8
leaq 0x45b1(%rip), %rdi      # 0x11d3b
xorl %eax, %eax
callq 0x6ff6
jmp 0xd8db
movb (%rdi,%r15), %cl
addq %r15, %rdi
testb %cl, %cl
jne 0xd7bc
cmpq $0x0, 0x8(%rax)
je 0xdeda
testb %cl, %cl
jne 0xd7bc
decl %r13d
movq 0x8(%r14,%rbx), %rdi
addq $0x8, %rbx
movq %rdi, 0x1222d(%rip)     # 0x1f9f0
jmp 0xd8d6
movb (%rdi,%r15), %cl
addq %r15, %rdi
testb %cl, %cl
jne 0xd7ee
cmpq $0x0, 0x8(%rax)
je 0xdeda
testb %cl, %cl
jne 0xd7ee
decl %r13d
movq 0x8(%r14,%rbx), %rdi
addq $0x8, %rbx
leaq 0x1217b(%rip), %rsi     # 0x1f970
leaq 0x12178(%rip), %rdx     # 0x1f974
leaq 0xb945(%rip), %rcx      # 0x19148
leaq 0xb942(%rip), %r8       # 0x1914c
callq 0x6a80
movl %eax, 0x12163(%rip)     # 0x1f978
movb $0x0, 0x121c4(%rip)     # 0x1f9e0
jmp 0xd8d6
movb (%rdi,%r15), %cl
addq %r15, %rdi
testb %cl, %cl
jne 0xd847
cmpq $0x0, 0x8(%rax)
je 0xdeda
testb %cl, %cl
jne 0xd847
decl %r13d
movq 0x8(%r14,%rbx), %rdi
addq $0x8, %rbx
movq %rdi, 0x12172(%rip)     # 0x1f9c0
jmp 0xd8d6
movb (%rdi,%r15), %cl
addq %r15, %rdi
testb %cl, %cl
jne 0xd879
cmpq $0x0, 0x8(%rax)
je 0xdeda
testb %cl, %cl
jne 0xd879
decl %r13d
movq 0x8(%r14,%rbx), %rdi
addq $0x8, %rbx
movq %rdi, 0x12168(%rip)     # 0x1f9e8
jmp 0xd8d6
movb (%rdi,%r15), %cl
addq %r15, %rdi
testb %cl, %cl
jne 0xd8a8
cmpq $0x0, 0x8(%rax)
je 0xdeda
testb %cl, %cl
jne 0xd8a8
decl %r13d
movq 0x8(%r14,%rbx), %rdi
addq $0x8, %rbx
leaq 0x120c1(%rip), %rsi     # 0x1f970
leaq 0x120be(%rip), %rdx     # 0x1f974
leaq 0xb893(%rip), %rcx      # 0x19150
leaq 0xb890(%rip), %r8       # 0x19154
callq 0x6a80
movl %eax, 0x120a9(%rip)     # 0x1f978
movb $0x1, 0x1210a(%rip)     # 0x1f9e0
movl $0x1, %ebp
leaq (%r14,%rbx), %rax
cmpq $0x8, %rbx
jne 0xd8fc
movq (%r14,%rbx), %rdi
movb (%rdi,%r15), %cl
testb %cl, %cl
je 0xd8fc
incq %r15
testl %ebp, %ebp
je 0xd657
movb $0x1, %dl
jmp 0xd90f
addq $0x10, %r14
addl $-0x2, %edi
xorl %edx, %edx
movq %r14, %rax
movl %edi, %r13d
movq %rax, %r14
movl %r13d, %edi
testb %dl, %dl
jne 0xd5ff
jmp 0xd939
xorl %ecx, %ecx
testl %r13d, %r13d
setg %cl
leaq (%rax,%rcx,8), %rax
subl %ecx, %r13d
xorl %edx, %edx
jmp 0xd90f
addq $0x8, %r14
movq %r14, %rax
testl %r13d, %r13d
jle 0xd945
movq %rax, 0x120bb(%rip)     # 0x1fa00
cmpq $0x0, 0x1205b(%rip)     # 0x1f9a8
jne 0xd981
cmpq $0x0, 0x12099(%rip)     # 0x1f9f0
sete %cl
movq 0x1209f(%rip), %rax     # 0x1fa00
testq %rax, %rax
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0xd973
movq (%rax), %rax
jmp 0xd97a
leaq 0x3cce(%rip), %rax      # 0x11648
movq %rax, 0x12027(%rip)     # 0x1f9a8
leaq 0x4b5f(%rip), %rbx      # 0x124e7
xorl %edi, %edi
movq %rbx, %rsi
callq 0x6960
movq %rbx, %rdi
callq 0x6880
xorl %edi, %edi
callq 0x6310
movq %rax, 0x11ed8(%rip)     # 0x1f880
testq %rax, %rax
jne 0xd9bb
leaq 0x4391(%rip), %rdi      # 0x11d45
xorl %eax, %eax
callq 0x6ff6
callq 0xd0a0
cmpb $0x0, 0x12019(%rip)     # 0x1f9e0
je 0xda16
movl 0xb781(%rip), %edi      # 0x19150
movl 0xb77f(%rip), %esi      # 0x19154
callq 0xdefc
movl 0x11fa8(%rip), %eax     # 0x1f988
movl 0x11faa(%rip), %ecx     # 0x1f990
addl %ecx, %ecx
subl %ecx, %eax
cltd
idivl 0x11fab(%rip)           # 0x1f99c
movl %eax, 0xb751(%rip)      # 0x19148
movl 0x11f8f(%rip), %eax     # 0x1f98c
movl 0x11f91(%rip), %ecx     # 0x1f994
addl %ecx, %ecx
subl %ecx, %eax
cltd
idivl 0x11f8a(%rip)           # 0x1f998
movl %eax, 0xb738(%rip)      # 0x1914c
jmp 0xda27
movl 0xb72c(%rip), %edi      # 0x19148
movl 0xb72a(%rip), %esi      # 0x1914c
callq 0xdefc
movl 0xb71b(%rip), %eax      # 0x19148
cmpl $0x1, %eax
adcl $0x0, %eax
movl %eax, 0xb70f(%rip)      # 0x19148
movl 0xb70d(%rip), %eax      # 0x1914c
cmpl $0x1, %eax
adcl $0x0, %eax
movl %eax, 0xb701(%rip)      # 0x1914c
leaq -0xa22(%rip), %rsi      # 0xd030
movl $0xa, %edi
callq 0x6070
movl 0xb6e6(%rip), %edi      # 0x19148
movl 0xb6e4(%rip), %esi      # 0x1914c
callq 0x8302
movq 0x11e1c(%rip), %rcx     # 0x1f890
leaq 0x46ad(%rip), %rdx      # 0x12128
leaq 0xe0(%rsp), %rbx
movl $0x41, %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x60c0
leaq 0x4693(%rip), %rdi      # 0x1212c
movq %rbx, %rsi
movl $0x1, %edx
callq 0x65f0
callq 0x715f
movl 0x11ed6(%rip), %r15d    # 0x1f988
movl 0x11ed4(%rip), %ebp     # 0x1f98c
movq 0x11dc1(%rip), %rdi     # 0x1f880
callq 0x62d0
movl %eax, %r13d
movq 0x11db2(%rip), %rdi     # 0x1f880
movq %rbx, %rsi
callq 0x6470
movq %rbx, %rdi
xorl %esi, %esi
callq 0x6370
movl 0xe0(%rsp), %ecx
movl %ecx, %edx
xorl $0x16, %edx
orl %eax, %edx
jne 0xdaff
movl 0x11c(%rsp), %ebp
movl 0x118(%rsp), %r15d
cmpl $0x13, %ecx
jne 0xdac7
movq 0x11ee5(%rip), %rdi     # 0x1f9f0
movq 0xb31e(%rip), %rsi      # 0x18e30
movq 0x11ecf(%rip), %rdx     # 0x1f9e8
movq 0x11ee0(%rip), %rcx     # 0x1fa00
callq 0x7889
movl %r15d, %edi
movl %ebp, %esi
movq %rax, %rbp
callq 0xd415
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
shlq %cl, %r15
movl $0x1, %r12d
sarl $0x6, %eax
movslq %eax, %r14
leal 0x3f(%r13), %eax
testl %r13d, %r13d
cmovnsl %r13d, %eax
movl %eax, %edx
andl $-0x40, %edx
movl %r13d, %ecx
subl %edx, %ecx
shlq %cl, %r12
sarl $0x6, %eax
cmpl %ebp, %r13d
cmovgl %r13d, %ebp
movslq %eax, %rbx
incl %ebp
movsd 0x3f91(%rip), %xmm0     # 0x11b18
movb $0x1, %cl
leaq 0xe0(%rsp), %r13
movq $0x0, 0x20(%rsp)
movq $0x0, 0x28(%rsp)
movapd %xmm0, 0x10(%rsp)
movq %rbp, 0x48(%rsp)
movl %ecx, 0x34(%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 %r15, 0x60(%rsp,%r14,8)
orq %r12, 0x60(%rsp,%rbx,8)
movq 0x11c77(%rip), %rdi     # 0x1f880
callq 0x6a50
xorpd %xmm0, %xmm0
testl %eax, %eax
movapd 0x10(%rsp), %xmm2
je 0xdc20
xorpd %xmm2, %xmm2
movapd %xmm2, %xmm1
divsd 0x3f04(%rip), %xmm1     # 0x11b30
cvttsd2si %xmm1, %rax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
movq %rax, 0x50(%rsp)
mulsd 0x3ef2(%rip), %xmm1     # 0x11b38
addsd %xmm2, %xmm1
mulsd 0x3eee(%rip), %xmm1     # 0x11b40
cvttsd2si %xmm1, %rax
movapd %xmm2, 0x10(%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 0x6340
testl %eax, %eax
jns 0xdcb2
callq 0x6640
movl (%rax), %edi
cmpl $0x4, %edi
je 0xdbb2
callq 0x64c0
leaq 0x3ae7(%rip), %rdi      # 0x1178f
movq %rax, %rsi
xorl %eax, %eax
callq 0x6ff6
movl $0x1, %edi
movq %rsp, %rsi
callq 0x6140
testq %r15, 0x60(%rsp,%r14,8)
je 0xdccb
callq 0x7d6f
movq 0x11bae(%rip), %rdi     # 0x1f880
callq 0x6a50
movl %eax, %ebp
testl %eax, %eax
je 0xdd2d
movq 0x11b9c(%rip), %rdi     # 0x1f880
movq %r13, %rsi
callq 0x6470
movq %r13, %rdi
xorl %esi, %esi
callq 0x6370
testl %eax, %eax
jne 0xdd1f
movslq 0xe0(%rsp), %rax
movabsq $0xd2fbb698b, %rcx      # imm = 0xD2FBB698B
btq %rax, %rcx
jb 0xdd1f
movq %r13, %rdi
leaq 0x8534(%rip), %rcx      # 0x16250
callq *(%rcx,%rax,8)
movq 0x11b5a(%rip), %rdi     # 0x1f880
callq 0x6a50
jmp 0xdcd9
testl %ebp, %ebp
jne 0xdd45
movq 0x60(%rsp,%r14,8), %rax
andq %r15, %rax
jne 0xdd45
movq 0x48(%rsp), %rbp
jmp 0xdded
testb $0x1, 0x34(%rsp)
movq 0x48(%rsp), %rbp
je 0xdd85
movq (%rsp), %rcx
movq 0x8(%rsp), %rdx
movl 0x11c40(%rip), %eax     # 0x1f9a0
btl $0xb, %eax
movq %rcx, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
jae 0xdd7b
andl $0xfffff7ff, %eax       # imm = 0xFFFFF7FF
movl %eax, 0x11c25(%rip)     # 0x1f9a0
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movq (%rsp), %rax
subq 0x38(%rsp), %rax
imulq $0x3e8, %rax, %rax      # imm = 0x3E8
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movq 0x8(%rsp), %rax
subq 0x40(%rsp), %rax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
movsd 0xb089(%rip), %xmm2     # 0x18e40
divsd 0x3d81(%rip), %xmm1     # 0x11b40
addsd %xmm0, %xmm1
movapd %xmm2, %xmm0
subsd %xmm1, %xmm0
divsd %xmm2, %xmm0
mulsd 0xb061(%rip), %xmm0     # 0x18e38
xorl %ecx, %ecx
movapd %xmm0, 0x10(%rsp)
ucomisd 0x3d41(%rip), %xmm0     # 0x11b28
ja 0xdbae
cmpl $0x0, 0xb058(%rip)      # 0x18e4c
je 0xde6b
cmpl $0x0, 0x11bb3(%rip)     # 0x1f9b0
jne 0xde0d
movl $0x10, %edi
callq 0x8244
testl %eax, %eax
je 0xde6b
movl 0xb039(%rip), %eax      # 0x18e4c
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
subq 0x28(%rsp), %rax
imulq $0x3e8, %rax, %rax      # imm = 0x3E8
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
subq 0x20(%rsp), %rcx
xorps %xmm2, %xmm2
cvtsi2sd %rcx, %xmm2
divsd 0x3cf3(%rip), %xmm2     # 0x11b40
addsd %xmm1, %xmm2
movapd %xmm0, %xmm3
subsd %xmm2, %xmm3
xorpd %xmm1, %xmm1
ucomisd %xmm3, %xmm1
jae 0xde75
movapd %xmm3, 0x10(%rsp)
jmp 0xdec2
movsd 0x3ca5(%rip), %xmm0     # 0x11b18
jmp 0xdebc
xorpd 0x3ce3(%rip), %xmm3     # 0x11b60
ucomisd %xmm0, %xmm3
jbe 0xde8a
orb $0x8, 0x11b17(%rip)     # 0x1f9a1
xorb $0x8, 0x11b10(%rip)     # 0x1f9a1
movl $0x10, %edi
callq 0x8299
movq (%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x20(%rsp)
movl 0xaf98(%rip), %eax      # 0x18e4c
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movapd %xmm0, 0x10(%rsp)
callq 0x8e0f
movq 0x119b2(%rip), %rdi     # 0x1f880
callq 0x6650
movb $0x1, %cl
jmp 0xdbae
callq 0xdee4
callq 0x6120