// File: /workspace/github_c_makefile_star2_O3/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
movl %edi, %ebx
movl $0x0, 0x11f1d(%rip)     # 0x1f974
movq $0x0, 0x11f0a(%rip) # 0x1f96c
movl 0xb3e0(%rip), %eax      # 0x18e48
cmpl $0x8, %eax
ja 0xda95
movl %eax, 0x11f31(%rip)     # 0x1f9a4
cmpl $0x6, %eax
jae 0xda87
movl $0x1, %ecx
movl $0x2b, %edx
btl %eax, %edx
jb 0xda8f
xorl %ecx, %ecx
cmpl $0x7, %eax
sete %cl
movl %ecx, 0x11f1b(%rip)     # 0x1f9b0
movq (%rsi), %rax
movq %rax, 0x11f39(%rip)     # 0x1f9d8
leal -0x1(%rbx), %eax
movq 0x8(%rsi), %rdi
testq %rdi, %rdi
je 0xde0a
leaq 0x11ebe(%rip), %r15     # 0x1f974
leaq 0x3ffb(%rip), %r13      # 0x11ab8
movq %rsi, %r12
cmpb $0x2d, (%rdi)
jne 0xde07
movzbl 0x1(%rdi), %ecx
cmpl $0x2d, %ecx
je 0xdadb
testl %ecx, %ecx
jne 0xdae5
jmp 0xde07
cmpb $0x0, 0x2(%rdi)
je 0xe3bd
leaq 0x8(%r12), %rsi
movl $0x2, %ebp
movl %eax, %ebx
movzbl %cl, %eax
leal -0x61(%rax), %ecx
cmpl $0x16, %ecx
ja 0xdb15
movslq (%r13,%rcx,4), %rax
addq %r13, %rax
jmpq *%rax
movl $0x0, 0xaad8(%rip)      # 0x185e8
jmp 0xdbbe
cmpl $0x47, %eax
je 0xdc2b
cmpl $0x54, %eax
jne 0xdb3b
cmpb $0x0, (%rdi,%rbp)
je 0xdc43
addq %rbp, %rdi
movl $0x8, %r14d
jmp 0xdc5b
movq 0x11e96(%rip), %rdx     # 0x1f9d8
leaq 0x43ce(%rip), %rdi      # 0x11f17
movq %rdx, %rsi
xorl %eax, %eax
callq 0x6ff6
jmp 0xdbbe
cmpb $0x0, (%rdi,%rbp)
je 0xdc67
addq %rbp, %rdi
movl $0x8, %r14d
jmp 0xdc7f
cmpb $0x0, (%rdi,%rbp)
je 0xdc8b
addq %rbp, %rdi
movl $0x8, %r14d
jmp 0xdca3
cmpb $0x0, (%rdi,%rbp)
je 0xdcaf
addq %rbp, %rdi
movl $0x8, %r14d
jmp 0xdcc7
movl $0x1, 0x11dc5(%rip)     # 0x1f96c
jmp 0xdbbe
movq 0x11e28(%rip), %rsi     # 0x1f9d8
leaq 0x41a4(%rip), %rdi      # 0x11d5b
xorl %eax, %eax
callq 0x6ff6
movb $0x1, %al
movl $0x8, %r14d
jmp 0xddc4
cmpb $0x0, (%rdi,%rbp)
je 0xdcd3
addq %rbp, %rdi
movl $0x8, %r14d
jmp 0xdceb
cmpb $0x0, (%rdi,%rbp)
je 0xdcf7
addq %rbp, %rdi
movl $0x8, %r14d
jmp 0xdd0f
cmpb $0x0, (%rdi,%rbp)
je 0xdd3e
addq %rbp, %rdi
movl $0x8, %r14d
jmp 0xdd56
cmpb $0x0, (%rdi,%rbp)
je 0xdd5f
addq %rbp, %rdi
movl $0x8, %r14d
jmp 0xdd77
cmpb $0x0, (%rdi,%rbp)
je 0xdd80
addq %rbp, %rdi
movl $0x8, %r14d
jmp 0xdd98
cmpq $0x0, 0x8(%rsi)
je 0xe3cc
decl %ebx
movq 0x10(%r12), %rdi
movl $0x10, %r14d
movq %rdi, 0x11d46(%rip)     # 0x1f9a8
jmp 0xddc2
cmpq $0x0, 0x8(%rsi)
je 0xe3cc
decl %ebx
movq 0x10(%r12), %rdi
movl $0x10, %r14d
movq %rdi, 0x11d32(%rip)     # 0x1f9b8
jmp 0xddc2
cmpq $0x0, 0x8(%rsi)
je 0xe3cc
decl %ebx
movq 0x10(%r12), %rdi
movl $0x10, %r14d
movq %rdi, 0x11d1e(%rip)     # 0x1f9c8
jmp 0xddc2
cmpq $0x0, 0x8(%rsi)
je 0xe3cc
decl %ebx
movq 0x10(%r12), %rdi
movl $0x10, %r14d
movq %rdi, 0x11d2a(%rip)     # 0x1f9f8
jmp 0xddc2
cmpq $0x0, 0x8(%rsi)
je 0xe3cc
decl %ebx
movq 0x10(%r12), %rdi
movl $0x10, %r14d
movq %rdi, 0x11cfe(%rip)     # 0x1f9f0
jmp 0xddc2
cmpq $0x0, 0x8(%rsi)
je 0xe3cc
decl %ebx
movq 0x10(%r12), %rdi
movl $0x10, %r14d
leaq 0x11c5a(%rip), %rsi     # 0x1f970
movq %r15, %rdx
leaq 0xb428(%rip), %rcx      # 0x19148
leaq 0xb425(%rip), %r8       # 0x1914c
callq 0x6a80
movl %eax, 0x11c46(%rip)     # 0x1f978
movb $0x0, 0x11ca7(%rip)     # 0x1f9e0
jmp 0xddc2
cmpq $0x0, 0x8(%rsi)
je 0xe3cc
decl %ebx
movq 0x10(%r12), %rdi
movl $0x10, %r14d
movq %rdi, 0x11c63(%rip)     # 0x1f9c0
jmp 0xddc2
cmpq $0x0, 0x8(%rsi)
je 0xe3cc
decl %ebx
movq 0x10(%r12), %rdi
movl $0x10, %r14d
movq %rdi, 0x11c6a(%rip)     # 0x1f9e8
jmp 0xddc2
cmpq $0x0, 0x8(%rsi)
je 0xe3cc
decl %ebx
movq 0x10(%r12), %rdi
movl $0x10, %r14d
leaq 0x11bd1(%rip), %rsi     # 0x1f970
movq %r15, %rdx
leaq 0xb3a7(%rip), %rcx      # 0x19150
leaq 0xb3a4(%rip), %r8       # 0x19154
callq 0x6a80
movl %eax, 0x11bbd(%rip)     # 0x1f978
movb $0x1, 0x11c1e(%rip)     # 0x1f9e0
xorl %eax, %eax
leaq (%r12,%r14), %rsi
cmpq $0x8, %r14
jne 0xdde4
testb %al, %al
je 0xdde4
movq (%r12,%r14), %rdi
movb (%rdi,%rbp), %cl
incq %rbp
testb %cl, %cl
jne 0xdaf1
leal -0x1(%rbx), %eax
movq 0x8(%rsi), %rdi
testq %rdi, %rdi
jne 0xdabd
jmp 0xde0a
xorl %eax, %eax
testl %ebx, %ebx
setg %al
leaq (%rsi,%rax,8), %rsi
subl %eax, %ebx
movl %ebx, %eax
jmp 0xde0e
movq %r12, %rsi
addq $0x8, %rsi
testl %eax, %eax
jle 0xde19
movq %rsi, 0x11be7(%rip)     # 0x1fa00
cmpq $0x0, 0x11b87(%rip)     # 0x1f9a8
jne 0xde55
cmpq $0x0, 0x11bc5(%rip)     # 0x1f9f0
sete %cl
movq 0x11bcb(%rip), %rax     # 0x1fa00
testq %rax, %rax
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0xde47
movq (%rax), %rax
jmp 0xde4e
leaq 0x3828(%rip), %rax      # 0x11676
movq %rax, 0x11b53(%rip)     # 0x1f9a8
leaq 0x46ab(%rip), %rbx      # 0x12507
xorl %edi, %edi
movq %rbx, %rsi
callq 0x6960
movq %rbx, %rdi
callq 0x6880
xorl %edi, %edi
callq 0x6310
movq %rax, 0x11a04(%rip)     # 0x1f880
testq %rax, %rax
jne 0xde8f
leaq 0x3edd(%rip), %rdi      # 0x11d65
xorl %eax, %eax
callq 0x6ff6
callq 0xd546
cmpb $0x0, 0x11b45(%rip)     # 0x1f9e0
je 0xdee0
movl 0xb2ad(%rip), %edi      # 0x19150
movl 0xb2ab(%rip), %esi      # 0x19154
callq 0xe3ee
movl 0x11ad4(%rip), %eax     # 0x1f988
movl 0x11ad6(%rip), %ecx     # 0x1f990
addl %ecx, %ecx
subl %ecx, %eax
cltd
idivl 0x11ad7(%rip)           # 0x1f99c
movl %eax, %ecx
movl 0x11abf(%rip), %eax     # 0x1f98c
movl 0x11ac1(%rip), %edx     # 0x1f994
addl %edx, %edx
subl %edx, %eax
cltd
idivl 0x11aba(%rip)           # 0x1f998
jmp 0xdefd
movl 0xb262(%rip), %edi      # 0x19148
movl 0xb260(%rip), %esi      # 0x1914c
callq 0xe3ee
movl 0xb251(%rip), %ecx      # 0x19148
movl 0xb24f(%rip), %eax      # 0x1914c
cmpl $0x1, %ecx
adcl $0x0, %ecx
movl %ecx, 0xb23f(%rip)      # 0x19148
cmpl $0x1, %eax
adcl $0x0, %eax
movl %eax, 0xb237(%rip)      # 0x1914c
leaq -0xa46(%rip), %rsi      # 0xd4d6
movl $0xa, %edi
callq 0x6070
movl 0xb21c(%rip), %edi      # 0x19148
movl 0xb21a(%rip), %esi      # 0x1914c
callq 0x851c
movq 0x11952(%rip), %rcx     # 0x1f890
leaq 0x4203(%rip), %rdx      # 0x12148
leaq 0xe0(%rsp), %rbx
movl $0x41, %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x60c0
leaq 0x41e9(%rip), %rdi      # 0x1214c
movq %rbx, %rsi
movl $0x1, %edx
callq 0x65f0
callq 0x715f
movl 0x11a0c(%rip), %r15d    # 0x1f988
movl 0x11a0a(%rip), %ebp     # 0x1f98c
movq 0x118f7(%rip), %rdi     # 0x1f880
callq 0x62d0
movl %eax, %r13d
movq 0x118e8(%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 0xdfc9
movl 0x11c(%rsp), %ebp
movl 0x118(%rsp), %r15d
cmpl $0x13, %ecx
jne 0xdf91
movq 0x11a1b(%rip), %rdi     # 0x1f9f0
movq 0xae54(%rip), %rsi      # 0x18e30
movq 0x11a05(%rip), %rdx     # 0x1f9e8
movq 0x11a16(%rip), %rcx     # 0x1fa00
callq 0x7989
movl %r15d, %edi
movl %ebp, %esi
movq %rax, %rbp
callq 0xd8bb
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
movslq %eax, %rbx
cmpl %ebp, %r13d
cmovgl %r13d, %ebp
incl %ebp
movsd 0x3ae7(%rip), %xmm0     # 0x11b38
movb $0x1, %cl
leaq 0xe0(%rsp), %r13
movq $0x0, 0x8(%rsp)
movq $0x0, (%rsp)
movapd %xmm0, 0x10(%rsp)
movq %rbp, 0x48(%rsp)
movl %ecx, 0x24(%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 0x117ae(%rip), %rdi     # 0x1f880
callq 0x6a50
xorpd %xmm0, %xmm0
testl %eax, %eax
movapd 0x10(%rsp), %xmm2
je 0xe0e9
xorpd %xmm2, %xmm2
movapd %xmm2, %xmm1
divsd 0x3a5b(%rip), %xmm1     # 0x11b50
cvttsd2si %xmm1, %rax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
movq %rax, 0x50(%rsp)
mulsd 0x3a49(%rip), %xmm1     # 0x11b58
addsd %xmm2, %xmm1
mulsd 0x3a45(%rip), %xmm1     # 0x11b60
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 0xe17b
callq 0x6640
movl (%rax), %edi
cmpl $0x4, %edi
je 0xe07b
callq 0x64c0
leaq 0x364c(%rip), %rdi      # 0x117bd
movq %rax, %rsi
xorl %eax, %eax
callq 0x6ff6
movl $0x1, %edi
leaq 0x28(%rsp), %rsi
callq 0x6140
testq %r15, 0x60(%rsp,%r14,8)
je 0xe196
callq 0x7e6a
movq 0x116e3(%rip), %rdi     # 0x1f880
callq 0x6a50
movl %eax, %ebp
testl %eax, %eax
je 0xe1f8
movq 0x116d1(%rip), %rdi     # 0x1f880
movq %r13, %rsi
callq 0x6470
movq %r13, %rdi
xorl %esi, %esi
callq 0x6370
testl %eax, %eax
jne 0xe1ea
movslq 0xe0(%rsp), %rax
movabsq $0xd2fbb698b, %rcx      # imm = 0xD2FBB698B
btq %rax, %rcx
jb 0xe1ea
movq %r13, %rdi
leaq 0x8069(%rip), %rcx      # 0x16250
callq *(%rcx,%rax,8)
movq 0x1168f(%rip), %rdi     # 0x1f880
callq 0x6a50
jmp 0xe1a4
testl %ebp, %ebp
jne 0xe210
movq 0x60(%rsp,%r14,8), %rax
andq %r15, %rax
jne 0xe210
movq 0x48(%rsp), %rbp
jmp 0xe2c3
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %rax
testb $0x1, 0x24(%rsp)
movq 0x48(%rsp), %rbp
je 0xe264
movl 0x11774(%rip), %edx     # 0x1f9a0
btl $0xb, %edx
movq %rax, 0x8(%rsp)
movq %rcx, (%rsp)
movq %rax, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
jae 0xe264
andl $0xfffff7ff, %edx       # imm = 0xFFFFF7FF
movl %edx, 0x1174f(%rip)     # 0x1f9a0
movq %rax, 0x8(%rsp)
movq %rcx, (%rsp)
movq %rax, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
subq 0x38(%rsp), %rcx
imulq $0x3e8, %rcx, %rcx      # imm = 0x3E8
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
subq 0x40(%rsp), %rax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
movsd 0xabb3(%rip), %xmm2     # 0x18e40
divsd 0x38cb(%rip), %xmm1     # 0x11b60
addsd %xmm0, %xmm1
movapd %xmm2, %xmm0
subsd %xmm1, %xmm0
divsd %xmm2, %xmm0
mulsd 0xab8b(%rip), %xmm0     # 0x18e38
xorl %ecx, %ecx
movapd %xmm0, 0x10(%rsp)
ucomisd 0x388b(%rip), %xmm0     # 0x11b48
ja 0xe077
movl 0xab83(%rip), %eax      # 0x18e4c
testl %eax, %eax
je 0xe344
cmpl $0x0, 0x116dc(%rip)     # 0x1f9b0
jne 0xe2ea
movl $0x10, %edi
callq 0x8451
testl %eax, %eax
je 0xe344
movl 0xab62(%rip), %eax      # 0x18e4c
movl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
subq (%rsp), %rax
imulq $0x3e8, %rax, %rax      # imm = 0x3E8
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
subq 0x8(%rsp), %rcx
xorps %xmm2, %xmm2
cvtsi2sd %rcx, %xmm2
divsd 0x383a(%rip), %xmm2     # 0x11b60
addsd %xmm1, %xmm2
movapd %xmm0, %xmm3
subsd %xmm2, %xmm3
xorpd %xmm1, %xmm1
ucomisd %xmm3, %xmm1
jae 0xe34e
movapd %xmm3, 0x10(%rsp)
jmp 0xe3a5
movsd 0x37ec(%rip), %xmm0     # 0x11b38
jmp 0xe39f
xorpd 0x382a(%rip), %xmm3     # 0x11b80
movl 0x11644(%rip), %eax     # 0x1f9a0
movl %eax, %ecx
movl $0x800, %edx            # imm = 0x800
orl %edx, %ecx
ucomisd %xmm0, %xmm3
cmovbel %eax, %ecx
xorl %edx, %ecx
movl %ecx, 0x1162c(%rip)     # 0x1f9a0
movl $0x10, %edi
callq 0x84a6
movq 0x28(%rsp), %rax
movq %rax, (%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x8(%rsp)
movl 0xaab5(%rip), %eax      # 0x18e4c
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movapd %xmm0, 0x10(%rsp)
callq 0x91ea
movq 0x114cf(%rip), %rdi     # 0x1f880
callq 0x6650
movb $0x1, %cl
jmp 0xe077
addq $0x10, %r12
addl $-0x2, %ebx
movq %r12, %rsi
jmp 0xde03
callq 0xe3d6
callq 0x6120