; LLVM IR from Devaniti/BoolkaEngine :: ThirdParty/imgui (imgui_draw)

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

; 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: 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMinIfET_S0_S0_(float noundef, float noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef, i32 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef, float noundef, float noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui36RenderColorRectWithAlphaCheckerboardEP10ImDrawList6ImVec2S2_jfS2_fi(ptr noundef %0, <2 x float> %1, <2 x float> %2, i32 noundef %3, float noundef %4, <2 x float> %5, float noundef %6, i32 noundef %7) #5 {
  %9 = alloca %struct.ImVec2, align 4
  %10 = alloca %struct.ImVec2, align 4
  %11 = alloca %struct.ImVec2, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca float, align 4
  %21 = alloca i32, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca i32, align 4
  %28 = alloca %struct.ImVec2, align 4
  %29 = alloca %struct.ImVec2, align 4
  store <2 x float> %1, ptr %9, align 4
  store <2 x float> %2, ptr %10, align 4
  store <2 x float> %5, ptr %11, align 4
  store ptr %0, ptr %12, align 8, !tbaa !5
  store i32 %3, ptr %13, align 4, !tbaa !9
  store float %4, ptr %14, align 4, !tbaa !11
  store float %6, ptr %15, align 4, !tbaa !11
  store i32 %7, ptr %16, align 4, !tbaa !9
  %30 = load i32, ptr %13, align 4, !tbaa !9
  %31 = and i32 %30, -16777216
  %32 = lshr i32 %31, 24
  %33 = icmp ult i32 %32, 255
  br i1 %33, label %34, label %187

34:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %35 = load i32, ptr %13, align 4, !tbaa !9
  %36 = call noundef i32 @_Z18ImAlphaBlendColorsjj(i32 noundef -3355444, i32 noundef %35)
  %37 = call noundef i32 @_ZN5ImGui11GetColorU32Ej(i32 noundef %36)
  store i32 %37, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %38 = load i32, ptr %13, align 4, !tbaa !9
  %39 = call noundef i32 @_Z18ImAlphaBlendColorsjj(i32 noundef -8355712, i32 noundef %38)
  %40 = call noundef i32 @_ZN5ImGui11GetColorU32Ej(i32 noundef %39)
  store i32 %40, ptr %18, align 4, !tbaa !9
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = load i32, ptr %17, align 4, !tbaa !9
  %43 = load float, ptr %15, align 4, !tbaa !11
  %44 = load i32, ptr %16, align 4, !tbaa !9
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %41, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %10, i32 noundef %42, float noundef %43, i32 noundef %44)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %45 = getelementptr inbounds %struct.ImVec2, ptr %9, i32 0, i32 1
  %46 = load float, ptr %45, align 4, !tbaa !13
  %47 = getelementptr inbounds %struct.ImVec2, ptr %11, i32 0, i32 1
  %48 = load float, ptr %47, align 4, !tbaa !13
  %49 = fadd float %46, %48
  store float %49, ptr %20, align 4, !tbaa !11
  br label %50

50:                                               ; preds = %180, %34
  %51 = load float, ptr %20, align 4, !tbaa !11
  %52 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 1
  %53 = load float, ptr %52, align 4, !tbaa !13
  %54 = fcmp olt float %51, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %50
  store i32 2, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %186

56:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %57 = load float, ptr %20, align 4, !tbaa !11
  %58 = getelementptr inbounds %struct.ImVec2, ptr %9, i32 0, i32 1
  %59 = load float, ptr %58, align 4, !tbaa !13
  %60 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 1
  %61 = load float, ptr %60, align 4, !tbaa !13
  %62 = call noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef %57, float noundef %59, float noundef %61)
  store float %62, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %63 = load float, ptr %20, align 4, !tbaa !11
  %64 = load float, ptr %14, align 4, !tbaa !11
  %65 = fadd float %63, %64
  %66 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 1
  %67 = load float, ptr %66, align 4, !tbaa !13
  %68 = call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %65, float noundef %67)
  store float %68, ptr %23, align 4, !tbaa !11
  %69 = load float, ptr %23, align 4, !tbaa !11
  %70 = load float, ptr %22, align 4, !tbaa !11
  %71 = fcmp ole float %69, %70
  br i1 %71, label %72, label %73

72:                                               ; preds = %56
  store i32 4, ptr %21, align 4
  br label %177

73:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %74 = getelementptr inbounds %struct.ImVec2, ptr %9, i32 0, i32 0
  %75 = load float, ptr %74, align 4, !tbaa !15
  %76 = getelementptr inbounds %struct.ImVec2, ptr %11, i32 0, i32 0
  %77 = load float, ptr %76, align 4, !tbaa !15
  %78 = fadd float %75, %77
  %79 = load i32, ptr %19, align 4, !tbaa !9
  %80 = and i32 %79, 1
  %81 = sitofp i32 %80 to float
  %82 = load float, ptr %14, align 4, !tbaa !11
  %83 = call float @llvm.fmuladd.f32(float %81, float %82, float %78)
  store float %83, ptr %24, align 4, !tbaa !11
  br label %84

84:                                               ; preds = %172, %73
  %85 = load float, ptr %24, align 4, !tbaa !11
  %86 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 0
  %87 = load float, ptr %86, align 4, !tbaa !15
  %88 = fcmp olt float %85, %87
  br i1 %88, label %90, label %89

89:                                               ; preds = %84
  store i32 5, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %176

90:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %91 = load float, ptr %24, align 4, !tbaa !11
  %92 = getelementptr inbounds %struct.ImVec2, ptr %9, i32 0, i32 0
  %93 = load float, ptr %92, align 4, !tbaa !15
  %94 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 0
  %95 = load float, ptr %94, align 4, !tbaa !15
  %96 = call noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef %91, float noundef %93, float noundef %95)
  store float %96, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %97 = load float, ptr %24, align 4, !tbaa !11
  %98 = load float, ptr %14, align 4, !tbaa !11
  %99 = fadd float %97, %98
  %100 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 0
  %101 = load float, ptr %100, align 4, !tbaa !15
  %102 = call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %99, float noundef %101)
  store float %102, ptr %26, align 4, !tbaa !11
  %103 = load float, ptr %26, align 4, !tbaa !11
  %104 = load float, ptr %25, align 4, !tbaa !11
  %105 = fcmp ole float %103, %104
  br i1 %105, label %106, label %107

106:                                              ; preds = %90
  store i32 7, ptr %21, align 4
  br label %169

107:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 0, ptr %27, align 4, !tbaa !9
  %108 = load float, ptr %22, align 4, !tbaa !11
  %109 = getelementptr inbounds %struct.ImVec2, ptr %9, i32 0, i32 1
  %110 = load float, ptr %109, align 4, !tbaa !13
  %111 = fcmp ole float %108, %110
  br i1 %111, label %112, label %129

112:                                              ; preds = %107
  %113 = load float, ptr %25, align 4, !tbaa !11
  %114 = getelementptr inbounds %struct.ImVec2, ptr %9, i32 0, i32 0
  %115 = load float, ptr %114, align 4, !tbaa !15
  %116 = fcmp ole float %113, %115
  br i1 %116, label %117, label %120

117:                                              ; preds = %112
  %118 = load i32, ptr %27, align 4, !tbaa !9
  %119 = or i32 %118, 1
  store i32 %119, ptr %27, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %117, %112
  %121 = load float, ptr %26, align 4, !tbaa !11
  %122 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 0
  %123 = load float, ptr %122, align 4, !tbaa !15
  %124 = fcmp oge float %121, %123
  br i1 %124, label %125, label %128

125:                                              ; preds = %120
  %126 = load i32, ptr %27, align 4, !tbaa !9
  %127 = or i32 %126, 2
  store i32 %127, ptr %27, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %125, %120
  br label %129

129:                                              ; preds = %128, %107
  %130 = load float, ptr %23, align 4, !tbaa !11
  %131 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 1
  %132 = load float, ptr %131, align 4, !tbaa !13
  %133 = fcmp oge float %130, %132
  br i1 %133, label %134, label %151

134:                                              ; preds = %129
  %135 = load float, ptr %25, align 4, !tbaa !11
  %136 = getelementptr inbounds %struct.ImVec2, ptr %9, i32 0, i32 0
  %137 = load float, ptr %136, align 4, !tbaa !15
  %138 = fcmp ole float %135, %137
  br i1 %138, label %139, label %142

139:                                              ; preds = %134
  %140 = load i32, ptr %27, align 4, !tbaa !9
  %141 = or i32 %140, 4
  store i32 %141, ptr %27, align 4, !tbaa !9
  br label %142

142:                                              ; preds = %139, %134
  %143 = load float, ptr %26, align 4, !tbaa !11
  %144 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 0
  %145 = load float, ptr %144, align 4, !tbaa !15
  %146 = fcmp oge float %143, %145
  br i1 %146, label %147, label %150

147:                                              ; preds = %142
  %148 = load i32, ptr %27, align 4, !tbaa !9
  %149 = or i32 %148, 8
  store i32 %149, ptr %27, align 4, !tbaa !9
  br label %150

150:                                              ; preds = %147, %142
  br label %151

151:                                              ; preds = %150, %129
  %152 = load i32, ptr %16, align 4, !tbaa !9
  %153 = load i32, ptr %27, align 4, !tbaa !9
  %154 = and i32 %153, %152
  store i32 %154, ptr %27, align 4, !tbaa !9
  %155 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %156 = load float, ptr %25, align 4, !tbaa !11
  %157 = load float, ptr %22, align 4, !tbaa !11
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %28, float noundef %156, float noundef %157)
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %158 = load float, ptr %26, align 4, !tbaa !11
  %159 = load float, ptr %23, align 4, !tbaa !11
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %29, float noundef %158, float noundef %159)
  %160 = load i32, ptr %18, align 4, !tbaa !9
  %161 = load i32, ptr %27, align 4, !tbaa !9
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %163, label %165

163:                                              ; preds = %151
  %164 = load float, ptr %15, align 4, !tbaa !11
  br label %166

165:                                              ; preds = %151
  br label %166

166:                                              ; preds = %165, %163
  %167 = phi float [ %164, %163 ], [ 0.000000e+00, %165 ]
  %168 = load i32, ptr %27, align 4, !tbaa !9
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %155, ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(8) %29, i32 noundef %160, float noundef %167, i32 noundef %168)
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  store i32 0, ptr %21, align 4
  br label %169

169:                                              ; preds = %166, %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  %170 = load i32, ptr %21, align 4
  switch i32 %170, label %193 [
    i32 0, label %171
    i32 7, label %172
  ]

171:                                              ; preds = %169
  br label %172

172:                                              ; preds = %171, %169
  %173 = load float, ptr %14, align 4, !tbaa !11
  %174 = load float, ptr %24, align 4, !tbaa !11
  %175 = call float @llvm.fmuladd.f32(float %173, float 2.000000e+00, float %174)
  store float %175, ptr %24, align 4, !tbaa !11
  br label %84, !llvm.loop !16

176:                                              ; preds = %89
  store i32 0, ptr %21, align 4
  br label %177

177:                                              ; preds = %176, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  %178 = load i32, ptr %21, align 4
  switch i32 %178, label %193 [
    i32 0, label %179
    i32 4, label %180
  ]

179:                                              ; preds = %177
  br label %180

180:                                              ; preds = %179, %177
  %181 = load float, ptr %14, align 4, !tbaa !11
  %182 = load float, ptr %20, align 4, !tbaa !11
  %183 = fadd float %182, %181
  store float %183, ptr %20, align 4, !tbaa !11
  %184 = load i32, ptr %19, align 4, !tbaa !9
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %19, align 4, !tbaa !9
  br label %50, !llvm.loop !18

186:                                              ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %192

187:                                              ; preds = %8
  %188 = load ptr, ptr %12, align 8, !tbaa !5
  %189 = load i32, ptr %13, align 4, !tbaa !9
  %190 = load float, ptr %15, align 4, !tbaa !11
  %191 = load i32, ptr %16, align 4, !tbaa !9
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %188, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %10, i32 noundef %189, float noundef %190, i32 noundef %191)
  br label %192

192:                                              ; preds = %187, %186
  ret void

193:                                              ; preds = %177, %169
  unreachable
}

declare noundef i32 @_ZN5ImGui11GetColorU32Ej(i32 noundef) #6

declare noundef i32 @_Z18ImAlphaBlendColorsjj(i32 noundef, i32 noundef) #6

attributes #0 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { inlinehint 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 #4 = { mustprogress 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 #5 = { 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 #6 = { "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 #7 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !12, i64 4}
!14 = !{!"_ZTS6ImVec2", !12, i64 0, !12, i64 4}
!15 = !{!14, !12, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


; 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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMinIfET_S0_S0_(float noundef, float noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef, i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef, float noundef, float noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui36RenderColorRectWithAlphaCheckerboardEP10ImDrawList6ImVec2S2_jfS2_fi(ptr noundef %0, <2 x float> %1, <2 x float> %2, i32 noundef %3, float noundef %4, <2 x float> %5, float noundef %6, i32 noundef %7) local_unnamed_addr #5 {
  %9 = alloca %struct.ImVec2, align 8
  %10 = alloca %struct.ImVec2, align 8
  %11 = alloca %struct.ImVec2, align 4
  %12 = alloca %struct.ImVec2, align 4
  store <2 x float> %1, ptr %9, align 8
  store <2 x float> %2, ptr %10, align 8
  %.not = icmp ugt i32 %3, -16777217
  br i1 %.not, label %78, label %13

13:                                               ; preds = %8
  %14 = tail call noundef i32 @_Z18ImAlphaBlendColorsjj(i32 noundef -3355444, i32 noundef %3)
  %15 = tail call noundef i32 @_ZN5ImGui11GetColorU32Ej(i32 noundef %14)
  %16 = tail call noundef i32 @_Z18ImAlphaBlendColorsjj(i32 noundef -8355712, i32 noundef %3)
  %17 = tail call noundef i32 @_ZN5ImGui11GetColorU32Ej(i32 noundef %16)
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %10, i32 noundef %15, float noundef %6, i32 noundef %7)
  %18 = getelementptr inbounds i8, ptr %9, i64 4
  %19 = load float, ptr %18, align 4, !tbaa !5
  %.sroa.0.4.vec.extract = extractelement <2 x float> %5, i64 1
  %20 = fadd float %.sroa.0.4.vec.extract, %19
  %21 = getelementptr inbounds i8, ptr %10, i64 4
  %22 = load float, ptr %21, align 4, !tbaa !5
  %23 = fcmp olt float %20, %22
  br i1 %23, label %.lr.ph64, label %.loopexit60

.lr.ph64:                                         ; preds = %13
  %.sroa.0.0.vec.extract = extractelement <2 x float> %5, i64 0
  br label %24

24:                                               ; preds = %.lr.ph64, %.loopexit
  %25 = phi float [ %22, %.lr.ph64 ], [ %76, %.loopexit ]
  %.05063 = phi i32 [ 0, %.lr.ph64 ], [ %75, %.loopexit ]
  %.05162 = phi float [ %20, %.lr.ph64 ], [ %28, %.loopexit ]
  %26 = load float, ptr %18, align 4, !tbaa !5
  %27 = call noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef %.05162, float noundef %26, float noundef %25)
  %28 = fadd float %.05162, %4
  %29 = load float, ptr %21, align 4, !tbaa !5
  %30 = call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %28, float noundef %29)
  %31 = fcmp ugt float %30, %27
  br i1 %31, label %32, label %.loopexit

32:                                               ; preds = %24
  %33 = load float, ptr %9, align 8, !tbaa !10
  %34 = fadd float %.sroa.0.0.vec.extract, %33
  %35 = and i32 %.05063, 1
  %36 = uitofp nneg i32 %35 to float
  %37 = call float @llvm.fmuladd.f32(float %36, float %4, float %34)
  %38 = load float, ptr %10, align 8, !tbaa !10
  %39 = fcmp olt float %37, %38
  br i1 %39, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %32, %71
  %40 = phi float [ %73, %71 ], [ %38, %32 ]
  %.05261 = phi float [ %72, %71 ], [ %37, %32 ]
  %41 = load float, ptr %9, align 8, !tbaa !10
  %42 = call noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef %.05261, float noundef %41, float noundef %40)
  %43 = fadd float %.05261, %4
  %44 = load float, ptr %10, align 8, !tbaa !10
  %45 = call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %43, float noundef %44)
  %46 = fcmp ugt float %45, %42
  br i1 %46, label %47, label %71

47:                                               ; preds = %.lr.ph
  %48 = load float, ptr %18, align 4, !tbaa !5
  %49 = fcmp ugt float %27, %48
  br i1 %49, label %57, label %50

50:                                               ; preds = %47
  %51 = load float, ptr %9, align 8, !tbaa !10
  %52 = fcmp ole float %42, %51
  %.0 = zext i1 %52 to i32
  %53 = load float, ptr %10, align 8, !tbaa !10
  %54 = fcmp ult float %45, %53
  br i1 %54, label %57, label %55

55:                                               ; preds = %50
  %56 = or disjoint i32 %.0, 2
  br label %57

57:                                               ; preds = %50, %55, %47
  %.1 = phi i32 [ %56, %55 ], [ %.0, %50 ], [ 0, %47 ]
  %58 = load float, ptr %21, align 4, !tbaa !5
  %59 = fcmp ult float %30, %58
  br i1 %59, label %68, label %60

60:                                               ; preds = %57
  %61 = load float, ptr %9, align 8, !tbaa !10
  %62 = fcmp ugt float %42, %61
  %63 = or i32 %.1, 4
  %.2 = select i1 %62, i32 %.1, i32 %63
  %64 = load float, ptr %10, align 8, !tbaa !10
  %65 = fcmp ult float %45, %64
  br i1 %65, label %68, label %66

66:                                               ; preds = %60
  %67 = or i32 %.2, 8
  br label %68

68:                                               ; preds = %60, %66, %57
  %.3 = phi i32 [ %67, %66 ], [ %.2, %60 ], [ %.1, %57 ]
  %69 = and i32 %.3, %7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %42, float noundef %27)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef %45, float noundef %30)
  %.not59 = icmp eq i32 %69, 0
  %70 = select i1 %.not59, float 0.000000e+00, float %6
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef %17, float noundef %70, i32 noundef %69)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %71

71:                                               ; preds = %.lr.ph, %68
  %72 = call float @llvm.fmuladd.f32(float %4, float 2.000000e+00, float %.05261)
  %73 = load float, ptr %10, align 8, !tbaa !10
  %74 = fcmp olt float %72, %73
  br i1 %74, label %.lr.ph, label %.loopexit, !llvm.loop !11

.loopexit:                                        ; preds = %71, %32, %24
  %75 = add nuw nsw i32 %.05063, 1
  %76 = load float, ptr %21, align 4, !tbaa !5
  %77 = fcmp olt float %28, %76
  br i1 %77, label %24, label %.loopexit60, !llvm.loop !13

78:                                               ; preds = %8
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %10, i32 noundef %3, float noundef %6, i32 noundef %7)
  br label %.loopexit60

.loopexit60:                                      ; preds = %.loopexit, %13, %78
  ret void
}

declare noundef i32 @_ZN5ImGui11GetColorU32Ej(i32 noundef) local_unnamed_addr #6

declare noundef i32 @_Z18ImAlphaBlendColorsjj(i32 noundef, i32 noundef) local_unnamed_addr #6

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


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