; 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_rect = type { float, float, float, float }
%struct.nk_color = type { i8, i8, i8, i8 }
%struct.nk_colorf = type { float, float, float, float }
%struct.nk_vec2 = type { float, float }
%struct.nk_draw_list = type { %struct.nk_rect, [12 x %struct.nk_vec2], %struct.nk_convert_config, ptr, ptr, ptr, i32, i32, i32, i64, i32, i32, i32, i32 }
%struct.nk_convert_config = type { float, i32, i32, i32, i32, i32, %struct.nk_draw_null_texture, ptr, i64, i64 }
%struct.nk_draw_null_texture = type { %union.nk_handle, %struct.nk_vec2 }
%union.nk_handle = type { ptr }

@.str.2 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [5 x i8], align 1
@__PRETTY_FUNCTION__.nk_draw_list_fill_rect_multi_color = external hidden unnamed_addr constant [147 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: nounwind uwtable
declare dso_local <2 x float> @nk_vec2(float noundef, float noundef) #1

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden ptr @nk_draw_vertex(ptr noundef, ptr noundef, <2 x float>, <2 x float>, <2 x float>, <2 x float>) #1

; Function Attrs: nounwind uwtable
declare hidden void @nk_draw_list_push_image(ptr noundef, ptr) #1

; Function Attrs: nounwind uwtable
define dso_local void @nk_draw_list_fill_rect_multi_color(ptr noundef %0, <2 x float> %1, <2 x float> %2, i32 %3, i32 %4, i32 %5, i32 %6) #1 {
  %8 = alloca %struct.nk_rect, align 4
  %9 = alloca %struct.nk_color, align 1
  %10 = alloca %struct.nk_color, align 1
  %11 = alloca %struct.nk_color, align 1
  %12 = alloca %struct.nk_color, align 1
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %struct.nk_colorf, align 4
  %16 = alloca %struct.nk_colorf, align 4
  %17 = alloca %struct.nk_colorf, align 4
  %18 = alloca %struct.nk_colorf, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i16, align 2
  %21 = alloca i32, align 4
  %22 = alloca %struct.nk_vec2, align 4
  %23 = alloca %struct.nk_vec2, align 4
  %24 = alloca %struct.nk_vec2, align 4
  %25 = alloca %struct.nk_vec2, align 4
  %26 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 0
  store <2 x float> %1, ptr %26, align 4
  %27 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 1
  store <2 x float> %2, ptr %27, align 4
  store i32 %3, ptr %9, align 1
  store i32 %4, ptr %10, align 1
  store i32 %5, ptr %11, align 1
  store i32 %6, ptr %12, align 1
  store ptr %0, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 2, ptr %20) #4
  %28 = getelementptr inbounds %struct.nk_colorf, ptr %15, i32 0, i32 0
  %29 = load i32, ptr %9, align 1
  call void @nk_color_fv(ptr noundef %28, i32 %29)
  %30 = getelementptr inbounds %struct.nk_colorf, ptr %17, i32 0, i32 0
  %31 = load i32, ptr %11, align 1
  call void @nk_color_fv(ptr noundef %30, i32 %31)
  %32 = getelementptr inbounds %struct.nk_colorf, ptr %16, i32 0, i32 0
  %33 = load i32, ptr %10, align 1
  call void @nk_color_fv(ptr noundef %32, i32 %33)
  %34 = getelementptr inbounds %struct.nk_colorf, ptr %18, i32 0, i32 0
  %35 = load i32, ptr %12, align 1
  call void @nk_color_fv(ptr noundef %34, i32 %35)
  %36 = load ptr, ptr %13, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %39

38:                                               ; preds = %7
  br label %40

39:                                               ; preds = %7
  call void @__assert_fail(ptr noundef @.str.26, ptr noundef @.str.2, i32 noundef 10207, ptr noundef @__PRETTY_FUNCTION__.nk_draw_list_fill_rect_multi_color) #5
  unreachable

40:                                               ; preds = %38
  %41 = load ptr, ptr %13, align 8, !tbaa !5
  %42 = icmp ne ptr %41, null
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  store i32 1, ptr %21, align 4
  br label %191

44:                                               ; preds = %40
  %45 = load ptr, ptr %13, align 8, !tbaa !5
  %46 = load ptr, ptr %13, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.nk_draw_list, ptr %46, i32 0, i32 2
  %48 = getelementptr inbounds %struct.nk_convert_config, ptr %47, i32 0, i32 6
  %49 = getelementptr inbounds %struct.nk_draw_null_texture, ptr %48, i32 0, i32 0
  %50 = getelementptr inbounds %union.nk_handle, ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8
  call void @nk_draw_list_push_image(ptr noundef %45, ptr %51)
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.nk_draw_list, ptr %52, i32 0, i32 7
  %54 = load i32, ptr %53, align 4, !tbaa !9
  %55 = trunc i32 %54 to i16
  store i16 %55, ptr %20, align 2, !tbaa !18
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  %57 = call ptr @nk_draw_list_alloc_vertices(ptr noundef %56, i64 noundef 4)
  store ptr %57, ptr %14, align 8, !tbaa !5
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = call ptr @nk_draw_list_alloc_elements(ptr noundef %58, i64 noundef 6)
  store ptr %59, ptr %19, align 8, !tbaa !5
  %60 = load ptr, ptr %14, align 8, !tbaa !5
  %61 = icmp ne ptr %60, null
  br i1 %61, label %62, label %65

62:                                               ; preds = %44
  %63 = load ptr, ptr %19, align 8, !tbaa !5
  %64 = icmp ne ptr %63, null
  br i1 %64, label %66, label %65

65:                                               ; preds = %62, %44
  store i32 1, ptr %21, align 4
  br label %191

66:                                               ; preds = %62
  %67 = load i16, ptr %20, align 2, !tbaa !18
  %68 = zext i16 %67 to i32
  %69 = add nsw i32 %68, 0
  %70 = trunc i32 %69 to i16
  %71 = load ptr, ptr %19, align 8, !tbaa !5
  %72 = getelementptr inbounds i16, ptr %71, i64 0
  store i16 %70, ptr %72, align 2, !tbaa !18
  %73 = load i16, ptr %20, align 2, !tbaa !18
  %74 = zext i16 %73 to i32
  %75 = add nsw i32 %74, 1
  %76 = trunc i32 %75 to i16
  %77 = load ptr, ptr %19, align 8, !tbaa !5
  %78 = getelementptr inbounds i16, ptr %77, i64 1
  store i16 %76, ptr %78, align 2, !tbaa !18
  %79 = load i16, ptr %20, align 2, !tbaa !18
  %80 = zext i16 %79 to i32
  %81 = add nsw i32 %80, 2
  %82 = trunc i32 %81 to i16
  %83 = load ptr, ptr %19, align 8, !tbaa !5
  %84 = getelementptr inbounds i16, ptr %83, i64 2
  store i16 %82, ptr %84, align 2, !tbaa !18
  %85 = load i16, ptr %20, align 2, !tbaa !18
  %86 = zext i16 %85 to i32
  %87 = add nsw i32 %86, 0
  %88 = trunc i32 %87 to i16
  %89 = load ptr, ptr %19, align 8, !tbaa !5
  %90 = getelementptr inbounds i16, ptr %89, i64 3
  store i16 %88, ptr %90, align 2, !tbaa !18
  %91 = load i16, ptr %20, align 2, !tbaa !18
  %92 = zext i16 %91 to i32
  %93 = add nsw i32 %92, 2
  %94 = trunc i32 %93 to i16
  %95 = load ptr, ptr %19, align 8, !tbaa !5
  %96 = getelementptr inbounds i16, ptr %95, i64 4
  store i16 %94, ptr %96, align 2, !tbaa !18
  %97 = load i16, ptr %20, align 2, !tbaa !18
  %98 = zext i16 %97 to i32
  %99 = add nsw i32 %98, 3
  %100 = trunc i32 %99 to i16
  %101 = load ptr, ptr %19, align 8, !tbaa !5
  %102 = getelementptr inbounds i16, ptr %101, i64 5
  store i16 %100, ptr %102, align 2, !tbaa !18
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.nk_draw_list, ptr %104, i32 0, i32 2
  %106 = getelementptr inbounds %struct.nk_rect, ptr %8, i32 0, i32 0
  %107 = load float, ptr %106, align 4, !tbaa !20
  %108 = getelementptr inbounds %struct.nk_rect, ptr %8, i32 0, i32 1
  %109 = load float, ptr %108, align 4, !tbaa !21
  %110 = call <2 x float> @nk_vec2(float noundef %107, float noundef %109)
  store <2 x float> %110, ptr %22, align 4
  %111 = load ptr, ptr %13, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.nk_draw_list, ptr %111, i32 0, i32 2
  %113 = getelementptr inbounds %struct.nk_convert_config, ptr %112, i32 0, i32 6
  %114 = getelementptr inbounds %struct.nk_draw_null_texture, ptr %113, i32 0, i32 1
  %115 = load <2 x float>, ptr %22, align 4
  %116 = load <2 x float>, ptr %114, align 8
  %117 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 0
  %118 = load <2 x float>, ptr %117, align 4
  %119 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 1
  %120 = load <2 x float>, ptr %119, align 4
  %121 = call ptr @nk_draw_vertex(ptr noundef %103, ptr noundef %105, <2 x float> %115, <2 x float> %116, <2 x float> %118, <2 x float> %120)
  store ptr %121, ptr %14, align 8, !tbaa !5
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  %123 = load ptr, ptr %13, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.nk_draw_list, ptr %123, i32 0, i32 2
  %125 = getelementptr inbounds %struct.nk_rect, ptr %8, i32 0, i32 0
  %126 = load float, ptr %125, align 4, !tbaa !20
  %127 = getelementptr inbounds %struct.nk_rect, ptr %8, i32 0, i32 2
  %128 = load float, ptr %127, align 4, !tbaa !22
  %129 = fadd float %126, %128
  %130 = getelementptr inbounds %struct.nk_rect, ptr %8, i32 0, i32 1
  %131 = load float, ptr %130, align 4, !tbaa !21
  %132 = call <2 x float> @nk_vec2(float noundef %129, float noundef %131)
  store <2 x float> %132, ptr %23, align 4
  %133 = load ptr, ptr %13, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.nk_draw_list, ptr %133, i32 0, i32 2
  %135 = getelementptr inbounds %struct.nk_convert_config, ptr %134, i32 0, i32 6
  %136 = getelementptr inbounds %struct.nk_draw_null_texture, ptr %135, i32 0, i32 1
  %137 = load <2 x float>, ptr %23, align 4
  %138 = load <2 x float>, ptr %136, align 8
  %139 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 0
  %140 = load <2 x float>, ptr %139, align 4
  %141 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 1
  %142 = load <2 x float>, ptr %141, align 4
  %143 = call ptr @nk_draw_vertex(ptr noundef %122, ptr noundef %124, <2 x float> %137, <2 x float> %138, <2 x float> %140, <2 x float> %142)
  store ptr %143, ptr %14, align 8, !tbaa !5
  %144 = load ptr, ptr %14, align 8, !tbaa !5
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.nk_draw_list, ptr %145, i32 0, i32 2
  %147 = getelementptr inbounds %struct.nk_rect, ptr %8, i32 0, i32 0
  %148 = load float, ptr %147, align 4, !tbaa !20
  %149 = getelementptr inbounds %struct.nk_rect, ptr %8, i32 0, i32 2
  %150 = load float, ptr %149, align 4, !tbaa !22
  %151 = fadd float %148, %150
  %152 = getelementptr inbounds %struct.nk_rect, ptr %8, i32 0, i32 1
  %153 = load float, ptr %152, align 4, !tbaa !21
  %154 = getelementptr inbounds %struct.nk_rect, ptr %8, i32 0, i32 3
  %155 = load float, ptr %154, align 4, !tbaa !23
  %156 = fadd float %153, %155
  %157 = call <2 x float> @nk_vec2(float noundef %151, float noundef %156)
  store <2 x float> %157, ptr %24, align 4
  %158 = load ptr, ptr %13, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.nk_draw_list, ptr %158, i32 0, i32 2
  %160 = getelementptr inbounds %struct.nk_convert_config, ptr %159, i32 0, i32 6
  %161 = getelementptr inbounds %struct.nk_draw_null_texture, ptr %160, i32 0, i32 1
  %162 = load <2 x float>, ptr %24, align 4
  %163 = load <2 x float>, ptr %161, align 8
  %164 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %17, i32 0, i32 0
  %165 = load <2 x float>, ptr %164, align 4
  %166 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %17, i32 0, i32 1
  %167 = load <2 x float>, ptr %166, align 4
  %168 = call ptr @nk_draw_vertex(ptr noundef %144, ptr noundef %146, <2 x float> %162, <2 x float> %163, <2 x float> %165, <2 x float> %167)
  store ptr %168, ptr %14, align 8, !tbaa !5
  %169 = load ptr, ptr %14, align 8, !tbaa !5
  %170 = load ptr, ptr %13, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.nk_draw_list, ptr %170, i32 0, i32 2
  %172 = getelementptr inbounds %struct.nk_rect, ptr %8, i32 0, i32 0
  %173 = load float, ptr %172, align 4, !tbaa !20
  %174 = getelementptr inbounds %struct.nk_rect, ptr %8, i32 0, i32 1
  %175 = load float, ptr %174, align 4, !tbaa !21
  %176 = getelementptr inbounds %struct.nk_rect, ptr %8, i32 0, i32 3
  %177 = load float, ptr %176, align 4, !tbaa !23
  %178 = fadd float %175, %177
  %179 = call <2 x float> @nk_vec2(float noundef %173, float noundef %178)
  store <2 x float> %179, ptr %25, align 4
  %180 = load ptr, ptr %13, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.nk_draw_list, ptr %180, i32 0, i32 2
  %182 = getelementptr inbounds %struct.nk_convert_config, ptr %181, i32 0, i32 6
  %183 = getelementptr inbounds %struct.nk_draw_null_texture, ptr %182, i32 0, i32 1
  %184 = load <2 x float>, ptr %25, align 4
  %185 = load <2 x float>, ptr %183, align 8
  %186 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %18, i32 0, i32 0
  %187 = load <2 x float>, ptr %186, align 4
  %188 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %18, i32 0, i32 1
  %189 = load <2 x float>, ptr %188, align 4
  %190 = call ptr @nk_draw_vertex(ptr noundef %169, ptr noundef %171, <2 x float> %184, <2 x float> %185, <2 x float> %187, <2 x float> %189)
  store ptr %190, ptr %14, align 8, !tbaa !5
  store i32 0, ptr %21, align 4
  br label %191

191:                                              ; preds = %66, %65, %43
  call void @llvm.lifetime.end.p0(i64 2, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  %192 = load i32, ptr %21, align 4
  switch i32 %192, label %194 [
    i32 0, label %193
    i32 1, label %193
  ]

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

194:                                              ; preds = %191
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="64" "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 "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, !14, i64 204}
!10 = !{!"nk_draw_list", !11, i64 0, !7, i64 16, !13, i64 112, !6, i64 176, !6, i64 184, !6, i64 192, !14, i64 200, !14, i64 204, !14, i64 208, !17, i64 216, !14, i64 224, !14, i64 228, !14, i64 232, !14, i64 236}
!11 = !{!"nk_rect", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!12 = !{!"float", !7, i64 0}
!13 = !{!"nk_convert_config", !12, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !15, i64 24, !6, i64 40, !17, i64 48, !17, i64 56}
!14 = !{!"int", !7, i64 0}
!15 = !{!"nk_draw_null_texture", !7, i64 0, !16, i64 8}
!16 = !{!"nk_vec2", !12, i64 0, !12, i64 4}
!17 = !{!"long", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = !{!11, !12, i64 0}
!21 = !{!11, !12, i64 4}
!22 = !{!11, !12, i64 8}
!23 = !{!11, !12, i64 12}


; 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.nk_colorf = type { float, float, float, float }

@.str.2 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [5 x i8], align 1
@__PRETTY_FUNCTION__.nk_draw_list_fill_rect_multi_color = external hidden unnamed_addr constant [147 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

; 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 <2 x float> @nk_vec2(float noundef, float noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden ptr @nk_draw_vertex(ptr noundef, ptr noundef, <2 x float>, <2 x float>, <2 x float>, <2 x float>) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @nk_draw_list_push_image(ptr noundef, ptr) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @nk_draw_list_fill_rect_multi_color(ptr noundef %0, <2 x float> %1, <2 x float> %2, i32 %3, i32 %4, i32 %5, i32 %6) local_unnamed_addr #1 {
  %8 = alloca %struct.nk_colorf, align 8
  %9 = alloca %struct.nk_colorf, align 8
  %10 = alloca %struct.nk_colorf, align 8
  %11 = alloca %struct.nk_colorf, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #4
  call void @nk_color_fv(ptr noundef nonnull %8, i32 %3)
  call void @nk_color_fv(ptr noundef nonnull %10, i32 %5)
  call void @nk_color_fv(ptr noundef nonnull %9, i32 %4)
  call void @nk_color_fv(ptr noundef nonnull %11, i32 %6)
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %12, label %13

12:                                               ; preds = %7
  call void @__assert_fail(ptr noundef nonnull @.str.26, ptr noundef nonnull @.str.2, i32 noundef 10207, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_draw_list_fill_rect_multi_color) #5
  unreachable

13:                                               ; preds = %7
  %14 = getelementptr inbounds i8, ptr %0, i64 136
  %15 = load ptr, ptr %14, align 8
  call void @nk_draw_list_push_image(ptr noundef nonnull %0, ptr %15)
  %16 = getelementptr inbounds i8, ptr %0, i64 204
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = call ptr @nk_draw_list_alloc_vertices(ptr noundef nonnull %0, i64 noundef 4)
  %19 = call ptr @nk_draw_list_alloc_elements(ptr noundef nonnull %0, i64 noundef 6)
  %20 = icmp ne ptr %18, null
  %21 = icmp ne ptr %19, null
  %or.cond = select i1 %20, i1 %21, i1 false
  br i1 %or.cond, label %22, label %62

22:                                               ; preds = %13
  %23 = trunc i32 %17 to i16
  %24 = getelementptr inbounds i8, ptr %0, i64 112
  store i16 %23, ptr %19, align 2, !tbaa !17
  %25 = add i16 %23, 1
  %26 = getelementptr inbounds i8, ptr %19, i64 2
  store i16 %25, ptr %26, align 2, !tbaa !17
  %27 = add i16 %23, 2
  %28 = getelementptr inbounds i8, ptr %19, i64 4
  store i16 %27, ptr %28, align 2, !tbaa !17
  %29 = getelementptr inbounds i8, ptr %19, i64 6
  store i16 %23, ptr %29, align 2, !tbaa !17
  %30 = getelementptr inbounds i8, ptr %19, i64 8
  store i16 %27, ptr %30, align 2, !tbaa !17
  %31 = add i16 %23, 3
  %32 = getelementptr inbounds i8, ptr %19, i64 10
  store i16 %31, ptr %32, align 2, !tbaa !17
  %.sroa.040.0.vec.extract = extractelement <2 x float> %1, i64 0
  %.sroa.040.4.vec.extract = extractelement <2 x float> %1, i64 1
  %33 = call <2 x float> @nk_vec2(float noundef %.sroa.040.0.vec.extract, float noundef %.sroa.040.4.vec.extract)
  %34 = getelementptr inbounds i8, ptr %0, i64 144
  %35 = load <2 x float>, ptr %34, align 8
  %36 = load <2 x float>, ptr %8, align 8
  %37 = getelementptr inbounds i8, ptr %8, i64 8
  %38 = load <2 x float>, ptr %37, align 8
  %39 = call ptr @nk_draw_vertex(ptr noundef nonnull %18, ptr noundef nonnull %24, <2 x float> %33, <2 x float> %35, <2 x float> %36, <2 x float> %38)
  %40 = fadd <2 x float> %1, %2
  %41 = extractelement <2 x float> %40, i64 0
  %42 = call <2 x float> @nk_vec2(float noundef %41, float noundef %.sroa.040.4.vec.extract)
  %43 = load <2 x float>, ptr %34, align 8
  %44 = load <2 x float>, ptr %9, align 8
  %45 = getelementptr inbounds i8, ptr %9, i64 8
  %46 = load <2 x float>, ptr %45, align 8
  %47 = call ptr @nk_draw_vertex(ptr noundef %39, ptr noundef nonnull %24, <2 x float> %42, <2 x float> %43, <2 x float> %44, <2 x float> %46)
  %48 = fadd <2 x float> %1, %2
  %49 = extractelement <2 x float> %48, i64 1
  %50 = call <2 x float> @nk_vec2(float noundef %41, float noundef %49)
  %51 = load <2 x float>, ptr %34, align 8
  %52 = load <2 x float>, ptr %10, align 8
  %53 = getelementptr inbounds i8, ptr %10, i64 8
  %54 = load <2 x float>, ptr %53, align 8
  %55 = call ptr @nk_draw_vertex(ptr noundef %47, ptr noundef nonnull %24, <2 x float> %50, <2 x float> %51, <2 x float> %52, <2 x float> %54)
  %56 = call <2 x float> @nk_vec2(float noundef %.sroa.040.0.vec.extract, float noundef %49)
  %57 = load <2 x float>, ptr %34, align 8
  %58 = load <2 x float>, ptr %11, align 8
  %59 = getelementptr inbounds i8, ptr %11, i64 8
  %60 = load <2 x float>, ptr %59, align 8
  %61 = call ptr @nk_draw_vertex(ptr noundef %55, ptr noundef nonnull %24, <2 x float> %56, <2 x float> %57, <2 x float> %58, <2 x float> %60)
  br label %62

62:                                               ; preds = %13, %22
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="64" "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 "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, !12, i64 204}
!6 = !{!"nk_draw_list", !7, i64 0, !9, i64 16, !11, i64 112, !15, i64 176, !15, i64 184, !15, i64 192, !12, i64 200, !12, i64 204, !12, i64 208, !16, i64 216, !12, i64 224, !12, i64 228, !12, i64 232, !12, i64 236}
!7 = !{!"nk_rect", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"nk_convert_config", !8, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !13, i64 24, !15, i64 40, !16, i64 48, !16, i64 56}
!12 = !{!"int", !9, i64 0}
!13 = !{!"nk_draw_null_texture", !9, i64 0, !14, i64 8}
!14 = !{!"nk_vec2", !8, i64 0, !8, i64 4}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{!"long", !9, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"short", !9, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,VectorCombinePass