; LLVM IR from erincatto/box2d-lite :: extern/glfw/src/glx_context.ll (glfwInitGLX)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct._GLFWlibrary = type { i32, %struct.anon, ptr, ptr, ptr, ptr, i32, [16 x %struct._GLFWjoystick], ptr, i32, %struct._GLFWtls, %struct._GLFWtls, %struct._GLFWmutex, %struct.anon.4, %struct.anon.5, %struct.anon.6, %struct._GLFWlibraryX11, %struct._GLFWlibraryGLX, %struct._GLFWlibraryLinux, %struct._GLFWlibraryEGL, %struct._GLFWlibraryOSMesa }
%struct.anon = type { %struct._GLFWinitconfig, %struct._GLFWfbconfig, %struct._GLFWwndconfig, %struct._GLFWctxconfig, i32 }
%struct._GLFWinitconfig = type { i32, %struct.anon.0 }
%struct.anon.0 = type { i32, i32 }
%struct._GLFWfbconfig = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64 }
%struct._GLFWwndconfig = type { i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.anon.1, %struct.anon.2 }
%struct.anon.1 = type { i32, [256 x i8] }
%struct.anon.2 = type { [256 x i8], [256 x i8] }
%struct._GLFWctxconfig = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, %struct.anon.3 }
%struct.anon.3 = type { i32 }
%struct._GLFWjoystick = type { i32, ptr, i32, ptr, i32, ptr, i32, ptr, ptr, [33 x i8], ptr, %struct._GLFWjoystickLinux }
%struct._GLFWjoystickLinux = type { i32, [4096 x i8], [512 x i32], [64 x i32], [64 x %struct.input_absinfo], [4 x [2 x i32]] }
%struct.input_absinfo = type { i32, i32, i32, i32, i32, i32 }
%struct._GLFWtls = type { %struct._GLFWtlsPOSIX }
%struct._GLFWtlsPOSIX = type { i32, i32 }
%struct._GLFWmutex = type { %struct._GLFWmutexPOSIX }
%struct._GLFWmutexPOSIX = type { i32, %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%struct.anon.4 = type { i64, %struct._GLFWtimerPOSIX }
%struct._GLFWtimerPOSIX = type { i32, i64 }
%struct.anon.5 = type { i32, ptr, [2 x ptr], ptr, ptr, i32, i32, i32 }
%struct.anon.6 = type { ptr, ptr }
%struct._GLFWlibraryX11 = type { ptr, i32, i64, float, float, i64, i64, i32, ptr, i32, ptr, ptr, [5 x i8], [256 x i16], [349 x i16], double, double, ptr, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, %struct.anon.7, %struct.anon.8, %struct.anon.9, %struct.anon.10, %struct.anon.11, %struct.anon.12, %struct.anon.13, %struct.anon.14, %struct.anon.15, %struct.anon.16 }
%struct.anon.7 = type { i32, ptr, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.anon.8 = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.anon.9 = type { i32, i32, i32, i32, i32 }
%struct.anon.10 = type { i32, i64, i64 }
%struct.anon.11 = type { ptr, ptr, ptr, ptr }
%struct.anon.12 = type { i32, ptr, i32, i32, ptr, ptr, ptr }
%struct.anon.13 = type { ptr, ptr }
%struct.anon.14 = type { i32, ptr, i32, i32, ptr, ptr, ptr, ptr }
%struct.anon.15 = type { i32, ptr, i32, i32, i32, i32, i32, ptr, ptr }
%struct.anon.16 = type { i32, ptr, i32, i32, i32, i32, ptr, ptr, ptr }
%struct._GLFWlibraryGLX = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct._GLFWlibraryLinux = type { i32, i32, %struct.re_pattern_buffer, i32 }
%struct.re_pattern_buffer = type { ptr, i64, i64, i64, ptr, ptr, i64, i8 }
%struct._GLFWlibraryEGL = type { ptr, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._GLFWlibraryOSMesa = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@__const._glfwInitGLX.sonames = external hidden unnamed_addr constant [3 x ptr], align 16
@_glfw = external global %struct._GLFWlibrary, align 8
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @_glfwInitGLX() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [3 x ptr], align 16
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const._glfwInitGLX.sonames, i64 24, i1 false)
  %5 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 4), align 8, !tbaa !5
  %6 = icmp ne ptr %5, null
  br i1 %6, label %7, label %8

7:                                                ; preds = %0
  store i32 1, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %196

8:                                                ; preds = %0
  store i32 0, ptr %2, align 4, !tbaa !46
  br label %9

9:                                                ; preds = %25, %8
  %10 = load i32, ptr %2, align 4, !tbaa !46
  %11 = sext i32 %10 to i64
  %12 = getelementptr inbounds [3 x ptr], ptr %3, i64 0, i64 %11
  %13 = load ptr, ptr %12, align 8, !tbaa !47
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %28

15:                                               ; preds = %9
  %16 = load i32, ptr %2, align 4, !tbaa !46
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [3 x ptr], ptr %3, i64 0, i64 %17
  %19 = load ptr, ptr %18, align 8, !tbaa !47
  %20 = call ptr @dlopen(ptr noundef %19, i32 noundef 1) #5
  store ptr %20, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 4), align 8, !tbaa !5
  %21 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 4), align 8, !tbaa !5
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %24

23:                                               ; preds = %15
  br label %28

24:                                               ; preds = %15
  br label %25

25:                                               ; preds = %24
  %26 = load i32, ptr %2, align 4, !tbaa !46
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %2, align 4, !tbaa !46
  br label %9, !llvm.loop !48

28:                                               ; preds = %23, %9
  %29 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 4), align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %32, label %31

31:                                               ; preds = %28
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef @.str.2)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %196

32:                                               ; preds = %28
  %33 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 4), align 8, !tbaa !5
  %34 = call ptr @dlsym(ptr noundef %33, ptr noundef @.str.3) #5
  store ptr %34, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 5), align 8, !tbaa !50
  %35 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 4), align 8, !tbaa !5
  %36 = call ptr @dlsym(ptr noundef %35, ptr noundef @.str.4) #5
  store ptr %36, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 6), align 8, !tbaa !51
  %37 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 4), align 8, !tbaa !5
  %38 = call ptr @dlsym(ptr noundef %37, ptr noundef @.str.5) #5
  store ptr %38, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 7), align 8, !tbaa !52
  %39 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 4), align 8, !tbaa !5
  %40 = call ptr @dlsym(ptr noundef %39, ptr noundef @.str.6) #5
  store ptr %40, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 8), align 8, !tbaa !53
  %41 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 4), align 8, !tbaa !5
  %42 = call ptr @dlsym(ptr noundef %41, ptr noundef @.str.7) #5
  store ptr %42, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 9), align 8, !tbaa !54
  %43 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 4), align 8, !tbaa !5
  %44 = call ptr @dlsym(ptr noundef %43, ptr noundef @.str.8) #5
  store ptr %44, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 10), align 8, !tbaa !55
  %45 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 4), align 8, !tbaa !5
  %46 = call ptr @dlsym(ptr noundef %45, ptr noundef @.str.9) #5
  store ptr %46, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 11), align 8, !tbaa !56
  %47 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 4), align 8, !tbaa !5
  %48 = call ptr @dlsym(ptr noundef %47, ptr noundef @.str.10) #5
  store ptr %48, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 12), align 8, !tbaa !57
  %49 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 4), align 8, !tbaa !5
  %50 = call ptr @dlsym(ptr noundef %49, ptr noundef @.str.11) #5
  store ptr %50, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 13), align 8, !tbaa !58
  %51 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 4), align 8, !tbaa !5
  %52 = call ptr @dlsym(ptr noundef %51, ptr noundef @.str.12) #5
  store ptr %52, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 14), align 8, !tbaa !59
  %53 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 4), align 8, !tbaa !5
  %54 = call ptr @dlsym(ptr noundef %53, ptr noundef @.str.13) #5
  store ptr %54, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 16), align 8, !tbaa !60
  %55 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 4), align 8, !tbaa !5
  %56 = call ptr @dlsym(ptr noundef %55, ptr noundef @.str.14) #5
  store ptr %56, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 17), align 8, !tbaa !61
  %57 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 4), align 8, !tbaa !5
  %58 = call ptr @dlsym(ptr noundef %57, ptr noundef @.str.15) #5
  store ptr %58, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 18), align 8, !tbaa !62
  %59 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 4), align 8, !tbaa !5
  %60 = call ptr @dlsym(ptr noundef %59, ptr noundef @.str.16) #5
  store ptr %60, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 19), align 8, !tbaa !63
  %61 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 4), align 8, !tbaa !5
  %62 = call ptr @dlsym(ptr noundef %61, ptr noundef @.str.17) #5
  store ptr %62, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 15), align 8, !tbaa !64
  %63 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 5), align 8, !tbaa !50
  %64 = icmp ne ptr %63, null
  br i1 %64, label %65, label %107

65:                                               ; preds = %32
  %66 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 6), align 8, !tbaa !51
  %67 = icmp ne ptr %66, null
  br i1 %67, label %68, label %107

68:                                               ; preds = %65
  %69 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 7), align 8, !tbaa !52
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %107

71:                                               ; preds = %68
  %72 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 8), align 8, !tbaa !53
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %107

74:                                               ; preds = %71
  %75 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 9), align 8, !tbaa !54
  %76 = icmp ne ptr %75, null
  br i1 %76, label %77, label %107

77:                                               ; preds = %74
  %78 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 10), align 8, !tbaa !55
  %79 = icmp ne ptr %78, null
  br i1 %79, label %80, label %107

80:                                               ; preds = %77
  %81 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 11), align 8, !tbaa !56
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %107

83:                                               ; preds = %80
  %84 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 12), align 8, !tbaa !57
  %85 = icmp ne ptr %84, null
  br i1 %85, label %86, label %107

86:                                               ; preds = %83
  %87 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 13), align 8, !tbaa !58
  %88 = icmp ne ptr %87, null
  br i1 %88, label %89, label %107

89:                                               ; preds = %86
  %90 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 14), align 8, !tbaa !59
  %91 = icmp ne ptr %90, null
  br i1 %91, label %92, label %107

92:                                               ; preds = %89
  %93 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 16), align 8, !tbaa !60
  %94 = icmp ne ptr %93, null
  br i1 %94, label %95, label %107

95:                                               ; preds = %92
  %96 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 17), align 8, !tbaa !61
  %97 = icmp ne ptr %96, null
  br i1 %97, label %98, label %107

98:                                               ; preds = %95
  %99 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 18), align 8, !tbaa !62
  %100 = icmp ne ptr %99, null
  br i1 %100, label %101, label %107

101:                                              ; preds = %98
  %102 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 19), align 8, !tbaa !63
  %103 = icmp ne ptr %102, null
  br i1 %103, label %104, label %107

104:                                              ; preds = %101
  %105 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 15), align 8, !tbaa !64
  %106 = icmp ne ptr %105, null
  br i1 %106, label %108, label %107

107:                                              ; preds = %104, %101, %98, %95, %92, %89, %86, %83, %80, %77, %74, %71, %68, %65, %32
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65544, ptr noundef @.str.18)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %196

108:                                              ; preds = %104
  %109 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 8), align 8, !tbaa !53
  %110 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 16), align 8, !tbaa !65
  %111 = call i32 %109(ptr noundef %110, ptr noundef getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 3), ptr noundef getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 2))
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %114, label %113

113:                                              ; preds = %108
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef @.str.19)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %196

114:                                              ; preds = %108
  %115 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 9), align 8, !tbaa !54
  %116 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 16), align 8, !tbaa !65
  %117 = call i32 %115(ptr noundef %116, ptr noundef getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), ptr noundef getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 1))
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %120, label %119

119:                                              ; preds = %114
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef @.str.20)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %196

120:                                              ; preds = %114
  %121 = load i32, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), align 8, !tbaa !66
  %122 = icmp eq i32 %121, 1
  br i1 %122, label %123, label %127

123:                                              ; preds = %120
  %124 = load i32, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 1), align 4, !tbaa !67
  %125 = icmp slt i32 %124, 3
  br i1 %125, label %126, label %127

126:                                              ; preds = %123
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef @.str.21)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %196

127:                                              ; preds = %123, %120
  %128 = call i32 @extensionSupportedGLX(ptr noundef @.str.22)
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %136

130:                                              ; preds = %127
  %131 = call ptr @getProcAddressGLX(ptr noundef @.str.23)
  store ptr %131, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !68
  %132 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !68
  %133 = icmp ne ptr %132, null
  br i1 %133, label %134, label %135

134:                                              ; preds = %130
  store i32 1, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 25), align 4, !tbaa !69
  br label %135

135:                                              ; preds = %134, %130
  br label %136

136:                                              ; preds = %135, %127
  %137 = call i32 @extensionSupportedGLX(ptr noundef @.str.24)
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %145

139:                                              ; preds = %136
  %140 = call ptr @getProcAddressGLX(ptr noundef @.str.25)
  store ptr %140, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 20), align 8, !tbaa !70
  %141 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 20), align 8, !tbaa !70
  %142 = icmp ne ptr %141, null
  br i1 %142, label %143, label %144

143:                                              ; preds = %139
  store i32 1, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 24), align 8, !tbaa !71
  br label %144

144:                                              ; preds = %143, %139
  br label %145

145:                                              ; preds = %144, %136
  %146 = call i32 @extensionSupportedGLX(ptr noundef @.str.26)
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %154

148:                                              ; preds = %145
  %149 = call ptr @getProcAddressGLX(ptr noundef @.str.27)
  store ptr %149, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 22), align 8, !tbaa !72
  %150 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 22), align 8, !tbaa !72
  %151 = icmp ne ptr %150, null
  br i1 %151, label %152, label %153

152:                                              ; preds = %148
  store i32 1, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 26), align 8, !tbaa !73
  br label %153

153:                                              ; preds = %152, %148
  br label %154

154:                                              ; preds = %153, %145
  %155 = call i32 @extensionSupportedGLX(ptr noundef @.str.28)
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %158

157:                                              ; preds = %154
  store i32 1, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 27), align 4, !tbaa !74
  br label %158

158:                                              ; preds = %157, %154
  %159 = call i32 @extensionSupportedGLX(ptr noundef @.str.29)
  %160 = icmp ne i32 %159, 0
  br i1 %160, label %161, label %162

161:                                              ; preds = %158
  store i32 1, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 28), align 8, !tbaa !75
  br label %162

162:                                              ; preds = %161, %158
  %163 = call i32 @extensionSupportedGLX(ptr noundef @.str.30)
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %165, label %166

165:                                              ; preds = %162
  store i32 1, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 29), align 4, !tbaa !76
  br label %166

166:                                              ; preds = %165, %162
  %167 = call i32 @extensionSupportedGLX(ptr noundef @.str.31)
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %169, label %175

169:                                              ; preds = %166
  %170 = call ptr @getProcAddressGLX(ptr noundef @.str.32)
  store ptr %170, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 23), align 8, !tbaa !77
  %171 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 23), align 8, !tbaa !77
  %172 = icmp ne ptr %171, null
  br i1 %172, label %173, label %174

173:                                              ; preds = %169
  store i32 1, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 30), align 8, !tbaa !78
  br label %174

174:                                              ; preds = %173, %169
  br label %175

175:                                              ; preds = %174, %166
  %176 = call i32 @extensionSupportedGLX(ptr noundef @.str.33)
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %178, label %179

178:                                              ; preds = %175
  store i32 1, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 32), align 8, !tbaa !79
  br label %179

179:                                              ; preds = %178, %175
  %180 = call i32 @extensionSupportedGLX(ptr noundef @.str.34)
  %181 = icmp ne i32 %180, 0
  br i1 %181, label %182, label %183

182:                                              ; preds = %179
  store i32 1, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 31), align 4, !tbaa !80
  br label %183

183:                                              ; preds = %182, %179
  %184 = call i32 @extensionSupportedGLX(ptr noundef @.str.35)
  %185 = icmp ne i32 %184, 0
  br i1 %185, label %186, label %187

186:                                              ; preds = %183
  store i32 1, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 33), align 4, !tbaa !81
  br label %187

187:                                              ; preds = %186, %183
  %188 = call i32 @extensionSupportedGLX(ptr noundef @.str.36)
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %191

190:                                              ; preds = %187
  store i32 1, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 34), align 8, !tbaa !82
  br label %191

191:                                              ; preds = %190, %187
  %192 = call i32 @extensionSupportedGLX(ptr noundef @.str.37)
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %195

194:                                              ; preds = %191
  store i32 1, ptr getelementptr inbounds (%struct._GLFWlibraryGLX, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 35), align 4, !tbaa !83
  br label %195

195:                                              ; preds = %194, %191
  store i32 1, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %196

196:                                              ; preds = %195, %126, %119, %113, %107, %31, %7
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %197 = load i32, ptr %1, align 4
  ret i32 %197
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nounwind
declare ptr @dlopen(ptr noundef, i32 noundef) #3

declare void @_glfwInputError(i32 noundef, ptr noundef, ...) #4

; Function Attrs: nounwind
declare ptr @dlsym(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @extensionSupportedGLX(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden ptr @getProcAddressGLX(ptr noundef) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !16, i64 132976}
!6 = !{!"_GLFWlibrary", !7, i64 0, !10, i64 8, !16, i64 992, !16, i64 1000, !16, i64 1008, !16, i64 1016, !7, i64 1024, !8, i64 1032, !16, i64 130568, !7, i64 130576, !21, i64 130580, !21, i64 130588, !23, i64 130600, !25, i64 130648, !27, i64 130672, !28, i64 130736, !29, i64 130752, !41, i64 132960, !42, i64 133184, !44, i64 133264, !45, i64 133440}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !13, i64 16, !15, i64 88, !19, i64 920, !7, i64 976}
!11 = !{!"_GLFWinitconfig", !7, i64 0, !12, i64 4}
!12 = !{!"", !7, i64 0, !7, i64 4}
!13 = !{!"_GLFWfbconfig", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !14, i64 64}
!14 = !{!"long", !8, i64 0}
!15 = !{!"_GLFWwndconfig", !7, i64 0, !7, i64 4, !16, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !17, i64 56, !18, i64 316}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!"", !7, i64 0, !8, i64 4}
!18 = !{!"", !8, i64 0, !8, i64 256}
!19 = !{!"_GLFWctxconfig", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !16, i64 40, !20, i64 48}
!20 = !{!"", !7, i64 0}
!21 = !{!"_GLFWtls", !22, i64 0}
!22 = !{!"_GLFWtlsPOSIX", !7, i64 0, !7, i64 4}
!23 = !{!"_GLFWmutex", !24, i64 0}
!24 = !{!"_GLFWmutexPOSIX", !7, i64 0, !8, i64 8}
!25 = !{!"", !14, i64 0, !26, i64 8}
!26 = !{!"_GLFWtimerPOSIX", !7, i64 0, !14, i64 8}
!27 = !{!"", !7, i64 0, !16, i64 8, !8, i64 16, !16, i64 32, !16, i64 40, !7, i64 48, !7, i64 52, !7, i64 56}
!28 = !{!"", !16, i64 0, !16, i64 8}
!29 = !{!"_GLFWlibraryX11", !16, i64 0, !7, i64 8, !14, i64 16, !30, i64 24, !30, i64 28, !14, i64 32, !14, i64 40, !7, i64 48, !16, i64 56, !7, i64 64, !16, i64 72, !16, i64 80, !8, i64 88, !8, i64 94, !8, i64 606, !31, i64 1304, !31, i64 1312, !16, i64 1320, !14, i64 1328, !14, i64 1336, !14, i64 1344, !14, i64 1352, !14, i64 1360, !14, i64 1368, !14, i64 1376, !14, i64 1384, !14, i64 1392, !14, i64 1400, !14, i64 1408, !14, i64 1416, !14, i64 1424, !14, i64 1432, !14, i64 1440, !14, i64 1448, !14, i64 1456, !14, i64 1464, !14, i64 1472, !14, i64 1480, !14, i64 1488, !14, i64 1496, !14, i64 1504, !14, i64 1512, !14, i64 1520, !14, i64 1528, !14, i64 1536, !14, i64 1544, !14, i64 1552, !14, i64 1560, !14, i64 1568, !14, i64 1576, !14, i64 1584, !14, i64 1592, !14, i64 1600, !14, i64 1608, !14, i64 1616, !14, i64 1624, !14, i64 1632, !14, i64 1640, !14, i64 1648, !14, i64 1656, !14, i64 1664, !14, i64 1672, !14, i64 1680, !14, i64 1688, !32, i64 1696, !33, i64 1872, !34, i64 1900, !35, i64 1920, !36, i64 1944, !37, i64 1976, !28, i64 2024, !38, i64 2040, !39, i64 2096, !40, i64 2152}
!30 = !{!"float", !8, i64 0}
!31 = !{!"double", !8, i64 0}
!32 = !{!"", !7, i64 0, !16, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168}
!33 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24}
!34 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16}
!35 = !{!"", !7, i64 0, !14, i64 8, !14, i64 16}
!36 = !{!"", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24}
!37 = !{!"", !7, i64 0, !16, i64 8, !7, i64 16, !7, i64 20, !16, i64 24, !16, i64 32, !16, i64 40}
!38 = !{!"", !7, i64 0, !16, i64 8, !7, i64 16, !7, i64 20, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48}
!39 = !{!"", !7, i64 0, !16, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !16, i64 40, !16, i64 48}
!40 = !{!"", !7, i64 0, !16, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !16, i64 32, !16, i64 40, !16, i64 48}
!41 = !{!"_GLFWlibraryGLX", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168, !7, i64 176, !7, i64 180, !7, i64 184, !7, i64 188, !7, i64 192, !7, i64 196, !7, i64 200, !7, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !7, i64 220}
!42 = !{!"_GLFWlibraryLinux", !7, i64 0, !7, i64 4, !43, i64 8, !7, i64 72}
!43 = !{!"re_pattern_buffer", !16, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !16, i64 32, !16, i64 40, !14, i64 48, !7, i64 56, !7, i64 56, !7, i64 56, !7, i64 56, !7, i64 56, !7, i64 56, !7, i64 56}
!44 = !{!"_GLFWlibraryEGL", !16, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168}
!45 = !{!"_GLFWlibraryOSMesa", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !16, i64 56}
!46 = !{!7, !7, i64 0}
!47 = !{!16, !16, i64 0}
!48 = distinct !{!48, !49}
!49 = !{!"llvm.loop.mustprogress"}
!50 = !{!6, !16, i64 132984}
!51 = !{!6, !16, i64 132992}
!52 = !{!6, !16, i64 133000}
!53 = !{!6, !16, i64 133008}
!54 = !{!6, !16, i64 133016}
!55 = !{!6, !16, i64 133024}
!56 = !{!6, !16, i64 133032}
!57 = !{!6, !16, i64 133040}
!58 = !{!6, !16, i64 133048}
!59 = !{!6, !16, i64 133056}
!60 = !{!6, !16, i64 133072}
!61 = !{!6, !16, i64 133080}
!62 = !{!6, !16, i64 133088}
!63 = !{!6, !16, i64 133096}
!64 = !{!6, !16, i64 133064}
!65 = !{!6, !16, i64 130752}
!66 = !{!6, !7, i64 132960}
!67 = !{!6, !7, i64 132964}
!68 = !{!6, !16, i64 133112}
!69 = !{!6, !7, i64 133140}
!70 = !{!6, !16, i64 133104}
!71 = !{!6, !7, i64 133136}
!72 = !{!6, !16, i64 133120}
!73 = !{!6, !7, i64 133144}
!74 = !{!6, !7, i64 133148}
!75 = !{!6, !7, i64 133152}
!76 = !{!6, !7, i64 133156}
!77 = !{!6, !16, i64 133128}
!78 = !{!6, !7, i64 133160}
!79 = !{!6, !7, i64 133168}
!80 = !{!6, !7, i64 133164}
!81 = !{!6, !7, i64 133172}
!82 = !{!6, !7, i64 133176}
!83 = !{!6, !7, i64 133180}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct._GLFWlibrary = type { i32, %struct.anon, ptr, ptr, ptr, ptr, i32, [16 x %struct._GLFWjoystick], ptr, i32, %struct._GLFWtls, %struct._GLFWtls, %struct._GLFWmutex, %struct.anon.4, %struct.anon.5, %struct.anon.6, %struct._GLFWlibraryX11, %struct._GLFWlibraryGLX, %struct._GLFWlibraryLinux, %struct._GLFWlibraryEGL, %struct._GLFWlibraryOSMesa }
%struct.anon = type { %struct._GLFWinitconfig, %struct._GLFWfbconfig, %struct._GLFWwndconfig, %struct._GLFWctxconfig, i32 }
%struct._GLFWinitconfig = type { i32, %struct.anon.0 }
%struct.anon.0 = type { i32, i32 }
%struct._GLFWfbconfig = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64 }
%struct._GLFWwndconfig = type { i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.anon.1, %struct.anon.2 }
%struct.anon.1 = type { i32, [256 x i8] }
%struct.anon.2 = type { [256 x i8], [256 x i8] }
%struct._GLFWctxconfig = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, %struct.anon.3 }
%struct.anon.3 = type { i32 }
%struct._GLFWjoystick = type { i32, ptr, i32, ptr, i32, ptr, i32, ptr, ptr, [33 x i8], ptr, %struct._GLFWjoystickLinux }
%struct._GLFWjoystickLinux = type { i32, [4096 x i8], [512 x i32], [64 x i32], [64 x %struct.input_absinfo], [4 x [2 x i32]] }
%struct.input_absinfo = type { i32, i32, i32, i32, i32, i32 }
%struct._GLFWtls = type { %struct._GLFWtlsPOSIX }
%struct._GLFWtlsPOSIX = type { i32, i32 }
%struct._GLFWmutex = type { %struct._GLFWmutexPOSIX }
%struct._GLFWmutexPOSIX = type { i32, %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%struct.anon.4 = type { i64, %struct._GLFWtimerPOSIX }
%struct._GLFWtimerPOSIX = type { i32, i64 }
%struct.anon.5 = type { i32, ptr, [2 x ptr], ptr, ptr, i32, i32, i32 }
%struct.anon.6 = type { ptr, ptr }
%struct._GLFWlibraryX11 = type { ptr, i32, i64, float, float, i64, i64, i32, ptr, i32, ptr, ptr, [5 x i8], [256 x i16], [349 x i16], double, double, ptr, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, %struct.anon.7, %struct.anon.8, %struct.anon.9, %struct.anon.10, %struct.anon.11, %struct.anon.12, %struct.anon.13, %struct.anon.14, %struct.anon.15, %struct.anon.16 }
%struct.anon.7 = type { i32, ptr, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.anon.8 = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.anon.9 = type { i32, i32, i32, i32, i32 }
%struct.anon.10 = type { i32, i64, i64 }
%struct.anon.11 = type { ptr, ptr, ptr, ptr }
%struct.anon.12 = type { i32, ptr, i32, i32, ptr, ptr, ptr }
%struct.anon.13 = type { ptr, ptr }
%struct.anon.14 = type { i32, ptr, i32, i32, ptr, ptr, ptr, ptr }
%struct.anon.15 = type { i32, ptr, i32, i32, i32, i32, i32, ptr, ptr }
%struct.anon.16 = type { i32, ptr, i32, i32, i32, i32, ptr, ptr, ptr }
%struct._GLFWlibraryGLX = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct._GLFWlibraryLinux = type { i32, i32, %struct.re_pattern_buffer, i32 }
%struct.re_pattern_buffer = type { ptr, i64, i64, i64, ptr, ptr, i64, i8 }
%struct._GLFWlibraryEGL = type { ptr, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._GLFWlibraryOSMesa = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@__const._glfwInitGLX.sonames = external hidden unnamed_addr constant [3 x ptr], align 16
@_glfw = external global %struct._GLFWlibrary, align 8
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @_glfwInitGLX() local_unnamed_addr #0 {
  %1 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132976), align 8, !tbaa !5
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %.preheader, label %114

.preheader:                                       ; preds = %0
  %2 = load ptr, ptr @__const._glfwInitGLX.sonames, align 16, !tbaa !46
  %.not3658 = icmp eq ptr %2, null
  br i1 %.not3658, label %._crit_edge, label %.lr.ph

3:                                                ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %4 = getelementptr inbounds [3 x ptr], ptr @__const._glfwInitGLX.sonames, i64 0, i64 %indvars.iv.next
  %5 = load ptr, ptr %4, align 8, !tbaa !46
  %.not36 = icmp eq ptr %5, null
  br i1 %.not36, label %._crit_edge, label %.lr.ph, !llvm.loop !47

.lr.ph:                                           ; preds = %.preheader, %3
  %indvars.iv = phi i64 [ %indvars.iv.next, %3 ], [ 0, %.preheader ]
  %6 = phi ptr [ %5, %3 ], [ %2, %.preheader ]
  %7 = tail call ptr @dlopen(ptr noundef nonnull %6, i32 noundef 1) #3
  store ptr %7, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132976), align 8, !tbaa !5
  %.not37 = icmp eq ptr %7, null
  br i1 %.not37, label %3, label %.thread

._crit_edge:                                      ; preds = %3, %.preheader
  tail call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef nonnull @.str.2) #3
  br label %114

.thread:                                          ; preds = %.lr.ph
  %8 = tail call ptr @dlsym(ptr noundef nonnull %7, ptr noundef nonnull @.str.3) #3
  store ptr %8, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132984), align 8, !tbaa !49
  %9 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132976), align 8, !tbaa !5
  %10 = tail call ptr @dlsym(ptr noundef %9, ptr noundef nonnull @.str.4) #3
  store ptr %10, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132992), align 8, !tbaa !50
  %11 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132976), align 8, !tbaa !5
  %12 = tail call ptr @dlsym(ptr noundef %11, ptr noundef nonnull @.str.5) #3
  store ptr %12, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133000), align 8, !tbaa !51
  %13 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132976), align 8, !tbaa !5
  %14 = tail call ptr @dlsym(ptr noundef %13, ptr noundef nonnull @.str.6) #3
  store ptr %14, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133008), align 8, !tbaa !52
  %15 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132976), align 8, !tbaa !5
  %16 = tail call ptr @dlsym(ptr noundef %15, ptr noundef nonnull @.str.7) #3
  store ptr %16, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133016), align 8, !tbaa !53
  %17 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132976), align 8, !tbaa !5
  %18 = tail call ptr @dlsym(ptr noundef %17, ptr noundef nonnull @.str.8) #3
  store ptr %18, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133024), align 8, !tbaa !54
  %19 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132976), align 8, !tbaa !5
  %20 = tail call ptr @dlsym(ptr noundef %19, ptr noundef nonnull @.str.9) #3
  store ptr %20, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133032), align 8, !tbaa !55
  %21 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132976), align 8, !tbaa !5
  %22 = tail call ptr @dlsym(ptr noundef %21, ptr noundef nonnull @.str.10) #3
  store ptr %22, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133040), align 8, !tbaa !56
  %23 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132976), align 8, !tbaa !5
  %24 = tail call ptr @dlsym(ptr noundef %23, ptr noundef nonnull @.str.11) #3
  store ptr %24, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133048), align 8, !tbaa !57
  %25 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132976), align 8, !tbaa !5
  %26 = tail call ptr @dlsym(ptr noundef %25, ptr noundef nonnull @.str.12) #3
  store ptr %26, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133056), align 8, !tbaa !58
  %27 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132976), align 8, !tbaa !5
  %28 = tail call ptr @dlsym(ptr noundef %27, ptr noundef nonnull @.str.13) #3
  store ptr %28, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133072), align 8, !tbaa !59
  %29 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132976), align 8, !tbaa !5
  %30 = tail call ptr @dlsym(ptr noundef %29, ptr noundef nonnull @.str.14) #3
  store ptr %30, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133080), align 8, !tbaa !60
  %31 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132976), align 8, !tbaa !5
  %32 = tail call ptr @dlsym(ptr noundef %31, ptr noundef nonnull @.str.15) #3
  store ptr %32, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133088), align 8, !tbaa !61
  %33 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132976), align 8, !tbaa !5
  %34 = tail call ptr @dlsym(ptr noundef %33, ptr noundef nonnull @.str.16) #3
  store ptr %34, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133096), align 8, !tbaa !62
  %35 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132976), align 8, !tbaa !5
  %36 = tail call ptr @dlsym(ptr noundef %35, ptr noundef nonnull @.str.17) #3
  store ptr %36, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133064), align 8, !tbaa !63
  %37 = load <8 x ptr>, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132984), align 8
  %.fr = freeze <8 x ptr> %37
  %38 = load <2 x ptr>, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133048), align 8
  %39 = load <2 x ptr>, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133072), align 8
  %40 = shufflevector <2 x ptr> %38, <2 x ptr> %39, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  %.fr68 = freeze <4 x ptr> %40
  %41 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133088), align 8
  %.fr71 = freeze ptr %41
  %42 = icmp ne ptr %.fr71, null
  %43 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133096), align 8
  %.fr69 = freeze ptr %43
  %44 = icmp ne ptr %.fr69, null
  %45 = icmp ne ptr %36, null
  %46 = icmp eq <8 x ptr> %.fr, zeroinitializer
  %47 = bitcast <8 x i1> %46 to i8
  %48 = icmp eq i8 %47, 0
  %49 = icmp eq <4 x ptr> %.fr68, zeroinitializer
  %50 = bitcast <4 x i1> %49 to i4
  %51 = icmp eq i4 %50, 0
  %op.rdx = and i1 %48, %51
  %op.rdx65 = and i1 %op.rdx, %42
  %52 = and i1 %op.rdx65, %44
  %op.rdx67 = select i1 %52, i1 %45, i1 false
  br i1 %op.rdx67, label %54, label %53

53:                                               ; preds = %.thread
  tail call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65544, ptr noundef nonnull @.str.18) #3
  br label %114

54:                                               ; preds = %.thread
  %55 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 130752), align 8, !tbaa !64
  %56 = extractelement <8 x ptr> %.fr, i64 3
  %57 = tail call i32 %56(ptr noundef %55, ptr noundef nonnull getelementptr inbounds (i8, ptr @_glfw, i64 132972), ptr noundef nonnull getelementptr inbounds (i8, ptr @_glfw, i64 132968)) #3
  %.not39 = icmp eq i32 %57, 0
  br i1 %.not39, label %58, label %59

58:                                               ; preds = %54
  tail call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef nonnull @.str.19) #3
  br label %114

59:                                               ; preds = %54
  %60 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133016), align 8, !tbaa !53
  %61 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 130752), align 8, !tbaa !64
  %62 = tail call i32 %60(ptr noundef %61, ptr noundef nonnull getelementptr inbounds (i8, ptr @_glfw, i64 132960), ptr noundef nonnull getelementptr inbounds (i8, ptr @_glfw, i64 132964)) #3
  %.not40 = icmp eq i32 %62, 0
  br i1 %.not40, label %63, label %64

63:                                               ; preds = %59
  tail call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef nonnull @.str.20) #3
  br label %114

64:                                               ; preds = %59
  %65 = load i32, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132960), align 8, !tbaa !65
  %66 = icmp eq i32 %65, 1
  %67 = load i32, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132964), align 4
  %68 = icmp slt i32 %67, 3
  %or.cond29 = select i1 %66, i1 %68, i1 false
  br i1 %or.cond29, label %69, label %70

69:                                               ; preds = %64
  tail call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef nonnull @.str.21) #3
  br label %114

70:                                               ; preds = %64
  %71 = tail call i32 @extensionSupportedGLX(ptr noundef nonnull @.str.22)
  %.not41 = icmp eq i32 %71, 0
  br i1 %.not41, label %75, label %72

72:                                               ; preds = %70
  %73 = tail call ptr @getProcAddressGLX(ptr noundef nonnull @.str.23)
  store ptr %73, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133112), align 8, !tbaa !66
  %.not42 = icmp eq ptr %73, null
  br i1 %.not42, label %75, label %74

74:                                               ; preds = %72
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133140), align 4, !tbaa !67
  br label %75

75:                                               ; preds = %72, %74, %70
  %76 = tail call i32 @extensionSupportedGLX(ptr noundef nonnull @.str.24)
  %.not43 = icmp eq i32 %76, 0
  br i1 %.not43, label %80, label %77

77:                                               ; preds = %75
  %78 = tail call ptr @getProcAddressGLX(ptr noundef nonnull @.str.25)
  store ptr %78, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133104), align 8, !tbaa !68
  %.not44 = icmp eq ptr %78, null
  br i1 %.not44, label %80, label %79

79:                                               ; preds = %77
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133136), align 8, !tbaa !69
  br label %80

80:                                               ; preds = %77, %79, %75
  %81 = tail call i32 @extensionSupportedGLX(ptr noundef nonnull @.str.26)
  %.not45 = icmp eq i32 %81, 0
  br i1 %.not45, label %85, label %82

82:                                               ; preds = %80
  %83 = tail call ptr @getProcAddressGLX(ptr noundef nonnull @.str.27)
  store ptr %83, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133120), align 8, !tbaa !70
  %.not46 = icmp eq ptr %83, null
  br i1 %.not46, label %85, label %84

84:                                               ; preds = %82
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133144), align 8, !tbaa !71
  br label %85

85:                                               ; preds = %82, %84, %80
  %86 = tail call i32 @extensionSupportedGLX(ptr noundef nonnull @.str.28)
  %.not47 = icmp eq i32 %86, 0
  br i1 %.not47, label %88, label %87

87:                                               ; preds = %85
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133148), align 4, !tbaa !72
  br label %88

88:                                               ; preds = %87, %85
  %89 = tail call i32 @extensionSupportedGLX(ptr noundef nonnull @.str.29)
  %.not48 = icmp eq i32 %89, 0
  br i1 %.not48, label %91, label %90

90:                                               ; preds = %88
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133152), align 8, !tbaa !73
  br label %91

91:                                               ; preds = %90, %88
  %92 = tail call i32 @extensionSupportedGLX(ptr noundef nonnull @.str.30)
  %.not49 = icmp eq i32 %92, 0
  br i1 %.not49, label %94, label %93

93:                                               ; preds = %91
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133156), align 4, !tbaa !74
  br label %94

94:                                               ; preds = %93, %91
  %95 = tail call i32 @extensionSupportedGLX(ptr noundef nonnull @.str.31)
  %.not50 = icmp eq i32 %95, 0
  br i1 %.not50, label %99, label %96

96:                                               ; preds = %94
  %97 = tail call ptr @getProcAddressGLX(ptr noundef nonnull @.str.32)
  store ptr %97, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133128), align 8, !tbaa !75
  %.not51 = icmp eq ptr %97, null
  br i1 %.not51, label %99, label %98

98:                                               ; preds = %96
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133160), align 8, !tbaa !76
  br label %99

99:                                               ; preds = %96, %98, %94
  %100 = tail call i32 @extensionSupportedGLX(ptr noundef nonnull @.str.33)
  %.not52 = icmp eq i32 %100, 0
  br i1 %.not52, label %102, label %101

101:                                              ; preds = %99
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133168), align 8, !tbaa !77
  br label %102

102:                                              ; preds = %101, %99
  %103 = tail call i32 @extensionSupportedGLX(ptr noundef nonnull @.str.34)
  %.not53 = icmp eq i32 %103, 0
  br i1 %.not53, label %105, label %104

104:                                              ; preds = %102
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133164), align 4, !tbaa !78
  br label %105

105:                                              ; preds = %104, %102
  %106 = tail call i32 @extensionSupportedGLX(ptr noundef nonnull @.str.35)
  %.not54 = icmp eq i32 %106, 0
  br i1 %.not54, label %108, label %107

107:                                              ; preds = %105
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133172), align 4, !tbaa !79
  br label %108

108:                                              ; preds = %107, %105
  %109 = tail call i32 @extensionSupportedGLX(ptr noundef nonnull @.str.36)
  %.not55 = icmp eq i32 %109, 0
  br i1 %.not55, label %111, label %110

110:                                              ; preds = %108
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133176), align 8, !tbaa !80
  br label %111

111:                                              ; preds = %110, %108
  %112 = tail call i32 @extensionSupportedGLX(ptr noundef nonnull @.str.37)
  %.not56 = icmp eq i32 %112, 0
  br i1 %.not56, label %114, label %113

113:                                              ; preds = %111
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133180), align 4, !tbaa !81
  br label %114

114:                                              ; preds = %111, %113, %0, %69, %63, %58, %53, %._crit_edge
  %.033 = phi i32 [ 0, %69 ], [ 0, %63 ], [ 0, %58 ], [ 0, %53 ], [ 0, %._crit_edge ], [ 1, %0 ], [ 1, %113 ], [ 1, %111 ]
  ret i32 %.033
}

; Function Attrs: nounwind
declare ptr @dlopen(ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @_glfwInputError(i32 noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: nounwind
declare ptr @dlsym(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @extensionSupportedGLX(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden ptr @getProcAddressGLX(ptr noundef) local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !16, i64 132976}
!6 = !{!"_GLFWlibrary", !7, i64 0, !10, i64 8, !16, i64 992, !16, i64 1000, !16, i64 1008, !16, i64 1016, !7, i64 1024, !8, i64 1032, !16, i64 130568, !7, i64 130576, !21, i64 130580, !21, i64 130588, !23, i64 130600, !25, i64 130648, !27, i64 130672, !28, i64 130736, !29, i64 130752, !41, i64 132960, !42, i64 133184, !44, i64 133264, !45, i64 133440}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !13, i64 16, !15, i64 88, !19, i64 920, !7, i64 976}
!11 = !{!"_GLFWinitconfig", !7, i64 0, !12, i64 4}
!12 = !{!"", !7, i64 0, !7, i64 4}
!13 = !{!"_GLFWfbconfig", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !14, i64 64}
!14 = !{!"long", !8, i64 0}
!15 = !{!"_GLFWwndconfig", !7, i64 0, !7, i64 4, !16, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !17, i64 56, !18, i64 316}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!"", !7, i64 0, !8, i64 4}
!18 = !{!"", !8, i64 0, !8, i64 256}
!19 = !{!"_GLFWctxconfig", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !16, i64 40, !20, i64 48}
!20 = !{!"", !7, i64 0}
!21 = !{!"_GLFWtls", !22, i64 0}
!22 = !{!"_GLFWtlsPOSIX", !7, i64 0, !7, i64 4}
!23 = !{!"_GLFWmutex", !24, i64 0}
!24 = !{!"_GLFWmutexPOSIX", !7, i64 0, !8, i64 8}
!25 = !{!"", !14, i64 0, !26, i64 8}
!26 = !{!"_GLFWtimerPOSIX", !7, i64 0, !14, i64 8}
!27 = !{!"", !7, i64 0, !16, i64 8, !8, i64 16, !16, i64 32, !16, i64 40, !7, i64 48, !7, i64 52, !7, i64 56}
!28 = !{!"", !16, i64 0, !16, i64 8}
!29 = !{!"_GLFWlibraryX11", !16, i64 0, !7, i64 8, !14, i64 16, !30, i64 24, !30, i64 28, !14, i64 32, !14, i64 40, !7, i64 48, !16, i64 56, !7, i64 64, !16, i64 72, !16, i64 80, !8, i64 88, !8, i64 94, !8, i64 606, !31, i64 1304, !31, i64 1312, !16, i64 1320, !14, i64 1328, !14, i64 1336, !14, i64 1344, !14, i64 1352, !14, i64 1360, !14, i64 1368, !14, i64 1376, !14, i64 1384, !14, i64 1392, !14, i64 1400, !14, i64 1408, !14, i64 1416, !14, i64 1424, !14, i64 1432, !14, i64 1440, !14, i64 1448, !14, i64 1456, !14, i64 1464, !14, i64 1472, !14, i64 1480, !14, i64 1488, !14, i64 1496, !14, i64 1504, !14, i64 1512, !14, i64 1520, !14, i64 1528, !14, i64 1536, !14, i64 1544, !14, i64 1552, !14, i64 1560, !14, i64 1568, !14, i64 1576, !14, i64 1584, !14, i64 1592, !14, i64 1600, !14, i64 1608, !14, i64 1616, !14, i64 1624, !14, i64 1632, !14, i64 1640, !14, i64 1648, !14, i64 1656, !14, i64 1664, !14, i64 1672, !14, i64 1680, !14, i64 1688, !32, i64 1696, !33, i64 1872, !34, i64 1900, !35, i64 1920, !36, i64 1944, !37, i64 1976, !28, i64 2024, !38, i64 2040, !39, i64 2096, !40, i64 2152}
!30 = !{!"float", !8, i64 0}
!31 = !{!"double", !8, i64 0}
!32 = !{!"", !7, i64 0, !16, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168}
!33 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24}
!34 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16}
!35 = !{!"", !7, i64 0, !14, i64 8, !14, i64 16}
!36 = !{!"", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24}
!37 = !{!"", !7, i64 0, !16, i64 8, !7, i64 16, !7, i64 20, !16, i64 24, !16, i64 32, !16, i64 40}
!38 = !{!"", !7, i64 0, !16, i64 8, !7, i64 16, !7, i64 20, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48}
!39 = !{!"", !7, i64 0, !16, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !16, i64 40, !16, i64 48}
!40 = !{!"", !7, i64 0, !16, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !16, i64 32, !16, i64 40, !16, i64 48}
!41 = !{!"_GLFWlibraryGLX", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168, !7, i64 176, !7, i64 180, !7, i64 184, !7, i64 188, !7, i64 192, !7, i64 196, !7, i64 200, !7, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !7, i64 220}
!42 = !{!"_GLFWlibraryLinux", !7, i64 0, !7, i64 4, !43, i64 8, !7, i64 72}
!43 = !{!"re_pattern_buffer", !16, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !16, i64 32, !16, i64 40, !14, i64 48, !7, i64 56, !7, i64 56, !7, i64 56, !7, i64 56, !7, i64 56, !7, i64 56, !7, i64 56}
!44 = !{!"_GLFWlibraryEGL", !16, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168}
!45 = !{!"_GLFWlibraryOSMesa", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !16, i64 56}
!46 = !{!16, !16, i64 0}
!47 = distinct !{!47, !48}
!48 = !{!"llvm.loop.mustprogress"}
!49 = !{!6, !16, i64 132984}
!50 = !{!6, !16, i64 132992}
!51 = !{!6, !16, i64 133000}
!52 = !{!6, !16, i64 133008}
!53 = !{!6, !16, i64 133016}
!54 = !{!6, !16, i64 133024}
!55 = !{!6, !16, i64 133032}
!56 = !{!6, !16, i64 133040}
!57 = !{!6, !16, i64 133048}
!58 = !{!6, !16, i64 133056}
!59 = !{!6, !16, i64 133072}
!60 = !{!6, !16, i64 133080}
!61 = !{!6, !16, i64 133088}
!62 = !{!6, !16, i64 133096}
!63 = !{!6, !16, i64 133064}
!64 = !{!6, !16, i64 130752}
!65 = !{!6, !7, i64 132960}
!66 = !{!6, !16, i64 133112}
!67 = !{!6, !7, i64 133140}
!68 = !{!6, !16, i64 133104}
!69 = !{!6, !7, i64 133136}
!70 = !{!6, !16, i64 133120}
!71 = !{!6, !7, i64 133144}
!72 = !{!6, !7, i64 133148}
!73 = !{!6, !7, i64 133152}
!74 = !{!6, !7, i64 133156}
!75 = !{!6, !16, i64 133128}
!76 = !{!6, !7, i64 133160}
!77 = !{!6, !7, i64 133168}
!78 = !{!6, !7, i64 133164}
!79 = !{!6, !7, i64 133172}
!80 = !{!6, !7, i64 133176}
!81 = !{!6, !7, i64 133180}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass