// File: /workspace/github_c_makefile_star2_O0/mcaimi[P]st/x.c
// Function: xinit
void
xinit(int w, int h)
{
  XGCValues gcvalues;
  Cursor cursor;
  Window parent, root;
  pid_t thispid = getpid();
  XColor xmousefg, xmousebg;

  xw.scr = XDefaultScreen(xw.dpy);
  xw.depth = (USE_ARGB) ? 32: XDefaultDepth(xw.dpy, xw.scr);
  if (!USE_ARGB)
    xw.vis = XDefaultVisual(xw.dpy, xw.scr);
  else {
    XVisualInfo *vis;
    XRenderPictFormat *fmt;
    int nvi;
    int i;

    XVisualInfo tpl = {
      .screen = xw.scr,
      .depth = 32,
      .class = TrueColor
    };

    vis = XGetVisualInfo(xw.dpy,
        VisualScreenMask | VisualDepthMask | VisualClassMask,
        &tpl, &nvi);
    xw.vis = NULL;
    for (i = 0; i < nvi; i++) {
      fmt = XRenderFindVisualFormat(xw.dpy, vis[i].visual);
      if (fmt->type == PictTypeDirect && fmt->direct.alphaMask) {
        xw.vis = vis[i].visual;
        break;
      }
    }

    XFree(vis);

    if (!xw.vis) {
      fprintf(stderr, "Couldn't find ARGB visual.\n");
      exit(1);
    }
  }

  /* font */
  if (!FcInit())
    die("could not init fontconfig.\n");

  usedfont = (opt_font == NULL)? font : opt_font;
  xloadfonts(usedfont, 0);
  xloadsparefonts();

  /* colors */
  if (!USE_ARGB)
    xw.cmap = XDefaultColormap(xw.dpy, xw.scr);
  else
    xw.cmap = XCreateColormap(xw.dpy, XRootWindow(xw.dpy, xw.scr),
        xw.vis, None);
  xloadcols();

  /* adjust fixed window geometry */
  switch (geometryMode) {
    case CellGeometry:
      win.w = 2 * win.dynborder_w + w * win.cw;
      win.h = 2 * win.dynborder_h + h * win.ch;
      break;
    case PixelGeometry:
      win.w = w;
      win.h = h;
      break;
  }

  if (xw.gm & XNegative)
    xw.l += DisplayWidth(xw.dpy, xw.scr) - win.w - 2;
  if (xw.gm & YNegative)
    xw.t += DisplayHeight(xw.dpy, xw.scr) - win.h - 2;

  /* Events */
  xw.attrs.background_pixel = dc.col[defaultbg].pixel;
  xw.attrs.border_pixel = dc.col[defaultbg].pixel;
  xw.attrs.bit_gravity = NorthWestGravity;
  xw.attrs.event_mask = FocusChangeMask | KeyPressMask | KeyReleaseMask
    | ExposureMask | VisibilityChangeMask | StructureNotifyMask
    | ButtonMotionMask | ButtonPressMask | ButtonReleaseMask;
  xw.attrs.colormap = xw.cmap;

  root = XRootWindow(xw.dpy, xw.scr);
  if (!(opt_embed && (parent = strtol(opt_embed, NULL, 0)))) 
    parent = root;
  xw.win = XCreateWindow(xw.dpy, root, xw.l, xw.t,
      win.w, win.h, 0, xw.depth, InputOutput,
      xw.vis, CWBackPixel | CWBorderPixel | CWBitGravity
      | CWEventMask | CWColormap, &xw.attrs);

  if (parent != root)
    XReparentWindow(xw.dpy, xw.win, parent, xw.l, xw.t);

  snprintf(winid, LEN(winid), "%lu", (unsigned long)xw.win);

  memset(&gcvalues, 0, sizeof(gcvalues));
  gcvalues.graphics_exposures = False;
  xw.buf = XCreatePixmap(xw.dpy, xw.win, win.w, win.h, xw.depth);
  dc.gc = XCreateGC(xw.dpy, (USE_ARGB) ? xw.buf: parent,
      GCGraphicsExposures, &gcvalues);
  XSetForeground(xw.dpy, dc.gc, dc.col[defaultbg].pixel);
  XFillRectangle(xw.dpy, xw.buf, dc.gc, 0, 0, win.w, win.h);

  /* font spec buffer */
  xw.specbuf = xmalloc(cols * sizeof(GlyphFontSpec));

  /* Xft rendering context */
  xw.draw = XftDrawCreate(xw.dpy, xw.buf, xw.vis, xw.cmap);

  /* input methods */
  if (!ximopen(xw.dpy)) {
    XRegisterIMInstantiateCallback(xw.dpy, NULL, NULL, NULL, ximinstantiate, NULL);
  }

  /* white cursor, black outline */
  cursor = XCreateFontCursor(xw.dpy, mouseshape);
  XDefineCursor(xw.dpy, xw.win, cursor);

  if (XParseColor(xw.dpy, xw.cmap, colorname[mousefg], &xmousefg) == 0) {
    xmousefg.red   = 0xffff;
    xmousefg.green = 0xffff;
    xmousefg.blue  = 0xffff;
  }

  if (XParseColor(xw.dpy, xw.cmap, colorname[mousebg], &xmousebg) == 0) {
    xmousebg.red   = 0x0000;
    xmousebg.green = 0x0000;
    xmousebg.blue  = 0x0000;
  }

  XRecolorCursor(xw.dpy, cursor, &xmousefg, &xmousebg);

  xw.xembed = XInternAtom(xw.dpy, "_XEMBED", False);
  xw.wmdeletewin = XInternAtom(xw.dpy, "WM_DELETE_WINDOW", False);
  xw.netwmname = XInternAtom(xw.dpy, "XA_WM_NAME", False);
  xw.netwmiconname = XInternAtom(xw.dpy, "_NET__WM_ICON_NAME", False);
  XSetWMProtocols(xw.dpy, xw.win, &xw.wmdeletewin, 1);

  xw.netwmpid = XInternAtom(xw.dpy, "_NET_WM_PID", False);
  // get window properties status
  xw.window_state = XInternAtom(xw.dpy, "_NET_WM_STATE", False);
  // get window fullscreen status
  xw.window_fullscreen = XInternAtom(xw.dpy, "_NET_WM_STATE_FULLSCREEN", False);

  XChangeProperty(xw.dpy, xw.win, xw.netwmpid, XA_CARDINAL, 32,
      PropModeReplace, (uchar *)&thispid, 1);

  win.mode = MODE_NUMLOCK;
  resettitle();
  xhints();

  /* load icon */
  if (taskbaricon != 0)
    load_icon();

  XMapWindow(xw.dpy, xw.win);
  XSync(xw.dpy, False);

  clock_gettime(CLOCK_MONOTONIC, &xsel.tclick1);
  clock_gettime(CLOCK_MONOTONIC, &xsel.tclick2);
  xsel.primary = NULL;
  xsel.clipboard = NULL;
  xsel.xtarget = XInternAtom(xw.dpy, "UTF8_STRING", 0);
  if (xsel.xtarget == None)
    xsel.xtarget = XA_STRING;

  boxdraw_xinit(xw.dpy, xw.cmap, xw.draw, xw.vis);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x180, %rsp            # imm = 0x180
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
callq 0x62b0
movl %eax, -0xa4(%rbp)
movq 0x12fc5(%rip), %rdi     # 0x24988
callq 0x64e0
movl %eax, 0x130da(%rip)     # 0x24aa8
cmpl $0xff, 0xddfc(%rip)     # 0x1f7d4
je 0x119f1
cmpq $0x0, 0x130de(%rip)     # 0x24ac0
jne 0x119f1
movl $0x20, %eax
movl %eax, -0x124(%rbp)
jmp 0x11a09
movq 0x12f90(%rip), %rdi     # 0x24988
movl 0x130aa(%rip), %esi     # 0x24aa8
callq 0x6890
movl %eax, -0x124(%rbp)
movl -0x124(%rbp), %eax
movl %eax, 0x1309b(%rip)     # 0x24ab0
cmpl $0xff, 0xddb5(%rip)     # 0x1f7d4
je 0x11a2b
cmpq $0x0, 0x13097(%rip)     # 0x24ac0
je 0x11a49
movq 0x12f56(%rip), %rdi     # 0x24988
movl 0x13070(%rip), %esi     # 0x24aa8
callq 0x62d0
movq %rax, 0x12fec(%rip)     # 0x24a30
jmp 0x11b7e
leaq -0x120(%rbp), %rdi
xorl %esi, %esi
movl $0x40, %edx
callq 0x60c0
movl 0x13046(%rip), %eax     # 0x24aa8
movl %eax, -0x110(%rbp)
movl $0x20, -0x10c(%rbp)
movl $0x4, -0x108(%rbp)
movq 0x12f05(%rip), %rdi     # 0x24988
movl $0xe, %esi
leaq -0x120(%rbp), %rdx
leaq -0xdc(%rbp), %rcx
callq 0x6860
movq %rax, -0xd0(%rbp)
movq $0x0, 0x12f83(%rip) # 0x24a30
movl $0x0, -0xe0(%rbp)
movl -0xe0(%rbp), %eax
cmpl -0xdc(%rbp), %eax
jge 0x11b44
movq 0x12ebc(%rip), %rdi     # 0x24988
movq -0xd0(%rbp), %rax
movslq -0xe0(%rbp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
movq (%rax), %rsi
callq 0x6050
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
cmpl $0x1, 0x8(%rax)
jne 0x11b2e
movq -0xd8(%rbp), %rax
movswl 0x1e(%rax), %eax
cmpl $0x0, %eax
je 0x11b2e
movq -0xd0(%rbp), %rax
movslq -0xe0(%rbp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, 0x12f04(%rip)     # 0x24a30
jmp 0x11b44
jmp 0x11b30
movl -0xe0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xe0(%rbp)
jmp 0x11ab7
movq -0xd0(%rbp), %rdi
callq 0x60a0
cmpq $0x0, 0x12ed8(%rip)     # 0x24a30
jne 0x11b7c
movq 0xd48f(%rip), %rax      # 0x1eff0
movq (%rax), %rdi
leaq 0x9971(%rip), %rsi      # 0x1b4dc
movb $0x0, %al
callq 0x6970
movl $0x1, %edi
callq 0x61b0
jmp 0x11b7e
callq 0x6a00
cmpl $0x0, %eax
jne 0x11b96
leaq 0x9969(%rip), %rdi      # 0x1b4f8
movb $0x0, %al
callq 0x6c50
cmpq $0x0, 0x12fca(%rip)     # 0x24b68
jne 0x11bb0
movq 0xdc49(%rip), %rax      # 0x1f7f0
movq %rax, -0x130(%rbp)
jmp 0x11bbe
movq 0x12fb1(%rip), %rax     # 0x24b68
movq %rax, -0x130(%rbp)
movq -0x130(%rbp), %rax
movq %rax, 0x12f8c(%rip)     # 0x24b58
movq 0x12f85(%rip), %rdi     # 0x24b58
xorps %xmm0, %xmm0
callq 0x10ad0
callq 0x12e20
cmpl $0xff, 0xdbea(%rip)     # 0x1f7d4
je 0x11bf6
cmpq $0x0, 0x12ecc(%rip)     # 0x24ac0
je 0x11c11
movq 0x12d8b(%rip), %rdi     # 0x24988
movl 0x12ea5(%rip), %esi     # 0x24aa8
callq 0x6600
movq %rax, 0x12d81(%rip)     # 0x24990
jmp 0x11c50
movq 0x12d70(%rip), %rax     # 0x24988
movq %rax, -0x138(%rbp)
movq 0x12d62(%rip), %rdi     # 0x24988
movl 0x12e7c(%rip), %esi     # 0x24aa8
callq 0x62e0
movq -0x138(%rbp), %rdi
movq %rax, %rsi
movq 0x12dee(%rip), %rdx     # 0x24a30
xorl %ecx, %ecx
callq 0x6290
movq %rax, 0x12d40(%rip)     # 0x24990
callq 0xe190
movl 0xe91d(%rip), %eax      # 0x20578
movl %eax, -0x13c(%rbp)
testl %eax, %eax
je 0x11caa
jmp 0x11c67
movl -0x13c(%rbp), %eax
subl $0x1, %eax
jne 0x11cbc
jmp 0x11c74
movl 0x12e66(%rip), %eax     # 0x24ae0
shll %eax
movl -0x4(%rbp), %ecx
imull 0x12e62(%rip), %ecx     # 0x24ae8
addl %ecx, %eax
movl %eax, 0x12e46(%rip)     # 0x24ad4
movl 0x12e48(%rip), %eax     # 0x24adc
shll %eax
movl -0x8(%rbp), %ecx
imull 0x12e44(%rip), %ecx     # 0x24ae4
addl %ecx, %eax
movl %eax, 0x12e30(%rip)     # 0x24ad8
jmp 0x11cbc
movl -0x4(%rbp), %eax
movl %eax, 0x12e21(%rip)     # 0x24ad4
movl -0x8(%rbp), %eax
movl %eax, 0x12e1c(%rip)     # 0x24ad8
movl 0x12dfa(%rip), %eax     # 0x24abc
andl $0x10, %eax
cmpl $0x0, %eax
je 0x11cfe
movq 0x12cb7(%rip), %rax     # 0x24988
movq 0xe8(%rax), %rax
movslq 0x12dc9(%rip), %rcx     # 0x24aa8
shlq $0x7, %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
subl 0x12de5(%rip), %eax     # 0x24ad4
subl $0x2, %eax
addl 0x12dbc(%rip), %eax     # 0x24ab4
movl %eax, 0x12db6(%rip)     # 0x24ab4
movl 0x12db8(%rip), %eax     # 0x24abc
andl $0x20, %eax
cmpl $0x0, %eax
je 0x11d40
movq 0x12c75(%rip), %rax     # 0x24988
movq 0xe8(%rax), %rax
movslq 0x12d87(%rip), %rcx     # 0x24aa8
shlq $0x7, %rcx
addq %rcx, %rax
movl 0x1c(%rax), %eax
subl 0x12da7(%rip), %eax     # 0x24ad8
subl $0x2, %eax
addl 0x12d7e(%rip), %eax     # 0x24ab8
movl %eax, 0x12d78(%rip)     # 0x24ab8
movq 0x12b49(%rip), %rax     # 0x24890
movl 0xda8f(%rip), %ecx      # 0x1f7dc
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, 0x12ce2(%rip)     # 0x24a40
movq 0x12b2b(%rip), %rax     # 0x24890
movl 0xda71(%rip), %ecx      # 0x1f7dc
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, 0x12cd4(%rip)     # 0x24a50
movl $0x1, 0x12cd2(%rip)     # 0x24a58
movq $0x23a00f, 0x12cef(%rip) # imm = 0x23A00F
movq 0x12bf8(%rip), %rax     # 0x24990
movq %rax, 0x12cf9(%rip)     # 0x24a98
movq 0x12be2(%rip), %rdi     # 0x24988
movl 0x12cfc(%rip), %esi     # 0x24aa8
callq 0x62e0
movq %rax, -0xa0(%rbp)
cmpq $0x0, 0x12d00(%rip)     # 0x24ac0
je 0x11de1
movq 0x12cf7(%rip), %rdi     # 0x24ac0
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq 0x6520
movq %rax, -0x98(%rbp)
cmpq $0x0, %rax
jne 0x11def
movq -0xa0(%rbp), %rax
movq %rax, -0x98(%rbp)
movq 0x12b92(%rip), %rdi     # 0x24988
movq -0xa0(%rbp), %rsi
movl 0x12cb1(%rip), %edx     # 0x24ab4
movl 0x12caf(%rip), %ecx     # 0x24ab8
movl 0x12cc4(%rip), %r8d     # 0x24ad4
movl 0x12cc1(%rip), %r9d     # 0x24ad8
movl 0x12c92(%rip), %r11d    # 0x24ab0
movq 0x12c0b(%rip), %r10     # 0x24a30
xorl %eax, %eax
leaq 0x12b5a(%rip), %rax     # 0x24988
addq $0xb0, %rax
movl $0x0, (%rsp)
movl %r11d, 0x8(%rsp)
movl $0x1, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movq $0x281a, 0x20(%rsp)     # imm = 0x281A
movq %rax, 0x28(%rsp)
callq 0x6270
movq %rax, 0x12b31(%rip)     # 0x24998
movq -0x98(%rbp), %rax
cmpq -0xa0(%rbp), %rax
je 0x11e9e
movq 0x12b0a(%rip), %rdi     # 0x24988
movq 0x12b13(%rip), %rsi     # 0x24998
movq -0x98(%rbp), %rdx
movl 0x12c22(%rip), %ecx     # 0x24ab4
movl 0x12c1f(%rip), %r8d     # 0x24ab8
callq 0x6940
movq 0x12af3(%rip), %rcx     # 0x24998
leaq 0x12d44(%rip), %rdi     # 0x24bf0
movl $0x40, %esi
leaq 0x965c(%rip), %rdx      # 0x1b514
movb $0x0, %al
callq 0x60d0
leaq -0x88(%rbp), %rdi
xorl %esi, %esi
movl $0x80, %edx
callq 0x60c0
movl $0x0, -0x24(%rbp)
movq 0x12aa8(%rip), %rdi     # 0x24988
movq 0x12ab1(%rip), %rsi     # 0x24998
movl 0x12be7(%rip), %edx     # 0x24ad4
movl 0x12be5(%rip), %ecx     # 0x24ad8
movl 0x12bb6(%rip), %r8d     # 0x24ab0
callq 0x6960
movq %rax, 0x12a9a(%rip)     # 0x249a0
movq 0x12a7b(%rip), %rax     # 0x24988
movq %rax, -0x148(%rbp)
cmpl $0xff, 0xd8b6(%rip)     # 0x1f7d4
je 0x11f3a
cmpq $0x0, 0x12b98(%rip)     # 0x24ac0
jne 0x11f3a
movq 0x12a6f(%rip), %rax     # 0x249a0
movq %rax, -0x150(%rbp)
jmp 0x11f48
movq -0x98(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x148(%rbp), %rdi
movq -0x150(%rbp), %rsi
movl $0x10000, %edx          # imm = 0x10000
leaq -0x88(%rbp), %rcx
callq 0x65c0
movq %rax, 0x12a12(%rip)     # 0x24980
movq 0x12a13(%rip), %rdi     # 0x24988
movq 0x12a04(%rip), %rsi     # 0x24980
movq 0x1290d(%rip), %rax     # 0x24890
movl 0xd853(%rip), %ecx      # 0x1f7dc
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rdx
callq 0x63f0
movq 0x129e9(%rip), %rdi     # 0x24988
movq 0x129fa(%rip), %rsi     # 0x249a0
movq 0x129d3(%rip), %rdx     # 0x24980
movl 0x12b20(%rip), %r9d     # 0x24ad4
movl 0x12b1e(%rip), %eax     # 0x24ad8
xorl %r8d, %r8d
movl %r8d, %ecx
movl %eax, (%rsp)
callq 0x6400
movl 0xe066(%rip), %eax      # 0x20034
movl %eax, %edi
shlq $0x4, %rdi
callq 0x6c00
movq %rax, 0x129c8(%rip)     # 0x249a8
movq 0x129a1(%rip), %rdi     # 0x24988
movq 0x129b2(%rip), %rsi     # 0x249a0
movq 0x12a3b(%rip), %rdx     # 0x24a30
movq 0x12994(%rip), %rcx     # 0x24990
callq 0x6980
movq %rax, 0x12a20(%rip)     # 0x24a28
movq 0x12979(%rip), %rdi     # 0x24988
callq 0x13170
cmpl $0x0, %eax
jne 0x1203a
movq 0x12968(%rip), %rdi     # 0x24988
xorl %eax, %eax
movl %eax, %r9d
leaq 0x12a4(%rip), %r8       # 0x132d0
movq %r9, %rsi
movq %r9, %rdx
movq %r9, %rcx
callq 0x6350
movq 0x12947(%rip), %rdi     # 0x24988
movl 0xe599(%rip), %esi      # 0x205e0
callq 0x6090
movq %rax, -0x90(%rbp)
movq 0x1292e(%rip), %rdi     # 0x24988
movq 0x12937(%rip), %rsi     # 0x24998
movq -0x90(%rbp), %rdx
callq 0x67e0
movq 0x12914(%rip), %rdi     # 0x24988
movq 0x12915(%rip), %rsi     # 0x24990
movl 0xe563(%rip), %eax      # 0x205e4
movl %eax, %ecx
leaq 0xd776(%rip), %rax      # 0x1f800
movq (%rax,%rcx,8), %rdx
leaq -0xb8(%rbp), %rcx
callq 0x6790
cmpl $0x0, %eax
jne 0x120ba
movw $0xffff, -0xb0(%rbp)    # imm = 0xFFFF
movw $0xffff, -0xae(%rbp)    # imm = 0xFFFF
movw $0xffff, -0xac(%rbp)    # imm = 0xFFFF
movq 0x128c7(%rip), %rdi     # 0x24988
movq 0x128c8(%rip), %rsi     # 0x24990
movl 0x12b62(%rip), %eax     # 0x24c30
movl %eax, %ecx
leaq 0xd729(%rip), %rax      # 0x1f800
movq (%rax,%rcx,8), %rdx
leaq -0xc8(%rbp), %rcx
callq 0x6790
cmpl $0x0, %eax
jne 0x12107
movw $0x0, -0xc0(%rbp)
movw $0x0, -0xbe(%rbp)
movw $0x0, -0xbc(%rbp)
movq 0x1287a(%rip), %rdi     # 0x24988
movq -0x90(%rbp), %rsi
leaq -0xb8(%rbp), %rdx
leaq -0xc8(%rbp), %rcx
callq 0x6300
movq 0x12859(%rip), %rdi     # 0x24988
leaq 0x93e2(%rip), %rsi      # 0x1b518
xorl %edx, %edx
callq 0x6810
movq %rax, 0x1286c(%rip)     # 0x249b0
movq 0x1283d(%rip), %rdi     # 0x24988
leaq 0x93ce(%rip), %rsi      # 0x1b520
xorl %edx, %edx
callq 0x6810
movq %rax, 0x12858(%rip)     # 0x249b8
movq 0x12821(%rip), %rdi     # 0x24988
leaq 0x93c3(%rip), %rsi      # 0x1b531
xorl %edx, %edx
callq 0x6810
movq %rax, 0x12844(%rip)     # 0x249c0
movq 0x12805(%rip), %rdi     # 0x24988
leaq 0x93b2(%rip), %rsi      # 0x1b53c
xorl %edx, %edx
callq 0x6810
movq %rax, 0x12830(%rip)     # 0x249c8
movq 0x127e9(%rip), %rdi     # 0x24988
movq 0x127f2(%rip), %rsi     # 0x24998
leaq 0x127db(%rip), %rdx     # 0x24988
addq $0x30, %rdx
movl $0x1, %ecx
callq 0x6470
movq 0x127c6(%rip), %rdi     # 0x24988
leaq 0x9386(%rip), %rsi      # 0x1b54f
xorl %edx, %edx
callq 0x6810
movq %rax, 0x127f9(%rip)     # 0x249d0
movq 0x127aa(%rip), %rdi     # 0x24988
leaq 0x9376(%rip), %rsi      # 0x1b55b
xorl %edx, %edx
callq 0x6810
movq %rax, 0x127ed(%rip)     # 0x249e0
movq 0x1278e(%rip), %rdi     # 0x24988
leaq 0x9368(%rip), %rsi      # 0x1b569
xorl %edx, %edx
callq 0x6810
movq %rax, 0x127c9(%rip)     # 0x249d8
movq 0x12772(%rip), %rdi     # 0x24988
movq 0x1277b(%rip), %rsi     # 0x24998
movq 0x127ac(%rip), %rdx     # 0x249d0
movl $0x6, %ecx
movl $0x20, %r8d
xorl %r9d, %r9d
leaq -0xa4(%rbp), %rax
movq %rax, (%rsp)
movl $0x1, 0x8(%rsp)
callq 0x68b0
movl $0x20000, 0x1289c(%rip) # imm = 0x20000
callq 0x9d50
callq 0x13320
cmpl $0x0, 0x12613(%rip)     # 0x24878
je 0x1226c
callq 0x13530
movq 0x12715(%rip), %rdi     # 0x24988
movq 0x1271e(%rip), %rsi     # 0x24998
callq 0x6540
movq 0x12702(%rip), %rdi     # 0x24988
xorl %esi, %esi
callq 0x66a0
movl $0x1, %edi
leaq 0x128f7(%rip), %rsi     # 0x24b90
addq $0x18, %rsi
callq 0x6150
movl $0x1, %edi
leaq 0x128e2(%rip), %rsi     # 0x24b90
addq $0x28, %rsi
callq 0x6150
movq $0x0, 0x128d6(%rip) # 0x24b98
movq $0x0, 0x128d3(%rip) # 0x24ba0
movq 0x126b4(%rip), %rdi     # 0x24988
leaq 0x92a7(%rip), %rsi      # 0x1b582
xorl %edx, %edx
callq 0x6810
movq %rax, 0x128a7(%rip)     # 0x24b90
cmpq $0x0, 0x1289f(%rip)     # 0x24b90
jne 0x122fe
movq $0x1f, 0x12892(%rip) # 0x24b90
movq 0x12683(%rip), %rdi     # 0x24988
movq 0x12684(%rip), %rsi     # 0x24990
movq 0x12715(%rip), %rdx     # 0x24a28
movq 0x12716(%rip), %rcx     # 0x24a30
callq 0x14e90
addq $0x180, %rsp            # imm = 0x180
popq %rbp
retq
nopl (%rax,%rax)