; LLVM IR from Eukky/TRender :: lib/imgui/imgui_draw.ll (ZN5ImGui18ShadeVertsLinearUVEP10ImDrawVertS1_RK6ImVec2S4_S4_S4_b)

; 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.ImVec2 = type { float, float }
%struct.ImDrawVert = type { %struct.ImVec2, %struct.ImVec2, i32 }

; 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 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui18ShadeVertsLinearUVEP10ImDrawVertS1_RK6ImVec2S4_S4_S4_b(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5, i1 noundef zeroext %6) #4 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i8, align 1
  %15 = alloca %struct.ImVec2, align 4
  %16 = alloca %struct.ImVec2, align 4
  %17 = alloca %struct.ImVec2, align 4
  %18 = alloca %struct.ImVec2, align 4
  %19 = alloca %struct.ImVec2, align 4
  %20 = alloca ptr, align 8
  %21 = alloca %struct.ImVec2, align 4
  %22 = alloca %struct.ImVec2, align 4
  %23 = alloca %struct.ImVec2, align 4
  %24 = alloca %struct.ImVec2, align 4
  %25 = alloca %struct.ImVec2, align 4
  %26 = alloca %struct.ImVec2, align 4
  %27 = alloca ptr, align 8
  %28 = alloca %struct.ImVec2, align 4
  %29 = alloca %struct.ImVec2, align 4
  %30 = alloca %struct.ImVec2, align 4
  %31 = alloca %struct.ImVec2, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  %32 = zext i1 %6 to i8
  store i8 %32, ptr %14, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %33, ptr noundef nonnull align 4 dereferenceable(8) %34)
  store <2 x float> %35, ptr %15, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %36 = load ptr, ptr %13, align 8, !tbaa !5
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  %38 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %36, ptr noundef nonnull align 4 dereferenceable(8) %37)
  store <2 x float> %38, ptr %16, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %39 = getelementptr inbounds %struct.ImVec2, ptr %15, i32 0, i32 0
  %40 = load float, ptr %39, align 4, !tbaa !11
  %41 = fcmp une float %40, 0.000000e+00
  br i1 %41, label %42, label %48

42:                                               ; preds = %7
  %43 = getelementptr inbounds %struct.ImVec2, ptr %16, i32 0, i32 0
  %44 = load float, ptr %43, align 4, !tbaa !11
  %45 = getelementptr inbounds %struct.ImVec2, ptr %15, i32 0, i32 0
  %46 = load float, ptr %45, align 4, !tbaa !11
  %47 = fdiv float %44, %46
  br label %49

48:                                               ; preds = %7
  br label %49

49:                                               ; preds = %48, %42
  %50 = phi float [ %47, %42 ], [ 0.000000e+00, %48 ]
  %51 = getelementptr inbounds %struct.ImVec2, ptr %15, i32 0, i32 1
  %52 = load float, ptr %51, align 4, !tbaa !14
  %53 = fcmp une float %52, 0.000000e+00
  br i1 %53, label %54, label %60

54:                                               ; preds = %49
  %55 = getelementptr inbounds %struct.ImVec2, ptr %16, i32 0, i32 1
  %56 = load float, ptr %55, align 4, !tbaa !14
  %57 = getelementptr inbounds %struct.ImVec2, ptr %15, i32 0, i32 1
  %58 = load float, ptr %57, align 4, !tbaa !14
  %59 = fdiv float %56, %58
  br label %61

60:                                               ; preds = %49
  br label %61

61:                                               ; preds = %60, %54
  %62 = phi float [ %59, %54 ], [ 0.000000e+00, %60 ]
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %17, float noundef %50, float noundef %62)
  %63 = load i8, ptr %14, align 1, !tbaa !9, !range !15, !noundef !16
  %64 = trunc i8 %63 to i1
  br i1 %64, label %65, label %100

65:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = call <2 x float> @_ZL5ImMinRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %66, ptr noundef nonnull align 4 dereferenceable(8) %67)
  store <2 x float> %68, ptr %18, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = call <2 x float> @_ZL5ImMaxRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %69, ptr noundef nonnull align 4 dereferenceable(8) %70)
  store <2 x float> %71, ptr %19, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %72, ptr %20, align 8, !tbaa !5
  br label %73

73:                                               ; preds = %96, %65
  %74 = load ptr, ptr %20, align 8, !tbaa !5
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = icmp ult ptr %74, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %99

78:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %80 = load ptr, ptr %20, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.ImDrawVert, ptr %80, i32 0, i32 0
  %82 = getelementptr inbounds %struct.ImVec2, ptr %81, i32 0, i32 0
  %83 = load float, ptr %82, align 4, !tbaa !17
  %84 = load ptr, ptr %20, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.ImDrawVert, ptr %84, i32 0, i32 0
  %86 = getelementptr inbounds %struct.ImVec2, ptr %85, i32 0, i32 1
  %87 = load float, ptr %86, align 4, !tbaa !20
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %25, float noundef %83, float noundef %87)
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %88)
  store <2 x float> %89, ptr %24, align 4
  %90 = call <2 x float> @_ZL5ImMulRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %17)
  store <2 x float> %90, ptr %23, align 4
  %91 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %79, ptr noundef nonnull align 4 dereferenceable(8) %23)
  store <2 x float> %91, ptr %22, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !21
  %92 = load <2 x float>, ptr %26, align 4
  %93 = call <2 x float> @_ZL7ImClampRK6ImVec2S1_S_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %18, <2 x float> %92)
  store <2 x float> %93, ptr %21, align 4
  %94 = load ptr, ptr %20, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ImDrawVert, ptr %94, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %95, ptr align 4 %21, i64 8, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %96

96:                                               ; preds = %78
  %97 = load ptr, ptr %20, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.ImDrawVert, ptr %97, i32 1
  store ptr %98, ptr %20, align 8, !tbaa !5
  br label %73, !llvm.loop !23

99:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %127

100:                                              ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %101, ptr %27, align 8, !tbaa !5
  br label %102

102:                                              ; preds = %123, %100
  %103 = load ptr, ptr %27, align 8, !tbaa !5
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = icmp ult ptr %103, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %126

107:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %109 = load ptr, ptr %27, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.ImDrawVert, ptr %109, i32 0, i32 0
  %111 = getelementptr inbounds %struct.ImVec2, ptr %110, i32 0, i32 0
  %112 = load float, ptr %111, align 4, !tbaa !17
  %113 = load ptr, ptr %27, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.ImDrawVert, ptr %113, i32 0, i32 0
  %115 = getelementptr inbounds %struct.ImVec2, ptr %114, i32 0, i32 1
  %116 = load float, ptr %115, align 4, !tbaa !20
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %31, float noundef %112, float noundef %116)
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(8) %117)
  store <2 x float> %118, ptr %30, align 4
  %119 = call <2 x float> @_ZL5ImMulRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(8) %17)
  store <2 x float> %119, ptr %29, align 4
  %120 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %108, ptr noundef nonnull align 4 dereferenceable(8) %29)
  store <2 x float> %120, ptr %28, align 4
  %121 = load ptr, ptr %27, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.ImDrawVert, ptr %121, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %122, ptr align 4 %28, i64 8, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %123

123:                                              ; preds = %107
  %124 = load ptr, ptr %27, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.ImDrawVert, ptr %124, i32 1
  store ptr %125, ptr %27, align 8, !tbaa !5
  br label %102, !llvm.loop !25

126:                                              ; preds = %106
  br label %127

127:                                              ; preds = %126, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZL5ImMinRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZL5ImMaxRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZL7ImClampRK6ImVec2S1_S_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), <2 x float>) #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZL5ImMulRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 #3 = { inlinehint mustprogress 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 #4 = { mustprogress 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 #5 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !13, i64 4}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !13, i64 0}
!18 = !{!"_ZTS10ImDrawVert", !12, i64 0, !12, i64 8, !19, i64 16}
!19 = !{!"int", !7, i64 0}
!20 = !{!18, !13, i64 4}
!21 = !{i64 0, i64 4, !22, i64 4, i64 4, !22}
!22 = !{!13, !13, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}


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

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui18ShadeVertsLinearUVEP10ImDrawVertS1_RK6ImVec2S4_S4_S4_b(ptr noundef %0, ptr noundef readnone %1, ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5, i1 noundef zeroext %6) local_unnamed_addr #3 {
  %8 = alloca %struct.ImVec2, align 4
  %9 = alloca %struct.ImVec2, align 8
  %10 = alloca %struct.ImVec2, align 8
  %11 = alloca %struct.ImVec2, align 8
  %12 = alloca %struct.ImVec2, align 8
  %13 = alloca %struct.ImVec2, align 4
  %14 = alloca %struct.ImVec2, align 8
  %15 = alloca %struct.ImVec2, align 8
  %16 = alloca %struct.ImVec2, align 4
  %17 = tail call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %2)
  %18 = tail call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %.sroa.014.0.vec.extract = extractelement <2 x float> %17, i64 0
  %19 = fcmp une float %.sroa.014.0.vec.extract, 0.000000e+00
  %.sroa.013.0.vec.extract = extractelement <2 x float> %18, i64 0
  %20 = fdiv float %.sroa.013.0.vec.extract, %.sroa.014.0.vec.extract
  %21 = select i1 %19, float %20, float 0.000000e+00
  %.sroa.014.4.vec.extract = extractelement <2 x float> %17, i64 1
  %22 = fcmp une float %.sroa.014.4.vec.extract, 0.000000e+00
  %.sroa.013.4.vec.extract = extractelement <2 x float> %18, i64 1
  %23 = fdiv float %.sroa.013.4.vec.extract, %.sroa.014.4.vec.extract
  %24 = select i1 %22, float %23, float 0.000000e+00
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef %21, float noundef %24)
  br i1 %6, label %26, label %.preheader

.preheader:                                       ; preds = %7
  %25 = icmp ult ptr %0, %1
  br i1 %25, label %.lr.ph, label %.loopexit

26:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %27 = call <2 x float> @_ZL5ImMinRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %27, ptr %9, align 8
  %28 = call <2 x float> @_ZL5ImMaxRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5)
  %29 = icmp ult ptr %0, %1
  br i1 %29, label %.lr.ph38, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph38, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  br label %.loopexit

.lr.ph38:                                         ; preds = %26, %.lr.ph38
  %.037 = phi ptr [ %38, %.lr.ph38 ], [ %0, %26 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  %30 = load float, ptr %.037, align 4, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %.037, i64 4
  %32 = load float, ptr %31, align 4, !tbaa !12
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef %30, float noundef %32)
  %33 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %2)
  store <2 x float> %33, ptr %12, align 8
  %34 = call <2 x float> @_ZL5ImMulRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %34, ptr %11, align 8
  %35 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %11)
  store <2 x float> %35, ptr %10, align 8
  %36 = call <2 x float> @_ZL7ImClampRK6ImVec2S1_S_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %9, <2 x float> %28)
  %37 = getelementptr inbounds i8, ptr %.037, i64 8
  store <2 x float> %36, ptr %37, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  %38 = getelementptr inbounds i8, ptr %.037, i64 20
  %39 = icmp ult ptr %38, %1
  br i1 %39, label %.lr.ph38, label %._crit_edge, !llvm.loop !13

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %.03536 = phi ptr [ %47, %.lr.ph ], [ %0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  %40 = load float, ptr %.03536, align 4, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %.03536, i64 4
  %42 = load float, ptr %41, align 4, !tbaa !12
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %16, float noundef %40, float noundef %42)
  %43 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %2)
  store <2 x float> %43, ptr %15, align 8
  %44 = call <2 x float> @_ZL5ImMulRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %44, ptr %14, align 8
  %45 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %14)
  %46 = getelementptr inbounds i8, ptr %.03536, i64 8
  store <2 x float> %45, ptr %46, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  %47 = getelementptr inbounds i8, ptr %.03536, i64 20
  %48 = icmp ult ptr %47, %1
  br i1 %48, label %.lr.ph, label %.loopexit, !llvm.loop !15

.loopexit:                                        ; preds = %.lr.ph, %.preheader, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZL5ImMinRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZL5ImMaxRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZL7ImClampRK6ImVec2S1_S_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), <2 x float>) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZL5ImMulRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { inlinehint mustprogress 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 #3 = { mustprogress 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 #4 = { 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, !8, i64 0}
!6 = !{!"_ZTS10ImDrawVert", !7, i64 0, !7, i64 8, !11, i64 16}
!7 = !{!"_ZTS6ImVec2", !8, i64 0, !8, i64 4}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!6, !8, i64 4}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass