; LLVM IR from hadryansalles/Luz :: deps/imgui/ImGuizmo.ll (ZN8ImGuizmo8DrawGridEPKfS1_S1_f)

; 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.ImGuizmo::Context" = type { ptr, i32, %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, %"struct.ImGuizmo::vec_t", i8, i8, i8, %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", float, float, %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", float, [3 x i8], [3 x i8], [3 x float], %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", i32, [2 x i32], i8, %"struct.ImGuizmo::matrix_t", i32, float, float, float, float, float, float, float, i8, i32, i32, i32, i8, float }
%struct.ImVec2 = type { float, float }
%"struct.ImGuizmo::vec_t" = type { float, float, float, float }
%"struct.ImGuizmo::matrix_t" = type { %union.anon }
%union.anon = type { [4 x [4 x float]] }

@_ZN8ImGuizmoL8gContextE = external hidden global %"struct.ImGuizmo::Context", align 8

; 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 { <2 x float>, <2 x float> } @_ZN8ImGuizmo8makeVectEffff(float noundef, float noundef, float noundef, float noundef) #1

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

; 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 uwtable
declare dso_local void @_ZNK8ImGuizmo8matrix_tmlERKS0_(ptr dead_on_unwind noalias writable sret(%"struct.ImGuizmo::matrix_t") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8ImGuizmo20ComputeFrustumPlanesEPNS_5vec_tEPKf(ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #1

; Function Attrs: mustprogress uwtable
declare hidden <2 x float> @_ZN8ImGuizmoL10worldToPosERKNS_5vec_tERKNS_8matrix_tE6ImVec2S6_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(64), <2 x float>, <2 x float>) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8ImGuizmo8DrawGridEPKfS1_S1_f(ptr noundef %0, ptr noundef %1, ptr noundef %2, float noundef %3) #4 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca %"struct.ImGuizmo::matrix_t", align 4
  %10 = alloca [6 x %"struct.ImGuizmo::vec_t"], align 16
  %11 = alloca %"struct.ImGuizmo::matrix_t", align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"struct.ImGuizmo::vec_t", align 4
  %16 = alloca %"struct.ImGuizmo::vec_t", align 4
  %17 = alloca i8, align 1
  %18 = alloca i32, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca i32, align 4
  %26 = alloca float, align 4
  %27 = alloca %struct.ImVec2, align 4
  %28 = alloca %struct.ImVec2, align 4
  %29 = alloca %struct.ImVec2, align 4
  %30 = alloca %struct.ImVec2, align 4
  %31 = alloca %struct.ImVec2, align 4
  %32 = alloca %struct.ImVec2, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store float %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #7
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK8ImGuizmo8matrix_tmlERKS0_(ptr dead_on_unwind writable sret(%"struct.ImGuizmo::matrix_t") align 4 %9, ptr noundef nonnull align 4 dereferenceable(64) %33, ptr noundef nonnull align 4 dereferenceable(64) %34)
  call void @llvm.lifetime.start.p0(i64 96, ptr %10) #7
  %35 = getelementptr inbounds [6 x %"struct.ImGuizmo::vec_t"], ptr %10, i64 0, i64 0
  %36 = getelementptr inbounds %"struct.ImGuizmo::matrix_t", ptr %9, i32 0, i32 0
  %37 = getelementptr inbounds [16 x float], ptr %36, i64 0, i64 0
  call void @_ZN8ImGuizmo20ComputeFrustumPlanesEPNS_5vec_tEPKf(ptr noundef %35, ptr noundef %37)
  call void @llvm.lifetime.start.p0(i64 64, ptr %11) #7
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK8ImGuizmo8matrix_tmlERKS0_(ptr dead_on_unwind writable sret(%"struct.ImGuizmo::matrix_t") align 4 %11, ptr noundef nonnull align 4 dereferenceable(64) %38, ptr noundef nonnull align 4 dereferenceable(64) %9)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %39 = load float, ptr %8, align 4, !tbaa !9
  %40 = fneg float %39
  store float %40, ptr %12, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %216, %4
  %42 = load float, ptr %12, align 4, !tbaa !9
  %43 = load float, ptr %8, align 4, !tbaa !9
  %44 = fcmp ole float %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %219

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !11
  br label %47

47:                                               ; preds = %212, %46
  %48 = load i32, ptr %14, align 4, !tbaa !11
  %49 = icmp slt i32 %48, 2
  br i1 %49, label %51, label %50

50:                                               ; preds = %47
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %215

51:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  %52 = load i32, ptr %14, align 4, !tbaa !11
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %57

54:                                               ; preds = %51
  %55 = load float, ptr %8, align 4, !tbaa !9
  %56 = fneg float %55
  br label %59

57:                                               ; preds = %51
  %58 = load float, ptr %12, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %57, %54
  %60 = phi float [ %56, %54 ], [ %58, %57 ]
  %61 = load i32, ptr %14, align 4, !tbaa !11
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %65

63:                                               ; preds = %59
  %64 = load float, ptr %12, align 4, !tbaa !9
  br label %68

65:                                               ; preds = %59
  %66 = load float, ptr %8, align 4, !tbaa !9
  %67 = fneg float %66
  br label %68

68:                                               ; preds = %65, %63
  %69 = phi float [ %64, %63 ], [ %67, %65 ]
  %70 = call { <2 x float>, <2 x float> } @_ZN8ImGuizmo8makeVectEffff(float noundef %60, float noundef 0.000000e+00, float noundef %69, float noundef 0.000000e+00)
  %71 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 0
  %72 = extractvalue { <2 x float>, <2 x float> } %70, 0
  store <2 x float> %72, ptr %71, align 4
  %73 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 1
  %74 = extractvalue { <2 x float>, <2 x float> } %70, 1
  store <2 x float> %74, ptr %73, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #7
  %75 = load i32, ptr %14, align 4, !tbaa !11
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %79

77:                                               ; preds = %68
  %78 = load float, ptr %8, align 4, !tbaa !9
  br label %81

79:                                               ; preds = %68
  %80 = load float, ptr %12, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %79, %77
  %82 = phi float [ %78, %77 ], [ %80, %79 ]
  %83 = load i32, ptr %14, align 4, !tbaa !11
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %87

85:                                               ; preds = %81
  %86 = load float, ptr %12, align 4, !tbaa !9
  br label %89

87:                                               ; preds = %81
  %88 = load float, ptr %8, align 4, !tbaa !9
  br label %89

89:                                               ; preds = %87, %85
  %90 = phi float [ %86, %85 ], [ %88, %87 ]
  %91 = call { <2 x float>, <2 x float> } @_ZN8ImGuizmo8makeVectEffff(float noundef %82, float noundef 0.000000e+00, float noundef %90, float noundef 0.000000e+00)
  %92 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 0
  %93 = extractvalue { <2 x float>, <2 x float> } %91, 0
  store <2 x float> %93, ptr %92, align 4
  %94 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 1
  %95 = extractvalue { <2 x float>, <2 x float> } %91, 1
  store <2 x float> %95, ptr %94, align 4
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #7
  store i8 1, ptr %17, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !11
  br label %96

96:                                               ; preds = %152, %89
  %97 = load i32, ptr %18, align 4, !tbaa !11
  %98 = icmp slt i32 %97, 6
  br i1 %98, label %100, label %99

99:                                               ; preds = %96
  store i32 8, ptr %13, align 4
  br label %155

100:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %101 = load i32, ptr %18, align 4, !tbaa !11
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [6 x %"struct.ImGuizmo::vec_t"], ptr %10, i64 0, i64 %102
  %104 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(16) %103)
  store float %104, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %105 = load i32, ptr %18, align 4, !tbaa !11
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [6 x %"struct.ImGuizmo::vec_t"], ptr %10, i64 0, i64 %106
  %108 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(16) %107)
  store float %108, ptr %20, align 4, !tbaa !9
  %109 = load float, ptr %19, align 4, !tbaa !9
  %110 = fcmp olt float %109, 0.000000e+00
  br i1 %110, label %111, label %115

111:                                              ; preds = %100
  %112 = load float, ptr %20, align 4, !tbaa !9
  %113 = fcmp olt float %112, 0.000000e+00
  br i1 %113, label %114, label %115

114:                                              ; preds = %111
  store i8 0, ptr %17, align 1, !tbaa !13
  store i32 8, ptr %13, align 4
  br label %149

115:                                              ; preds = %111, %100
  %116 = load float, ptr %19, align 4, !tbaa !9
  %117 = fcmp ogt float %116, 0.000000e+00
  br i1 %117, label %118, label %122

118:                                              ; preds = %115
  %119 = load float, ptr %20, align 4, !tbaa !9
  %120 = fcmp ogt float %119, 0.000000e+00
  br i1 %120, label %121, label %122

121:                                              ; preds = %118
  store i32 10, ptr %13, align 4
  br label %149

122:                                              ; preds = %118, %115
  %123 = load float, ptr %19, align 4, !tbaa !9
  %124 = fcmp olt float %123, 0.000000e+00
  br i1 %124, label %125, label %135

125:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %126 = load float, ptr %19, align 4, !tbaa !9
  %127 = load float, ptr %20, align 4, !tbaa !9
  %128 = fsub float %126, %127
  %129 = call float @llvm.fabs.f32(float %128)
  store float %129, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %130 = load float, ptr %19, align 4, !tbaa !9
  %131 = call float @llvm.fabs.f32(float %130)
  %132 = load float, ptr %21, align 4, !tbaa !9
  %133 = fdiv float %131, %132
  store float %133, ptr %22, align 4, !tbaa !9
  %134 = load float, ptr %22, align 4, !tbaa !9
  call void @_ZN8ImGuizmo5vec_t4LerpERKS0_f(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(16) %16, float noundef %134)
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %135

135:                                              ; preds = %125, %122
  %136 = load float, ptr %20, align 4, !tbaa !9
  %137 = fcmp olt float %136, 0.000000e+00
  br i1 %137, label %138, label %148

138:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %139 = load float, ptr %20, align 4, !tbaa !9
  %140 = load float, ptr %19, align 4, !tbaa !9
  %141 = fsub float %139, %140
  %142 = call float @llvm.fabs.f32(float %141)
  store float %142, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %143 = load float, ptr %20, align 4, !tbaa !9
  %144 = call float @llvm.fabs.f32(float %143)
  %145 = load float, ptr %23, align 4, !tbaa !9
  %146 = fdiv float %144, %145
  store float %146, ptr %24, align 4, !tbaa !9
  %147 = load float, ptr %24, align 4, !tbaa !9
  call void @_ZN8ImGuizmo5vec_t4LerpERKS0_f(ptr noundef nonnull align 4 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(16) %15, float noundef %147)
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %148

148:                                              ; preds = %138, %135
  store i32 0, ptr %13, align 4
  br label %149

149:                                              ; preds = %148, %121, %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  %150 = load i32, ptr %13, align 4
  switch i32 %150, label %155 [
    i32 0, label %151
    i32 10, label %152
  ]

151:                                              ; preds = %149
  br label %152

152:                                              ; preds = %151, %149
  %153 = load i32, ptr %18, align 4, !tbaa !11
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %18, align 4, !tbaa !11
  br label %96, !llvm.loop !15

155:                                              ; preds = %149, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %156

156:                                              ; preds = %155
  %157 = load i8, ptr %17, align 1, !tbaa !13, !range !17, !noundef !18
  %158 = trunc i8 %157 to i1
  br i1 %158, label %159, label %211

159:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 -8355712, ptr %25, align 4, !tbaa !11
  %160 = load float, ptr %12, align 4, !tbaa !9
  %161 = call float @llvm.fabs.f32(float %160)
  %162 = call float @fmodf(float noundef %161, float noundef 1.000000e+01) #7
  %163 = fcmp olt float %162, 0x3E80000000000000
  br i1 %163, label %164, label %165

164:                                              ; preds = %159
  br label %167

165:                                              ; preds = %159
  %166 = load i32, ptr %25, align 4, !tbaa !11
  br label %167

167:                                              ; preds = %165, %164
  %168 = phi i32 [ -7303024, %164 ], [ %166, %165 ]
  store i32 %168, ptr %25, align 4, !tbaa !11
  %169 = load float, ptr %12, align 4, !tbaa !9
  %170 = call float @llvm.fabs.f32(float %169)
  %171 = fcmp olt float %170, 0x3E80000000000000
  br i1 %171, label %172, label %173

172:                                              ; preds = %167
  br label %175

173:                                              ; preds = %167
  %174 = load i32, ptr %25, align 4, !tbaa !11
  br label %175

175:                                              ; preds = %173, %172
  %176 = phi i32 [ -12566464, %172 ], [ %174, %173 ]
  store i32 %176, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store float 1.000000e+00, ptr %26, align 4, !tbaa !9
  %177 = load float, ptr %12, align 4, !tbaa !9
  %178 = call float @llvm.fabs.f32(float %177)
  %179 = call float @fmodf(float noundef %178, float noundef 1.000000e+01) #7
  %180 = fcmp olt float %179, 0x3E80000000000000
  br i1 %180, label %181, label %182

181:                                              ; preds = %175
  br label %184

182:                                              ; preds = %175
  %183 = load float, ptr %26, align 4, !tbaa !9
  br label %184

184:                                              ; preds = %182, %181
  %185 = phi float [ 1.500000e+00, %181 ], [ %183, %182 ]
  store float %185, ptr %26, align 4, !tbaa !9
  %186 = load float, ptr %12, align 4, !tbaa !9
  %187 = call float @llvm.fabs.f32(float %186)
  %188 = fcmp olt float %187, 0x3E80000000000000
  br i1 %188, label %189, label %190

189:                                              ; preds = %184
  br label %192

190:                                              ; preds = %184
  %191 = load float, ptr %26, align 4, !tbaa !9
  br label %192

192:                                              ; preds = %190, %189
  %193 = phi float [ 0x4002666660000000, %189 ], [ %191, %190 ]
  store float %193, ptr %26, align 4, !tbaa !9
  %194 = load ptr, ptr @_ZN8ImGuizmoL8gContextE, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %195 = load float, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 49), align 4, !tbaa !26
  %196 = load float, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 50), align 8, !tbaa !27
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %28, float noundef %195, float noundef %196)
  %197 = load float, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 51), align 4, !tbaa !28
  %198 = load float, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 52), align 8, !tbaa !29
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %29, float noundef %197, float noundef %198)
  %199 = load <2 x float>, ptr %28, align 4
  %200 = load <2 x float>, ptr %29, align 4
  %201 = call <2 x float> @_ZN8ImGuizmoL10worldToPosERKNS_5vec_tERKNS_8matrix_tE6ImVec2S6_(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(64) %11, <2 x float> %199, <2 x float> %200)
  store <2 x float> %201, ptr %27, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %202 = load float, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 49), align 4, !tbaa !26
  %203 = load float, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 50), align 8, !tbaa !27
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %31, float noundef %202, float noundef %203)
  %204 = load float, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 51), align 4, !tbaa !28
  %205 = load float, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 52), align 8, !tbaa !29
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %32, float noundef %204, float noundef %205)
  %206 = load <2 x float>, ptr %31, align 4
  %207 = load <2 x float>, ptr %32, align 4
  %208 = call <2 x float> @_ZN8ImGuizmoL10worldToPosERKNS_5vec_tERKNS_8matrix_tE6ImVec2S6_(ptr noundef nonnull align 4 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(64) %11, <2 x float> %206, <2 x float> %207)
  store <2 x float> %208, ptr %30, align 4
  %209 = load i32, ptr %25, align 4, !tbaa !11
  %210 = load float, ptr %26, align 4, !tbaa !9
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196) %194, ptr noundef nonnull align 4 dereferenceable(8) %27, ptr noundef nonnull align 4 dereferenceable(8) %30, i32 noundef %209, float noundef %210)
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %211

211:                                              ; preds = %192, %156
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  br label %212

212:                                              ; preds = %211
  %213 = load i32, ptr %14, align 4, !tbaa !11
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %14, align 4, !tbaa !11
  br label %47, !llvm.loop !30

215:                                              ; preds = %50
  br label %216

216:                                              ; preds = %215
  %217 = load float, ptr %12, align 4, !tbaa !9
  %218 = fadd float %217, 1.000000e+00
  store float %218, ptr %12, align 4, !tbaa !9
  br label %41, !llvm.loop !31

219:                                              ; preds = %45
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #7
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ImGuizmo5vec_t4LerpERKS0_f(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16), float noundef) #1 align 2

; Function Attrs: nounwind
declare float @fmodf(float noundef, float noundef) #5

declare void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(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) #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 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !6, i64 0}
!20 = !{!"_ZTSN8ImGuizmo7ContextE", !6, i64 0, !21, i64 8, !22, i64 12, !22, i64 76, !22, i64 140, !22, i64 204, !22, i64 268, !22, i64 332, !22, i64 396, !22, i64 460, !23, i64 524, !23, i64 540, !23, i64 556, !23, i64 572, !23, i64 588, !23, i64 604, !23, i64 620, !10, i64 636, !24, i64 640, !24, i64 648, !24, i64 656, !10, i64 664, !23, i64 668, !14, i64 684, !14, i64 685, !14, i64 686, !23, i64 688, !23, i64 704, !23, i64 720, !23, i64 736, !23, i64 752, !10, i64 768, !10, i64 772, !23, i64 776, !23, i64 792, !23, i64 808, !10, i64 824, !7, i64 828, !7, i64 831, !7, i64 836, !23, i64 848, !23, i64 864, !23, i64 880, !23, i64 896, !12, i64 912, !7, i64 916, !14, i64 924, !22, i64 928, !12, i64 992, !10, i64 996, !10, i64 1000, !10, i64 1004, !10, i64 1008, !10, i64 1012, !10, i64 1016, !10, i64 1020, !14, i64 1024, !12, i64 1028, !12, i64 1032, !25, i64 1036, !14, i64 1040, !10, i64 1044}
!21 = !{!"_ZTSN8ImGuizmo4MODEE", !7, i64 0}
!22 = !{!"_ZTSN8ImGuizmo8matrix_tE", !7, i64 0}
!23 = !{!"_ZTSN8ImGuizmo5vec_tE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!24 = !{!"_ZTS6ImVec2", !10, i64 0, !10, i64 4}
!25 = !{!"_ZTSN8ImGuizmo9OPERATIONE", !7, i64 0}
!26 = !{!20, !10, i64 996}
!27 = !{!20, !10, i64 1000}
!28 = !{!20, !10, i64 1004}
!29 = !{!20, !10, i64 1008}
!30 = distinct !{!30, !16}
!31 = distinct !{!31, !16}


; 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.ImGuizmo::Context" = type { ptr, i32, %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, %"struct.ImGuizmo::vec_t", i8, i8, i8, %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", float, float, %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", float, [3 x i8], [3 x i8], [3 x float], %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", i32, [2 x i32], i8, %"struct.ImGuizmo::matrix_t", i32, float, float, float, float, float, float, float, i8, i32, i32, i32, i8, float }
%struct.ImVec2 = type { float, float }
%"struct.ImGuizmo::vec_t" = type { float, float, float, float }
%"struct.ImGuizmo::matrix_t" = type { %union.anon }
%union.anon = type { [4 x [4 x float]] }

@_ZN8ImGuizmoL8gContextE = external hidden local_unnamed_addr global %"struct.ImGuizmo::Context", align 8

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

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

; 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 uwtable
declare dso_local void @_ZNK8ImGuizmo8matrix_tmlERKS0_(ptr dead_on_unwind noalias writable sret(%"struct.ImGuizmo::matrix_t") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8ImGuizmo20ComputeFrustumPlanesEPNS_5vec_tEPKf(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8ImGuizmo8DrawGridEPKfS1_S1_f(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, float noundef %3) local_unnamed_addr #4 {
  %5 = alloca %"struct.ImGuizmo::matrix_t", align 4
  %6 = alloca [6 x %"struct.ImGuizmo::vec_t"], align 16
  %7 = alloca %"struct.ImGuizmo::matrix_t", align 4
  %8 = alloca %"struct.ImGuizmo::vec_t", align 8
  %9 = alloca %"struct.ImGuizmo::vec_t", align 8
  %10 = alloca %struct.ImVec2, align 8
  %11 = alloca %struct.ImVec2, align 8
  %12 = alloca %struct.ImVec2, align 8
  %13 = alloca %struct.ImVec2, align 8
  %14 = alloca %struct.ImVec2, align 8
  %15 = alloca %struct.ImVec2, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #7
  call void @_ZNK8ImGuizmo8matrix_tmlERKS0_(ptr dead_on_unwind nonnull writable sret(%"struct.ImGuizmo::matrix_t") align 4 %5, ptr noundef nonnull align 4 dereferenceable(64) %0, ptr noundef nonnull align 4 dereferenceable(64) %1)
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %6) #7
  call void @_ZN8ImGuizmo20ComputeFrustumPlanesEPNS_5vec_tEPKf(ptr noundef nonnull %6, ptr noundef nonnull %5)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #7
  call void @_ZNK8ImGuizmo8matrix_tmlERKS0_(ptr dead_on_unwind nonnull writable sret(%"struct.ImGuizmo::matrix_t") align 4 %7, ptr noundef nonnull align 4 dereferenceable(64) %2, ptr noundef nonnull align 4 dereferenceable(64) %5)
  %16 = fneg float %3
  %17 = fcmp ult float %3, 0.000000e+00
  br i1 %17, label %._crit_edge, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %4
  %18 = getelementptr inbounds i8, ptr %8, i64 8
  %19 = getelementptr inbounds i8, ptr %9, i64 8
  %20 = getelementptr inbounds i8, ptr %6, i64 16
  %21 = getelementptr inbounds i8, ptr %6, i64 32
  %22 = getelementptr inbounds i8, ptr %6, i64 48
  %23 = getelementptr inbounds i8, ptr %6, i64 64
  %24 = getelementptr inbounds i8, ptr %6, i64 80
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %27
  %.069 = phi float [ %16, %.preheader.lr.ph ], [ %28, %27 ]
  %25 = call float @llvm.fabs.f32(float %.069)
  %26 = fcmp olt float %25, 0x3E80000000000000
  br label %30

._crit_edge:                                      ; preds = %27, %4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #7
  ret void

27:                                               ; preds = %.thread65
  %28 = fadd float %.069, 1.000000e+00
  %29 = fcmp ugt float %28, %3
  br i1 %29, label %._crit_edge, label %.preheader, !llvm.loop !5

30:                                               ; preds = %.preheader, %.thread65
  %.not = phi i1 [ true, %.preheader ], [ false, %.thread65 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %31 = select i1 %.not, float %.069, float %16
  %32 = select i1 %.not, float %16, float %.069
  %33 = call { <2 x float>, <2 x float> } @_ZN8ImGuizmo8makeVectEffff(float noundef %31, float noundef 0.000000e+00, float noundef %32, float noundef 0.000000e+00)
  %34 = extractvalue { <2 x float>, <2 x float> } %33, 0
  store <2 x float> %34, ptr %8, align 8
  %35 = extractvalue { <2 x float>, <2 x float> } %33, 1
  store <2 x float> %35, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  %36 = select i1 %.not, float %.069, float %3
  %37 = select i1 %.not, float %3, float %.069
  %38 = call { <2 x float>, <2 x float> } @_ZN8ImGuizmo8makeVectEffff(float noundef %36, float noundef 0.000000e+00, float noundef %37, float noundef 0.000000e+00)
  %39 = extractvalue { <2 x float>, <2 x float> } %38, 0
  store <2 x float> %39, ptr %9, align 8
  %40 = extractvalue { <2 x float>, <2 x float> } %38, 1
  store <2 x float> %40, ptr %19, align 8
  %41 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %6)
  %42 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %6)
  %43 = fcmp olt float %41, 0.000000e+00
  %44 = fcmp olt float %42, 0.000000e+00
  %or.cond = and i1 %43, %44
  br i1 %or.cond, label %.thread65, label %45

45:                                               ; preds = %30
  %46 = fcmp ogt float %41, 0.000000e+00
  %47 = fcmp ogt float %42, 0.000000e+00
  %or.cond3 = and i1 %46, %47
  br i1 %or.cond3, label %58, label %48

48:                                               ; preds = %45
  br i1 %43, label %49, label %53

49:                                               ; preds = %48
  %50 = fsub float %41, %42
  %51 = fdiv float %41, %50
  %52 = call float @llvm.fabs.f32(float %51)
  call void @_ZN8ImGuizmo5vec_t4LerpERKS0_f(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef %52)
  br label %53

53:                                               ; preds = %49, %48
  br i1 %44, label %54, label %58

54:                                               ; preds = %53
  %55 = fsub float %42, %41
  %56 = fdiv float %42, %55
  %57 = call float @llvm.fabs.f32(float %56)
  call void @_ZN8ImGuizmo5vec_t4LerpERKS0_f(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %8, float noundef %57)
  br label %58

58:                                               ; preds = %45, %54, %53
  %59 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %20)
  %60 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %20)
  %61 = fcmp olt float %59, 0.000000e+00
  %62 = fcmp olt float %60, 0.000000e+00
  %or.cond.1 = and i1 %61, %62
  br i1 %or.cond.1, label %.thread65, label %63

63:                                               ; preds = %58
  %64 = fcmp ogt float %59, 0.000000e+00
  %65 = fcmp ogt float %60, 0.000000e+00
  %or.cond3.1 = and i1 %64, %65
  br i1 %or.cond3.1, label %76, label %66

66:                                               ; preds = %63
  br i1 %61, label %67, label %71

67:                                               ; preds = %66
  %68 = fsub float %59, %60
  %69 = fdiv float %59, %68
  %70 = call float @llvm.fabs.f32(float %69)
  call void @_ZN8ImGuizmo5vec_t4LerpERKS0_f(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef %70)
  br label %71

71:                                               ; preds = %67, %66
  br i1 %62, label %72, label %76

72:                                               ; preds = %71
  %73 = fsub float %60, %59
  %74 = fdiv float %60, %73
  %75 = call float @llvm.fabs.f32(float %74)
  call void @_ZN8ImGuizmo5vec_t4LerpERKS0_f(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %8, float noundef %75)
  br label %76

76:                                               ; preds = %72, %71, %63
  %77 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %21)
  %78 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %21)
  %79 = fcmp olt float %77, 0.000000e+00
  %80 = fcmp olt float %78, 0.000000e+00
  %or.cond.2 = and i1 %79, %80
  br i1 %or.cond.2, label %.thread65, label %81

81:                                               ; preds = %76
  %82 = fcmp ogt float %77, 0.000000e+00
  %83 = fcmp ogt float %78, 0.000000e+00
  %or.cond3.2 = and i1 %82, %83
  br i1 %or.cond3.2, label %94, label %84

84:                                               ; preds = %81
  br i1 %79, label %85, label %89

85:                                               ; preds = %84
  %86 = fsub float %77, %78
  %87 = fdiv float %77, %86
  %88 = call float @llvm.fabs.f32(float %87)
  call void @_ZN8ImGuizmo5vec_t4LerpERKS0_f(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef %88)
  br label %89

89:                                               ; preds = %85, %84
  br i1 %80, label %90, label %94

90:                                               ; preds = %89
  %91 = fsub float %78, %77
  %92 = fdiv float %78, %91
  %93 = call float @llvm.fabs.f32(float %92)
  call void @_ZN8ImGuizmo5vec_t4LerpERKS0_f(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %8, float noundef %93)
  br label %94

94:                                               ; preds = %90, %89, %81
  %95 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %22)
  %96 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %22)
  %97 = fcmp olt float %95, 0.000000e+00
  %98 = fcmp olt float %96, 0.000000e+00
  %or.cond.3 = and i1 %97, %98
  br i1 %or.cond.3, label %.thread65, label %99

99:                                               ; preds = %94
  %100 = fcmp ogt float %95, 0.000000e+00
  %101 = fcmp ogt float %96, 0.000000e+00
  %or.cond3.3 = and i1 %100, %101
  br i1 %or.cond3.3, label %112, label %102

102:                                              ; preds = %99
  br i1 %97, label %103, label %107

103:                                              ; preds = %102
  %104 = fsub float %95, %96
  %105 = fdiv float %95, %104
  %106 = call float @llvm.fabs.f32(float %105)
  call void @_ZN8ImGuizmo5vec_t4LerpERKS0_f(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef %106)
  br label %107

107:                                              ; preds = %103, %102
  br i1 %98, label %108, label %112

108:                                              ; preds = %107
  %109 = fsub float %96, %95
  %110 = fdiv float %96, %109
  %111 = call float @llvm.fabs.f32(float %110)
  call void @_ZN8ImGuizmo5vec_t4LerpERKS0_f(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %8, float noundef %111)
  br label %112

112:                                              ; preds = %108, %107, %99
  %113 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %23)
  %114 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %23)
  %115 = fcmp olt float %113, 0.000000e+00
  %116 = fcmp olt float %114, 0.000000e+00
  %or.cond.4 = and i1 %115, %116
  br i1 %or.cond.4, label %.thread65, label %117

117:                                              ; preds = %112
  %118 = fcmp ogt float %113, 0.000000e+00
  %119 = fcmp ogt float %114, 0.000000e+00
  %or.cond3.4 = and i1 %118, %119
  br i1 %or.cond3.4, label %130, label %120

120:                                              ; preds = %117
  br i1 %115, label %121, label %125

121:                                              ; preds = %120
  %122 = fsub float %113, %114
  %123 = fdiv float %113, %122
  %124 = call float @llvm.fabs.f32(float %123)
  call void @_ZN8ImGuizmo5vec_t4LerpERKS0_f(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef %124)
  br label %125

125:                                              ; preds = %121, %120
  br i1 %116, label %126, label %130

126:                                              ; preds = %125
  %127 = fsub float %114, %113
  %128 = fdiv float %114, %127
  %129 = call float @llvm.fabs.f32(float %128)
  call void @_ZN8ImGuizmo5vec_t4LerpERKS0_f(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %8, float noundef %129)
  br label %130

130:                                              ; preds = %126, %125, %117
  %131 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %24)
  %132 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %24)
  %133 = fcmp olt float %131, 0.000000e+00
  %134 = fcmp olt float %132, 0.000000e+00
  %or.cond.5 = and i1 %133, %134
  br i1 %or.cond.5, label %.thread65, label %135

135:                                              ; preds = %130
  %136 = fcmp ogt float %131, 0.000000e+00
  %137 = fcmp ogt float %132, 0.000000e+00
  %or.cond3.5 = and i1 %136, %137
  br i1 %or.cond3.5, label %148, label %138

138:                                              ; preds = %135
  br i1 %133, label %139, label %143

139:                                              ; preds = %138
  %140 = fsub float %131, %132
  %141 = fdiv float %131, %140
  %142 = call float @llvm.fabs.f32(float %141)
  call void @_ZN8ImGuizmo5vec_t4LerpERKS0_f(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef %142)
  br label %143

143:                                              ; preds = %139, %138
  br i1 %134, label %144, label %148

144:                                              ; preds = %143
  %145 = fsub float %132, %131
  %146 = fdiv float %132, %145
  %147 = call float @llvm.fabs.f32(float %146)
  call void @_ZN8ImGuizmo5vec_t4LerpERKS0_f(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %8, float noundef %147)
  br label %148

148:                                              ; preds = %144, %143, %135
  %149 = call float @fmodf(float noundef %25, float noundef 1.000000e+01) #7
  %150 = fcmp olt float %149, 0x3E80000000000000
  %151 = select i1 %150, i32 -7303024, i32 -8355712
  %152 = select i1 %26, i32 -12566464, i32 %151
  %153 = call float @fmodf(float noundef %25, float noundef 1.000000e+01) #7
  %154 = fcmp olt float %153, 0x3E80000000000000
  %155 = select i1 %154, float 1.500000e+00, float 1.000000e+00
  %156 = select i1 %26, float 0x4002666660000000, float %155
  %157 = load ptr, ptr @_ZN8ImGuizmoL8gContextE, align 8, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %158 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 996), align 4, !tbaa !20
  %159 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1000), align 8, !tbaa !21
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %158, float noundef %159)
  %160 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1004), align 4, !tbaa !22
  %161 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1008), align 8, !tbaa !23
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef %160, float noundef %161)
  %162 = load <2 x float>, ptr %11, align 8
  %163 = load <2 x float>, ptr %12, align 8
  %164 = call <2 x float> @_ZN8ImGuizmoL10worldToPosERKNS_5vec_tERKNS_8matrix_tE6ImVec2S6_(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(64) %7, <2 x float> %162, <2 x float> %163)
  store <2 x float> %164, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %165 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 996), align 4, !tbaa !20
  %166 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1000), align 8, !tbaa !21
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef %165, float noundef %166)
  %167 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1004), align 4, !tbaa !22
  %168 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1008), align 8, !tbaa !23
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %15, float noundef %167, float noundef %168)
  %169 = load <2 x float>, ptr %14, align 8
  %170 = load <2 x float>, ptr %15, align 8
  %171 = call <2 x float> @_ZN8ImGuizmoL10worldToPosERKNS_5vec_tERKNS_8matrix_tE6ImVec2S6_(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(64) %7, <2 x float> %169, <2 x float> %170)
  store <2 x float> %171, ptr %13, align 8
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196) %157, ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %13, i32 noundef %152, float noundef %156)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %.thread65

.thread65:                                        ; preds = %30, %58, %76, %94, %112, %130, %148
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br i1 %.not, label %30, label %27, !llvm.loop !24
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ImGuizmo5vec_t4LerpERKS0_f(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16), float noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @fmodf(float noundef, float noundef) local_unnamed_addr #5

declare void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(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) 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 = { 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 #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 = { mustprogress nofree nounwind willreturn memory(write) "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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !9, i64 0}
!8 = !{!"_ZTSN8ImGuizmo7ContextE", !9, i64 0, !12, i64 8, !13, i64 12, !13, i64 76, !13, i64 140, !13, i64 204, !13, i64 268, !13, i64 332, !13, i64 396, !13, i64 460, !14, i64 524, !14, i64 540, !14, i64 556, !14, i64 572, !14, i64 588, !14, i64 604, !14, i64 620, !15, i64 636, !16, i64 640, !16, i64 648, !16, i64 656, !15, i64 664, !14, i64 668, !17, i64 684, !17, i64 685, !17, i64 686, !14, i64 688, !14, i64 704, !14, i64 720, !14, i64 736, !14, i64 752, !15, i64 768, !15, i64 772, !14, i64 776, !14, i64 792, !14, i64 808, !15, i64 824, !10, i64 828, !10, i64 831, !10, i64 836, !14, i64 848, !14, i64 864, !14, i64 880, !14, i64 896, !18, i64 912, !10, i64 916, !17, i64 924, !13, i64 928, !18, i64 992, !15, i64 996, !15, i64 1000, !15, i64 1004, !15, i64 1008, !15, i64 1012, !15, i64 1016, !15, i64 1020, !17, i64 1024, !18, i64 1028, !18, i64 1032, !19, i64 1036, !17, i64 1040, !15, i64 1044}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSN8ImGuizmo4MODEE", !10, i64 0}
!13 = !{!"_ZTSN8ImGuizmo8matrix_tE", !10, i64 0}
!14 = !{!"_ZTSN8ImGuizmo5vec_tE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!15 = !{!"float", !10, i64 0}
!16 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!17 = !{!"bool", !10, i64 0}
!18 = !{!"int", !10, i64 0}
!19 = !{!"_ZTSN8ImGuizmo9OPERATIONE", !10, i64 0}
!20 = !{!8, !15, i64 996}
!21 = !{!8, !15, i64 1000}
!22 = !{!8, !15, i64 1004}
!23 = !{!8, !15, i64 1008}
!24 = distinct !{!24, !6}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass