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

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

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

@_glfw = external global %struct._GLFWlibrary, align 8

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @_glfwPlatformGetVideoMode(ptr noundef, ptr noundef) #3

declare i32 @_glfwCompareVideoModes(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden ptr @getModeInfo(ptr noundef, i64 noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @modeIsGood(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @vidmodeFromModeInfo(ptr dead_on_unwind noalias writable sret(%struct.GLFWvidmode) align 4, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local ptr @_glfwPlatformGetVideoModes(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %struct.GLFWvidmode, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !9
  %15 = load i32, ptr getelementptr inbounds (%struct._GLFWlibraryX11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 16), i32 0, i32 64), align 8, !tbaa !11
  %16 = icmp ne i32 %15, 0
  br i1 %16, label %17, label %116

17:                                               ; preds = %2
  %18 = load i32, ptr getelementptr inbounds (%struct.anon.7, ptr getelementptr inbounds (%struct._GLFWlibraryX11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 16), i32 0, i32 64), i32 0, i32 7), align 4, !tbaa !48
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %116, label %20

20:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %21 = load ptr, ptr getelementptr inbounds (%struct.anon.7, ptr getelementptr inbounds (%struct._GLFWlibraryX11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 16), i32 0, i32 64), i32 0, i32 18), align 8, !tbaa !49
  %22 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 16), align 8, !tbaa !50
  %23 = load i64, ptr getelementptr inbounds (%struct._GLFWlibraryX11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 16), i32 0, i32 2), align 8, !tbaa !51
  %24 = call ptr %21(ptr noundef %22, i64 noundef %23)
  store ptr %24, ptr %8, align 8, !tbaa !5
  %25 = load ptr, ptr getelementptr inbounds (%struct.anon.7, ptr getelementptr inbounds (%struct._GLFWlibraryX11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 16), i32 0, i32 64), i32 0, i32 15), align 8, !tbaa !52
  %26 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 16), align 8, !tbaa !50
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct._GLFWmonitor, ptr %28, i32 0, i32 10
  %30 = getelementptr inbounds %struct._GLFWmonitorX11, ptr %29, i32 0, i32 1
  %31 = load i64, ptr %30, align 8, !tbaa !53
  %32 = call ptr %25(ptr noundef %26, ptr noundef %27, i64 noundef %31)
  store ptr %32, ptr %9, align 8, !tbaa !5
  %33 = load ptr, ptr getelementptr inbounds (%struct.anon.7, ptr getelementptr inbounds (%struct._GLFWlibraryX11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 16), i32 0, i32 64), i32 0, i32 16), align 8, !tbaa !58
  %34 = load ptr, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 16), align 8, !tbaa !50
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct._GLFWmonitor, ptr %36, i32 0, i32 10
  %38 = getelementptr inbounds %struct._GLFWmonitorX11, ptr %37, i32 0, i32 0
  %39 = load i64, ptr %38, align 8, !tbaa !59
  %40 = call ptr %33(ptr noundef %34, ptr noundef %35, i64 noundef %39)
  store ptr %40, ptr %10, align 8, !tbaa !5
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct._XRROutputInfo, ptr %41, i32 0, i32 12
  %43 = load i32, ptr %42, align 8, !tbaa !60
  %44 = sext i32 %43 to i64
  %45 = call noalias ptr @calloc(i64 noundef %44, i64 noundef 24) #6
  store ptr %45, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %106, %20
  %47 = load i32, ptr %6, align 4, !tbaa !9
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct._XRROutputInfo, ptr %48, i32 0, i32 12
  %50 = load i32, ptr %49, align 8, !tbaa !60
  %51 = icmp slt i32 %47, %50
  br i1 %51, label %52, label %109

52:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct._XRROutputInfo, ptr %54, i32 0, i32 14
  %56 = load ptr, ptr %55, align 8, !tbaa !63
  %57 = load i32, ptr %6, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds i64, ptr %56, i64 %58
  %60 = load i64, ptr %59, align 8, !tbaa !64
  %61 = call ptr @getModeInfo(ptr noundef %53, i64 noundef %60)
  store ptr %61, ptr %11, align 8, !tbaa !5
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = call i32 @modeIsGood(ptr noundef %62)
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %66, label %65

65:                                               ; preds = %52
  store i32 4, ptr %12, align 4
  br label %103

66:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #5
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  call void @vidmodeFromModeInfo(ptr dead_on_unwind writable sret(%struct.GLFWvidmode) align 4 %13, ptr noundef %67, ptr noundef %68)
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %83, %66
  %70 = load i32, ptr %7, align 4, !tbaa !9
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = load i32, ptr %71, align 4, !tbaa !9
  %73 = icmp slt i32 %70, %72
  br i1 %73, label %74, label %86

74:                                               ; preds = %69
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = load i32, ptr %7, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds %struct.GLFWvidmode, ptr %75, i64 %77
  %79 = call i32 @_glfwCompareVideoModes(ptr noundef %78, ptr noundef %13)
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %81, label %82

81:                                               ; preds = %74
  br label %86

82:                                               ; preds = %74
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr %7, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %7, align 4, !tbaa !9
  br label %69, !llvm.loop !65

86:                                               ; preds = %81, %69
  %87 = load i32, ptr %7, align 4, !tbaa !9
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = load i32, ptr %88, align 4, !tbaa !9
  %90 = icmp slt i32 %87, %89
  br i1 %90, label %91, label %92

91:                                               ; preds = %86
  store i32 4, ptr %12, align 4
  br label %102

92:                                               ; preds = %86
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = load i32, ptr %93, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %93, align 4, !tbaa !9
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = sub nsw i32 %98, 1
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds %struct.GLFWvidmode, ptr %96, i64 %100
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %101, ptr align 4 %13, i64 24, i1 false), !tbaa.struct !67
  store i32 0, ptr %12, align 4
  br label %102

102:                                              ; preds = %92, %91
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  br label %103

103:                                              ; preds = %102, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  %104 = load i32, ptr %12, align 4
  switch i32 %104, label %123 [
    i32 0, label %105
    i32 4, label %106
  ]

105:                                              ; preds = %103
  br label %106

106:                                              ; preds = %105, %103
  %107 = load i32, ptr %6, align 4, !tbaa !9
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %6, align 4, !tbaa !9
  br label %46, !llvm.loop !68

109:                                              ; preds = %46
  %110 = load ptr, ptr getelementptr inbounds (%struct.anon.7, ptr getelementptr inbounds (%struct._GLFWlibraryX11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 16), i32 0, i32 64), i32 0, i32 11), align 8, !tbaa !69
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  call void %110(ptr noundef %111)
  %112 = load ptr, ptr getelementptr inbounds (%struct.anon.7, ptr getelementptr inbounds (%struct._GLFWlibraryX11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 16), i32 0, i32 64), i32 0, i32 9), align 8, !tbaa !70
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  call void %112(ptr noundef %113)
  %114 = load ptr, ptr getelementptr inbounds (%struct.anon.7, ptr getelementptr inbounds (%struct._GLFWlibraryX11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 16), i32 0, i32 64), i32 0, i32 12), align 8, !tbaa !71
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  call void %114(ptr noundef %115)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %121

116:                                              ; preds = %17, %2
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  store i32 1, ptr %117, align 4, !tbaa !9
  %118 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 24) #6
  store ptr %118, ptr %5, align 8, !tbaa !5
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_glfwPlatformGetVideoMode(ptr noundef %119, ptr noundef %120)
  br label %121

121:                                              ; preds = %116, %109
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret ptr %122

123:                                              ; preds = %103
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(0,1) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { nounwind allocsize(0,1) }

!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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 132448}
!12 = !{!"_GLFWlibrary", !10, i64 0, !13, i64 8, !6, i64 992, !6, i64 1000, !6, i64 1008, !6, i64 1016, !10, i64 1024, !7, i64 1032, !6, i64 130568, !10, i64 130576, !23, i64 130580, !23, i64 130588, !25, i64 130600, !27, i64 130648, !29, i64 130672, !30, i64 130736, !31, i64 130752, !43, i64 132960, !44, i64 133184, !46, i64 133264, !47, i64 133440}
!13 = !{!"", !14, i64 0, !16, i64 16, !18, i64 88, !21, i64 920, !10, i64 976}
!14 = !{!"_GLFWinitconfig", !10, i64 0, !15, i64 4}
!15 = !{!"", !10, i64 0, !10, i64 4}
!16 = !{!"_GLFWfbconfig", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !17, i64 64}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_GLFWwndconfig", !10, i64 0, !10, i64 4, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !19, i64 56, !20, i64 316}
!19 = !{!"", !10, i64 0, !7, i64 4}
!20 = !{!"", !7, i64 0, !7, i64 256}
!21 = !{!"_GLFWctxconfig", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !6, i64 40, !22, i64 48}
!22 = !{!"", !10, i64 0}
!23 = !{!"_GLFWtls", !24, i64 0}
!24 = !{!"_GLFWtlsPOSIX", !10, i64 0, !10, i64 4}
!25 = !{!"_GLFWmutex", !26, i64 0}
!26 = !{!"_GLFWmutexPOSIX", !10, i64 0, !7, i64 8}
!27 = !{!"", !17, i64 0, !28, i64 8}
!28 = !{!"_GLFWtimerPOSIX", !10, i64 0, !17, i64 8}
!29 = !{!"", !10, i64 0, !6, i64 8, !7, i64 16, !6, i64 32, !6, i64 40, !10, i64 48, !10, i64 52, !10, i64 56}
!30 = !{!"", !6, i64 0, !6, i64 8}
!31 = !{!"_GLFWlibraryX11", !6, i64 0, !10, i64 8, !17, i64 16, !32, i64 24, !32, i64 28, !17, i64 32, !17, i64 40, !10, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !6, i64 80, !7, i64 88, !7, i64 94, !7, i64 606, !33, i64 1304, !33, i64 1312, !6, i64 1320, !17, i64 1328, !17, i64 1336, !17, i64 1344, !17, i64 1352, !17, i64 1360, !17, i64 1368, !17, i64 1376, !17, i64 1384, !17, i64 1392, !17, i64 1400, !17, i64 1408, !17, i64 1416, !17, i64 1424, !17, i64 1432, !17, i64 1440, !17, i64 1448, !17, i64 1456, !17, i64 1464, !17, i64 1472, !17, i64 1480, !17, i64 1488, !17, i64 1496, !17, i64 1504, !17, i64 1512, !17, i64 1520, !17, i64 1528, !17, i64 1536, !17, i64 1544, !17, i64 1552, !17, i64 1560, !17, i64 1568, !17, i64 1576, !17, i64 1584, !17, i64 1592, !17, i64 1600, !17, i64 1608, !17, i64 1616, !17, i64 1624, !17, i64 1632, !17, i64 1640, !17, i64 1648, !17, i64 1656, !17, i64 1664, !17, i64 1672, !17, i64 1680, !17, i64 1688, !34, i64 1696, !35, i64 1872, !36, i64 1900, !37, i64 1920, !38, i64 1944, !39, i64 1976, !30, i64 2024, !40, i64 2040, !41, i64 2096, !42, i64 2152}
!32 = !{!"float", !7, i64 0}
!33 = !{!"double", !7, i64 0}
!34 = !{!"", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !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}
!35 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24}
!36 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!37 = !{!"", !10, i64 0, !17, i64 8, !17, i64 16}
!38 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!39 = !{!"", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !6, i64 40}
!40 = !{!"", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!41 = !{!"", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !6, i64 40, !6, i64 48}
!42 = !{!"", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !6, i64 32, !6, i64 40, !6, i64 48}
!43 = !{!"_GLFWlibraryGLX", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !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, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !10, i64 220}
!44 = !{!"_GLFWlibraryLinux", !10, i64 0, !10, i64 4, !45, i64 8, !10, i64 72}
!45 = !{!"re_pattern_buffer", !6, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !6, i64 32, !6, i64 40, !17, i64 48, !10, i64 56, !10, i64 56, !10, i64 56, !10, i64 56, !10, i64 56, !10, i64 56, !10, i64 56}
!46 = !{!"_GLFWlibraryEGL", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !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}
!47 = !{!"_GLFWlibraryOSMesa", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!48 = !{!12, !10, i64 132484}
!49 = !{!12, !6, i64 132568}
!50 = !{!12, !6, i64 130752}
!51 = !{!12, !17, i64 130768}
!52 = !{!12, !6, i64 132544}
!53 = !{!54, !17, i64 144}
!54 = !{!"_GLFWmonitor", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !10, i64 40, !55, i64 44, !56, i64 72, !56, i64 104, !57, i64 136}
!55 = !{!"GLFWvidmode", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!56 = !{!"GLFWgammaramp", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24}
!57 = !{!"_GLFWmonitorX11", !17, i64 0, !17, i64 8, !17, i64 16, !10, i64 24}
!58 = !{!12, !6, i64 132552}
!59 = !{!54, !17, i64 136}
!60 = !{!61, !10, i64 80}
!61 = !{!"_XRROutputInfo", !17, i64 0, !17, i64 8, !6, i64 16, !10, i64 24, !17, i64 32, !17, i64 40, !62, i64 48, !62, i64 50, !10, i64 52, !6, i64 56, !10, i64 64, !6, i64 72, !10, i64 80, !10, i64 84, !6, i64 88}
!62 = !{!"short", !7, i64 0}
!63 = !{!61, !6, i64 88}
!64 = !{!17, !17, i64 0}
!65 = distinct !{!65, !66}
!66 = !{!"llvm.loop.mustprogress"}
!67 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9, i64 16, i64 4, !9, i64 20, i64 4, !9}
!68 = distinct !{!68, !66}
!69 = !{!12, !6, i64 132512}
!70 = !{!12, !6, i64 132496}
!71 = !{!12, !6, i64 132520}


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

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

@_glfw = external local_unnamed_addr global %struct._GLFWlibrary, align 8

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @_glfwPlatformGetVideoMode(ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @_glfwCompareVideoModes(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden ptr @getModeInfo(ptr noundef, i64 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare hidden void @vidmodeFromModeInfo(ptr dead_on_unwind noalias writable sret(%struct.GLFWvidmode) align 4, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @_glfwPlatformGetVideoModes(ptr noundef %0, ptr nocapture noundef %1) local_unnamed_addr #3 {
  %3 = alloca %struct.GLFWvidmode, align 4
  store i32 0, ptr %1, align 4, !tbaa !5
  %4 = load i32, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132448), align 8, !tbaa !9
  %5 = icmp eq i32 %4, 0
  %6 = load i32, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132484), align 4
  %7 = icmp ne i32 %6, 0
  %or.cond = select i1 %5, i1 true, i1 %7
  br i1 %or.cond, label %58, label %8

8:                                                ; preds = %2
  %9 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132568), align 8, !tbaa !47
  %10 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 130752), align 8, !tbaa !48
  %11 = load i64, ptr getelementptr inbounds (i8, ptr @_glfw, i64 130768), align 8, !tbaa !49
  %12 = tail call ptr %9(ptr noundef %10, i64 noundef %11) #5
  %13 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132544), align 8, !tbaa !50
  %14 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 130752), align 8, !tbaa !48
  %15 = getelementptr inbounds i8, ptr %0, i64 136
  %16 = getelementptr inbounds i8, ptr %0, i64 144
  %17 = load i64, ptr %16, align 8, !tbaa !51
  %18 = tail call ptr %13(ptr noundef %14, ptr noundef %12, i64 noundef %17) #5
  %19 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132552), align 8, !tbaa !56
  %20 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 130752), align 8, !tbaa !48
  %21 = load i64, ptr %15, align 8, !tbaa !57
  %22 = tail call ptr %19(ptr noundef %20, ptr noundef %12, i64 noundef %21) #5
  %23 = getelementptr inbounds i8, ptr %22, i64 80
  %24 = load i32, ptr %23, align 8, !tbaa !58
  %25 = sext i32 %24 to i64
  %26 = tail call noalias ptr @calloc(i64 noundef %25, i64 noundef 24) #6
  %27 = icmp sgt i32 %24, 0
  br i1 %27, label %.lr.ph40, label %._crit_edge41

.lr.ph40:                                         ; preds = %8
  %28 = getelementptr inbounds i8, ptr %22, i64 88
  br label %29

29:                                               ; preds = %.lr.ph40, %51
  %indvars.iv43 = phi i64 [ 0, %.lr.ph40 ], [ %indvars.iv.next44, %51 ]
  %30 = load ptr, ptr %28, align 8, !tbaa !61
  %31 = getelementptr inbounds i64, ptr %30, i64 %indvars.iv43
  %32 = load i64, ptr %31, align 8, !tbaa !62
  %33 = call ptr @getModeInfo(ptr noundef %12, i64 noundef %32)
  %34 = call i32 @modeIsGood(ptr noundef %33)
  %.not = icmp eq i32 %34, 0
  br i1 %.not, label %51, label %35

35:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @vidmodeFromModeInfo(ptr dead_on_unwind nonnull writable sret(%struct.GLFWvidmode) align 4 %3, ptr noundef %33, ptr noundef %18)
  %36 = load i32, ptr %1, align 4, !tbaa !5
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %35, %41
  %indvars.iv = phi i64 [ %indvars.iv.next, %41 ], [ 0, %35 ]
  %38 = getelementptr inbounds %struct.GLFWvidmode, ptr %26, i64 %indvars.iv
  %39 = call i32 @_glfwCompareVideoModes(ptr noundef %38, ptr noundef nonnull %3) #5
  %40 = icmp eq i32 %39, 0
  %.pre.pre = load i32, ptr %1, align 4, !tbaa !5
  br i1 %40, label %._crit_edge.loopexit, label %41

41:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %42 = sext i32 %.pre.pre to i64
  %43 = icmp slt i64 %indvars.iv.next, %42
  br i1 %43, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !63

._crit_edge.loopexit:                             ; preds = %.lr.ph, %41
  %.033.lcssa.ph.in = phi i64 [ %indvars.iv.next, %41 ], [ %indvars.iv, %.lr.ph ]
  %.033.lcssa.ph = trunc i64 %.033.lcssa.ph.in to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %35
  %44 = phi i32 [ %36, %35 ], [ %.pre.pre, %._crit_edge.loopexit ]
  %.033.lcssa = phi i32 [ 0, %35 ], [ %.033.lcssa.ph, %._crit_edge.loopexit ]
  %45 = icmp slt i32 %.033.lcssa, %44
  br i1 %45, label %50, label %46

46:                                               ; preds = %._crit_edge
  %47 = add nsw i32 %44, 1
  store i32 %47, ptr %1, align 4, !tbaa !5
  %48 = sext i32 %44 to i64
  %49 = getelementptr inbounds %struct.GLFWvidmode, ptr %26, i64 %48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) %49, ptr noundef nonnull align 4 dereferenceable(24) %3, i64 24, i1 false), !tbaa.struct !65
  br label %50

50:                                               ; preds = %._crit_edge, %46
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  br label %51

51:                                               ; preds = %29, %50
  %indvars.iv.next44 = add nuw nsw i64 %indvars.iv43, 1
  %52 = load i32, ptr %23, align 8, !tbaa !58
  %53 = sext i32 %52 to i64
  %54 = icmp slt i64 %indvars.iv.next44, %53
  br i1 %54, label %29, label %._crit_edge41, !llvm.loop !66

._crit_edge41:                                    ; preds = %51, %8
  %55 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132512), align 8, !tbaa !67
  call void %55(ptr noundef nonnull %22) #5
  %56 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132496), align 8, !tbaa !68
  call void %56(ptr noundef %18) #5
  %57 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 132520), align 8, !tbaa !69
  call void %57(ptr noundef %12) #5
  br label %60

58:                                               ; preds = %2
  store i32 1, ptr %1, align 4, !tbaa !5
  %59 = tail call noalias dereferenceable_or_null(24) ptr @calloc(i64 noundef 1, i64 noundef 24) #6
  tail call void @_glfwPlatformGetVideoMode(ptr noundef %0, ptr noundef %59)
  br label %60

60:                                               ; preds = %58, %._crit_edge41
  %.0 = phi ptr [ %59, %58 ], [ %26, %._crit_edge41 ]
  ret ptr %.0
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { nounwind allocsize(0,1) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 132448}
!10 = !{!"_GLFWlibrary", !6, i64 0, !11, i64 8, !17, i64 992, !17, i64 1000, !17, i64 1008, !17, i64 1016, !6, i64 1024, !7, i64 1032, !17, i64 130568, !6, i64 130576, !22, i64 130580, !22, i64 130588, !24, i64 130600, !26, i64 130648, !28, i64 130672, !29, i64 130736, !30, i64 130752, !42, i64 132960, !43, i64 133184, !45, i64 133264, !46, i64 133440}
!11 = !{!"", !12, i64 0, !14, i64 16, !16, i64 88, !20, i64 920, !6, i64 976}
!12 = !{!"_GLFWinitconfig", !6, i64 0, !13, i64 4}
!13 = !{!"", !6, i64 0, !6, i64 4}
!14 = !{!"_GLFWfbconfig", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !15, i64 64}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_GLFWwndconfig", !6, i64 0, !6, i64 4, !17, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !18, i64 56, !19, i64 316}
!17 = !{!"any pointer", !7, i64 0}
!18 = !{!"", !6, i64 0, !7, i64 4}
!19 = !{!"", !7, i64 0, !7, i64 256}
!20 = !{!"_GLFWctxconfig", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !17, i64 40, !21, i64 48}
!21 = !{!"", !6, i64 0}
!22 = !{!"_GLFWtls", !23, i64 0}
!23 = !{!"_GLFWtlsPOSIX", !6, i64 0, !6, i64 4}
!24 = !{!"_GLFWmutex", !25, i64 0}
!25 = !{!"_GLFWmutexPOSIX", !6, i64 0, !7, i64 8}
!26 = !{!"", !15, i64 0, !27, i64 8}
!27 = !{!"_GLFWtimerPOSIX", !6, i64 0, !15, i64 8}
!28 = !{!"", !6, i64 0, !17, i64 8, !7, i64 16, !17, i64 32, !17, i64 40, !6, i64 48, !6, i64 52, !6, i64 56}
!29 = !{!"", !17, i64 0, !17, i64 8}
!30 = !{!"_GLFWlibraryX11", !17, i64 0, !6, i64 8, !15, i64 16, !31, i64 24, !31, i64 28, !15, i64 32, !15, i64 40, !6, i64 48, !17, i64 56, !6, i64 64, !17, i64 72, !17, i64 80, !7, i64 88, !7, i64 94, !7, i64 606, !32, i64 1304, !32, i64 1312, !17, i64 1320, !15, i64 1328, !15, i64 1336, !15, i64 1344, !15, i64 1352, !15, i64 1360, !15, i64 1368, !15, i64 1376, !15, i64 1384, !15, i64 1392, !15, i64 1400, !15, i64 1408, !15, i64 1416, !15, i64 1424, !15, i64 1432, !15, i64 1440, !15, i64 1448, !15, i64 1456, !15, i64 1464, !15, i64 1472, !15, i64 1480, !15, i64 1488, !15, i64 1496, !15, i64 1504, !15, i64 1512, !15, i64 1520, !15, i64 1528, !15, i64 1536, !15, i64 1544, !15, i64 1552, !15, i64 1560, !15, i64 1568, !15, i64 1576, !15, i64 1584, !15, i64 1592, !15, i64 1600, !15, i64 1608, !15, i64 1616, !15, i64 1624, !15, i64 1632, !15, i64 1640, !15, i64 1648, !15, i64 1656, !15, i64 1664, !15, i64 1672, !15, i64 1680, !15, i64 1688, !33, i64 1696, !34, i64 1872, !35, i64 1900, !36, i64 1920, !37, i64 1944, !38, i64 1976, !29, i64 2024, !39, i64 2040, !40, i64 2096, !41, i64 2152}
!31 = !{!"float", !7, i64 0}
!32 = !{!"double", !7, i64 0}
!33 = !{!"", !6, i64 0, !17, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !17, i64 40, !17, i64 48, !17, i64 56, !17, i64 64, !17, i64 72, !17, i64 80, !17, i64 88, !17, i64 96, !17, i64 104, !17, i64 112, !17, i64 120, !17, i64 128, !17, i64 136, !17, i64 144, !17, i64 152, !17, i64 160, !17, i64 168}
!34 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24}
!35 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16}
!36 = !{!"", !6, i64 0, !15, i64 8, !15, i64 16}
!37 = !{!"", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24}
!38 = !{!"", !6, i64 0, !17, i64 8, !6, i64 16, !6, i64 20, !17, i64 24, !17, i64 32, !17, i64 40}
!39 = !{!"", !6, i64 0, !17, i64 8, !6, i64 16, !6, i64 20, !17, i64 24, !17, i64 32, !17, i64 40, !17, i64 48}
!40 = !{!"", !6, i64 0, !17, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !17, i64 40, !17, i64 48}
!41 = !{!"", !6, i64 0, !17, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !17, i64 32, !17, i64 40, !17, i64 48}
!42 = !{!"_GLFWlibraryGLX", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !17, i64 48, !17, i64 56, !17, i64 64, !17, i64 72, !17, i64 80, !17, i64 88, !17, i64 96, !17, i64 104, !17, i64 112, !17, i64 120, !17, i64 128, !17, i64 136, !17, i64 144, !17, i64 152, !17, i64 160, !17, i64 168, !6, i64 176, !6, i64 180, !6, i64 184, !6, i64 188, !6, i64 192, !6, i64 196, !6, i64 200, !6, i64 204, !6, i64 208, !6, i64 212, !6, i64 216, !6, i64 220}
!43 = !{!"_GLFWlibraryLinux", !6, i64 0, !6, i64 4, !44, i64 8, !6, i64 72}
!44 = !{!"re_pattern_buffer", !17, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !17, i64 32, !17, i64 40, !15, i64 48, !6, i64 56, !6, i64 56, !6, i64 56, !6, i64 56, !6, i64 56, !6, i64 56, !6, i64 56}
!45 = !{!"_GLFWlibraryEGL", !17, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !17, i64 40, !17, i64 48, !17, i64 56, !17, i64 64, !17, i64 72, !17, i64 80, !17, i64 88, !17, i64 96, !17, i64 104, !17, i64 112, !17, i64 120, !17, i64 128, !17, i64 136, !17, i64 144, !17, i64 152, !17, i64 160, !17, i64 168}
!46 = !{!"_GLFWlibraryOSMesa", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !17, i64 48, !17, i64 56}
!47 = !{!10, !17, i64 132568}
!48 = !{!10, !17, i64 130752}
!49 = !{!10, !15, i64 130768}
!50 = !{!10, !17, i64 132544}
!51 = !{!52, !15, i64 144}
!52 = !{!"_GLFWmonitor", !17, i64 0, !17, i64 8, !6, i64 16, !6, i64 20, !17, i64 24, !17, i64 32, !6, i64 40, !53, i64 44, !54, i64 72, !54, i64 104, !55, i64 136}
!53 = !{!"GLFWvidmode", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20}
!54 = !{!"GLFWgammaramp", !17, i64 0, !17, i64 8, !17, i64 16, !6, i64 24}
!55 = !{!"_GLFWmonitorX11", !15, i64 0, !15, i64 8, !15, i64 16, !6, i64 24}
!56 = !{!10, !17, i64 132552}
!57 = !{!52, !15, i64 136}
!58 = !{!59, !6, i64 80}
!59 = !{!"_XRROutputInfo", !15, i64 0, !15, i64 8, !17, i64 16, !6, i64 24, !15, i64 32, !15, i64 40, !60, i64 48, !60, i64 50, !6, i64 52, !17, i64 56, !6, i64 64, !17, i64 72, !6, i64 80, !6, i64 84, !17, i64 88}
!60 = !{!"short", !7, i64 0}
!61 = !{!59, !17, i64 88}
!62 = !{!15, !15, i64 0}
!63 = distinct !{!63, !64}
!64 = !{!"llvm.loop.mustprogress"}
!65 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5, i64 16, i64 4, !5, i64 20, i64 4, !5}
!66 = distinct !{!66, !64}
!67 = !{!10, !17, i64 132512}
!68 = !{!10, !17, i64 132496}
!69 = !{!10, !17, i64 132520}


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