// File: /workspace/github_c_makefile_star2_O2/mcaimi[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 '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);
    geometryMode = CellGeometry;
    break;
  case 'G':
    xw.gm = XParseGeometry(EARGF(usage()),
        &xw.l, &xw.t, &width, &height);
    geometryMode = 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_line)
    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 (geometryMode) {
    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);
  signal(SIGUSR1, reload);
  xsetenv();
  selinit();
  run();

  /* free history */
  histfree();

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
andq $0x0, 0x13779(%rip)     # 0x20cf4
andl $0x0, 0x1376a(%rip)     # 0x20cec
movq %rsi, %rbx
movl %edi, %eax
movl 0x10873(%rip), %ecx     # 0x1de00
cmpl $0x7, %ecx
ja 0xd598
movl %ecx, 0x137a0(%rip)     # 0x20d38
movq (%rbx), %rcx
movq %rcx, 0x1380e(%rip)     # 0x20db0
pushq $0x8
popq %rsi
pushq $0x1
popq %r8
leaq 0x4618(%rip), %r15      # 0x11bc8
leal -0x1(%rax), %r12d
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xd8d2
cmpb $0x2d, (%rdi)
jne 0xd8d2
movzbl 0x1(%rdi), %ecx
cmpl $0x2d, %ecx
je 0xd5dc
testl %ecx, %ecx
jne 0xd5e6
jmp 0xd8d2
cmpb $0x0, 0x2(%rdi)
je 0xde20
xorl %r14d, %r14d
pushq $0x2
popq %r13
movq %rsi, %rbp
leaq (%rbx,%rbp), %rax
cmpq $0x8, %rbp
jne 0xd8c7
testl %r14d, %r14d
jne 0xd8c7
testb %cl, %cl
je 0xd8c7
movzbl %cl, %ecx
leal -0x61(%rcx), %edx
cmpl $0x16, %edx
ja 0xd62c
movslq (%r15,%rdx,4), %rcx
addq %r15, %rcx
jmpq *%rcx
andl $0x0, 0xff66(%rip)      # 0x1d590
jmp 0xd6aa
cmpl $0x47, %ecx
je 0xd72e
cmpl $0x54, %ecx
jne 0xd650
cmpb $0x0, (%rdi,%r13)
je 0xd744
addq %r13, %rdi
movq %rsi, %rbp
jmp 0xd759
callq 0xde39
pushq $0x1
popq %r8
pushq $0x8
popq %rsi
jmp 0xd6aa
cmpb $0x0, (%rdi,%r13)
je 0xd765
addq %r13, %rdi
movq %rsi, %rbp
jmp 0xd77a
cmpb $0x0, (%rdi,%r13)
je 0xd786
addq %r13, %rdi
movq %rsi, %rbp
jmp 0xd79b
cmpb $0x0, (%rdi,%r13)
je 0xd7a7
addq %r13, %rdi
movq %rsi, %rbp
jmp 0xd7bc
movl $0x1, 0x13642(%rip)     # 0x20cec
xorl %r14d, %r14d
jmp 0xd6e4
cmpb $0x0, (%rdi,%r13)
je 0xd7c8
addq %r13, %rdi
movq %rsi, %rbp
jmp 0xd7dd
movq 0x136e4(%rip), %rsi     # 0x20db0
xorl %r14d, %r14d
leaq 0x88e8(%rip), %rdi      # 0x15fbe
xorl %eax, %eax
callq 0x6c0a
pushq $0x1
popq %r8
pushq $0x8
popq %rsi
movq %rsi, %rbp
jmp 0xd868
cmpb $0x0, (%rdi,%r13)
je 0xd7e6
addq %r13, %rdi
movq %rsi, %rbp
jmp 0xd7fb
cmpb $0x0, (%rdi,%r13)
je 0xd804
addq %r13, %rdi
movq %rsi, %rbp
jmp 0xd819
cmpb $0x0, (%rdi,%r13)
je 0xd849
addq %r13, %rdi
movq %rsi, %rbp
jmp 0xd85e
cmpb $0x0, (%rdi,%r13)
je 0xd878
addq %r13, %rdi
movq %rsi, %rbp
jmp 0xd88d
cmpq $0x0, 0x8(%rax)
je 0xde2f
decl %r12d
movq 0x10(%rbx), %rdi
pushq $0x10
popq %rbp
movq %rdi, 0x135e0(%rip)     # 0x20d40
jmp 0xd865
cmpq $0x0, 0x8(%rax)
je 0xde2f
decl %r12d
movq 0x10(%rbx), %rdi
pushq $0x10
popq %rbp
movq %rdi, 0x13617(%rip)     # 0x20d98
jmp 0xd865
cmpq $0x0, 0x8(%rax)
je 0xde2f
decl %r12d
movq 0x10(%rbx), %rdi
pushq $0x10
popq %rbp
movq %rdi, 0x13616(%rip)     # 0x20db8
jmp 0xd865
cmpq $0x0, 0x8(%rax)
je 0xde2f
decl %r12d
movq 0x10(%rbx), %rdi
pushq $0x10
popq %rbp
movq %rdi, 0x1353d(%rip)     # 0x20d00
jmp 0xd865
cmpq $0x0, 0x8(%rax)
je 0xde2f
decl %r12d
movq 0x10(%rbx), %rdi
pushq $0x10
popq %rbp
movq %rdi, 0x135ec(%rip)     # 0x20dd0
jmp 0xd865
cmpq $0x0, 0x8(%rax)
je 0xde2f
decl %r12d
movq 0x10(%rbx), %rdi
pushq $0x10
popq %rbp
movq %rdi, 0x1359e(%rip)     # 0x20da0
jmp 0xd865
cmpq $0x0, 0x8(%rax)
je 0xde2f
decl %r12d
movq 0x10(%rbx), %rdi
pushq $0x10
popq %rbp
leaq 0x134d4(%rip), %rsi     # 0x20cf4
leaq 0x134d1(%rip), %rdx     # 0x20cf8
leaq 0x105d6(%rip), %rcx     # 0x1de04
leaq 0x105d3(%rip), %r8      # 0x1de08
callq 0x6a60
movl %eax, 0x134bc(%rip)     # 0x20cfc
movb $0x0, 0x13579(%rip)     # 0x20dc0
jmp 0xd8bb
cmpq $0x0, 0x8(%rax)
je 0xde2f
decl %r12d
movq 0x10(%rbx), %rdi
pushq $0x10
popq %rbp
movq %rdi, 0x13563(%rip)     # 0x20dc8
movl %r8d, %r14d
movq (%rbx,%rbp), %rdi
movb (%rdi,%r13), %cl
incq %r13
jmp 0xd5f0
cmpq $0x0, 0x8(%rax)
je 0xde2f
decl %r12d
movq 0x10(%rbx), %rdi
pushq $0x10
popq %rbp
leaq 0x13460(%rip), %rsi     # 0x20cf4
leaq 0x1345d(%rip), %rdx     # 0x20cf8
leaq 0x1056a(%rip), %rcx     # 0x1de0c
leaq 0x10567(%rip), %r8      # 0x1de10
callq 0x6a60
movl %eax, 0x13448(%rip)     # 0x20cfc
movb $0x1, 0x13505(%rip)     # 0x20dc0
pushq $0x1
popq %r8
movl %r8d, %r14d
pushq $0x8
popq %rsi
jmp 0xd868
movq %rax, %rbx
movl %r12d, %eax
jmp 0xd5b0
addq $0x8, %rbx
jmp 0xd8e7
xorl %ecx, %ecx
testl %r12d, %r12d
setg %cl
leaq (%rax,%rcx,8), %rbx
subl %ecx, %r12d
testl %r12d, %r12d
jle 0xd8f3
movq %rbx, 0x134e5(%rip)     # 0x20dd8
movq 0x134d6(%rip), %rax     # 0x20dd0
orq 0x1343f(%rip), %rax     # 0x20d40
jne 0xd922
movq 0x134ce(%rip), %rax     # 0x20dd8
testq %rax, %rax
je 0xd914
movq (%rax), %rax
jmp 0xd91b
leaq 0x8613(%rip), %rax      # 0x15f2e
movq %rax, 0x1341e(%rip)     # 0x20d40
leaq 0x8f25(%rip), %rbx      # 0x1684e
xorl %edi, %edi
movq %rbx, %rsi
callq 0x6930
movq %rbx, %rdi
callq 0x6860
xorl %edi, %edi
callq 0x6310
movq %rax, 0x1327f(%rip)     # 0x20bc8
testq %rax, %rax
jne 0xd95c
leaq 0x8673(%rip), %rdi      # 0x15fc8
xorl %eax, %eax
callq 0x6c0a
callq 0xcd9f
cmpb $0x0, 0x13458(%rip)     # 0x20dc0
je 0xd9a7
movl 0x1049c(%rip), %edi     # 0x1de0c
movl 0x1049a(%rip), %esi     # 0x1de10
callq 0xde51
movl 0x13397(%rip), %eax     # 0x20d18
movl 0x13459(%rip), %ecx     # 0x20de0
addl %ecx, %ecx
subl %ecx, %eax
cltd
idivl 0x1339a(%rip)           # 0x20d2c
movl %eax, %edi
movl 0x13382(%rip), %eax     # 0x20d1c
subl %ecx, %eax
cltd
idivl 0x13385(%rip)           # 0x20d28
movl %eax, %esi
jmp 0xd9c4
movl 0x10457(%rip), %edi     # 0x1de04
movl 0x10455(%rip), %esi     # 0x1de08
callq 0xde51
movl 0x10446(%rip), %edi     # 0x1de04
movl 0x10444(%rip), %esi     # 0x1de08
cmpl $0x1, %edi
adcl $0x0, %edi
movl %edi, 0x10434(%rip)     # 0x1de04
cmpl $0x1, %esi
adcl $0x0, %esi
movl %esi, 0x1042c(%rip)     # 0x1de08
callq 0x7e7a
leaq -0x982(%rip), %rsi      # 0xd066
pushq $0xa
popq %rdi
callq 0x6070
movq 0x131e1(%rip), %rcx     # 0x20bd8
leaq 0x8896(%rip), %rdx      # 0x16294
leaq 0xf0(%rsp), %r15
pushq $0x41
popq %rsi
movq %r15, %rdi
xorl %eax, %eax
callq 0x60d0
leaq 0x8a47(%rip), %rdi      # 0x16461
pushq $0x1
popq %rdx
movq %r15, %rsi
callq 0x65d0
callq 0x6db4
movl 0x132e7(%rip), %r13d    # 0x20d18
movl 0x132e4(%rip), %r12d    # 0x20d1c
movq 0x13189(%rip), %rdi     # 0x20bc8
callq 0x62c0
movl %eax, %r14d
movq 0x1317a(%rip), %rdi     # 0x20bc8
movq %r15, %rsi
callq 0x6460
movq %r15, %rdi
xorl %esi, %esi
callq 0x6370
movl 0xf0(%rsp), %ecx
movl %ecx, %edx
xorl $0x16, %edx
orl %eax, %edx
jne 0xda80
movl 0x12c(%rsp), %r12d
movl 0x128(%rsp), %r13d
cmpl $0x13, %ecx
jne 0xda47
movq 0x13344(%rip), %rdi     # 0x20dd0
movq 0xfad5(%rip), %rsi      # 0x1d568
movq 0x1332e(%rip), %rdx     # 0x20dc8
movq 0x13337(%rip), %rcx     # 0x20dd8
callq 0x73c7
movl %eax, %ebx
movl %r13d, %edi
movl %r12d, %esi
callq 0xd449
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 %rbp
movq %rbp, %r12
shlq %cl, %r12
movl %r14d, %eax
cltd
idivl %esi
movl %r14d, %edx
movslq %eax, %r14
shll $0x6, %eax
movl %edx, %ecx
subl %eax, %ecx
shlq %cl, %rbp
cmpl %ebx, %edx
cmovgl %edx, %ebx
incl %ebx
movsd 0x8155(%rip), %xmm0     # 0x15c48
leaq 0xf0(%rsp), %r13
movq $0x0, 0x40(%rsp)
movq $0x0, 0x38(%rsp)
movl %ebx, 0x8(%rsp)
movq %rbp, 0x48(%rsp)
movl $0x0, 0xc(%rsp)
xorl %eax, %eax
cmpq $0x10, %rax
je 0xdb31
andq $0x0, 0x70(%rsp,%rax,8)
incq %rax
jmp 0xdb20
orq %r12, 0x70(%rsp,%r15,8)
orq %rbp, 0x70(%rsp,%r14,8)
movq 0x13086(%rip), %rdi     # 0x20bc8
movapd %xmm0, 0x10(%rsp)
callq 0x6a30
testl %eax, %eax
jne 0xdb62
xorl %eax, %eax
callq 0x7891
movapd 0x10(%rsp), %xmm1
testl %eax, %eax
je 0xdb66
xorpd %xmm1, %xmm1
movapd %xmm1, %xmm0
divsd 0x80ee(%rip), %xmm0     # 0x15c60
cvttsd2si %xmm0, %rax
cvtsi2sd %rax, %xmm0
movq %rax, 0x60(%rsp)
mulsd 0x80df(%rip), %xmm0     # 0x15c68
addsd %xmm1, %xmm0
mulsd 0x3473(%rip), %xmm0     # 0x11008
cvttsd2si %xmm0, %rax
movapd %xmm1, 0x10(%rsp)
ucomisd 0x80b0(%rip), %xmm1     # 0x15c58
movq %rax, 0x68(%rsp)
movl $0x0, %r8d
leaq 0x60(%rsp), %rax
cmovaeq %rax, %r8
movl %ebx, %edi
leaq 0x70(%rsp), %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r9d, %r9d
callq 0x6340
testl %eax, %eax
jns 0xdbff
callq 0x6620
movl (%rax), %edi
cmpl $0x4, %edi
movapd 0x10(%rsp), %xmm0
je 0xdb1e
callq 0x64b0
leaq 0x3c13(%rip), %rdi      # 0x11808
movq %rax, %rsi
xorl %eax, %eax
callq 0x6c0a
pushq $0x1
popq %rdi
leaq 0x28(%rsp), %rsi
callq 0x6150
testq %r12, 0x70(%rsp,%r15,8)
jne 0xdc20
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x7891
testl %eax, %eax
je 0xdc28
callq 0x7899
movb $0x1, %bpl
xorl %ebx, %ebx
movq 0x12f97(%rip), %rdi     # 0x20bc8
callq 0x6a30
testl %eax, %eax
je 0xdc80
movq 0x12f87(%rip), %rdi     # 0x20bc8
movq %r13, %rsi
callq 0x6460
movq %r13, %rdi
xorl %esi, %esi
callq 0x6370
movb $0x1, %bl
testl %eax, %eax
jne 0xdc2a
movslq 0xf0(%rsp), %rax
movabsq $0xd2fbb698b, %rcx      # imm = 0xD2FBB698B
btq %rax, %rcx
jb 0xdc2a
movq %r13, %rdi
leaq 0xd5d5(%rip), %rcx      # 0x1b250
callq *(%rcx,%rax,8)
jmp 0xdc2a
orb %bl, %bpl
testb $0x1, %bpl
je 0xdd17
cmpl $0x0, 0xc(%rsp)
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
movq 0x58(%rsp), %rdx
cmoveq %rcx, %rdx
movq 0x50(%rsp), %rsi
cmoveq %rax, %rsi
movq %rsi, 0x50(%rsp)
subq %rsi, %rax
imulq $0x3e8, %rax, %rax      # imm = 0x3E8
cvtsi2sd %rax, %xmm0
movq %rdx, 0x58(%rsp)
subq %rdx, %rcx
cvtsi2sd %rcx, %xmm1
movsd 0x10149(%rip), %xmm2    # 0x1de20
divsd 0x3329(%rip), %xmm1     # 0x11008
addsd %xmm0, %xmm1
movapd %xmm2, %xmm0
subsd %xmm1, %xmm0
divsd %xmm2, %xmm0
mulsd 0x10121(%rip), %xmm0    # 0x1de18
ucomisd 0x7f59(%rip), %xmm0     # 0x15c58
pushq $0x1
popq %rax
movl %eax, 0xc(%rsp)
movl 0x8(%rsp), %ebx
movq 0x48(%rsp), %rbp
ja 0xdb1e
jmp 0xdd20
movl 0x8(%rsp), %ebx
movq 0x48(%rsp), %rbp
movl 0x1010e(%rip), %edi     # 0x1de34
callq 0x6b6c
testl %eax, %eax
je 0xdd3c
movsd 0x100e1(%rip), %xmm0    # 0x1de18
jmp 0xdb1e
cmpl $0x0, 0x100e5(%rip)     # 0x1de28
je 0xdda7
pushq $0x10
popq %rdi
callq 0x7da3
testl %eax, %eax
je 0xdda7
movl 0x100d1(%rip), %eax     # 0x1de28
cvtsi2sd %rax, %xmm0
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
subq 0x38(%rsp), %rax
imulq $0x3e8, %rax, %rax      # imm = 0x3E8
cvtsi2sd %rax, %xmm1
subq 0x40(%rsp), %rcx
cvtsi2sd %rcx, %xmm2
divsd 0x327f(%rip), %xmm2     # 0x11008
addsd %xmm1, %xmm2
movapd %xmm0, %xmm3
subsd %xmm2, %xmm3
xorpd %xmm1, %xmm1
ucomisd %xmm3, %xmm1
jae 0xddb1
movapd %xmm3, 0x10(%rsp)
jmp 0xde04
movsd 0x7e99(%rip), %xmm0     # 0x15c48
jmp 0xddfe
xorpd 0x7ee7(%rip), %xmm3     # 0x15ca0
movl 0x12f75(%rip), %eax     # 0x20d34
movl %eax, %ecx
movl $0x800, %edx            # imm = 0x800
orl %edx, %ecx
ucomisd %xmm0, %xmm3
cmovbel %eax, %ecx
xorl %edx, %ecx
movl %ecx, 0x12f5d(%rip)     # 0x20d34
pushq $0x10
popq %rdi
callq 0x7e08
movq 0x28(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x40(%rsp)
movl 0x1002f(%rip), %eax     # 0x1de28
cvtsi2sd %rax, %xmm0
movapd %xmm0, 0x10(%rsp)
callq 0x8aa6
movq 0x12db8(%rip), %rdi     # 0x20bc8
callq 0x6630
movapd 0x10(%rsp), %xmm0
jmp 0xdb16
addq $0x10, %rbx
addl $-0x2, %eax
movl %eax, %r12d
jmp 0xd8e7
callq 0xde39
callq 0x6130