; LLVM IR from yangfengzzz/DigitalVox4 :: editor/imgui_canvas.ll (ZN7ImGuiEx6Canvas15EnterLocalSpaceEv)

; 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.ImVec4 = type { float, float, float, float }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%"struct.ImGuiEx::Canvas" = type <{ i8, [3 x i8], %struct.ImVec2, %struct.ImVec2, %struct.ImRect, [4 x i8], ptr, i32, i32, i32, %"struct.ImGuiEx::CanvasView", %struct.ImRect, %struct.ImVec2, i32, float, %struct.ImVec2, %struct.ImVec2, [5 x %struct.ImVec2], %struct.ImVec2, [4 x i8] }>
%"struct.ImGuiEx::CanvasView" = type { %struct.ImVec2, float, float }
%struct.ImDrawList = type <{ %struct.ImVector, %struct.ImVector.0, %struct.ImVector.1, i32, i32, ptr, ptr, ptr, ptr, %struct.ImVector.2, %struct.ImVector.3, %struct.ImVector.4, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, float, [4 x i8] }>
%struct.ImVector = type { i32, i32, ptr }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImDrawCmdHeader = type <{ %struct.ImVec4, ptr, i32, [4 x i8] }>
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.5 }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImDrawCmd = type { %struct.ImVec4, ptr, i32, i32, i32, ptr, ptr }
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, [641 x i32], [512 x i8], %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, [20 x float], i32, i32, [641 x %struct.ImGuiKeyData], i8, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i16], [5 x i16], [5 x i8], [5 x i8], [5 x i8], [5 x float], [5 x float], [5 x float], [20 x float], [20 x float], float, i8, i8, i8, i16, %struct.ImVector.0 }
%struct.ImGuiKeyData = type { i8, float, 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 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: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7ImGuiEx6Canvas15EnterLocalSpaceEv(ptr noundef nonnull align 8 dereferenceable(172) %0) #4 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %struct.ImVec2, align 4
  %4 = alloca %struct.ImVec4, align 4
  %5 = alloca %struct.ImVec2, align 4
  %6 = alloca %struct.ImVec2, align 4
  %7 = alloca ptr, align 8
  %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 = alloca i32, align 4
  %13 = alloca %struct.ImVec2, align 4
  %14 = alloca %struct.ImVec2, align 4
  %15 = alloca %struct.ImRect, align 4
  %16 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %17 = load ptr, ptr %2, align 8
  %18 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  %19 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 2
  %20 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 3
  %21 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %20)
  store <2 x float> %21, ptr %3, align 4
  call void @_ZN5ImGui12PushClipRectERK6ImVec2S2_b(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %3, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #8
  %22 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 6
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds %struct.ImDrawList, ptr %23, i32 0, i32 9
  %25 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN8ImVectorI6ImVec4E4backEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 4 %25, i64 16, i1 false), !tbaa.struct !17
  call void @_ZN5ImGui11PopClipRectEv()
  %26 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 6
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = getelementptr inbounds %struct.ImDrawList, ptr %27, i32 0, i32 0
  %29 = call noundef zeroext i1 @_ZNK8ImVectorI9ImDrawCmdE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %28)
  br i1 %29, label %38, label %30

30:                                               ; preds = %1
  %31 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 6
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct.ImDrawList, ptr %32, i32 0, i32 0
  %34 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN8ImVectorI9ImDrawCmdE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %33)
  %35 = getelementptr inbounds %struct.ImDrawCmd, ptr %34, i32 0, i32 4
  %36 = load i32, ptr %35, align 8, !tbaa !19
  %37 = icmp ugt i32 %36, 0
  br i1 %37, label %45, label %38

38:                                               ; preds = %30, %1
  %39 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 6
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = getelementptr inbounds %struct.ImDrawList, ptr %40, i32 0, i32 13
  %42 = getelementptr inbounds %struct.ImDrawListSplitter, ptr %41, i32 0, i32 1
  %43 = load i32, ptr %42, align 4, !tbaa !22
  %44 = icmp sgt i32 %43, 1
  br i1 %44, label %45, label %48

45:                                               ; preds = %38, %30
  %46 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 6
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  call void @_ZN10ImDrawList10AddDrawCmdEv(ptr noundef nonnull align 8 dereferenceable(196) %47)
  br label %48

48:                                               ; preds = %45, %38
  %49 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 6
  %50 = load ptr, ptr %49, align 8, !tbaa !9
  %51 = getelementptr inbounds %struct.ImDrawList, ptr %50, i32 0, i32 0
  %52 = getelementptr inbounds %struct.ImVector, ptr %51, i32 0, i32 0
  %53 = load i32, ptr %52, align 8, !tbaa !33
  %54 = sub nsw i32 %53, 1
  %55 = call noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef %54, i32 noundef 0)
  %56 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 8
  store i32 %55, ptr %56, align 4, !tbaa !34
  %57 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 6
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  %59 = getelementptr inbounds %struct.ImDrawList, ptr %58, i32 0, i32 4
  %60 = load i32, ptr %59, align 4, !tbaa !35
  %61 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 6
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZL14ImVtxOffsetRefP10ImDrawList(ptr noundef %62)
  %64 = load i32, ptr %63, align 4, !tbaa !36
  %65 = add i32 %60, %64
  %66 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 9
  store i32 %65, ptr %66, align 8, !tbaa !37
  %67 = getelementptr inbounds %struct.ImVec4, ptr %4, i32 0, i32 0
  %68 = load float, ptr %67, align 4, !tbaa !38
  %69 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 12
  %70 = getelementptr inbounds %struct.ImVec2, ptr %69, i32 0, i32 0
  %71 = load float, ptr %70, align 4, !tbaa !39
  %72 = fsub float %68, %71
  %73 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 10
  %74 = getelementptr inbounds %"struct.ImGuiEx::CanvasView", ptr %73, i32 0, i32 2
  %75 = load float, ptr %74, align 4, !tbaa !40
  %76 = fmul float %72, %75
  %77 = getelementptr inbounds %struct.ImVec4, ptr %4, i32 0, i32 0
  store float %76, ptr %77, align 4, !tbaa !38
  %78 = getelementptr inbounds %struct.ImVec4, ptr %4, i32 0, i32 1
  %79 = load float, ptr %78, align 4, !tbaa !41
  %80 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 12
  %81 = getelementptr inbounds %struct.ImVec2, ptr %80, i32 0, i32 1
  %82 = load float, ptr %81, align 4, !tbaa !42
  %83 = fsub float %79, %82
  %84 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 10
  %85 = getelementptr inbounds %"struct.ImGuiEx::CanvasView", ptr %84, i32 0, i32 2
  %86 = load float, ptr %85, align 4, !tbaa !40
  %87 = fmul float %83, %86
  %88 = getelementptr inbounds %struct.ImVec4, ptr %4, i32 0, i32 1
  store float %87, ptr %88, align 4, !tbaa !41
  %89 = getelementptr inbounds %struct.ImVec4, ptr %4, i32 0, i32 2
  %90 = load float, ptr %89, align 4, !tbaa !43
  %91 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 12
  %92 = getelementptr inbounds %struct.ImVec2, ptr %91, i32 0, i32 0
  %93 = load float, ptr %92, align 4, !tbaa !39
  %94 = fsub float %90, %93
  %95 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 10
  %96 = getelementptr inbounds %"struct.ImGuiEx::CanvasView", ptr %95, i32 0, i32 2
  %97 = load float, ptr %96, align 4, !tbaa !40
  %98 = fmul float %94, %97
  %99 = getelementptr inbounds %struct.ImVec4, ptr %4, i32 0, i32 2
  store float %98, ptr %99, align 4, !tbaa !43
  %100 = getelementptr inbounds %struct.ImVec4, ptr %4, i32 0, i32 3
  %101 = load float, ptr %100, align 4, !tbaa !44
  %102 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 12
  %103 = getelementptr inbounds %struct.ImVec2, ptr %102, i32 0, i32 1
  %104 = load float, ptr %103, align 4, !tbaa !42
  %105 = fsub float %101, %104
  %106 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 10
  %107 = getelementptr inbounds %"struct.ImGuiEx::CanvasView", ptr %106, i32 0, i32 2
  %108 = load float, ptr %107, align 4, !tbaa !40
  %109 = fmul float %105, %108
  %110 = getelementptr inbounds %struct.ImVec4, ptr %4, i32 0, i32 3
  store float %109, ptr %110, align 4, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %111 = getelementptr inbounds %struct.ImVec4, ptr %4, i32 0, i32 0
  %112 = load float, ptr %111, align 4, !tbaa !38
  %113 = getelementptr inbounds %struct.ImVec4, ptr %4, i32 0, i32 1
  %114 = load float, ptr %113, align 4, !tbaa !41
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef %112, float noundef %114)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %115 = getelementptr inbounds %struct.ImVec4, ptr %4, i32 0, i32 2
  %116 = load float, ptr %115, align 4, !tbaa !43
  %117 = getelementptr inbounds %struct.ImVec4, ptr %4, i32 0, i32 3
  %118 = load float, ptr %117, align 4, !tbaa !44
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef %116, float noundef %118)
  call void @_ZN5ImGui12PushClipRectERK6ImVec2S2_b(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %6, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %119 = call noundef nonnull align 8 dereferenceable(14080) ptr @_ZN5ImGui5GetIOEv()
  store ptr %119, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %120 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 15
  %121 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 12
  %122 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %120, ptr noundef nonnull align 4 dereferenceable(8) %121)
  store <2 x float> %122, ptr %9, align 4
  %123 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 10
  %124 = getelementptr inbounds %"struct.ImGuiEx::CanvasView", ptr %123, i32 0, i32 2
  %125 = load float, ptr %124, align 4, !tbaa !40
  %126 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef %125)
  store <2 x float> %126, ptr %8, align 4
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.ImGuiIO, ptr %127, i32 0, i32 52
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %128, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !45
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %129 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 16
  %130 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 12
  %131 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %129, ptr noundef nonnull align 4 dereferenceable(8) %130)
  store <2 x float> %131, ptr %11, align 4
  %132 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 10
  %133 = getelementptr inbounds %"struct.ImGuiEx::CanvasView", ptr %132, i32 0, i32 2
  %134 = load float, ptr %133, align 4, !tbaa !40
  %135 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %134)
  store <2 x float> %135, ptr %10, align 4
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.ImGuiIO, ptr %136, i32 0, i32 65
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %137, ptr align 4 %10, i64 8, i1 false), !tbaa.struct !45
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !36
  br label %138

138:                                              ; preds = %158, %48
  %139 = load i32, ptr %12, align 4, !tbaa !36
  %140 = icmp slt i32 %139, 5
  br i1 %140, label %142, label %141

141:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %161

142:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %143 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 17
  %144 = load i32, ptr %12, align 4, !tbaa !36
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [5 x %struct.ImVec2], ptr %143, i64 0, i64 %145
  %147 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 12
  %148 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %146, ptr noundef nonnull align 4 dereferenceable(8) %147)
  store <2 x float> %148, ptr %14, align 4
  %149 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 10
  %150 = getelementptr inbounds %"struct.ImGuiEx::CanvasView", ptr %149, i32 0, i32 2
  %151 = load float, ptr %150, align 4, !tbaa !40
  %152 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef %151)
  store <2 x float> %152, ptr %13, align 4
  %153 = load ptr, ptr %7, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.ImGuiIO, ptr %153, i32 0, i32 66
  %155 = load i32, ptr %12, align 4, !tbaa !36
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [5 x %struct.ImVec2], ptr %154, i64 0, i64 %156
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %157, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !45
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %158

158:                                              ; preds = %142
  %159 = load i32, ptr %12, align 4, !tbaa !36
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %12, align 4, !tbaa !36
  br label %138, !llvm.loop !46

161:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  %162 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 10
  %163 = call { <2 x float>, <2 x float> } @_ZNK7ImGuiEx6Canvas12CalcViewRectERKNS_10CanvasViewE(ptr noundef nonnull align 8 dereferenceable(172) %17, ptr noundef nonnull align 4 dereferenceable(16) %162)
  %164 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 0
  %165 = extractvalue { <2 x float>, <2 x float> } %163, 0
  store <2 x float> %165, ptr %164, align 4
  %166 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 1
  %167 = extractvalue { <2 x float>, <2 x float> } %163, 1
  store <2 x float> %167, ptr %166, align 4
  %168 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %168, ptr align 4 %15, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %169 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 6
  %170 = load ptr, ptr %169, align 8, !tbaa !9
  %171 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZL16ImFringeScaleRefP10ImDrawList(ptr noundef %170)
  store ptr %171, ptr %16, align 8, !tbaa !5
  %172 = load ptr, ptr %16, align 8, !tbaa !5
  %173 = load float, ptr %172, align 4, !tbaa !18
  %174 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 14
  store float %173, ptr %174, align 8, !tbaa !48
  %175 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %17, i32 0, i32 10
  %176 = getelementptr inbounds %"struct.ImGuiEx::CanvasView", ptr %175, i32 0, i32 2
  %177 = load float, ptr %176, align 4, !tbaa !40
  %178 = load ptr, ptr %16, align 8, !tbaa !5
  %179 = load float, ptr %178, align 4, !tbaa !18
  %180 = fmul float %179, %177
  store float %180, ptr %178, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #8
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8), float noundef) #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)) #2

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK7ImGuiEx6Canvas12CalcViewRectERKNS_10CanvasViewE(ptr noundef nonnull align 8 dereferenceable(172), ptr noundef nonnull align 4 dereferenceable(16)) #4 align 2

declare noundef nonnull align 8 dereferenceable(14080) ptr @_ZN5ImGui5GetIOEv() #5

declare void @_ZN5ImGui12PushClipRectERK6ImVec2S2_b(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i1 noundef zeroext) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN8ImVectorI6ImVec4E4backEv(ptr noundef nonnull align 8 dereferenceable(16)) #6 align 2

declare void @_ZN5ImGui11PopClipRectEv() #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8ImVectorI9ImDrawCmdE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN8ImVectorI9ImDrawCmdE4backEv(ptr noundef nonnull align 8 dereferenceable(16)) #6 align 2

declare void @_ZN10ImDrawList10AddDrawCmdEv(ptr noundef nonnull align 8 dereferenceable(196)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef, i32 noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef nonnull align 4 dereferenceable(4) ptr @_ZL14ImVtxOffsetRefP10ImDrawList(ptr noundef) #7

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef nonnull align 4 dereferenceable(4) ptr @_ZL16ImFringeScaleRefP10ImDrawList(ptr noundef) #7

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 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"="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 = { "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 = { 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 #7 = { 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 #8 = { 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, !6, i64 40}
!10 = !{!"_ZTSN7ImGuiEx6CanvasE", !11, i64 0, !12, i64 4, !12, i64 12, !14, i64 20, !6, i64 40, !15, i64 48, !15, i64 52, !15, i64 56, !16, i64 60, !14, i64 76, !12, i64 92, !15, i64 100, !13, i64 104, !12, i64 108, !12, i64 116, !7, i64 124, !12, i64 164}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"_ZTS6ImRect", !12, i64 0, !12, i64 8}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSN7ImGuiEx10CanvasViewE", !12, i64 0, !13, i64 8, !13, i64 12}
!17 = !{i64 0, i64 4, !18, i64 4, i64 4, !18, i64 8, i64 4, !18, i64 12, i64 4, !18}
!18 = !{!13, !13, i64 0}
!19 = !{!20, !15, i64 32}
!20 = !{!"_ZTS9ImDrawCmd", !21, i64 0, !6, i64 16, !15, i64 24, !15, i64 28, !15, i64 32, !6, i64 40, !6, i64 48}
!21 = !{!"_ZTS6ImVec4", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!22 = !{!23, !15, i64 172}
!23 = !{!"_ZTS10ImDrawList", !24, i64 0, !25, i64 16, !26, i64 32, !15, i64 48, !15, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !27, i64 88, !28, i64 104, !29, i64 120, !30, i64 136, !31, i64 168, !13, i64 192}
!24 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !15, i64 0, !15, i64 4, !6, i64 8}
!25 = !{!"_ZTS8ImVectorItE", !15, i64 0, !15, i64 4, !6, i64 8}
!26 = !{!"_ZTS8ImVectorI10ImDrawVertE", !15, i64 0, !15, i64 4, !6, i64 8}
!27 = !{!"_ZTS8ImVectorI6ImVec4E", !15, i64 0, !15, i64 4, !6, i64 8}
!28 = !{!"_ZTS8ImVectorIPvE", !15, i64 0, !15, i64 4, !6, i64 8}
!29 = !{!"_ZTS8ImVectorI6ImVec2E", !15, i64 0, !15, i64 4, !6, i64 8}
!30 = !{!"_ZTS15ImDrawCmdHeader", !21, i64 0, !6, i64 16, !15, i64 24}
!31 = !{!"_ZTS18ImDrawListSplitter", !15, i64 0, !15, i64 4, !32, i64 8}
!32 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !15, i64 0, !15, i64 4, !6, i64 8}
!33 = !{!23, !15, i64 0}
!34 = !{!10, !15, i64 52}
!35 = !{!23, !15, i64 52}
!36 = !{!15, !15, i64 0}
!37 = !{!10, !15, i64 56}
!38 = !{!21, !13, i64 0}
!39 = !{!10, !13, i64 92}
!40 = !{!10, !13, i64 72}
!41 = !{!21, !13, i64 4}
!42 = !{!10, !13, i64 96}
!43 = !{!21, !13, i64 8}
!44 = !{!21, !13, i64 12}
!45 = !{i64 0, i64 4, !18, i64 4, i64 4, !18}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}
!48 = !{!10, !13, i64 104}


; 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: 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 #1

; 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: mustprogress uwtable
define dso_local void @_ZN7ImGuiEx6Canvas15EnterLocalSpaceEv(ptr noundef nonnull align 8 dereferenceable(172) %0) local_unnamed_addr #3 align 2 {
  %2 = alloca %struct.ImVec2, align 8
  %3 = alloca %struct.ImVec2, align 4
  %4 = alloca %struct.ImVec2, align 4
  %5 = alloca %struct.ImVec2, align 8
  %6 = alloca %struct.ImVec2, align 8
  %7 = alloca %struct.ImVec2, align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %9 = getelementptr inbounds i8, ptr %0, i64 12
  %10 = tail call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %9)
  store <2 x float> %10, ptr %2, align 8
  call void @_ZN5ImGui12PushClipRectERK6ImVec2S2_b(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %2, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  %11 = getelementptr inbounds i8, ptr %0, i64 40
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %12, i64 88
  %14 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN8ImVectorI6ImVec4E4backEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
  %.sroa.011.0.copyload = load float, ptr %14, align 4, !tbaa !16
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 4
  %.sroa.6.0.copyload = load float, ptr %.sroa.6.0..sroa_idx, align 4, !tbaa !16
  %.sroa.9.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  %.sroa.9.0.copyload = load float, ptr %.sroa.9.0..sroa_idx, align 4, !tbaa !16
  %.sroa.12.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 12
  %.sroa.12.0.copyload = load float, ptr %.sroa.12.0..sroa_idx, align 4, !tbaa !16
  call void @_ZN5ImGui11PopClipRectEv()
  %15 = load ptr, ptr %11, align 8, !tbaa !5
  %16 = call noundef zeroext i1 @_ZNK8ImVectorI9ImDrawCmdE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
  br i1 %16, label %22, label %17

17:                                               ; preds = %1
  %18 = load ptr, ptr %11, align 8, !tbaa !5
  %19 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN8ImVectorI9ImDrawCmdE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %18)
  %20 = getelementptr inbounds i8, ptr %19, i64 32
  %21 = load i32, ptr %20, align 8, !tbaa !17
  %.not = icmp eq i32 %21, 0
  br i1 %.not, label %22, label %._crit_edge

._crit_edge:                                      ; preds = %17
  %.pre = load ptr, ptr %11, align 8, !tbaa !5
  br label %27

22:                                               ; preds = %17, %1
  %23 = load ptr, ptr %11, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 172
  %25 = load i32, ptr %24, align 4, !tbaa !20
  %26 = icmp sgt i32 %25, 1
  br i1 %26, label %27, label %29

27:                                               ; preds = %._crit_edge, %22
  %28 = phi ptr [ %.pre, %._crit_edge ], [ %23, %22 ]
  call void @_ZN10ImDrawList10AddDrawCmdEv(ptr noundef nonnull align 8 dereferenceable(196) %28)
  %.pre19 = load ptr, ptr %11, align 8, !tbaa !5
  br label %29

29:                                               ; preds = %27, %22
  %30 = phi ptr [ %.pre19, %27 ], [ %23, %22 ]
  %31 = load i32, ptr %30, align 8, !tbaa !31
  %32 = add nsw i32 %31, -1
  %33 = call noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef %32, i32 noundef 0)
  %34 = getelementptr inbounds i8, ptr %0, i64 52
  store i32 %33, ptr %34, align 4, !tbaa !32
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 52
  %37 = load i32, ptr %36, align 4, !tbaa !33
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZL14ImVtxOffsetRefP10ImDrawList(ptr noundef %35)
  %39 = load i32, ptr %38, align 4, !tbaa !34
  %40 = add i32 %39, %37
  %41 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 %40, ptr %41, align 8, !tbaa !35
  %42 = getelementptr inbounds i8, ptr %0, i64 92
  %43 = load float, ptr %42, align 4, !tbaa !36
  %44 = fsub float %.sroa.011.0.copyload, %43
  %45 = getelementptr inbounds i8, ptr %0, i64 72
  %46 = load float, ptr %45, align 8, !tbaa !37
  %47 = fmul float %44, %46
  %48 = getelementptr inbounds i8, ptr %0, i64 96
  %49 = load float, ptr %48, align 8, !tbaa !38
  %50 = fsub float %.sroa.6.0.copyload, %49
  %51 = fmul float %46, %50
  %52 = fsub float %.sroa.9.0.copyload, %43
  %53 = fmul float %52, %46
  %54 = fsub float %.sroa.12.0.copyload, %49
  %55 = fmul float %46, %54
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef %47, float noundef %51)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef %53, float noundef %55)
  call void @_ZN5ImGui12PushClipRectERK6ImVec2S2_b(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  %56 = call noundef nonnull align 8 dereferenceable(14080) ptr @_ZN5ImGui5GetIOEv()
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %57 = getelementptr inbounds i8, ptr %0, i64 108
  %58 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %57, ptr noundef nonnull align 4 dereferenceable(8) %42)
  store <2 x float> %58, ptr %5, align 8
  %59 = load float, ptr %45, align 8, !tbaa !37
  %60 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef %59)
  %61 = getelementptr inbounds i8, ptr %56, i64 3316
  store <2 x float> %60, ptr %61, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %62 = getelementptr inbounds i8, ptr %0, i64 116
  %63 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %62, ptr noundef nonnull align 4 dereferenceable(8) %42)
  store <2 x float> %63, ptr %6, align 8
  %64 = load float, ptr %45, align 8, !tbaa !37
  %65 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef %64)
  %66 = getelementptr inbounds i8, ptr %56, i64 13692
  store <2 x float> %65, ptr %66, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %67 = getelementptr inbounds i8, ptr %0, i64 124
  %68 = getelementptr inbounds i8, ptr %56, i64 13700
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %69 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %67, ptr noundef nonnull align 4 dereferenceable(8) %42)
  store <2 x float> %69, ptr %7, align 8
  %70 = load float, ptr %45, align 8, !tbaa !37
  %71 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef %70)
  store <2 x float> %71, ptr %68, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %72 = getelementptr inbounds i8, ptr %0, i64 132
  %73 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %72, ptr noundef nonnull align 4 dereferenceable(8) %42)
  store <2 x float> %73, ptr %7, align 8
  %74 = load float, ptr %45, align 8, !tbaa !37
  %75 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef %74)
  %76 = getelementptr inbounds i8, ptr %56, i64 13708
  store <2 x float> %75, ptr %76, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %77 = getelementptr inbounds i8, ptr %0, i64 140
  %78 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %77, ptr noundef nonnull align 4 dereferenceable(8) %42)
  store <2 x float> %78, ptr %7, align 8
  %79 = load float, ptr %45, align 8, !tbaa !37
  %80 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef %79)
  %81 = getelementptr inbounds i8, ptr %56, i64 13716
  store <2 x float> %80, ptr %81, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %82 = getelementptr inbounds i8, ptr %0, i64 148
  %83 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %82, ptr noundef nonnull align 4 dereferenceable(8) %42)
  store <2 x float> %83, ptr %7, align 8
  %84 = load float, ptr %45, align 8, !tbaa !37
  %85 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef %84)
  %86 = getelementptr inbounds i8, ptr %56, i64 13724
  store <2 x float> %85, ptr %86, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %87 = getelementptr inbounds i8, ptr %0, i64 156
  %88 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %87, ptr noundef nonnull align 4 dereferenceable(8) %42)
  store <2 x float> %88, ptr %7, align 8
  %89 = load float, ptr %45, align 8, !tbaa !37
  %90 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef %89)
  %91 = getelementptr inbounds i8, ptr %56, i64 13732
  store <2 x float> %90, ptr %91, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %92 = getelementptr inbounds i8, ptr %0, i64 60
  %93 = call { <2 x float>, <2 x float> } @_ZNK7ImGuiEx6Canvas12CalcViewRectERKNS_10CanvasViewE(ptr noundef nonnull align 8 dereferenceable(172) %0, ptr noundef nonnull align 4 dereferenceable(16) %92)
  %94 = extractvalue { <2 x float>, <2 x float> } %93, 0
  %95 = extractvalue { <2 x float>, <2 x float> } %93, 1
  %96 = getelementptr inbounds i8, ptr %0, i64 76
  store <2 x float> %94, ptr %96, align 4
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 84
  store <2 x float> %95, ptr %.sroa.4.0..sroa_idx, align 4
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZL16ImFringeScaleRefP10ImDrawList(ptr noundef %97)
  %99 = load float, ptr %98, align 4, !tbaa !16
  %100 = getelementptr inbounds i8, ptr %0, i64 104
  store float %99, ptr %100, align 8, !tbaa !39
  %101 = load float, ptr %45, align 8, !tbaa !37
  %102 = fmul float %101, %99
  store float %102, ptr %98, align 4, !tbaa !16
  ret void
}

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

; 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 #1

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK7ImGuiEx6Canvas12CalcViewRectERKNS_10CanvasViewE(ptr noundef nonnull align 8 dereferenceable(172), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3 align 2

declare noundef nonnull align 8 dereferenceable(14080) ptr @_ZN5ImGui5GetIOEv() local_unnamed_addr #4

declare void @_ZN5ImGui12PushClipRectERK6ImVec2S2_b(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i1 noundef zeroext) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN8ImVectorI6ImVec4E4backEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

declare void @_ZN5ImGui11PopClipRectEv() local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8ImVectorI9ImDrawCmdE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN8ImVectorI9ImDrawCmdE4backEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

declare void @_ZN10ImDrawList10AddDrawCmdEv(ptr noundef nonnull align 8 dereferenceable(196)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef nonnull align 4 dereferenceable(4) ptr @_ZL14ImVtxOffsetRefP10ImDrawList(ptr noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef nonnull align 4 dereferenceable(4) ptr @_ZL16ImFringeScaleRefP10ImDrawList(ptr noundef) local_unnamed_addr #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { "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 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 #6 = { 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 #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, !13, i64 40}
!6 = !{!"_ZTSN7ImGuiEx6CanvasE", !7, i64 0, !10, i64 4, !10, i64 12, !12, i64 20, !13, i64 40, !14, i64 48, !14, i64 52, !14, i64 56, !15, i64 60, !12, i64 76, !10, i64 92, !14, i64 100, !11, i64 104, !10, i64 108, !10, i64 116, !8, i64 124, !10, i64 164}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS6ImVec2", !11, i64 0, !11, i64 4}
!11 = !{!"float", !8, i64 0}
!12 = !{!"_ZTS6ImRect", !10, i64 0, !10, i64 8}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"int", !8, i64 0}
!15 = !{!"_ZTSN7ImGuiEx10CanvasViewE", !10, i64 0, !11, i64 8, !11, i64 12}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !14, i64 32}
!18 = !{!"_ZTS9ImDrawCmd", !19, i64 0, !13, i64 16, !14, i64 24, !14, i64 28, !14, i64 32, !13, i64 40, !13, i64 48}
!19 = !{!"_ZTS6ImVec4", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!20 = !{!21, !14, i64 172}
!21 = !{!"_ZTS10ImDrawList", !22, i64 0, !23, i64 16, !24, i64 32, !14, i64 48, !14, i64 52, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !25, i64 88, !26, i64 104, !27, i64 120, !28, i64 136, !29, i64 168, !11, i64 192}
!22 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !14, i64 0, !14, i64 4, !13, i64 8}
!23 = !{!"_ZTS8ImVectorItE", !14, i64 0, !14, i64 4, !13, i64 8}
!24 = !{!"_ZTS8ImVectorI10ImDrawVertE", !14, i64 0, !14, i64 4, !13, i64 8}
!25 = !{!"_ZTS8ImVectorI6ImVec4E", !14, i64 0, !14, i64 4, !13, i64 8}
!26 = !{!"_ZTS8ImVectorIPvE", !14, i64 0, !14, i64 4, !13, i64 8}
!27 = !{!"_ZTS8ImVectorI6ImVec2E", !14, i64 0, !14, i64 4, !13, i64 8}
!28 = !{!"_ZTS15ImDrawCmdHeader", !19, i64 0, !13, i64 16, !14, i64 24}
!29 = !{!"_ZTS18ImDrawListSplitter", !14, i64 0, !14, i64 4, !30, i64 8}
!30 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !14, i64 0, !14, i64 4, !13, i64 8}
!31 = !{!21, !14, i64 0}
!32 = !{!6, !14, i64 52}
!33 = !{!21, !14, i64 52}
!34 = !{!14, !14, i64 0}
!35 = !{!6, !14, i64 56}
!36 = !{!6, !11, i64 92}
!37 = !{!6, !11, i64 72}
!38 = !{!6, !11, i64 96}
!39 = !{!6, !11, i64 104}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass