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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8ImGuizmo8matrix_t12RotationAxisERKNS_5vec_tEf(ptr noundef nonnull align 4 dereferenceable(64) %0, ptr noundef nonnull align 4 dereferenceable(16) %1, float noundef %2) #4 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"struct.ImGuizmo::vec_t", align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store float %2, ptr %6, align 4, !tbaa !9
  %22 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = call noundef float @_ZNK8ImGuizmo5vec_t8LengthSqEv(ptr noundef nonnull align 4 dereferenceable(16) %23)
  store float %24, ptr %7, align 4, !tbaa !9
  %25 = load float, ptr %7, align 4, !tbaa !9
  %26 = fcmp olt float %25, 0x3E80000000000000
  br i1 %26, label %27, label %28

27:                                               ; preds = %3
  call void @_ZN8ImGuizmo8matrix_t13SetToIdentityEv(ptr noundef nonnull align 4 dereferenceable(64) %22)
  store i32 1, ptr %8, align 4
  br label %170

28:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = load float, ptr %7, align 4, !tbaa !9
  %31 = call float @sqrtf(float noundef %30) #7
  %32 = fdiv float 1.000000e+00, %31
  %33 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16) %29, float noundef %32)
  %34 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %9, i32 0, i32 0
  %35 = extractvalue { <2 x float>, <2 x float> } %33, 0
  store <2 x float> %35, ptr %34, align 4
  %36 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %9, i32 0, i32 1
  %37 = extractvalue { <2 x float>, <2 x float> } %33, 1
  store <2 x float> %37, ptr %36, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %38 = load float, ptr %6, align 4, !tbaa !9
  %39 = call float @sinf(float noundef %38) #7
  store float %39, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %40 = load float, ptr %6, align 4, !tbaa !9
  %41 = call float @cosf(float noundef %40) #7
  store float %41, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %42 = load float, ptr %11, align 4, !tbaa !9
  %43 = fsub float 1.000000e+00, %42
  store float %43, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %44 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %9, i32 0, i32 0
  %45 = load float, ptr %44, align 4, !tbaa !11
  %46 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %9, i32 0, i32 0
  %47 = load float, ptr %46, align 4, !tbaa !11
  %48 = fmul float %45, %47
  %49 = load float, ptr %12, align 4, !tbaa !9
  %50 = load float, ptr %11, align 4, !tbaa !9
  %51 = call float @llvm.fmuladd.f32(float %48, float %49, float %50)
  store float %51, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %52 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %9, i32 0, i32 1
  %53 = load float, ptr %52, align 4, !tbaa !13
  %54 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %9, i32 0, i32 1
  %55 = load float, ptr %54, align 4, !tbaa !13
  %56 = fmul float %53, %55
  %57 = load float, ptr %12, align 4, !tbaa !9
  %58 = load float, ptr %11, align 4, !tbaa !9
  %59 = call float @llvm.fmuladd.f32(float %56, float %57, float %58)
  store float %59, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %60 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %9, i32 0, i32 2
  %61 = load float, ptr %60, align 4, !tbaa !14
  %62 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %9, i32 0, i32 2
  %63 = load float, ptr %62, align 4, !tbaa !14
  %64 = fmul float %61, %63
  %65 = load float, ptr %12, align 4, !tbaa !9
  %66 = load float, ptr %11, align 4, !tbaa !9
  %67 = call float @llvm.fmuladd.f32(float %64, float %65, float %66)
  store float %67, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %68 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %9, i32 0, i32 0
  %69 = load float, ptr %68, align 4, !tbaa !11
  %70 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %9, i32 0, i32 1
  %71 = load float, ptr %70, align 4, !tbaa !13
  %72 = fmul float %69, %71
  %73 = load float, ptr %12, align 4, !tbaa !9
  %74 = fmul float %72, %73
  store float %74, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %75 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %9, i32 0, i32 1
  %76 = load float, ptr %75, align 4, !tbaa !13
  %77 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %9, i32 0, i32 2
  %78 = load float, ptr %77, align 4, !tbaa !14
  %79 = fmul float %76, %78
  %80 = load float, ptr %12, align 4, !tbaa !9
  %81 = fmul float %79, %80
  store float %81, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %82 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %9, i32 0, i32 2
  %83 = load float, ptr %82, align 4, !tbaa !14
  %84 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %9, i32 0, i32 0
  %85 = load float, ptr %84, align 4, !tbaa !11
  %86 = fmul float %83, %85
  %87 = load float, ptr %12, align 4, !tbaa !9
  %88 = fmul float %86, %87
  store float %88, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %89 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %9, i32 0, i32 0
  %90 = load float, ptr %89, align 4, !tbaa !11
  %91 = load float, ptr %10, align 4, !tbaa !9
  %92 = fmul float %90, %91
  store float %92, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %93 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %9, i32 0, i32 1
  %94 = load float, ptr %93, align 4, !tbaa !13
  %95 = load float, ptr %10, align 4, !tbaa !9
  %96 = fmul float %94, %95
  store float %96, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %97 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %9, i32 0, i32 2
  %98 = load float, ptr %97, align 4, !tbaa !14
  %99 = load float, ptr %10, align 4, !tbaa !9
  %100 = fmul float %98, %99
  store float %100, ptr %21, align 4, !tbaa !9
  %101 = load float, ptr %13, align 4, !tbaa !9
  %102 = getelementptr inbounds %"struct.ImGuizmo::matrix_t", ptr %22, i32 0, i32 0
  %103 = getelementptr inbounds [4 x [4 x float]], ptr %102, i64 0, i64 0
  %104 = getelementptr inbounds [4 x float], ptr %103, i64 0, i64 0
  store float %101, ptr %104, align 4, !tbaa !15
  %105 = load float, ptr %16, align 4, !tbaa !9
  %106 = load float, ptr %21, align 4, !tbaa !9
  %107 = fadd float %105, %106
  %108 = getelementptr inbounds %"struct.ImGuizmo::matrix_t", ptr %22, i32 0, i32 0
  %109 = getelementptr inbounds [4 x [4 x float]], ptr %108, i64 0, i64 0
  %110 = getelementptr inbounds [4 x float], ptr %109, i64 0, i64 1
  store float %107, ptr %110, align 4, !tbaa !15
  %111 = load float, ptr %18, align 4, !tbaa !9
  %112 = load float, ptr %20, align 4, !tbaa !9
  %113 = fsub float %111, %112
  %114 = getelementptr inbounds %"struct.ImGuizmo::matrix_t", ptr %22, i32 0, i32 0
  %115 = getelementptr inbounds [4 x [4 x float]], ptr %114, i64 0, i64 0
  %116 = getelementptr inbounds [4 x float], ptr %115, i64 0, i64 2
  store float %113, ptr %116, align 4, !tbaa !15
  %117 = getelementptr inbounds %"struct.ImGuizmo::matrix_t", ptr %22, i32 0, i32 0
  %118 = getelementptr inbounds [4 x [4 x float]], ptr %117, i64 0, i64 0
  %119 = getelementptr inbounds [4 x float], ptr %118, i64 0, i64 3
  store float 0.000000e+00, ptr %119, align 4, !tbaa !15
  %120 = load float, ptr %16, align 4, !tbaa !9
  %121 = load float, ptr %21, align 4, !tbaa !9
  %122 = fsub float %120, %121
  %123 = getelementptr inbounds %"struct.ImGuizmo::matrix_t", ptr %22, i32 0, i32 0
  %124 = getelementptr inbounds [4 x [4 x float]], ptr %123, i64 0, i64 1
  %125 = getelementptr inbounds [4 x float], ptr %124, i64 0, i64 0
  store float %122, ptr %125, align 4, !tbaa !15
  %126 = load float, ptr %14, align 4, !tbaa !9
  %127 = getelementptr inbounds %"struct.ImGuizmo::matrix_t", ptr %22, i32 0, i32 0
  %128 = getelementptr inbounds [4 x [4 x float]], ptr %127, i64 0, i64 1
  %129 = getelementptr inbounds [4 x float], ptr %128, i64 0, i64 1
  store float %126, ptr %129, align 4, !tbaa !15
  %130 = load float, ptr %17, align 4, !tbaa !9
  %131 = load float, ptr %19, align 4, !tbaa !9
  %132 = fadd float %130, %131
  %133 = getelementptr inbounds %"struct.ImGuizmo::matrix_t", ptr %22, i32 0, i32 0
  %134 = getelementptr inbounds [4 x [4 x float]], ptr %133, i64 0, i64 1
  %135 = getelementptr inbounds [4 x float], ptr %134, i64 0, i64 2
  store float %132, ptr %135, align 4, !tbaa !15
  %136 = getelementptr inbounds %"struct.ImGuizmo::matrix_t", ptr %22, i32 0, i32 0
  %137 = getelementptr inbounds [4 x [4 x float]], ptr %136, i64 0, i64 1
  %138 = getelementptr inbounds [4 x float], ptr %137, i64 0, i64 3
  store float 0.000000e+00, ptr %138, align 4, !tbaa !15
  %139 = load float, ptr %18, align 4, !tbaa !9
  %140 = load float, ptr %20, align 4, !tbaa !9
  %141 = fadd float %139, %140
  %142 = getelementptr inbounds %"struct.ImGuizmo::matrix_t", ptr %22, i32 0, i32 0
  %143 = getelementptr inbounds [4 x [4 x float]], ptr %142, i64 0, i64 2
  %144 = getelementptr inbounds [4 x float], ptr %143, i64 0, i64 0
  store float %141, ptr %144, align 4, !tbaa !15
  %145 = load float, ptr %17, align 4, !tbaa !9
  %146 = load float, ptr %19, align 4, !tbaa !9
  %147 = fsub float %145, %146
  %148 = getelementptr inbounds %"struct.ImGuizmo::matrix_t", ptr %22, i32 0, i32 0
  %149 = getelementptr inbounds [4 x [4 x float]], ptr %148, i64 0, i64 2
  %150 = getelementptr inbounds [4 x float], ptr %149, i64 0, i64 1
  store float %147, ptr %150, align 4, !tbaa !15
  %151 = load float, ptr %15, align 4, !tbaa !9
  %152 = getelementptr inbounds %"struct.ImGuizmo::matrix_t", ptr %22, i32 0, i32 0
  %153 = getelementptr inbounds [4 x [4 x float]], ptr %152, i64 0, i64 2
  %154 = getelementptr inbounds [4 x float], ptr %153, i64 0, i64 2
  store float %151, ptr %154, align 4, !tbaa !15
  %155 = getelementptr inbounds %"struct.ImGuizmo::matrix_t", ptr %22, i32 0, i32 0
  %156 = getelementptr inbounds [4 x [4 x float]], ptr %155, i64 0, i64 2
  %157 = getelementptr inbounds [4 x float], ptr %156, i64 0, i64 3
  store float 0.000000e+00, ptr %157, align 4, !tbaa !15
  %158 = getelementptr inbounds %"struct.ImGuizmo::matrix_t", ptr %22, i32 0, i32 0
  %159 = getelementptr inbounds [4 x [4 x float]], ptr %158, i64 0, i64 3
  %160 = getelementptr inbounds [4 x float], ptr %159, i64 0, i64 0
  store float 0.000000e+00, ptr %160, align 4, !tbaa !15
  %161 = getelementptr inbounds %"struct.ImGuizmo::matrix_t", ptr %22, i32 0, i32 0
  %162 = getelementptr inbounds [4 x [4 x float]], ptr %161, i64 0, i64 3
  %163 = getelementptr inbounds [4 x float], ptr %162, i64 0, i64 1
  store float 0.000000e+00, ptr %163, align 4, !tbaa !15
  %164 = getelementptr inbounds %"struct.ImGuizmo::matrix_t", ptr %22, i32 0, i32 0
  %165 = getelementptr inbounds [4 x [4 x float]], ptr %164, i64 0, i64 3
  %166 = getelementptr inbounds [4 x float], ptr %165, i64 0, i64 2
  store float 0.000000e+00, ptr %166, align 4, !tbaa !15
  %167 = getelementptr inbounds %"struct.ImGuizmo::matrix_t", ptr %22, i32 0, i32 0
  %168 = getelementptr inbounds [4 x [4 x float]], ptr %167, i64 0, i64 3
  %169 = getelementptr inbounds [4 x float], ptr %168, i64 0, i64 3
  store float 1.000000e+00, ptr %169, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  store i32 0, ptr %8, align 4
  br label %170

170:                                              ; preds = %28, %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  %171 = load i32, ptr %8, align 4
  switch i32 %171, label %173 [
    i32 0, label %172
    i32 1, label %172
  ]

172:                                              ; preds = %170, %170
  ret void

173:                                              ; preds = %170
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK8ImGuizmo5vec_t8LengthSqEv(ptr noundef nonnull align 4 dereferenceable(16)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8ImGuizmo8matrix_t13SetToIdentityEv(ptr noundef nonnull align 4 dereferenceable(64)) #6 align 2

; Function Attrs: nounwind
declare float @sinf(float noundef) #2

; Function Attrs: nounwind
declare float @cosf(float noundef) #2

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { 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, !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, !10, i64 0}
!12 = !{!"_ZTSN8ImGuizmo5vec_tE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!13 = !{!12, !10, i64 4}
!14 = !{!12, !10, i64 8}
!15 = !{!7, !7, i64 0}


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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sqrtf(float noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8ImGuizmo8matrix_t12RotationAxisERKNS_5vec_tEf(ptr noundef nonnull align 4 dereferenceable(64) %0, ptr noundef nonnull align 4 dereferenceable(16) %1, float noundef %2) local_unnamed_addr #3 align 2 {
  %4 = tail call noundef float @_ZNK8ImGuizmo5vec_t8LengthSqEv(ptr noundef nonnull align 4 dereferenceable(16) %1)
  %5 = fcmp olt float %4, 0x3E80000000000000
  br i1 %5, label %6, label %7

6:                                                ; preds = %3
  tail call void @_ZN8ImGuizmo8matrix_t13SetToIdentityEv(ptr noundef nonnull align 4 dereferenceable(64) %0)
  br label %52

7:                                                ; preds = %3
  %8 = tail call float @sqrtf(float noundef %4) #7
  %9 = fdiv float 1.000000e+00, %8
  %10 = tail call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16) %1, float noundef %9)
  %11 = extractvalue { <2 x float>, <2 x float> } %10, 0
  %12 = extractvalue { <2 x float>, <2 x float> } %10, 1
  %13 = tail call float @sinf(float noundef %2) #7
  %14 = tail call float @cosf(float noundef %2) #7
  %15 = fsub float 1.000000e+00, %14
  %.sroa.0.0.vec.extract = extractelement <2 x float> %11, i64 0
  %16 = fmul <2 x float> %11, %11
  %17 = extractelement <2 x float> %16, i64 0
  %18 = tail call float @llvm.fmuladd.f32(float %17, float %15, float %14)
  %.sroa.0.4.vec.extract = extractelement <2 x float> %11, i64 1
  %19 = fmul float %.sroa.0.4.vec.extract, %.sroa.0.4.vec.extract
  %20 = tail call float @llvm.fmuladd.f32(float %19, float %15, float %14)
  %.sroa.13.8.vec.extract = extractelement <2 x float> %12, i64 0
  %21 = fmul <2 x float> %12, %12
  %22 = extractelement <2 x float> %21, i64 0
  %23 = tail call float @llvm.fmuladd.f32(float %22, float %15, float %14)
  %24 = fmul float %.sroa.0.0.vec.extract, %.sroa.0.4.vec.extract
  %25 = fmul float %24, %15
  %26 = fmul float %.sroa.0.4.vec.extract, %.sroa.13.8.vec.extract
  %27 = fmul float %26, %15
  %28 = fmul <2 x float> %12, %11
  %29 = extractelement <2 x float> %28, i64 0
  %30 = fmul float %29, %15
  %31 = fmul float %13, %.sroa.0.0.vec.extract
  %32 = fmul float %13, %.sroa.0.4.vec.extract
  %33 = fmul float %13, %.sroa.13.8.vec.extract
  store float %18, ptr %0, align 4, !tbaa !5
  %34 = fadd float %33, %25
  %35 = getelementptr inbounds i8, ptr %0, i64 4
  store float %34, ptr %35, align 4, !tbaa !5
  %36 = fsub float %30, %32
  %37 = getelementptr inbounds i8, ptr %0, i64 8
  store float %36, ptr %37, align 4, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %0, i64 12
  store float 0.000000e+00, ptr %38, align 4, !tbaa !5
  %39 = fsub float %25, %33
  %40 = getelementptr inbounds i8, ptr %0, i64 16
  store float %39, ptr %40, align 4, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %0, i64 20
  store float %20, ptr %41, align 4, !tbaa !5
  %42 = fadd float %31, %27
  %43 = getelementptr inbounds i8, ptr %0, i64 24
  store float %42, ptr %43, align 4, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %0, i64 28
  store float 0.000000e+00, ptr %44, align 4, !tbaa !5
  %45 = fadd float %32, %30
  %46 = getelementptr inbounds i8, ptr %0, i64 32
  store float %45, ptr %46, align 4, !tbaa !5
  %47 = fsub float %27, %31
  %48 = getelementptr inbounds i8, ptr %0, i64 36
  store float %47, ptr %48, align 4, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %0, i64 40
  store float %23, ptr %49, align 4, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %0, i64 44
  %51 = getelementptr inbounds i8, ptr %0, i64 60
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %50, i8 0, i64 16, i1 false)
  store float 1.000000e+00, ptr %51, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %7, %6
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8ImGuizmo8matrix_t13SetToIdentityEv(ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sinf(float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @cosf(float noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


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