#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_7__ TYPE_2__;
typedef struct TYPE_6__ TYPE_1__;

/* Type definitions */
struct TYPE_6__ {
  int /*<<< orphan*/ visual;
  int /*<<< orphan*/ depth;
};
typedef TYPE_1__ XVisualInfo;
struct TYPE_7__ {
  int event_mask;
  int /*<<< orphan*/ colormap;
  scalar_t__ border_pixel;
  scalar_t__ background_pixel;
};
typedef TYPE_2__ XSetWindowAttributes;
typedef int /*<<< orphan*/ Window;
typedef int /*<<< orphan*/ GLXContext;
typedef int /*<<< orphan*/ Display;

/* Variables and functions */
int /*<<< orphan*/ AllocNone;
unsigned long CWBackPixel;
unsigned long CWBorderPixel;
unsigned long CWColormap;
unsigned long CWEventMask;
int DefaultScreen(int /*<<< orphan*/ *);
int ExposureMask;
int GLX_BLUE_SIZE;
int GLX_DOUBLEBUFFER;
int GLX_GREEN_SIZE;
int GLX_RED_SIZE;
int GLX_RGBA;
int /*<<< orphan*/ InputOutput;
int None;
int /*<<< orphan*/ RootWindow(int /*<<< orphan*/ *, int);
int StructureNotifyMask;
int /*<<< orphan*/ True;
int /*<<< orphan*/ XCreateColormap(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                   int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ XCreateWindow(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                 int /*<<< orphan*/, int /*<<< orphan*/,
                                 unsigned int, unsigned int, int /*<<< orphan*/,
                                 int /*<<< orphan*/, int /*<<< orphan*/,
                                 int /*<<< orphan*/, unsigned long, TYPE_2__ *);
int /*<<< orphan*/ exit(int);
TYPE_1__ *glXChooseVisual(int /*<<< orphan*/ *, int, int *);
int /*<<< orphan*/ glXCreateContext(int /*<<< orphan*/ *, TYPE_1__ *,
                                    int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ glXMakeCurrent(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                  int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
Window make_rgb_db_window(Display *dpy, unsigned int width,
                          unsigned int height) {
  int attrib[] = {GLX_RGBA, GLX_RED_SIZE,  1, GLX_GREEN_SIZE,
                  1,        GLX_BLUE_SIZE, 1, GLX_DOUBLEBUFFER,
                  None};
  int scrnum;
  XSetWindowAttributes attr;
  unsigned long mask;
  Window root;
  Window win;
  GLXContext ctx;
  XVisualInfo *visinfo;
  scrnum = DefaultScreen(dpy);
  root = RootWindow(dpy, scrnum);
  visinfo = glXChooseVisual(dpy, scrnum, attrib);
  if (!visinfo) {
    printf("Error: couldn't get an RGB, Double-buffered visual\n");
    exit(1);
  }
  attr.background_pixel = 0;
  attr.border_pixel = 0;
  attr.colormap = XCreateColormap(dpy, root, visinfo->visual, AllocNone);
  attr.event_mask = StructureNotifyMask | ExposureMask;
  mask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;
  win = XCreateWindow(dpy, root, 0, 0, width, height, 0, visinfo->depth,
                      InputOutput, visinfo->visual, mask, &attr);
  ctx = glXCreateContext(dpy, visinfo, NULL, True);
  if (!ctx) {
    printf("Error: glXCreateContext failed\n");
    exit(1);
  }
  glXMakeCurrent(dpy, win, ctx);
  return win;
}


x86 assembly (clang, -O0):
<make_rgb_db_window>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0xb0,%rsp
mov    %rdi,-0x18(%rbp)
mov    %esi,-0x1c(%rbp)
mov    %edx,-0x20(%rbp)
mov    0x2e29(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x50(%rbp)
mov    0x2dc5(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4c(%rbp)
movl   $0x1,-0x48(%rbp)
mov    0x2e02(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x44(%rbp)
movl   $0x1,-0x40(%rbp)
mov    0x2de7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
movl   $0x1,-0x38(%rbp)
mov    0x2d9c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    0x2dc0(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    -0x18(%rbp),%rdi
call   10b0 <DefaultScreen@plt>
mov    %eax,-0x54(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x54(%rbp),%esi
call   1070 <RootWindow@plt>
mov    %eax,-0x7c(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x54(%rbp),%esi
lea    -0x50(%rbp),%rdx
call   1090 <glXChooseVisual@plt>
mov    %rax,-0x90(%rbp)
cmpq   $0x0,-0x90(%rbp)
jne    125b <make_rgb_db_window+0xcb>
lea    0xdb4(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
movq   $0x0,-0x60(%rbp)
movq   $0x0,-0x68(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x7c(%rbp),%esi
mov    -0x90(%rbp),%rax
mov    (%rax),%edx
mov    0x2d2e(%rip),%rax
mov    (%rax),%ecx
call   1080 <XCreateColormap@plt>
mov    %eax,-0x6c(%rbp)
mov    0x2d05(%rip),%rax
mov    (%rax),%eax
mov    0x2cdc(%rip),%rcx
or     (%rcx),%eax
mov    %eax,-0x70(%rbp)
mov    0x2d38(%rip),%rax
mov    (%rax),%rax
mov    0x2d3e(%rip),%rcx
or     (%rcx),%rax
mov    0x2cec(%rip),%rcx
or     (%rcx),%rax
mov    0x2caa(%rip),%rcx
or     (%rcx),%rax
mov    %rax,-0x78(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x7c(%rbp),%esi
mov    -0x1c(%rbp),%r8d
mov    -0x20(%rbp),%r9d
mov    -0x90(%rbp),%rax
mov    0x4(%rax),%r14d
mov    0x2c9a(%rip),%rax
mov    (%rax),%ebx
mov    -0x90(%rbp),%rax
mov    (%rax),%r11d
mov    -0x78(%rbp),%r10
xor    %ecx,%ecx
lea    -0x70(%rbp),%rax
mov    %ecx,%edx
movl   $0x0,(%rsp)
mov    %r14d,0x8(%rsp)
mov    %ebx,0x10(%rsp)
mov    %r11d,0x18(%rsp)
mov    %r10,0x20(%rsp)
mov    %rax,0x28(%rsp)
call   1060 <XCreateWindow@plt>
mov    %eax,-0x80(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x90(%rbp),%rsi
mov    0x2c79(%rip),%rax
mov    (%rax),%ecx
xor    %eax,%eax
mov    %eax,%edx
call   1050 <glXCreateContext@plt>
mov    %eax,-0x84(%rbp)
cmpl   $0x0,-0x84(%rbp)
jne    1373 <make_rgb_db_window+0x1e3>
lea    0xcd0(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x18(%rbp),%rdi
mov    -0x80(%rbp),%esi
mov    -0x84(%rbp),%edx
call   1040 <glXMakeCurrent@plt>
mov    -0x80(%rbp),%eax
add    $0xb0,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<make_rgb_db_window>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %edx,0xc(%rsp)
mov    %esi,%r15d
mov    %rdi,%r13
mov    0x2e29(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x10(%rsp)
mov    0x2dc4(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x14(%rsp)
movl   $0x1,0x18(%rsp)
mov    0x2dff(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x1c(%rsp)
movl   $0x1,0x20(%rsp)
mov    0x2de2(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x24(%rsp)
movl   $0x1,0x28(%rsp)
mov    0x2d95(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x2c(%rsp)
mov    0x2db8(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x30(%rsp)
call   10b0 <DefaultScreen@plt>
mov    %eax,%ebx
mov    %r13,%rdi
mov    %eax,%esi
call   1070 <RootWindow@plt>
mov    %eax,%r12d
lea    0x10(%rsp),%rdx
mov    %r13,%rdi
mov    %ebx,%esi
call   1090 <glXChooseVisual@plt>
test   %rax,%rax
je     1311 <make_rgb_db_window+0x181>
mov    %rax,%rbp
xorps  %xmm0,%xmm0
movups %xmm0,0x48(%rsp)
mov    (%rax),%edx
mov    0x2d62(%rip),%rax
mov    (%rax),%ecx
mov    %r13,%rdi
mov    %r12d,%esi
call   1080 <XCreateColormap@plt>
mov    0x2d36(%rip),%rcx
mov    0x2d0f(%rip),%rdx
mov    (%rdx),%edx
or     (%rcx),%edx
mov    0x2d6c(%rip),%rcx
mov    0x2d75(%rip),%rsi
mov    (%rsi),%rbx
or     (%rcx),%rbx
mov    %eax,0x44(%rsp)
mov    0x2d1c(%rip),%rax
or     (%rax),%rbx
mov    %edx,0x40(%rsp)
mov    0x2cd6(%rip),%rax
or     (%rax),%rbx
mov    0x0(%rbp),%eax
mov    0x4(%rbp),%r10d
mov    0x2cdd(%rip),%rcx
mov    (%rcx),%r11d
lea    0x40(%rsp),%r14
mov    %r13,%rdi
mov    %r12d,%esi
xor    %edx,%edx
xor    %ecx,%ecx
mov    %r15d,%r8d
mov    0xc(%rsp),%r9d
push   %r14
push   %rbx
push   %rax
push   %r11
push   %r10
push   $0x0
call   1060 <XCreateWindow@plt>
add    $0x30,%rsp
mov    %eax,%ebx
mov    0x2cd7(%rip),%rax
mov    (%rax),%ecx
mov    %r13,%rdi
mov    %rbp,%rsi
xor    %edx,%edx
call   1050 <glXCreateContext@plt>
test   %eax,%eax
je     131a <make_rgb_db_window+0x18a>
mov    %r13,%rdi
mov    %ebx,%esi
mov    %eax,%edx
call   1040 <glXMakeCurrent@plt>
mov    %ebx,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xce8(%rip),%rdi
jmp    1321 <make_rgb_db_window+0x191>
lea    0xd12(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
%struct.TYPE_7__ = type { i32, i32, i64, i64 }
%struct.TYPE_6__ = type { i32, i32 }
@GLX_RGBA = global i32 0
@GLX_RED_SIZE = global i32 0
@GLX_GREEN_SIZE = global i32 0
@GLX_BLUE_SIZE = global i32 0
@GLX_DOUBLEBUFFER = global i32 0
@None = global i32 0
@.str = [52 x i8] c"Error: couldn't get an RGB, Double-buffered visual\0A\00"
@AllocNone = global i32 0
@StructureNotifyMask = global i32 0
@ExposureMask = global i32 0
@CWBackPixel = global i64 0
@CWBorderPixel = global i64 0
@CWColormap = global i64 0
@CWEventMask = global i64 0
@InputOutput = global i32 0
@True = global i32 0
@.str.1 = [32 x i8] c"Error: glXCreateContext failed\0A\00"
define i32 @make_rgb_db_window(i32* %0, i32 %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
%7 = alloca [9 x i32]
%8 = alloca i32
%9 = alloca %struct.TYPE_7__
%10 = alloca i64
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca %struct.TYPE_6__*
store i32* %0, i32** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%15 = getelementptr inbounds [9 x i32], [9 x i32]* %7, i64 0, i64 0
%16 = load i32, i32* @GLX_RGBA
store i32 %16, i32* %15
%17 = getelementptr inbounds i32, i32* %15, i64 1
%18 = load i32, i32* @GLX_RED_SIZE
store i32 %18, i32* %17
%19 = getelementptr inbounds i32, i32* %17, i64 1
store i32 1, i32* %19
%20 = getelementptr inbounds i32, i32* %19, i64 1
%21 = load i32, i32* @GLX_GREEN_SIZE
store i32 %21, i32* %20
%22 = getelementptr inbounds i32, i32* %20, i64 1
store i32 1, i32* %22
%23 = getelementptr inbounds i32, i32* %22, i64 1
%24 = load i32, i32* @GLX_BLUE_SIZE
store i32 %24, i32* %23
%25 = getelementptr inbounds i32, i32* %23, i64 1
store i32 1, i32* %25
%26 = getelementptr inbounds i32, i32* %25, i64 1
%27 = load i32, i32* @GLX_DOUBLEBUFFER
store i32 %27, i32* %26
%28 = getelementptr inbounds i32, i32* %26, i64 1
%29 = load i32, i32* @None
store i32 %29, i32* %28
%30 = load i32*, i32** %4
%31 = call i32 @DefaultScreen(i32* %30)
store i32 %31, i32* %8
%32 = load i32*, i32** %4
%33 = load i32, i32* %8
%34 = call i32 @RootWindow(i32* %32, i32 %33)
store i32 %34, i32* %11
%35 = load i32*, i32** %4
%36 = load i32, i32* %8
%37 = getelementptr inbounds [9 x i32], [9 x i32]* %7, i64 0, i64 0
%38 = call %struct.TYPE_6__* @glXChooseVisual(i32* %35, i32 %36, i32* %37)
store %struct.TYPE_6__* %38, %struct.TYPE_6__** %14
%39 = load %struct.TYPE_6__*, %struct.TYPE_6__** %14
%40 = icmp ne %struct.TYPE_6__* %39, null
br i1 %40, label %44, label %41
41: ; preds = %3
%42 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0))
%43 = call i32 @exit(i32 1)
unreachable
44: ; preds = %3
%45 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %9, i32 0, i32 3
store i64 0, i64* %45
%46 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %9, i32 0, i32 2
store i64 0, i64* %46
%47 = load i32*, i32** %4
%48 = load i32, i32* %11
%49 = load %struct.TYPE_6__*, %struct.TYPE_6__** %14
%50 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %49, i32 0, i32 0
%51 = load i32, i32* %50
%52 = load i32, i32* @AllocNone
%53 = call i32 @XCreateColormap(i32* %47, i32 %48, i32 %51, i32 %52)
%54 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %9, i32 0, i32 1
store i32 %53, i32* %54
%55 = load i32, i32* @StructureNotifyMask
%56 = load i32, i32* @ExposureMask
%57 = or i32 %55, %56
%58 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %9, i32 0, i32 0
store i32 %57, i32* %58
%59 = load i64, i64* @CWBackPixel
%60 = load i64, i64* @CWBorderPixel
%61 = or i64 %59, %60
%62 = load i64, i64* @CWColormap
%63 = or i64 %61, %62
%64 = load i64, i64* @CWEventMask
%65 = or i64 %63, %64
store i64 %65, i64* %10
%66 = load i32*, i32** %4
%67 = load i32, i32* %11
%68 = load i32, i32* %5
%69 = load i32, i32* %6
%70 = load %struct.TYPE_6__*, %struct.TYPE_6__** %14
%71 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %70, i32 0, i32 1
%72 = load i32, i32* %71
%73 = load i32, i32* @InputOutput
%74 = load %struct.TYPE_6__*, %struct.TYPE_6__** %14
%75 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %74, i32 0, i32 0
%76 = load i32, i32* %75
%77 = load i64, i64* %10
%78 = call i32 @XCreateWindow(i32* %66, i32 %67, i32 0, i32 0, i32 %68, i32 %69, i32 0, i32 %72, i32 %73, i32 %76, i64 %77, %struct.TYPE_7__* %9)
store i32 %78, i32* %12
%79 = load i32*, i32** %4
%80 = load %struct.TYPE_6__*, %struct.TYPE_6__** %14
%81 = load i32, i32* @True
%82 = call i32 @glXCreateContext(i32* %79, %struct.TYPE_6__* %80, i32* null, i32 %81)
store i32 %82, i32* %13
%83 = load i32, i32* %13
%84 = icmp ne i32 %83, 0
br i1 %84, label %88, label %85
85: ; preds = %44
%86 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%87 = call i32 @exit(i32 1)
unreachable
88: ; preds = %44
%89 = load i32*, i32** %4
%90 = load i32, i32* %12
%91 = load i32, i32* %13
%92 = call i32 @glXMakeCurrent(i32* %89, i32 %90, i32 %91)
%93 = load i32, i32* %12
ret i32 %93
}

LLVM IR (-O2):
%struct.TYPE_7__ = type { i32, i32, i64, i64 }
%struct.TYPE_6__ = type { i32, i32 }
@GLX_RGBA = global i32 0
@GLX_RED_SIZE = global i32 0
@GLX_GREEN_SIZE = global i32 0
@GLX_BLUE_SIZE = global i32 0
@GLX_DOUBLEBUFFER = global i32 0
@None = global i32 0
@AllocNone = global i32 0
@StructureNotifyMask = global i32 0
@ExposureMask = global i32 0
@CWBackPixel = global i64 0
@CWBorderPixel = global i64 0
@CWColormap = global i64 0
@CWEventMask = global i64 0
@InputOutput = global i32 0
@True = global i32 0
@str = [51 x i8] c"Error: couldn't get an RGB, Double-buffered visual\00"
@str.2 = [31 x i8] c"Error: glXCreateContext failed\00"
define i32 @make_rgb_db_window(i32* %0, i32 %1, i32 %2) {
%4 = alloca [9 x i32]
%5 = alloca %struct.TYPE_7__
%6 = bitcast [9 x i32]* %4 to i8*
%7 = getelementptr inbounds [9 x i32], [9 x i32]* %4, i64 0, i64 0
%8 = load i32, i32* @GLX_RGBA
store i32 %8, i32* %7
%9 = getelementptr inbounds [9 x i32], [9 x i32]* %4, i64 0, i64 1
%10 = load i32, i32* @GLX_RED_SIZE
store i32 %10, i32* %9
%11 = getelementptr inbounds [9 x i32], [9 x i32]* %4, i64 0, i64 2
store i32 1, i32* %11
%12 = getelementptr inbounds [9 x i32], [9 x i32]* %4, i64 0, i64 3
%13 = load i32, i32* @GLX_GREEN_SIZE
store i32 %13, i32* %12
%14 = getelementptr inbounds [9 x i32], [9 x i32]* %4, i64 0, i64 4
store i32 1, i32* %14
%15 = getelementptr inbounds [9 x i32], [9 x i32]* %4, i64 0, i64 5
%16 = load i32, i32* @GLX_BLUE_SIZE
store i32 %16, i32* %15
%17 = getelementptr inbounds [9 x i32], [9 x i32]* %4, i64 0, i64 6
store i32 1, i32* %17
%18 = getelementptr inbounds [9 x i32], [9 x i32]* %4, i64 0, i64 7
%19 = load i32, i32* @GLX_DOUBLEBUFFER
store i32 %19, i32* %18
%20 = getelementptr inbounds [9 x i32], [9 x i32]* %4, i64 0, i64 8
%21 = load i32, i32* @None
store i32 %21, i32* %20
%22 = bitcast %struct.TYPE_7__* %5 to i8*
%23 = tail call i32 @DefaultScreen(i32* %0)
%24 = tail call i32 @RootWindow(i32* %0, i32 %23)
%25 = call %struct.TYPE_6__* @glXChooseVisual(i32* %0, i32 %23, i32* %7)
%26 = icmp eq %struct.TYPE_6__* %25, null
br i1 %26, label %27, label %30
27: ; preds = %3
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str, i64 0, i64 0))
%29 = call i32 @exit(i32 1)
unreachable
30: ; preds = %3
%31 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %5, i64 0, i32 2
%32 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %25, i64 0, i32 0
%33 = bitcast i64* %31 to i8*
%34 = load i32, i32* %32
%35 = load i32, i32* @AllocNone
%36 = call i32 @XCreateColormap(i32* %0, i32 %24, i32 %34, i32 %35)
%37 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %5, i64 0, i32 1
store i32 %36, i32* %37
%38 = load i32, i32* @StructureNotifyMask
%39 = load i32, i32* @ExposureMask
%40 = or i32 %39, %38
%41 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %5, i64 0, i32 0
store i32 %40, i32* %41
%42 = load i64, i64* @CWBackPixel
%43 = load i64, i64* @CWBorderPixel
%44 = or i64 %43, %42
%45 = load i64, i64* @CWColormap
%46 = or i64 %44, %45
%47 = load i64, i64* @CWEventMask
%48 = or i64 %46, %47
%49 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %25, i64 0, i32 1
%50 = load i32, i32* %49
%51 = load i32, i32* @InputOutput
%52 = load i32, i32* %32
%53 = call i32 @XCreateWindow(i32* %0, i32 %24, i32 0, i32 0, i32 %1, i32 %2, i32 0, i32 %50, i32 %51, i32 %52, i64 %48, %struct.TYPE_7__* %5)
%54 = load i32, i32* @True
%55 = call i32 @glXCreateContext(i32* %0, %struct.TYPE_6__* %25, i32* null, i32 %54)
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %60
57: ; preds = %30
%58 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.2, i64 0, i64 0))
%59 = call i32 @exit(i32 1)
unreachable
60: ; preds = %30
%61 = call i32 @glXMakeCurrent(i32* %0, i32 %53, i32 %55)
ret i32 %53
}