; LLVM IR from unitreerobotics/kinect_teleoperate :: src/extern/glfw/src/src/egl_context.ll (glfwInitEGL)

; 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.GLFWallocator, %struct._GLFWplatform, %struct.anon, ptr, ptr, ptr, ptr, i32, i32, [16 x %struct._GLFWjoystick], ptr, i32, %struct._GLFWtls, %struct._GLFWtls, %struct._GLFWmutex, %struct.anon.8, %struct.anon.9, %struct.anon.10, %struct.anon.11, %struct.anon.12, %struct._GLFWlibraryNull }
%struct.GLFWallocator = type { ptr, ptr, ptr, ptr }
%struct._GLFWplatform = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.anon = type { %struct._GLFWinitconfig, %struct._GLFWfbconfig, %struct._GLFWwndconfig, %struct._GLFWctxconfig, i32 }
%struct._GLFWinitconfig = type { i32, i32, i32, ptr, %struct.anon.0, %struct.anon.1, %struct.anon.2 }
%struct.anon.0 = type { i32, i32 }
%struct.anon.1 = type { i32 }
%struct.anon.2 = type { 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, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.anon.3, %struct.anon.4, %struct.anon.5, %struct.anon.6 }
%struct.anon.3 = type { [256 x i8] }
%struct.anon.4 = type { [256 x i8], [256 x i8] }
%struct.anon.5 = type { i32, i32 }
%struct.anon.6 = type { [256 x i8] }
%struct._GLFWctxconfig = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, %struct.anon.7 }
%struct.anon.7 = type { i32 }
%struct._GLFWjoystick = type { i32, i32, ptr, i32, ptr, i32, ptr, i32, [128 x i8], ptr, [33 x i8], ptr }
%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.8 = type { i64, %struct._GLFWtimerPOSIX }
%struct._GLFWtimerPOSIX = type { i32, i64 }
%struct.anon.9 = type { i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, 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, ptr, ptr, ptr }
%struct.anon.10 = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.anon.11 = type { i32, ptr, [2 x ptr], ptr, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.anon.12 = type { ptr, ptr }
%struct._GLFWlibraryNull = type { i32, i32, ptr, ptr, [121 x i16], [349 x i8] }

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

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

9:                                                ; preds = %0
  store i32 1, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %208

10:                                               ; preds = %0
  store i32 0, ptr %2, align 4, !tbaa !35
  br label %11

11:                                               ; preds = %27, %10
  %12 = load i32, ptr %2, align 4, !tbaa !35
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds [2 x ptr], ptr %5, i64 0, i64 %13
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  br i1 %16, label %17, label %30

17:                                               ; preds = %11
  %18 = load i32, ptr %2, align 4, !tbaa !35
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [2 x ptr], ptr %5, i64 0, i64 %19
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  %22 = call ptr @_glfwPlatformLoadModule(ptr noundef %21)
  store ptr %22, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !9
  %23 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !9
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %26

25:                                               ; preds = %17
  br label %30

26:                                               ; preds = %17
  br label %27

27:                                               ; preds = %26
  %28 = load i32, ptr %2, align 4, !tbaa !35
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %2, align 4, !tbaa !35
  br label %11, !llvm.loop !36

30:                                               ; preds = %25, %11
  %31 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !9
  %32 = icmp ne ptr %31, null
  br i1 %32, label %34, label %33

33:                                               ; preds = %30
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef @.str.1)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %208

34:                                               ; preds = %30
  %35 = load i32, ptr %2, align 4, !tbaa !35
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [2 x ptr], ptr %5, i64 0, i64 %36
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = call i32 @strncmp(ptr noundef %38, ptr noundef @.str.2, i64 noundef 3) #6
  %40 = icmp eq i32 %39, 0
  %41 = zext i1 %40 to i32
  store i32 %41, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 4), align 8, !tbaa !38
  %42 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !9
  %43 = call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %42, ptr noundef @.str.3)
  store ptr %43, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 22), align 8, !tbaa !39
  %44 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !9
  %45 = call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %44, ptr noundef @.str.4)
  store ptr %45, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 23), align 8, !tbaa !40
  %46 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !9
  %47 = call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %46, ptr noundef @.str.5)
  store ptr %47, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 24), align 8, !tbaa !41
  %48 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !9
  %49 = call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %48, ptr noundef @.str.6)
  store ptr %49, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 25), align 8, !tbaa !42
  %50 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !9
  %51 = call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %50, ptr noundef @.str.7)
  store ptr %51, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 26), align 8, !tbaa !43
  %52 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !9
  %53 = call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %52, ptr noundef @.str.8)
  store ptr %53, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 27), align 8, !tbaa !44
  %54 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !9
  %55 = call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %54, ptr noundef @.str.9)
  store ptr %55, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 28), align 8, !tbaa !45
  %56 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !9
  %57 = call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %56, ptr noundef @.str.10)
  store ptr %57, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 29), align 8, !tbaa !46
  %58 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !9
  %59 = call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %58, ptr noundef @.str.11)
  store ptr %59, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 30), align 8, !tbaa !47
  %60 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !9
  %61 = call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %60, ptr noundef @.str.12)
  store ptr %61, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 31), align 8, !tbaa !48
  %62 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !9
  %63 = call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %62, ptr noundef @.str.13)
  store ptr %63, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 32), align 8, !tbaa !49
  %64 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !9
  %65 = call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %64, ptr noundef @.str.14)
  store ptr %65, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 33), align 8, !tbaa !50
  %66 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !9
  %67 = call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %66, ptr noundef @.str.15)
  store ptr %67, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 34), align 8, !tbaa !51
  %68 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !9
  %69 = call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %68, ptr noundef @.str.16)
  store ptr %69, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 35), align 8, !tbaa !52
  %70 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !9
  %71 = call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %70, ptr noundef @.str.17)
  store ptr %71, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 36), align 8, !tbaa !53
  %72 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !9
  %73 = call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %72, ptr noundef @.str.18)
  store ptr %73, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 37), align 8, !tbaa !54
  %74 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 21), align 8, !tbaa !9
  %75 = call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %74, ptr noundef @.str.19)
  store ptr %75, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 38), align 8, !tbaa !55
  %76 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 22), align 8, !tbaa !39
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %126

78:                                               ; preds = %34
  %79 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 23), align 8, !tbaa !40
  %80 = icmp ne ptr %79, null
  br i1 %80, label %81, label %126

81:                                               ; preds = %78
  %82 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 24), align 8, !tbaa !41
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %126

84:                                               ; preds = %81
  %85 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 25), align 8, !tbaa !42
  %86 = icmp ne ptr %85, null
  br i1 %86, label %87, label %126

87:                                               ; preds = %84
  %88 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 26), align 8, !tbaa !43
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %126

90:                                               ; preds = %87
  %91 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 27), align 8, !tbaa !44
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %126

93:                                               ; preds = %90
  %94 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 28), align 8, !tbaa !45
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %126

96:                                               ; preds = %93
  %97 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 29), align 8, !tbaa !46
  %98 = icmp ne ptr %97, null
  br i1 %98, label %99, label %126

99:                                               ; preds = %96
  %100 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 30), align 8, !tbaa !47
  %101 = icmp ne ptr %100, null
  br i1 %101, label %102, label %126

102:                                              ; preds = %99
  %103 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 31), align 8, !tbaa !48
  %104 = icmp ne ptr %103, null
  br i1 %104, label %105, label %126

105:                                              ; preds = %102
  %106 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 32), align 8, !tbaa !49
  %107 = icmp ne ptr %106, null
  br i1 %107, label %108, label %126

108:                                              ; preds = %105
  %109 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 33), align 8, !tbaa !50
  %110 = icmp ne ptr %109, null
  br i1 %110, label %111, label %126

111:                                              ; preds = %108
  %112 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 34), align 8, !tbaa !51
  %113 = icmp ne ptr %112, null
  br i1 %113, label %114, label %126

114:                                              ; preds = %111
  %115 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 35), align 8, !tbaa !52
  %116 = icmp ne ptr %115, null
  br i1 %116, label %117, label %126

117:                                              ; preds = %114
  %118 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 36), align 8, !tbaa !53
  %119 = icmp ne ptr %118, null
  br i1 %119, label %120, label %126

120:                                              ; preds = %117
  %121 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 37), align 8, !tbaa !54
  %122 = icmp ne ptr %121, null
  br i1 %122, label %123, label %126

123:                                              ; preds = %120
  %124 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 38), align 8, !tbaa !55
  %125 = icmp ne ptr %124, null
  br i1 %125, label %127, label %126

126:                                              ; preds = %123, %120, %117, %114, %111, %108, %105, %102, %99, %96, %93, %90, %87, %84, %81, %78, %34
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65544, ptr noundef @.str.20)
  call void @_glfwTerminateEGL()
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %208

127:                                              ; preds = %123
  %128 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 37), align 8, !tbaa !54
  %129 = call ptr %128(ptr noundef null, i32 noundef 12373)
  store ptr %129, ptr %4, align 8, !tbaa !5
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = icmp ne ptr %130, null
  br i1 %131, label %132, label %137

132:                                              ; preds = %127
  %133 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 25), align 8, !tbaa !42
  %134 = call i32 %133()
  %135 = icmp eq i32 %134, 12288
  br i1 %135, label %136, label %137

136:                                              ; preds = %132
  store i32 1, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 10), align 8, !tbaa !56
  br label %137

137:                                              ; preds = %136, %132, %127
  %138 = load i32, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 10), align 8, !tbaa !56
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %159

140:                                              ; preds = %137
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = call i32 @_glfwStringInExtensionString(ptr noundef @.str.21, ptr noundef %141)
  store i32 %142, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 11), align 4, !tbaa !57
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = call i32 @_glfwStringInExtensionString(ptr noundef @.str.22, ptr noundef %143)
  store i32 %144, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 12), align 8, !tbaa !58
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = call i32 @_glfwStringInExtensionString(ptr noundef @.str.23, ptr noundef %145)
  store i32 %146, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 13), align 4, !tbaa !59
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = call i32 @_glfwStringInExtensionString(ptr noundef @.str.24, ptr noundef %147)
  store i32 %148, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 15), align 4, !tbaa !60
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = call i32 @_glfwStringInExtensionString(ptr noundef @.str.25, ptr noundef %149)
  store i32 %150, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 16), align 8, !tbaa !61
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = call i32 @_glfwStringInExtensionString(ptr noundef @.str.26, ptr noundef %151)
  store i32 %152, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 17), align 4, !tbaa !62
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = call i32 @_glfwStringInExtensionString(ptr noundef @.str.27, ptr noundef %153)
  store i32 %154, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 18), align 8, !tbaa !63
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = call i32 @_glfwStringInExtensionString(ptr noundef @.str.28, ptr noundef %155)
  store i32 %156, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 19), align 4, !tbaa !64
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = call i32 @_glfwStringInExtensionString(ptr noundef @.str.29, ptr noundef %157)
  store i32 %158, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 20), align 8, !tbaa !65
  br label %159

159:                                              ; preds = %140, %137
  %160 = load i32, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 11), align 4, !tbaa !57
  %161 = icmp ne i32 %160, 0
  br i1 %161, label %162, label %167

162:                                              ; preds = %159
  %163 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 38), align 8, !tbaa !55
  %164 = call ptr %163(ptr noundef @.str.30)
  store ptr %164, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 39), align 8, !tbaa !66
  %165 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 38), align 8, !tbaa !55
  %166 = call ptr %165(ptr noundef @.str.31)
  store ptr %166, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 40), align 8, !tbaa !67
  br label %167

167:                                              ; preds = %162, %159
  %168 = load ptr, ptr getelementptr inbounds (%struct._GLFWplatform, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 2), i32 0, i32 66), align 8, !tbaa !68
  %169 = call i32 %168(ptr noundef %3)
  store i32 %169, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), align 8, !tbaa !69
  %170 = load i32, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), align 8, !tbaa !69
  %171 = icmp ne i32 %170, 0
  br i1 %171, label %172, label %179

172:                                              ; preds = %167
  %173 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 39), align 8, !tbaa !66
  %174 = load i32, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), align 8, !tbaa !69
  %175 = load ptr, ptr getelementptr inbounds (%struct._GLFWplatform, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 2), i32 0, i32 67), align 8, !tbaa !70
  %176 = call ptr %175()
  %177 = load ptr, ptr %3, align 8, !tbaa !5
  %178 = call ptr %173(i32 noundef %174, ptr noundef %176, ptr noundef %177)
  store ptr %178, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 1), align 8, !tbaa !71
  br label %184

179:                                              ; preds = %167
  %180 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 24), align 8, !tbaa !41
  %181 = load ptr, ptr getelementptr inbounds (%struct._GLFWplatform, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 2), i32 0, i32 67), align 8, !tbaa !70
  %182 = call ptr %181()
  %183 = call ptr %180(ptr noundef %182)
  store ptr %183, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 1), align 8, !tbaa !71
  br label %184

184:                                              ; preds = %179, %172
  %185 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_glfw_free(ptr noundef %185)
  %186 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 1), align 8, !tbaa !71
  %187 = icmp eq ptr %186, null
  br i1 %187, label %188, label %192

188:                                              ; preds = %184
  %189 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 25), align 8, !tbaa !42
  %190 = call i32 %189()
  %191 = call ptr @getEGLErrorString(i32 noundef %190)
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef @.str.32, ptr noundef %191)
  call void @_glfwTerminateEGL()
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %208

192:                                              ; preds = %184
  %193 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 26), align 8, !tbaa !43
  %194 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 1), align 8, !tbaa !71
  %195 = call i32 %193(ptr noundef %194, ptr noundef getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 2), ptr noundef getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 3))
  %196 = icmp ne i32 %195, 0
  br i1 %196, label %201, label %197

197:                                              ; preds = %192
  %198 = load ptr, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 25), align 8, !tbaa !42
  %199 = call i32 %198()
  %200 = call ptr @getEGLErrorString(i32 noundef %199)
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef @.str.33, ptr noundef %200)
  call void @_glfwTerminateEGL()
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %208

201:                                              ; preds = %192
  %202 = call i32 @extensionSupportedEGL(ptr noundef @.str.34)
  store i32 %202, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 5), align 4, !tbaa !72
  %203 = call i32 @extensionSupportedEGL(ptr noundef @.str.35)
  store i32 %203, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 6), align 8, !tbaa !73
  %204 = call i32 @extensionSupportedEGL(ptr noundef @.str.36)
  store i32 %204, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 7), align 4, !tbaa !74
  %205 = call i32 @extensionSupportedEGL(ptr noundef @.str.37)
  store i32 %205, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 8), align 8, !tbaa !75
  %206 = call i32 @extensionSupportedEGL(ptr noundef @.str.38)
  store i32 %206, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 9), align 4, !tbaa !76
  %207 = call i32 @extensionSupportedEGL(ptr noundef @.str.39)
  store i32 %207, ptr getelementptr inbounds (%struct.anon.9, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 17), i32 0, i32 14), align 8, !tbaa !77
  store i32 1, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %208

208:                                              ; preds = %201, %197, %188, %126, %33, %9
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %209 = load i32, ptr %1, align 4
  ret i32 %209
}

; 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

declare ptr @_glfwPlatformLoadModule(ptr noundef) #3

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

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

declare ptr @_glfwPlatformGetModuleSymbol(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @_glfwTerminateEGL() #0

declare i32 @_glfwStringInExtensionString(ptr noundef, ptr noundef) #3

declare void @_glfw_free(ptr noundef) #3

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

; Function Attrs: nounwind uwtable
declare hidden i32 @extensionSupportedEGL(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 = { "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 = { 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 }
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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 5976}
!10 = !{!"_GLFWlibrary", !11, i64 0, !12, i64 8, !13, i64 40, !14, i64 616, !6, i64 1896, !6, i64 1904, !6, i64 1912, !6, i64 1920, !11, i64 1928, !11, i64 1932, !7, i64 1936, !6, i64 5776, !11, i64 5784, !24, i64 5788, !24, i64 5796, !26, i64 5808, !28, i64 5856, !30, i64 5880, !31, i64 6136, !32, i64 6200, !33, i64 6272, !34, i64 6288}
!11 = !{!"int", !7, i64 0}
!12 = !{!"GLFWallocator", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!13 = !{!"_GLFWplatform", !11, 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, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !6, i64 408, !6, i64 416, !6, i64 424, !6, i64 432, !6, i64 440, !6, i64 448, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480, !6, i64 488, !6, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568}
!14 = !{!"", !15, i64 0, !18, i64 40, !20, i64 112, !23, i64 1216, !11, i64 1272}
!15 = !{!"_GLFWinitconfig", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !16, i64 24, !17, i64 32, !17, i64 36}
!16 = !{!"", !11, i64 0, !11, i64 4}
!17 = !{!"", !11, i64 0}
!18 = !{!"_GLFWfbconfig", !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, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !19, i64 64}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_GLFWwndconfig", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !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, !21, i64 72, !22, i64 328, !16, i64 840, !21, i64 848}
!21 = !{!"", !7, i64 0}
!22 = !{!"", !7, i64 0, !7, i64 256}
!23 = !{!"_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, !17, i64 48}
!24 = !{!"_GLFWtls", !25, i64 0}
!25 = !{!"_GLFWtlsPOSIX", !11, i64 0, !11, i64 4}
!26 = !{!"_GLFWmutex", !27, i64 0}
!27 = !{!"_GLFWmutexPOSIX", !11, i64 0, !7, i64 8}
!28 = !{!"", !19, i64 0, !29, i64 8}
!29 = !{!"_GLFWtimerPOSIX", !11, i64 0, !19, i64 8}
!30 = !{!"", !11, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !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, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248}
!31 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!32 = !{!"", !11, i64 0, !6, i64 8, !7, i64 16, !6, i64 32, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68}
!33 = !{!"", !6, i64 0, !6, i64 8}
!34 = !{!"_GLFWlibraryNull", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !7, i64 24, !7, i64 266}
!35 = !{!11, !11, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!10, !11, i64 5904}
!39 = !{!10, !6, i64 5984}
!40 = !{!10, !6, i64 5992}
!41 = !{!10, !6, i64 6000}
!42 = !{!10, !6, i64 6008}
!43 = !{!10, !6, i64 6016}
!44 = !{!10, !6, i64 6024}
!45 = !{!10, !6, i64 6032}
!46 = !{!10, !6, i64 6040}
!47 = !{!10, !6, i64 6048}
!48 = !{!10, !6, i64 6056}
!49 = !{!10, !6, i64 6064}
!50 = !{!10, !6, i64 6072}
!51 = !{!10, !6, i64 6080}
!52 = !{!10, !6, i64 6088}
!53 = !{!10, !6, i64 6096}
!54 = !{!10, !6, i64 6104}
!55 = !{!10, !6, i64 6112}
!56 = !{!10, !11, i64 5928}
!57 = !{!10, !11, i64 5932}
!58 = !{!10, !11, i64 5936}
!59 = !{!10, !11, i64 5940}
!60 = !{!10, !11, i64 5948}
!61 = !{!10, !11, i64 5952}
!62 = !{!10, !11, i64 5956}
!63 = !{!10, !11, i64 5960}
!64 = !{!10, !11, i64 5964}
!65 = !{!10, !11, i64 5968}
!66 = !{!10, !6, i64 6120}
!67 = !{!10, !6, i64 6128}
!68 = !{!10, !6, i64 568}
!69 = !{!10, !11, i64 5880}
!70 = !{!10, !6, i64 576}
!71 = !{!10, !6, i64 5888}
!72 = !{!10, !11, i64 5908}
!73 = !{!10, !11, i64 5912}
!74 = !{!10, !11, i64 5916}
!75 = !{!10, !11, i64 5920}
!76 = !{!10, !11, i64 5924}
!77 = !{!10, !11, i64 5944}


; 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.GLFWallocator, %struct._GLFWplatform, %struct.anon, ptr, ptr, ptr, ptr, i32, i32, [16 x %struct._GLFWjoystick], ptr, i32, %struct._GLFWtls, %struct._GLFWtls, %struct._GLFWmutex, %struct.anon.8, %struct.anon.9, %struct.anon.10, %struct.anon.11, %struct.anon.12, %struct._GLFWlibraryNull }
%struct.GLFWallocator = type { ptr, ptr, ptr, ptr }
%struct._GLFWplatform = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.anon = type { %struct._GLFWinitconfig, %struct._GLFWfbconfig, %struct._GLFWwndconfig, %struct._GLFWctxconfig, i32 }
%struct._GLFWinitconfig = type { i32, i32, i32, ptr, %struct.anon.0, %struct.anon.1, %struct.anon.2 }
%struct.anon.0 = type { i32, i32 }
%struct.anon.1 = type { i32 }
%struct.anon.2 = type { 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, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.anon.3, %struct.anon.4, %struct.anon.5, %struct.anon.6 }
%struct.anon.3 = type { [256 x i8] }
%struct.anon.4 = type { [256 x i8], [256 x i8] }
%struct.anon.5 = type { i32, i32 }
%struct.anon.6 = type { [256 x i8] }
%struct._GLFWctxconfig = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, %struct.anon.7 }
%struct.anon.7 = type { i32 }
%struct._GLFWjoystick = type { i32, i32, ptr, i32, ptr, i32, ptr, i32, [128 x i8], ptr, [33 x i8], ptr }
%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.8 = type { i64, %struct._GLFWtimerPOSIX }
%struct._GLFWtimerPOSIX = type { i32, i64 }
%struct.anon.9 = type { i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, 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, ptr, ptr, ptr }
%struct.anon.10 = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.anon.11 = type { i32, ptr, [2 x ptr], ptr, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.anon.12 = type { ptr, ptr }
%struct._GLFWlibraryNull = type { i32, i32, ptr, ptr, [121 x i16], [349 x i8] }

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @_glfwInitEGL() local_unnamed_addr #0 {
  %1 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store ptr null, ptr %1, align 8, !tbaa !5
  %2 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5976), align 8, !tbaa !9
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %.preheader, label %111

.preheader:                                       ; preds = %0
  %3 = load ptr, ptr @__const._glfwInitEGL.sonames, align 16, !tbaa !5
  %.not4964 = icmp eq ptr %3, null
  br i1 %.not4964, label %._crit_edge, label %.lr.ph

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

.lr.ph:                                           ; preds = %.preheader, %4
  %indvars.iv = phi i64 [ %indvars.iv.next, %4 ], [ 0, %.preheader ]
  %7 = phi ptr [ %6, %4 ], [ %3, %.preheader ]
  %8 = tail call ptr @_glfwPlatformLoadModule(ptr noundef nonnull %7) #4
  store ptr %8, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5976), align 8, !tbaa !9
  %.not50 = icmp eq ptr %8, null
  br i1 %.not50, label %4, label %.thread

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

.thread:                                          ; preds = %.lr.ph
  %9 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef 3) #5
  %10 = icmp eq i32 %9, 0
  %11 = zext i1 %10 to i32
  store i32 %11, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5904), align 8, !tbaa !37
  %12 = tail call ptr @_glfwPlatformGetModuleSymbol(ptr noundef nonnull %8, ptr noundef nonnull @.str.3) #4
  store ptr %12, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5984), align 8, !tbaa !38
  %13 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5976), align 8, !tbaa !9
  %14 = tail call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %13, ptr noundef nonnull @.str.4) #4
  store ptr %14, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5992), align 8, !tbaa !39
  %15 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5976), align 8, !tbaa !9
  %16 = tail call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %15, ptr noundef nonnull @.str.5) #4
  store ptr %16, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6000), align 8, !tbaa !40
  %17 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5976), align 8, !tbaa !9
  %18 = tail call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %17, ptr noundef nonnull @.str.6) #4
  store ptr %18, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6008), align 8, !tbaa !41
  %19 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5976), align 8, !tbaa !9
  %20 = tail call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %19, ptr noundef nonnull @.str.7) #4
  store ptr %20, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6016), align 8, !tbaa !42
  %21 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5976), align 8, !tbaa !9
  %22 = tail call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %21, ptr noundef nonnull @.str.8) #4
  store ptr %22, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6024), align 8, !tbaa !43
  %23 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5976), align 8, !tbaa !9
  %24 = tail call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %23, ptr noundef nonnull @.str.9) #4
  store ptr %24, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6032), align 8, !tbaa !44
  %25 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5976), align 8, !tbaa !9
  %26 = tail call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %25, ptr noundef nonnull @.str.10) #4
  store ptr %26, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6040), align 8, !tbaa !45
  %27 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5976), align 8, !tbaa !9
  %28 = tail call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %27, ptr noundef nonnull @.str.11) #4
  store ptr %28, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6048), align 8, !tbaa !46
  %29 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5976), align 8, !tbaa !9
  %30 = tail call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %29, ptr noundef nonnull @.str.12) #4
  store ptr %30, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6056), align 8, !tbaa !47
  %31 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5976), align 8, !tbaa !9
  %32 = tail call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %31, ptr noundef nonnull @.str.13) #4
  store ptr %32, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6064), align 8, !tbaa !48
  %33 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5976), align 8, !tbaa !9
  %34 = tail call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %33, ptr noundef nonnull @.str.14) #4
  store ptr %34, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6072), align 8, !tbaa !49
  %35 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5976), align 8, !tbaa !9
  %36 = tail call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %35, ptr noundef nonnull @.str.15) #4
  store ptr %36, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6080), align 8, !tbaa !50
  %37 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5976), align 8, !tbaa !9
  %38 = tail call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %37, ptr noundef nonnull @.str.16) #4
  store ptr %38, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6088), align 8, !tbaa !51
  %39 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5976), align 8, !tbaa !9
  %40 = tail call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %39, ptr noundef nonnull @.str.17) #4
  store ptr %40, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6096), align 8, !tbaa !52
  %41 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5976), align 8, !tbaa !9
  %42 = tail call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %41, ptr noundef nonnull @.str.18) #4
  store ptr %42, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6104), align 8, !tbaa !53
  %43 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5976), align 8, !tbaa !9
  %44 = tail call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %43, ptr noundef nonnull @.str.19) #4
  store ptr %44, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6112), align 8, !tbaa !54
  %45 = load <16 x ptr>, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5984), align 8
  %.fr = freeze <16 x ptr> %45
  %46 = icmp ne ptr %44, null
  %47 = icmp eq <16 x ptr> %.fr, zeroinitializer
  %48 = bitcast <16 x i1> %47 to i16
  %49 = icmp eq i16 %48, 0
  %op.rdx = select i1 %49, i1 %46, i1 false
  br i1 %op.rdx, label %51, label %50

50:                                               ; preds = %.thread
  tail call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65544, ptr noundef nonnull @.str.20) #4
  tail call void @_glfwTerminateEGL()
  br label %111

51:                                               ; preds = %.thread
  %52 = extractelement <16 x ptr> %.fr, i64 15
  %53 = tail call ptr %52(ptr noundef null, i32 noundef 12373) #4
  %.not52 = icmp eq ptr %53, null
  br i1 %.not52, label %58, label %54

54:                                               ; preds = %51
  %55 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6008), align 8, !tbaa !41
  %56 = tail call i32 %55() #4
  %57 = icmp eq i32 %56, 12288
  br i1 %57, label %.thread60, label %58

.thread60:                                        ; preds = %54
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5928), align 8, !tbaa !55
  br label %59

58:                                               ; preds = %54, %51
  %.pr59 = load i32, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5928), align 8, !tbaa !55
  %.not53 = icmp eq i32 %.pr59, 0
  br i1 %.not53, label %69, label %59

59:                                               ; preds = %.thread60, %58
  %60 = tail call i32 @_glfwStringInExtensionString(ptr noundef nonnull @.str.21, ptr noundef %53) #4
  store i32 %60, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5932), align 4, !tbaa !56
  %61 = tail call i32 @_glfwStringInExtensionString(ptr noundef nonnull @.str.22, ptr noundef %53) #4
  store i32 %61, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5936), align 8, !tbaa !57
  %62 = tail call i32 @_glfwStringInExtensionString(ptr noundef nonnull @.str.23, ptr noundef %53) #4
  store i32 %62, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5940), align 4, !tbaa !58
  %63 = tail call i32 @_glfwStringInExtensionString(ptr noundef nonnull @.str.24, ptr noundef %53) #4
  store i32 %63, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5948), align 4, !tbaa !59
  %64 = tail call i32 @_glfwStringInExtensionString(ptr noundef nonnull @.str.25, ptr noundef %53) #4
  store i32 %64, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5952), align 8, !tbaa !60
  %65 = tail call i32 @_glfwStringInExtensionString(ptr noundef nonnull @.str.26, ptr noundef %53) #4
  store i32 %65, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5956), align 4, !tbaa !61
  %66 = tail call i32 @_glfwStringInExtensionString(ptr noundef nonnull @.str.27, ptr noundef %53) #4
  store i32 %66, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5960), align 8, !tbaa !62
  %67 = tail call i32 @_glfwStringInExtensionString(ptr noundef nonnull @.str.28, ptr noundef %53) #4
  store i32 %67, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5964), align 4, !tbaa !63
  %68 = tail call i32 @_glfwStringInExtensionString(ptr noundef nonnull @.str.29, ptr noundef %53) #4
  store i32 %68, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5968), align 8, !tbaa !64
  br label %69

69:                                               ; preds = %59, %58
  %70 = load i32, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5932), align 4, !tbaa !56
  %.not54 = icmp eq i32 %70, 0
  br i1 %.not54, label %76, label %71

71:                                               ; preds = %69
  %72 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6112), align 8, !tbaa !54
  %73 = tail call ptr %72(ptr noundef nonnull @.str.30) #4
  store ptr %73, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6120), align 8, !tbaa !65
  %74 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6112), align 8, !tbaa !54
  %75 = tail call ptr %74(ptr noundef nonnull @.str.31) #4
  store ptr %75, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6128), align 8, !tbaa !66
  br label %76

76:                                               ; preds = %71, %69
  %77 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 568), align 8, !tbaa !67
  %78 = call i32 %77(ptr noundef nonnull %1) #4
  store i32 %78, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5880), align 8, !tbaa !68
  %.not55 = icmp eq i32 %78, 0
  %79 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 576), align 8, !tbaa !69
  br i1 %.not55, label %85, label %80

80:                                               ; preds = %76
  %81 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6120), align 8, !tbaa !65
  %82 = call ptr %79() #4
  %83 = load ptr, ptr %1, align 8, !tbaa !5
  %84 = call ptr %81(i32 noundef %78, ptr noundef %82, ptr noundef %83) #4
  br label %89

85:                                               ; preds = %76
  %86 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6000), align 8, !tbaa !40
  %87 = call ptr %79() #4
  %88 = call ptr %86(ptr noundef %87) #4
  br label %89

89:                                               ; preds = %85, %80
  %storemerge = phi ptr [ %88, %85 ], [ %84, %80 ]
  store ptr %storemerge, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5888), align 8, !tbaa !70
  %90 = load ptr, ptr %1, align 8, !tbaa !5
  call void @_glfw_free(ptr noundef %90) #4
  %91 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5888), align 8, !tbaa !70
  %92 = icmp eq ptr %91, null
  br i1 %92, label %93, label %97

93:                                               ; preds = %89
  %94 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6008), align 8, !tbaa !41
  %95 = call i32 %94() #4
  %96 = call ptr @getEGLErrorString(i32 noundef %95)
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef nonnull @.str.32, ptr noundef %96) #4
  call void @_glfwTerminateEGL()
  br label %111

97:                                               ; preds = %89
  %98 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6016), align 8, !tbaa !42
  %99 = call i32 %98(ptr noundef nonnull %91, ptr noundef nonnull getelementptr inbounds (i8, ptr @_glfw, i64 5896), ptr noundef nonnull getelementptr inbounds (i8, ptr @_glfw, i64 5900)) #4
  %.not56 = icmp eq i32 %99, 0
  br i1 %.not56, label %100, label %104

100:                                              ; preds = %97
  %101 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6008), align 8, !tbaa !41
  %102 = call i32 %101() #4
  %103 = call ptr @getEGLErrorString(i32 noundef %102)
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef nonnull @.str.33, ptr noundef %103) #4
  call void @_glfwTerminateEGL()
  br label %111

104:                                              ; preds = %97
  %105 = call i32 @extensionSupportedEGL(ptr noundef nonnull @.str.34)
  store i32 %105, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5908), align 4, !tbaa !71
  %106 = call i32 @extensionSupportedEGL(ptr noundef nonnull @.str.35)
  store i32 %106, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5912), align 8, !tbaa !72
  %107 = call i32 @extensionSupportedEGL(ptr noundef nonnull @.str.36)
  store i32 %107, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5916), align 4, !tbaa !73
  %108 = call i32 @extensionSupportedEGL(ptr noundef nonnull @.str.37)
  store i32 %108, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5920), align 8, !tbaa !74
  %109 = call i32 @extensionSupportedEGL(ptr noundef nonnull @.str.38)
  store i32 %109, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5924), align 4, !tbaa !75
  %110 = call i32 @extensionSupportedEGL(ptr noundef nonnull @.str.39)
  store i32 %110, ptr getelementptr inbounds (i8, ptr @_glfw, i64 5944), align 8, !tbaa !76
  br label %111

111:                                              ; preds = %0, %104, %100, %93, %50, %._crit_edge
  %.0 = phi i32 [ 0, %93 ], [ 1, %104 ], [ 0, %100 ], [ 0, %50 ], [ 0, %._crit_edge ], [ 1, %0 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  ret i32 %.0
}

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

declare ptr @_glfwPlatformLoadModule(ptr noundef) local_unnamed_addr #2

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

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

declare ptr @_glfwPlatformGetModuleSymbol(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @_glfwTerminateEGL() local_unnamed_addr #0

declare i32 @_glfwStringInExtensionString(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_glfw_free(ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { nounwind }
attributes #5 = { 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, !6, i64 5976}
!10 = !{!"_GLFWlibrary", !11, i64 0, !12, i64 8, !13, i64 40, !14, i64 616, !6, i64 1896, !6, i64 1904, !6, i64 1912, !6, i64 1920, !11, i64 1928, !11, i64 1932, !7, i64 1936, !6, i64 5776, !11, i64 5784, !24, i64 5788, !24, i64 5796, !26, i64 5808, !28, i64 5856, !30, i64 5880, !31, i64 6136, !32, i64 6200, !33, i64 6272, !34, i64 6288}
!11 = !{!"int", !7, i64 0}
!12 = !{!"GLFWallocator", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!13 = !{!"_GLFWplatform", !11, 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, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !6, i64 408, !6, i64 416, !6, i64 424, !6, i64 432, !6, i64 440, !6, i64 448, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480, !6, i64 488, !6, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568}
!14 = !{!"", !15, i64 0, !18, i64 40, !20, i64 112, !23, i64 1216, !11, i64 1272}
!15 = !{!"_GLFWinitconfig", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !16, i64 24, !17, i64 32, !17, i64 36}
!16 = !{!"", !11, i64 0, !11, i64 4}
!17 = !{!"", !11, i64 0}
!18 = !{!"_GLFWfbconfig", !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, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !19, i64 64}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_GLFWwndconfig", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !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, !21, i64 72, !22, i64 328, !16, i64 840, !21, i64 848}
!21 = !{!"", !7, i64 0}
!22 = !{!"", !7, i64 0, !7, i64 256}
!23 = !{!"_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, !17, i64 48}
!24 = !{!"_GLFWtls", !25, i64 0}
!25 = !{!"_GLFWtlsPOSIX", !11, i64 0, !11, i64 4}
!26 = !{!"_GLFWmutex", !27, i64 0}
!27 = !{!"_GLFWmutexPOSIX", !11, i64 0, !7, i64 8}
!28 = !{!"", !19, i64 0, !29, i64 8}
!29 = !{!"_GLFWtimerPOSIX", !11, i64 0, !19, i64 8}
!30 = !{!"", !11, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !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, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248}
!31 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!32 = !{!"", !11, i64 0, !6, i64 8, !7, i64 16, !6, i64 32, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68}
!33 = !{!"", !6, i64 0, !6, i64 8}
!34 = !{!"_GLFWlibraryNull", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !7, i64 24, !7, i64 266}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!10, !11, i64 5904}
!38 = !{!10, !6, i64 5984}
!39 = !{!10, !6, i64 5992}
!40 = !{!10, !6, i64 6000}
!41 = !{!10, !6, i64 6008}
!42 = !{!10, !6, i64 6016}
!43 = !{!10, !6, i64 6024}
!44 = !{!10, !6, i64 6032}
!45 = !{!10, !6, i64 6040}
!46 = !{!10, !6, i64 6048}
!47 = !{!10, !6, i64 6056}
!48 = !{!10, !6, i64 6064}
!49 = !{!10, !6, i64 6072}
!50 = !{!10, !6, i64 6080}
!51 = !{!10, !6, i64 6088}
!52 = !{!10, !6, i64 6096}
!53 = !{!10, !6, i64 6104}
!54 = !{!10, !6, i64 6112}
!55 = !{!10, !11, i64 5928}
!56 = !{!10, !11, i64 5932}
!57 = !{!10, !11, i64 5936}
!58 = !{!10, !11, i64 5940}
!59 = !{!10, !11, i64 5948}
!60 = !{!10, !11, i64 5952}
!61 = !{!10, !11, i64 5956}
!62 = !{!10, !11, i64 5960}
!63 = !{!10, !11, i64 5964}
!64 = !{!10, !11, i64 5968}
!65 = !{!10, !6, i64 6120}
!66 = !{!10, !6, i64 6128}
!67 = !{!10, !6, i64 568}
!68 = !{!10, !11, i64 5880}
!69 = !{!10, !6, i64 576}
!70 = !{!10, !6, i64 5888}
!71 = !{!10, !11, i64 5908}
!72 = !{!10, !11, i64 5912}
!73 = !{!10, !11, i64 5916}
!74 = !{!10, !11, i64 5920}
!75 = !{!10, !11, i64 5924}
!76 = !{!10, !11, i64 5944}


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