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

; 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.regmatch_t = type { i32, i32 }
%struct.inotify_event = type { i32, i32, i32, i32, [0 x i8] }

@_glfw = external global %struct._GLFWlibrary, align 8
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1

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

declare i32 @regexec(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #2

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

; 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 hidden void @closeJoystick(ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @_glfwDetectJoystickConnectionLinux() #3 {
  %1 = alloca i64, align 8
  %2 = alloca [16384 x i8], align 16
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca %struct.regmatch_t, align 4
  %6 = alloca ptr, align 8
  %7 = alloca [4096 x i8], align 16
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #5
  store i64 0, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16384, ptr %2) #5
  %9 = load i32, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 18), align 8, !tbaa !9
  %10 = icmp sle i32 %9, 0
  br i1 %10, label %11, label %12

11:                                               ; preds = %0
  store i32 1, ptr %3, align 4
  br label %86

12:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %13 = load i32, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 18), align 8, !tbaa !9
  %14 = getelementptr inbounds [16384 x i8], ptr %2, i64 0, i64 0
  %15 = call i64 @read(i32 noundef %13, ptr noundef %14, i64 noundef 16384)
  store i64 %15, ptr %4, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %84, %82, %12
  %17 = load i64, ptr %4, align 8, !tbaa !5
  %18 = load i64, ptr %1, align 8, !tbaa !5
  %19 = icmp sgt i64 %17, %18
  br i1 %19, label %20, label %85

20:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %21 = getelementptr inbounds [16384 x i8], ptr %2, i64 0, i64 0
  %22 = load i64, ptr %1, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %21, i64 %22
  store ptr %23, ptr %6, align 8, !tbaa !47
  %24 = load ptr, ptr %6, align 8, !tbaa !47
  %25 = getelementptr inbounds %struct.inotify_event, ptr %24, i32 0, i32 3
  %26 = load i32, ptr %25, align 4, !tbaa !48
  %27 = zext i32 %26 to i64
  %28 = add i64 16, %27
  %29 = load i64, ptr %1, align 8, !tbaa !5
  %30 = add i64 %29, %28
  store i64 %30, ptr %1, align 8, !tbaa !5
  %31 = load ptr, ptr %6, align 8, !tbaa !47
  %32 = getelementptr inbounds %struct.inotify_event, ptr %31, i32 0, i32 4
  %33 = getelementptr inbounds [0 x i8], ptr %32, i64 0, i64 0
  %34 = call i32 @regexec(ptr noundef getelementptr inbounds (%struct._GLFWlibraryLinux, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 18), i32 0, i32 2), ptr noundef %33, i64 noundef 1, ptr noundef %5, i32 noundef 0)
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %37

36:                                               ; preds = %20
  store i32 2, ptr %3, align 4
  br label %82, !llvm.loop !49

37:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4096, ptr %7) #5
  %38 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
  %39 = load ptr, ptr %6, align 8, !tbaa !47
  %40 = getelementptr inbounds %struct.inotify_event, ptr %39, i32 0, i32 4
  %41 = getelementptr inbounds [0 x i8], ptr %40, i64 0, i64 0
  %42 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %38, i64 noundef 4096, ptr noundef @.str.4, ptr noundef %41) #5
  %43 = load ptr, ptr %6, align 8, !tbaa !47
  %44 = getelementptr inbounds %struct.inotify_event, ptr %43, i32 0, i32 1
  %45 = load i32, ptr %44, align 4, !tbaa !48
  %46 = and i32 %45, 260
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %51

48:                                               ; preds = %37
  %49 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
  %50 = call i32 @openJoystickDevice(ptr noundef %49)
  br label %81

51:                                               ; preds = %37
  %52 = load ptr, ptr %6, align 8, !tbaa !47
  %53 = getelementptr inbounds %struct.inotify_event, ptr %52, i32 0, i32 1
  %54 = load i32, ptr %53, align 4, !tbaa !48
  %55 = and i32 %54, 512
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %80

57:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !48
  br label %58

58:                                               ; preds = %76, %57
  %59 = load i32, ptr %8, align 4, !tbaa !48
  %60 = icmp sle i32 %59, 15
  br i1 %60, label %61, label %79

61:                                               ; preds = %58
  %62 = load i32, ptr %8, align 4, !tbaa !48
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [16 x %struct._GLFWjoystick], ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 7), i64 0, i64 %63
  %65 = getelementptr inbounds %struct._GLFWjoystick, ptr %64, i32 0, i32 11
  %66 = getelementptr inbounds %struct._GLFWjoystickLinux, ptr %65, i32 0, i32 1
  %67 = getelementptr inbounds [4096 x i8], ptr %66, i64 0, i64 0
  %68 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
  %69 = call i32 @strcmp(ptr noundef %67, ptr noundef %68) #6
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %71, label %75

71:                                               ; preds = %61
  %72 = load i32, ptr %8, align 4, !tbaa !48
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds %struct._GLFWjoystick, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 7), i64 %73
  call void @closeJoystick(ptr noundef %74)
  br label %79

75:                                               ; preds = %61
  br label %76

76:                                               ; preds = %75
  %77 = load i32, ptr %8, align 4, !tbaa !48
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %8, align 4, !tbaa !48
  br label %58, !llvm.loop !51

79:                                               ; preds = %71, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %80

80:                                               ; preds = %79, %51
  br label %81

81:                                               ; preds = %80, %48
  call void @llvm.lifetime.end.p0(i64 4096, ptr %7) #5
  store i32 0, ptr %3, align 4
  br label %82

82:                                               ; preds = %81, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  %83 = load i32, ptr %3, align 4
  switch i32 %83, label %89 [
    i32 0, label %84
    i32 2, label %16
  ]

84:                                               ; preds = %82
  br label %16, !llvm.loop !49

85:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  store i32 0, ptr %3, align 4
  br label %86

86:                                               ; preds = %85, %11
  call void @llvm.lifetime.end.p0(i64 16384, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #5
  %87 = load i32, ptr %3, align 4
  switch i32 %87, label %89 [
    i32 0, label %88
    i32 1, label %88
  ]

88:                                               ; preds = %86, %86
  ret void

89:                                               ; preds = %86, %82
  unreachable
}

declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #1

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 133184}
!10 = !{!"_GLFWlibrary", !11, i64 0, !12, i64 8, !17, i64 992, !17, i64 1000, !17, i64 1008, !17, i64 1016, !11, i64 1024, !7, i64 1032, !17, i64 130568, !11, 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 = !{!"int", !7, i64 0}
!12 = !{!"", !13, i64 0, !15, i64 16, !16, i64 88, !20, i64 920, !11, i64 976}
!13 = !{!"_GLFWinitconfig", !11, i64 0, !14, i64 4}
!14 = !{!"", !11, i64 0, !11, i64 4}
!15 = !{!"_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, !6, i64 64}
!16 = !{!"_GLFWwndconfig", !11, i64 0, !11, i64 4, !17, 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, !18, i64 56, !19, i64 316}
!17 = !{!"any pointer", !7, i64 0}
!18 = !{!"", !11, i64 0, !7, i64 4}
!19 = !{!"", !7, i64 0, !7, i64 256}
!20 = !{!"_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, !17, i64 40, !21, i64 48}
!21 = !{!"", !11, i64 0}
!22 = !{!"_GLFWtls", !23, i64 0}
!23 = !{!"_GLFWtlsPOSIX", !11, i64 0, !11, i64 4}
!24 = !{!"_GLFWmutex", !25, i64 0}
!25 = !{!"_GLFWmutexPOSIX", !11, i64 0, !7, i64 8}
!26 = !{!"", !6, i64 0, !27, i64 8}
!27 = !{!"_GLFWtimerPOSIX", !11, i64 0, !6, i64 8}
!28 = !{!"", !11, i64 0, !17, i64 8, !7, i64 16, !17, i64 32, !17, i64 40, !11, i64 48, !11, i64 52, !11, i64 56}
!29 = !{!"", !17, i64 0, !17, i64 8}
!30 = !{!"_GLFWlibraryX11", !17, i64 0, !11, i64 8, !6, i64 16, !31, i64 24, !31, i64 28, !6, i64 32, !6, i64 40, !11, i64 48, !17, i64 56, !11, 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, !6, i64 1328, !6, i64 1336, !6, i64 1344, !6, i64 1352, !6, i64 1360, !6, i64 1368, !6, i64 1376, !6, i64 1384, !6, i64 1392, !6, i64 1400, !6, i64 1408, !6, i64 1416, !6, i64 1424, !6, i64 1432, !6, i64 1440, !6, i64 1448, !6, i64 1456, !6, i64 1464, !6, i64 1472, !6, i64 1480, !6, i64 1488, !6, i64 1496, !6, i64 1504, !6, i64 1512, !6, i64 1520, !6, i64 1528, !6, i64 1536, !6, i64 1544, !6, i64 1552, !6, i64 1560, !6, i64 1568, !6, i64 1576, !6, i64 1584, !6, i64 1592, !6, i64 1600, !6, i64 1608, !6, i64 1616, !6, i64 1624, !6, i64 1632, !6, i64 1640, !6, i64 1648, !6, i64 1656, !6, i64 1664, !6, i64 1672, !6, i64 1680, !6, 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 = !{!"", !11, i64 0, !17, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, 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 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24}
!35 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16}
!36 = !{!"", !11, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!"", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24}
!38 = !{!"", !11, i64 0, !17, i64 8, !11, i64 16, !11, i64 20, !17, i64 24, !17, i64 32, !17, i64 40}
!39 = !{!"", !11, i64 0, !17, i64 8, !11, i64 16, !11, i64 20, !17, i64 24, !17, i64 32, !17, i64 40, !17, i64 48}
!40 = !{!"", !11, i64 0, !17, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !17, i64 40, !17, i64 48}
!41 = !{!"", !11, i64 0, !17, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !17, i64 32, !17, i64 40, !17, i64 48}
!42 = !{!"_GLFWlibraryGLX", !11, i64 0, !11, i64 4, !11, i64 8, !11, 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, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !11, i64 192, !11, i64 196, !11, i64 200, !11, i64 204, !11, i64 208, !11, i64 212, !11, i64 216, !11, i64 220}
!43 = !{!"_GLFWlibraryLinux", !11, i64 0, !11, i64 4, !44, i64 8, !11, i64 72}
!44 = !{!"re_pattern_buffer", !17, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !17, i64 32, !17, i64 40, !6, i64 48, !11, i64 56, !11, i64 56, !11, i64 56, !11, i64 56, !11, i64 56, !11, i64 56, !11, i64 56}
!45 = !{!"_GLFWlibraryEGL", !17, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, 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 = !{!17, !17, i64 0}
!48 = !{!11, !11, i64 0}
!49 = distinct !{!49, !50}
!50 = !{!"llvm.loop.mustprogress"}
!51 = distinct !{!51, !50}


; 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.regmatch_t = type { i32, i32 }

@_glfw = external global %struct._GLFWlibrary, align 8
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1

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

declare i32 @regexec(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

; 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 hidden void @closeJoystick(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @_glfwDetectJoystickConnectionLinux() local_unnamed_addr #3 {
  %1 = alloca [16384 x i8], align 16
  %2 = alloca %struct.regmatch_t, align 4
  %3 = alloca [4096 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 16384, ptr nonnull %1) #6
  %4 = load i32, ptr getelementptr inbounds (i8, ptr @_glfw, i64 133184), align 8, !tbaa !5
  %5 = icmp slt i32 %4, 1
  br i1 %5, label %.loopexit16, label %6

6:                                                ; preds = %0
  %7 = call i64 @read(i32 noundef %4, ptr noundef nonnull %1, i64 noundef 16384) #6
  %8 = icmp sgt i64 %7, 0
  br i1 %8, label %.lr.ph, label %.loopexit16

.lr.ph:                                           ; preds = %6, %60
  %.01218 = phi i64 [ %14, %60 ], [ 0, %6 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %9 = getelementptr inbounds i8, ptr %1, i64 %.01218
  %10 = getelementptr inbounds i8, ptr %9, i64 12
  %11 = load i32, ptr %10, align 4, !tbaa !46
  %12 = zext i32 %11 to i64
  %13 = add i64 %.01218, 16
  %14 = add i64 %13, %12
  %15 = getelementptr inbounds i8, ptr %9, i64 16
  %16 = call i32 @regexec(ptr noundef nonnull getelementptr inbounds (i8, ptr @_glfw, i64 133192), ptr noundef nonnull %15, i64 noundef 1, ptr noundef nonnull %2, i32 noundef 0) #6
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %17, label %60, !llvm.loop !47

17:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %3) #6
  %18 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 4096, ptr noundef nonnull @.str.4, ptr noundef nonnull %15) #6
  %19 = getelementptr inbounds i8, ptr %9, i64 4
  %20 = load i32, ptr %19, align 4, !tbaa !46
  %21 = and i32 %20, 260
  %.not14 = icmp eq i32 %21, 0
  br i1 %.not14, label %24, label %22

22:                                               ; preds = %17
  %23 = call i32 @openJoystickDevice(ptr noundef nonnull %3)
  br label %.loopexit

24:                                               ; preds = %17
  %25 = and i32 %20, 512
  %.not15 = icmp eq i32 %25, 0
  br i1 %.not15, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %24
  %26 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @_glfw, i64 1156), ptr noundef nonnull dereferenceable(1) %3) #7
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %58, label %.preheader.1

.preheader.1:                                     ; preds = %.preheader.preheader
  %28 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @_glfw, i64 9252), ptr noundef nonnull dereferenceable(1) %3) #7
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %58, label %.preheader.2

.preheader.2:                                     ; preds = %.preheader.1
  %30 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @_glfw, i64 17348), ptr noundef nonnull dereferenceable(1) %3) #7
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %58, label %.preheader.3

.preheader.3:                                     ; preds = %.preheader.2
  %32 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @_glfw, i64 25444), ptr noundef nonnull dereferenceable(1) %3) #7
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %58, label %.preheader.4

.preheader.4:                                     ; preds = %.preheader.3
  %34 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @_glfw, i64 33540), ptr noundef nonnull dereferenceable(1) %3) #7
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %58, label %.preheader.5

.preheader.5:                                     ; preds = %.preheader.4
  %36 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @_glfw, i64 41636), ptr noundef nonnull dereferenceable(1) %3) #7
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %58, label %.preheader.6

.preheader.6:                                     ; preds = %.preheader.5
  %38 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @_glfw, i64 49732), ptr noundef nonnull dereferenceable(1) %3) #7
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %58, label %.preheader.7

.preheader.7:                                     ; preds = %.preheader.6
  %40 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @_glfw, i64 57828), ptr noundef nonnull dereferenceable(1) %3) #7
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %58, label %.preheader.8

.preheader.8:                                     ; preds = %.preheader.7
  %42 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @_glfw, i64 65924), ptr noundef nonnull dereferenceable(1) %3) #7
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %58, label %.preheader.9

.preheader.9:                                     ; preds = %.preheader.8
  %44 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @_glfw, i64 74020), ptr noundef nonnull dereferenceable(1) %3) #7
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %58, label %.preheader.10

.preheader.10:                                    ; preds = %.preheader.9
  %46 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @_glfw, i64 82116), ptr noundef nonnull dereferenceable(1) %3) #7
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %58, label %.preheader.11

.preheader.11:                                    ; preds = %.preheader.10
  %48 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @_glfw, i64 90212), ptr noundef nonnull dereferenceable(1) %3) #7
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %58, label %.preheader.12

.preheader.12:                                    ; preds = %.preheader.11
  %50 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @_glfw, i64 98308), ptr noundef nonnull dereferenceable(1) %3) #7
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %58, label %.preheader.13

.preheader.13:                                    ; preds = %.preheader.12
  %52 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @_glfw, i64 106404), ptr noundef nonnull dereferenceable(1) %3) #7
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %58, label %.preheader.14

.preheader.14:                                    ; preds = %.preheader.13
  %54 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @_glfw, i64 114500), ptr noundef nonnull dereferenceable(1) %3) #7
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %58, label %.preheader.15

.preheader.15:                                    ; preds = %.preheader.14
  %56 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @_glfw, i64 122596), ptr noundef nonnull dereferenceable(1) %3) #7
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %.loopexit

58:                                               ; preds = %.preheader.15, %.preheader.14, %.preheader.13, %.preheader.12, %.preheader.11, %.preheader.10, %.preheader.9, %.preheader.8, %.preheader.7, %.preheader.6, %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %.lcssa = phi i64 [ 0, %.preheader.preheader ], [ 1, %.preheader.1 ], [ 2, %.preheader.2 ], [ 3, %.preheader.3 ], [ 4, %.preheader.4 ], [ 5, %.preheader.5 ], [ 6, %.preheader.6 ], [ 7, %.preheader.7 ], [ 8, %.preheader.8 ], [ 9, %.preheader.9 ], [ 10, %.preheader.10 ], [ 11, %.preheader.11 ], [ 12, %.preheader.12 ], [ 13, %.preheader.13 ], [ 14, %.preheader.14 ], [ 15, %.preheader.15 ]
  %59 = getelementptr inbounds %struct._GLFWjoystick, ptr getelementptr inbounds (i8, ptr @_glfw, i64 1032), i64 %.lcssa
  call void @closeJoystick(ptr noundef nonnull %59)
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader.15, %58, %24, %22
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %3) #6
  br label %60

60:                                               ; preds = %.lr.ph, %.loopexit
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %61 = icmp sgt i64 %7, %14
  br i1 %61, label %.lr.ph, label %.loopexit16

.loopexit16:                                      ; preds = %60, %6, %0
  call void @llvm.lifetime.end.p0(i64 16384, ptr nonnull %1) #6
  ret void
}

; Function Attrs: nofree
declare noundef i64 @read(i32 noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #4

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 133184}
!6 = !{!"_GLFWlibrary", !7, i64 0, !10, i64 8, !16, i64 992, !16, i64 1000, !16, i64 1008, !16, i64 1016, !7, i64 1024, !8, i64 1032, !16, i64 130568, !7, i64 130576, !21, i64 130580, !21, i64 130588, !23, i64 130600, !25, i64 130648, !27, i64 130672, !28, i64 130736, !29, i64 130752, !41, i64 132960, !42, i64 133184, !44, i64 133264, !45, i64 133440}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !13, i64 16, !15, i64 88, !19, i64 920, !7, i64 976}
!11 = !{!"_GLFWinitconfig", !7, i64 0, !12, i64 4}
!12 = !{!"", !7, i64 0, !7, i64 4}
!13 = !{!"_GLFWfbconfig", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !14, i64 64}
!14 = !{!"long", !8, i64 0}
!15 = !{!"_GLFWwndconfig", !7, i64 0, !7, i64 4, !16, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !17, i64 56, !18, i64 316}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!"", !7, i64 0, !8, i64 4}
!18 = !{!"", !8, i64 0, !8, i64 256}
!19 = !{!"_GLFWctxconfig", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !16, i64 40, !20, i64 48}
!20 = !{!"", !7, i64 0}
!21 = !{!"_GLFWtls", !22, i64 0}
!22 = !{!"_GLFWtlsPOSIX", !7, i64 0, !7, i64 4}
!23 = !{!"_GLFWmutex", !24, i64 0}
!24 = !{!"_GLFWmutexPOSIX", !7, i64 0, !8, i64 8}
!25 = !{!"", !14, i64 0, !26, i64 8}
!26 = !{!"_GLFWtimerPOSIX", !7, i64 0, !14, i64 8}
!27 = !{!"", !7, i64 0, !16, i64 8, !8, i64 16, !16, i64 32, !16, i64 40, !7, i64 48, !7, i64 52, !7, i64 56}
!28 = !{!"", !16, i64 0, !16, i64 8}
!29 = !{!"_GLFWlibraryX11", !16, i64 0, !7, i64 8, !14, i64 16, !30, i64 24, !30, i64 28, !14, i64 32, !14, i64 40, !7, i64 48, !16, i64 56, !7, i64 64, !16, i64 72, !16, i64 80, !8, i64 88, !8, i64 94, !8, i64 606, !31, i64 1304, !31, i64 1312, !16, i64 1320, !14, i64 1328, !14, i64 1336, !14, i64 1344, !14, i64 1352, !14, i64 1360, !14, i64 1368, !14, i64 1376, !14, i64 1384, !14, i64 1392, !14, i64 1400, !14, i64 1408, !14, i64 1416, !14, i64 1424, !14, i64 1432, !14, i64 1440, !14, i64 1448, !14, i64 1456, !14, i64 1464, !14, i64 1472, !14, i64 1480, !14, i64 1488, !14, i64 1496, !14, i64 1504, !14, i64 1512, !14, i64 1520, !14, i64 1528, !14, i64 1536, !14, i64 1544, !14, i64 1552, !14, i64 1560, !14, i64 1568, !14, i64 1576, !14, i64 1584, !14, i64 1592, !14, i64 1600, !14, i64 1608, !14, i64 1616, !14, i64 1624, !14, i64 1632, !14, i64 1640, !14, i64 1648, !14, i64 1656, !14, i64 1664, !14, i64 1672, !14, i64 1680, !14, i64 1688, !32, i64 1696, !33, i64 1872, !34, i64 1900, !35, i64 1920, !36, i64 1944, !37, i64 1976, !28, i64 2024, !38, i64 2040, !39, i64 2096, !40, i64 2152}
!30 = !{!"float", !8, i64 0}
!31 = !{!"double", !8, i64 0}
!32 = !{!"", !7, i64 0, !16, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168}
!33 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24}
!34 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16}
!35 = !{!"", !7, i64 0, !14, i64 8, !14, i64 16}
!36 = !{!"", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24}
!37 = !{!"", !7, i64 0, !16, i64 8, !7, i64 16, !7, i64 20, !16, i64 24, !16, i64 32, !16, i64 40}
!38 = !{!"", !7, i64 0, !16, i64 8, !7, i64 16, !7, i64 20, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48}
!39 = !{!"", !7, i64 0, !16, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !16, i64 40, !16, i64 48}
!40 = !{!"", !7, i64 0, !16, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !16, i64 32, !16, i64 40, !16, i64 48}
!41 = !{!"_GLFWlibraryGLX", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168, !7, i64 176, !7, i64 180, !7, i64 184, !7, i64 188, !7, i64 192, !7, i64 196, !7, i64 200, !7, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !7, i64 220}
!42 = !{!"_GLFWlibraryLinux", !7, i64 0, !7, i64 4, !43, i64 8, !7, i64 72}
!43 = !{!"re_pattern_buffer", !16, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !16, i64 32, !16, i64 40, !14, i64 48, !7, i64 56, !7, i64 56, !7, i64 56, !7, i64 56, !7, i64 56, !7, i64 56, !7, i64 56}
!44 = !{!"_GLFWlibraryEGL", !16, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168}
!45 = !{!"_GLFWlibraryOSMesa", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !16, i64 56}
!46 = !{!7, !7, i64 0}
!47 = distinct !{!47, !48}
!48 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass