; 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 = type { %struct.nk_command, i16, %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_stroke_triangle = external hidden unnamed_addr constant [118 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_stroke_triangle(ptr noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7, i32 %8) #3 {
  %10 = alloca %struct.nk_color, align 1
  %11 = alloca ptr, align 8
  %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 float, align 4
  %18 = alloca float, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  store i32 %8, ptr %10, align 1
  store ptr %0, ptr %11, align 8, !tbaa !5
  store float %1, ptr %12, align 4, !tbaa !9
  store float %2, ptr %13, align 4, !tbaa !9
  store float %3, ptr %14, align 4, !tbaa !9
  store float %4, ptr %15, align 4, !tbaa !9
  store float %5, ptr %16, align 4, !tbaa !9
  store float %6, ptr %17, align 4, !tbaa !9
  store float %7, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %22 = load ptr, ptr %11, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %9
  br label %26

25:                                               ; preds = %9
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.2, i32 noundef 9010, ptr noundef @__PRETTY_FUNCTION__.nk_stroke_triangle) #5
  unreachable

26:                                               ; preds = %24
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %29, label %37

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

34:                                               ; preds = %29
  %35 = load float, ptr %18, align 4, !tbaa !9
  %36 = fcmp ole float %35, 0.000000e+00
  br i1 %36, label %37, label %38

37:                                               ; preds = %34, %29, %26
  store i32 1, ptr %20, align 4
  br label %189

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

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

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

61:                                               ; preds = %51
  %62 = load ptr, ptr %21, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.nk_rect, ptr %62, i32 0, i32 1
  %64 = load float, ptr %63, align 4, !tbaa !20
  %65 = load float, ptr %13, align 4, !tbaa !9
  %66 = fcmp ole float %64, %65
  br i1 %66, label %67, label %77

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

77:                                               ; preds = %67, %61, %51, %43
  %78 = load ptr, ptr %21, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.nk_rect, ptr %78, i32 0, i32 0
  %80 = load float, ptr %79, align 4, !tbaa !18
  %81 = load float, ptr %14, align 4, !tbaa !9
  %82 = fcmp ole float %80, %81
  br i1 %82, label %83, label %109

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

93:                                               ; preds = %83
  %94 = load ptr, ptr %21, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.nk_rect, ptr %94, i32 0, i32 1
  %96 = load float, ptr %95, align 4, !tbaa !20
  %97 = load float, ptr %15, align 4, !tbaa !9
  %98 = fcmp ole float %96, %97
  br i1 %98, label %99, label %109

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

109:                                              ; preds = %99, %93, %83, %77
  %110 = load ptr, ptr %21, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.nk_rect, ptr %110, i32 0, i32 0
  %112 = load float, ptr %111, align 4, !tbaa !18
  %113 = load float, ptr %16, align 4, !tbaa !9
  %114 = fcmp ole float %112, %113
  br i1 %114, label %115, label %141

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

125:                                              ; preds = %115
  %126 = load ptr, ptr %21, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.nk_rect, ptr %126, i32 0, i32 1
  %128 = load float, ptr %127, align 4, !tbaa !20
  %129 = load float, ptr %17, align 4, !tbaa !9
  %130 = fcmp ole float %128, %129
  br i1 %130, label %131, label %141

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

141:                                              ; preds = %131, %125, %115, %109
  store i32 1, ptr %20, align 4
  br label %143

142:                                              ; preds = %131, %99, %67
  store i32 0, ptr %20, align 4
  br label %143

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

145:                                              ; preds = %143
  br label %146

146:                                              ; preds = %145, %38
  %147 = load ptr, ptr %11, align 8, !tbaa !5
  %148 = call ptr @nk_command_buffer_push(ptr noundef %147, i32 noundef 11, i64 noundef 40)
  store ptr %148, ptr %19, align 8, !tbaa !5
  %149 = load ptr, ptr %19, align 8, !tbaa !5
  %150 = icmp ne ptr %149, null
  br i1 %150, label %152, label %151

151:                                              ; preds = %146
  store i32 1, ptr %20, align 4
  br label %189

152:                                              ; preds = %146
  %153 = load float, ptr %18, align 4, !tbaa !9
  %154 = fptoui float %153 to i16
  %155 = load ptr, ptr %19, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.nk_command_triangle, ptr %155, i32 0, i32 1
  store i16 %154, 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 %19, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.nk_command_triangle, ptr %159, i32 0, i32 2
  %161 = getelementptr inbounds %struct.nk_vec2i, ptr %160, i32 0, i32 0
  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 %19, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.nk_command_triangle, ptr %164, i32 0, i32 2
  %166 = getelementptr inbounds %struct.nk_vec2i, ptr %165, i32 0, i32 1
  store i16 %163, ptr %166, align 2, !tbaa !28
  %167 = load float, ptr %14, align 4, !tbaa !9
  %168 = fptosi float %167 to i16
  %169 = load ptr, ptr %19, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.nk_command_triangle, ptr %169, i32 0, i32 3
  %171 = getelementptr inbounds %struct.nk_vec2i, ptr %170, i32 0, i32 0
  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 %19, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.nk_command_triangle, ptr %174, i32 0, i32 3
  %176 = getelementptr inbounds %struct.nk_vec2i, ptr %175, i32 0, i32 1
  store i16 %173, ptr %176, align 2, !tbaa !30
  %177 = load float, ptr %16, align 4, !tbaa !9
  %178 = fptosi float %177 to i16
  %179 = load ptr, ptr %19, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.nk_command_triangle, ptr %179, i32 0, i32 4
  %181 = getelementptr inbounds %struct.nk_vec2i, ptr %180, i32 0, i32 0
  store i16 %178, ptr %181, align 2, !tbaa !31
  %182 = load float, ptr %17, align 4, !tbaa !9
  %183 = fptosi float %182 to i16
  %184 = load ptr, ptr %19, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.nk_command_triangle, ptr %184, i32 0, i32 4
  %186 = getelementptr inbounds %struct.nk_vec2i, ptr %185, i32 0, i32 1
  store i16 %183, ptr %186, align 2, !tbaa !32
  %187 = load ptr, ptr %19, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.nk_command_triangle, ptr %187, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %188, ptr align 1 %10, i64 4, i1 false), !tbaa.struct !33
  store i32 0, ptr %20, align 4
  br label %189

189:                                              ; preds = %152, %151, %143, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  %190 = load i32, ptr %20, align 4
  switch i32 %190, label %192 [
    i32 0, label %191
    i32 1, label %191
  ]

191:                                              ; preds = %189, %189
  ret void

192:                                              ; preds = %189
  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, !25, i64 16}
!23 = !{!"nk_command_triangle", !24, i64 0, !25, i64 16, !26, i64 18, !26, i64 22, !26, i64 26, !12, i64 30}
!24 = !{!"nk_command", !16, i64 0, !17, i64 8}
!25 = !{!"short", !7, i64 0}
!26 = !{!"nk_vec2i", !25, i64 0, !25, i64 2}
!27 = !{!23, !25, i64 18}
!28 = !{!23, !25, i64 20}
!29 = !{!23, !25, i64 22}
!30 = !{!23, !25, i64 24}
!31 = !{!23, !25, i64 26}
!32 = !{!23, !25, i64 28}
!33 = !{i64 0, i64 1, !34, i64 1, i64 1, !34, i64 2, i64 1, !34, i64 3, i64 1, !34}
!34 = !{!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_stroke_triangle = external hidden unnamed_addr constant [118 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_stroke_triangle(ptr noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7, i32 %8) local_unnamed_addr #1 {
  %.sroa.0.0.extract.trunc = trunc i32 %8 to i24
  %.sroa.2.0.extract.shift = lshr i32 %8, 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 %10, label %11

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

11:                                               ; preds = %9
  %12 = icmp ult i32 %8, 16777216
  %13 = fcmp ole float %7, 0.000000e+00
  %or.cond5 = or i1 %13, %12
  br i1 %or.cond5, label %84, label %14

14:                                               ; preds = %11
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  %16 = load i32, ptr %15, align 8, !tbaa !5
  %.not72 = icmp eq i32 %16, 0
  br i1 %.not72, label %.critedge, label %17

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

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

26:                                               ; preds = %21
  %27 = getelementptr inbounds i8, ptr %0, i64 12
  %28 = load float, ptr %27, align 4, !tbaa !16
  %29 = fcmp ugt float %28, %2
  br i1 %29, label %35, label %30

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

35:                                               ; preds = %30, %26, %21, %17
  %36 = fcmp ugt float %19, %3
  br i1 %36, label %51, label %37

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

42:                                               ; preds = %37
  %43 = getelementptr inbounds i8, ptr %0, i64 12
  %44 = load float, ptr %43, align 4, !tbaa !16
  %45 = fcmp ugt float %44, %4
  br i1 %45, label %51, label %46

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

51:                                               ; preds = %46, %42, %37, %35
  %52 = fcmp ugt float %19, %5
  br i1 %52, label %84, label %53

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

58:                                               ; preds = %53
  %59 = getelementptr inbounds i8, ptr %0, i64 12
  %60 = load float, ptr %59, align 4, !tbaa !16
  %61 = fcmp ugt float %60, %6
  br i1 %61, label %84, label %62

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

.critedge:                                        ; preds = %30, %46, %62, %14
  %67 = tail call ptr @nk_command_buffer_push(ptr noundef nonnull %0, i32 noundef 11, i64 noundef 40)
  %.not73 = icmp eq ptr %67, null
  br i1 %.not73, label %84, label %68

68:                                               ; preds = %.critedge
  %69 = insertelement <4 x float> poison, float %7, i64 0
  %70 = insertelement <4 x float> %69, float %1, i64 1
  %71 = insertelement <4 x float> %70, float %2, i64 2
  %72 = insertelement <4 x float> %71, float %3, i64 3
  %73 = fptoui <4 x float> %72 to <4 x i16>
  %74 = fptosi <4 x float> %72 to <4 x i16>
  %75 = shufflevector <4 x i16> %73, <4 x i16> %74, <4 x i32> <i32 0, i32 5, i32 6, i32 7>
  %76 = getelementptr inbounds i8, ptr %67, i64 16
  store <4 x i16> %75, ptr %76, align 8, !tbaa !18
  %77 = insertelement <2 x float> poison, float %4, i64 0
  %78 = insertelement <2 x float> %77, float %5, i64 1
  %79 = fptosi <2 x float> %78 to <2 x i16>
  %80 = getelementptr inbounds i8, ptr %67, i64 24
  store <2 x i16> %79, ptr %80, align 2, !tbaa !18
  %81 = fptosi float %6 to i16
  %82 = getelementptr inbounds i8, ptr %67, i64 28
  store i16 %81, ptr %82, align 2, !tbaa !20
  %83 = getelementptr inbounds i8, ptr %67, i64 30
  store i24 %.sroa.0.0.extract.trunc, ptr %83, align 2
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %67, i64 33
  store i8 %.sroa.2.0.extract.trunc, ptr %.sroa.2.0..sroa_idx, align 1, !tbaa !25
  br label %84

84:                                               ; preds = %.critedge, %62, %58, %53, %51, %11, %68
  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 = !{!21, !19, i64 28}
!21 = !{!"nk_command_triangle", !22, i64 0, !19, i64 16, !23, i64 18, !23, i64 22, !23, i64 26, !24, i64 30}
!22 = !{!"nk_command", !12, i64 0, !13, i64 8}
!23 = !{!"nk_vec2i", !19, i64 0, !19, i64 2}
!24 = !{!"nk_color", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3}
!25 = !{!8, !8, i64 0}


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