; LLVM IR from hadryansalles/Luz :: deps/imgui/imgui_draw.ll (ZN10ImDrawList8PathRectERK6ImVec2S2_fi)

; 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: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMinIfET_S0_S0_(float noundef, float noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ImDrawList8PathRectERK6ImVec2S2_fi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %2, float noundef %3, i32 noundef %4) #4 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca %struct.ImVec2, align 4
  %12 = alloca %struct.ImVec2, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca %struct.ImVec2, align 4
  %18 = alloca %struct.ImVec2, align 4
  %19 = alloca %struct.ImVec2, align 4
  %20 = alloca %struct.ImVec2, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store float %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !11
  %21 = load ptr, ptr %6, align 8
  %22 = load float, ptr %9, align 4, !tbaa !9
  %23 = fcmp oge float %22, 5.000000e-01
  br i1 %23, label %24, label %71

24:                                               ; preds = %5
  %25 = load i32, ptr %10, align 4, !tbaa !11
  %26 = call noundef i32 @_ZL18FixRectCornerFlagsi(i32 noundef %25)
  store i32 %26, ptr %10, align 4, !tbaa !11
  %27 = load float, ptr %9, align 4, !tbaa !9
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.ImVec2, ptr %28, i32 0, i32 0
  %30 = load float, ptr %29, align 4, !tbaa !13
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 0
  %33 = load float, ptr %32, align 4, !tbaa !13
  %34 = fsub float %30, %33
  %35 = call float @llvm.fabs.f32(float %34)
  %36 = load i32, ptr %10, align 4, !tbaa !11
  %37 = and i32 %36, 48
  %38 = icmp eq i32 %37, 48
  br i1 %38, label %43, label %39

39:                                               ; preds = %24
  %40 = load i32, ptr %10, align 4, !tbaa !11
  %41 = and i32 %40, 192
  %42 = icmp eq i32 %41, 192
  br label %43

43:                                               ; preds = %39, %24
  %44 = phi i1 [ true, %24 ], [ %42, %39 ]
  %45 = zext i1 %44 to i64
  %46 = select i1 %44, float 5.000000e-01, float 1.000000e+00
  %47 = call float @llvm.fmuladd.f32(float %35, float %46, float -1.000000e+00)
  %48 = call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %27, float noundef %47)
  store float %48, ptr %9, align 4, !tbaa !9
  %49 = load float, ptr %9, align 4, !tbaa !9
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ImVec2, ptr %50, i32 0, i32 1
  %52 = load float, ptr %51, align 4, !tbaa !15
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ImVec2, ptr %53, i32 0, i32 1
  %55 = load float, ptr %54, align 4, !tbaa !15
  %56 = fsub float %52, %55
  %57 = call float @llvm.fabs.f32(float %56)
  %58 = load i32, ptr %10, align 4, !tbaa !11
  %59 = and i32 %58, 80
  %60 = icmp eq i32 %59, 80
  br i1 %60, label %65, label %61

61:                                               ; preds = %43
  %62 = load i32, ptr %10, align 4, !tbaa !11
  %63 = and i32 %62, 160
  %64 = icmp eq i32 %63, 160
  br label %65

65:                                               ; preds = %61, %43
  %66 = phi i1 [ true, %43 ], [ %64, %61 ]
  %67 = zext i1 %66 to i64
  %68 = select i1 %66, float 5.000000e-01, float 1.000000e+00
  %69 = call float @llvm.fmuladd.f32(float %57, float %68, float -1.000000e+00)
  %70 = call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %49, float noundef %69)
  store float %70, ptr %9, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %65, %5
  %72 = load float, ptr %9, align 4, !tbaa !9
  %73 = fcmp olt float %72, 5.000000e-01
  br i1 %73, label %78, label %74

74:                                               ; preds = %71
  %75 = load i32, ptr %10, align 4, !tbaa !11
  %76 = and i32 %75, 496
  %77 = icmp eq i32 %76, 256
  br i1 %77, label %78, label %93

78:                                               ; preds = %74, %71
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10ImDrawList10PathLineToERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(196) %21, ptr noundef nonnull align 4 dereferenceable(8) %79)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.ImVec2, ptr %80, i32 0, i32 0
  %82 = load float, ptr %81, align 4, !tbaa !13
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.ImVec2, ptr %83, i32 0, i32 1
  %85 = load float, ptr %84, align 4, !tbaa !15
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %82, float noundef %85)
  call void @_ZN10ImDrawList10PathLineToERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(196) %21, ptr noundef nonnull align 4 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN10ImDrawList10PathLineToERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(196) %21, ptr noundef nonnull align 4 dereferenceable(8) %86)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ImVec2, ptr %87, i32 0, i32 0
  %89 = load float, ptr %88, align 4, !tbaa !13
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.ImVec2, ptr %90, i32 0, i32 1
  %92 = load float, ptr %91, align 4, !tbaa !15
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef %89, float noundef %92)
  call void @_ZN10ImDrawList10PathLineToERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(196) %21, ptr noundef nonnull align 4 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %170

93:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %94 = load i32, ptr %10, align 4, !tbaa !11
  %95 = and i32 %94, 16
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %99

97:                                               ; preds = %93
  %98 = load float, ptr %9, align 4, !tbaa !9
  br label %100

99:                                               ; preds = %93
  br label %100

100:                                              ; preds = %99, %97
  %101 = phi float [ %98, %97 ], [ 0.000000e+00, %99 ]
  store float %101, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %102 = load i32, ptr %10, align 4, !tbaa !11
  %103 = and i32 %102, 32
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %107

105:                                              ; preds = %100
  %106 = load float, ptr %9, align 4, !tbaa !9
  br label %108

107:                                              ; preds = %100
  br label %108

108:                                              ; preds = %107, %105
  %109 = phi float [ %106, %105 ], [ 0.000000e+00, %107 ]
  store float %109, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %110 = load i32, ptr %10, align 4, !tbaa !11
  %111 = and i32 %110, 128
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %115

113:                                              ; preds = %108
  %114 = load float, ptr %9, align 4, !tbaa !9
  br label %116

115:                                              ; preds = %108
  br label %116

116:                                              ; preds = %115, %113
  %117 = phi float [ %114, %113 ], [ 0.000000e+00, %115 ]
  store float %117, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %118 = load i32, ptr %10, align 4, !tbaa !11
  %119 = and i32 %118, 64
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %123

121:                                              ; preds = %116
  %122 = load float, ptr %9, align 4, !tbaa !9
  br label %124

123:                                              ; preds = %116
  br label %124

124:                                              ; preds = %123, %121
  %125 = phi float [ %122, %121 ], [ 0.000000e+00, %123 ]
  store float %125, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %126 = load ptr, ptr %7, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.ImVec2, ptr %126, i32 0, i32 0
  %128 = load float, ptr %127, align 4, !tbaa !13
  %129 = load float, ptr %13, align 4, !tbaa !9
  %130 = fadd float %128, %129
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.ImVec2, ptr %131, i32 0, i32 1
  %133 = load float, ptr %132, align 4, !tbaa !15
  %134 = load float, ptr %13, align 4, !tbaa !9
  %135 = fadd float %133, %134
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %17, float noundef %130, float noundef %135)
  %136 = load float, ptr %13, align 4, !tbaa !9
  call void @_ZN10ImDrawList13PathArcToFastERK6ImVec2fii(ptr noundef nonnull align 8 dereferenceable(196) %21, ptr noundef nonnull align 4 dereferenceable(8) %17, float noundef %136, i32 noundef 6, i32 noundef 9)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.ImVec2, ptr %137, i32 0, i32 0
  %139 = load float, ptr %138, align 4, !tbaa !13
  %140 = load float, ptr %14, align 4, !tbaa !9
  %141 = fsub float %139, %140
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.ImVec2, ptr %142, i32 0, i32 1
  %144 = load float, ptr %143, align 4, !tbaa !15
  %145 = load float, ptr %14, align 4, !tbaa !9
  %146 = fadd float %144, %145
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %18, float noundef %141, float noundef %146)
  %147 = load float, ptr %14, align 4, !tbaa !9
  call void @_ZN10ImDrawList13PathArcToFastERK6ImVec2fii(ptr noundef nonnull align 8 dereferenceable(196) %21, ptr noundef nonnull align 4 dereferenceable(8) %18, float noundef %147, i32 noundef 9, i32 noundef 12)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.ImVec2, ptr %148, i32 0, i32 0
  %150 = load float, ptr %149, align 4, !tbaa !13
  %151 = load float, ptr %15, align 4, !tbaa !9
  %152 = fsub float %150, %151
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.ImVec2, ptr %153, i32 0, i32 1
  %155 = load float, ptr %154, align 4, !tbaa !15
  %156 = load float, ptr %15, align 4, !tbaa !9
  %157 = fsub float %155, %156
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef %152, float noundef %157)
  %158 = load float, ptr %15, align 4, !tbaa !9
  call void @_ZN10ImDrawList13PathArcToFastERK6ImVec2fii(ptr noundef nonnull align 8 dereferenceable(196) %21, ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef %158, i32 noundef 0, i32 noundef 3)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.ImVec2, ptr %159, i32 0, i32 0
  %161 = load float, ptr %160, align 4, !tbaa !13
  %162 = load float, ptr %16, align 4, !tbaa !9
  %163 = fadd float %161, %162
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.ImVec2, ptr %164, i32 0, i32 1
  %166 = load float, ptr %165, align 4, !tbaa !15
  %167 = load float, ptr %16, align 4, !tbaa !9
  %168 = fsub float %166, %167
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %20, float noundef %163, float noundef %168)
  %169 = load float, ptr %16, align 4, !tbaa !9
  call void @_ZN10ImDrawList13PathArcToFastERK6ImVec2fii(ptr noundef nonnull align 8 dereferenceable(196) %21, ptr noundef nonnull align 4 dereferenceable(8) %20, float noundef %169, i32 noundef 3, i32 noundef 6)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %170

170:                                              ; preds = %124, %78
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL18FixRectCornerFlagsi(i32 noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10ImDrawList10PathLineToERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8)) #5 align 2

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 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { inlinehint 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 #6 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTS6ImVec2", !10, i64 0, !10, i64 4}
!15 = !{!14, !10, i64 4}


; 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 nounwind uwtable
declare hidden noundef float @_ZL5ImMinIfET_S0_S0_(float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ImDrawList8PathRectERK6ImVec2S2_fi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %2, float noundef %3, i32 noundef %4) local_unnamed_addr #4 align 2 {
  %6 = alloca %struct.ImVec2, align 4
  %7 = alloca %struct.ImVec2, align 4
  %8 = alloca %struct.ImVec2, align 4
  %9 = alloca %struct.ImVec2, align 4
  %10 = alloca %struct.ImVec2, align 4
  %11 = alloca %struct.ImVec2, align 4
  %12 = fcmp ult float %3, 5.000000e-01
  br i1 %12, label %41, label %13

13:                                               ; preds = %5
  %14 = tail call noundef i32 @_ZL18FixRectCornerFlagsi(i32 noundef %4)
  %15 = load float, ptr %2, align 4, !tbaa !5
  %16 = load float, ptr %1, align 4, !tbaa !5
  %17 = fsub float %15, %16
  %18 = tail call float @llvm.fabs.f32(float %17)
  %19 = and i32 %14, 48
  %20 = icmp eq i32 %19, 48
  %21 = and i32 %14, 192
  %22 = icmp eq i32 %21, 192
  %23 = or i1 %20, %22
  %24 = select i1 %23, float 5.000000e-01, float 1.000000e+00
  %25 = tail call float @llvm.fmuladd.f32(float %18, float %24, float -1.000000e+00)
  %26 = tail call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %3, float noundef %25)
  %27 = getelementptr inbounds i8, ptr %2, i64 4
  %28 = load float, ptr %27, align 4, !tbaa !10
  %29 = getelementptr inbounds i8, ptr %1, i64 4
  %30 = load float, ptr %29, align 4, !tbaa !10
  %31 = fsub float %28, %30
  %32 = tail call float @llvm.fabs.f32(float %31)
  %33 = and i32 %14, 80
  %34 = icmp eq i32 %33, 80
  %35 = and i32 %14, 160
  %36 = icmp eq i32 %35, 160
  %37 = or i1 %34, %36
  %38 = select i1 %37, float 5.000000e-01, float 1.000000e+00
  %39 = tail call float @llvm.fmuladd.f32(float %32, float %38, float -1.000000e+00)
  %40 = tail call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %26, float noundef %39)
  br label %41

41:                                               ; preds = %13, %5
  %.048 = phi i32 [ %14, %13 ], [ %4, %5 ]
  %.0 = phi float [ %40, %13 ], [ %3, %5 ]
  %42 = fcmp olt float %.0, 5.000000e-01
  %43 = and i32 %.048, 496
  %44 = icmp eq i32 %43, 256
  %or.cond = or i1 %42, %44
  br i1 %or.cond, label %45, label %52

45:                                               ; preds = %41
  tail call void @_ZN10ImDrawList10PathLineToERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %46 = load float, ptr %2, align 4, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %1, i64 4
  %48 = load float, ptr %47, align 4, !tbaa !10
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef %46, float noundef %48)
  call void @_ZN10ImDrawList10PathLineToERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZN10ImDrawList10PathLineToERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %49 = load float, ptr %1, align 4, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %2, i64 4
  %51 = load float, ptr %50, align 4, !tbaa !10
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef %49, float noundef %51)
  call void @_ZN10ImDrawList10PathLineToERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %79

52:                                               ; preds = %41
  %53 = and i32 %.048, 16
  %.not = icmp eq i32 %53, 0
  %54 = select i1 %.not, float 0.000000e+00, float %.0
  %55 = and i32 %.048, 32
  %.not50 = icmp eq i32 %55, 0
  %56 = select i1 %.not50, float 0.000000e+00, float %.0
  %57 = and i32 %.048, 128
  %.not51 = icmp eq i32 %57, 0
  %58 = select i1 %.not51, float 0.000000e+00, float %.0
  %59 = and i32 %.048, 64
  %.not52 = icmp eq i32 %59, 0
  %60 = select i1 %.not52, float 0.000000e+00, float %.0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %61 = load float, ptr %1, align 4, !tbaa !5
  %62 = fadd float %54, %61
  %63 = getelementptr inbounds i8, ptr %1, i64 4
  %64 = load float, ptr %63, align 4, !tbaa !10
  %65 = fadd float %54, %64
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef %62, float noundef %65)
  call void @_ZN10ImDrawList13PathArcToFastERK6ImVec2fii(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef %54, i32 noundef 6, i32 noundef 9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %66 = load float, ptr %2, align 4, !tbaa !5
  %67 = fsub float %66, %56
  %68 = load float, ptr %63, align 4, !tbaa !10
  %69 = fadd float %56, %68
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef %67, float noundef %69)
  call void @_ZN10ImDrawList13PathArcToFastERK6ImVec2fii(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef %56, i32 noundef 9, i32 noundef 12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %70 = load float, ptr %2, align 4, !tbaa !5
  %71 = fsub float %70, %58
  %72 = getelementptr inbounds i8, ptr %2, i64 4
  %73 = load float, ptr %72, align 4, !tbaa !10
  %74 = fsub float %73, %58
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %71, float noundef %74)
  call void @_ZN10ImDrawList13PathArcToFastERK6ImVec2fii(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %58, i32 noundef 0, i32 noundef 3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %75 = load float, ptr %1, align 4, !tbaa !5
  %76 = fadd float %60, %75
  %77 = load float, ptr %72, align 4, !tbaa !10
  %78 = fsub float %77, %60
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %76, float noundef %78)
  call void @_ZN10ImDrawList13PathArcToFastERK6ImVec2fii(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %60, i32 noundef 3, i32 noundef 6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %79

79:                                               ; preds = %52, %45
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL18FixRectCornerFlagsi(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10ImDrawList10PathLineToERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #5 align 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 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { inlinehint 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 #6 = { 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 0}
!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 4}


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