#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */
typedef struct TYPE_11__ TYPE_5__;
typedef struct TYPE_10__ TYPE_4__;
typedef struct TYPE_9__ TYPE_3__;
typedef struct TYPE_8__ TYPE_2__;
typedef struct TYPE_7__ TYPE_1__;

/* Type definitions */
typedef int /*<<< orphan*/ XWMHints;
struct TYPE_10__ {
  int type;
  int serial;
  int send_event;
  int display;
  int window;
  int /*<<< orphan*/ detail;
  int /*<<< orphan*/ mode;
};
struct TYPE_9__ {
  int type;
  int serial;
  int send_event;
  int display;
  int window;
  int /*<<< orphan*/ detail;
  int /*<<< orphan*/ mode;
};
struct TYPE_8__ {
  int type;
  int serial;
  int send_event;
  int display;
  int window;
  int root;
  int subwindow;
  int time;
  int x;
  int y;
  int x_root;
  int y_root;
  int state;
  int button;
  int same_screen;
};
struct TYPE_7__ {
  int type;
  int serial;
  int send_event;
  int display;
  int window;
  int root;
  int subwindow;
  int time;
  int x;
  int y;
  int x_root;
  int y_root;
  int state;
  int is_hint;
  int same_screen;
};
struct TYPE_11__ {
  int type;
  TYPE_4__ xcrossing;
  TYPE_3__ xfocus;
  TYPE_2__ xbutton;
  TYPE_1__ xmotion;
};
typedef TYPE_5__ XEvent;
typedef int /*<<< orphan*/ Window;
typedef int /*<<< orphan*/ Display;
typedef int /*<<< orphan*/ Atom;

/* Variables and functions */
int /*<<< orphan*/ BlackPixel(int /*<<< orphan*/ *, int /*<<< orphan*/);
#define ButtonPress 145
#define ButtonRelease 144
int /*<<< orphan*/ ButtonReleaseMask;
int /*<<< orphan*/ CopyFromParent;
#define EnterNotify 143
int EnterWindowMask;
int /*<<< orphan*/ False;
int FocusChangeMask;
#define FocusIn 142
#define FocusOut 141
int /*<<< orphan*/ GrabModeAsync;
int /*<<< orphan*/ GrabSuccess;
#define LeaveNotify 140
int LeaveWindowMask;
#define MotionNotify 139
int /*<<< orphan*/ None;
#define NotifyAncestor 138
#define NotifyDetailNone 137
#define NotifyGrab 136
#define NotifyInferior 135
#define NotifyNonlinear 134
#define NotifyNonlinearVirtual 133
#define NotifyNormal 132
#define NotifyPointer 131
#define NotifyPointerRoot 130
#define NotifyUngrab 129
#define NotifyVirtual 128
int /*<<< orphan*/ RootWindow(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ WhitePixel(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ XCreateWindow(int /*<<< orphan*/ *, int /*<<< orphan*/, int,
                                 int, int, int, int, int /*<<< orphan*/,
                                 int /*<<< orphan*/, int /*<<< orphan*/,
                                 int /*<<< orphan*/, int /*<<< orphan*/ *);
int /*<<< orphan*/ XGrabPointer(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                int /*<<< orphan*/, int /*<<< orphan*/,
                                int /*<<< orphan*/, int /*<<< orphan*/,
                                int /*<<< orphan*/, int /*<<< orphan*/, int);
int /*<<< orphan*/ XMapWindow(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ XNextEvent(int /*<<< orphan*/ *, TYPE_5__ *);
int /*<<< orphan*/ *XOpenDisplay(int /*<<< orphan*/ *);
int /*<<< orphan*/ XSelectInput(int /*<<< orphan*/ *, int /*<<< orphan*/, int);
int /*<<< orphan*/ XSetWindowBackground(int /*<<< orphan*/ *,
                                        int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ XUngrabPointer(int /*<<< orphan*/ *, int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int main() {
  Display *display;
  Window win, child;
  XEvent report;
  Atom _net_fs, _net_state;
  XEvent msg;
  int x = 50, y = 50, h = 100, w = 400;
  XWMHints hint;
  display = XOpenDisplay(NULL);
  if (display == NULL) {
    fprintf(stderr, "couldn't connect to X server :0\n");
    return 0;
  }
  win = XCreateWindow(display, RootWindow(display, 0), x, y, w, h, 10,
                      CopyFromParent, CopyFromParent, CopyFromParent, 0, NULL);
  child = XCreateWindow(display, win, 10, 10, w - 20, h - 20, 0, CopyFromParent,
                        CopyFromParent, CopyFromParent, 0, NULL);
  XSetWindowBackground(display, win, WhitePixel(display, 0));
  XSetWindowBackground(display, child, BlackPixel(display, 0));
  XSelectInput(display, win,
               FocusChangeMask | EnterWindowMask | LeaveWindowMask);
  XMapWindow(display, win);
  XMapWindow(display, child);
  while (1) {
    const char *mode, *detail;
    XNextEvent(display, &report);
    switch (report.type) {
    case ButtonPress:
      printf("button press\n");
      printf("type        : %d\n", report.xbutton.type);
      printf("serial      : %d\n", report.xbutton.serial);
      printf("send_event  : %d\n", report.xbutton.send_event);
      printf("display     : 0x%x\n", report.xbutton.display);
      printf("window      : 0x%x\n", report.xbutton.window);
      printf("root        : 0x%x\n", report.xbutton.root);
      printf("subwindow   : 0x%x\n", report.xbutton.subwindow);
      printf("time        : %d\n", report.xbutton.time);
      printf("x, y        : %d, %d\n", report.xbutton.x, report.xbutton.y);
      printf("rootx, rooty: %d, %d\n", report.xbutton.x_root,
             report.xbutton.y_root);
      printf("state       : 0x%x\n", report.xbutton.state);
      printf("button      : %d\n", report.xbutton.button);
      printf("same_screen : %d\n", report.xbutton.same_screen);
      printf("---\n");
      break;
    case MotionNotify:
      printf("motion\n");
      printf("type        : %d\n", report.xmotion.type);
      printf("serial      : %d\n", report.xmotion.serial);
      printf("send_event  : %d\n", report.xmotion.send_event);
      printf("display     : 0x%x\n", report.xmotion.display);
      printf("window      : 0x%x\n", report.xmotion.window);
      printf("root        : 0x%x\n", report.xmotion.root);
      printf("subwindow   : 0x%x\n", report.xmotion.subwindow);
      printf("time        : %d\n", report.xmotion.time);
      printf("x, y        : %d, %d\n", report.xmotion.x, report.xmotion.y);
      printf("rootx, rooty: %d, %d\n", report.xmotion.x_root,
             report.xmotion.y_root);
      printf("state       : 0x%x\n", report.xmotion.state);
      printf("is_hint     : %d\n", report.xmotion.is_hint);
      printf("same_screen : %d\n", report.xmotion.same_screen);
      printf("---\n");
      if (XGrabPointer(display, win, False, ButtonReleaseMask, GrabModeAsync,
                       GrabModeAsync, None, None,
                       report.xmotion.time) == GrabSuccess)
        printf("GrabSuccess\n");
      else
        printf("GrabFail\n");
      break;
    case ButtonRelease:
      XUngrabPointer(display, report.xbutton.time);
      break;
    case FocusIn:
      switch (report.xfocus.mode) {
      case NotifyNormal:
        mode = "NotifyNormal";
        break;
      case NotifyGrab:
        mode = "NotifyGrab";
        break;
      case NotifyUngrab:
        mode = "NotifyUngrab";
        break;
      }
      switch (report.xfocus.detail) {
      case NotifyAncestor:
        detail = "NotifyAncestor";
        break;
      case NotifyVirtual:
        detail = "NotifyVirtual";
        break;
      case NotifyInferior:
        detail = "NotifyInferior";
        break;
      case NotifyNonlinear:
        detail = "NotifyNonlinear";
        break;
      case NotifyNonlinearVirtual:
        detail = "NotifyNonlinearVirtual";
        break;
      case NotifyPointer:
        detail = "NotifyPointer";
        break;
      case NotifyPointerRoot:
        detail = "NotifyPointerRoot";
        break;
      case NotifyDetailNone:
        detail = "NotifyDetailNone";
        break;
      }
      printf("focusin\n");
      printf("type      : %d\n", report.xfocus.type);
      printf("serial    : %d\n", report.xfocus.serial);
      printf("send_event: %d\n", report.xfocus.send_event);
      printf("display   : 0x%x\n", report.xfocus.display);
      printf("window    : 0x%x\n", report.xfocus.window);
      printf("mode      : %s\n", mode);
      printf("detail    : %s\n", detail);
      printf("---\n");
      break;
    case FocusOut:
      switch (report.xfocus.mode) {
      case NotifyNormal:
        mode = "NotifyNormal";
        break;
      case NotifyGrab:
        mode = "NotifyGrab";
        break;
      case NotifyUngrab:
        mode = "NotifyUngrab";
        break;
      }
      switch (report.xfocus.detail) {
      case NotifyAncestor:
        detail = "NotifyAncestor";
        break;
      case NotifyVirtual:
        detail = "NotifyVirtual";
        break;
      case NotifyInferior:
        detail = "NotifyInferior";
        break;
      case NotifyNonlinear:
        detail = "NotifyNonlinear";
        break;
      case NotifyNonlinearVirtual:
        detail = "NotifyNonlinearVirtual";
        break;
      case NotifyPointer:
        detail = "NotifyPointer";
        break;
      case NotifyPointerRoot:
        detail = "NotifyPointerRoot";
        break;
      case NotifyDetailNone:
        detail = "NotifyDetailNone";
        break;
      }
      printf("focusout\n");
      printf("type      : %d\n", report.xfocus.type);
      printf("serial    : %d\n", report.xfocus.serial);
      printf("send_event: %d\n", report.xfocus.send_event);
      printf("display   : 0x%x\n", report.xfocus.display);
      printf("window    : 0x%x\n", report.xfocus.window);
      printf("mode      : %s\n", mode);
      printf("detail    : %s\n", detail);
      printf("---\n");
      break;
    case EnterNotify:
      switch (report.xcrossing.mode) {
      case NotifyNormal:
        mode = "NotifyNormal";
        break;
      case NotifyGrab:
        mode = "NotifyGrab";
        break;
      case NotifyUngrab:
        mode = "NotifyUngrab";
        break;
      }
      switch (report.xcrossing.detail) {
      case NotifyAncestor:
        detail = "NotifyAncestor";
        break;
      case NotifyVirtual:
        detail = "NotifyVirtual";
        break;
      case NotifyInferior:
        detail = "NotifyInferior";
        break;
      case NotifyNonlinear:
        detail = "NotifyNonlinear";
        break;
      case NotifyNonlinearVirtual:
        detail = "NotifyNonlinearVirtual";
        break;
      case NotifyPointer:
        detail = "NotifyPointer";
        break;
      case NotifyPointerRoot:
        detail = "NotifyPointerRoot";
        break;
      case NotifyDetailNone:
        detail = "NotifyDetailNone";
        break;
      }
      printf("enternotify\n");
      printf("type      : %d\n", report.xcrossing.type);
      printf("serial    : %d\n", report.xcrossing.serial);
      printf("send_event: %d\n", report.xcrossing.send_event);
      printf("display   : 0x%x\n", report.xcrossing.display);
      printf("window    : 0x%x\n", report.xcrossing.window);
      printf("mode      : %s\n", mode);
      printf("detail    : %s\n", detail);
      printf("---\n");
      break;
    case LeaveNotify:
      switch (report.xcrossing.mode) {
      case NotifyNormal:
        mode = "NotifyNormal";
        break;
      case NotifyGrab:
        mode = "NotifyGrab";
        break;
      case NotifyUngrab:
        mode = "NotifyUngrab";
        break;
      }
      switch (report.xcrossing.detail) {
      case NotifyAncestor:
        detail = "NotifyAncestor";
        break;
      case NotifyVirtual:
        detail = "NotifyVirtual";
        break;
      case NotifyInferior:
        detail = "NotifyInferior";
        break;
      case NotifyNonlinear:
        detail = "NotifyNonlinear";
        break;
      case NotifyNonlinearVirtual:
        detail = "NotifyNonlinearVirtual";
        break;
      case NotifyPointer:
        detail = "NotifyPointer";
        break;
      case NotifyPointerRoot:
        detail = "NotifyPointerRoot";
        break;
      case NotifyDetailNone:
        detail = "NotifyDetailNone";
        break;
      }
      printf("leavenotify\n");
      printf("type      : %d\n", report.xcrossing.type);
      printf("serial    : %d\n", report.xcrossing.serial);
      printf("send_event: %d\n", report.xcrossing.send_event);
      printf("display   : 0x%x\n", report.xcrossing.display);
      printf("window    : 0x%x\n", report.xcrossing.window);
      printf("mode      : %s\n", mode);
      printf("detail    : %s\n", detail);
      printf("---\n");
      break;
    }
  }
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x258,%rsp
movl   $0x0,-0xc(%rbp)
movl   $0x32,-0x19c(%rbp)
movl   $0x32,-0x1a0(%rbp)
movl   $0x64,-0x1a4(%rbp)
movl   $0x190,-0x1a8(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1060 <XOpenDisplay@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1244 <main+0x74>
mov    0x2d8e(%rip),%rax
mov    (%rax),%edi
lea    0xe99(%rip),%rsi
call   1070 <fprintf@plt>
xor    %eax,%eax
add    $0x258,%rsp
pop    %rbx
pop    %rbp
ret
mov    -0x18(%rbp),%rax
mov    %rax,-0x1e8(%rbp)
mov    -0x18(%rbp),%rdi
xor    %esi,%esi
call   10b0 <RootWindow@plt>
mov    -0x1e8(%rbp),%rdi
mov    %eax,%esi
mov    -0x19c(%rbp),%edx
mov    -0x1a0(%rbp),%ecx
mov    -0x1a8(%rbp),%r8d
mov    -0x1a4(%rbp),%r9d
mov    0x2d1c(%rip),%rax
mov    (%rax),%r11d
mov    0x2d12(%rip),%rax
mov    (%rax),%r10d
mov    0x2d08(%rip),%rax
mov    (%rax),%eax
xor    %ebx,%ebx
xor    %ebx,%ebx
movl   $0xa,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
movl   $0x0,0x20(%rsp)
movq   $0x0,0x28(%rsp)
call   10a0 <XCreateWindow@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x1a8(%rbp),%r8d
sub    $0x14,%r8d
mov    -0x1a4(%rbp),%r9d
sub    $0x14,%r9d
mov    0x2cb0(%rip),%rax
mov    (%rax),%r11d
mov    0x2ca6(%rip),%rax
mov    (%rax),%r10d
mov    0x2c9c(%rip),%rax
mov    (%rax),%eax
mov    $0xa,%ecx
xor    %edx,%edx
xor    %edx,%edx
mov    %ecx,%edx
movl   $0x0,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
movl   $0x0,0x20(%rsp)
movq   $0x0,0x28(%rsp)
call   10a0 <XCreateWindow@plt>
mov    %eax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x1e0(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x1d4(%rbp)
mov    -0x18(%rbp),%rdi
xor    %esi,%esi
call   1040 <WhitePixel@plt>
mov    -0x1e0(%rbp),%rdi
mov    -0x1d4(%rbp),%esi
mov    %eax,%edx
call   10f0 <XSetWindowBackground@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x1d0(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x1c4(%rbp)
mov    -0x18(%rbp),%rdi
xor    %esi,%esi
call   10d0 <BlackPixel@plt>
mov    -0x1d0(%rbp),%rdi
mov    -0x1c4(%rbp),%esi
mov    %eax,%edx
call   10f0 <XSetWindowBackground@plt>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    0x2c2d(%rip),%rax
mov    (%rax),%edx
mov    0x2c34(%rip),%rax
or     (%rax),%edx
mov    0x2be3(%rip),%rax
or     (%rax),%edx
call   10c0 <XSelectInput@plt>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
call   10e0 <XMapWindow@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%esi
call   10e0 <XMapWindow@plt>
mov    -0x18(%rbp),%rdi
lea    -0xd8(%rbp),%rsi
call   1090 <XNextEvent@plt>
mov    -0xd8(%rbp),%eax
add    $0xffffff75,%eax
mov    %eax,%ecx
mov    %rcx,-0x1f0(%rbp)
sub    $0x6,%eax
ja     1e97 <main+0xcc7>
mov    -0x1f0(%rbp),%rax
lea    0xbe1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xcbe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x9c(%rbp),%esi
lea    0xcb8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x98(%rbp),%esi
lea    0xcb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x94(%rbp),%esi
lea    0xcb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x90(%rbp),%esi
lea    0xcb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8c(%rbp),%esi
lea    0xcb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x88(%rbp),%esi
lea    0xcb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x84(%rbp),%esi
lea    0xcb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x80(%rbp),%esi
lea    0xcb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x7c(%rbp),%esi
mov    -0x78(%rbp),%edx
lea    0xcb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x74(%rbp),%esi
mov    -0x70(%rbp),%edx
lea    0xcb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x6c(%rbp),%esi
lea    0xcba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x68(%rbp),%esi
lea    0xcbd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x64(%rbp),%esi
lea    0xcbe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcc2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1e97 <main+0xcc7>
lea    0xcb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x60(%rbp),%esi
lea    0xba2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x5c(%rbp),%esi
lea    0xba3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%esi
lea    0xba4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x54(%rbp),%esi
lea    0xba5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x50(%rbp),%esi
lea    0xba8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4c(%rbp),%esi
lea    0xbab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x48(%rbp),%esi
lea    0xbae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x44(%rbp),%esi
lea    0xbb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x40(%rbp),%esi
mov    -0x3c(%rbp),%edx
lea    0xbaf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%esi
mov    -0x34(%rbp),%edx
lea    0xbb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%esi
lea    0xbb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x2c(%rbp),%esi
lea    0xbea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%esi
lea    0xbba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xbbe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    0x298a(%rip),%rax
mov    (%rax),%edx
mov    0x2959(%rip),%rax
mov    (%rax),%ecx
mov    0x2960(%rip),%rax
mov    (%rax),%r8d
mov    0x2956(%rip),%rax
mov    (%rax),%r9d
mov    0x295c(%rip),%rax
mov    (%rax),%r11d
mov    0x2952(%rip),%rax
mov    (%rax),%r10d
mov    -0x44(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1050 <XGrabPointer@plt>
mov    0x28fb(%rip),%rcx
cmp    (%rcx),%eax
jne    16b8 <main+0x4e8>
lea    0xb6a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    16c6 <main+0x4f6>
lea    0xb64(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1e97 <main+0xcc7>
mov    -0x18(%rbp),%rdi
mov    -0x80(%rbp),%esi
call   1080 <XUngrabPointer@plt>
jmp    1e97 <main+0xcc7>
mov    -0xa0(%rbp),%eax
mov    %eax,-0x1f4(%rbp)
sub    $0x81,%eax
je     174a <main+0x57a>
jmp    16f8 <main+0x528>
mov    -0x1f4(%rbp),%eax
sub    $0x84,%eax
je     1724 <main+0x554>
jmp    170e <main+0x53e>
mov    -0x1f4(%rbp),%eax
sub    $0x88,%eax
je     1737 <main+0x567>
jmp    1758 <main+0x588>
lea    0xb02(%rip),%rax
mov    %rax,-0x1b8(%rbp)
jmp    1758 <main+0x588>
lea    0xafc(%rip),%rax
mov    %rax,-0x1b8(%rbp)
jmp    1758 <main+0x588>
lea    0xaf4(%rip),%rax
mov    %rax,-0x1b8(%rbp)
mov    -0xa4(%rbp),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x200(%rbp)
sub    $0xa,%eax
ja     181d <main+0x64d>
mov    -0x200(%rbp),%rax
lea    0x91f(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xac1(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    181d <main+0x64d>
lea    0xabd(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    181d <main+0x64d>
lea    0xab8(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    181d <main+0x64d>
lea    0xab4(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    181d <main+0x64d>
lea    0xab1(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    181d <main+0x64d>
lea    0xab5(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    181d <main+0x64d>
lea    0xab0(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    181d <main+0x64d>
lea    0xaaf(%rip),%rax
mov    %rax,-0x1c0(%rbp)
lea    0xab2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xb8(%rbp),%esi
lea    0xaa7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xb4(%rbp),%esi
lea    0xaa3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xb0(%rbp),%esi
lea    0xa9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xac(%rbp),%esi
lea    0xa9b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xa8(%rbp),%esi
lea    0xa99(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1b8(%rbp),%rsi
lea    0xa96(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c0(%rbp),%rsi
lea    0xa91(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x937(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1e97 <main+0xcc7>
mov    -0xa0(%rbp),%eax
mov    %eax,-0x204(%rbp)
sub    $0x81,%eax
je     193a <main+0x76a>
jmp    18e8 <main+0x718>
mov    -0x204(%rbp),%eax
sub    $0x84,%eax
je     1914 <main+0x744>
jmp    18fe <main+0x72e>
mov    -0x204(%rbp),%eax
sub    $0x88,%eax
je     1927 <main+0x757>
jmp    1948 <main+0x778>
lea    0x912(%rip),%rax
mov    %rax,-0x1b8(%rbp)
jmp    1948 <main+0x778>
lea    0x90c(%rip),%rax
mov    %rax,-0x1b8(%rbp)
jmp    1948 <main+0x778>
lea    0x904(%rip),%rax
mov    %rax,-0x1b8(%rbp)
mov    -0xa4(%rbp),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x210(%rbp)
sub    $0xa,%eax
ja     1a0d <main+0x83d>
mov    -0x210(%rbp),%rax
lea    0x703(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x8d1(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1a0d <main+0x83d>
lea    0x8cd(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1a0d <main+0x83d>
lea    0x8c8(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1a0d <main+0x83d>
lea    0x8c4(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1a0d <main+0x83d>
lea    0x8c1(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1a0d <main+0x83d>
lea    0x8c5(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1a0d <main+0x83d>
lea    0x8c0(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1a0d <main+0x83d>
lea    0x8bf(%rip),%rax
mov    %rax,-0x1c0(%rbp)
lea    0x93f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xb8(%rbp),%esi
lea    0x8b7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xb4(%rbp),%esi
lea    0x8b3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xb0(%rbp),%esi
lea    0x8af(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xac(%rbp),%esi
lea    0x8ab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xa8(%rbp),%esi
lea    0x8a9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1b8(%rbp),%rsi
lea    0x8a6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c0(%rbp),%rsi
lea    0x8a1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x747(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1e97 <main+0xcc7>
mov    -0xbc(%rbp),%eax
mov    %eax,-0x214(%rbp)
sub    $0x81,%eax
je     1b2a <main+0x95a>
jmp    1ad8 <main+0x908>
mov    -0x214(%rbp),%eax
sub    $0x84,%eax
je     1b04 <main+0x934>
jmp    1aee <main+0x91e>
mov    -0x214(%rbp),%eax
sub    $0x88,%eax
je     1b17 <main+0x947>
jmp    1b38 <main+0x968>
lea    0x722(%rip),%rax
mov    %rax,-0x1b8(%rbp)
jmp    1b38 <main+0x968>
lea    0x71c(%rip),%rax
mov    %rax,-0x1b8(%rbp)
jmp    1b38 <main+0x968>
lea    0x714(%rip),%rax
mov    %rax,-0x1b8(%rbp)
mov    -0xc0(%rbp),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x220(%rbp)
sub    $0xa,%eax
ja     1bfd <main+0xa2d>
mov    -0x220(%rbp),%rax
lea    0x4e7(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x6e1(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1bfd <main+0xa2d>
lea    0x6dd(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1bfd <main+0xa2d>
lea    0x6d8(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1bfd <main+0xa2d>
lea    0x6d4(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1bfd <main+0xa2d>
lea    0x6d1(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1bfd <main+0xa2d>
lea    0x6d5(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1bfd <main+0xa2d>
lea    0x6d0(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1bfd <main+0xa2d>
lea    0x6cf(%rip),%rax
mov    %rax,-0x1c0(%rbp)
lea    0x759(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xd4(%rbp),%esi
lea    0x6c7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xd0(%rbp),%esi
lea    0x6c3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xcc(%rbp),%esi
lea    0x6bf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc8(%rbp),%esi
lea    0x6bb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc4(%rbp),%esi
lea    0x6b9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1b8(%rbp),%rsi
lea    0x6b6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c0(%rbp),%rsi
lea    0x6b1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x557(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1e97 <main+0xcc7>
mov    -0xbc(%rbp),%eax
mov    %eax,-0x224(%rbp)
sub    $0x81,%eax
je     1d1a <main+0xb4a>
jmp    1cc8 <main+0xaf8>
mov    -0x224(%rbp),%eax
sub    $0x84,%eax
je     1cf4 <main+0xb24>
jmp    1cde <main+0xb0e>
mov    -0x224(%rbp),%eax
sub    $0x88,%eax
je     1d07 <main+0xb37>
jmp    1d28 <main+0xb58>
lea    0x532(%rip),%rax
mov    %rax,-0x1b8(%rbp)
jmp    1d28 <main+0xb58>
lea    0x52c(%rip),%rax
mov    %rax,-0x1b8(%rbp)
jmp    1d28 <main+0xb58>
lea    0x524(%rip),%rax
mov    %rax,-0x1b8(%rbp)
mov    -0xc0(%rbp),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x230(%rbp)
sub    $0xa,%eax
ja     1ded <main+0xc1d>
mov    -0x230(%rbp),%rax
lea    0x2cb(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x4f1(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1ded <main+0xc1d>
lea    0x4ed(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1ded <main+0xc1d>
lea    0x4e8(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1ded <main+0xc1d>
lea    0x4e4(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1ded <main+0xc1d>
lea    0x4e1(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1ded <main+0xc1d>
lea    0x4e5(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1ded <main+0xc1d>
lea    0x4e0(%rip),%rax
mov    %rax,-0x1c0(%rbp)
jmp    1ded <main+0xc1d>
lea    0x4df(%rip),%rax
mov    %rax,-0x1c0(%rbp)
lea    0x576(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xd4(%rbp),%esi
lea    0x4d7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xd0(%rbp),%esi
lea    0x4d3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xcc(%rbp),%esi
lea    0x4cf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc8(%rbp),%esi
lea    0x4cb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc4(%rbp),%esi
lea    0x4c9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1b8(%rbp),%rsi
lea    0x4c6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c0(%rbp),%rsi
lea    0x4c1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x367(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13e4 <main+0x214>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc8,%rsp
xor    %edi,%edi
call   1070 <XOpenDisplay@plt>
test   %rax,%rax
je     1888 <main+0x6a8>
mov    %rax,%rbx
mov    %rax,%rdi
xor    %esi,%esi
call   10c0 <RootWindow@plt>
mov    0x2d8b(%rip),%r14
mov    (%r14),%ebp
mov    %rbx,%rdi
mov    %eax,%esi
mov    $0x32,%edx
mov    $0x32,%ecx
mov    $0x190,%r8d
mov    $0x64,%r9d
push   $0x0
push   $0x0
push   %rbp
push   %rbp
push   %rbp
push   $0xa
call   10b0 <XCreateWindow@plt>
add    $0x30,%rsp
mov    %eax,%ebp
mov    (%r14),%eax
mov    %rbx,%rdi
mov    %ebp,%esi
mov    $0xa,%edx
mov    $0xa,%ecx
mov    $0x17c,%r8d
mov    $0x50,%r9d
push   $0x0
push   $0x0
push   %rax
push   %rax
push   %rax
push   $0x0
call   10b0 <XCreateWindow@plt>
add    $0x30,%rsp
mov    %eax,%r14d
mov    %rbx,%rdi
xor    %esi,%esi
call   1050 <WhitePixel@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1100 <XSetWindowBackground@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   10e0 <BlackPixel@plt>
mov    %rbx,%rdi
mov    %r14d,%esi
mov    %eax,%edx
call   1100 <XSetWindowBackground@plt>
mov    0x2d32(%rip),%rax
mov    0x2d3b(%rip),%rcx
mov    (%rcx),%edx
or     (%rax),%edx
mov    0x2ce8(%rip),%rax
or     (%rax),%edx
mov    %rbx,%rdi
mov    %ebp,%esi
call   10d0 <XSelectInput@plt>
mov    %rbx,%rdi
mov    %ebp,0xc(%rsp)
mov    %ebp,%esi
call   10f0 <XMapWindow@plt>
mov    %rbx,%rdi
mov    %r14d,%esi
call   10f0 <XMapWindow@plt>
lea    0x10(%rsp),%r13
mov    $0xffffff75,%ebp
lea    0xd0a(%rip),%r12
jmp    138f <main+0x1af>
lea    0xf87(%rip),%rdi
call   1030 <puts@plt>
mov    0x30(%rsp),%esi
lea    0xee2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x34(%rsp),%esi
lea    0xee0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x38(%rsp),%esi
lea    0xede(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x3c(%rsp),%esi
lea    0xedc(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x40(%rsp),%esi
lea    0xedc(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee0(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xedf(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf30(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   10a0 <XNextEvent@plt>
mov    0x10(%rsp),%eax
add    %ebp,%eax
cmp    $0x6,%eax
ja     138f <main+0x1af>
movslq (%r12,%rax,4),%rax
add    %r12,%rax
jmp    *%rax
lea    0xedc(%rip),%rdi
call   1030 <puts@plt>
mov    0x88(%rsp),%esi
lea    0xc75(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8c(%rsp),%esi
lea    0xc72(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x90(%rsp),%esi
lea    0xc6f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x94(%rsp),%esi
lea    0xc6c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x98(%rsp),%esi
lea    0xc6b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x9c(%rsp),%esi
lea    0xc6a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xa0(%rsp),%esi
lea    0xc69(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xa4(%rsp),%esi
lea    0xc68(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xa8(%rsp),%esi
mov    0xac(%rsp),%edx
lea    0xc5e(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xb0(%rsp),%esi
mov    0xb4(%rsp),%edx
lea    0xc58(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xb8(%rsp),%esi
lea    0xc59(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xbc(%rsp),%esi
lea    0xc7c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc0(%rsp),%esi
lea    0xc55(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdda(%rip),%rdi
call   1030 <puts@plt>
mov    0x2aec(%rip),%rax
mov    (%rax),%edx
mov    0x2abb(%rip),%rax
mov    (%rax),%ecx
mov    0x2ac2(%rip),%rax
mov    (%rax),%r8d
mov    0x2ac8(%rip),%rax
mov    (%rax),%eax
mov    0xa4(%rsp),%ebp
sub    $0x8,%rsp
mov    %rbx,%rdi
mov    0x14(%rsp),%esi
mov    %r8d,%r9d
push   %rbp
push   %rax
push   %rax
call   1060 <XGrabPointer@plt>
add    $0x20,%rsp
mov    0x2a66(%rip),%rcx
cmp    (%rcx),%eax
jne    1724 <main+0x544>
lea    0xd60(%rip),%rdi
jmp    172b <main+0x54b>
mov    0x2c(%rsp),%eax
cmp    $0x81,%eax
je     173a <main+0x55a>
cmp    $0x88,%eax
je     1743 <main+0x563>
cmp    $0x84,%eax
jne    174a <main+0x56a>
lea    0xbd9(%rip),%r14
jmp    174a <main+0x56a>
mov    0x48(%rsp),%eax
cmp    $0x81,%eax
je     1779 <main+0x599>
cmp    $0x88,%eax
je     1782 <main+0x5a2>
cmp    $0x84,%eax
jne    1789 <main+0x5a9>
lea    0xba8(%rip),%r14
jmp    1789 <main+0x5a9>
mov    0x48(%rsp),%eax
cmp    $0x81,%eax
je     17b8 <main+0x5d8>
cmp    $0x88,%eax
je     17c1 <main+0x5e1>
cmp    $0x84,%eax
jne    17c8 <main+0x5e8>
lea    0xb77(%rip),%r14
jmp    17c8 <main+0x5e8>
mov    0x2c(%rsp),%eax
cmp    $0x81,%eax
je     17f8 <main+0x618>
cmp    $0x88,%eax
je     1801 <main+0x621>
cmp    $0x84,%eax
jne    1808 <main+0x628>
lea    0xb46(%rip),%r14
jmp    1808 <main+0x628>
mov    0x68(%rsp),%esi
mov    %rbx,%rdi
call   1090 <XUngrabPointer@plt>
jmp    138f <main+0x1af>
lea    0xc8b(%rip),%rdi
call   1030 <puts@plt>
mov    0x4c(%rsp),%esi
lea    0xa0b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x50(%rsp),%esi
lea    0xa0b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x54(%rsp),%esi
lea    0xa0b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x58(%rsp),%esi
lea    0xa0b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x5c(%rsp),%esi
lea    0xa0d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x60(%rsp),%esi
lea    0xa0f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x64(%rsp),%esi
lea    0xa11(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x68(%rsp),%esi
lea    0xa13(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x6c(%rsp),%esi
mov    0x70(%rsp),%edx
lea    0xa0f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x74(%rsp),%esi
mov    0x78(%rsp),%edx
lea    0xa0f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x7c(%rsp),%esi
lea    0xa13(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x80(%rsp),%esi
lea    0xa12(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x84(%rsp),%esi
lea    0xa0f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1383 <main+0x1a3>
lea    0xb6d(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffff75,%ebp
jmp    138f <main+0x1af>
lea    0xa22(%rip),%r14
jmp    174a <main+0x56a>
lea    0xa0e(%rip),%r14
mov    0x28(%rsp),%eax
add    $0xffffff80,%eax
cmp    $0xa,%eax
ja     176d <main+0x58d>
mov    $0x6ed,%ecx
bt     %eax,%ecx
jae    176d <main+0x58d>
cltq
lea    0x260f(%rip),%rcx
mov    (%rcx,%rax,8),%r15
lea    0xaf4(%rip),%rdi
jmp    1832 <main+0x652>
lea    0x9e3(%rip),%r14
jmp    1789 <main+0x5a9>
lea    0x9cf(%rip),%r14
mov    0x44(%rsp),%eax
add    $0xffffff80,%eax
cmp    $0xa,%eax
ja     17ac <main+0x5cc>
mov    $0x6ed,%ecx
bt     %eax,%ecx
jae    17ac <main+0x5cc>
cltq
lea    0x25d0(%rip),%rcx
mov    (%rcx,%rax,8),%r15
lea    0xacd(%rip),%rdi
jmp    1302 <main+0x122>
lea    0x9a4(%rip),%r14
jmp    17c8 <main+0x5e8>
lea    0x990(%rip),%r14
mov    0x44(%rsp),%eax
add    $0xffffff80,%eax
cmp    $0xa,%eax
ja     12fb <main+0x11b>
mov    $0x6ed,%ecx
bt     %eax,%ecx
jae    12fb <main+0x11b>
cltq
lea    0x2589(%rip),%rcx
mov    (%rcx,%rax,8),%r15
jmp    12fb <main+0x11b>
lea    0x964(%rip),%r14
jmp    1808 <main+0x628>
lea    0x950(%rip),%r14
mov    0x28(%rsp),%eax
add    $0xffffff80,%eax
cmp    $0xa,%eax
ja     182b <main+0x64b>
mov    $0x6ed,%ecx
bt     %eax,%ecx
jae    182b <main+0x64b>
cltq
lea    0x2551(%rip),%rcx
mov    (%rcx,%rax,8),%r15
lea    0xa42(%rip),%rdi
call   1030 <puts@plt>
mov    0x14(%rsp),%esi
lea    0x9b2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%esi
lea    0x9b0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1c(%rsp),%esi
lea    0x9ae(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp),%esi
lea    0x9ac(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x24(%rsp),%esi
jmp    1353 <main+0x173>
mov    0x2729(%rip),%rax
mov    (%rax),%edi
lea    0x784(%rip),%rsi
call   1080 <fprintf@plt>
xor    %eax,%eax
add    $0xc8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.TYPE_11__ = type { i32, %struct.TYPE_10__, %struct.TYPE_9__, %struct.TYPE_8__, %struct.TYPE_7__ }
%struct.TYPE_10__ = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.TYPE_9__ = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.TYPE_8__ = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.TYPE_7__ = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
@stderr = global i32 0
@.str = [33 x i8] c"couldn't connect to X server :0\0A\00"
@CopyFromParent = global i32 0
@FocusChangeMask = global i32 0
@EnterWindowMask = global i32 0
@LeaveWindowMask = global i32 0
@.str.1 = [14 x i8] c"button press\0A\00"
@.str.2 = [18 x i8] c"type : %d\0A\00"
@.str.3 = [18 x i8] c"serial : %d\0A\00"
@.str.4 = [18 x i8] c"send_event : %d\0A\00"
@.str.5 = [20 x i8] c"display : 0x%x\0A\00"
@.str.6 = [20 x i8] c"window : 0x%x\0A\00"
@.str.7 = [20 x i8] c"root : 0x%x\0A\00"
@.str.8 = [20 x i8] c"subwindow : 0x%x\0A\00"
@.str.9 = [18 x i8] c"time : %d\0A\00"
@.str.10 = [22 x i8] c"x, y : %d, %d\0A\00"
@.str.11 = [22 x i8] c"rootx, rooty: %d, %d\0A\00"
@.str.12 = [20 x i8] c"state : 0x%x\0A\00"
@.str.13 = [18 x i8] c"button : %d\0A\00"
@.str.14 = [18 x i8] c"same_screen : %d\0A\00"
@.str.15 = [5 x i8] c"---\0A\00"
@.str.16 = [8 x i8] c"motion\0A\00"
@.str.17 = [18 x i8] c"is_hint : %d\0A\00"
@False = global i32 0
@ButtonReleaseMask = global i32 0
@GrabModeAsync = global i32 0
@None = global i32 0
@GrabSuccess = global i32 0
@.str.18 = [13 x i8] c"GrabSuccess\0A\00"
@.str.19 = [10 x i8] c"GrabFail\0A\00"
@.str.20 = [13 x i8] c"NotifyNormal\00"
@.str.21 = [11 x i8] c"NotifyGrab\00"
@.str.22 = [13 x i8] c"NotifyUngrab\00"
@.str.23 = [15 x i8] c"NotifyAncestor\00"
@.str.24 = [14 x i8] c"NotifyVirtual\00"
@.str.25 = [15 x i8] c"NotifyInferior\00"
@.str.26 = [16 x i8] c"NotifyNonlinear\00"
@.str.27 = [23 x i8] c"NotifyNonlinearVirtual\00"
@.str.28 = [14 x i8] c"NotifyPointer\00"
@.str.29 = [18 x i8] c"NotifyPointerRoot\00"
@.str.30 = [17 x i8] c"NotifyDetailNone\00"
@.str.31 = [9 x i8] c"focusin\0A\00"
@.str.32 = [16 x i8] c"type : %d\0A\00"
@.str.33 = [16 x i8] c"serial : %d\0A\00"
@.str.34 = [16 x i8] c"send_event: %d\0A\00"
@.str.35 = [18 x i8] c"display : 0x%x\0A\00"
@.str.36 = [18 x i8] c"window : 0x%x\0A\00"
@.str.37 = [16 x i8] c"mode : %s\0A\00"
@.str.38 = [16 x i8] c"detail : %s\0A\00"
@.str.39 = [10 x i8] c"focusout\0A\00"
@.str.40 = [13 x i8] c"enternotify\0A\00"
@.str.41 = [13 x i8] c"leavenotify\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
%5 = alloca %struct.TYPE_11__
%6 = alloca i32
%7 = alloca i32
%8 = alloca %struct.TYPE_11__
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8*
%15 = alloca i8*
store i32 0, i32* %1
store i32 50, i32* %9
store i32 50, i32* %10
store i32 100, i32* %11
store i32 400, i32* %12
%16 = call i32* @XOpenDisplay(i32* null)
store i32* %16, i32** %2
%17 = load i32*, i32** %2
%18 = icmp eq i32* %17, null
br i1 %18, label %19, label %22
19: ; preds = %0
%20 = load i32, i32* @stderr
%21 = call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
ret i32 0
22: ; preds = %0
%23 = load i32*, i32** %2
%24 = load i32*, i32** %2
%25 = call i32 @RootWindow(i32* %24, i32 0)
%26 = load i32, i32* %9
%27 = load i32, i32* %10
%28 = load i32, i32* %12
%29 = load i32, i32* %11
%30 = load i32, i32* @CopyFromParent
%31 = load i32, i32* @CopyFromParent
%32 = load i32, i32* @CopyFromParent
%33 = call i32 @XCreateWindow(i32* %23, i32 %25, i32 %26, i32 %27, i32 %28, i32 %29, i32 10, i32 %30, i32 %31, i32 %32, i32 0, i32* null)
store i32 %33, i32* %3
%34 = load i32*, i32** %2
%35 = load i32, i32* %3
%36 = load i32, i32* %12
%37 = sub nsw i32 %36, 20
%38 = load i32, i32* %11
%39 = sub nsw i32 %38, 20
%40 = load i32, i32* @CopyFromParent
%41 = load i32, i32* @CopyFromParent
%42 = load i32, i32* @CopyFromParent
%43 = call i32 @XCreateWindow(i32* %34, i32 %35, i32 10, i32 10, i32 %37, i32 %39, i32 0, i32 %40, i32 %41, i32 %42, i32 0, i32* null)
store i32 %43, i32* %4
%44 = load i32*, i32** %2
%45 = load i32, i32* %3
%46 = load i32*, i32** %2
%47 = call i32 @WhitePixel(i32* %46, i32 0)
%48 = call i32 @XSetWindowBackground(i32* %44, i32 %45, i32 %47)
%49 = load i32*, i32** %2
%50 = load i32, i32* %4
%51 = load i32*, i32** %2
%52 = call i32 @BlackPixel(i32* %51, i32 0)
%53 = call i32 @XSetWindowBackground(i32* %49, i32 %50, i32 %52)
%54 = load i32*, i32** %2
%55 = load i32, i32* %3
%56 = load i32, i32* @FocusChangeMask
%57 = load i32, i32* @EnterWindowMask
%58 = or i32 %56, %57
%59 = load i32, i32* @LeaveWindowMask
%60 = or i32 %58, %59
%61 = call i32 @XSelectInput(i32* %54, i32 %55, i32 %60)
%62 = load i32*, i32** %2
%63 = load i32, i32* %3
%64 = call i32 @XMapWindow(i32* %62, i32 %63)
%65 = load i32*, i32** %2
%66 = load i32, i32* %4
%67 = call i32 @XMapWindow(i32* %65, i32 %66)
br label %68
68: ; preds = %22, %404
%69 = load i32*, i32** %2
%70 = call i32 @XNextEvent(i32* %69, %struct.TYPE_11__* %5)
%71 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 0
%72 = load i32, i32* %71
switch i32 %72, label %404 [
i32 145, label %73
i32 139, label %134
i32 144, label %214
i32 142, label %220
i32 141, label %266
i32 143, label %312
i32 140, label %358
]
73: ; preds = %68
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%75 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 3
%76 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %75, i32 0, i32 0
%77 = load i32, i32* %76
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %77)
%79 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 3
%80 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %79, i32 0, i32 1
%81 = load i32, i32* %80
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %81)
%83 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 3
%84 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %83, i32 0, i32 2
%85 = load i32, i32* %84
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 %85)
%87 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 3
%88 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %87, i32 0, i32 3
%89 = load i32, i32* %88
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i32 %89)
%91 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 3
%92 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %91, i32 0, i32 4
%93 = load i32, i32* %92
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 %93)
%95 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 3
%96 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %95, i32 0, i32 5
%97 = load i32, i32* %96
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %97)
%99 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 3
%100 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %99, i32 0, i32 6
%101 = load i32, i32* %100
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 %101)
%103 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 3
%104 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %103, i32 0, i32 7
%105 = load i32, i32* %104
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 %105)
%107 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 3
%108 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %107, i32 0, i32 8
%109 = load i32, i32* %108
%110 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 3
%111 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %110, i32 0, i32 9
%112 = load i32, i32* %111
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0), i32 %109, i32 %112)
%114 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 3
%115 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %114, i32 0, i32 10
%116 = load i32, i32* %115
%117 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 3
%118 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %117, i32 0, i32 11
%119 = load i32, i32* %118
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i32 %116, i32 %119)
%121 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 3
%122 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %121, i32 0, i32 12
%123 = load i32, i32* %122
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i32 %123)
%125 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 3
%126 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %125, i32 0, i32 13
%127 = load i32, i32* %126
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0), i32 %127)
%129 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 3
%130 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %129, i32 0, i32 14
%131 = load i32, i32* %130
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0), i32 %131)
%133 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
br label %404
134: ; preds = %68
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
%136 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 4
%137 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %136, i32 0, i32 0
%138 = load i32, i32* %137
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %138)
%140 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 4
%141 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %140, i32 0, i32 1
%142 = load i32, i32* %141
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %142)
%144 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 4
%145 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %144, i32 0, i32 2
%146 = load i32, i32* %145
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 %146)
%148 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 4
%149 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %148, i32 0, i32 3
%150 = load i32, i32* %149
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i32 %150)
%152 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 4
%153 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %152, i32 0, i32 4
%154 = load i32, i32* %153
%155 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 %154)
%156 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 4
%157 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %156, i32 0, i32 5
%158 = load i32, i32* %157
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %158)
%160 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 4
%161 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %160, i32 0, i32 6
%162 = load i32, i32* %161
%163 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 %162)
%164 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 4
%165 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %164, i32 0, i32 7
%166 = load i32, i32* %165
%167 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 %166)
%168 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 4
%169 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %168, i32 0, i32 8
%170 = load i32, i32* %169
%171 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 4
%172 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %171, i32 0, i32 9
%173 = load i32, i32* %172
%174 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0), i32 %170, i32 %173)
%175 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 4
%176 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %175, i32 0, i32 10
%177 = load i32, i32* %176
%178 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 4
%179 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %178, i32 0, i32 11
%180 = load i32, i32* %179
%181 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i32 %177, i32 %180)
%182 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 4
%183 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %182, i32 0, i32 12
%184 = load i32, i32* %183
%185 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i32 %184)
%186 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 4
%187 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %186, i32 0, i32 13
%188 = load i32, i32* %187
%189 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0), i32 %188)
%190 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 4
%191 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %190, i32 0, i32 14
%192 = load i32, i32* %191
%193 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0), i32 %192)
%194 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%195 = load i32*, i32** %2
%196 = load i32, i32* %3
%197 = load i32, i32* @False
%198 = load i32, i32* @ButtonReleaseMask
%199 = load i32, i32* @GrabModeAsync
%200 = load i32, i32* @GrabModeAsync
%201 = load i32, i32* @None
%202 = load i32, i32* @None
%203 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 4
%204 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %203, i32 0, i32 7
%205 = load i32, i32* %204
%206 = call i32 @XGrabPointer(i32* %195, i32 %196, i32 %197, i32 %198, i32 %199, i32 %200, i32 %201, i32 %202, i32 %205)
%207 = load i32, i32* @GrabSuccess
%208 = icmp eq i32 %206, %207
br i1 %208, label %209, label %211
209: ; preds = %134
%210 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0))
br label %213
211: ; preds = %134
%212 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0))
br label %213
213: ; preds = %211, %209
br label %404
214: ; preds = %68
%215 = load i32*, i32** %2
%216 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 3
%217 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %216, i32 0, i32 7
%218 = load i32, i32* %217
%219 = call i32 @XUngrabPointer(i32* %215, i32 %218)
br label %404
220: ; preds = %68
%221 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 2
%222 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %221, i32 0, i32 6
%223 = load i32, i32* %222
switch i32 %223, label %227 [
i32 132, label %224
i32 136, label %225
i32 129, label %226
]
224: ; preds = %220
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i8** %14
br label %227
225: ; preds = %220
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i64 0, i64 0), i8** %14
br label %227
226: ; preds = %220
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.22, i64 0, i64 0), i8** %14
br label %227
227: ; preds = %220, %226, %225, %224
%228 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 2
%229 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %228, i32 0, i32 5
%230 = load i32, i32* %229
switch i32 %230, label %239 [
i32 138, label %231
i32 128, label %232
i32 135, label %233
i32 134, label %234
i32 133, label %235
i32 131, label %236
i32 130, label %237
i32 137, label %238
]
231: ; preds = %227
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0), i8** %15
br label %239
232: ; preds = %227
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.24, i64 0, i64 0), i8** %15
br label %239
233: ; preds = %227
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0), i8** %15
br label %239
234: ; preds = %227
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0), i8** %15
br label %239
235: ; preds = %227
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.27, i64 0, i64 0), i8** %15
br label %239
236: ; preds = %227
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.28, i64 0, i64 0), i8** %15
br label %239
237: ; preds = %227
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.29, i64 0, i64 0), i8** %15
br label %239
238: ; preds = %227
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.30, i64 0, i64 0), i8** %15
br label %239
239: ; preds = %227, %238, %237, %236, %235, %234, %233, %232, %231
%240 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.31, i64 0, i64 0))
%241 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 2
%242 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %241, i32 0, i32 0
%243 = load i32, i32* %242
%244 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.32, i64 0, i64 0), i32 %243)
%245 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 2
%246 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %245, i32 0, i32 1
%247 = load i32, i32* %246
%248 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.33, i64 0, i64 0), i32 %247)
%249 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 2
%250 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %249, i32 0, i32 2
%251 = load i32, i32* %250
%252 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.34, i64 0, i64 0), i32 %251)
%253 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 2
%254 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %253, i32 0, i32 3
%255 = load i32, i32* %254
%256 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.35, i64 0, i64 0), i32 %255)
%257 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 2
%258 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %257, i32 0, i32 4
%259 = load i32, i32* %258
%260 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.36, i64 0, i64 0), i32 %259)
%261 = load i8*, i8** %14
%262 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.37, i64 0, i64 0), i8* %261)
%263 = load i8*, i8** %15
%264 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.38, i64 0, i64 0), i8* %263)
%265 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
br label %404
266: ; preds = %68
%267 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 2
%268 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %267, i32 0, i32 6
%269 = load i32, i32* %268
switch i32 %269, label %273 [
i32 132, label %270
i32 136, label %271
i32 129, label %272
]
270: ; preds = %266
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i8** %14
br label %273
271: ; preds = %266
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i64 0, i64 0), i8** %14
br label %273
272: ; preds = %266
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.22, i64 0, i64 0), i8** %14
br label %273
273: ; preds = %266, %272, %271, %270
%274 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 2
%275 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %274, i32 0, i32 5
%276 = load i32, i32* %275
switch i32 %276, label %285 [
i32 138, label %277
i32 128, label %278
i32 135, label %279
i32 134, label %280
i32 133, label %281
i32 131, label %282
i32 130, label %283
i32 137, label %284
]
277: ; preds = %273
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0), i8** %15
br label %285
278: ; preds = %273
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.24, i64 0, i64 0), i8** %15
br label %285
279: ; preds = %273
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0), i8** %15
br label %285
280: ; preds = %273
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0), i8** %15
br label %285
281: ; preds = %273
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.27, i64 0, i64 0), i8** %15
br label %285
282: ; preds = %273
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.28, i64 0, i64 0), i8** %15
br label %285
283: ; preds = %273
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.29, i64 0, i64 0), i8** %15
br label %285
284: ; preds = %273
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.30, i64 0, i64 0), i8** %15
br label %285
285: ; preds = %273, %284, %283, %282, %281, %280, %279, %278, %277
%286 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.39, i64 0, i64 0))
%287 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 2
%288 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %287, i32 0, i32 0
%289 = load i32, i32* %288
%290 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.32, i64 0, i64 0), i32 %289)
%291 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 2
%292 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %291, i32 0, i32 1
%293 = load i32, i32* %292
%294 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.33, i64 0, i64 0), i32 %293)
%295 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 2
%296 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %295, i32 0, i32 2
%297 = load i32, i32* %296
%298 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.34, i64 0, i64 0), i32 %297)
%299 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 2
%300 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %299, i32 0, i32 3
%301 = load i32, i32* %300
%302 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.35, i64 0, i64 0), i32 %301)
%303 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 2
%304 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %303, i32 0, i32 4
%305 = load i32, i32* %304
%306 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.36, i64 0, i64 0), i32 %305)
%307 = load i8*, i8** %14
%308 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.37, i64 0, i64 0), i8* %307)
%309 = load i8*, i8** %15
%310 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.38, i64 0, i64 0), i8* %309)
%311 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
br label %404
312: ; preds = %68
%313 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 1
%314 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %313, i32 0, i32 6
%315 = load i32, i32* %314
switch i32 %315, label %319 [
i32 132, label %316
i32 136, label %317
i32 129, label %318
]
316: ; preds = %312
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i8** %14
br label %319
317: ; preds = %312
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i64 0, i64 0), i8** %14
br label %319
318: ; preds = %312
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.22, i64 0, i64 0), i8** %14
br label %319
319: ; preds = %312, %318, %317, %316
%320 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 1
%321 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %320, i32 0, i32 5
%322 = load i32, i32* %321
switch i32 %322, label %331 [
i32 138, label %323
i32 128, label %324
i32 135, label %325
i32 134, label %326
i32 133, label %327
i32 131, label %328
i32 130, label %329
i32 137, label %330
]
323: ; preds = %319
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0), i8** %15
br label %331
324: ; preds = %319
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.24, i64 0, i64 0), i8** %15
br label %331
325: ; preds = %319
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0), i8** %15
br label %331
326: ; preds = %319
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0), i8** %15
br label %331
327: ; preds = %319
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.27, i64 0, i64 0), i8** %15
br label %331
328: ; preds = %319
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.28, i64 0, i64 0), i8** %15
br label %331
329: ; preds = %319
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.29, i64 0, i64 0), i8** %15
br label %331
330: ; preds = %319
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.30, i64 0, i64 0), i8** %15
br label %331
331: ; preds = %319, %330, %329, %328, %327, %326, %325, %324, %323
%332 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.40, i64 0, i64 0))
%333 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 1
%334 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %333, i32 0, i32 0
%335 = load i32, i32* %334
%336 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.32, i64 0, i64 0), i32 %335)
%337 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 1
%338 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %337, i32 0, i32 1
%339 = load i32, i32* %338
%340 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.33, i64 0, i64 0), i32 %339)
%341 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 1
%342 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %341, i32 0, i32 2
%343 = load i32, i32* %342
%344 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.34, i64 0, i64 0), i32 %343)
%345 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 1
%346 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %345, i32 0, i32 3
%347 = load i32, i32* %346
%348 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.35, i64 0, i64 0), i32 %347)
%349 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 1
%350 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %349, i32 0, i32 4
%351 = load i32, i32* %350
%352 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.36, i64 0, i64 0), i32 %351)
%353 = load i8*, i8** %14
%354 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.37, i64 0, i64 0), i8* %353)
%355 = load i8*, i8** %15
%356 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.38, i64 0, i64 0), i8* %355)
%357 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
br label %404
358: ; preds = %68
%359 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 1
%360 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %359, i32 0, i32 6
%361 = load i32, i32* %360
switch i32 %361, label %365 [
i32 132, label %362
i32 136, label %363
i32 129, label %364
]
362: ; preds = %358
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i8** %14
br label %365
363: ; preds = %358
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i64 0, i64 0), i8** %14
br label %365
364: ; preds = %358
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.22, i64 0, i64 0), i8** %14
br label %365
365: ; preds = %358, %364, %363, %362
%366 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 1
%367 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %366, i32 0, i32 5
%368 = load i32, i32* %367
switch i32 %368, label %377 [
i32 138, label %369
i32 128, label %370
i32 135, label %371
i32 134, label %372
i32 133, label %373
i32 131, label %374
i32 130, label %375
i32 137, label %376
]
369: ; preds = %365
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0), i8** %15
br label %377
370: ; preds = %365
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.24, i64 0, i64 0), i8** %15
br label %377
371: ; preds = %365
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0), i8** %15
br label %377
372: ; preds = %365
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0), i8** %15
br label %377
373: ; preds = %365
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.27, i64 0, i64 0), i8** %15
br label %377
374: ; preds = %365
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.28, i64 0, i64 0), i8** %15
br label %377
375: ; preds = %365
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.29, i64 0, i64 0), i8** %15
br label %377
376: ; preds = %365
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.30, i64 0, i64 0), i8** %15
br label %377
377: ; preds = %365, %376, %375, %374, %373, %372, %371, %370, %369
%378 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.41, i64 0, i64 0))
%379 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 1
%380 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %379, i32 0, i32 0
%381 = load i32, i32* %380
%382 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.32, i64 0, i64 0), i32 %381)
%383 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 1
%384 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %383, i32 0, i32 1
%385 = load i32, i32* %384
%386 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.33, i64 0, i64 0), i32 %385)
%387 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 1
%388 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %387, i32 0, i32 2
%389 = load i32, i32* %388
%390 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.34, i64 0, i64 0), i32 %389)
%391 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 1
%392 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %391, i32 0, i32 3
%393 = load i32, i32* %392
%394 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.35, i64 0, i64 0), i32 %393)
%395 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %5, i32 0, i32 1
%396 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %395, i32 0, i32 4
%397 = load i32, i32* %396
%398 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.36, i64 0, i64 0), i32 %397)
%399 = load i8*, i8** %14
%400 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.37, i64 0, i64 0), i8* %399)
%401 = load i8*, i8** %15
%402 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.38, i64 0, i64 0), i8* %401)
%403 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
br label %404
404: ; preds = %68, %377, %331, %285, %239, %214, %213, %73
br label %68
}

LLVM IR (-O2):
%struct.TYPE_11__ = type { i32, %struct.TYPE_10__, %struct.TYPE_9__, %struct.TYPE_8__, %struct.TYPE_7__ }
%struct.TYPE_10__ = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.TYPE_9__ = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.TYPE_8__ = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.TYPE_7__ = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
@stderr = global i32 0
@.str = [33 x i8] c"couldn't connect to X server :0\0A\00"
@CopyFromParent = global i32 0
@FocusChangeMask = global i32 0
@EnterWindowMask = global i32 0
@LeaveWindowMask = global i32 0
@.str.2 = [18 x i8] c"type : %d\0A\00"
@.str.3 = [18 x i8] c"serial : %d\0A\00"
@.str.4 = [18 x i8] c"send_event : %d\0A\00"
@.str.5 = [20 x i8] c"display : 0x%x\0A\00"
@.str.6 = [20 x i8] c"window : 0x%x\0A\00"
@.str.7 = [20 x i8] c"root : 0x%x\0A\00"
@.str.8 = [20 x i8] c"subwindow : 0x%x\0A\00"
@.str.9 = [18 x i8] c"time : %d\0A\00"
@.str.10 = [22 x i8] c"x, y : %d, %d\0A\00"
@.str.11 = [22 x i8] c"rootx, rooty: %d, %d\0A\00"
@.str.12 = [20 x i8] c"state : 0x%x\0A\00"
@.str.13 = [18 x i8] c"button : %d\0A\00"
@.str.14 = [18 x i8] c"same_screen : %d\0A\00"
@.str.17 = [18 x i8] c"is_hint : %d\0A\00"
@False = global i32 0
@ButtonReleaseMask = global i32 0
@GrabModeAsync = global i32 0
@None = global i32 0
@GrabSuccess = global i32 0
@.str.20 = [13 x i8] c"NotifyNormal\00"
@.str.21 = [11 x i8] c"NotifyGrab\00"
@.str.22 = [13 x i8] c"NotifyUngrab\00"
@.str.23 = [15 x i8] c"NotifyAncestor\00"
@.str.24 = [14 x i8] c"NotifyVirtual\00"
@.str.25 = [15 x i8] c"NotifyInferior\00"
@.str.26 = [16 x i8] c"NotifyNonlinear\00"
@.str.27 = [23 x i8] c"NotifyNonlinearVirtual\00"
@.str.28 = [14 x i8] c"NotifyPointer\00"
@.str.29 = [18 x i8] c"NotifyPointerRoot\00"
@.str.30 = [17 x i8] c"NotifyDetailNone\00"
@.str.32 = [16 x i8] c"type : %d\0A\00"
@.str.33 = [16 x i8] c"serial : %d\0A\00"
@.str.34 = [16 x i8] c"send_event: %d\0A\00"
@.str.35 = [18 x i8] c"display : 0x%x\0A\00"
@.str.36 = [18 x i8] c"window : 0x%x\0A\00"
@.str.37 = [16 x i8] c"mode : %s\0A\00"
@.str.38 = [16 x i8] c"detail : %s\0A\00"
@str = [12 x i8] c"leavenotify\00"
@str.43 = [12 x i8] c"enternotify\00"
@str.45 = [9 x i8] c"focusout\00"
@str.47 = [8 x i8] c"focusin\00"
@str.49 = [7 x i8] c"motion\00"
@str.51 = [9 x i8] c"GrabFail\00"
@str.52 = [12 x i8] c"GrabSuccess\00"
@str.53 = [13 x i8] c"button press\00"
@str.54 = [4 x i8] c"---\00"
@switch.table.main.57 = [11 x i8*] [i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.29, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.28, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.30, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0)]
define i32 @main() {
%1 = alloca %struct.TYPE_11__
%2 = bitcast %struct.TYPE_11__* %1 to i8*
%3 = tail call i32* @XOpenDisplay(i32* null)
%4 = icmp eq i32* %3, null
br i1 %4, label %5, label %8
5: ; preds = %0
%6 = load i32, i32* @stderr
%7 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
ret i32 0
8: ; preds = %0
%9 = tail call i32 @RootWindow(i32* %3, i32 0)
%10 = load i32, i32* @CopyFromParent
%11 = tail call i32 @XCreateWindow(i32* %3, i32 %9, i32 50, i32 50, i32 400, i32 100, i32 10, i32 %10, i32 %10, i32 %10, i32 0, i32* null)
%12 = load i32, i32* @CopyFromParent
%13 = tail call i32 @XCreateWindow(i32* %3, i32 %11, i32 10, i32 10, i32 380, i32 80, i32 0, i32 %12, i32 %12, i32 %12, i32 0, i32* null)
%14 = tail call i32 @WhitePixel(i32* %3, i32 0)
%15 = tail call i32 @XSetWindowBackground(i32* %3, i32 %11, i32 %14)
%16 = tail call i32 @BlackPixel(i32* %3, i32 0)
%17 = tail call i32 @XSetWindowBackground(i32* %3, i32 %13, i32 %16)
%18 = load i32, i32* @FocusChangeMask
%19 = load i32, i32* @EnterWindowMask
%20 = or i32 %19, %18
%21 = load i32, i32* @LeaveWindowMask
%22 = or i32 %20, %21
%23 = tail call i32 @XSelectInput(i32* %3, i32 %11, i32 %22)
%24 = tail call i32 @XMapWindow(i32* %3, i32 %11)
%25 = tail call i32 @XMapWindow(i32* %3, i32 %13)
%26 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 0
%27 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 1, i32 6
%28 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 1, i32 5
%29 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 1, i32 0
%30 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 1, i32 1
%31 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 1, i32 2
%32 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 1, i32 3
%33 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 1, i32 4
%34 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 2, i32 6
%35 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 2, i32 5
%36 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 2, i32 0
%37 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 2, i32 1
%38 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 2, i32 2
%39 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 2, i32 3
%40 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 2, i32 4
%41 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 3, i32 7
%42 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 4, i32 0
%43 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 4, i32 1
%44 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 4, i32 2
%45 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 4, i32 3
%46 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 4, i32 4
%47 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 4, i32 5
%48 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 4, i32 6
%49 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 4, i32 7
%50 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 4, i32 8
%51 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 4, i32 9
%52 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 4, i32 10
%53 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 4, i32 11
%54 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 4, i32 12
%55 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 4, i32 13
%56 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 4, i32 14
%57 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 3, i32 0
%58 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 3, i32 1
%59 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 3, i32 2
%60 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 3, i32 3
%61 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 3, i32 4
%62 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 3, i32 5
%63 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 3, i32 6
%64 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 3, i32 8
%65 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 3, i32 9
%66 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 3, i32 10
%67 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 3, i32 11
%68 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 3, i32 12
%69 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 3, i32 13
%70 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %1, i64 0, i32 3, i32 14
br label %71
71: ; preds = %148, %8
%72 = phi i8* [ undef, %8 ], [ %149, %148 ]
%73 = phi i8* [ undef, %8 ], [ %150, %148 ]
%74 = call i32 @XNextEvent(i32* %3, %struct.TYPE_11__* %1)
%75 = load i32, i32* %26
switch i32 %75, label %148 [
i32 145, label %76
i32 139, label %107
i32 144, label %153
i32 142, label %156
i32 141, label %191
i32 143, label %226
i32 140, label %261
]
76: ; preds = %71
%77 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.53, i64 0, i64 0))
%78 = load i32, i32* %57
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %78)
%80 = load i32, i32* %58
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %80)
%82 = load i32, i32* %59
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 %82)
%84 = load i32, i32* %60
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i32 %84)
%86 = load i32, i32* %61
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 %86)
%88 = load i32, i32* %62
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %88)
%90 = load i32, i32* %63
%91 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 %90)
%92 = load i32, i32* %41
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 %92)
%94 = load i32, i32* %64
%95 = load i32, i32* %65
%96 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0), i32 %94, i32 %95)
%97 = load i32, i32* %66
%98 = load i32, i32* %67
%99 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i32 %97, i32 %98)
%100 = load i32, i32* %68
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i32 %100)
%102 = load i32, i32* %69
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0), i32 %102)
%104 = load i32, i32* %70
%105 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0), i32 %104)
%106 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.54, i64 0, i64 0))
br label %148
107: ; preds = %71
%108 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.49, i64 0, i64 0))
%109 = load i32, i32* %42
%110 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %109)
%111 = load i32, i32* %43
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %111)
%113 = load i32, i32* %44
%114 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 %113)
%115 = load i32, i32* %45
%116 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i32 %115)
%117 = load i32, i32* %46
%118 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 %117)
%119 = load i32, i32* %47
%120 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %119)
%121 = load i32, i32* %48
%122 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 %121)
%123 = load i32, i32* %49
%124 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 %123)
%125 = load i32, i32* %50
%126 = load i32, i32* %51
%127 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0), i32 %125, i32 %126)
%128 = load i32, i32* %52
%129 = load i32, i32* %53
%130 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i32 %128, i32 %129)
%131 = load i32, i32* %54
%132 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i32 %131)
%133 = load i32, i32* %55
%134 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0), i32 %133)
%135 = load i32, i32* %56
%136 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0), i32 %135)
%137 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.54, i64 0, i64 0))
%138 = load i32, i32* @False
%139 = load i32, i32* @ButtonReleaseMask
%140 = load i32, i32* @GrabModeAsync
%141 = load i32, i32* @None
%142 = load i32, i32* %49
%143 = call i32 @XGrabPointer(i32* %3, i32 %11, i32 %138, i32 %139, i32 %140, i32 %140, i32 %141, i32 %141, i32 %142)
%144 = load i32, i32* @GrabSuccess
%145 = icmp eq i32 %143, %144
br i1 %145, label %146, label %151
146: ; preds = %107
%147 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.52, i64 0, i64 0))
br label %148
148: ; preds = %146, %151, %71, %280, %245, %210, %175, %153, %76
%149 = phi i8* [ %72, %71 ], [ %267, %280 ], [ %232, %245 ], [ %197, %210 ], [ %162, %175 ], [ %72, %153 ], [ %72, %146 ], [ %72, %151 ], [ %72, %76 ]
%150 = phi i8* [ %73, %71 ], [ %281, %280 ], [ %246, %245 ], [ %211, %210 ], [ %176, %175 ], [ %73, %153 ], [ %73, %146 ], [ %73, %151 ], [ %73, %76 ]
br label %71
151: ; preds = %107
%152 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.51, i64 0, i64 0))
br label %148
153: ; preds = %71
%154 = load i32, i32* %41
%155 = call i32 @XUngrabPointer(i32* %3, i32 %154)
br label %148
156: ; preds = %71
%157 = load i32, i32* %34
switch i32 %157, label %161 [
i32 132, label %158
i32 136, label %159
i32 129, label %160
]
158: ; preds = %156
br label %161
159: ; preds = %156
br label %161
160: ; preds = %156
br label %161
161: ; preds = %156, %160, %159, %158
%162 = phi i8* [ %72, %156 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.22, i64 0, i64 0), %160 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i64 0, i64 0), %159 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), %158 ]
%163 = load i32, i32* %35
%164 = add i32 %163, -128
%165 = icmp ult i32 %164, 11
br i1 %165, label %166, label %175
166: ; preds = %161
%167 = trunc i32 %164 to i16
%168 = lshr i16 1773, %167
%169 = and i16 %168, 1
%170 = icmp eq i16 %169, 0
br i1 %170, label %175, label %171
171: ; preds = %166
%172 = sext i32 %164 to i64
%173 = getelementptr inbounds [11 x i8*], [11 x i8*]* @switch.table.main.57, i64 0, i64 %172
%174 = load i8*, i8** %173
br label %175
175: ; preds = %171, %166, %161
%176 = phi i8* [ %73, %161 ], [ %73, %166 ], [ %174, %171 ]
%177 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.47, i64 0, i64 0))
%178 = load i32, i32* %36
%179 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.32, i64 0, i64 0), i32 %178)
%180 = load i32, i32* %37
%181 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.33, i64 0, i64 0), i32 %180)
%182 = load i32, i32* %38
%183 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.34, i64 0, i64 0), i32 %182)
%184 = load i32, i32* %39
%185 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.35, i64 0, i64 0), i32 %184)
%186 = load i32, i32* %40
%187 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.36, i64 0, i64 0), i32 %186)
%188 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.37, i64 0, i64 0), i8* %162)
%189 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.38, i64 0, i64 0), i8* %176)
%190 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.54, i64 0, i64 0))
br label %148
191: ; preds = %71
%192 = load i32, i32* %34
switch i32 %192, label %196 [
i32 132, label %193
i32 136, label %194
i32 129, label %195
]
193: ; preds = %191
br label %196
194: ; preds = %191
br label %196
195: ; preds = %191
br label %196
196: ; preds = %191, %195, %194, %193
%197 = phi i8* [ %72, %191 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.22, i64 0, i64 0), %195 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i64 0, i64 0), %194 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), %193 ]
%198 = load i32, i32* %35
%199 = add i32 %198, -128
%200 = icmp ult i32 %199, 11
br i1 %200, label %201, label %210
201: ; preds = %196
%202 = trunc i32 %199 to i16
%203 = lshr i16 1773, %202
%204 = and i16 %203, 1
%205 = icmp eq i16 %204, 0
br i1 %205, label %210, label %206
206: ; preds = %201
%207 = sext i32 %199 to i64
%208 = getelementptr inbounds [11 x i8*], [11 x i8*]* @switch.table.main.57, i64 0, i64 %207
%209 = load i8*, i8** %208
br label %210
210: ; preds = %206, %201, %196
%211 = phi i8* [ %73, %196 ], [ %73, %201 ], [ %209, %206 ]
%212 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.45, i64 0, i64 0))
%213 = load i32, i32* %36
%214 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.32, i64 0, i64 0), i32 %213)
%215 = load i32, i32* %37
%216 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.33, i64 0, i64 0), i32 %215)
%217 = load i32, i32* %38
%218 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.34, i64 0, i64 0), i32 %217)
%219 = load i32, i32* %39
%220 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.35, i64 0, i64 0), i32 %219)
%221 = load i32, i32* %40
%222 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.36, i64 0, i64 0), i32 %221)
%223 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.37, i64 0, i64 0), i8* %197)
%224 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.38, i64 0, i64 0), i8* %211)
%225 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.54, i64 0, i64 0))
br label %148
226: ; preds = %71
%227 = load i32, i32* %27
switch i32 %227, label %231 [
i32 132, label %228
i32 136, label %229
i32 129, label %230
]
228: ; preds = %226
br label %231
229: ; preds = %226
br label %231
230: ; preds = %226
br label %231
231: ; preds = %226, %230, %229, %228
%232 = phi i8* [ %72, %226 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.22, i64 0, i64 0), %230 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i64 0, i64 0), %229 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), %228 ]
%233 = load i32, i32* %28
%234 = add i32 %233, -128
%235 = icmp ult i32 %234, 11
br i1 %235, label %236, label %245
236: ; preds = %231
%237 = trunc i32 %234 to i16
%238 = lshr i16 1773, %237
%239 = and i16 %238, 1
%240 = icmp eq i16 %239, 0
br i1 %240, label %245, label %241
241: ; preds = %236
%242 = sext i32 %234 to i64
%243 = getelementptr inbounds [11 x i8*], [11 x i8*]* @switch.table.main.57, i64 0, i64 %242
%244 = load i8*, i8** %243
br label %245
245: ; preds = %241, %236, %231
%246 = phi i8* [ %73, %231 ], [ %73, %236 ], [ %244, %241 ]
%247 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.43, i64 0, i64 0))
%248 = load i32, i32* %29
%249 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.32, i64 0, i64 0), i32 %248)
%250 = load i32, i32* %30
%251 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.33, i64 0, i64 0), i32 %250)
%252 = load i32, i32* %31
%253 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.34, i64 0, i64 0), i32 %252)
%254 = load i32, i32* %32
%255 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.35, i64 0, i64 0), i32 %254)
%256 = load i32, i32* %33
%257 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.36, i64 0, i64 0), i32 %256)
%258 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.37, i64 0, i64 0), i8* %232)
%259 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.38, i64 0, i64 0), i8* %246)
%260 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.54, i64 0, i64 0))
br label %148
261: ; preds = %71
%262 = load i32, i32* %27
switch i32 %262, label %266 [
i32 132, label %263
i32 136, label %264
i32 129, label %265
]
263: ; preds = %261
br label %266
264: ; preds = %261
br label %266
265: ; preds = %261
br label %266
266: ; preds = %261, %265, %264, %263
%267 = phi i8* [ %72, %261 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.22, i64 0, i64 0), %265 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i64 0, i64 0), %264 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), %263 ]
%268 = load i32, i32* %28
%269 = add i32 %268, -128
%270 = icmp ult i32 %269, 11
br i1 %270, label %271, label %280
271: ; preds = %266
%272 = trunc i32 %269 to i16
%273 = lshr i16 1773, %272
%274 = and i16 %273, 1
%275 = icmp eq i16 %274, 0
br i1 %275, label %280, label %276
276: ; preds = %271
%277 = sext i32 %269 to i64
%278 = getelementptr inbounds [11 x i8*], [11 x i8*]* @switch.table.main.57, i64 0, i64 %277
%279 = load i8*, i8** %278
br label %280
280: ; preds = %276, %271, %266
%281 = phi i8* [ %73, %266 ], [ %73, %271 ], [ %279, %276 ]
%282 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%283 = load i32, i32* %29
%284 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.32, i64 0, i64 0), i32 %283)
%285 = load i32, i32* %30
%286 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.33, i64 0, i64 0), i32 %285)
%287 = load i32, i32* %31
%288 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.34, i64 0, i64 0), i32 %287)
%289 = load i32, i32* %32
%290 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.35, i64 0, i64 0), i32 %289)
%291 = load i32, i32* %33
%292 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.36, i64 0, i64 0), i32 %291)
%293 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.37, i64 0, i64 0), i8* %267)
%294 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.38, i64 0, i64 0), i8* %281)
%295 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.54, i64 0, i64 0))
br label %148
}