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

; 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.1, ptr, ptr, ptr, ptr, i32, [16 x %struct._GLFWjoystick], ptr, i32, %struct._GLFWtls, %struct._GLFWtls, %struct._GLFWmutex, %struct.anon.5, %struct.anon.6, %struct.anon.7, %struct._GLFWlibraryX11, %struct._GLFWlibraryGLX, %struct._GLFWlibraryLinux, %struct._GLFWlibraryEGL, %struct._GLFWlibraryOSMesa }
%struct.anon.1 = type { %struct._GLFWinitconfig, %struct._GLFWfbconfig, %struct._GLFWwndconfig, %struct._GLFWctxconfig, i32 }
%struct._GLFWinitconfig = type { i32, %struct.anon.2 }
%struct.anon.2 = 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.3, %struct.anon.4 }
%struct.anon.3 = type { i32, [256 x i8] }
%struct.anon.4 = type { [256 x i8], [256 x i8] }
%struct._GLFWctxconfig = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, %struct.anon }
%struct.anon = 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.5 = type { i64, %struct._GLFWtimerPOSIX }
%struct._GLFWtimerPOSIX = type { i32, i64 }
%struct.anon.6 = type { i32, ptr, [2 x ptr], ptr, ptr, i32, i32, i32 }
%struct.anon.7 = 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.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.17 }
%struct.anon.8 = 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.9 = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.anon.10 = type { i32, i32, i32, i32, i32 }
%struct.anon.11 = type { i32, i64, i64 }
%struct.anon.12 = type { ptr, ptr, ptr, ptr }
%struct.anon.13 = type { i32, ptr, i32, i32, ptr, ptr, ptr }
%struct.anon.14 = type { ptr, ptr }
%struct.anon.15 = type { i32, ptr, i32, i32, ptr, ptr, ptr, ptr }
%struct.anon.16 = type { i32, ptr, i32, i32, i32, i32, i32, ptr, ptr }
%struct.anon.17 = 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 }
%struct._GLFWwindow = type { ptr, i32, i32, i32, i32, i32, i32, ptr, %struct.GLFWvidmode, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [8 x i8], [349 x i8], double, double, %struct._GLFWcontext, %struct.anon.0, %struct._GLFWwindowX11 }
%struct.GLFWvidmode = type { i32, i32, i32, i32, i32, i32 }
%struct._GLFWcontext = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct._GLFWcontextGLX, %struct._GLFWcontextEGL, %struct._GLFWcontextOSMesa }
%struct._GLFWcontextGLX = type { ptr, i64 }
%struct._GLFWcontextEGL = type { ptr, ptr, ptr, ptr }
%struct._GLFWcontextOSMesa = type { ptr, i32, i32, ptr }
%struct.anon.0 = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._GLFWwindowX11 = type { i64, i64, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64 }

@__const._glfwRefreshContextAttribs.prefixes = external hidden unnamed_addr constant [4 x ptr], align 16
@_glfw = external global %struct._GLFWlibrary, align 8
@.str.12 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [8 x i8], align 1

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

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @_glfwRefreshContextAttribs(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca [4 x ptr], align 16
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const._glfwRefreshContextAttribs.prefixes, i64 32, i1 false)
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct._GLFWctxconfig, ptr %18, i32 0, i32 1
  %20 = load i32, ptr %19, align 4, !tbaa !9
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct._GLFWwindow, ptr %21, i32 0, i32 25
  %23 = getelementptr inbounds %struct._GLFWcontext, ptr %22, i32 0, i32 1
  store i32 %20, ptr %23, align 4, !tbaa !13
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct._GLFWwindow, ptr %24, i32 0, i32 25
  %26 = getelementptr inbounds %struct._GLFWcontext, ptr %25, i32 0, i32 0
  store i32 196609, ptr %26, align 8, !tbaa !24
  %27 = call ptr @_glfwPlatformGetTls(ptr noundef getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 11))
  store ptr %27, ptr %7, align 8, !tbaa !5
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  call void @glfwMakeContextCurrent(ptr noundef %28)
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct._GLFWwindow, ptr %29, i32 0, i32 25
  %31 = getelementptr inbounds %struct._GLFWcontext, ptr %30, i32 0, i32 18
  %32 = load ptr, ptr %31, align 8, !tbaa !25
  %33 = call ptr %32(ptr noundef @.str.12)
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct._GLFWwindow, ptr %34, i32 0, i32 25
  %36 = getelementptr inbounds %struct._GLFWcontext, ptr %35, i32 0, i32 12
  store ptr %33, ptr %36, align 8, !tbaa !26
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct._GLFWwindow, ptr %37, i32 0, i32 25
  %39 = getelementptr inbounds %struct._GLFWcontext, ptr %38, i32 0, i32 18
  %40 = load ptr, ptr %39, align 8, !tbaa !25
  %41 = call ptr %40(ptr noundef @.str.13)
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct._GLFWwindow, ptr %42, i32 0, i32 25
  %44 = getelementptr inbounds %struct._GLFWcontext, ptr %43, i32 0, i32 13
  store ptr %41, ptr %44, align 8, !tbaa !27
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct._GLFWwindow, ptr %45, i32 0, i32 25
  %47 = getelementptr inbounds %struct._GLFWcontext, ptr %46, i32 0, i32 12
  %48 = load ptr, ptr %47, align 8, !tbaa !26
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %56

50:                                               ; preds = %2
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct._GLFWwindow, ptr %51, i32 0, i32 25
  %53 = getelementptr inbounds %struct._GLFWcontext, ptr %52, i32 0, i32 13
  %54 = load ptr, ptr %53, align 8, !tbaa !27
  %55 = icmp ne ptr %54, null
  br i1 %55, label %58, label %56

56:                                               ; preds = %50, %2
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65544, ptr noundef @.str.14)
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  call void @glfwMakeContextCurrent(ptr noundef %57)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %407

58:                                               ; preds = %50
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct._GLFWwindow, ptr %59, i32 0, i32 25
  %61 = getelementptr inbounds %struct._GLFWcontext, ptr %60, i32 0, i32 13
  %62 = load ptr, ptr %61, align 8, !tbaa !27
  %63 = call ptr %62(i32 noundef 7938)
  store ptr %63, ptr %8, align 8, !tbaa !5
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = icmp ne ptr %64, null
  br i1 %65, label %75, label %66

66:                                               ; preds = %58
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct._GLFWctxconfig, ptr %67, i32 0, i32 0
  %69 = load i32, ptr %68, align 8, !tbaa !28
  %70 = icmp eq i32 %69, 196609
  br i1 %70, label %71, label %72

71:                                               ; preds = %66
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65544, ptr noundef @.str.15)
  br label %73

72:                                               ; preds = %66
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65544, ptr noundef @.str.16)
  br label %73

73:                                               ; preds = %72, %71
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  call void @glfwMakeContextCurrent(ptr noundef %74)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %407

75:                                               ; preds = %58
  store i32 0, ptr %6, align 4, !tbaa !29
  br label %76

76:                                               ; preds = %107, %75
  %77 = load i32, ptr %6, align 4, !tbaa !29
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [4 x ptr], ptr %9, i64 0, i64 %78
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %110

82:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %83 = load i32, ptr %6, align 4, !tbaa !29
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [4 x ptr], ptr %9, i64 0, i64 %84
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = call i64 @strlen(ptr noundef %86) #7
  store i64 %87, ptr %11, align 8, !tbaa !30
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = load i32, ptr %6, align 4, !tbaa !29
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [4 x ptr], ptr %9, i64 0, i64 %90
  %92 = load ptr, ptr %91, align 8, !tbaa !5
  %93 = load i64, ptr %11, align 8, !tbaa !30
  %94 = call i32 @strncmp(ptr noundef %88, ptr noundef %92, i64 noundef %93) #7
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %96, label %103

96:                                               ; preds = %82
  %97 = load i64, ptr %11, align 8, !tbaa !30
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds i8, ptr %98, i64 %97
  store ptr %99, ptr %8, align 8, !tbaa !5
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct._GLFWwindow, ptr %100, i32 0, i32 25
  %102 = getelementptr inbounds %struct._GLFWcontext, ptr %101, i32 0, i32 0
  store i32 196610, ptr %102, align 8, !tbaa !24
  store i32 2, ptr %10, align 4
  br label %104

103:                                              ; preds = %82
  store i32 0, ptr %10, align 4
  br label %104

104:                                              ; preds = %103, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %105 = load i32, ptr %10, align 4
  switch i32 %105, label %409 [
    i32 0, label %106
    i32 2, label %110
  ]

106:                                              ; preds = %104
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %6, align 4, !tbaa !29
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %6, align 4, !tbaa !29
  br label %76, !llvm.loop !31

110:                                              ; preds = %104, %76
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct._GLFWwindow, ptr %112, i32 0, i32 25
  %114 = getelementptr inbounds %struct._GLFWcontext, ptr %113, i32 0, i32 2
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct._GLFWwindow, ptr %115, i32 0, i32 25
  %117 = getelementptr inbounds %struct._GLFWcontext, ptr %116, i32 0, i32 3
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct._GLFWwindow, ptr %118, i32 0, i32 25
  %120 = getelementptr inbounds %struct._GLFWcontext, ptr %119, i32 0, i32 4
  %121 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %111, ptr noundef @.str.17, ptr noundef %114, ptr noundef %117, ptr noundef %120) #6
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %133, label %123

123:                                              ; preds = %110
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct._GLFWwindow, ptr %124, i32 0, i32 25
  %126 = getelementptr inbounds %struct._GLFWcontext, ptr %125, i32 0, i32 0
  %127 = load i32, ptr %126, align 8, !tbaa !24
  %128 = icmp eq i32 %127, 196609
  br i1 %128, label %129, label %130

129:                                              ; preds = %123
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65544, ptr noundef @.str.18)
  br label %131

130:                                              ; preds = %123
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65544, ptr noundef @.str.19)
  br label %131

131:                                              ; preds = %130, %129
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  call void @glfwMakeContextCurrent(ptr noundef %132)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %407

133:                                              ; preds = %110
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct._GLFWwindow, ptr %134, i32 0, i32 25
  %136 = getelementptr inbounds %struct._GLFWcontext, ptr %135, i32 0, i32 2
  %137 = load i32, ptr %136, align 8, !tbaa !33
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct._GLFWctxconfig, ptr %138, i32 0, i32 2
  %140 = load i32, ptr %139, align 8, !tbaa !34
  %141 = icmp slt i32 %137, %140
  br i1 %141, label %160, label %142

142:                                              ; preds = %133
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct._GLFWwindow, ptr %143, i32 0, i32 25
  %145 = getelementptr inbounds %struct._GLFWcontext, ptr %144, i32 0, i32 2
  %146 = load i32, ptr %145, align 8, !tbaa !33
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct._GLFWctxconfig, ptr %147, i32 0, i32 2
  %149 = load i32, ptr %148, align 8, !tbaa !34
  %150 = icmp eq i32 %146, %149
  br i1 %150, label %151, label %198

151:                                              ; preds = %142
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct._GLFWwindow, ptr %152, i32 0, i32 25
  %154 = getelementptr inbounds %struct._GLFWcontext, ptr %153, i32 0, i32 3
  %155 = load i32, ptr %154, align 4, !tbaa !35
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct._GLFWctxconfig, ptr %156, i32 0, i32 3
  %158 = load i32, ptr %157, align 4, !tbaa !36
  %159 = icmp slt i32 %155, %158
  br i1 %159, label %160, label %198

160:                                              ; preds = %151, %133
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct._GLFWwindow, ptr %161, i32 0, i32 25
  %163 = getelementptr inbounds %struct._GLFWcontext, ptr %162, i32 0, i32 0
  %164 = load i32, ptr %163, align 8, !tbaa !24
  %165 = icmp eq i32 %164, 196609
  br i1 %165, label %166, label %181

166:                                              ; preds = %160
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct._GLFWctxconfig, ptr %167, i32 0, i32 2
  %169 = load i32, ptr %168, align 8, !tbaa !34
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct._GLFWctxconfig, ptr %170, i32 0, i32 3
  %172 = load i32, ptr %171, align 4, !tbaa !36
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct._GLFWwindow, ptr %173, i32 0, i32 25
  %175 = getelementptr inbounds %struct._GLFWcontext, ptr %174, i32 0, i32 2
  %176 = load i32, ptr %175, align 8, !tbaa !33
  %177 = load ptr, ptr %4, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct._GLFWwindow, ptr %177, i32 0, i32 25
  %179 = getelementptr inbounds %struct._GLFWcontext, ptr %178, i32 0, i32 3
  %180 = load i32, ptr %179, align 4, !tbaa !35
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65543, ptr noundef @.str.20, i32 noundef %169, i32 noundef %172, i32 noundef %176, i32 noundef %180)
  br label %196

181:                                              ; preds = %160
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct._GLFWctxconfig, ptr %182, i32 0, i32 2
  %184 = load i32, ptr %183, align 8, !tbaa !34
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct._GLFWctxconfig, ptr %185, i32 0, i32 3
  %187 = load i32, ptr %186, align 4, !tbaa !36
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct._GLFWwindow, ptr %188, i32 0, i32 25
  %190 = getelementptr inbounds %struct._GLFWcontext, ptr %189, i32 0, i32 2
  %191 = load i32, ptr %190, align 8, !tbaa !33
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct._GLFWwindow, ptr %192, i32 0, i32 25
  %194 = getelementptr inbounds %struct._GLFWcontext, ptr %193, i32 0, i32 3
  %195 = load i32, ptr %194, align 4, !tbaa !35
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65543, ptr noundef @.str.21, i32 noundef %184, i32 noundef %187, i32 noundef %191, i32 noundef %195)
  br label %196

196:                                              ; preds = %181, %166
  %197 = load ptr, ptr %7, align 8, !tbaa !5
  call void @glfwMakeContextCurrent(ptr noundef %197)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %407

198:                                              ; preds = %151, %142
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct._GLFWwindow, ptr %199, i32 0, i32 25
  %201 = getelementptr inbounds %struct._GLFWcontext, ptr %200, i32 0, i32 2
  %202 = load i32, ptr %201, align 8, !tbaa !33
  %203 = icmp sge i32 %202, 3
  br i1 %203, label %204, label %221

204:                                              ; preds = %198
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct._GLFWwindow, ptr %205, i32 0, i32 25
  %207 = getelementptr inbounds %struct._GLFWcontext, ptr %206, i32 0, i32 18
  %208 = load ptr, ptr %207, align 8, !tbaa !25
  %209 = call ptr %208(ptr noundef @.str.22)
  %210 = load ptr, ptr %4, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct._GLFWwindow, ptr %210, i32 0, i32 25
  %212 = getelementptr inbounds %struct._GLFWcontext, ptr %211, i32 0, i32 11
  store ptr %209, ptr %212, align 8, !tbaa !37
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct._GLFWwindow, ptr %213, i32 0, i32 25
  %215 = getelementptr inbounds %struct._GLFWcontext, ptr %214, i32 0, i32 11
  %216 = load ptr, ptr %215, align 8, !tbaa !37
  %217 = icmp ne ptr %216, null
  br i1 %217, label %220, label %218

218:                                              ; preds = %204
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65544, ptr noundef @.str.14)
  %219 = load ptr, ptr %7, align 8, !tbaa !5
  call void @glfwMakeContextCurrent(ptr noundef %219)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %407

220:                                              ; preds = %204
  br label %221

221:                                              ; preds = %220, %198
  %222 = load ptr, ptr %4, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct._GLFWwindow, ptr %222, i32 0, i32 25
  %224 = getelementptr inbounds %struct._GLFWcontext, ptr %223, i32 0, i32 0
  %225 = load i32, ptr %224, align 8, !tbaa !24
  %226 = icmp eq i32 %225, 196609
  br i1 %226, label %227, label %347

227:                                              ; preds = %221
  %228 = load ptr, ptr %4, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct._GLFWwindow, ptr %228, i32 0, i32 25
  %230 = getelementptr inbounds %struct._GLFWcontext, ptr %229, i32 0, i32 2
  %231 = load i32, ptr %230, align 8, !tbaa !33
  %232 = icmp sge i32 %231, 3
  br i1 %232, label %233, label %275

233:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %234 = load ptr, ptr %4, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct._GLFWwindow, ptr %234, i32 0, i32 25
  %236 = getelementptr inbounds %struct._GLFWcontext, ptr %235, i32 0, i32 12
  %237 = load ptr, ptr %236, align 8, !tbaa !26
  call void %237(i32 noundef 33310, ptr noundef %12)
  %238 = load i32, ptr %12, align 4, !tbaa !29
  %239 = and i32 %238, 1
  %240 = icmp ne i32 %239, 0
  br i1 %240, label %241, label %245

241:                                              ; preds = %233
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct._GLFWwindow, ptr %242, i32 0, i32 25
  %244 = getelementptr inbounds %struct._GLFWcontext, ptr %243, i32 0, i32 5
  store i32 1, ptr %244, align 4, !tbaa !38
  br label %245

245:                                              ; preds = %241, %233
  %246 = load i32, ptr %12, align 4, !tbaa !29
  %247 = and i32 %246, 2
  %248 = icmp ne i32 %247, 0
  br i1 %248, label %249, label %253

249:                                              ; preds = %245
  %250 = load ptr, ptr %4, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct._GLFWwindow, ptr %250, i32 0, i32 25
  %252 = getelementptr inbounds %struct._GLFWcontext, ptr %251, i32 0, i32 6
  store i32 1, ptr %252, align 8, !tbaa !39
  br label %266

253:                                              ; preds = %245
  %254 = call i32 @glfwExtensionSupported(ptr noundef @.str.23)
  %255 = icmp ne i32 %254, 0
  br i1 %255, label %256, label %265

256:                                              ; preds = %253
  %257 = load ptr, ptr %5, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct._GLFWctxconfig, ptr %257, i32 0, i32 5
  %259 = load i32, ptr %258, align 4, !tbaa !40
  %260 = icmp ne i32 %259, 0
  br i1 %260, label %261, label %265

261:                                              ; preds = %256
  %262 = load ptr, ptr %4, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct._GLFWwindow, ptr %262, i32 0, i32 25
  %264 = getelementptr inbounds %struct._GLFWcontext, ptr %263, i32 0, i32 6
  store i32 1, ptr %264, align 8, !tbaa !39
  br label %265

265:                                              ; preds = %261, %256, %253
  br label %266

266:                                              ; preds = %265, %249
  %267 = load i32, ptr %12, align 4, !tbaa !29
  %268 = and i32 %267, 8
  %269 = icmp ne i32 %268, 0
  br i1 %269, label %270, label %274

270:                                              ; preds = %266
  %271 = load ptr, ptr %4, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct._GLFWwindow, ptr %271, i32 0, i32 25
  %273 = getelementptr inbounds %struct._GLFWcontext, ptr %272, i32 0, i32 7
  store i32 1, ptr %273, align 4, !tbaa !41
  br label %274

274:                                              ; preds = %270, %266
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %275

275:                                              ; preds = %274, %227
  %276 = load ptr, ptr %4, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct._GLFWwindow, ptr %276, i32 0, i32 25
  %278 = getelementptr inbounds %struct._GLFWcontext, ptr %277, i32 0, i32 2
  %279 = load i32, ptr %278, align 8, !tbaa !33
  %280 = icmp sge i32 %279, 4
  br i1 %280, label %293, label %281

281:                                              ; preds = %275
  %282 = load ptr, ptr %4, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct._GLFWwindow, ptr %282, i32 0, i32 25
  %284 = getelementptr inbounds %struct._GLFWcontext, ptr %283, i32 0, i32 2
  %285 = load i32, ptr %284, align 8, !tbaa !33
  %286 = icmp eq i32 %285, 3
  br i1 %286, label %287, label %323

287:                                              ; preds = %281
  %288 = load ptr, ptr %4, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct._GLFWwindow, ptr %288, i32 0, i32 25
  %290 = getelementptr inbounds %struct._GLFWcontext, ptr %289, i32 0, i32 3
  %291 = load i32, ptr %290, align 4, !tbaa !35
  %292 = icmp sge i32 %291, 2
  br i1 %292, label %293, label %323

293:                                              ; preds = %287, %275
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %294 = load ptr, ptr %4, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct._GLFWwindow, ptr %294, i32 0, i32 25
  %296 = getelementptr inbounds %struct._GLFWcontext, ptr %295, i32 0, i32 12
  %297 = load ptr, ptr %296, align 8, !tbaa !26
  call void %297(i32 noundef 37158, ptr noundef %13)
  %298 = load i32, ptr %13, align 4, !tbaa !29
  %299 = and i32 %298, 2
  %300 = icmp ne i32 %299, 0
  br i1 %300, label %301, label %305

301:                                              ; preds = %293
  %302 = load ptr, ptr %4, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct._GLFWwindow, ptr %302, i32 0, i32 25
  %304 = getelementptr inbounds %struct._GLFWcontext, ptr %303, i32 0, i32 8
  store i32 204802, ptr %304, align 8, !tbaa !42
  br label %322

305:                                              ; preds = %293
  %306 = load i32, ptr %13, align 4, !tbaa !29
  %307 = and i32 %306, 1
  %308 = icmp ne i32 %307, 0
  br i1 %308, label %309, label %313

309:                                              ; preds = %305
  %310 = load ptr, ptr %4, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct._GLFWwindow, ptr %310, i32 0, i32 25
  %312 = getelementptr inbounds %struct._GLFWcontext, ptr %311, i32 0, i32 8
  store i32 204801, ptr %312, align 8, !tbaa !42
  br label %321

313:                                              ; preds = %305
  %314 = call i32 @glfwExtensionSupported(ptr noundef @.str.24)
  %315 = icmp ne i32 %314, 0
  br i1 %315, label %316, label %320

316:                                              ; preds = %313
  %317 = load ptr, ptr %4, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct._GLFWwindow, ptr %317, i32 0, i32 25
  %319 = getelementptr inbounds %struct._GLFWcontext, ptr %318, i32 0, i32 8
  store i32 204802, ptr %319, align 8, !tbaa !42
  br label %320

320:                                              ; preds = %316, %313
  br label %321

321:                                              ; preds = %320, %309
  br label %322

322:                                              ; preds = %321, %301
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %323

323:                                              ; preds = %322, %287, %281
  %324 = call i32 @glfwExtensionSupported(ptr noundef @.str.25)
  %325 = icmp ne i32 %324, 0
  br i1 %325, label %326, label %346

326:                                              ; preds = %323
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %327 = load ptr, ptr %4, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct._GLFWwindow, ptr %327, i32 0, i32 25
  %329 = getelementptr inbounds %struct._GLFWcontext, ptr %328, i32 0, i32 12
  %330 = load ptr, ptr %329, align 8, !tbaa !26
  call void %330(i32 noundef 33366, ptr noundef %14)
  %331 = load i32, ptr %14, align 4, !tbaa !29
  %332 = icmp eq i32 %331, 33362
  br i1 %332, label %333, label %337

333:                                              ; preds = %326
  %334 = load ptr, ptr %4, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct._GLFWwindow, ptr %334, i32 0, i32 25
  %336 = getelementptr inbounds %struct._GLFWcontext, ptr %335, i32 0, i32 9
  store i32 200706, ptr %336, align 4, !tbaa !43
  br label %345

337:                                              ; preds = %326
  %338 = load i32, ptr %14, align 4, !tbaa !29
  %339 = icmp eq i32 %338, 33377
  br i1 %339, label %340, label %344

340:                                              ; preds = %337
  %341 = load ptr, ptr %4, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct._GLFWwindow, ptr %341, i32 0, i32 25
  %343 = getelementptr inbounds %struct._GLFWcontext, ptr %342, i32 0, i32 9
  store i32 200705, ptr %343, align 4, !tbaa !43
  br label %344

344:                                              ; preds = %340, %337
  br label %345

345:                                              ; preds = %344, %333
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %346

346:                                              ; preds = %345, %323
  br label %371

347:                                              ; preds = %221
  %348 = call i32 @glfwExtensionSupported(ptr noundef @.str.26)
  %349 = icmp ne i32 %348, 0
  br i1 %349, label %350, label %370

350:                                              ; preds = %347
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %351 = load ptr, ptr %4, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct._GLFWwindow, ptr %351, i32 0, i32 25
  %353 = getelementptr inbounds %struct._GLFWcontext, ptr %352, i32 0, i32 12
  %354 = load ptr, ptr %353, align 8, !tbaa !26
  call void %354(i32 noundef 33366, ptr noundef %15)
  %355 = load i32, ptr %15, align 4, !tbaa !29
  %356 = icmp eq i32 %355, 33362
  br i1 %356, label %357, label %361

357:                                              ; preds = %350
  %358 = load ptr, ptr %4, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct._GLFWwindow, ptr %358, i32 0, i32 25
  %360 = getelementptr inbounds %struct._GLFWcontext, ptr %359, i32 0, i32 9
  store i32 200706, ptr %360, align 4, !tbaa !43
  br label %369

361:                                              ; preds = %350
  %362 = load i32, ptr %15, align 4, !tbaa !29
  %363 = icmp eq i32 %362, 33377
  br i1 %363, label %364, label %368

364:                                              ; preds = %361
  %365 = load ptr, ptr %4, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct._GLFWwindow, ptr %365, i32 0, i32 25
  %367 = getelementptr inbounds %struct._GLFWcontext, ptr %366, i32 0, i32 9
  store i32 200705, ptr %367, align 4, !tbaa !43
  br label %368

368:                                              ; preds = %364, %361
  br label %369

369:                                              ; preds = %368, %357
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %370

370:                                              ; preds = %369, %347
  br label %371

371:                                              ; preds = %370, %346
  %372 = call i32 @glfwExtensionSupported(ptr noundef @.str.27)
  %373 = icmp ne i32 %372, 0
  br i1 %373, label %374, label %394

374:                                              ; preds = %371
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %375 = load ptr, ptr %4, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct._GLFWwindow, ptr %375, i32 0, i32 25
  %377 = getelementptr inbounds %struct._GLFWcontext, ptr %376, i32 0, i32 12
  %378 = load ptr, ptr %377, align 8, !tbaa !26
  call void %378(i32 noundef 33531, ptr noundef %16)
  %379 = load i32, ptr %16, align 4, !tbaa !29
  %380 = icmp eq i32 %379, 0
  br i1 %380, label %381, label %385

381:                                              ; preds = %374
  %382 = load ptr, ptr %4, align 8, !tbaa !5
  %383 = getelementptr inbounds %struct._GLFWwindow, ptr %382, i32 0, i32 25
  %384 = getelementptr inbounds %struct._GLFWcontext, ptr %383, i32 0, i32 10
  store i32 217090, ptr %384, align 8, !tbaa !44
  br label %393

385:                                              ; preds = %374
  %386 = load i32, ptr %16, align 4, !tbaa !29
  %387 = icmp eq i32 %386, 33532
  br i1 %387, label %388, label %392

388:                                              ; preds = %385
  %389 = load ptr, ptr %4, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct._GLFWwindow, ptr %389, i32 0, i32 25
  %391 = getelementptr inbounds %struct._GLFWcontext, ptr %390, i32 0, i32 10
  store i32 217089, ptr %391, align 8, !tbaa !44
  br label %392

392:                                              ; preds = %388, %385
  br label %393

393:                                              ; preds = %392, %381
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %394

394:                                              ; preds = %393, %371
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %395 = load ptr, ptr %4, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct._GLFWwindow, ptr %395, i32 0, i32 25
  %397 = getelementptr inbounds %struct._GLFWcontext, ptr %396, i32 0, i32 18
  %398 = load ptr, ptr %397, align 8, !tbaa !25
  %399 = call ptr %398(ptr noundef @.str.28)
  store ptr %399, ptr %17, align 8, !tbaa !5
  %400 = load ptr, ptr %17, align 8, !tbaa !5
  call void %400(i32 noundef 16384)
  %401 = load ptr, ptr %4, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct._GLFWwindow, ptr %401, i32 0, i32 25
  %403 = getelementptr inbounds %struct._GLFWcontext, ptr %402, i32 0, i32 15
  %404 = load ptr, ptr %403, align 8, !tbaa !45
  %405 = load ptr, ptr %4, align 8, !tbaa !5
  call void %404(ptr noundef %405)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %406 = load ptr, ptr %7, align 8, !tbaa !5
  call void @glfwMakeContextCurrent(ptr noundef %406)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %407

407:                                              ; preds = %394, %218, %196, %131, %73, %56
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %408 = load i32, ptr %3, align 4
  ret i32 %408

409:                                              ; preds = %104
  unreachable
}

; 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) #3

declare ptr @_glfwPlatformGetTls(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @glfwMakeContextCurrent(ptr noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #4

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #4

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #5

; Function Attrs: nounwind uwtable
declare dso_local i32 @glfwExtensionSupported(ptr noundef) #2

attributes #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 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind willreturn memory(read) "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 "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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 4}
!10 = !{!"_GLFWctxconfig", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !6, i64 40, !12, i64 48}
!11 = !{!"int", !7, i64 0}
!12 = !{!"", !11, i64 0}
!13 = !{!14, !11, i64 500}
!14 = !{!"_GLFWwindow", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !6, i64 32, !15, i64 40, !6, i64 64, !6, i64 72, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !7, i64 120, !7, i64 128, !16, i64 480, !16, i64 488, !17, i64 496, !22, i64 688, !23, i64 824}
!15 = !{!"GLFWvidmode", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_GLFWcontext", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !18, i64 120, !20, i64 136, !21, i64 168}
!18 = !{!"_GLFWcontextGLX", !6, i64 0, !19, i64 8}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_GLFWcontextEGL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!21 = !{!"_GLFWcontextOSMesa", !6, i64 0, !11, i64 8, !11, i64 12, !6, i64 16}
!22 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128}
!23 = !{!"_GLFWwindowX11", !19, i64 0, !19, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !19, i64 72}
!24 = !{!14, !11, i64 496}
!25 = !{!14, !6, i64 600}
!26 = !{!14, !6, i64 552}
!27 = !{!14, !6, i64 560}
!28 = !{!10, !11, i64 0}
!29 = !{!11, !11, i64 0}
!30 = !{!19, !19, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!14, !11, i64 504}
!34 = !{!10, !11, i64 8}
!35 = !{!14, !11, i64 508}
!36 = !{!10, !11, i64 12}
!37 = !{!14, !6, i64 544}
!38 = !{!14, !11, i64 516}
!39 = !{!14, !11, i64 520}
!40 = !{!10, !11, i64 20}
!41 = !{!14, !11, i64 524}
!42 = !{!14, !11, i64 528}
!43 = !{!14, !11, i64 532}
!44 = !{!14, !11, i64 536}
!45 = !{!14, !6, i64 576}


; 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.1, ptr, ptr, ptr, ptr, i32, [16 x %struct._GLFWjoystick], ptr, i32, %struct._GLFWtls, %struct._GLFWtls, %struct._GLFWmutex, %struct.anon.5, %struct.anon.6, %struct.anon.7, %struct._GLFWlibraryX11, %struct._GLFWlibraryGLX, %struct._GLFWlibraryLinux, %struct._GLFWlibraryEGL, %struct._GLFWlibraryOSMesa }
%struct.anon.1 = type { %struct._GLFWinitconfig, %struct._GLFWfbconfig, %struct._GLFWwndconfig, %struct._GLFWctxconfig, i32 }
%struct._GLFWinitconfig = type { i32, %struct.anon.2 }
%struct.anon.2 = 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.3, %struct.anon.4 }
%struct.anon.3 = type { i32, [256 x i8] }
%struct.anon.4 = type { [256 x i8], [256 x i8] }
%struct._GLFWctxconfig = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, %struct.anon }
%struct.anon = 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.5 = type { i64, %struct._GLFWtimerPOSIX }
%struct._GLFWtimerPOSIX = type { i32, i64 }
%struct.anon.6 = type { i32, ptr, [2 x ptr], ptr, ptr, i32, i32, i32 }
%struct.anon.7 = 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.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.17 }
%struct.anon.8 = 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.9 = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.anon.10 = type { i32, i32, i32, i32, i32 }
%struct.anon.11 = type { i32, i64, i64 }
%struct.anon.12 = type { ptr, ptr, ptr, ptr }
%struct.anon.13 = type { i32, ptr, i32, i32, ptr, ptr, ptr }
%struct.anon.14 = type { ptr, ptr }
%struct.anon.15 = type { i32, ptr, i32, i32, ptr, ptr, ptr, ptr }
%struct.anon.16 = type { i32, ptr, i32, i32, i32, i32, i32, ptr, ptr }
%struct.anon.17 = 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._glfwRefreshContextAttribs.prefixes = external hidden unnamed_addr constant [4 x ptr], align 16
@_glfw = external global %struct._GLFWlibrary, align 8
@.str.12 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [8 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @_glfwRefreshContextAttribs(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = getelementptr inbounds i8, ptr %1, i64 4
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 496
  %11 = getelementptr inbounds i8, ptr %0, i64 500
  store i32 %9, ptr %11, align 4, !tbaa !12
  store i32 196609, ptr %10, align 8, !tbaa !23
  %12 = tail call ptr @_glfwPlatformGetTls(ptr noundef nonnull getelementptr inbounds (i8, ptr @_glfw, i64 130588)) #5
  tail call void @glfwMakeContextCurrent(ptr noundef %0)
  %13 = getelementptr inbounds i8, ptr %0, i64 600
  %14 = load ptr, ptr %13, align 8, !tbaa !24
  %15 = tail call ptr %14(ptr noundef nonnull @.str.12) #5
  %16 = getelementptr inbounds i8, ptr %0, i64 552
  store ptr %15, ptr %16, align 8, !tbaa !25
  %17 = load ptr, ptr %13, align 8, !tbaa !24
  %18 = tail call ptr %17(ptr noundef nonnull @.str.13) #5
  %19 = getelementptr inbounds i8, ptr %0, i64 560
  store ptr %18, ptr %19, align 8, !tbaa !26
  %20 = load ptr, ptr %16, align 8, !tbaa !25
  %.not = icmp eq ptr %20, null
  %.not93 = icmp eq ptr %18, null
  %or.cond = select i1 %.not, i1 true, i1 %.not93
  br i1 %or.cond, label %21, label %22

21:                                               ; preds = %2
  tail call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65544, ptr noundef nonnull @.str.14) #5
  tail call void @glfwMakeContextCurrent(ptr noundef %12)
  br label %139

22:                                               ; preds = %2
  %23 = tail call ptr %18(i32 noundef 7938) #5
  %.not94 = icmp eq ptr %23, null
  br i1 %.not94, label %25, label %.preheader

.preheader:                                       ; preds = %22
  %24 = load ptr, ptr @__const._glfwRefreshContextAttribs.prefixes, align 16, !tbaa !27
  %.not95115 = icmp eq ptr %24, null
  br i1 %.not95115, label %.loopexit, label %.lr.ph

25:                                               ; preds = %22
  %26 = load i32, ptr %1, align 8, !tbaa !28
  %27 = icmp eq i32 %26, 196609
  %.str.15..str.16 = select i1 %27, ptr @.str.15, ptr @.str.16
  tail call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65544, ptr noundef nonnull %.str.15..str.16) #5
  tail call void @glfwMakeContextCurrent(ptr noundef %12)
  br label %139

28:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %29 = getelementptr inbounds [4 x ptr], ptr @__const._glfwRefreshContextAttribs.prefixes, i64 0, i64 %indvars.iv.next
  %30 = load ptr, ptr %29, align 8, !tbaa !27
  %.not95 = icmp eq ptr %30, null
  br i1 %.not95, label %.loopexit, label %.lr.ph, !llvm.loop !29

.lr.ph:                                           ; preds = %.preheader, %28
  %indvars.iv = phi i64 [ %indvars.iv.next, %28 ], [ 0, %.preheader ]
  %31 = phi ptr [ %30, %28 ], [ %24, %.preheader ]
  %32 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %31) #6
  %33 = tail call i32 @strncmp(ptr noundef nonnull %23, ptr noundef nonnull %31, i64 noundef %32) #6
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %28

35:                                               ; preds = %.lr.ph
  %36 = getelementptr inbounds i8, ptr %23, i64 %32
  store i32 196610, ptr %10, align 8, !tbaa !23
  br label %.loopexit

.loopexit:                                        ; preds = %28, %.preheader, %35
  %.2 = phi ptr [ %36, %35 ], [ %23, %.preheader ], [ %23, %28 ]
  %37 = getelementptr inbounds i8, ptr %0, i64 504
  %38 = getelementptr inbounds i8, ptr %0, i64 508
  %39 = getelementptr inbounds i8, ptr %0, i64 512
  %40 = tail call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %.2, ptr noundef nonnull @.str.17, ptr noundef nonnull %37, ptr noundef nonnull %38, ptr noundef nonnull %39) #5
  %.not96 = icmp eq i32 %40, 0
  br i1 %.not96, label %41, label %44

41:                                               ; preds = %.loopexit
  %42 = load i32, ptr %10, align 8, !tbaa !23
  %43 = icmp eq i32 %42, 196609
  %.str.18..str.19 = select i1 %43, ptr @.str.18, ptr @.str.19
  tail call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65544, ptr noundef nonnull %.str.18..str.19) #5
  tail call void @glfwMakeContextCurrent(ptr noundef %12)
  br label %139

44:                                               ; preds = %.loopexit
  %45 = load i32, ptr %37, align 8, !tbaa !31
  %46 = getelementptr inbounds i8, ptr %1, i64 8
  %47 = load i32, ptr %46, align 8, !tbaa !32
  %48 = icmp slt i32 %45, %47
  br i1 %48, label %56, label %49

49:                                               ; preds = %44
  %50 = icmp eq i32 %45, %47
  br i1 %50, label %51, label %62

51:                                               ; preds = %49
  %52 = load i32, ptr %38, align 4, !tbaa !33
  %53 = getelementptr inbounds i8, ptr %1, i64 12
  %54 = load i32, ptr %53, align 4, !tbaa !34
  %55 = icmp slt i32 %52, %54
  br i1 %55, label %56, label %62

56:                                               ; preds = %51, %44
  %57 = load i32, ptr %10, align 8, !tbaa !23
  %58 = icmp eq i32 %57, 196609
  %59 = getelementptr inbounds i8, ptr %1, i64 12
  %60 = load i32, ptr %59, align 4, !tbaa !34
  %61 = load i32, ptr %38, align 4, !tbaa !33
  %.str.20..str.21 = select i1 %58, ptr @.str.20, ptr @.str.21
  tail call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65543, ptr noundef nonnull %.str.20..str.21, i32 noundef %47, i32 noundef %60, i32 noundef %45, i32 noundef %61) #5
  tail call void @glfwMakeContextCurrent(ptr noundef %12)
  br label %139

62:                                               ; preds = %51, %49
  %63 = icmp sgt i32 %45, 2
  br i1 %63, label %64, label %69

64:                                               ; preds = %62
  %65 = load ptr, ptr %13, align 8, !tbaa !24
  %66 = tail call ptr %65(ptr noundef nonnull @.str.22) #5
  %67 = getelementptr inbounds i8, ptr %0, i64 544
  store ptr %66, ptr %67, align 8, !tbaa !35
  %.not97 = icmp eq ptr %66, null
  br i1 %.not97, label %68, label %69

68:                                               ; preds = %64
  tail call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65544, ptr noundef nonnull @.str.14) #5
  tail call void @glfwMakeContextCurrent(ptr noundef %12)
  br label %139

69:                                               ; preds = %64, %62
  %70 = load i32, ptr %10, align 8, !tbaa !23
  %71 = icmp eq i32 %70, 196609
  br i1 %71, label %72, label %118

72:                                               ; preds = %69
  %73 = load i32, ptr %37, align 8, !tbaa !31
  %74 = icmp sgt i32 %73, 2
  br i1 %74, label %75, label %.thread114

75:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  %76 = load ptr, ptr %16, align 8, !tbaa !25
  call void %76(i32 noundef 33310, ptr noundef nonnull %3) #5
  %77 = load i32, ptr %3, align 4, !tbaa !36
  %78 = and i32 %77, 1
  %.not99 = icmp eq i32 %78, 0
  br i1 %.not99, label %81, label %79

79:                                               ; preds = %75
  %80 = getelementptr inbounds i8, ptr %0, i64 516
  store i32 1, ptr %80, align 4, !tbaa !37
  br label %81

81:                                               ; preds = %79, %75
  %82 = and i32 %77, 2
  %.not100 = icmp eq i32 %82, 0
  br i1 %.not100, label %83, label %.sink.split

83:                                               ; preds = %81
  %84 = call i32 @glfwExtensionSupported(ptr noundef nonnull @.str.23)
  %.not101 = icmp eq i32 %84, 0
  br i1 %.not101, label %89, label %85

85:                                               ; preds = %83
  %86 = getelementptr inbounds i8, ptr %1, i64 20
  %87 = load i32, ptr %86, align 4, !tbaa !38
  %.not102 = icmp eq i32 %87, 0
  br i1 %.not102, label %89, label %.sink.split

.sink.split:                                      ; preds = %85, %81
  %88 = getelementptr inbounds i8, ptr %0, i64 520
  store i32 1, ptr %88, align 8, !tbaa !39
  br label %89

89:                                               ; preds = %.sink.split, %83, %85
  %90 = load i32, ptr %3, align 4, !tbaa !36
  %91 = and i32 %90, 8
  %.not103 = icmp eq i32 %91, 0
  br i1 %.not103, label %94, label %92

92:                                               ; preds = %89
  %93 = getelementptr inbounds i8, ptr %0, i64 524
  store i32 1, ptr %93, align 4, !tbaa !40
  br label %94

94:                                               ; preds = %89, %92
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %.pr = load i32, ptr %37, align 8, !tbaa !31
  %95 = icmp sgt i32 %.pr, 3
  br i1 %95, label %101, label %96

96:                                               ; preds = %94
  %97 = icmp eq i32 %.pr, 3
  br i1 %97, label %98, label %.thread114

98:                                               ; preds = %96
  %99 = load i32, ptr %38, align 4, !tbaa !33
  %100 = icmp sgt i32 %99, 1
  br i1 %100, label %101, label %.thread114

101:                                              ; preds = %98, %94
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  %102 = load ptr, ptr %16, align 8, !tbaa !25
  call void %102(i32 noundef 37158, ptr noundef nonnull %4) #5
  %103 = load i32, ptr %4, align 4, !tbaa !36
  %104 = and i32 %103, 2
  %.not104 = icmp eq i32 %104, 0
  br i1 %.not104, label %105, label %.sink.split120

105:                                              ; preds = %101
  %106 = and i32 %103, 1
  %.not105 = icmp eq i32 %106, 0
  br i1 %.not105, label %107, label %.sink.split120

107:                                              ; preds = %105
  %108 = call i32 @glfwExtensionSupported(ptr noundef nonnull @.str.24)
  %.not106 = icmp eq i32 %108, 0
  br i1 %.not106, label %110, label %.sink.split120

.sink.split120:                                   ; preds = %107, %105, %101
  %.sink = phi i32 [ 204802, %101 ], [ 204801, %105 ], [ 204802, %107 ]
  %109 = getelementptr inbounds i8, ptr %0, i64 528
  store i32 %.sink, ptr %109, align 8, !tbaa !41
  br label %110

110:                                              ; preds = %.sink.split120, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  br label %.thread114

.thread114:                                       ; preds = %72, %110, %98, %96
  %111 = call i32 @glfwExtensionSupported(ptr noundef nonnull @.str.25)
  %.not107 = icmp eq i32 %111, 0
  br i1 %.not107, label %126, label %112

112:                                              ; preds = %.thread114
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %113 = load ptr, ptr %16, align 8, !tbaa !25
  call void %113(i32 noundef 33366, ptr noundef nonnull %5) #5
  %114 = load i32, ptr %5, align 4, !tbaa !36
  switch i32 %114, label %117 [
    i32 33362, label %.sink.split122
    i32 33377, label %115
  ]

115:                                              ; preds = %112
  br label %.sink.split122

.sink.split122:                                   ; preds = %112, %115
  %.sink123 = phi i32 [ 200705, %115 ], [ 200706, %112 ]
  %116 = getelementptr inbounds i8, ptr %0, i64 532
  store i32 %.sink123, ptr %116, align 4, !tbaa !42
  br label %117

117:                                              ; preds = %.sink.split122, %112
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %126

118:                                              ; preds = %69
  %119 = tail call i32 @glfwExtensionSupported(ptr noundef nonnull @.str.26)
  %.not98 = icmp eq i32 %119, 0
  br i1 %.not98, label %126, label %120

120:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %121 = load ptr, ptr %16, align 8, !tbaa !25
  call void %121(i32 noundef 33366, ptr noundef nonnull %6) #5
  %122 = load i32, ptr %6, align 4, !tbaa !36
  switch i32 %122, label %125 [
    i32 33362, label %.sink.split125
    i32 33377, label %123
  ]

123:                                              ; preds = %120
  br label %.sink.split125

.sink.split125:                                   ; preds = %120, %123
  %.sink126 = phi i32 [ 200705, %123 ], [ 200706, %120 ]
  %124 = getelementptr inbounds i8, ptr %0, i64 532
  store i32 %.sink126, ptr %124, align 4, !tbaa !42
  br label %125

125:                                              ; preds = %.sink.split125, %120
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br label %126

126:                                              ; preds = %118, %125, %.thread114, %117
  %127 = call i32 @glfwExtensionSupported(ptr noundef nonnull @.str.27)
  %.not108 = icmp eq i32 %127, 0
  br i1 %.not108, label %134, label %128

128:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %129 = load ptr, ptr %16, align 8, !tbaa !25
  call void %129(i32 noundef 33531, ptr noundef nonnull %7) #5
  %130 = load i32, ptr %7, align 4, !tbaa !36
  switch i32 %130, label %133 [
    i32 0, label %.sink.split128
    i32 33532, label %131
  ]

131:                                              ; preds = %128
  br label %.sink.split128

.sink.split128:                                   ; preds = %128, %131
  %.sink129 = phi i32 [ 217089, %131 ], [ 217090, %128 ]
  %132 = getelementptr inbounds i8, ptr %0, i64 536
  store i32 %.sink129, ptr %132, align 8, !tbaa !43
  br label %133

133:                                              ; preds = %.sink.split128, %128
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  br label %134

134:                                              ; preds = %133, %126
  %135 = load ptr, ptr %13, align 8, !tbaa !24
  %136 = call ptr %135(ptr noundef nonnull @.str.28) #5
  call void %136(i32 noundef 16384) #5
  %137 = getelementptr inbounds i8, ptr %0, i64 576
  %138 = load ptr, ptr %137, align 8, !tbaa !44
  call void %138(ptr noundef nonnull %0) #5
  call void @glfwMakeContextCurrent(ptr noundef %12)
  br label %139

139:                                              ; preds = %134, %68, %56, %41, %25, %21
  %.0 = phi i32 [ 0, %56 ], [ 1, %134 ], [ 0, %68 ], [ 0, %41 ], [ 0, %25 ], [ 0, %21 ]
  ret i32 %.0
}

declare ptr @_glfwPlatformGetTls(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @glfwMakeContextCurrent(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strncmp(ptr nocapture noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_sscanf(ptr nocapture noundef readonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @glfwExtensionSupported(ptr noundef) local_unnamed_addr #2

attributes #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { nofree 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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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, !7, i64 4}
!6 = !{!"_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, !10, i64 40, !11, i64 48}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"", !7, i64 0}
!12 = !{!13, !7, i64 500}
!13 = !{!"_GLFWwindow", !10, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !10, i64 32, !14, i64 40, !10, i64 64, !10, i64 72, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !8, i64 120, !8, i64 128, !15, i64 480, !15, i64 488, !16, i64 496, !21, i64 688, !22, i64 824}
!14 = !{!"GLFWvidmode", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20}
!15 = !{!"double", !8, i64 0}
!16 = !{!"_GLFWcontext", !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, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !17, i64 120, !19, i64 136, !20, i64 168}
!17 = !{!"_GLFWcontextGLX", !10, i64 0, !18, i64 8}
!18 = !{!"long", !8, i64 0}
!19 = !{!"_GLFWcontextEGL", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!20 = !{!"_GLFWcontextOSMesa", !10, i64 0, !7, i64 8, !7, i64 12, !10, i64 16}
!21 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128}
!22 = !{!"_GLFWwindowX11", !18, i64 0, !18, i64 8, !10, i64 16, !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, !7, i64 64, !7, i64 68, !18, i64 72}
!23 = !{!13, !7, i64 496}
!24 = !{!13, !10, i64 600}
!25 = !{!13, !10, i64 552}
!26 = !{!13, !10, i64 560}
!27 = !{!10, !10, i64 0}
!28 = !{!6, !7, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!13, !7, i64 504}
!32 = !{!6, !7, i64 8}
!33 = !{!13, !7, i64 508}
!34 = !{!6, !7, i64 12}
!35 = !{!13, !10, i64 544}
!36 = !{!7, !7, i64 0}
!37 = !{!13, !7, i64 516}
!38 = !{!6, !7, i64 20}
!39 = !{!13, !7, i64 520}
!40 = !{!13, !7, i64 524}
!41 = !{!13, !7, i64 528}
!42 = !{!13, !7, i64 532}
!43 = !{!13, !7, i64 536}
!44 = !{!13, !10, i64 576}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass