; LLVM IR from unitreerobotics/kinect_teleoperate :: src/extern/glfw/src/tests (gamma)

; 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.nk_color = type { i8, i8, i8, i8 }
%struct.nk_command_buffer = type { ptr, %struct.nk_rect, i32, %union.nk_handle, i64, i64, i64 }
%struct.nk_rect = type { float, float, float, float }
%union.nk_handle = type { ptr }
%struct.nk_command_triangle_filled = type { %struct.nk_command, %struct.nk_vec2i, %struct.nk_vec2i, %struct.nk_vec2i, %struct.nk_color }
%struct.nk_command = type { i32, i64 }
%struct.nk_vec2i = type { i16, i16 }

@.str.2 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@__PRETTY_FUNCTION__.nk_fill_triangle = external hidden unnamed_addr constant [109 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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local void @nk_fill_triangle(ptr noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, i32 %7) #3 {
  %9 = alloca %struct.nk_color, align 1
  %10 = alloca ptr, align 8
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  store i32 %7, ptr %9, align 1
  store ptr %0, ptr %10, align 8, !tbaa !5
  store float %1, ptr %11, align 4, !tbaa !9
  store float %2, ptr %12, align 4, !tbaa !9
  store float %3, ptr %13, align 4, !tbaa !9
  store float %4, ptr %14, align 4, !tbaa !9
  store float %5, ptr %15, align 4, !tbaa !9
  store float %6, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %20 = load ptr, ptr %10, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %23

22:                                               ; preds = %8
  br label %24

23:                                               ; preds = %8
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.2, i32 noundef 9037, ptr noundef @__PRETTY_FUNCTION__.nk_fill_triangle) #5
  unreachable

24:                                               ; preds = %22
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %32

27:                                               ; preds = %24
  %28 = getelementptr inbounds %struct.nk_color, ptr %9, i32 0, i32 3
  %29 = load i8, ptr %28, align 1, !tbaa !11
  %30 = zext i8 %29 to i32
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %27, %24
  store i32 1, ptr %18, align 4
  br label %184

33:                                               ; preds = %27
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %37, label %36

36:                                               ; preds = %33
  store i32 1, ptr %18, align 4
  br label %184

37:                                               ; preds = %33
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.nk_command_buffer, ptr %38, i32 0, i32 2
  %40 = load i32, ptr %39, align 8, !tbaa !13
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %145

42:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.nk_command_buffer, ptr %43, i32 0, i32 1
  store ptr %44, ptr %19, align 8, !tbaa !5
  %45 = load ptr, ptr %19, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.nk_rect, ptr %45, i32 0, i32 0
  %47 = load float, ptr %46, align 4, !tbaa !18
  %48 = load float, ptr %11, align 4, !tbaa !9
  %49 = fcmp ole float %47, %48
  br i1 %49, label %50, label %76

50:                                               ; preds = %42
  %51 = load float, ptr %11, align 4, !tbaa !9
  %52 = load ptr, ptr %19, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.nk_rect, ptr %52, i32 0, i32 0
  %54 = load float, ptr %53, align 4, !tbaa !18
  %55 = load ptr, ptr %19, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.nk_rect, ptr %55, i32 0, i32 2
  %57 = load float, ptr %56, align 4, !tbaa !19
  %58 = fadd float %54, %57
  %59 = fcmp olt float %51, %58
  br i1 %59, label %60, label %76

60:                                               ; preds = %50
  %61 = load ptr, ptr %19, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.nk_rect, ptr %61, i32 0, i32 1
  %63 = load float, ptr %62, align 4, !tbaa !20
  %64 = load float, ptr %12, align 4, !tbaa !9
  %65 = fcmp ole float %63, %64
  br i1 %65, label %66, label %76

66:                                               ; preds = %60
  %67 = load float, ptr %12, align 4, !tbaa !9
  %68 = load ptr, ptr %19, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.nk_rect, ptr %68, i32 0, i32 1
  %70 = load float, ptr %69, align 4, !tbaa !20
  %71 = load ptr, ptr %19, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.nk_rect, ptr %71, i32 0, i32 3
  %73 = load float, ptr %72, align 4, !tbaa !21
  %74 = fadd float %70, %73
  %75 = fcmp olt float %67, %74
  br i1 %75, label %141, label %76

76:                                               ; preds = %66, %60, %50, %42
  %77 = load ptr, ptr %19, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.nk_rect, ptr %77, i32 0, i32 0
  %79 = load float, ptr %78, align 4, !tbaa !18
  %80 = load float, ptr %13, align 4, !tbaa !9
  %81 = fcmp ole float %79, %80
  br i1 %81, label %82, label %108

82:                                               ; preds = %76
  %83 = load float, ptr %13, align 4, !tbaa !9
  %84 = load ptr, ptr %19, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.nk_rect, ptr %84, i32 0, i32 0
  %86 = load float, ptr %85, align 4, !tbaa !18
  %87 = load ptr, ptr %19, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.nk_rect, ptr %87, i32 0, i32 2
  %89 = load float, ptr %88, align 4, !tbaa !19
  %90 = fadd float %86, %89
  %91 = fcmp olt float %83, %90
  br i1 %91, label %92, label %108

92:                                               ; preds = %82
  %93 = load ptr, ptr %19, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.nk_rect, ptr %93, i32 0, i32 1
  %95 = load float, ptr %94, align 4, !tbaa !20
  %96 = load float, ptr %14, align 4, !tbaa !9
  %97 = fcmp ole float %95, %96
  br i1 %97, label %98, label %108

98:                                               ; preds = %92
  %99 = load float, ptr %14, align 4, !tbaa !9
  %100 = load ptr, ptr %19, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.nk_rect, ptr %100, i32 0, i32 1
  %102 = load float, ptr %101, align 4, !tbaa !20
  %103 = load ptr, ptr %19, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.nk_rect, ptr %103, i32 0, i32 3
  %105 = load float, ptr %104, align 4, !tbaa !21
  %106 = fadd float %102, %105
  %107 = fcmp olt float %99, %106
  br i1 %107, label %141, label %108

108:                                              ; preds = %98, %92, %82, %76
  %109 = load ptr, ptr %19, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.nk_rect, ptr %109, i32 0, i32 0
  %111 = load float, ptr %110, align 4, !tbaa !18
  %112 = load float, ptr %15, align 4, !tbaa !9
  %113 = fcmp ole float %111, %112
  br i1 %113, label %114, label %140

114:                                              ; preds = %108
  %115 = load float, ptr %15, align 4, !tbaa !9
  %116 = load ptr, ptr %19, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.nk_rect, ptr %116, i32 0, i32 0
  %118 = load float, ptr %117, align 4, !tbaa !18
  %119 = load ptr, ptr %19, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.nk_rect, ptr %119, i32 0, i32 2
  %121 = load float, ptr %120, align 4, !tbaa !19
  %122 = fadd float %118, %121
  %123 = fcmp olt float %115, %122
  br i1 %123, label %124, label %140

124:                                              ; preds = %114
  %125 = load ptr, ptr %19, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.nk_rect, ptr %125, i32 0, i32 1
  %127 = load float, ptr %126, align 4, !tbaa !20
  %128 = load float, ptr %16, align 4, !tbaa !9
  %129 = fcmp ole float %127, %128
  br i1 %129, label %130, label %140

130:                                              ; preds = %124
  %131 = load float, ptr %16, align 4, !tbaa !9
  %132 = load ptr, ptr %19, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.nk_rect, ptr %132, i32 0, i32 1
  %134 = load float, ptr %133, align 4, !tbaa !20
  %135 = load ptr, ptr %19, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.nk_rect, ptr %135, i32 0, i32 3
  %137 = load float, ptr %136, align 4, !tbaa !21
  %138 = fadd float %134, %137
  %139 = fcmp olt float %131, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %130, %124, %114, %108
  store i32 1, ptr %18, align 4
  br label %142

141:                                              ; preds = %130, %98, %66
  store i32 0, ptr %18, align 4
  br label %142

142:                                              ; preds = %141, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  %143 = load i32, ptr %18, align 4
  switch i32 %143, label %184 [
    i32 0, label %144
  ]

144:                                              ; preds = %142
  br label %145

145:                                              ; preds = %144, %37
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  %147 = call ptr @nk_command_buffer_push(ptr noundef %146, i32 noundef 12, i64 noundef 32)
  store ptr %147, ptr %17, align 8, !tbaa !5
  %148 = load ptr, ptr %17, align 8, !tbaa !5
  %149 = icmp ne ptr %148, null
  br i1 %149, label %151, label %150

150:                                              ; preds = %145
  store i32 1, ptr %18, align 4
  br label %184

151:                                              ; preds = %145
  %152 = load float, ptr %11, align 4, !tbaa !9
  %153 = fptosi float %152 to i16
  %154 = load ptr, ptr %17, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.nk_command_triangle_filled, ptr %154, i32 0, i32 1
  %156 = getelementptr inbounds %struct.nk_vec2i, ptr %155, i32 0, i32 0
  store i16 %153, ptr %156, align 8, !tbaa !22
  %157 = load float, ptr %12, align 4, !tbaa !9
  %158 = fptosi float %157 to i16
  %159 = load ptr, ptr %17, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.nk_command_triangle_filled, ptr %159, i32 0, i32 1
  %161 = getelementptr inbounds %struct.nk_vec2i, ptr %160, i32 0, i32 1
  store i16 %158, ptr %161, align 2, !tbaa !27
  %162 = load float, ptr %13, align 4, !tbaa !9
  %163 = fptosi float %162 to i16
  %164 = load ptr, ptr %17, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.nk_command_triangle_filled, ptr %164, i32 0, i32 2
  %166 = getelementptr inbounds %struct.nk_vec2i, ptr %165, i32 0, i32 0
  store i16 %163, ptr %166, align 4, !tbaa !28
  %167 = load float, ptr %14, align 4, !tbaa !9
  %168 = fptosi float %167 to i16
  %169 = load ptr, ptr %17, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.nk_command_triangle_filled, ptr %169, i32 0, i32 2
  %171 = getelementptr inbounds %struct.nk_vec2i, ptr %170, i32 0, i32 1
  store i16 %168, ptr %171, align 2, !tbaa !29
  %172 = load float, ptr %15, align 4, !tbaa !9
  %173 = fptosi float %172 to i16
  %174 = load ptr, ptr %17, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.nk_command_triangle_filled, ptr %174, i32 0, i32 3
  %176 = getelementptr inbounds %struct.nk_vec2i, ptr %175, i32 0, i32 0
  store i16 %173, ptr %176, align 8, !tbaa !30
  %177 = load float, ptr %16, align 4, !tbaa !9
  %178 = fptosi float %177 to i16
  %179 = load ptr, ptr %17, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.nk_command_triangle_filled, ptr %179, i32 0, i32 3
  %181 = getelementptr inbounds %struct.nk_vec2i, ptr %180, i32 0, i32 1
  store i16 %178, ptr %181, align 2, !tbaa !31
  %182 = load ptr, ptr %17, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.nk_command_triangle_filled, ptr %182, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %183, ptr align 1 %9, i64 4, i1 false), !tbaa.struct !32
  store i32 0, ptr %18, align 4
  br label %184

184:                                              ; preds = %151, %150, %142, %36, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  %185 = load i32, ptr %18, align 4
  switch i32 %185, label %187 [
    i32 0, label %186
    i32 1, label %186
  ]

186:                                              ; preds = %184, %184
  ret void

187:                                              ; preds = %184
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn 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 }
attributes #5 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!"float", !7, i64 0}
!11 = !{!12, !7, i64 3}
!12 = !{!"nk_color", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!13 = !{!14, !16, i64 24}
!14 = !{!"nk_command_buffer", !6, i64 0, !15, i64 8, !16, i64 24, !7, i64 32, !17, i64 40, !17, i64 48, !17, i64 56}
!15 = !{!"nk_rect", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!16 = !{!"int", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!15, !10, i64 0}
!19 = !{!15, !10, i64 8}
!20 = !{!15, !10, i64 4}
!21 = !{!15, !10, i64 12}
!22 = !{!23, !26, i64 16}
!23 = !{!"nk_command_triangle_filled", !24, i64 0, !25, i64 16, !25, i64 20, !25, i64 24, !12, i64 28}
!24 = !{!"nk_command", !16, i64 0, !17, i64 8}
!25 = !{!"nk_vec2i", !26, i64 0, !26, i64 2}
!26 = !{!"short", !7, i64 0}
!27 = !{!23, !26, i64 18}
!28 = !{!23, !26, i64 20}
!29 = !{!23, !26, i64 22}
!30 = !{!23, !26, i64 24}
!31 = !{!23, !26, i64 26}
!32 = !{i64 0, i64 1, !33, i64 1, i64 1, !33, i64 2, i64 1, !33, i64 3, i64 1, !33}
!33 = !{!7, !7, i64 0}


; 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"

@.str.2 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@__PRETTY_FUNCTION__.nk_fill_triangle = external hidden unnamed_addr constant [109 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden ptr @nk_command_buffer_push(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @nk_fill_triangle(ptr noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, i32 %7) local_unnamed_addr #1 {
  %.sroa.0.0.extract.trunc = trunc i32 %7 to i24
  %.sroa.2.0.extract.shift = lshr i32 %7, 24
  %.sroa.2.0.extract.trunc = trunc nuw i32 %.sroa.2.0.extract.shift to i8
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %9, label %10

9:                                                ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.2, i32 noundef 9037, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_fill_triangle) #2
  unreachable

10:                                               ; preds = %8
  %11 = icmp ult i32 %7, 16777216
  br i1 %11, label %78, label %12

12:                                               ; preds = %10
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  %14 = load i32, ptr %13, align 8, !tbaa !5
  %.not67 = icmp eq i32 %14, 0
  br i1 %.not67, label %.critedge, label %15

15:                                               ; preds = %12
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load float, ptr %16, align 4, !tbaa !14
  %18 = fcmp ugt float %17, %1
  br i1 %18, label %33, label %19

19:                                               ; preds = %15
  %20 = getelementptr inbounds i8, ptr %0, i64 16
  %21 = load float, ptr %20, align 4, !tbaa !15
  %22 = fadd float %17, %21
  %23 = fcmp ogt float %22, %1
  br i1 %23, label %24, label %33

24:                                               ; preds = %19
  %25 = getelementptr inbounds i8, ptr %0, i64 12
  %26 = load float, ptr %25, align 4, !tbaa !16
  %27 = fcmp ugt float %26, %2
  br i1 %27, label %33, label %28

28:                                               ; preds = %24
  %29 = getelementptr inbounds i8, ptr %0, i64 20
  %30 = load float, ptr %29, align 4, !tbaa !17
  %31 = fadd float %26, %30
  %32 = fcmp ogt float %31, %2
  br i1 %32, label %.critedge, label %33

33:                                               ; preds = %28, %24, %19, %15
  %34 = fcmp ugt float %17, %3
  br i1 %34, label %49, label %35

35:                                               ; preds = %33
  %36 = getelementptr inbounds i8, ptr %0, i64 16
  %37 = load float, ptr %36, align 4, !tbaa !15
  %38 = fadd float %17, %37
  %39 = fcmp ogt float %38, %3
  br i1 %39, label %40, label %49

40:                                               ; preds = %35
  %41 = getelementptr inbounds i8, ptr %0, i64 12
  %42 = load float, ptr %41, align 4, !tbaa !16
  %43 = fcmp ugt float %42, %4
  br i1 %43, label %49, label %44

44:                                               ; preds = %40
  %45 = getelementptr inbounds i8, ptr %0, i64 20
  %46 = load float, ptr %45, align 4, !tbaa !17
  %47 = fadd float %42, %46
  %48 = fcmp ogt float %47, %4
  br i1 %48, label %.critedge, label %49

49:                                               ; preds = %44, %40, %35, %33
  %50 = fcmp ugt float %17, %5
  br i1 %50, label %78, label %51

51:                                               ; preds = %49
  %52 = getelementptr inbounds i8, ptr %0, i64 16
  %53 = load float, ptr %52, align 4, !tbaa !15
  %54 = fadd float %17, %53
  %55 = fcmp ogt float %54, %5
  br i1 %55, label %56, label %78

56:                                               ; preds = %51
  %57 = getelementptr inbounds i8, ptr %0, i64 12
  %58 = load float, ptr %57, align 4, !tbaa !16
  %59 = fcmp ugt float %58, %6
  br i1 %59, label %78, label %60

60:                                               ; preds = %56
  %61 = getelementptr inbounds i8, ptr %0, i64 20
  %62 = load float, ptr %61, align 4, !tbaa !17
  %63 = fadd float %58, %62
  %64 = fcmp ogt float %63, %6
  br i1 %64, label %.critedge, label %78

.critedge:                                        ; preds = %28, %44, %60, %12
  %65 = tail call ptr @nk_command_buffer_push(ptr noundef nonnull %0, i32 noundef 12, i64 noundef 32)
  %.not68 = icmp eq ptr %65, null
  br i1 %.not68, label %78, label %66

66:                                               ; preds = %.critedge
  %67 = insertelement <4 x float> poison, float %1, i64 0
  %68 = insertelement <4 x float> %67, float %2, i64 1
  %69 = insertelement <4 x float> %68, float %3, i64 2
  %70 = insertelement <4 x float> %69, float %4, i64 3
  %71 = fptosi <4 x float> %70 to <4 x i16>
  %72 = getelementptr inbounds i8, ptr %65, i64 16
  store <4 x i16> %71, ptr %72, align 8, !tbaa !18
  %73 = insertelement <2 x float> poison, float %5, i64 0
  %74 = insertelement <2 x float> %73, float %6, i64 1
  %75 = fptosi <2 x float> %74 to <2 x i16>
  %76 = getelementptr inbounds i8, ptr %65, i64 24
  store <2 x i16> %75, ptr %76, align 8, !tbaa !18
  %77 = getelementptr inbounds i8, ptr %65, i64 28
  store i24 %.sroa.0.0.extract.trunc, ptr %77, align 4
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %65, i64 31
  store i8 %.sroa.2.0.extract.trunc, ptr %.sroa.2.0..sroa_idx, align 1, !tbaa !20
  br label %78

78:                                               ; preds = %.critedge, %60, %56, %51, %49, %10, %66
  ret void
}

attributes #0 = { noreturn 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 #1 = { 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 #2 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !12, i64 24}
!6 = !{!"nk_command_buffer", !7, i64 0, !10, i64 8, !12, i64 24, !8, i64 32, !13, i64 40, !13, i64 48, !13, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"nk_rect", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!11 = !{!"float", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!10, !11, i64 0}
!15 = !{!10, !11, i64 8}
!16 = !{!10, !11, i64 4}
!17 = !{!10, !11, i64 12}
!18 = !{!19, !19, i64 0}
!19 = !{!"short", !8, i64 0}
!20 = !{!8, !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass